Searched refs:limitBytes (Results 1 – 6 of 6) sorted by relevance
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | OffloadController.java | 121 public final long limitBytes; field in OffloadController.InterfaceQuota 125 InterfaceQuota(long warningBytes, long limitBytes) { in InterfaceQuota() argument 127 this.limitBytes = limitBytes; in InterfaceQuota() 136 && limitBytes == that.limitBytes; in equals() 141 return (int) (warningBytes * 3 + limitBytes * 5); in hashCode() 146 return "InterfaceQuota{" + "warning=" + warningBytes + ", limit=" + limitBytes + '}'; in toString() 376 long warningBytes, long limitBytes) { in onSetWarningAndLimit() argument 383 limitBytes == QUOTA_UNLIMITED ? Long.MAX_VALUE : limitBytes); in onSetWarningAndLimit() 544 ret = mHwInterface.setDataWarningAndLimit(iface, quota.warningBytes, quota.limitBytes); in maybeUpdateDataWarningAndLimit() 546 ret = mHwInterface.setDataLimit(iface, quota.limitBytes); in maybeUpdateDataWarningAndLimit()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/ |
D | DataUsageInfoControllerTest.java | 109 long limitBytes = -1; in getDefaultNetworkPolicy() local 110 return new NetworkPolicy(template, cycleDay, cycleTimezone, warningBytes, limitBytes, true); in getDefaultNetworkPolicy() 153 policy.limitBytes = NEGATIVE; in updateDataLimit_LimitNegative_UpdatedToZero() 163 policy.limitBytes = ZERO; in updateDataLimit_LimitZero_UpdatedToZero() 173 policy.limitBytes = POSITIVE_SMALL; in updateDataLimit_LimitPositive_UpdatedToLimit() 177 assertThat(info.limitLevel).isEqualTo(policy.limitBytes); in updateDataLimit_LimitPositive_UpdatedToLimit()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | BillingCycleSettings.java | 142 final long limitBytes = services.mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in updatePrefs() local 143 if (limitBytes != LIMIT_DISABLED) { in updatePrefs() 144 mDataLimit.setSummary(DataUsageUtils.formatDataUsage(getContext(), limitBytes)); in updatePrefs() local 211 void setPolicyLimitBytes(long limitBytes) { in setPolicyLimitBytes() argument 213 services.mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, limitBytes); in setPolicyLimitBytes() 446 final long limitBytes; in show() local 449 limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in show() 452 args.putLong(EXTRA_LIMIT_BYTES, limitBytes); in show() 481 final long limitBytes = getArguments().getLong(EXTRA_LIMIT_BYTES); in onClick() local 483 target.setPolicyLimitBytes(limitBytes); in onClick()
|
D | DataUsageInfoController.java | 35 if (policy.limitBytes >= 0) { in updateDataLimit() 36 info.limitLevel = policy.limitBytes; in updateDataLimit()
|
D | ChartDataUsagePreference.java | 95 mPolicy != null ? Math.max(mPolicy.limitBytes, mPolicy.warningBytes) : 0; in getTop() 267 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { in bindNetworkPolicy() 269 labels[2] = getLabel(policy.limitBytes, R.string.data_usage_sweep_limit, mLimitColor); in bindNetworkPolicy()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataLimitPreferenceController.java | 91 long limitBytes = getNetworkPolicyEditor().getPolicyLimitBytes(getNetworkTemplate()); in updateState() local 93 if (limitBytes == LIMIT_DISABLED) { in updateState() 99 DataUsageUtils.bytesToIecUnits(getContext(), limitBytes)); in updateState() local 134 long limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in onConfirm() local 136 getNetworkPolicyEditor().setPolicyLimitBytes(getNetworkTemplate(), limitBytes); in onConfirm() local
|