Home
last modified time | relevance | path

Searched refs:MAX_VALUE (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DNewVoicemailAdapter.java83 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/Connectivity/tests/cts/net/src/android/net/cts/
DCredentialsTest.java33 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/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/io/
DTypedStreamsTest.java46 tos.writeChar(Character.MAX_VALUE); in writeReadOk()
56 tos.writeByte(Byte.MAX_VALUE); in writeReadOk()
83 assertEquals(Character.MAX_VALUE, tis.readChar()); in writeReadOk()
93 assertEquals(Byte.MAX_VALUE, tis.readSignedByte()); in writeReadOk()
189 () -> tos.writeVarByteValue(0, Long.MAX_VALUE)); in writeBoundChecks()
191 () -> tos.writeVarByteValue(9, Long.MAX_VALUE)); in writeBoundChecks()
194 assertThrows(IllegalArgumentException.class, () -> tos.writeByte(Byte.MAX_VALUE + 1)); in writeBoundChecks()
197 assertThrows(IllegalArgumentException.class, () -> tos.writeChar(Character.MAX_VALUE + 1)); in writeBoundChecks()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DTextSizeHelper.kt37 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/Connectivity/tests/unit/java/com/android/internal/util/
DBitUtilsTest.java59 assertEquals(127, uint8(Byte.MAX_VALUE)); in testUnsignedByteWideningConversions()
72 assertEquals(32767, uint16(Short.MAX_VALUE)); in testUnsignedShortWideningConversions()
101 assertEquals(2147483647L, uint32(Integer.MAX_VALUE)); in testUnsignedIntWideningConversions()
149 new BitPackingTestCase(~Long.MAX_VALUE, ints(63)), in testBitsPacking()
150 new BitPackingTestCase(~Long.MAX_VALUE + 1, ints(0, 63)), in testBitsPacking()
151 new BitPackingTestCase(~Long.MAX_VALUE + 2, ints(1, 63)), in testBitsPacking()
178 0, 1, -1, 23895, -908235, Long.MAX_VALUE, Long.MIN_VALUE, new Random().nextLong(), in testBitsPacking()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/
DCarUiText.java63 this(text, Integer.MAX_VALUE); in CarUiText()
80 mMaxChars = Integer.MAX_VALUE; in CarUiText()
98 mMaxChars = Integer.MAX_VALUE; in CarUiText()
153 private int mMaxLines = Integer.MAX_VALUE;
154 private int mMaxChars = Integer.MAX_VALUE;
/packages/apps/DeskClock/src/com/android/deskclock/data/
DNotificationModel.kt44 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/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DKnownBandsChannelHelperTest.java359 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/
DScrollController.java361 || 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/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java97 entry = history.getValues(Long.MIN_VALUE, Long.MAX_VALUE, entry); in testReadOriginalVersion()
436 assertEquals(Long.MAX_VALUE, performVarLong(Long.MAX_VALUE)); in testVarLong()
438 assertEquals(Long.MAX_VALUE - 40, performVarLong(Long.MAX_VALUE - 40)); in testVarLong()
481 assertIndexBeforeAfter(stats, 4, 4, Long.MAX_VALUE); in testIndexBeforeAfter()
505 assertFalse(stats.intersects(Long.MAX_VALUE, Long.MIN_VALUE)); in testIntersects()
507 assertTrue(stats.intersects(Long.MIN_VALUE, Long.MAX_VALUE)); in testIntersects()
511 assertTrue(stats.intersects(TEST_START + DAY_IN_MILLIS, Long.MAX_VALUE)); in testIntersects()
512 assertTrue(stats.intersects(TEST_START + 1, Long.MAX_VALUE)); in testIntersects()
587 assertValues(stats, Long.MIN_VALUE, Long.MAX_VALUE, activeTime, rxBytes, rxPackets, txBytes,
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java289 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking()
307 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking()
318 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking()
332 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking()
347 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking()
368 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking()
397 inOrder.verify(mHardware, times(1)).setDataLimit(eq(testIfName), eq(Long.MAX_VALUE)); in testSetUpstreamLinkPropertiesWorking()
545 inOrder.verify(mHardware).setDataWarningAndLimit(ethernetIface, Long.MAX_VALUE, in checkSetDataWarningAndLimit()
546 Long.MAX_VALUE); in checkSetDataWarningAndLimit()
548 inOrder.verify(mHardware).setDataLimit(ethernetIface, Long.MAX_VALUE); in checkSetDataWarningAndLimit()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java268 int removedCol = Integer.MAX_VALUE;
269 int removedRow = Integer.MAX_VALUE;
276 float removeWt = Float.MAX_VALUE;
277 float moveWt = Float.MAX_VALUE;
381 col = mShouldRemoveX ? col : Integer.MAX_VALUE;
382 row = mShouldRemoveY ? row : Integer.MAX_VALUE;
421 float lowestWeightLoss = Float.MAX_VALUE;
422 float lowestMoveCost = Float.MAX_VALUE;
553 int newDistance = Integer.MAX_VALUE;
554 int newX = Integer.MAX_VALUE, newY = Integer.MAX_VALUE;
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DFakeSystemFacade.java38 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/
DCellInfoUtil.java146 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/TV/src/com/android/tv/util/images/
DImageLoader.java173 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/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java123 public static InterfaceQuota MAX_VALUE = new InterfaceQuota(Long.MAX_VALUE, Long.MAX_VALUE); field in OffloadController.InterfaceQuota
382 warningBytes == QUOTA_UNLIMITED ? Long.MAX_VALUE : warningBytes, in onSetWarningAndLimit()
383 limitBytes == QUOTA_UNLIMITED ? Long.MAX_VALUE : limitBytes); in onSetWarningAndLimit()
390 if (null == curIfaceQuota && InterfaceQuota.MAX_VALUE.equals(newIfaceQuota)) { in onSetWarningAndLimit()
394 if (InterfaceQuota.MAX_VALUE.equals(newIfaceQuota)) { in onSetWarningAndLimit()
541 final InterfaceQuota quota = mInterfaceQuotas.getOrDefault(iface, InterfaceQuota.MAX_VALUE); in maybeUpdateDataWarningAndLimit()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DCellInfoUtil.java120 Integer.MAX_VALUE /* lac */, in convertOperatorInfoToCellInfo()
121 Integer.MAX_VALUE /* cid */, in convertOperatorInfoToCellInfo()
122 Integer.MAX_VALUE /* arfcn */, in convertOperatorInfoToCellInfo()
123 Integer.MAX_VALUE /* bsic */, in convertOperatorInfoToCellInfo()
/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacPolicy.java39 mMaxHardwareFanSpeed = Integer.MAX_VALUE; in HvacPolicy()
52 mMaxHardwareTemp = Float.MAX_VALUE; in HvacPolicy()
53 mMinHardwareTemp = -Float.MAX_VALUE; in HvacPolicy()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDocumentsAdapter.java50 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/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java234 private int mTouchBoxIndex = Integer.MAX_VALUE;
241 private int mUndoIndexHint = Integer.MAX_VALUE;
408 if (mTouchBoxIndex != Integer.MAX_VALUE) { in notifyDataChange()
410 mTouchBoxIndex = Integer.MAX_VALUE; in notifyDataChange()
420 if (mUndoIndexHint != Integer.MAX_VALUE) { in notifyDataChange()
1048 if (mTouchBoxIndex == Integer.MAX_VALUE) return true; in onScroll()
1102 if (!mFilmMode || mTouchBoxIndex == Integer.MAX_VALUE in flingImages()
1123 mTouchBoxIndex = Integer.MAX_VALUE; in flingImages()
1261 mTouchBoxIndex = Integer.MAX_VALUE;
1267 mTouchBoxIndex = Integer.MAX_VALUE;
[all …]
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
DCaptivePortalDataShimImpl.java64 final long millisRemaining = secondsRemaining <= Long.MAX_VALUE / 1000 in fromJson()
66 : Long.MAX_VALUE; in fromJson()
68 refreshTimeMs + Math.min(Long.MAX_VALUE - refreshTimeMs, millisRemaining); in fromJson()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DLruConnectionTrackerTest.java56 assertEquals(Integer.MAX_VALUE, mList.getAgeIndexOfNetwork(network)); in testAddRemoveNetwork()
60 assertEquals(Integer.MAX_VALUE, mList.getAgeIndexOfNetwork(network)); in testAddRemoveNetwork()
81 assertEquals(Integer.MAX_VALUE, mList.getAgeIndexOfNetwork(network1)); in testConnectionOrderStore()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java502 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, 512L, 4L, 512L, 4L, 0);
516 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, 512L, 4L, 512L, 4L, 0);
896 sTemplateWifi, Long.MIN_VALUE, Long.MAX_VALUE, true);
1058 sTemplateWifi, Long.MIN_VALUE, Long.MAX_VALUE, true);
1102 sTemplateWifi, Long.MIN_VALUE, Long.MAX_VALUE, true);
1141 sTemplateImsi1, Long.MIN_VALUE, Long.MAX_VALUE, true);
1354 sTemplateWifi, Long.MIN_VALUE, Long.MAX_VALUE, true);
1421 sTemplateImsi1, Long.MIN_VALUE, Long.MAX_VALUE, true);
1427 sTemplateImsi2, Long.MIN_VALUE, Long.MAX_VALUE, true);
1585 templateMobile, Long.MIN_VALUE, Long.MAX_VALUE, true);
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/metrics/
DIpManagerEventTest.kt32 val ipManagerEvent = IpManagerEvent(it, Long.MAX_VALUE) in testConstructorAndParcel()
34 assertEquals(Long.MAX_VALUE, ipManagerEvent.durationMs) in testConstructorAndParcel()
DDhcpClientEventTest.kt35 .setDurationMs(Integer.MAX_VALUE) in testBuilderAndParcel()
39 assertEquals(Integer.MAX_VALUE, dhcpClientEvent.durationMs) in testBuilderAndParcel()

12345678910>>...15