/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | TestableNetworkStatsProviderBinder.kt | 31 val warningBytes: Long, constant in com.android.testutils.TestableNetworkStatsProviderBinder.CallbackType.OnSetWarningAndLimit 46 override fun onSetWarningAndLimit(iface: String, warningBytes: Long, limitBytes: Long) { in onSetWarningAndLimit() 47 history.add(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes)) in onSetWarningAndLimit() 54 fun expectOnSetWarningAndLimit(iface: String, warningBytes: Long, limitBytes: Long) { in expectOnSetWarningAndLimit() 55 assertEquals(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes), in expectOnSetWarningAndLimit()
|
D | TestableNetworkStatsProvider.kt | 36 val warningBytes: Long, constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetWarningAndLimit 57 override fun onSetWarningAndLimit(iface: String, warningBytes: Long, limitBytes: Long) { in onSetWarningAndLimit() 58 Log.d(TAG, "onSetWarningAndLimit $iface $warningBytes $limitBytes") in onSetWarningAndLimit() 59 history.add(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes)) in onSetWarningAndLimit()
|
D | NetworkStatsProviderStubCompat.java | 36 public void onSetWarningAndLimit(String iface, long warningBytes, long limitBytes) {} in onSetWarningAndLimit() argument
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceController.kt | 93 val dataBarSize = max(policy.limitBytes, policy.warningBytes) in update() 129 warningBytes > 0 && limitBytes > 0 -> { in getLimitInfo() 132 DataUsageUtils.formatDataUsage(mContext, warningBytes), in getLimitInfo() 137 warningBytes > 0 -> { in getLimitInfo() 140 DataUsageUtils.formatDataUsage(mContext, warningBytes), in getLimitInfo()
|
D | BillingCycleSettings.java | 154 final long warningBytes = services.mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate); in updatePrefs() local 155 if (warningBytes != WARNING_DISABLED) { in updatePrefs() 156 mDataWarning.setSummary(DataUsageUtils.formatDataUsage(getContext(), warningBytes)); in updatePrefs() local 239 private void setPolicyWarningBytes(long warningBytes) { in setPolicyWarningBytes() argument 241 services.mPolicyEditor.setPolicyWarningBytes(mNetworkTemplate, warningBytes); in setPolicyWarningBytes() 478 final long minLimitBytes = (long) (policy.warningBytes * FLOAT); in show()
|
D | ChartDataUsagePreference.java | 94 mPolicy != null ? Math.max(mPolicy.limitBytes, mPolicy.warningBytes) : 0; in getTop() 266 if (policy.warningBytes != NetworkPolicy.WARNING_DISABLED) { in bindNetworkPolicy() 267 int dividerLoc = (int) (policy.warningBytes / RESOLUTION); in bindNetworkPolicy() 273 labels[1] = getLabel(policy.warningBytes, R.string.data_usage_sweep_warning, in bindNetworkPolicy()
|
D | DataPlanRepository.kt | 58 dataBarSize = maxOf(dataUsage, policy.limitBytes, policy.warningBytes), in getDataPlanInfo()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | OffloadController.java | 119 public final long warningBytes; field in OffloadController.InterfaceQuota 124 InterfaceQuota(long warningBytes, long limitBytes) { in InterfaceQuota() argument 125 this.warningBytes = warningBytes; in InterfaceQuota() 134 return warningBytes == that.warningBytes in equals() 140 return (int) (warningBytes * 3 + limitBytes * 5); in hashCode() 145 return "InterfaceQuota{" + "warning=" + warningBytes + ", limit=" + limitBytes + '}'; in toString() 365 long warningBytes, long limitBytes) { in onSetWarningAndLimit() argument 371 warningBytes == QUOTA_UNLIMITED ? Long.MAX_VALUE : warningBytes, in onSetWarningAndLimit() 533 ret = mHwInterface.setDataWarningAndLimit(iface, quota.warningBytes, quota.limitBytes); in maybeUpdateDataWarningAndLimit()
|
/packages/modules/Connectivity/framework-t/src/android/net/netstats/provider/ |
D | NetworkStatsProvider.java | 51 public void onSetWarningAndLimit(String iface, long warningBytes, long limitBytes) { 52 NetworkStatsProvider.this.onSetWarningAndLimit(iface, warningBytes, limitBytes); 217 public void onSetWarningAndLimit(@NonNull String iface, long warningBytes, long limitBytes) { in onSetWarningAndLimit() argument
|
D | INetworkStatsProvider.aidl | 27 void onSetWarningAndLimit(String iface, long warningBytes, long limitBytes); in onSetWarningAndLimit() argument
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataWarningPreferenceController.java | 71 long warningBytes = getNetworkPolicyEditor().getPolicyWarningBytes(getNetworkTemplate()); in updateState() local 72 if (warningBytes == WARNING_DISABLED) { in updateState() 77 DataUsageUtils.bytesToIecUnits(getContext(), warningBytes)); in updateState() local
|
D | DataLimitPreferenceController.java | 121 long warningBytes = getNetworkPolicyEditor().getPolicyWarningBytes(getNetworkTemplate()); in onConfirm() local 123 if (warningBytes != WARNING_DISABLED) { in onConfirm() 124 minLimitBytes = (long) (warningBytes * LIMIT_BYTES_MULTIPLIER); in onConfirm()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.kt | 159 warningBytes = NetworkPolicy.WARNING_DISABLED in <lambda>() 174 warningBytes = 1L in <lambda>() 192 warningBytes = NetworkPolicy.WARNING_DISABLED in onViewCreated_policyLimitOnly() 210 warningBytes = BillingCycleSettings.GIB_IN_BYTES / 2 in onViewCreated_policyHasWarningAndLimit()
|