Searched refs:mDataSaverController (Results 1 – 6 of 6) sorted by relevance
56 private final DataSaverController mDataSaverController; field in DataSaverTile77 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()
57 private final DataSaverController mDataSaverController; field in HotspotTile79 mDataSaverController = dataSaverController; in HotspotTile()81 mDataSaverController.observe(this, mCallbacks); in HotspotTile()117 if (!isEnabled && mDataSaverController.isDataSaverEnabled()) { in handleClick()148 isDataSaverEnabled = mDataSaverController.isDataSaverEnabled(); in handleUpdateState()
69 private DataSaverController mDataSaverController; field in HotspotTileTest82 when(mDataSaverController.isDataSaverEnabled()).thenReturn(false); in setUp()95 mDataSaverController in setUp()
114 @Mock private DataSaverController mDataSaverController; field in AutoTileManagerTest202 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()
86 private final DataSaverController mDataSaverController; field in AutoTileManager119 mDataSaverController = dataSaverController; in AutoTileManager()162 mDataSaverController.addCallback(mDataSaverListener); in startControllersAndSettingsListeners()203 mDataSaverController.removeCallback(mDataSaverListener); in stopListening()317 mHandler.post(() -> mDataSaverController.removeCallback(mDataSaverListener));
130 private final DataSaverController mDataSaverController; field in NetworkControllerImpl312 mDataSaverController = new DataSaverControllerImpl(context); in NetworkControllerImpl()495 return mDataSaverController; in getDataSaverController()