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/Car/Settings/src/com/android/car/settings/quicksettings/
DCelluarTile.java37 private final DataUsageController mDataUsageController; field in CelluarTile
51 mDataUsageController = new DataUsageController(mContext); in CelluarTile()
52 mDataUsageController.setCallback(this); in CelluarTile()
53 mAvailable = mDataUsageController.isMobileDataSupported(); in CelluarTile()
54 mState = mAvailable && mDataUsageController.isMobileDataEnabled() ? State.ON : State.OFF; in CelluarTile()
105 mDataUsageController.setMobileDataEnabled(!mDataUsageController.isMobileDataEnabled()); in onClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java87 private DataUsageController mDataUsageController; field in DataUsageSummaryPreferenceControllerTest
147 mDataUsageController, in setUp()
175 doReturn(info).when(mDataUsageController).getDataUsageInfo(any()); in testSummaryUpdate_onePlan_basic()
202 doReturn(info).when(mDataUsageController).getDataUsageInfo(any()); in testSummaryUpdate_noPlan_basic()
228 doReturn(info).when(mDataUsageController).getDataUsageInfo(any()); in testSummaryUpdate_noCarrier_basic()
256 doReturn(info).when(mDataUsageController).getDataUsageInfo(any()); in testSummaryUpdate_noPlanData_basic()
286 doReturn(info).when(mDataUsageController).getDataUsageInfo(any()); in testSummaryUpdate_noLimitNoWarning()
302 doReturn(info).when(mDataUsageController).getDataUsageInfo(any()); in testSummaryUpdate_warningOnly()
322 doReturn(info).when(mDataUsageController).getDataUsageInfo(any()); in testSummaryUpdate_limitOnly()
342 doReturn(info).when(mDataUsageController).getDataUsageInfo(any()); in testSummaryUpdate_limitAndWarning()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceController.java73 protected DataUsageController mDataUsageController; field in DataUsageSummaryPreferenceController
123 mDataUsageController = null; in init()
132 mDataUsageController = new DataUsageController(context); in updateConfiguration()
133 mDataUsageController.setSubscriptionId(subscriptionId); in updateConfiguration()
161 mDataUsageController = dataUsageController; in DataUsageSummaryPreferenceController()
210 if (mDataUsageController == null) { in updateState()
215 mDataUsageController.getHistoricalUsageLevel(mDefaultTemplate)); in updateState()
218 mDataUsageController.getDataUsageInfo(mDefaultTemplate); in updateState()
DBillingCycleSettings.java83 private DataUsageController mDataUsageController; field in BillingCycleSettings
105 mDataUsageController = new DataUsageController(context); in onCreate()
186 setPolicyWarningBytes(mDataUsageController.getDefaultWarningLevel()); in onPreferenceChange()
DWifiDataUsageSummaryPreferenceController.java56 final DataUsageController.DataUsageInfo info = mDataUsageController.getDataUsageInfo( in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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()
183 setPolicyWarningBytes(mDataUsageController.getDefaultWarningLevel()); in onPreferenceChange()
DWifiDataUsageSummaryPreferenceController.java57 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.java70 private final DataUsageController mDataUsageController; field in DataUsageSummaryPreferenceController
98 mDataUsageController = new DataUsageController(context); in DataUsageSummaryPreferenceController()
122 DataUsageController.DataUsageInfo info = mDataUsageController.getDataUsageInfo( in updateState()