Searched refs:mPolicyEditor (Results 1 – 11 of 11) sorted by relevance
73 private NetworkPolicyEditor mPolicyEditor; field in DataWarningPreferenceControllerTest102 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()
91 fragment.mPolicyEditor = mMockNetworkPolicyEditor; in setUpFragment()
164 fragment.mPolicyEditor = mMockNetworkPolicyEditor; in setUpFragment()
46 private NetworkPolicyEditor mPolicyEditor; field in DataWarningAndLimitFragment71 mPolicyEditor = new NetworkPolicyEditor(NetworkPolicyManager.from(context)); in onAttach()82 mPolicyEditor.read(); in onAttach()93 preferenceController.setNetworkPolicyEditor(mPolicyEditor); in onAttach()
55 NetworkPolicyEditor mPolicyEditor; field in DataUsageSetThresholdBaseFragment78 if (mPolicyEditor == null) { in onAttach()79 mPolicyEditor = new NetworkPolicyEditor(NetworkPolicyManager.from(context)); in onAttach()82 mPolicyEditor.read(); in onAttach()
45 mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, threshold); in onSave()56 return mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in getInitialBytes()
45 mPolicyEditor.setPolicyWarningBytes(mNetworkTemplate, threshold); in onSave()56 return mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate); in getInitialBytes()
37 services.mPolicyEditor = new NetworkPolicyEditor(services.mPolicyManager); in onCreate()43 services.mPolicyEditor.read(); in onResume()
99 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()
29 NetworkPolicyEditor mPolicyEditor; field in TemplatePreference.NetworkServices