/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataLimitPreferenceControllerTest.java | 66 private NetworkTemplate mNetworkTemplate; field in DataLimitPreferenceControllerTest 88 mController.setNetworkTemplate(mNetworkTemplate); in setUp() 94 when(mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate)).thenReturn(LIMIT_DISABLED); in refreshUi_limitDisabled_summaryEmpty() 102 when(mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate)).thenReturn(LIMIT_DISABLED); in refreshUi_limitDisabled_preferenceDisabled() 110 when(mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate)).thenReturn(LIMIT_DISABLED); in refreshUi_limitDisabled_switchUnchecked() 118 when(mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate)).thenReturn(5 * GIB_IN_BYTES); in refreshUi_limitEnabled_summaryPopulated() 126 when(mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate)).thenReturn(5 * GIB_IN_BYTES); in refreshUi_limitEnabled_preferenceEnabled() 134 when(mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate)).thenReturn(5 * GIB_IN_BYTES); in refreshUi_limitEnabled_switchChecked() 143 verify(mPolicyEditor).setPolicyLimitBytes(mNetworkTemplate, LIMIT_DISABLED); in onPreferenceChanged_toggleFalse_limitBytesDisabled() 158 verify(mPolicyEditor).setPolicyLimitBytes(mNetworkTemplate, 5 * GIB_IN_BYTES); in onDialogConfirm_noWarningThreshold_setsLimitTo5GB() [all …]
|
D | DataUsageSummaryPreferenceControllerTest.java | 74 private NetworkTemplate mNetworkTemplate; field in DataUsageSummaryPreferenceControllerTest 93 mNetworkTemplate = DataUsageUtils.getMobileNetworkTemplate( 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 …]
|
D | DataWarningPreferenceControllerTest.java | 64 private NetworkTemplate mNetworkTemplate; field in DataWarningPreferenceControllerTest 86 mController.setNetworkTemplate(mNetworkTemplate); in setUp() 92 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn(WARNING_DISABLED); in refreshUi_warningDisabled_summaryEmpty() 100 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn(WARNING_DISABLED); in refreshUi_warningDisabled_preferenceDisabled() 108 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn(WARNING_DISABLED); in refreshUi_warningDisabled_switchUnchecked() 116 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn( in refreshUi_warningEnabled_summaryPopulated() 125 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn( in refreshUi_warningEnabled_preferenceEnabled() 134 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn( in refreshUi_warningEnabled_switchChecked() 144 verify(mPolicyEditor).setPolicyWarningBytes(mNetworkTemplate, WARNING_DISABLED); in onPreferenceChanged_toggleFalse_warningBytesDisabled() 152 verify(mPolicyEditor).setPolicyWarningBytes(eq(mNetworkTemplate), setWarning.capture()); in onPreferenceChanged_toggleTrue_warningBytesNotDisabled()
|
D | CycleResetDayOfMonthPickerPreferenceControllerTest.java | 54 private NetworkTemplate mNetworkTemplate; field in CycleResetDayOfMonthPickerPreferenceControllerTest 66 mControllerHelper.getController().setNetworkTemplate(mNetworkTemplate); in setUp() 73 when(mPolicyEditor.getPolicyCycleDay(mNetworkTemplate)).thenReturn(startingValue); in performClick_startsDialogWithStartingValue()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | BillingCycleSettings.java | 77 NetworkTemplate mNetworkTemplate; field in BillingCycleSettings 108 mNetworkTemplate = args.getParcelable(DataUsageList.EXTRA_NETWORK_TEMPLATE); in onCreate() 109 if (mNetworkTemplate == null) { in onCreate() 110 mNetworkTemplate = DataUsageUtils.getDefaultTemplate(context, in onCreate() 134 final long warningBytes = services.mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate); in updatePrefs() 144 final long limitBytes = services.mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in updatePrefs() 212 services.mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, limitBytes); in setPolicyLimitBytes() 218 services.mPolicyEditor.setPolicyWarningBytes(mNetworkTemplate, warningBytes); in setPolicyWarningBytes() 229 return mNetworkTemplate; in getNetworkTemplate() 359 args.putParcelable(EXTRA_TEMPLATE, parent.mNetworkTemplate); in show() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | BillingCycleSettings.java | 77 NetworkTemplate mNetworkTemplate; field in BillingCycleSettings 108 mNetworkTemplate = args.getParcelable(DataUsageList.EXTRA_NETWORK_TEMPLATE); in onCreate() 109 if (mNetworkTemplate == null) { in onCreate() 110 mNetworkTemplate = DataUsageUtils.getDefaultTemplate(context, in onCreate() 134 final long warningBytes = services.mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate); in updatePrefs() 144 final long limitBytes = services.mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in updatePrefs() 212 services.mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, limitBytes); in setPolicyLimitBytes() 218 services.mPolicyEditor.setPolicyWarningBytes(mNetworkTemplate, warningBytes); in setPolicyWarningBytes() 229 return mNetworkTemplate; in getNetworkTemplate() 359 args.putParcelable(EXTRA_TEMPLATE, parent.mNetworkTemplate); in show() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataWarningAndLimitFragment.java | 42 private NetworkTemplate mNetworkTemplate; field in DataWarningAndLimitFragment 67 mNetworkTemplate = getArguments().getParcelable( in onAttach() 69 if (mNetworkTemplate == null) { in onAttach() 72 mNetworkTemplate = DataUsageUtils.getMobileNetworkTemplate(mTelephonyManager, in onAttach() 89 preferenceController.setNetworkTemplate(mNetworkTemplate); in onAttach()
|
D | AppDataUsageFragment.java | 54 private NetworkTemplate mNetworkTemplate; field in AppDataUsageFragment 90 mNetworkTemplate = DataUsageUtils.getMobileNetworkTemplate(telephonyManager, subId); in onAttach() 115 NetworkPolicy policy = mPolicyEditor.getPolicy(mNetworkTemplate); in getBundleForNetworkStats() 139 return SummaryForAllUidLoader.buildArgs(mNetworkTemplate, start, end); in getBundleForNetworkStats()
|
D | DataWarningAndLimitBasePreferenceController.java | 40 private NetworkTemplate mNetworkTemplate; field in DataWarningAndLimitBasePreferenceController 59 return mNetworkTemplate; in getNetworkTemplate() 64 mNetworkTemplate = networkTemplate; in setNetworkTemplate()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.java | 87 private NetworkTemplate mNetworkTemplate; field in DataUsageSummaryPreferenceControllerTest 133 mNetworkTemplate, in setUp() 361 mNetworkTemplate, in testMobileData_preferenceAvailable() 375 mNetworkTemplate, in testMobileData_noSimNoWifi_preferenceDisabled() 392 mNetworkTemplate, in testMobileData_noSimWifi_preferenceDisabled() 411 mNetworkTemplate, in testMobileData_entityHeaderSet()
|
D | BillingCycleSettingsTest.java | 168 assertThat(billingCycleSettings.mNetworkTemplate).isNotNull(); in onCreate_emptyArguments_shouldSetDefaultNetworkTemplate()
|