/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | AppDataUsageFragment.java | 51 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()
|
D | DataWarningAndLimitFragment.java | 47 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()
|
D | DataWarningAndLimitBasePreferenceController.java | 40 private NetworkTemplate mNetworkTemplate; field in DataWarningAndLimitBasePreferenceController 59 return mNetworkTemplate; in getNetworkTemplate() 64 mNetworkTemplate = networkTemplate; in setNetworkTemplate()
|
D | DataUsageSetThresholdBaseFragment.java | 57 NetworkTemplate mNetworkTemplate; field in DataUsageSetThresholdBaseFragment 84 mNetworkTemplate = getArguments().getParcelable( in onAttach() 86 if (mNetworkTemplate == null) { in onAttach() 89 mNetworkTemplate = DataUsageUtils.getMobileNetworkTemplate(mTelephonyManager, in onAttach()
|
D | DataUsageCycleManager.java | 53 private final NetworkTemplate mNetworkTemplate; field in DataUsageCycleManager 59 mNetworkTemplate = networkTemplate; in DataUsageCycleManager() 99 .setNetworkTemplate(mNetworkTemplate) in onCreateLoader()
|
D | AppSpecificDataUsageManager.java | 53 private final NetworkTemplate mNetworkTemplate; field in AppSpecificDataUsageManager 60 mNetworkTemplate = networkTemplate; in AppSpecificDataUsageManager() 107 builder.setNetworkTemplate(mNetworkTemplate); in onCreateLoader()
|
D | DataLimitSetThresholdFragment.java | 45 mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, threshold); in onSave() 56 return mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in getInitialBytes()
|
D | DataWarningSetThresholdFragment.java | 45 mPolicyEditor.setPolicyWarningBytes(mNetworkTemplate, threshold); in onSave() 56 return mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate); in getInitialBytes()
|
D | AppDataUsagePreferenceController.java | 60 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/ |
D | DataWarningPreferenceControllerTest.java | 75 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()
|
D | AppSpecificDataUsageManagerTest.java | 63 private NetworkTemplate mNetworkTemplate; field in AppSpecificDataUsageManagerTest 69 mAppSpecificDataUsageManager = new AppSpecificDataUsageManager(mContext, mNetworkTemplate, in setUp()
|
D | DataUsageCycleManagerTest.java | 61 private NetworkTemplate mNetworkTemplate; field in DataUsageCycleManagerTest 67 mDataUsageCycleManager = new DataUsageCycleManager(mContext, mNetworkTemplate); in setUp()
|
D | DataUsageSetThresholdBaseFragmentTest.java | 104 assertThat(mFragment.mNetworkTemplate).isEqualTo(mMockNetworkTemplate); in onActivityCreated_noTemplateSet_getsDefaultTemplate()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | BillingCycleSettings.java | 84 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/ |
D | NetworkBasePreferenceController.java | 42 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/ |
D | BillingCycleSettingsTest.java | 169 assertThat(billingCycleSettings.mNetworkTemplate).isNotNull(); in onCreate_emptyArguments_shouldSetDefaultNetworkTemplate()
|