Home
last modified time | relevance | path

Searched refs:mNetworkTemplate (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DAppDataUsageFragment.java51 private NetworkTemplate mNetworkTemplate; field in AppDataUsageFragment
90 mNetworkTemplate = DataUsageUtils.getMobileNetworkTemplate(telephonyManager, subId); in onAttach()
95 mDataUsageCycleManager = new DataUsageCycleManager(getContext(), mNetworkTemplate); in onAttach()
101 .setDataUsageInfo(mDataUsageController.getDataUsageInfo(mNetworkTemplate)); in onAttach()
103 long usage = mDataUsageController.getDataUsageInfo(mNetworkTemplate).usageLevel; in onAttach()
109 .setNetworkTemplate(mNetworkTemplate); in onAttach()
124 mDataUsageController.getDataUsageInfo(mNetworkTemplate); in getBundleForNetworkStats()
128 return SummaryForAllUidLoader.buildArgs(mNetworkTemplate, start, end); in getBundleForNetworkStats()
141 mNetworkTemplate, in onDataCyclePicked()
DDataWarningAndLimitFragment.java47 private NetworkTemplate mNetworkTemplate; field in DataWarningAndLimitFragment
72 mNetworkTemplate = getArguments().getParcelable( in onAttach()
74 if (mNetworkTemplate == null) { in onAttach()
77 mNetworkTemplate = DataUsageUtils.getMobileNetworkTemplate(mTelephonyManager, in onAttach()
94 preferenceController.setNetworkTemplate(mNetworkTemplate); in onAttach()
DDataWarningAndLimitBasePreferenceController.java40 private NetworkTemplate mNetworkTemplate; field in DataWarningAndLimitBasePreferenceController
59 return mNetworkTemplate; in getNetworkTemplate()
64 mNetworkTemplate = networkTemplate; in setNetworkTemplate()
DDataUsageSetThresholdBaseFragment.java57 NetworkTemplate mNetworkTemplate; field in DataUsageSetThresholdBaseFragment
84 mNetworkTemplate = getArguments().getParcelable( in onAttach()
86 if (mNetworkTemplate == null) { in onAttach()
89 mNetworkTemplate = DataUsageUtils.getMobileNetworkTemplate(mTelephonyManager, in onAttach()
DDataUsageCycleManager.java53 private final NetworkTemplate mNetworkTemplate; field in DataUsageCycleManager
59 mNetworkTemplate = networkTemplate; in DataUsageCycleManager()
99 .setNetworkTemplate(mNetworkTemplate) in onCreateLoader()
DAppSpecificDataUsageManager.java53 private final NetworkTemplate mNetworkTemplate; field in AppSpecificDataUsageManager
60 mNetworkTemplate = networkTemplate; in AppSpecificDataUsageManager()
107 builder.setNetworkTemplate(mNetworkTemplate); in onCreateLoader()
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()
DAppDataUsagePreferenceController.java60 private NetworkTemplate mNetworkTemplate; field in AppDataUsagePreferenceController
116 mNetworkTemplate = networkTemplate; in setNetworkTemplate()
292 if (mDetail != null && mNetworkTemplate != null) { in setOnClickListener()
295 AppSpecificDataUsageFragment.getInstance(mItem, mNetworkTemplate)); in setOnClickListener()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DDataWarningPreferenceControllerTest.java75 private NetworkTemplate mNetworkTemplate; field in DataWarningPreferenceControllerTest
103 mPreferenceController.setNetworkTemplate(mNetworkTemplate); 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()
DAppSpecificDataUsageManagerTest.java63 private NetworkTemplate mNetworkTemplate; field in AppSpecificDataUsageManagerTest
69 mAppSpecificDataUsageManager = new AppSpecificDataUsageManager(mContext, mNetworkTemplate, in setUp()
DDataUsageCycleManagerTest.java61 private NetworkTemplate mNetworkTemplate; field in DataUsageCycleManagerTest
67 mDataUsageCycleManager = new DataUsageCycleManager(mContext, mNetworkTemplate); in setUp()
DDataUsageSetThresholdBaseFragmentTest.java104 assertThat(mFragment.mNetworkTemplate).isEqualTo(mMockNetworkTemplate); in onActivityCreated_noTemplateSet_getsDefaultTemplate()
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java84 NetworkTemplate mNetworkTemplate; field in BillingCycleSettings
119 mNetworkTemplate = args.getParcelable(DataUsageList.EXTRA_NETWORK_TEMPLATE); in onCreate()
120 if (mNetworkTemplate == null && getIntent() != null) { in onCreate()
121 mNetworkTemplate = getIntent().getParcelableExtra(Settings.EXTRA_NETWORK_TEMPLATE); in onCreate()
124 if (mNetworkTemplate == null) { in onCreate()
128 mNetworkTemplate = mobileNetworkTemplateFromSim.get(); in onCreate()
132 if (mNetworkTemplate == null) { in onCreate()
133 mNetworkTemplate = NetworkTemplates.INSTANCE.getDefaultTemplate(context); in onCreate()
154 final long warningBytes = services.mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate); in updatePrefs()
164 final long limitBytes = services.mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in updatePrefs()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DNetworkBasePreferenceController.java42 private NetworkTemplate mNetworkTemplate; field in NetworkBasePreferenceController
61 return mNetworkTemplate; in getNetworkTemplate()
68 mNetworkTemplate = DataUsageUtils.getMobileNetworkTemplate(mTelephonyManager, subId); in setFields()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DBillingCycleSettingsTest.java169 assertThat(billingCycleSettings.mNetworkTemplate).isNotNull(); in onCreate_emptyArguments_shouldSetDefaultNetworkTemplate()