Home
last modified time | relevance | path

Searched refs:mDriveModeManager (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/drivemode/
DInMemoryDriveModeManagerTest.java43 private InMemoryDriveModeManager mDriveModeManager; field in InMemoryDriveModeManagerTest
50 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()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DDriveModeQcPanel.java37 private final DriveModeManager mDriveModeManager; field in DriveModeQcPanel
42 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()