Home
last modified time | relevance | path

Searched refs:mDataUsageController (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java76 private DataUsageController mDataUsageController; field in DataUsageSummaryPreferenceControllerTest
85 ShadowDataUsageController.setInstance(mDataUsageController); in setUp()
122 when(mDataUsageController.getDataUsageInfo(mNetworkTemplate)).thenReturn(info); in refreshUi_hasUsage_titleSet()
138 when(mDataUsageController.getDataUsageInfo(mNetworkTemplate)).thenReturn(info); in refreshUi_noLimits_doesntSetDataLimitText()
152 when(mDataUsageController.getDataUsageInfo(mNetworkTemplate)).thenReturn(info); in refreshUi_hasLimit_setsDataLimitText()
168 when(mDataUsageController.getDataUsageInfo(mNetworkTemplate)).thenReturn(info); in refreshUi_hasWarning_setsDataLimitText()
184 when(mDataUsageController.getDataUsageInfo(mNetworkTemplate)).thenReturn(info); in refreshUi_hasWarningAndLimit_setsDataLimitText()
203 when(mDataUsageController.getDataUsageInfo(mNetworkTemplate)).thenReturn(info); in refreshUi_endTimeIsGreaterThanOneDay_setsBillingCycleText()
218 when(mDataUsageController.getDataUsageInfo(mNetworkTemplate)).thenReturn(info); in refreshUi_endTimeIsLessThanOneDay_setsBillingCycleText()
232 when(mDataUsageController.getDataUsageInfo(mNetworkTemplate)).thenReturn(info); in refreshUi_endTimeIsNow_setsBillingCycleText()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java81 private DataUsageController mDataUsageController; field in DataUsageSummaryPreferenceControllerTest
131 mDataUsageController, in setUp()
153 when(mDataUsageController.getDataUsageInfo(any())).thenReturn(info); in testSummaryUpdate_onePlan_basic()
178 when(mDataUsageController.getDataUsageInfo(any())).thenReturn(info); in testSummaryUpdate_noPlan_basic()
201 when(mDataUsageController.getDataUsageInfo(any())).thenReturn(info); in testSummaryUpdate_noCarrier_basic()
229 when(mDataUsageController.getDataUsageInfo(any())).thenReturn(info); in testSummaryUpdate_noPlanData_basic()
259 when(mDataUsageController.getDataUsageInfo(any())).thenReturn(info); in testSummaryUpdate_noLimitNoWarning()
276 when(mDataUsageController.getDataUsageInfo(any())).thenReturn(info); in testSummaryUpdate_warningOnly()
297 when(mDataUsageController.getDataUsageInfo(any())).thenReturn(info); in testSummaryUpdate_limitOnly()
318 when(mDataUsageController.getDataUsageInfo(any())).thenReturn(info); in testSummaryUpdate_limitAndWarning()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DCelluarTile.java34 private final DataUsageController mDataUsageController; field in CelluarTile
46 mDataUsageController = new DataUsageController(mContext); in CelluarTile()
47 mDataUsageController.setCallback(this); in CelluarTile()
48 mAvailable = mDataUsageController.isMobileDataSupported(); in CelluarTile()
49 mState = mAvailable && mDataUsageController.isMobileDataEnabled() ? State.ON : State.OFF; in CelluarTile()
94 mDataUsageController.setMobileDataEnabled(!mDataUsageController.isMobileDataEnabled()); in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummaryPreferenceController.java68 protected final DataUsageController mDataUsageController; field in DataUsageSummaryPreferenceController
121 mDataUsageController = new DataUsageController(activity); in DataUsageSummaryPreferenceController()
122 mDataUsageController.setSubscriptionId(mSubscriptionId); in DataUsageSummaryPreferenceController()
152 mDataUsageController = dataUsageController; in DataUsageSummaryPreferenceController()
201 info = mDataUsageController.getDataUsageInfo(mDefaultTemplate); in updateState()
206 info = mDataUsageController.getDataUsageInfo( in updateState()
DBillingCycleSettings.java83 private DataUsageController mDataUsageController; field in BillingCycleSettings
105 mDataUsageController = new DataUsageController(context); in onCreate()
185 setPolicyWarningBytes(mDataUsageController.getDefaultWarningLevel()); in onPreferenceChange()
DWifiDataUsageSummaryPreferenceController.java57 final DataUsageController.DataUsageInfo info = mDataUsageController.getDataUsageInfo( in updateState()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceController.java71 protected final DataUsageController mDataUsageController; field in DataUsageSummaryPreferenceController
124 mDataUsageController = new DataUsageController(activity); in DataUsageSummaryPreferenceController()
125 mDataUsageController.setSubscriptionId(mSubscriptionId); in DataUsageSummaryPreferenceController()
155 mDataUsageController = dataUsageController; in DataUsageSummaryPreferenceController()
204 info = mDataUsageController.getDataUsageInfo(mDefaultTemplate); in updateState()
209 info = mDataUsageController.getDataUsageInfo( in updateState()
DBillingCycleSettings.java83 private DataUsageController mDataUsageController; field in BillingCycleSettings
105 mDataUsageController = new DataUsageController(context); in onCreate()
185 setPolicyWarningBytes(mDataUsageController.getDefaultWarningLevel()); in onPreferenceChange()
DWifiDataUsageSummaryPreferenceController.java56 final DataUsageController.DataUsageInfo info = mDataUsageController.getDataUsageInfo( in updateState()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataWarningPreferenceController.java38 private final DataUsageController mDataUsageController; field in DataWarningPreferenceController
50 mDataUsageController = new DataUsageController(getContext()); in DataWarningPreferenceController()
94 enabled ? mDataUsageController.getDefaultWarningLevel() : WARNING_DISABLED); in onPreferenceChange()
DDataUsageSummaryPreferenceController.java65 private final DataUsageController mDataUsageController; field in DataUsageSummaryPreferenceController
93 mDataUsageController = new DataUsageController(context); in DataUsageSummaryPreferenceController()
117 DataUsageController.DataUsageInfo info = mDataUsageController.getDataUsageInfo( in updateState()