Home
last modified time | relevance | path

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

123

/cts/tests/tests/content/src/android/content/pm/cts/
DLauncherAppsTest.java106 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_isNull() local
108 assertNull(limit); // An observer was never registered in testGetAppUsageLimit_isNull()
116 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_isNotNull() local
118 assertNotNull(limit); in testGetAppUsageLimit_isNotNull()
127 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_isNullOnUnregister() local
129 assertNull("An unregistered observer was returned.", limit); in testGetAppUsageLimit_isNullOnUnregister()
137 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_getTotalUsageLimit() local
140 TimeUnit.MINUTES.toMillis(DEFAULT_TIME_LIMIT), limit.getTotalUsageLimit()); in testGetAppUsageLimit_getTotalUsageLimit()
148 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_getTotalUsageRemaining() local
151 limit.getTotalUsageLimit(), limit.getUsageRemaining()); in testGetAppUsageLimit_getTotalUsageRemaining()
[all …]
/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/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/
DREADME.md27 Example: To limit the tests to run for codecs whose names start with c2.android.
33 Example: To limit the tests to run for c2.android.hevc.decoder
42 Example: To limit media codec decoder tests to mp3 and vorbis decoder
51 Example: To limit extractor tests to mp4 and webm types
59 Example: To limit muxer tests to mp4 and webm types
/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.java125 int inBufLen = buf.limit(); in read()
143 } while (in != null && in.limit() - in.position() == 0); in read()
147 final int n = in.limit() - in.position(); in read()
287 mBuffer.limit(sizeInBytes); in PcmAudioBufferStream()
DYUVImage.java119 mByteBuffer.limit(length); in YUVPlane()
/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/
DAudioHelper.java260 int limit = byteBuffer.limit(); in isAllZero() local
261 for (int i = position; i < limit; i += 2) { in isAllZero()
/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/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DUsbDeviceTestActivity.java250 byte[] sizeBuffer = { (byte) nextTestNameBuffer.limit() }; in nextTest()
255 nextTestNameBuffer.limit(), 0); in nextTest()
256 assertEquals(nextTestNameBuffer.limit(), numSent); in nextTest()
525 bufferSent.limit(sliceEnd); in echoUsbRequestLegacy()
528 bufferSentSliced.limit(limitInSlice); in echoUsbRequestLegacy()
531 bufferSent.limit(originalSize); in echoUsbRequestLegacy()
540 bufferReceived.limit(sliceEnd); in echoUsbRequestLegacy()
543 bufferReceivedSliced.limit(limitInSlice); in echoUsbRequestLegacy()
546 bufferReceived.limit(originalSize); in echoUsbRequestLegacy()
559 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/tests/tests/car/src/android/car/cts/
DCarWatchdogDaemonTest.java133 long limit = (long) (stat.f_bfree * stat.f_frsize * ((double) 2 / 3)); in writeToDisk() local
134 long size = Math.min(MAX_WRITE_BYTES, limit); in writeToDisk()
/cts/tests/app/
DAndroid.bp57 // Disable coverage since it pushes us over the dex limit and we don't
62 // Even with coverage disabled, we're close to the single dex limit, so allow use of multi-dex.
/cts/tests/media/src/android/mediav2/cts/
DCodecEncoderValidationTest.java228 out.limit() + " + " + tolerance + " > " + mInputData.length, in encodeAndValidate()
229 mInputData.length <= out.limit() + tolerance); in encodeAndValidate()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioMetadataTest.java310 ByteBuffer buffer = nativeGetByteBuffer(bufferPackedAtJava, bufferPackedAtJava.limit()); in testCompatibilityR()
342 ByteBuffer buffer = nativeGetByteBuffer(bufferPackedAtJava, bufferPackedAtJava.limit()); in testPackingAndUnpacking()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java319 byte[] sizeBuffer = {(byte) nameBuffer.limit()}; in nextTest()
322 os.write(Arrays.copyOf(nameBuffer.array(), nameBuffer.limit())); in nextTest()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteQueryBuilderTest.java853 String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) { in assertStrictQueryValid() argument
855 groupBy, having, sortOrder, limit, null)) { in assertStrictQueryValid() argument
860 String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) { in assertStrictQueryInvalid() argument
862 groupBy, having, sortOrder, limit, null)) { in assertStrictQueryInvalid() argument
864 groupBy, having, sortOrder, limit).toString()); in assertStrictQueryInvalid()
/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java1685 int inputLimitBefore = input.limit(); in update()
1686 int outputLimitBefore = output.limit(); in update()
1693 assertEquals(inputLimitBefore, input.limit()); in update()
1694 assertEquals(input.limit(), input.position()); in update()
1696 assertEquals(outputLimitBefore, output.limit()); in update()
1731 || (expected.limit() != actual.limit()) in assertByteBufferEquals()
1742 return "ByteBuffer[pos: " + buffer.position() + ", limit: " + buffer.limit() in bufferToString()
/cts/hostsidetests/telephony/devicetest/src/android/telephony/device/cts/
DTelephonyTest.java144 .limit(registrationLimit) in registerFillerListeners()

123