Searched refs:limitBytes (Results 1 – 7 of 7) sorted by relevance
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | BillingCycleSettings.java | 122 final long limitBytes = services.mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in updatePrefs() local 123 if (limitBytes != LIMIT_DISABLED) { in updatePrefs() 124 mDataLimit.setSummary(Formatter.formatFileSize(getContext(), limitBytes)); in updatePrefs() local 178 void setPolicyLimitBytes(long limitBytes) { in setPolicyLimitBytes() argument 180 services.mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, limitBytes); in setPolicyLimitBytes() 413 final long limitBytes; in show() local 417 limitBytes = Math.max(5 * GB_IN_BYTES, minLimitBytes); in show() 421 args.putLong(EXTRA_LIMIT_BYTES, limitBytes); in show() 452 final long limitBytes = getArguments().getLong(EXTRA_LIMIT_BYTES); in onClick() local 454 target.setPolicyLimitBytes(limitBytes); in onClick()
|
D | ChartDataUsagePreference.java | 87 long policyMax = mPolicy != null ? Math.max(mPolicy.limitBytes, mPolicy.warningBytes) : 0; in getTop() 132 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { in bindNetworkPolicy() 134 labels[2] = getLabel(policy.limitBytes, R.string.data_usage_sweep_limit, mLimitColor); in bindNetworkPolicy()
|
D | DataUsageInfoController.java | 34 if (policy.limitBytes >= 0) { in updateDataLimit() 35 info.limitLevel = policy.limitBytes; in updateDataLimit()
|
D | DataPlanUsageSummary.java | 314 if (policy.limitBytes != LIMIT_DISABLED) { in isMetered()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsageInfoControllerTest.java | 85 long limitBytes = -1; in getDefaultNetworkPolicy() local 86 return new NetworkPolicy(template,cycleDay, cycleTimezone, warningBytes, limitBytes, true); in getDefaultNetworkPolicy() 123 policy.limitBytes = NEGATIVE; in testLimitNegative_UpdatedToZero() 131 policy.limitBytes = ZERO; in testLimitZero_UpdatedToZero() 139 policy.limitBytes = POSITIVE_SMALL; in testLimitPositive_UpdatedToLimit() 141 assertThat(info.limitLevel).isEqualTo(policy.limitBytes); in testLimitPositive_UpdatedToLimit()
|
D | DataPlanUsageSummaryTest.java | 106 mNetworkPolicy.limitBytes = 100; in testIsMetered_policyHasLimit_shouldReturnTrue() 117 mNetworkPolicy.limitBytes = NetworkPolicy.LIMIT_DISABLED; in testIsMetered_noPolicyLimit_shouldReturnMeteredValue()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartDataUsageView.java | 177 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { in bindNetworkPolicy() 180 mSweepLimit.setValue(policy.limitBytes); in bindNetworkPolicy()
|