Searched refs:mDataSaverController (Results 1 – 7 of 7) sorted by relevance
49 private final DataSaverController mDataSaverController; field in DataSaverTile65 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()
53 private final DataSaverController mDataSaverController; field in HotspotTile74 mDataSaverController = dataSaverController; in HotspotTile()76 mDataSaverController.observe(this, mCallbacks); in HotspotTile()112 if (!isEnabled && mDataSaverController.isDataSaverEnabled()) { in handleClick()146 isDataSaverEnabled = mDataSaverController.isDataSaverEnabled(); in handleUpdateState()
28 private final FakeDataSaverController mDataSaverController; field in FakeNetworkController33 mDataSaverController = new FakeDataSaverController(test); in FakeNetworkController()59 return mDataSaverController; in getDataSaverController()
96 @Mock private DataSaverController mDataSaverController; field in AutoTileManagerTest166 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()
78 private final DataSaverController mDataSaverController; field in AutoTileManager108 mDataSaverController = dataSaverController; in AutoTileManager()137 mDataSaverController.addCallback(mDataSaverListener); in startControllersAndSettingsListeners()169 mDataSaverController.removeCallback(mDataSaverListener); in stopListening()278 mHandler.post(() -> mDataSaverController.removeCallback(mDataSaverListener));
120 private final DataSaverController mDataSaverController; field in NetworkControllerImpl273 mDataSaverController = new DataSaverControllerImpl(context); in NetworkControllerImpl()457 return mDataSaverController; in getDataSaverController()
263 @Inject Lazy<DataSaverController> mDataSaverController; field in Dependency424 mProviders.put(DataSaverController.class, mDataSaverController::get); in start()