Searched refs:warningBytes (Results 1 – 7 of 7) sorted by relevance
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/ |
D | DataUsageInfoControllerTest.java | 108 long warningBytes = -1; in getDefaultNetworkPolicy() local 110 return new NetworkPolicy(template, cycleDay, cycleTimezone, warningBytes, limitBytes, true); in getDefaultNetworkPolicy() 123 policy.warningBytes = NEGATIVE; in updateDataLimit_NegativeWarning_UpdatedToZero() 133 policy.warningBytes = ZERO; in updateDataLimit_WarningZero_UpdatedToZero() 143 policy.warningBytes = POSITIVE_SMALL; in updateDataLimit_WarningPositive_UpdatedToWarning() 147 assertThat(info.warningLevel).isEqualTo(policy.warningBytes); in updateDataLimit_WarningPositive_UpdatedToWarning()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | OffloadController.java | 120 public final long warningBytes; field in OffloadController.InterfaceQuota 125 InterfaceQuota(long warningBytes, long limitBytes) { in InterfaceQuota() argument 126 this.warningBytes = warningBytes; in InterfaceQuota() 135 return warningBytes == that.warningBytes 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 382 warningBytes == QUOTA_UNLIMITED ? Long.MAX_VALUE : warningBytes, in onSetWarningAndLimit() 544 ret = mHwInterface.setDataWarningAndLimit(iface, quota.warningBytes, quota.limitBytes); in maybeUpdateDataWarningAndLimit()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | ChartDataUsagePreference.java | 95 mPolicy != null ? Math.max(mPolicy.limitBytes, mPolicy.warningBytes) : 0; in getTop() 272 if (policy.warningBytes != NetworkPolicy.WARNING_DISABLED) { in bindNetworkPolicy() 273 chart.setDividerLoc((int) (policy.warningBytes / RESOLUTION)); in bindNetworkPolicy() 274 float weight = policy.warningBytes / RESOLUTION / (float) top; in bindNetworkPolicy() 278 labels[1] = getLabel(policy.warningBytes, R.string.data_usage_sweep_warning, in bindNetworkPolicy()
|
D | BillingCycleSettings.java | 132 final long warningBytes = services.mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate); in updatePrefs() local 133 if (warningBytes != WARNING_DISABLED) { in updatePrefs() 134 mDataWarning.setSummary(DataUsageUtils.formatDataUsage(getContext(), warningBytes)); in updatePrefs() local 217 private void setPolicyWarningBytes(long warningBytes) { in setPolicyWarningBytes() argument 219 services.mPolicyEditor.setPolicyWarningBytes(mNetworkTemplate, warningBytes); in setPolicyWarningBytes() 445 final long minLimitBytes = (long) (policy.warningBytes * FLOAT); in show()
|
D | DataUsageInfoController.java | 32 if (policy.warningBytes >= 0) { in updateDataLimit() 33 info.warningLevel = policy.warningBytes; in updateDataLimit()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataWarningPreferenceController.java | 77 long warningBytes = getNetworkPolicyEditor().getPolicyWarningBytes(getNetworkTemplate()); in updateState() local 78 if (warningBytes == WARNING_DISABLED) { in updateState() 83 DataUsageUtils.bytesToIecUnits(getContext(), warningBytes)); in updateState() local
|
D | DataLimitPreferenceController.java | 128 long warningBytes = getNetworkPolicyEditor().getPolicyWarningBytes(getNetworkTemplate()); in onConfirm() local 130 if (warningBytes != WARNING_DISABLED) { in onConfirm() 131 minLimitBytes = (long) (warningBytes * LIMIT_BYTES_MULTIPLIER); in onConfirm()
|