Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 71) sorted by relevance

123

/cts/libs/json/src/com/android/json/stream/
DJsonReader.java189 private int limit = 0; field in JsonReader
650 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') { in objectValue()
691 if (limit != pos) { in fillBuffer()
692 limit -= pos; in fillBuffer()
693 System.arraycopy(buffer, pos, buffer, 0, limit); in fillBuffer()
695 limit = 0; in fillBuffer()
700 while ((total = in.read(buffer, limit, buffer.length - limit)) != -1) { in fillBuffer()
701 limit += total; in fillBuffer()
702 if (limit >= minimum) { in fillBuffer()
710 while (pos < limit || fillBuffer(1)) { in nextNonWhitespace()
[all …]
/cts/tests/signature/lib/common/src/android/signature/cts/
DByteBufferLineSpliterator.java56 mBuffer.position(curPos).limit(curPos + mBuffer.remaining() / 2 + nextNewLine); in trySplit()
93 int curLimit = mBuffer.limit(); in subsequence()
94 mBuffer.limit(curPos + end); in subsequence()
96 mBuffer.position(curPos).limit(curLimit); in subsequence()
115 mBuffer.position(mBuffer.limit()); // Should not be necessary? in nextLine()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DUidCapTests.java88 final int limit = 598; in alarmsCannotExceedLimit() local
89 setMaxAlarmsPerUid(limit); in alarmsCannotExceedLimit()
90 for (int i = 0; i < limit; i++) { in alarmsCannotExceedLimit()
98 new Intent(ACTION_PREFIX + limit), PendingIntent.FLAG_IMMUTABLE); in alarmsCannotExceedLimit()
104 + limit); in alarmsCannotExceedLimit()
/cts/tests/openglperf2/jni/graphics/
DVector2D.h26 void limit(float max);
27 void limit(float maxX, float maxY);
DVector2D.cpp59 void Vector2D::limit(float max) { in limit() function in Vector2D
/cts/tests/openglperf2/jni/reference/scene/flocking/
DBoid.cpp63 alignment.limit(MAX_FORCE); in flock()
77 desired.limit(MAX_FORCE); in flock()
83 mVelocity.limit(MAX_SPEED); in flock()
/cts/tests/tests/content/src/android/content/pm/cts/
DLauncherAppsTest.java175 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_isNull() local
177 assertNull(limit); // An observer was never registered in testGetAppUsageLimit_isNull()
185 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_isNotNull() local
187 assertNotNull(limit); in testGetAppUsageLimit_isNotNull()
196 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_isNullOnUnregister() local
198 assertNull("An unregistered observer was returned.", limit); in testGetAppUsageLimit_isNullOnUnregister()
206 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_getTotalUsageLimit() local
209 TimeUnit.MINUTES.toMillis(DEFAULT_TIME_LIMIT), limit.getTotalUsageLimit()); in testGetAppUsageLimit_getTotalUsageLimit()
217 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_getTotalUsageRemaining() local
220 limit.getTotalUsageLimit(), limit.getUsageRemaining()); in testGetAppUsageLimit_getTotalUsageRemaining()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DTestPagingContentProvider.java100 int limit = queryArgs.getInt(ContentResolver.QUERY_ARG_LIMIT, Integer.MIN_VALUE); in buildPagedResults() local
105 + ", limit=" + limit + "}"); in buildPagedResults()
112 numItems = numItems < 0 ? 0 : (numItems > limit ? limit : numItems); in buildPagedResults()
/cts/tests/media/common/src/android/mediav2/common/cts/
DBitStreamUtils.java60 ParsableBitArray(byte[] data, int offset, int limit) { in ParsableBitArray() argument
63 mLimit = limit; in ParsableBitArray()
110 NalParsableBitArray(byte[] data, int offset, int limit) { in NalParsableBitArray() argument
111 super(data, offset, limit); in NalParsableBitArray()
136 ObuParsableBitArray(byte[] data, int offset, int limit) { in ObuParsableBitArray() argument
137 super(data, offset, limit); in ObuParsableBitArray()
173 protected void set(byte[] data, int offset, int limit) { in set() argument
176 mLimit = limit; in set()
306 private int getNalUnitStartOffset(byte[] dataArray, int start, int limit) { in getNalUnitStartOffset() argument
307 for (int pos = start; pos + 3 < limit; pos++) { in getNalUnitStartOffset()
[all …]
/cts/tests/media/
DREADME.md28 Example: To limit the tests to run for codecs whose names start with c2.android.
34 Example: To limit the tests to run for c2.android.hevc.decoder
43 Example: To limit the tests to run for c2.android.avc.encoder and c2.exynos.hevc.encoder
52 Example: To limit media codec decoder tests to mp3 and vorbis decoder
61 Example: To limit extractor tests to mp4 and webm types
69 Example: To limit muxer tests to mp4 and webm types
/cts/tests/mediapc/
DREADME.md31 Example: To limit the tests to run for media types whose names start with video/avc
39 Example: To limit the tests to run for c2.android.avc.decoder and c2.android.hevc.encoder
48 Example: To limit the tests to run for codecs whose names start with c2.android.
54 Example: To limit the tests to run for c2.android.hevc.decoder
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoEncoderAdaptiveBitRateTest.java183 int limit = mSegmentBitRates.length * SEGMENT_DURATION * mEncCfgParams[0].mFrameRate; in testAdaptiveBitRate() local
184 encodeToMemory(mCodecName, mEncCfgParams[0], limit, true, false); in testAdaptiveBitRate()
186 + mTestEnv, mOutputCount, limit); in testAdaptiveBitRate()
/cts/tests/tests/contactsprovider/gal/src/android/provider/cts/contacts/galprovider/
DCtsGalProvider.java161 final String limit = uri.getQueryParameter(ContactsContract.LIMIT_PARAM_KEY); in handleFilter() local
179 if (!TextUtils.isEmpty(limit)) { in handleFilter()
180 result.put(LIMIT_KEY, limit); in handleFilter()
/cts/tests/tests/media/common/src/android/media/cts/
DStreamUtils.java127 int inBufLen = buf.limit(); in read()
145 } while (in != null && in.limit() - in.position() == 0); in read()
149 final int n = in.limit() - in.position(); in read()
289 mBuffer.limit(sizeInBytes); in PcmAudioBufferStream()
DYUVImage.java116 mByteBuffer.limit(length); in YUVPlane()
/cts/tests/tests/security/src/android/security/cts/BUG_293602970/
DPocActivity.java41 .limit(65536 /* maxSize */) in onResume()
/cts/tests/tests/security/src/android/security/cts/CVE_2024_0024/
DPocActivity.java39 .limit(MAX_UNSIGNED_SHORT /* maxSize */) in onResume()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DCondition.java134 public Condition<T> setRetryLimit(int limit) { in setRetryLimit() argument
135 mRetryLimit = limit; in setRetryLimit()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCondition.java134 public Condition<T> setRetryLimit(int limit) { in setRetryLimit() argument
135 mRetryLimit = limit; in setRetryLimit()
/cts/tests/tests/security/src/android/security/cts/CVE_2024_23713/
DPocNotificationListenerService.java40 .limit(getResources().getInteger(R.integer.CVE_2024_23713_Limit)) in onListenerConnected()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DUsbDeviceTestActivity.java253 byte[] sizeBuffer = { (byte) nextTestNameBuffer.limit() }; in nextTest()
258 nextTestNameBuffer.limit(), 0); in nextTest()
259 assertEquals(nextTestNameBuffer.limit(), numSent); in nextTest()
528 bufferSent.limit(sliceEnd); in echoUsbRequestLegacy()
531 bufferSentSliced.limit(limitInSlice); in echoUsbRequestLegacy()
534 bufferSent.limit(originalSize); in echoUsbRequestLegacy()
543 bufferReceived.limit(sliceEnd); in echoUsbRequestLegacy()
546 bufferReceivedSliced.limit(limitInSlice); in echoUsbRequestLegacy()
549 bufferReceived.limit(originalSize); in echoUsbRequestLegacy()
562 if (size > bufferSentSliced.limit() || size > bufferReceivedSliced.limit()) { in echoUsbRequestLegacy()
[all …]
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/
DAsn1Sequence.java103 int bufEndPos = buf.limit(); in decodeBerValue()
111 buf.limit(buf.position() + valueLength); in decodeBerValue()
122 buf.limit(bufEndPos); // set the limit back to the real end position in decodeBerValue()
/cts/tests/tests/media/extractor/src/android/media/extractor/cts/
DMediaExtractorTest.java586 final int limit = buffer.limit(); in ByteBufferDataSource() local
587 if (limit == 0) continue; in ByteBufferDataSource()
588 size += limit; in ByteBufferDataSource()
610 final long bboffs = position - e.getKey() + bb.limit() - 1; in readAt()
611 if (bboffs >= bb.limit() || bboffs < 0) { in readAt()
698 assertEquals("limit must be read bytes", red, inputBuffer.limit()); in read()
/cts/hostsidetests/ctsverifier/src/com/android/cts/verifier/
DCtsVerifierTest.java219 Instant limit = Instant.now().plus(Duration.ofMinutes(10)); in runTest() local
221 while (limit.isAfter(Instant.now())) { in runTest()
/cts/tests/tests/car/src/android/car/cts/
DCarWatchdogDaemonTest.java159 long limit = (long) (stat.f_bfree * stat.f_frsize * ((double) 2 / 3)); in writeToDisk() local
160 long size = Math.min(MAX_WRITE_BYTES, limit); in writeToDisk()

123