/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | TestableNetworkStatsProviderBinder.kt | 32 val limitBytes: 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 | 37 val limitBytes: Long constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetWarningAndLimit 39 data class OnSetLimit(val iface: String, val limitBytes: Long) : CallbackType() { constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetLimit 42 get() = limitBytes 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/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataLimitPreferenceController.java | 84 long limitBytes = getNetworkPolicyEditor().getPolicyLimitBytes(getNetworkTemplate()); in updateState() local 86 if (limitBytes == LIMIT_DISABLED) { in updateState() 92 DataUsageUtils.bytesToIecUnits(getContext(), limitBytes)); in updateState() local 127 long limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in onConfirm() local 129 getNetworkPolicyEditor().setPolicyLimitBytes(getNetworkTemplate(), limitBytes); in onConfirm() local
|
/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 219 onSetLimit(iface, limitBytes); in onSetWarningAndLimit()
|
D | INetworkStatsProvider.aidl | 27 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() 133 DataUsageUtils.formatDataUsage(mContext, limitBytes), in getLimitInfo() 144 limitBytes > 0 -> { in getLimitInfo() 147 DataUsageUtils.formatDataUsage(mContext, limitBytes), in getLimitInfo()
|
D | BillingCycleSettings.java | 164 final long limitBytes = services.mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate); in updatePrefs() local 165 if (limitBytes != LIMIT_DISABLED) { in updatePrefs() 166 mDataLimit.setSummary(DataUsageUtils.formatDataUsage(getContext(), limitBytes)); in updatePrefs() local 233 void setPolicyLimitBytes(long limitBytes) { in setPolicyLimitBytes() argument 235 services.mPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, limitBytes); in setPolicyLimitBytes() 479 final long limitBytes; in show() local 482 limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in show() 485 args.putLong(EXTRA_LIMIT_BYTES, limitBytes); in show() 516 final long limitBytes = getArguments().getLong(EXTRA_LIMIT_BYTES); in onClick() local 518 target.setPolicyLimitBytes(limitBytes); in onClick()
|
D | ChartDataUsagePreference.java | 94 mPolicy != null ? Math.max(mPolicy.limitBytes, mPolicy.warningBytes) : 0; in getTop() 261 if (policy.limitBytes != NetworkPolicy.LIMIT_DISABLED) { in bindNetworkPolicy() 263 labels[2] = getLabel(policy.limitBytes, R.string.data_usage_sweep_limit, mLimitColor); 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 | 120 public final long limitBytes; field in OffloadController.InterfaceQuota 124 InterfaceQuota(long warningBytes, long limitBytes) { in InterfaceQuota() argument 126 this.limitBytes = limitBytes; in InterfaceQuota() 135 && limitBytes == that.limitBytes; 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 372 limitBytes == QUOTA_UNLIMITED ? Long.MAX_VALUE : limitBytes); in onSetWarningAndLimit() 533 ret = mHwInterface.setDataWarningAndLimit(iface, quota.warningBytes, quota.limitBytes); in maybeUpdateDataWarningAndLimit() 535 ret = mHwInterface.setDataLimit(iface, quota.limitBytes); in maybeUpdateDataWarningAndLimit()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.kt | 160 limitBytes = NetworkPolicy.LIMIT_DISABLED in <lambda>() 175 limitBytes = NetworkPolicy.LIMIT_DISABLED in <lambda>() 193 limitBytes = 1L in onViewCreated_policyLimitOnly() 211 limitBytes = BillingCycleSettings.GIB_IN_BYTES in onViewCreated_policyHasWarningAndLimit()
|