/packages/apps/Settings/src/com/android/settings/datausage/ |
D | AppStateDataUsageBridge.java | 26 private final DataSaverBackend mDataSaverBackend; field in AppStateDataUsageBridge 31 mDataSaverBackend = backend; in AppStateDataUsageBridge() 40 app.extraInfo = new DataUsageState(mDataSaverBackend.isAllowlisted(app.info.uid), in loadAllExtraInfo() 41 mDataSaverBackend.isDenylisted(app.info.uid)); in loadAllExtraInfo() 47 app.extraInfo = new DataUsageState(mDataSaverBackend.isAllowlisted(uid), in updateExtraInfo() 48 mDataSaverBackend.isDenylisted(uid)); in updateExtraInfo()
|
D | DataSaverPreference.java | 26 private final DataSaverBackend mDataSaverBackend; field in DataSaverPreference 30 mDataSaverBackend = new DataSaverBackend(context); in DataSaverPreference() 36 mDataSaverBackend.addListener(this); in onAttached() 42 mDataSaverBackend.remListener(this); in onDetached()
|
D | AppDataUsage.java | 89 private DataSaverBackend mDataSaverBackend; field in AppDataUsage 165 mDataSaverBackend = new DataSaverBackend(mContext); in onCreate() 198 if (mDataSaverBackend != null) { in onResume() 199 mDataSaverBackend.addListener(this); in onResume() 207 if (mDataSaverBackend != null) { in onPause() 208 mDataSaverBackend.remListener(this); in onPause() 215 mDataSaverBackend.setIsDenylisted(mAppItem.key, mPackageName, !(Boolean) newValue); in onPreferenceChange() 219 mDataSaverBackend.setIsAllowlisted(mAppItem.key, mPackageName, (Boolean) newValue); in onPreferenceChange() 316 if (mDataSaverBackend != null) { in getUnrestrictData() 317 return mDataSaverBackend.isAllowlisted(mAppItem.key); in getUnrestrictData()
|
D | UnrestrictedDataAccessPreferenceController.java | 52 private final DataSaverBackend mDataSaverBackend; field in UnrestrictedDataAccessPreferenceController 63 mDataSaverBackend = new DataSaverBackend(context); in UnrestrictedDataAccessPreferenceController() 64 mDataUsageBridge = new AppStateDataUsageBridge(mApplicationsState, this, mDataSaverBackend); in UnrestrictedDataAccessPreferenceController() 148 mApplicationsState, mDataSaverBackend, mParentFragment); in onRebuildComplete() 196 mDataSaverBackend.setIsAllowlisted(accessPreference.getEntry().info.uid, in onPreferenceChange()
|
D | UnrestrictedDataAccessPreference.java | 46 private final DataSaverBackend mDataSaverBackend; field in UnrestrictedDataAccessPreference 60 mDataSaverBackend = dataSaverBackend; in UnrestrictedDataAccessPreference() 84 mDataSaverBackend.addListener(this); in onAttached() 89 mDataSaverBackend.remListener(this); in onDetached()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/ |
D | WifiTetherSwitchBarControllerTest.java | 66 private DataSaverBackend mDataSaverBackend; field in WifiTetherSwitchBarControllerTest 79 when(mDataSaverBackend.isDataSaverEnabled()).thenReturn(false); in setUp() 83 mController.mDataSaverBackend = mDataSaverBackend; in setUp() 125 when(mDataSaverBackend.isDataSaverEnabled()).thenReturn(false); in startTether_fail_resetSwitchBar() 139 when(mDataSaverBackend.isDataSaverEnabled()).thenReturn(true); in onDataSaverChanged_setsEnabledCorrectly() 144 when(mDataSaverBackend.isDataSaverEnabled()).thenReturn(false); in onDataSaverChanged_setsEnabledCorrectly()
|
/packages/apps/Settings/src/com/android/settings/wifi/tether/ |
D | WifiTetherSwitchBarController.java | 61 DataSaverBackend mDataSaverBackend; field in WifiTetherSwitchBarController 80 mDataSaverBackend = new DataSaverBackend(context); in WifiTetherSwitchBarController() 90 mDataSaverBackend.addListener(this); in onStart() 99 mDataSaverBackend.remListener(this); in onStop() 161 mSwitchBar.setEnabled(!mDataSaverBackend.isDataSaverEnabled()); in updateWifiSwitch()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | TetherEnabler.java | 125 private final DataSaverBackend mDataSaverBackend; field in TetherEnabler 146 mDataSaverBackend = new DataSaverBackend(context); in TetherEnabler() 154 mDataSaverEnabled = mDataSaverBackend.isDataSaverEnabled(); in TetherEnabler() 162 mDataSaverBackend.addListener(this); in onStart() 192 mDataSaverBackend.remListener(this); in onStop()
|
/packages/apps/Settings/src/com/android/settings/network/tether/ |
D | TetherSettings.java | 125 private DataSaverBackend mDataSaverBackend; field in TetherSettings 157 mDataSaverBackend = new DataSaverBackend(mContext); in onCreate() 158 mDataSaverEnabled = mDataSaverBackend.isDataSaverEnabled(); in onCreate() 179 mDataSaverBackend.addListener(this); in onCreate() 211 onDataSaverChanged(mDataSaverBackend.isDataSaverEnabled()); in onCreate() 230 mDataSaverBackend.remListener(this); in onDestroy()
|