/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.java | 76 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/ |
D | CelluarTile.java | 37 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/ |
D | DataUsageSummaryPreferenceControllerTest.java | 87 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/ |
D | DataUsageSummaryPreferenceController.java | 73 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()
|
D | BillingCycleSettings.java | 83 private DataUsageController mDataUsageController; field in BillingCycleSettings 105 mDataUsageController = new DataUsageController(context); in onCreate() 186 setPolicyWarningBytes(mDataUsageController.getDefaultWarningLevel()); in onPreferenceChange()
|
D | WifiDataUsageSummaryPreferenceController.java | 56 final DataUsageController.DataUsageInfo info = mDataUsageController.getDataUsageInfo( in updateState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | DataUsageSummaryPreferenceController.java | 71 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()
|
D | BillingCycleSettings.java | 83 private DataUsageController mDataUsageController; field in BillingCycleSettings 105 mDataUsageController = new DataUsageController(context); in onCreate() 183 setPolicyWarningBytes(mDataUsageController.getDefaultWarningLevel()); in onPreferenceChange()
|
D | WifiDataUsageSummaryPreferenceController.java | 57 final DataUsageController.DataUsageInfo info = mDataUsageController.getDataUsageInfo( in updateState()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataWarningPreferenceController.java | 38 private final DataUsageController mDataUsageController; field in DataWarningPreferenceController 50 mDataUsageController = new DataUsageController(getContext()); in DataWarningPreferenceController() 94 enabled ? mDataUsageController.getDefaultWarningLevel() : WARNING_DISABLED); in onPreferenceChange()
|
D | DataUsageSummaryPreferenceController.java | 70 private final DataUsageController mDataUsageController; field in DataUsageSummaryPreferenceController 98 mDataUsageController = new DataUsageController(context); in DataUsageSummaryPreferenceController() 122 DataUsageController.DataUsageInfo info = mDataUsageController.getDataUsageInfo( in updateState()
|