Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDataSaverTile.java49 private final DataSaverController mDataSaverController; field in DataSaverTile
65 mDataSaverController = dataSaverController; in DataSaverTile()
66 mDataSaverController.observe(getLifecycle(), this); in DataSaverTile()
101 mState.value = !mDataSaverController.isDataSaverEnabled(); in toggleDataSaver()
102 mDataSaverController.setDataSaverEnabled(mState.value); in toggleDataSaver()
114 : mDataSaverController.isDataSaverEnabled(); in handleUpdateState()
DHotspotTile.java53 private final DataSaverController mDataSaverController; field in HotspotTile
74 mDataSaverController = dataSaverController; in HotspotTile()
76 mDataSaverController.observe(this, mCallbacks); in HotspotTile()
112 if (!isEnabled && mDataSaverController.isDataSaverEnabled()) { in handleClick()
146 isDataSaverEnabled = mDataSaverController.isDataSaverEnabled(); in handleUpdateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeNetworkController.java28 private final FakeDataSaverController mDataSaverController; field in FakeNetworkController
33 mDataSaverController = new FakeDataSaverController(test); in FakeNetworkController()
59 return mDataSaverController; in getDataSaverController()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java96 @Mock private DataSaverController mDataSaverController; field in AutoTileManagerTest
166 mDataSaverController, mManagedProfileController, mNightDisplayListener, in createAutoTileManager()
224 InOrder inOrderDataSaver = inOrder(mDataSaverController); in testChangeUserCallbacksStoppedAndStarted()
225 inOrderDataSaver.verify(mDataSaverController).removeCallback(any()); in testChangeUserCallbacksStoppedAndStarted()
226 inOrderDataSaver.verify(mDataSaverController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted()
274 InOrder inOrderDataSaver = inOrder(mDataSaverController); in testChangeUserSomeCallbacksNotAdded()
275 inOrderDataSaver.verify(mDataSaverController).removeCallback(any()); in testChangeUserSomeCallbacksNotAdded()
276 inOrderDataSaver.verify(mDataSaverController).addCallback(any()); in testChangeUserSomeCallbacksNotAdded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java78 private final DataSaverController mDataSaverController; field in AutoTileManager
108 mDataSaverController = dataSaverController; in AutoTileManager()
137 mDataSaverController.addCallback(mDataSaverListener); in startControllersAndSettingsListeners()
169 mDataSaverController.removeCallback(mDataSaverListener); in stopListening()
278 mHandler.post(() -> mDataSaverController.removeCallback(mDataSaverListener));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java120 private final DataSaverController mDataSaverController; field in NetworkControllerImpl
273 mDataSaverController = new DataSaverControllerImpl(context); in NetworkControllerImpl()
457 return mDataSaverController; in getDataSaverController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDependency.java263 @Inject Lazy<DataSaverController> mDataSaverController; field in Dependency
424 mProviders.put(DataSaverController.class, mDataSaverController::get); in start()