Home
last modified time | relevance | path

Searched refs:mDataSaverController (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDataSaverTile.java56 private final DataSaverController mDataSaverController; field in DataSaverTile
77 mDataSaverController = dataSaverController; in DataSaverTile()
80 mDataSaverController.observe(getLifecycle(), this); in DataSaverTile()
133 mState.value = !mDataSaverController.isDataSaverEnabled(); in toggleDataSaver()
134 mDataSaverController.setDataSaverEnabled(mState.value); in toggleDataSaver()
146 : mDataSaverController.isDataSaverEnabled(); in handleUpdateState()
DHotspotTile.java57 private final DataSaverController mDataSaverController; field in HotspotTile
79 mDataSaverController = dataSaverController; in HotspotTile()
81 mDataSaverController.observe(this, mCallbacks); in HotspotTile()
117 if (!isEnabled && mDataSaverController.isDataSaverEnabled()) { in handleClick()
148 isDataSaverEnabled = mDataSaverController.isDataSaverEnabled(); in handleUpdateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DHotspotTileTest.java69 private DataSaverController mDataSaverController; field in HotspotTileTest
82 when(mDataSaverController.isDataSaverEnabled()).thenReturn(false); in setUp()
95 mDataSaverController in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java114 @Mock private DataSaverController mDataSaverController; field in AutoTileManagerTest
202 mDataSaverController, mManagedProfileController, mNightDisplayListenerBuilder, in createAutoTileManager()
262 InOrder inOrderDataSaver = inOrder(mDataSaverController); in testChangeUserCallbacksStoppedAndStarted()
263 inOrderDataSaver.verify(mDataSaverController).removeCallback(any()); in testChangeUserCallbacksStoppedAndStarted()
264 inOrderDataSaver.verify(mDataSaverController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted()
316 InOrder inOrderDataSaver = inOrder(mDataSaverController); in testChangeUserSomeCallbacksNotAdded()
317 inOrderDataSaver.verify(mDataSaverController).removeCallback(any()); in testChangeUserSomeCallbacksNotAdded()
318 inOrderDataSaver.verify(mDataSaverController).addCallback(any()); in testChangeUserSomeCallbacksNotAdded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java86 private final DataSaverController mDataSaverController; field in AutoTileManager
119 mDataSaverController = dataSaverController; in AutoTileManager()
162 mDataSaverController.addCallback(mDataSaverListener); in startControllersAndSettingsListeners()
203 mDataSaverController.removeCallback(mDataSaverListener); in stopListening()
317 mHandler.post(() -> mDataSaverController.removeCallback(mDataSaverListener));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DNetworkControllerImpl.java130 private final DataSaverController mDataSaverController; field in NetworkControllerImpl
312 mDataSaverController = new DataSaverControllerImpl(context); in NetworkControllerImpl()
495 return mDataSaverController; in getDataSaverController()