/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataLimitPreferenceControllerTest.java | 64 private NetworkPolicyEditor mPolicyEditor; field in DataLimitPreferenceControllerTest 87 mController.setNetworkPolicyEditor(mPolicyEditor); 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 | DataWarningPreferenceControllerTest.java | 62 private NetworkPolicyEditor mPolicyEditor; field in DataWarningPreferenceControllerTest 85 mController.setNetworkPolicyEditor(mPolicyEditor); 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 | 52 private NetworkPolicyEditor mPolicyEditor; field in CycleResetDayOfMonthPickerPreferenceControllerTest 65 mControllerHelper.getController().setNetworkPolicyEditor(mPolicyEditor); in setUp() 73 when(mPolicyEditor.getPolicyCycleDay(mNetworkTemplate)).thenReturn(startingValue); in performClick_startsDialogWithStartingValue()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataWarningAndLimitFragment.java | 41 private NetworkPolicyEditor mPolicyEditor; field in DataWarningAndLimitFragment 66 mPolicyEditor = new NetworkPolicyEditor(NetworkPolicyManager.from(context)); in onAttach() 77 mPolicyEditor.read(); in onAttach() 88 preferenceController.setNetworkPolicyEditor(mPolicyEditor); in onAttach()
|
D | AppDataUsageFragment.java | 53 private NetworkPolicyEditor mPolicyEditor; field in AppDataUsageFragment 91 mPolicyEditor = new NetworkPolicyEditor(NetworkPolicyManager.from(context)); in onAttach() 115 NetworkPolicy policy = mPolicyEditor.getPolicy(mNetworkTemplate); in getBundleForNetworkStats()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | BillingCycleSettings.java | 92 services.mPolicyEditor = policyEditor; in setUpForTest() 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() 224 return services.mPolicyEditor; in getNetworkPolicyEditor() 427 final NetworkPolicy policy = parent.services.mPolicyEditor in show()
|
D | DataUsageSummaryPreferenceController.java | 74 protected final NetworkPolicyEditor mPolicyEditor; field in DataUsageSummaryPreferenceController 119 mPolicyEditor = new NetworkPolicyEditor(policyManager); in DataUsageSummaryPreferenceController() 158 mPolicyEditor = policyEditor; in DataUsageSummaryPreferenceController() 205 mDataInfoController.updateDataLimit(info, mPolicyEditor.getPolicy(mDefaultTemplate)); in updateState()
|
D | DataUsageBaseFragment.java | 52 services.mPolicyEditor = new NetworkPolicyEditor(services.mPolicyManager); in onCreate() 62 services.mPolicyEditor.read(); in onResume()
|
D | TemplatePreference.java | 38 NetworkPolicyEditor mPolicyEditor; field in TemplatePreference.NetworkServices
|
D | WifiDataUsageSummaryPreferenceController.java | 58 mDataInfoController.updateDataLimit(info, mPolicyEditor.getPolicy(template)); in updateState()
|
D | BillingCyclePreferenceController.java | 56 services.mPolicyEditor = new NetworkPolicyEditor(services.mPolicyManager); in displayPreference()
|
D | DataUsageSummary.java | 240 return services.mPolicyEditor; in getNetworkPolicyEditor()
|
D | DataUsageList.java | 283 final NetworkPolicy policy = services.mPolicyEditor.getPolicy(mTemplate); in updatePolicy()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | BillingCycleSettings.java | 92 services.mPolicyEditor = policyEditor; in setUpForTest() 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() 224 return services.mPolicyEditor; in getNetworkPolicyEditor() 427 final NetworkPolicy policy = parent.services.mPolicyEditor in show()
|
D | DataUsageSummaryPreferenceController.java | 71 protected final NetworkPolicyEditor mPolicyEditor; field in DataUsageSummaryPreferenceController 116 mPolicyEditor = new NetworkPolicyEditor(policyManager); in DataUsageSummaryPreferenceController() 155 mPolicyEditor = policyEditor; in DataUsageSummaryPreferenceController() 202 mDataInfoController.updateDataLimit(info, mPolicyEditor.getPolicy(mDefaultTemplate)); in updateState()
|
D | DataUsageBaseFragment.java | 52 services.mPolicyEditor = new NetworkPolicyEditor(services.mPolicyManager); in onCreate() 62 services.mPolicyEditor.read(); in onResume()
|
D | TemplatePreference.java | 38 NetworkPolicyEditor mPolicyEditor; field in TemplatePreference.NetworkServices
|
D | WifiDataUsageSummaryPreferenceController.java | 59 mDataInfoController.updateDataLimit(info, mPolicyEditor.getPolicy(template)); in updateState()
|
D | BillingCyclePreferenceController.java | 56 services.mPolicyEditor = new NetworkPolicyEditor(services.mPolicyManager); in displayPreference()
|
D | DataUsageSummary.java | 251 return services.mPolicyEditor; in getNetworkPolicyEditor()
|
D | DataUsageList.java | 280 final NetworkPolicy policy = services.mPolicyEditor.getPolicy(mTemplate); in updatePolicy()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.java | 85 private NetworkPolicyEditor mPolicyEditor; field in DataUsageSummaryPreferenceControllerTest 134 mPolicyEditor, in setUp() 362 mPolicyEditor, in testMobileData_preferenceAvailable() 376 mPolicyEditor, in testMobileData_noSimNoWifi_preferenceDisabled() 393 mPolicyEditor, in testMobileData_noSimWifi_preferenceDisabled() 412 mPolicyEditor, in testMobileData_entityHeaderSet()
|
D | DataUsageListTest.java | 84 mNetworkServices.mPolicyEditor = mock(NetworkPolicyEditor.class); in setUp()
|