Home
last modified time | relevance | path

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

12

/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.java84 final int limit = 598; in alarmsCannotExceedLimit() local
85 setMaxAlarmsPerUid(limit); in alarmsCannotExceedLimit()
86 for (int i = 0; i < limit; i++) { in alarmsCannotExceedLimit()
94 new Intent(ACTION_PREFIX + limit), PendingIntent.FLAG_IMMUTABLE); in alarmsCannotExceedLimit()
100 + 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.md24 Example: To limit the tests to run for codecs whose names start with c2.android.
30 Example: To limit the tests to run for c2.android.hevc.decoder
39 Example: To limit media codec decoder tests to mp3 and vorbis decoder
48 Example: To limit extractor tests to mp4 and webm types
56 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/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.java251 byte[] sizeBuffer = { (byte) nextTestNameBuffer.limit() }; in nextTest()
256 nextTestNameBuffer.limit(), 0); in nextTest()
257 assertEquals(nextTestNameBuffer.limit(), numSent); in nextTest()
526 bufferSent.limit(sliceEnd); in echoUsbRequestLegacy()
529 bufferSentSliced.limit(limitInSlice); in echoUsbRequestLegacy()
532 bufferSent.limit(originalSize); in echoUsbRequestLegacy()
541 bufferReceived.limit(sliceEnd); in echoUsbRequestLegacy()
544 bufferReceivedSliced.limit(limitInSlice); in echoUsbRequestLegacy()
547 bufferReceived.limit(originalSize); in echoUsbRequestLegacy()
560 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/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/tests/media/src/android/media/cts/
DYUVImage.java119 mByteBuffer.limit(length); in YUVPlane()
DMediaExtractorTest.java712 final int limit = buffer.limit(); in ByteBufferDataSource() local
713 if (limit == 0) continue; in ByteBufferDataSource()
714 size += limit; in ByteBufferDataSource()
736 final long bboffs = position - e.getKey() + bb.limit() - 1; in readAt()
737 if (bboffs >= bb.limit() || bboffs < 0) { in readAt()
824 assertEquals("limit must be read bytes", red, inputBuffer.limit()); in read()
DAudioMetadataTest.java309 ByteBuffer buffer = nativeGetByteBuffer(bufferPackedAtJava, bufferPackedAtJava.limit()); in testCompatibilityR()
341 ByteBuffer buffer = nativeGetByteBuffer(bufferPackedAtJava, bufferPackedAtJava.limit()); in testPackingAndUnpacking()
DEncoderTest.java252 int size = buffer.limit(); in queueInputBuffer()
288 int n = buffer.limit(); in queueInputBuffer()
/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java1484 int inputLimitBefore = input.limit(); in update()
1485 int outputLimitBefore = output.limit(); in update()
1492 assertEquals(inputLimitBefore, input.limit()); in update()
1493 assertEquals(input.limit(), input.position()); in update()
1495 assertEquals(outputLimitBefore, output.limit()); in update()
1537 || (expected.limit() != actual.limit()) in assertByteBufferEquals()
1548 return "ByteBuffer[pos: " + buffer.position() + ", limit: " + buffer.limit() in bufferToString()
/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/hostsidetests/telephony/devicetest/src/android/telephony/device/cts/
DTelephonyTest.java144 .limit(registrationLimit) in registerFillerListeners()
/cts/tests/tests/text/src/android/text/cts/
DAlteredCharSequenceTest.java171 public int nextSpanTransition(int start, int limit, Class type) { in nextSpanTransition() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestUtils.java224 .limit(45) in generateRandomPassphrase()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DPlanetsRenderer.java402 GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertices.limit() in createVbo()
418 indices[j].limit() * Sphere.SHORT_SIZE, indices[j], in createVbo()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DFloatyUnitTest.java417 double limit = Math.scalb(1., exponent); in validateFloat16Ulp() local
418 for (; exponent <= 16; exponent ++, limit *= 2) { in validateFloat16Ulp()
419 if (absoluteValue < limit) { in validateFloat16Ulp()

12