Home
last modified time | relevance | path

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

12

/cts/tests/tests/content/src/android/content/pm/cts/
DLauncherAppsTest.java83 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/
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.java83 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/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/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DUsbDeviceTestActivity.java247 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/
DDummyGalProvider.java169 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/
DMediaExtractorTest.java341 final int limit = buffer.limit(); in ByteBufferDataSource() local
342 if (limit == 0) continue; in ByteBufferDataSource()
343 size += limit; in ByteBufferDataSource()
365 final long bboffs = position - e.getKey() + bb.limit() - 1; in readAt()
366 if (bboffs >= bb.limit() || bboffs < 0) { in readAt()
453 assertEquals("limit must be read bytes", red, inputBuffer.limit()); in read()
DYUVImage.java119 mByteBuffer.limit(length); in YUVPlane()
DAudioTrackTest.java1913 bb.limit(sb.limit() * 2); in testPlayStreamByteBuffer()
1921 bb.limit(fb.limit() * 4); in testPlayStreamByteBuffer()
2025 bb.limit(sb.limit() * 2); in testPlayChannelIndexStreamBuffer()
2033 bb.limit(fb.limit() * 4); in testPlayChannelIndexStreamBuffer()
2174 data.order(java.nio.ByteOrder.nativeOrder()).limit(frameCount * frameSize); in doTestTimestamp()
2185 data.limit(), track.write(data, data.limit(), AudioTrack.WRITE_BLOCKING)); in doTestTimestamp()
2187 data.position(), data.limit()); in doTestTimestamp()
2188 framesWritten += data.limit() / frameSize; in doTestTimestamp()
DEncoderTest.java214 int size = buffer.limit(); in queueInputBuffer()
250 int n = buffer.limit(); in queueInputBuffer()
DAudioHelper.java532 copy.position(0).limit(bytes); // read places data at the start of the buffer. in read()
549 copy.position(0).limit(bytes); // read places data at the start of the buffer. in read()
DMediaSyncTest.java418 final int limit = 5; in playAV() local
457 assertTrue("bad playback\n" + info, tries < limit); in playAV()
DMediaCodecTest.java869 encoder.queueInputBuffer(inputIndex, 0, inputBuffer.limit(), 0, 0); in feedEncoder()
1647 totalEncoded += inputBuffers[inputIndex].limit(); in runAudioEncoding()
1648 encoder.queueInputBuffer(inputIndex, 0, inputBuffer.limit(), 0, 0); in runAudioEncoding()
2099 int inBufLen = buf.limit(); in read()
2117 } while (in != null && in.limit() - in.position() == 0); in read()
2121 final int n = in.limit() - in.position(); in read()
2260 mBuffer.limit(sizeInBytes); in PcmAudioBufferStream()
/cts/tests/tests/location/src/android/location/cts/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/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.java280 byte[] sizeBuffer = {(byte) nameBuffer.limit()}; in nextTest()
283 os.write(Arrays.copyOf(nameBuffer.array(), nameBuffer.limit())); in nextTest()
/cts/tests/tests/net/src/android/net/cts/
DPacketUtils.java378 while (paddedPayload.position() < paddedPayload.limit()) { in getCiphertext()
382 paddedPayload.position(paddedPayload.limit() - 2); in getCiphertext()
/cts/tests/tests/text/src/android/text/cts/
DAlteredCharSequenceTest.java171 public int nextSpanTransition(int start, int limit, Class type) { in nextSpanTransition() argument
/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()
/cts/tools/dasm/src/dasm/
Dparser.cup579 // Directives (.catch, .set, .limit, etc.)
634 // .limit regs <val>
636 REGS Int:v // .limit regs
640 {: dAsm.report_error(".limit expected \"regs\" , but got "

12