Searched refs:mDriveModeManager (Results 1 – 2 of 2) sorted by relevance
43 private InMemoryDriveModeManager mDriveModeManager; field in InMemoryDriveModeManagerTest50 mDriveModeManager = new InMemoryDriveModeManager(getContext()); in setup()56 mDriveModeManager.addCallback(mCallbackMock); in addingCallback_receivesLastState()60 mDriveModeManager.removeCallback(mCallbackMock); in addingCallback_receivesLastState()66 mDriveModeManager.addCallback(mCallbackMock); in updatingState_notifiesCallbacks()67 mDriveModeManager.setDriveMode("Eco"); in updatingState_notifiesCallbacks()69 assertEquals(mDriveModeManager.getDriveMode(), "Eco"); in updatingState_notifiesCallbacks()72 mDriveModeManager.removeCallback(mCallbackMock); in updatingState_notifiesCallbacks()
37 private final DriveModeManager mDriveModeManager; field in DriveModeQcPanel42 mDriveModeManager = driveModeManager; in DriveModeQcPanel()43 mDriveModeManager.addCallback(this); in DriveModeQcPanel()50 for (String driveMode : mDriveModeManager.getAvailableDriveModes()) { in getQCItem()56 mDriveModeManager.setDriveMode(driveMode); in getQCItem()65 return mDriveModeManager.getDriveMode().equals(driveMode) in getSubtitle()74 if (mDriveModeManager != null) { in onDestroy()75 mDriveModeManager.removeCallback(this); in onDestroy()