@Test public void testConstructorListensToPowerTracker() { verify(mockPowerTracker).addListener(timeOnlyMode); }
public void addListener(Listener listener) { mListeners.add(listener); }
TimeOnlyMode implements PowerTracker.Listener { public void addListener(Listener listener) { mListeners.add(listener); } }
TimeOnlyMode implements PowerTracker.Listener { public void addListener(Listener listener) { mListeners.add(listener); } TimeOnlyMode(Context context);  TimeOnlyMode(ContentResolver contentResolver, PowerTracker powerTracker); }
TimeOnlyMode implements PowerTracker.Listener { public void addListener(Listener listener) { mListeners.add(listener); } TimeOnlyMode(Context context);  TimeOnlyMode(ContentResolver contentResolver, PowerTracker powerTracker); void addListener(Listener listener); @Override void onPowerSaveModeChanged(); @Override void onChargingStateChanged(); boolean isInTimeOnlyMode(); boolean isHomeDisabled(); boolean isTiltToWakeDisabled(); boolean isTouchToWakeDisabled(); void registerContentObserver(ContentObserver contentObserver); void unregisterContentObserver(ContentObserver contentObserver); }
TimeOnlyMode implements PowerTracker.Listener { public void addListener(Listener listener) { mListeners.add(listener); } TimeOnlyMode(Context context);  TimeOnlyMode(ContentResolver contentResolver, PowerTracker powerTracker); void addListener(Listener listener); @Override void onPowerSaveModeChanged(); @Override void onChargingStateChanged(); boolean isInTimeOnlyMode(); boolean isHomeDisabled(); boolean isTiltToWakeDisabled(); boolean isTouchToWakeDisabled(); void registerContentObserver(ContentObserver contentObserver); void unregisterContentObserver(ContentObserver contentObserver);  }