@Test public void testRegister() { assertEquals(0, notifier.getListenerCount()); notifier.register(listener); assertEquals(1, notifier.getListenerCount()); }
public synchronized void register(VehicleServiceListener listener) { synchronized(mListeners) { if(mListeners.register(listener)) { ++mListenerCount; } } }
RemoteCallbackSink extends AbstractQueuedCallbackSink { public synchronized void register(VehicleServiceListener listener) { synchronized(mListeners) { if(mListeners.register(listener)) { ++mListenerCount; } } } }
RemoteCallbackSink extends AbstractQueuedCallbackSink { public synchronized void register(VehicleServiceListener listener) { synchronized(mListeners) { if(mListeners.register(listener)) { ++mListenerCount; } } }  }
RemoteCallbackSink extends AbstractQueuedCallbackSink { public synchronized void register(VehicleServiceListener listener) { synchronized(mListeners) { if(mListeners.register(listener)) { ++mListenerCount; } } }  synchronized void register(VehicleServiceListener listener); void unregister(VehicleServiceListener listener); int getListenerCount(); @Override String toString(); }
RemoteCallbackSink extends AbstractQueuedCallbackSink { public synchronized void register(VehicleServiceListener listener) { synchronized(mListeners) { if(mListeners.register(listener)) { ++mListenerCount; } } }  synchronized void register(VehicleServiceListener listener); void unregister(VehicleServiceListener listener); int getListenerCount(); @Override String toString();  }