/cts/tests/tests/content/src/android/content/pm/cts/ |
D | LauncherAppsTest.java | 83 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_isNull() local 85 assertNull(limit); // An observer was never registered in testGetAppUsageLimit_isNull() 93 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_isNotNull() local 95 assertNotNull(limit); in testGetAppUsageLimit_isNotNull() 104 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_isNullOnUnregister() local 106 assertNull("An unregistered observer was returned.", limit); in testGetAppUsageLimit_isNullOnUnregister() 114 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_getTotalUsageLimit() local 117 TimeUnit.MINUTES.toMillis(DEFAULT_TIME_LIMIT), limit.getTotalUsageLimit()); in testGetAppUsageLimit_getTotalUsageLimit() 125 final LauncherApps.AppUsageLimit limit = mLauncherApps.getAppUsageLimit( in testGetAppUsageLimit_getTotalUsageRemaining() local 128 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 | 83 final int limit = 598; in alarmsCannotExceedLimit() local 84 setMaxAlarmsPerUid(limit); in alarmsCannotExceedLimit() 85 for (int i = 0; i < limit; i++) { in alarmsCannotExceedLimit() 93 new Intent(ACTION_PREFIX + limit), 0); in alarmsCannotExceedLimit() 99 + limit); in alarmsCannotExceedLimit()
|
/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/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/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/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/ |
D | UsbDeviceTestActivity.java | 247 byte[] sizeBuffer = { (byte) nextTestNameBuffer.limit() }; in nextTest() 252 nextTestNameBuffer.limit(), 0); in nextTest() 253 assertEquals(nextTestNameBuffer.limit(), numSent); in nextTest() 522 bufferSent.limit(sliceEnd); in echoUsbRequestLegacy() 525 bufferSentSliced.limit(limitInSlice); in echoUsbRequestLegacy() 528 bufferSent.limit(originalSize); in echoUsbRequestLegacy() 537 bufferReceived.limit(sliceEnd); in echoUsbRequestLegacy() 540 bufferReceivedSliced.limit(limitInSlice); in echoUsbRequestLegacy() 543 bufferReceived.limit(originalSize); in echoUsbRequestLegacy() 556 if (size > bufferSentSliced.limit() || size > bufferReceivedSliced.limit()) { in echoUsbRequestLegacy() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | DummyGalProvider.java | 169 final String limit = uri.getQueryParameter(ContactsContract.LIMIT_PARAM_KEY); in handleFilter() local 187 if (!TextUtils.isEmpty(limit)) { in handleFilter() 188 result.put(LIMIT_KEY, limit); in handleFilter()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaExtractorTest.java | 514 final int limit = buffer.limit(); in ByteBufferDataSource() local 515 if (limit == 0) continue; in ByteBufferDataSource() 516 size += limit; in ByteBufferDataSource() 538 final long bboffs = position - e.getKey() + bb.limit() - 1; in readAt() 539 if (bboffs >= bb.limit() || bboffs < 0) { in readAt() 626 assertEquals("limit must be read bytes", red, inputBuffer.limit()); in read()
|
D | AudioTrackTest.java | 1914 bb.limit(sb.limit() * 2); in testPlayStreamByteBuffer() 1922 bb.limit(fb.limit() * 4); in testPlayStreamByteBuffer() 2026 bb.limit(sb.limit() * 2); in testPlayChannelIndexStreamBuffer() 2034 bb.limit(fb.limit() * 4); in testPlayChannelIndexStreamBuffer() 2175 data.order(java.nio.ByteOrder.nativeOrder()).limit(frameCount * frameSize); in doTestTimestamp() 2186 data.limit(), track.write(data, data.limit(), AudioTrack.WRITE_BLOCKING)); in doTestTimestamp() 2188 data.position(), data.limit()); in doTestTimestamp() 2189 framesWritten += data.limit() / frameSize; in doTestTimestamp()
|
D | YUVImage.java | 119 mByteBuffer.limit(length); in YUVPlane()
|
D | EncoderTest.java | 214 int size = buffer.limit(); in queueInputBuffer() 250 int n = buffer.limit(); in queueInputBuffer()
|
D | MediaCodecTest.java | 870 encoder.queueInputBuffer(inputIndex, 0, inputBuffer.limit(), 0, 0); in feedEncoder() 1648 totalEncoded += inputBuffers[inputIndex].limit(); in runAudioEncoding() 1649 encoder.queueInputBuffer(inputIndex, 0, inputBuffer.limit(), 0, 0); in runAudioEncoding() 2112 int inBufLen = buf.limit(); in read() 2130 } while (in != null && in.limit() - in.position() == 0); in read() 2134 final int n = in.limit() - in.position(); in read() 2273 mBuffer.limit(sizeInBytes); in PcmAudioBufferStream()
|
/cts/tests/tests/location/src/android/location/cts/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/keystore/src/android/keystore/cts/ |
D | BlockCipherTestBase.java | 1484 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/ |
D | UsbAccessoryTestActivity.java | 280 byte[] sizeBuffer = {(byte) nameBuffer.limit()}; in nextTest() 283 os.write(Arrays.copyOf(nameBuffer.array(), nameBuffer.limit())); in nextTest()
|
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/ |
D | PacketUtils.java | 385 while (paddedPayload.position() < paddedPayload.limit()) { in getCiphertext() 389 paddedPayload.position(paddedPayload.limit() - 2); in getCiphertext()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | PacketUtils.java | 379 while (paddedPayload.position() < paddedPayload.limit()) { in getCiphertext() 383 paddedPayload.position(paddedPayload.limit() - 2); in getCiphertext()
|
/cts/hostsidetests/telephony/devicetest/src/android/telephony/device/cts/ |
D | TelephonyTest.java | 143 .limit(registrationLimit) in registerFillerListeners()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | FloatyUnitTest.java | 417 double limit = Math.scalb(1., exponent); in validateFloat16Ulp() local 418 for (; exponent <= 16; exponent ++, limit *= 2) { in validateFloat16Ulp() 419 if (absoluteValue < limit) { in validateFloat16Ulp()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | PlanetsRenderer.java | 402 GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertices.limit() in createVbo() 418 indices[j].limit() * Sphere.SHORT_SIZE, indices[j], in createVbo()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AlteredCharSequenceTest.java | 171 public int nextSpanTransition(int start, int limit, Class type) { in nextSpanTransition() argument
|
/cts/tests/media/ |
D | README.md | 15 To limit media codec decoder tests to mp3 and vorbis decoder,
|