/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | NetworkStatsUtilsTest.kt | 42 assertEquals(0, NetworkStatsUtils.multiplySafeByRational(0, Long.MAX_VALUE, Long.MAX_VALUE)) in testMultiplySafeByRational() 43 assertEquals(0, NetworkStatsUtils.multiplySafeByRational(Long.MAX_VALUE, 0, Long.MAX_VALUE)) in testMultiplySafeByRational() 53 101, Long.MAX_VALUE, Long.MAX_VALUE)) in testMultiplySafeByRational() 55 Long.MAX_VALUE, 721, Long.MAX_VALUE)) in testMultiplySafeByRational() 56 assertEquals(Long.MAX_VALUE, NetworkStatsUtils.multiplySafeByRational( in testMultiplySafeByRational() 57 Long.MAX_VALUE, Long.MAX_VALUE, Long.MAX_VALUE)) in testMultiplySafeByRational() 59 NetworkStatsUtils.multiplySafeByRational(Long.MAX_VALUE, Long.MAX_VALUE, 0) in testMultiplySafeByRational()
|
D | BitUtilsTests.kt | 36 runBitPackingTestCase(Long.MAX_VALUE.inv(), intArrayOf(63)) in <lambda>() 37 runBitPackingTestCase(Long.MAX_VALUE.inv() + 1, intArrayOf(0, 63)) in <lambda>() 38 runBitPackingTestCase(Long.MAX_VALUE.inv() + 2, intArrayOf(1, 63)) in <lambda>() 69 assertNull(describe(Long.MAX_VALUE, Long.MAX_VALUE)) in <lambda>()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/v2/ |
D | PickerDataLayerV2Test.java | 200 final int cloudUID = Integer.MAX_VALUE; in testAvailableProvidersWithCloudProvider() 298 mMockContext, getMediaQueryExtras(Long.MAX_VALUE, DATE_TAKEN_MS, /* pageSize */ 2, in testQueryMediaWithInvalidProviders() argument 321 mMockContext, getMediaQueryExtras(Long.MAX_VALUE, DATE_TAKEN_MS, /* pageSize */ 2, in testQueryMediaWithCloudQueryDisabled() argument 351 mMockContext, getMediaQueryExtras(Long.MAX_VALUE, Long.MAX_VALUE, /* pageSize */ 3, in testQueryLocalMediaSortOrder() argument 388 mMockContext, getMediaQueryExtras(Long.MAX_VALUE, DATE_TAKEN_MS, /* pageSize */ 2, in queryMediaWithCloudQueryEnabled() argument 422 mMockContext, getMediaQueryExtras(Long.MAX_VALUE, Long.MAX_VALUE, /* pageSize */ 3, in testQueryCloudMediaSortOrder() argument 463 mMockContext, getMediaQueryExtras(Long.MAX_VALUE, Long.MAX_VALUE, /* pageSize */ 3, in testQueryLocalAndCloudMediaSortOrder() argument 503 final Bundle mediaQueryExtras = getMediaQueryExtras(Long.MAX_VALUE, in testQueryMediaActionGetContent() 504 Long.MAX_VALUE, /* pageSize */ 3, in testQueryMediaActionGetContent() 547 mMockContext, getMediaQueryExtras(Long.MAX_VALUE, Long.MAX_VALUE, /* pageSize */ 3, in testLocalAndCloudQueryDedupe() argument [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | QosCharacteristics.java | 236 && !checkIntRange(mMaxMsduSizeOctets, 1, Short.MAX_VALUE)) { in validate() 255 && !checkIntRange(mMsduLifetimeMillis, 1, Short.MAX_VALUE)) { in validate() 283 @IntRange(from = 1, to = Integer.MAX_VALUE) 294 @IntRange(from = 1, to = Integer.MAX_VALUE) 305 @IntRange(from = 1, to = Integer.MAX_VALUE) 316 @IntRange(from = 1, to = Integer.MAX_VALUE) 328 @IntRange(from = 1, to = Short.MAX_VALUE) 343 @IntRange(from = 0, to = Integer.MAX_VALUE) 372 @IntRange(from = 1, to = Integer.MAX_VALUE) 387 @IntRange(from = 1, to = Integer.MAX_VALUE) [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | CredentialsTest.java | 33 cred = new Credentials(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE); in testCredentials() 34 assertEquals(Integer.MAX_VALUE, cred.getGid()); in testCredentials() 35 assertEquals(Integer.MAX_VALUE, cred.getPid()); in testCredentials() 36 assertEquals(Integer.MAX_VALUE, cred.getUid()); in testCredentials()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | RssiMonitorTest.java | 102 verify(mWifiNative).startRssiMonitoring(eq(TEST_INTERFACE_NAME), eq(Byte.MAX_VALUE), in setUp() 114 eq(Byte.MAX_VALUE), eq((byte) TEST_APP_RSSI_THRESHOLDS[0]), in verifyShortIntervalAndMonitorStatus() 120 verify(mWifiNative).startRssiMonitoring(eq(TEST_INTERFACE_NAME), eq(Byte.MAX_VALUE), in verifyLongIntervalAndMonitorStatus() 220 eq(Byte.MAX_VALUE), eq((byte) TEST_APP_RSSI_THRESHOLDS[0]), in testOnAppRssiThresholdBreached() 234 verify(mWifiNative).startRssiMonitoring(eq(TEST_INTERFACE_NAME), eq(Byte.MAX_VALUE), in testOnRssiThresholdBreachedIdenticalAppFrameworkThreshold() 239 eq(Byte.MAX_VALUE), eq((byte) TEST_CLIENT_RSSI_THRESHOLD), in testOnRssiThresholdBreachedIdenticalAppFrameworkThreshold() 272 eq(Byte.MAX_VALUE), eq((byte) TEST_CLIENT_RSSI_THRESHOLD), in testAdjustPollRssiIntervalDisabled() 276 verify(mWifiNative).startRssiMonitoring(eq(TEST_INTERFACE_NAME), eq(Byte.MAX_VALUE), in testAdjustPollRssiIntervalDisabled() 291 eq(Byte.MAX_VALUE), eq((byte) TEST_CLIENT_RSSI_THRESHOLD), in testOverridePollRssiIntervalAdjustIntervalDisabled() 310 eq(TEST_INTERFACE_NAME), eq(Byte.MAX_VALUE), in testOverridePollRssiIntervalAdjustIntervalEnabled() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/ |
D | NewVoicemailAdapter.java | 83 private int todayHeaderPosition = Integer.MAX_VALUE; 85 private int yesterdayHeaderPosition = Integer.MAX_VALUE; 87 private int olderHeaderPosition = Integer.MAX_VALUE; 89 private int voicemailAlertPosition = Integer.MAX_VALUE; 143 todayHeaderPosition = Integer.MAX_VALUE; in updateHeaderPositions() 144 yesterdayHeaderPosition = Integer.MAX_VALUE; in updateHeaderPositions() 145 olderHeaderPosition = Integer.MAX_VALUE; in updateHeaderPositions() 174 if (voicemailAlertPosition != Integer.MAX_VALUE) { in updateHeaderPositions() 182 todayHeaderPosition = numItemsInToday > 0 ? alertOffSet : Integer.MAX_VALUE; in updateHeaderPositions() 184 numItemsInYesterday > 0 ? numItemsInToday + alertOffSet : Integer.MAX_VALUE; in updateHeaderPositions() [all …]
|
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/ |
D | AndroidSdkRangeTest.java | 28 import static java.lang.Integer.MAX_VALUE; 41 assertThrows(IllegalArgumentException.class, () -> forAtLeast(MAX_VALUE)); in testInvalidRanges() 49 expectInRange(atLeast33, MAX_VALUE - 1); in testIsInRange() 50 expectInRange(atLeast33, MAX_VALUE); in testIsInRange() 61 expectNotInRange(atMost33, MAX_VALUE - 1); in testIsInRange() 62 expectNotInRange(atMost33, MAX_VALUE); in testIsInRange() 70 expectNotInRange(exactly33Indirectly, MAX_VALUE - 1); in testIsInRange() 71 expectNotInRange(exactly33Indirectly, MAX_VALUE); in testIsInRange() 79 expectNotInRange(exactly33Directly, MAX_VALUE - 1); in testIsInRange() 80 expectNotInRange(exactly33Directly, MAX_VALUE); in testIsInRange() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | TextSizeHelper.kt | 37 private var mWidthConstraint = Int.MAX_VALUE 40 private var mHeightConstraint = Int.MAX_VALUE 46 var widthConstraint = Int.MAX_VALUE in onMeasure() 52 var heightConstraint = Int.MAX_VALUE in onMeasure() 84 (mWidthConstraint < Int.MAX_VALUE || mHeightConstraint < Int.MAX_VALUE)) { in adjustTextSize()
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/io/ |
D | TypedStreamsTest.java | 45 tos.writeChar(Character.MAX_VALUE); in writeReadOk() 55 tos.writeByte(Byte.MAX_VALUE); in writeReadOk() 82 assertEquals(Character.MAX_VALUE, tis.readChar()); in writeReadOk() 92 assertEquals(Byte.MAX_VALUE, tis.readSignedByte()); in writeReadOk() 188 () -> tos.writeVarByteValue(0, Long.MAX_VALUE)); in writeBoundChecks() 190 () -> tos.writeVarByteValue(9, Long.MAX_VALUE)); in writeBoundChecks() 193 assertThrows(IllegalArgumentException.class, () -> tos.writeByte(Byte.MAX_VALUE + 1)); in writeBoundChecks() 196 assertThrows(IllegalArgumentException.class, () -> tos.writeChar(Character.MAX_VALUE + 1)); in writeBoundChecks()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | NotificationModel.kt | 44 get() = Int.MAX_VALUE - 1 50 get() = Int.MAX_VALUE - 2 56 get() = Int.MAX_VALUE - 3 62 get() = Int.MAX_VALUE - 6
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/platform/ |
D | FakeSettingsTest.kt | 62 assertThat(settings.getFloatOrNull(longKey)).isWithin(0.00001f).of(Long.MAX_VALUE.toFloat()) in testMismatchedTypes() 70 const val intVal = Int.MAX_VALUE 76 const val floatVal = Float.MAX_VALUE 79 const val longVal = Long.MAX_VALUE
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/ |
D | AreaIdConfigTest.java | 33 private static final int MAX_VALUE = 10; field in AreaIdConfigTest 37 ACCESS, AREA_ID).setMaxValue(MAX_VALUE).setMinValue(MIN_VALUE).setSupportedEnumValues( 62 assertThat(AREA_ID_CONFIG.getMaxValue()).isEqualTo(MAX_VALUE); in getMaxValue_returnsExpectedValue() 107 assertThat((Integer) areaIdConfig.getMaxValue()).isEqualTo(MAX_VALUE); in writeToParcel_writesCorrectly()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | KnownBandsChannelHelperTest.java | 359 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in empty() 381 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in clear() 402 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in addBand() 423 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in addChannel_single() 445 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in addChannel_multiple() 467 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in addChannel_and_addBand_sameBand() 489 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in addChannel_and_addBand_withDifferentBandChannel() 511 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in addChannel_and_addBand_all() 574 mChannelCollection.fillBucketSettings(bucketSettings, Integer.MAX_VALUE); in addChannel_addAllAvailableChannels()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollController.java | 361 || mScrollMax == Integer.MAX_VALUE) { in updateScrollMax() 369 mScrollMax = Integer.MAX_VALUE; in invalidateScrollMax() 370 mMaxEdge = Integer.MAX_VALUE; in invalidateScrollMax() 371 mTouchScrollMax = Integer.MAX_VALUE; in invalidateScrollMax() 423 mScrollMax = Integer.MAX_VALUE; in reset() 424 mMaxEdge = Integer.MAX_VALUE; in reset() 425 mTouchScrollMax = Integer.MAX_VALUE; in reset() 435 return mScrollMax == Integer.MAX_VALUE; in isMaxUnknown() 775 Integer.MAX_VALUE, in fling() 777 Integer.MAX_VALUE); in fling()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | FakeSystemFacade.java | 38 long mMaxBytesOverMobile = Long.MAX_VALUE; 39 long mRecommendedMaxBytesOverMobile = Long.MAX_VALUE; 51 mMaxBytesOverMobile = Long.MAX_VALUE; in setUp() 52 mRecommendedMaxBytesOverMobile = Long.MAX_VALUE; in setUp()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CellInfoUtil.java | 146 Integer.MAX_VALUE /* lac */, in convertOperatorInfoToCellInfo() 147 Integer.MAX_VALUE /* cid */, in convertOperatorInfoToCellInfo() 148 Integer.MAX_VALUE /* arfcn */, in convertOperatorInfoToCellInfo() 149 Integer.MAX_VALUE /* bsic */, in convertOperatorInfoToCellInfo()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DocumentsAdapter.java | 50 public static final int ITEM_TYPE_SECTION_BREAK = Integer.MAX_VALUE; 51 public static final int ITEM_TYPE_HEADER_MESSAGE = Integer.MAX_VALUE - 1; 52 public static final int ITEM_TYPE_INFLATED_MESSAGE = Integer.MAX_VALUE - 2;
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioVolumeGroup.java | 42 private int mDefaultGain = Integer.MAX_VALUE; 46 private int mMinGain = Integer.MAX_VALUE; 126 int minGain = Integer.MAX_VALUE; in calculateNewGainStageFromDeviceInfos() 128 int defaultGain = Integer.MAX_VALUE; in calculateNewGainStageFromDeviceInfos()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/noising/ |
D | CombinatoricsTest.java | 192 Long.MAX_VALUE))); in testNumStatesFlexApi() 198 Long.MAX_VALUE, in getNumStatesFlexApi_iterativeOverBound_returnsLongMaxValue() 221 Long.MAX_VALUE - 1L)); in getNumStatesFlexApi_iterativeGreaterThanLong_throws() 227 Long.MAX_VALUE, in getNumStatesFlexApi_arithmeticOverBound_returnsLongMaxValue()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsHistoryTest.java | 105 entry = history.getValues(Long.MIN_VALUE, Long.MAX_VALUE, entry); in testReadOriginalVersion() 459 assertEquals(Long.MAX_VALUE, performVarLong(Long.MAX_VALUE)); in testVarLong() 461 assertEquals(Long.MAX_VALUE - 40, performVarLong(Long.MAX_VALUE - 40)); in testVarLong() 507 assertIndexBeforeAfter(stats, 4, 4, Long.MAX_VALUE); in testIndexBeforeAfter() 534 assertFalse(stats.intersects(Long.MAX_VALUE, Long.MIN_VALUE)); in testIntersects() 536 assertTrue(stats.intersects(Long.MIN_VALUE, Long.MAX_VALUE)); in testIntersects() 540 assertTrue(stats.intersects(TEST_START + DAY_IN_MILLIS, Long.MAX_VALUE)); in testIntersects() 541 assertTrue(stats.intersects(TEST_START + 1, Long.MAX_VALUE)); in testIntersects() 617 assertValues(stats, Long.MIN_VALUE, Long.MAX_VALUE, activeTime, rxBytes, rxPackets, txBytes,
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | OffloadControllerTest.java | 297 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking() 315 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking() 326 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking() 340 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking() 355 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking() 376 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking() 405 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking() 553 inOrder.verify(mHardware).setDataWarningAndLimit(ethernetIface, Long.MAX_VALUE, in checkSetDataWarningAndLimit() 554 Long.MAX_VALUE); in checkSetDataWarningAndLimit() 556 inOrder.verify(mHardware).setDataLimit(ethernetIface, Long.MAX_VALUE); in checkSetDataWarningAndLimit() [all …]
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/data/model/ |
D | MediaPageKey.kt | 28 val pickerId: Long = Long.MAX_VALUE, 29 val dateTakenMillis: Long = Long.MAX_VALUE,
|
/packages/apps/TV/src/com/android/tv/util/images/ |
D | ImageLoader.java | 173 return loadBitmap(context, uriString, Integer.MAX_VALUE, Integer.MAX_VALUE, callback); in loadBitmap() 312 return (other.mMaxHeight != Integer.MAX_VALUE && mMaxHeight >= other.mMaxHeight * 2) in isReloadNeeded() 313 || (other.mMaxWidth != Integer.MAX_VALUE && mMaxWidth >= other.mMaxWidth * 2); in isReloadNeeded() 455 context, uriString, Integer.MAX_VALUE, Integer.MAX_VALUE); in getAspectRatioFromPosterArtUri()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/map/ |
D | MapView.kt | 49 RectF(Float.MAX_VALUE, Float.MIN_VALUE, Float.MIN_VALUE, Float.MAX_VALUE) in <lambda>() 80 routeBounds.set(Float.MAX_VALUE, Float.MIN_VALUE, Float.MIN_VALUE, Float.MAX_VALUE) in <lambda>()
|