Home
last modified time | relevance | path

Searched refs:mTemplate (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsagePreference.java36 private NetworkTemplate mTemplate; field in DataUsagePreference
53 mTemplate = template; in setTemplate()
56 if (mTemplate.isMatchRuleMobile()) { in setTemplate()
60 controller.getDataUsageInfo(mTemplate); in setTemplate()
79 args.putParcelable(DataUsageList.EXTRA_NETWORK_TEMPLATE, mTemplate); in getIntent()
81 args.putInt(DataUsageList.EXTRA_NETWORK_TYPE, mTemplate.isMatchRuleMobile() in getIntent()
87 if (mTemplate.isMatchRuleMobile()) { in getIntent()
DTemplatePreferenceCategory.java26 private NetworkTemplate mTemplate; field in TemplatePreferenceCategory
36 mTemplate = template; in setTemplate()
50 if (mTemplate == null) { in pushTemplates()
54 ((TemplatePreference) getPreference(i)).setTemplate(mTemplate, mSubId, services); in pushTemplates()
DDataUsageList.java105 NetworkTemplate mTemplate; field in DataUsageList
166 args.putParcelable(DataUsageList.EXTRA_NETWORK_TEMPLATE, mTemplate); in onViewCreated()
222 buildArgs(mTemplate), mNetworkCycleDataCallbacks); in onResume()
258 mTemplate = args.getParcelable(EXTRA_NETWORK_TEMPLATE); in processArgument()
261 if (mTemplate == null && mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in processArgument()
265 mTemplate = intent.getParcelableExtra(Settings.EXTRA_NETWORK_TEMPLATE); in processArgument()
317 final NetworkPolicy policy = services.mPolicyEditor.getPolicy(mTemplate); in updatePolicy()
456 args.putParcelable(AppDataUsage.ARG_NETWORK_TEMPLATE, mTemplate); in startAppDataUsage()
532 .setNetworkTemplate(mTemplate)
559 .setNetworkTemplate(mTemplate)
DBillingCyclePreference.java38 private NetworkTemplate mTemplate; field in BillingCyclePreference
69 mTemplate = template; in setTemplate()
91 args.putParcelable(DataUsageList.EXTRA_NETWORK_TEMPLATE, mTemplate); in getIntent()
DAppDataUsage.java98 NetworkTemplate mTemplate; field in AppDataUsage
116 mTemplate = (args != null) ? (NetworkTemplate) args.getParcelable(ARG_NETWORK_TEMPLATE) in onCreate()
122 if (mTemplate == null) { in onCreate()
123 mTemplate = DataUsageUtils.getDefaultTemplate(mContext, in onCreate()
396 .setNetworkTemplate(mTemplate);
/packages/modules/GeoTZ/common/src/main/java/com/android/timezone/location/common/
DPiiLoggables.java168 @NonNull private final String mTemplate; in fromTemplate() field in PiiLoggables.TemplatedPiiLoggable
172 mTemplate = Objects.requireNonNull(template); in fromTemplate()
178 return String.format(mTemplate, (Object[]) mLoggables); in fromTemplate()
183 return PiiLoggables.formatPiiString(mTemplate, mLoggables); in fromTemplate()
195 return mTemplate.equals(that.mTemplate) && in fromTemplate()
201 int result = Objects.hash(mTemplate); in fromTemplate()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDataUsagePreferenceController.java48 private AtomicReference<NetworkTemplate> mTemplate; field in DataUsagePreferenceController
53 mTemplate = new AtomicReference<NetworkTemplate>(); in DataUsagePreferenceController()
94 mTemplate.set(null); in init()
110 NetworkTemplate template = mTemplate.get(); in getNetworkTemplate()
116 mTemplate.set(template); in getNetworkTemplate()
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsCategory.java117 final AppOpsState.OpsTemplate mTemplate; field in AppOpsCategory.AppListLoader
125 mTemplate = template; in AppListLoader()
129 return mState.buildState(mTemplate, 0, null, AppOpsState.LABEL_COMPARATOR); in loadInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageListTest.java135 assertThat(mDataUsageList.mTemplate).isNotNull(); in processArgument_shouldGetTemplateFromArgument()
162 assertThat(mDataUsageList.mTemplate).isNotNull(); in processArgument_fromIntent_shouldGetTemplateFromIntent()
DAppDataUsageTest.java442 assertThat(mFragment.mTemplate.getMatchRule()) in onCreate_noNetworkTemplateAndInvalidDataSubscription_shouldUseWifiTemplate()
444 assertNull(mFragment.mTemplate.getSubscriberId()); in onCreate_noNetworkTemplateAndInvalidDataSubscription_shouldUseWifiTemplate()
445 assertThat(mFragment.mTemplate.getNetworkId()) in onCreate_noNetworkTemplateAndInvalidDataSubscription_shouldUseWifiTemplate()