Home
last modified time | relevance | path

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

12345678910>>...28

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellSignalStrengthCdmaTest.java53 assertEquals(Integer.MAX_VALUE, css.getCdmaDbm()); in testInvalidConstructor()
54 assertEquals(Integer.MAX_VALUE, css.getCdmaEcio()); in testInvalidConstructor()
55 assertEquals(Integer.MAX_VALUE, css.getEvdoDbm()); in testInvalidConstructor()
56 assertEquals(Integer.MAX_VALUE, css.getEvdoEcio()); in testInvalidConstructor()
57 assertEquals(Integer.MAX_VALUE, css.getEvdoSnr()); in testInvalidConstructor()
63 assertEquals(Integer.MAX_VALUE, css.getCdmaDbm()); in testDefaultConstructor()
64 assertEquals(Integer.MAX_VALUE, css.getCdmaEcio()); in testDefaultConstructor()
65 assertEquals(Integer.MAX_VALUE, css.getEvdoDbm()); in testDefaultConstructor()
66 assertEquals(Integer.MAX_VALUE, css.getEvdoEcio()); in testDefaultConstructor()
67 assertEquals(Integer.MAX_VALUE, css.getEvdoSnr()); in testDefaultConstructor()
DCellIdentityLteTest.java111 assertEquals(Integer.MAX_VALUE, ci.getMcc()); in testConstructorWithEmptyMccMnc()
112 assertEquals(Integer.MAX_VALUE, ci.getMnc()); in testConstructorWithEmptyMccMnc()
122 assertEquals(Integer.MAX_VALUE, ci.getMnc()); in testConstructorWithEmptyMccMnc()
132 assertEquals(Integer.MAX_VALUE, ci.getMcc()); in testConstructorWithEmptyMccMnc()
141 assertEquals(Integer.MAX_VALUE, ci.getMcc()); in testConstructorWithEmptyMccMnc()
142 assertEquals(Integer.MAX_VALUE, ci.getMnc()); in testConstructorWithEmptyMccMnc()
156 assertEquals(Integer.MAX_VALUE, ci.getEarfcn()); in testFormerConstructor()
157 assertEquals(Integer.MAX_VALUE, ci.getBandwidth()); in testFormerConstructor()
219 p.writeString(String.valueOf(Integer.MAX_VALUE)); in testParcelWithUnknownMccMnc()
220 p.writeString(String.valueOf(Integer.MAX_VALUE)); in testParcelWithUnknownMccMnc()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBinderLatencyBucketsTest.java60 BinderLatencyBuckets latencyBuckets = new BinderLatencyBuckets(5, Integer.MAX_VALUE / 2, 2); in testMaxIntBuckets()
63 .containsExactly(Integer.MAX_VALUE / 2, Integer.MAX_VALUE - 1) in testMaxIntBuckets()
67 assertEquals(0, latencyBuckets.sampleToBucket(Integer.MAX_VALUE / 2 - 1)); in testMaxIntBuckets()
68 assertEquals(1, latencyBuckets.sampleToBucket(Integer.MAX_VALUE - 2)); in testMaxIntBuckets()
69 assertEquals(2, latencyBuckets.sampleToBucket(Integer.MAX_VALUE)); in testMaxIntBuckets()
/frameworks/base/location/java/android/location/
DLocationRequest.java71 public static final long PASSIVE_INTERVAL = Long.MAX_VALUE;
227 intervalMillis = Long.MAX_VALUE - 1; in createFromDeprecatedProvider()
245 .setMaxUpdates(singleShot ? 1 : Integer.MAX_VALUE) in createFromDeprecatedProvider()
265 intervalMillis = Long.MAX_VALUE - 1; in createFromDeprecatedCriteria()
275 .setMaxUpdates(singleShot ? 1 : Integer.MAX_VALUE) in createFromDeprecatedCriteria()
385 millis = Long.MAX_VALUE - 1; in setInterval()
501 if (mDurationMillis > Long.MAX_VALUE - startRealtimeMs) { in getExpirationRealtimeMs()
502 expirationRealtimeMs = Long.MAX_VALUE; in getExpirationRealtimeMs()
539 public @IntRange(from = 1, to = Integer.MAX_VALUE) int getMaxUpdates() { in getMaxUpdates()
572 Float.MAX_VALUE, "minDisplacementMeters"); in setSmallestDisplacement()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DDataConfigManagerTest.java71 mDataConfigManagerUT.parseSlidingWindowCounterThreshold(Long.MAX_VALUE + "," in testParseSlidingWindowCounterThreshold()
72 + Integer.MAX_VALUE, defaultTimeWindow, defaultOccurrence); in testParseSlidingWindowCounterThreshold()
74 new DataConfigManager.EventFrequency(Long.MAX_VALUE, Integer.MAX_VALUE); in testParseSlidingWindowCounterThreshold()
81 Long.MAX_VALUE + "," + Integer.MAX_VALUE + " ,", in testParseSlidingWindowCounterThreshold()
83 assertThat(invalidFormat.timeWindow).isEqualTo(Long.MAX_VALUE); in testParseSlidingWindowCounterThreshold()
84 assertThat(invalidFormat.eventNumOccurrence).isEqualTo(Integer.MAX_VALUE); in testParseSlidingWindowCounterThreshold()
88 Long.MAX_VALUE + "," + Long.MAX_VALUE, defaultTimeWindow, in testParseSlidingWindowCounterThreshold()
/frameworks/base/core/tests/coretests/src/android/util/
DMutableTest.java58 mut = new MutableDouble(Double.MAX_VALUE); in testMutableDouble()
59 assertEquals(Double.MAX_VALUE, mut.value, 0); in testMutableDouble()
66 mut = new MutableFloat(Float.MAX_VALUE); in testMutableFloat()
67 assertEquals(Float.MAX_VALUE, mut.value, 0); in testMutableFloat()
74 mut = new MutableShort(Short.MAX_VALUE); in testMutableShort()
75 assertEquals(Short.MAX_VALUE, mut.value); in testMutableShort()
/frameworks/base/services/core/java/com/android/server/am/
DBaseAppStateDurations.java115 lts != Long.MAX_VALUE || rts != Long.MAX_VALUE;) { in add()
122 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in add()
123 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in add()
127 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in add()
131 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in add()
189 lts != Long.MAX_VALUE || rts != Long.MAX_VALUE;) { in subtract()
196 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in subtract()
197 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in subtract()
201 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in subtract()
205 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in subtract()
DBaseAppStateTimeEvents.java53 lts != Long.MAX_VALUE || rts != Long.MAX_VALUE;) { in add()
56 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in add()
57 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in add()
60 lts = itl.hasNext() ? (l = itl.next()).getTimestamp() : Long.MAX_VALUE; in add()
63 rts = itr.hasNext() ? (r = itr.next()).getTimestamp() : Long.MAX_VALUE; in add()
/frameworks/base/core/tests/benchmarks/src/android/os/
DFileUtilsBenchmark.java57 copyInternalUserspace(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timeRegularUserspace()
66 copyInternalSendfile(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timeRegularSendfile()
75 copyInternalUserspace(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSourceUserspace()
84 copyInternalSplice(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSourceSplice()
93 copyInternalUserspace(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSinkUserspace()
102 copyInternalSplice(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSinkSplice()
/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamSFixed64Test.java124 assertEquals(Integer.MAX_VALUE, results[4]); in testRead()
126 assertEquals(Long.MAX_VALUE, results[6]); in testRead()
137 testReadCompat(Integer.MAX_VALUE); in testReadCompat()
139 testReadCompat(Long.MAX_VALUE); in testReadCompat()
299 assertEquals(Integer.MAX_VALUE, results[4][0]); in testRepeated()
300 assertEquals(Integer.MAX_VALUE, results[4][1]); in testRepeated()
303 assertEquals(Long.MAX_VALUE, results[6][0]); in testRepeated()
304 assertEquals(Long.MAX_VALUE, results[6][1]); in testRepeated()
312 testRepeatedCompat(new long[]{0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE}); in testRepeatedCompat()
470 assertEquals(Integer.MAX_VALUE, results[4][0]); in testPacked()
[all …]
DProtoInputStreamSInt64Test.java119 assertEquals(Integer.MAX_VALUE, results[4]); in testRead()
121 assertEquals(Long.MAX_VALUE, results[6]); in testRead()
132 testReadCompat(Integer.MAX_VALUE); in testReadCompat()
134 testReadCompat(Long.MAX_VALUE); in testReadCompat()
284 assertEquals(Integer.MAX_VALUE, results[4][0]); in testRepeated()
285 assertEquals(Integer.MAX_VALUE, results[4][1]); in testRepeated()
288 assertEquals(Long.MAX_VALUE, results[6][0]); in testRepeated()
289 assertEquals(Long.MAX_VALUE, results[6][1]); in testRepeated()
297 testRepeatedCompat(new long[]{0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE}); in testRepeatedCompat()
445 assertEquals(Integer.MAX_VALUE, results[4][0]); in testPacked()
[all …]
DProtoInputStreamInt64Test.java122 assertEquals(Integer.MAX_VALUE, results[4]); in testRead()
124 assertEquals(Long.MAX_VALUE, results[6]); in testRead()
135 testReadCompat(Integer.MAX_VALUE); in testReadCompat()
137 testReadCompat(Long.MAX_VALUE); in testReadCompat()
291 assertEquals(Integer.MAX_VALUE, results[4][0]); in testRepeated()
292 assertEquals(Integer.MAX_VALUE, results[4][1]); in testRepeated()
295 assertEquals(Long.MAX_VALUE, results[6][0]); in testRepeated()
296 assertEquals(Long.MAX_VALUE, results[6][1]); in testRepeated()
304 testRepeatedCompat(new long[]{0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE}); in testRepeatedCompat()
468 assertEquals(Integer.MAX_VALUE, results[4][0]); in testPacked()
[all …]
DProtoInputStreamFixed64Test.java124 assertEquals(Integer.MAX_VALUE, results[4]); in testRead()
126 assertEquals(Long.MAX_VALUE, results[6]); in testRead()
137 testReadCompat(Integer.MAX_VALUE); in testReadCompat()
139 testReadCompat(Long.MAX_VALUE); in testReadCompat()
299 assertEquals(Integer.MAX_VALUE, results[4][0]); in testRepeated()
300 assertEquals(Integer.MAX_VALUE, results[4][1]); in testRepeated()
303 assertEquals(Long.MAX_VALUE, results[6][0]); in testRepeated()
304 assertEquals(Long.MAX_VALUE, results[6][1]); in testRepeated()
312 testRepeatedCompat(new long[]{0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE}); in testRepeatedCompat()
470 assertEquals(Integer.MAX_VALUE, results[4][0]); in testPacked()
[all …]
DProtoInputStreamUInt64Test.java121 assertEquals(Integer.MAX_VALUE, results[4]); in testRead()
123 assertEquals(Long.MAX_VALUE, results[6]); in testRead()
134 testReadCompat(Integer.MAX_VALUE); in testReadCompat()
136 testReadCompat(Long.MAX_VALUE); in testReadCompat()
289 assertEquals(Integer.MAX_VALUE, results[4][0]); in testRepeated()
290 assertEquals(Integer.MAX_VALUE, results[4][1]); in testRepeated()
293 assertEquals(Long.MAX_VALUE, results[6][0]); in testRepeated()
294 assertEquals(Long.MAX_VALUE, results[6][1]); in testRepeated()
302 testRepeatedCompat(new long[]{0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE}); in testRepeatedCompat()
464 assertEquals(Integer.MAX_VALUE, results[4][0]); in testPacked()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DDisplayCutoutView.java118 bounds.op(0, 0, Integer.MAX_VALUE, displayCutout.getSafeInsetTop(), in boundsFromDirection()
123 bounds.op(0, 0, displayCutout.getSafeInsetLeft(), Integer.MAX_VALUE, in boundsFromDirection()
128 bounds.op(0, displayCutout.getSafeInsetTop() + 1, Integer.MAX_VALUE, in boundsFromDirection()
129 Integer.MAX_VALUE, Region.Op.INTERSECT); in boundsFromDirection()
133 bounds.op(displayCutout.getSafeInsetLeft() + 1, 0, Integer.MAX_VALUE, in boundsFromDirection()
134 Integer.MAX_VALUE, Region.Op.INTERSECT); in boundsFromDirection()
/frameworks/base/telephony/java/android/telephony/
DNeighboringCellInfo.java120 if (mRssi == Integer.MAX_VALUE) mRssi = UNKNOWN_RSSI; in NeighboringCellInfo()
123 if (mLac == Integer.MAX_VALUE) mLac = UNKNOWN_CID; in NeighboringCellInfo()
126 if (mCid == Integer.MAX_VALUE) mCid = UNKNOWN_CID; in NeighboringCellInfo()
136 if (mRssi == Integer.MAX_VALUE) mRssi = UNKNOWN_RSSI; in NeighboringCellInfo()
139 if (mLac == Integer.MAX_VALUE) mLac = UNKNOWN_CID; in NeighboringCellInfo()
142 if (mCid == Integer.MAX_VALUE) mCid = UNKNOWN_CID; in NeighboringCellInfo()
145 if (mPsc == Integer.MAX_VALUE) mPsc = UNKNOWN_CID; in NeighboringCellInfo()
/frameworks/base/apct-tests/perftests/core/src/com/android/internal/util/
DFastDataPerfTest.java161 out.writeByte(Byte.MAX_VALUE); in doWrite()
162 out.writeShort(Short.MAX_VALUE); in doWrite()
163 out.writeInt(Integer.MAX_VALUE); in doWrite()
164 out.writeLong(Long.MAX_VALUE); in doWrite()
165 out.writeFloat(Float.MAX_VALUE); in doWrite()
166 out.writeDouble(Double.MAX_VALUE); in doWrite()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DGroupWhenCoordinator.kt60 var closestFutureTime = Long.MAX_VALUE in <lambda>()
69 if (closestFutureTime != Long.MAX_VALUE) { in <lambda>()
89 var futureTime = Long.MAX_VALUE in <lambda>()
102 if (pastTime == Long.MIN_VALUE && futureTime == Long.MAX_VALUE) { in <lambda>()
106 return if (futureTime != Long.MAX_VALUE) futureTime else pastTime in <lambda>()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DBitUtilsTest.java54 assertEquals(127, uint8(Byte.MAX_VALUE)); in testUnsignedByteWideningConversions()
67 assertEquals(32767, uint16(Short.MAX_VALUE)); in testUnsignedShortWideningConversions()
96 assertEquals(2147483647L, uint32(Integer.MAX_VALUE)); in testUnsignedIntWideningConversions()
144 new BitPackingTestCase(~Long.MAX_VALUE, ints(63)), in testBitsPacking()
145 new BitPackingTestCase(~Long.MAX_VALUE + 1, ints(0, 63)), in testBitsPacking()
146 new BitPackingTestCase(~Long.MAX_VALUE + 2, ints(1, 63)), in testBitsPacking()
173 0, 1, -1, 23895, -908235, Long.MAX_VALUE, Long.MIN_VALUE, new Random().nextLong(), in testBitsPacking()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/
DFloatProperties.kt46 return rect?.left?.toFloat() ?: -Float.MAX_VALUE in getValue()
65 return rect?.top?.toFloat() ?: -Float.MAX_VALUE in getValue()
118 return rect?.left ?: -Float.MAX_VALUE in getValue()
137 return rect?.top ?: -Float.MAX_VALUE in getValue()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DViewMatrix.java225 float minx = Float.MAX_VALUE, miny = Float.MAX_VALUE, minz = Float.MAX_VALUE; in calcLook()
226 float maxx = -Float.MAX_VALUE, maxy = -Float.MAX_VALUE, maxz = -Float.MAX_VALUE; in calcLook()
245 float minx = Float.MAX_VALUE, miny = Float.MAX_VALUE, minz = Float.MAX_VALUE; in calcLook()
246 float maxx = -Float.MAX_VALUE, maxy = -Float.MAX_VALUE, maxz = -Float.MAX_VALUE; in calcLook()
/frameworks/base/media/java/android/media/metrics/
DTrackChangeEvent.java181 @IntRange(from = -1, to = Integer.MAX_VALUE)
230 @IntRange(from = -1, to = Integer.MAX_VALUE)
239 @IntRange(from = -1, to = Integer.MAX_VALUE)
248 @IntRange(from = -1, to = Integer.MAX_VALUE)
257 @IntRange(from = -1, to = Integer.MAX_VALUE)
266 @FloatRange(from = -1, to = Float.MAX_VALUE)
504 public @NonNull Builder setBitrate(@IntRange(from = -1, to = Integer.MAX_VALUE) int value) { in setBitrate()
552 @IntRange(from = -1, to = Integer.MAX_VALUE) int value) { in setChannelCount()
564 @IntRange(from = -1, to = Integer.MAX_VALUE) int value) { in setAudioSampleRate()
575 public @NonNull Builder setWidth(@IntRange(from = -1, to = Integer.MAX_VALUE) int value) { in setWidth()
[all …]
/frameworks/base/media/java/android/media/
DMicrophoneInfo.java112 -Float.MAX_VALUE, -Float.MAX_VALUE, -Float.MAX_VALUE);
122 public static final float SENSITIVITY_UNKNOWN = -Float.MAX_VALUE;
128 public static final float SPL_UNKNOWN = -Float.MAX_VALUE;
/frameworks/base/core/java/com/android/internal/midi/
DMidiEventMultiScheduler.java77 long lowestTime = Long.MAX_VALUE; in waitNextEvent()
93 if (millisToWait > Integer.MAX_VALUE) { in waitNextEvent()
94 millisToWait = Integer.MAX_VALUE; in waitNextEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DPackageDataTest.java90 List<Event> events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testGetEventHistory()
109 List<Event> events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testGetEventHistoryDefaultDialerAndSmsApp()
127 List<Event> events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testGetEventHistoryNotDefaultDialerOrSmsApp()
145 List<Event> events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testDeleteConversationData()
151 events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testDeleteConversationData()
168 List<Event> events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testPruneOrphanEvents()
181 events = eventHistory.queryEvents(Event.ALL_EVENT_TYPES, 0L, Long.MAX_VALUE); in testPruneOrphanEvents()

12345678910>>...28