Searched refs:thresholdInBytes (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | DataUsageRequest.java | 53 public final long thresholdInBytes; field in DataUsageRequest 55 public DataUsageRequest(int requestId, NetworkTemplate template, long thresholdInBytes) { in DataUsageRequest() argument 58 this.thresholdInBytes = thresholdInBytes; in DataUsageRequest() 70 dest.writeLong(thresholdInBytes); in writeToParcel() 79 long thresholdInBytes = in.readLong(); 81 thresholdInBytes); 95 + ", thresholdInBytes=" + thresholdInBytes + " ]"; in toString() 104 && that.thresholdInBytes == this.thresholdInBytes; in equals() 109 return Objects.hash(requestId, template, thresholdInBytes); in hashCode()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsObserversTest.java | 161 assertEquals(thresholdTooLowBytes, requestByApp.thresholdInBytes); in testRegister_thresholdTooLow_setsDefaultThreshold() 169 assertEquals(1, requestBySystem.thresholdInBytes); in testRegister_thresholdTooLow_setsDefaultThreshold() 182 assertEquals(highThresholdBytes, request.thresholdInBytes); in testRegister_highThreshold_accepted() 194 assertEquals(THRESHOLD_BYTES, request1.thresholdInBytes); in testRegister_twoRequests_twoIds() 200 assertEquals(THRESHOLD_BYTES, request2.thresholdInBytes); in testRegister_twoRequests_twoIds() 265 assertEquals(THRESHOLD_BYTES, request.thresholdInBytes); in testUnregister_knownRequest_releasesCaller() 285 assertEquals(THRESHOLD_BYTES, request.thresholdInBytes); in testUnregister_knownRequest_invalidUid_doesNotUnregister() 317 assertEquals(THRESHOLD_BYTES, request.thresholdInBytes); in testUpdateStats_initialSample_doesNotNotify() 341 assertEquals(THRESHOLD_BYTES, request.thresholdInBytes); in testUpdateStats_belowThreshold_doesNotNotify() 371 assertEquals(THRESHOLD_BYTES, request.thresholdInBytes); in testUpdateStats_deviceAccess_notifies() [all …]
|
D | NetworkStatsServiceTest.java | 1723 long thresholdInBytes = 1L; // very small; should be overriden by framework in testRegisterUsageCallback() local 1725 DataUsageRequest.REQUEST_ID_UNSET, sTemplateWifi, thresholdInBytes); in testRegisterUsageCallback() 1738 assertEquals(minThresholdInBytes, request.thresholdInBytes); in testRegisterUsageCallback() 1793 long thresholdInBytes = 10 * 1024 * 1024; // 10 MB in testUnregisterUsageCallback_unknown_noop() local 1795 2 /* requestId */, sTemplateImsi1, thresholdInBytes); in testUnregisterUsageCallback_unknown_noop() 3044 long thresholdInBytes = 10 * 1024 * 1024; // 10 MB in testEnforcePackageNameMatchesUid() local 3046 2 /* requestId */, sTemplateImsi1, thresholdInBytes); in testEnforcePackageNameMatchesUid()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsObservers.java | 226 final long thresholdInBytes = (context.checkPermission( in buildRequest() local 228 == PackageManager.PERMISSION_GRANTED ? request.thresholdInBytes in buildRequest() 229 : Math.max(MIN_THRESHOLD_BYTES, request.thresholdInBytes)); in buildRequest() 230 if (thresholdInBytes > request.thresholdInBytes) { in buildRequest() 232 + ". Overriding to a safer default of " + thresholdInBytes + " bytes"); in buildRequest() 235 request.template, thresholdInBytes); in buildRequest() 382 if (bytesSoFar > mRequest.thresholdInBytes) { in checkStats() 424 if (bytesSoFar > mRequest.thresholdInBytes) { in checkStats()
|
/packages/modules/Connectivity/framework-t/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority-tiramisu.txt | 79 Landroid/net/DataUsageRequest;->thresholdInBytes:J
|