Home
last modified time | relevance | path

Searched refs:mPolicyEditor (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DDataWarningPreferenceControllerTest.java73 private NetworkPolicyEditor mPolicyEditor; field in DataWarningPreferenceControllerTest
102 mPreferenceController.setNetworkPolicyEditor(mPolicyEditor); in setUp()
109 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn(WARNING_DISABLED); in refreshUi_warningDisabled_summaryEmpty()
117 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn(WARNING_DISABLED); in refreshUi_warningDisabled_preferenceDisabled()
125 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn(WARNING_DISABLED); in refreshUi_warningDisabled_switchUnchecked()
133 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn( in refreshUi_warningEnabled_summaryPopulated()
142 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn( in refreshUi_warningEnabled_preferenceEnabled()
151 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn( in refreshUi_warningEnabled_switchChecked()
161 verify(mPolicyEditor).setPolicyWarningBytes(mNetworkTemplate, WARNING_DISABLED); in onPreferenceChanged_toggleFalse_warningBytesDisabled()
169 verify(mPolicyEditor).setPolicyWarningBytes(eq(mNetworkTemplate), setWarning.capture()); in onPreferenceChanged_toggleTrue_warningBytesNotDisabled()
DDataWarningSetThresholdFragmentTest.java91 fragment.mPolicyEditor = mMockNetworkPolicyEditor; in setUpFragment()
DDataLimitSetThresholdFragmentTest.java91 fragment.mPolicyEditor = mMockNetworkPolicyEditor; in setUpFragment()
DDataUsageSetThresholdBaseFragmentTest.java164 fragment.mPolicyEditor = mMockNetworkPolicyEditor; in setUpFragment()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataWarningAndLimitFragment.java46 private NetworkPolicyEditor mPolicyEditor; field in DataWarningAndLimitFragment
71 mPolicyEditor = new NetworkPolicyEditor(NetworkPolicyManager.from(context)); in onAttach()
82 mPolicyEditor.read(); in onAttach()
93 preferenceController.setNetworkPolicyEditor(mPolicyEditor); in onAttach()
DDataUsageSetThresholdBaseFragment.java55 NetworkPolicyEditor mPolicyEditor; field in DataUsageSetThresholdBaseFragment
78 if (mPolicyEditor == null) { in onAttach()
79 mPolicyEditor = new NetworkPolicyEditor(NetworkPolicyManager.from(context)); in onAttach()
82 mPolicyEditor.read(); in onAttach()
DDataLimitSetThresholdFragment.java45 mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, threshold); in onSave()
56 return mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in getInitialBytes()
DDataWarningSetThresholdFragment.java45 mPolicyEditor.setPolicyWarningBytes(mNetworkTemplate, threshold); in onSave()
56 return mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate); in getInitialBytes()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageBaseFragment.java37 services.mPolicyEditor = new NetworkPolicyEditor(services.mPolicyManager); in onCreate()
43 services.mPolicyEditor.read(); in onResume()
DBillingCycleSettings.java99 services.mPolicyEditor = policyEditor; in setUpForTest()
154 final long warningBytes = services.mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate); in updatePrefs()
164 final long limitBytes = services.mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in updatePrefs()
235 services.mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, limitBytes); in setPolicyLimitBytes()
241 services.mPolicyEditor.setPolicyWarningBytes(mNetworkTemplate, warningBytes); in setPolicyWarningBytes()
247 return services.mPolicyEditor; in getNetworkPolicyEditor()
473 final NetworkPolicy policy = parent.services.mPolicyEditor in show()
DTemplatePreference.java29 NetworkPolicyEditor mPolicyEditor; field in TemplatePreference.NetworkServices