Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/datausage/
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()
DDataSaverSummary.java43 private DataSaverBackend mDataSaverBackend; field in DataSaverSummary
60 mDataSaverBackend = new DataSaverBackend(getContext()); in onCreate()
61 mDataUsageBridge = new AppStateDataUsageBridge(mApplicationsState, this, mDataSaverBackend); in onCreate()
76 mDataSaverBackend.refreshWhitelist(); in onResume()
77 mDataSaverBackend.refreshBlacklist(); in onResume()
78 mDataSaverBackend.addListener(this); in onResume()
86 mDataSaverBackend.remListener(this); in onPause()
98 mDataSaverBackend.setDataSaverEnabled(isChecked); in onSwitchChanged()
DDataSaverPreference.java24 private final DataSaverBackend mDataSaverBackend; field in DataSaverPreference
28 mDataSaverBackend = new DataSaverBackend(context); in DataSaverPreference()
34 mDataSaverBackend.addListener(this); in onAttached()
40 mDataSaverBackend.addListener(this); in onDetached()
DAppDataUsage.java95 private DataSaverBackend mDataSaverBackend; field in AppDataUsage
161 mDataSaverBackend = new DataSaverBackend(getContext()); in onCreate()
220 if (mDataSaverBackend != null) { in onResume()
221 mDataSaverBackend.addListener(this); in onResume()
232 if (mDataSaverBackend != null) { in onPause()
233 mDataSaverBackend.remListener(this); in onPause()
240 mDataSaverBackend.setIsBlacklisted(mAppItem.key, mPackageName, !(Boolean) newValue); in onPreferenceChange()
243 mDataSaverBackend.setIsWhitelisted(mAppItem.key, mPackageName, (Boolean) newValue); in onPreferenceChange()
316 if (mDataSaverBackend != null) { in getUnrestrictData()
317 return mDataSaverBackend.isWhitelisted(mAppItem.key); in getUnrestrictData()
DUnrestrictedDataAccess.java53 private DataSaverBackend mDataSaverBackend; field in UnrestrictedDataAccess
65 mDataSaverBackend = new DataSaverBackend(getContext()); in onCreate()
66 mDataUsageBridge = new AppStateDataUsageBridge(mApplicationsState, this, mDataSaverBackend); in onCreate()
216 mDataSaverBackend.setIsWhitelisted(accessPreference.mEntry.info.uid, in onPreferenceChange()
242 mDataSaverBackend.addListener(this); in onAttached()
247 mDataSaverBackend.remListener(this); in onDetached()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiApEnabler.java39 private final DataSaverBackend mDataSaverBackend; field in WifiApEnabler
78 mDataSaverBackend = dataSaverBackend; in WifiApEnabler()
106 mSwitch.setEnabled(!mDataSaverBackend.isDataSaverEnabled()); in enableWifiSwitch()
169 mSwitch.setEnabled(!mDataSaverBackend.isDataSaverEnabled()); in handleWifiApStateChanged()
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java117 private DataSaverBackend mDataSaverBackend; field in TetherSettings
136 mDataSaverBackend = new DataSaverBackend(getContext()); in onCreate()
137 mDataSaverEnabled = mDataSaverBackend.isDataSaverEnabled(); in onCreate()
160 mDataSaverBackend.addListener(this); in onCreate()
178 mWifiApEnabler = new WifiApEnabler(activity, mDataSaverBackend, mEnableWifiAp); in onCreate()
196 onDataSaverChanged(mDataSaverBackend.isDataSaverEnabled()); in onCreate()
201 mDataSaverBackend.remListener(this); in onDestroy()