Home
last modified time | relevance | path

Searched refs:setPolicyLimitBytes (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataLimitPreferenceController.java48 getNetworkPolicyEditor().setPolicyLimitBytes(getNetworkTemplate(), numBytes);
108 getNetworkPolicyEditor().setPolicyLimitBytes(getNetworkTemplate(), LIMIT_DISABLED); in onPreferenceChange()
136 getNetworkPolicyEditor().setPolicyLimitBytes(getNetworkTemplate(), limitBytes); in onConfirm()
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java177 setPolicyLimitBytes(LIMIT_DISABLED); in onPreferenceChange()
211 void setPolicyLimitBytes(long limitBytes) { in setPolicyLimitBytes() method in BillingCycleSettings
213 services.mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, limitBytes); in setPolicyLimitBytes()
347 editor.setPolicyLimitBytes(template, correctedBytes); in onClick()
483 target.setPolicyLimitBytes(limitBytes); in onClick()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataLimitPreferenceControllerTest.java143 verify(mPolicyEditor).setPolicyLimitBytes(mNetworkTemplate, LIMIT_DISABLED); in onPreferenceChanged_toggleFalse_limitBytesDisabled()
158 verify(mPolicyEditor).setPolicyLimitBytes(mNetworkTemplate, 5 * GIB_IN_BYTES); in onDialogConfirm_noWarningThreshold_setsLimitTo5GB()
167 verify(mPolicyEditor).setPolicyLimitBytes(eq(mNetworkTemplate), setLimit.capture()); in onDialogConfirm_hasWarningThreshold_setsLimitToWithMultiplier()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DBillingCycleSettingsTest.java116 verify(mMockBillingCycleSettings, never()).setPolicyLimitBytes(anyLong()); in testDataUsageLimit_shouldNotBeSetOnCancel()
125 verify(mMockBillingCycleSettings).setPolicyLimitBytes(LIMIT_BYTES); in testDataUsageLimit_shouldBeSetOnConfirmation()