/cts/tests/tests/content/src/android/content/pm/cts/ |
D | LauncherAppsTest.java | 106 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/ |
D | JsonReader.java | 189 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/ |
D | ByteBufferLineSpliterator.java | 56 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/ |
D | UidCapTests.java | 88 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/ |
D | Vector2D.h | 26 void limit(float max); 27 void limit(float maxX, float maxY);
|
D | Vector2D.cpp | 59 void Vector2D::limit(float max) { in limit() function in Vector2D
|
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
D | Boid.cpp | 63 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/ |
D | TestPagingContentProvider.java | 100 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/ |
D | README.md | 27 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/ |
D | CtsGalProvider.java | 161 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/ |
D | StreamUtils.java | 125 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()
|
D | YUVImage.java | 119 mByteBuffer.limit(length); in YUVPlane()
|
/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/ |
D | AudioHelper.java | 260 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/ |
D | Condition.java | 134 public Condition<T> setRetryLimit(int limit) { in setRetryLimit() argument 135 mRetryLimit = limit; in setRetryLimit()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/ |
D | UsbDeviceTestActivity.java | 250 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/ |
D | Asn1Sequence.java | 103 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/ |
D | MediaExtractorTest.java | 586 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/ |
D | CarWatchdogDaemonTest.java | 133 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/ |
D | Android.bp | 57 // 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/ |
D | CodecEncoderValidationTest.java | 228 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/ |
D | AudioMetadataTest.java | 310 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/ |
D | UsbAccessoryTestActivity.java | 319 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/ |
D | SQLiteQueryBuilderTest.java | 853 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/ |
D | BlockCipherTestBase.java | 1685 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/ |
D | TelephonyTest.java | 144 .limit(registrationLimit) in registerFillerListeners()
|