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

/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
H A DDataPlanUsageSummaryTest.java55 private NetworkPolicyEditor mPolicyEditor; field in class:DataPlanUsageSummaryTest
72 mPolicyEditor = mock(NetworkPolicyEditor.class);
74 ReflectionHelpers.setField(mDataUsageSummary, "mPolicyEditor", mPolicyEditor);
96 doReturn(null).when(mPolicyEditor).getPolicyMaybeUnquoted(any());
107 doReturn(mNetworkPolicy).when(mPolicyEditor).getPolicyMaybeUnquoted(any());
118 doReturn(mNetworkPolicy).when(mPolicyEditor).getPolicyMaybeUnquoted(any());
129 mPolicyEditor = mock(NetworkPolicyEditor.class);
130 ReflectionHelpers.setField(mDataUsageSummary, "mPolicyEditor", mPolicyEditor);
[all...]
H A DDataUsageListTest.java53 mNetworkServices.mPolicyEditor = mock(NetworkPolicyEditor.class);
/packages/apps/Settings/src/com/android/settings/datausage/
H A DTemplatePreference.java38 NetworkPolicyEditor mPolicyEditor; field in class:TemplatePreference.NetworkServices
H A DDataUsageBase.java57 services.mPolicyEditor = new NetworkPolicyEditor(services.mPolicyManager);
67 services.mPolicyEditor.read();
H A DBillingCyclePreference.java60 final int cycleDay = services.mPolicyEditor.getPolicyCycleDay(mTemplate);
H A DDataUsageMeteredSettings.java48 private NetworkPolicyEditor mPolicyEditor; field in class:DataUsageMeteredSettings
67 mPolicyEditor = new NetworkPolicyEditor(mPolicyManager);
68 mPolicyEditor.read();
H A DDataPlanUsageSummary.java74 private NetworkPolicyEditor mPolicyEditor; field in class:DataPlanUsageSummary
88 mPolicyEditor = new NetworkPolicyEditor(policyManager);
242 services.mPolicyEditor.getPolicy(mDefaultTemplate));
289 mPolicyEditor.read();
310 mPolicyEditor.getPolicyMaybeUnquoted(NetworkTemplate.buildTemplateWifi(networkId));
H A DDataUsageSummary.java96 private NetworkPolicyEditor mPolicyEditor; field in class:DataUsageSummary
110 mPolicyEditor = new NetworkPolicyEditor(policyManager);
274 services.mPolicyEditor.getPolicy(mDefaultTemplate));
316 return services.mPolicyEditor;
334 mPolicyEditor.read();
H A DBillingCycleSettings.java106 final int cycleDay = services.mPolicyEditor.getPolicyCycleDay(mNetworkTemplate);
112 final long warningBytes = services.mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate);
122 final long limitBytes = services.mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate);
180 services.mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, limitBytes);
186 services.mPolicyEditor.setPolicyWarningBytes(mNetworkTemplate, warningBytes);
192 return services.mPolicyEditor;
406 final NetworkPolicy policy = parent.services.mPolicyEditor
H A DAppDataUsage.java221 mPolicy = services.mPolicyEditor.getPolicy(mTemplate);
H A DDataUsageList.java267 final NetworkPolicy policy = services.mPolicyEditor.getPolicy(mTemplate);

Completed in 94 milliseconds