Home
last modified time | relevance | path

Searched refs:limitBytes (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageInfoControllerTest.java86 long limitBytes = -1; in getDefaultNetworkPolicy() local
87 return new NetworkPolicy(template, cycleDay, cycleTimezone, warningBytes, limitBytes, true); in getDefaultNetworkPolicy()
124 policy.limitBytes = NEGATIVE; in testLimitNegative_UpdatedToZero()
132 policy.limitBytes = ZERO; in testLimitZero_UpdatedToZero()
140 policy.limitBytes = POSITIVE_SMALL; in testLimitPositive_UpdatedToLimit()
142 assertThat(info.limitLevel).isEqualTo(policy.limitBytes); in testLimitPositive_UpdatedToLimit()
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java144 final long limitBytes = services.mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in updatePrefs() local
145 if (limitBytes != LIMIT_DISABLED) { in updatePrefs()
146 mDataLimit.setSummary(DataUsageUtils.formatDataUsage(getContext(), limitBytes)); in updatePrefs() local
210 void setPolicyLimitBytes(long limitBytes) { in setPolicyLimitBytes() argument
212 services.mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, limitBytes); in setPolicyLimitBytes()
433 final long limitBytes; in show() local
436 limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in show()
439 args.putLong(EXTRA_LIMIT_BYTES, limitBytes); in show()
468 final long limitBytes = getArguments().getLong(EXTRA_LIMIT_BYTES); in onClick() local
470 target.setPolicyLimitBytes(limitBytes); in onClick()
DChartDataUsagePreference.java86 mPolicy != null ? Math.max(mPolicy.limitBytes, mPolicy.warningBytes) : 0; in getTop()
134 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { in bindNetworkPolicy()
136 labels[2] = getLabel(policy.limitBytes, R.string.data_usage_sweep_limit, mLimitColor); in bindNetworkPolicy()
DDataUsageInfoController.java35 if (policy.limitBytes >= 0) { in updateDataLimit()
36 info.limitLevel = policy.limitBytes; in updateDataLimit()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DBillingCycleSettings.java144 final long limitBytes = services.mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in updatePrefs() local
145 if (limitBytes != LIMIT_DISABLED) { in updatePrefs()
146 mDataLimit.setSummary(DataUsageUtils.formatDataUsage(getContext(), limitBytes)); in updatePrefs() local
210 void setPolicyLimitBytes(long limitBytes) { in setPolicyLimitBytes() argument
212 services.mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, limitBytes); in setPolicyLimitBytes()
433 final long limitBytes; in show() local
436 limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in show()
439 args.putLong(EXTRA_LIMIT_BYTES, limitBytes); in show()
468 final long limitBytes = getArguments().getLong(EXTRA_LIMIT_BYTES); in onClick() local
470 target.setPolicyLimitBytes(limitBytes); in onClick()
DChartDataUsagePreference.java86 mPolicy != null ? Math.max(mPolicy.limitBytes, mPolicy.warningBytes) : 0; in getTop()
134 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { in bindNetworkPolicy()
136 labels[2] = getLabel(policy.limitBytes, R.string.data_usage_sweep_limit, mLimitColor); in bindNetworkPolicy()
DDataUsageInfoController.java35 if (policy.limitBytes >= 0) { in updateDataLimit()
36 info.limitLevel = policy.limitBytes; in updateDataLimit()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataLimitPreferenceController.java90 long limitBytes = getNetworkPolicyEditor().getPolicyLimitBytes(getNetworkTemplate()); in updateState() local
92 if (limitBytes == LIMIT_DISABLED) { in updateState()
98 DataUsageUtils.bytesToIecUnits(getContext(), limitBytes)); in updateState() local
133 long limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in onConfirm() local
135 getNetworkPolicyEditor().setPolicyLimitBytes(getNetworkTemplate(), limitBytes); in onConfirm() local