Home
last modified time | relevance | path

Searched refs:mDataSaverBackend (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverSummary.java52 private DataSaverBackend mDataSaverBackend; field in DataSaverSummary
71 mDataSaverBackend = new DataSaverBackend(getContext()); in onCreate()
72 mDataUsageBridge = new AppStateDataUsageBridge(mApplicationsState, this, mDataSaverBackend); in onCreate()
90 mDataSaverBackend.refreshWhitelist(); in onResume()
91 mDataSaverBackend.refreshBlacklist(); in onResume()
92 mDataSaverBackend.addListener(this); in onResume()
99 mDataSaverBackend.remListener(this); in onPause()
110 mDataSaverBackend.setDataSaverEnabled(isChecked); in onSwitchChanged()
DAppStateDataUsageBridge.java26 private final DataSaverBackend mDataSaverBackend; field in AppStateDataUsageBridge
31 mDataSaverBackend = backend; in AppStateDataUsageBridge()
40 app.extraInfo = new DataUsageState(mDataSaverBackend.isWhitelisted(app.info.uid), in loadAllExtraInfo()
41 mDataSaverBackend.isBlacklisted(app.info.uid)); in loadAllExtraInfo()
47 app.extraInfo = new DataUsageState(mDataSaverBackend.isWhitelisted(uid), in updateExtraInfo()
48 mDataSaverBackend.isBlacklisted(uid)); in updateExtraInfo()
DAppDataUsage.java103 private DataSaverBackend mDataSaverBackend; field in AppDataUsage
175 mDataSaverBackend = new DataSaverBackend(mContext); in onCreate()
219 if (mDataSaverBackend != null) { in onResume()
220 mDataSaverBackend.addListener(this); in onResume()
230 if (mDataSaverBackend != null) { in onPause()
231 mDataSaverBackend.remListener(this); in onPause()
238 mDataSaverBackend.setIsBlacklisted(mAppItem.key, mPackageName, !(Boolean) newValue); in onPreferenceChange()
242 mDataSaverBackend.setIsWhitelisted(mAppItem.key, mPackageName, (Boolean) newValue); in onPreferenceChange()
332 if (mDataSaverBackend != null) { in getUnrestrictData()
333 return mDataSaverBackend.isWhitelisted(mAppItem.key); in getUnrestrictData()
DDataSaverPreference.java26 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()
DUnrestrictedDataAccessPreferenceController.java52 private final DataSaverBackend mDataSaverBackend; field in UnrestrictedDataAccessPreferenceController
63 mDataSaverBackend = new DataSaverBackend(context); in UnrestrictedDataAccessPreferenceController()
64 mDataUsageBridge = new AppStateDataUsageBridge(mApplicationsState, this, mDataSaverBackend); in UnrestrictedDataAccessPreferenceController()
144 mApplicationsState, mDataSaverBackend, mParentFragment); in onRebuildComplete()
191 mDataSaverBackend.setIsWhitelisted(accessPreference.getEntry().info.uid, in onPreferenceChange()
DUnrestrictedDataAccessPreference.java39 private final DataSaverBackend mDataSaverBackend; field in UnrestrictedDataAccessPreference
53 mDataSaverBackend = dataSaverBackend; in UnrestrictedDataAccessPreference()
71 mDataSaverBackend.addListener(this); in onAttached()
76 mDataSaverBackend.remListener(this); in onDetached()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataSaverSummary.java52 private DataSaverBackend mDataSaverBackend; field in DataSaverSummary
71 mDataSaverBackend = new DataSaverBackend(getContext()); in onCreate()
72 mDataUsageBridge = new AppStateDataUsageBridge(mApplicationsState, this, mDataSaverBackend); in onCreate()
90 mDataSaverBackend.refreshWhitelist(); in onResume()
91 mDataSaverBackend.refreshBlacklist(); in onResume()
92 mDataSaverBackend.addListener(this); in onResume()
99 mDataSaverBackend.remListener(this); in onPause()
110 mDataSaverBackend.setDataSaverEnabled(isChecked); in onSwitchChanged()
DAppStateDataUsageBridge.java26 private final DataSaverBackend mDataSaverBackend; field in AppStateDataUsageBridge
31 mDataSaverBackend = backend; in AppStateDataUsageBridge()
40 app.extraInfo = new DataUsageState(mDataSaverBackend.isWhitelisted(app.info.uid), in loadAllExtraInfo()
41 mDataSaverBackend.isBlacklisted(app.info.uid)); in loadAllExtraInfo()
47 app.extraInfo = new DataUsageState(mDataSaverBackend.isWhitelisted(uid), in updateExtraInfo()
48 mDataSaverBackend.isBlacklisted(uid)); in updateExtraInfo()
DAppDataUsage.java103 private DataSaverBackend mDataSaverBackend; field in AppDataUsage
175 mDataSaverBackend = new DataSaverBackend(mContext); in onCreate()
219 if (mDataSaverBackend != null) { in onResume()
220 mDataSaverBackend.addListener(this); in onResume()
230 if (mDataSaverBackend != null) { in onPause()
231 mDataSaverBackend.remListener(this); in onPause()
238 mDataSaverBackend.setIsBlacklisted(mAppItem.key, mPackageName, !(Boolean) newValue); in onPreferenceChange()
242 mDataSaverBackend.setIsWhitelisted(mAppItem.key, mPackageName, (Boolean) newValue); in onPreferenceChange()
332 if (mDataSaverBackend != null) { in getUnrestrictData()
333 return mDataSaverBackend.isWhitelisted(mAppItem.key); in getUnrestrictData()
DDataSaverPreference.java26 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()
DUnrestrictedDataAccessPreferenceController.java52 private final DataSaverBackend mDataSaverBackend; field in UnrestrictedDataAccessPreferenceController
63 mDataSaverBackend = new DataSaverBackend(context); in UnrestrictedDataAccessPreferenceController()
64 mDataUsageBridge = new AppStateDataUsageBridge(mApplicationsState, this, mDataSaverBackend); in UnrestrictedDataAccessPreferenceController()
144 mApplicationsState, mDataSaverBackend, mParentFragment); in onRebuildComplete()
191 mDataSaverBackend.setIsWhitelisted(accessPreference.getEntry().info.uid, in onPreferenceChange()
DUnrestrictedDataAccessPreference.java39 private final DataSaverBackend mDataSaverBackend; field in UnrestrictedDataAccessPreference
53 mDataSaverBackend = dataSaverBackend; in UnrestrictedDataAccessPreference()
71 mDataSaverBackend.addListener(this); in onAttached()
76 mDataSaverBackend.remListener(this); in onDetached()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/tether/
DWifiTetherSwitchBarController.java50 final DataSaverBackend mDataSaverBackend; field in WifiTetherSwitchBarController
69 mDataSaverBackend = new DataSaverBackend(context); in WifiTetherSwitchBarController()
80 mDataSaverBackend.addListener(this); in onStart()
87 mDataSaverBackend.remListener(this); in onStop()
154 mSwitchBar.setEnabled(!mDataSaverBackend.isDataSaverEnabled()); in updateWifiSwitch()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarController.java50 final DataSaverBackend mDataSaverBackend; field in WifiTetherSwitchBarController
69 mDataSaverBackend = new DataSaverBackend(context); in WifiTetherSwitchBarController()
80 mDataSaverBackend.addListener(this); in onStart()
87 mDataSaverBackend.remListener(this); in onStop()
154 mSwitchBar.setEnabled(!mDataSaverBackend.isDataSaverEnabled()); in updateWifiSwitch()
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java98 private DataSaverBackend mDataSaverBackend; field in TetherSettings
126 mDataSaverBackend = new DataSaverBackend(getContext()); in onCreate()
127 mDataSaverEnabled = mDataSaverBackend.isDataSaverEnabled(); in onCreate()
147 mDataSaverBackend.addListener(this); in onCreate()
174 onDataSaverChanged(mDataSaverBackend.isDataSaverEnabled()); in onCreate()
179 mDataSaverBackend.remListener(this); in onDestroy()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DTetherSettings.java98 private DataSaverBackend mDataSaverBackend; field in TetherSettings
126 mDataSaverBackend = new DataSaverBackend(getContext()); in onCreate()
127 mDataSaverEnabled = mDataSaverBackend.isDataSaverEnabled(); in onCreate()
147 mDataSaverBackend.addListener(this); in onCreate()
174 onDataSaverChanged(mDataSaverBackend.isDataSaverEnabled()); in onCreate()
179 mDataSaverBackend.remListener(this); in onDestroy()
/packages/apps/Settings/src/com/android/settings/applications/
DSpecialAppAccessPreferenceController.java46 private final DataSaverBackend mDataSaverBackend; field in SpecialAppAccessPreferenceController
56 mDataSaverBackend = new DataSaverBackend(context); in SpecialAppAccessPreferenceController()
57 mDataUsageBridge = new AppStateDataUsageBridge(mApplicationsState, this, mDataSaverBackend); in SpecialAppAccessPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DSpecialAppAccessPreferenceController.java46 private final DataSaverBackend mDataSaverBackend; field in SpecialAppAccessPreferenceController
56 mDataSaverBackend = new DataSaverBackend(context); in SpecialAppAccessPreferenceController()
57 mDataUsageBridge = new AppStateDataUsageBridge(mApplicationsState, this, mDataSaverBackend); in SpecialAppAccessPreferenceController()