Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 34) sorted by relevance

12

/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0441/src/android/security/cts/CVE_2021_0441/
DPocActivity.java38 ArrayList<Uri> getUriList(int capacity) { in getUriList() argument
40 for (int i = 0; i < capacity; ++i) { in getUriList()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2023-21127/
Dpoc.cpp57 size_t updatedSize = buffer->capacity() - offset; in main()
/cts/tests/tests/media/decoder/jni/
Dnative-media-jni.cpp41 int capacity; member in simplevector
45 capacity = 16; in simplevector()
47 storage = new T[capacity]; in simplevector()
54 if (numfilled == capacity) { in add()
56 capacity *= 2; in add()
57 storage = new T[capacity]; in add()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaCodecBlockModelHelper.java175 if (input.buffer.capacity() < size) { in onInputSlot()
183 } else if (input.buffer.capacity() - input.offset < size) { in onInputSlot()
184 long capacity = input.buffer.capacity(); in onInputSlot() local
187 Math.toIntExact(capacity), codecNames); in onInputSlot()
DStreamUtils.java299 return mBuffer.capacity(); in sizeInBytes()
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmCodecTest.java123 new int[] { buffer.capacity() }, in testCryptoError()
175 new int[] { buffer.capacity() }, in testCryptoErrorLostSessionState()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecDecoderMultiAccessUnitDrmTestBase.java127 if (offset + size <= inputBuffer.capacity()) { in enqueueInput()
133 + "queue input", size, inputBuffer.capacity())); in enqueueInput()
DCodecDecoderMultiAccessUnitTestBase.java108 if (offset + size <= inputBuffer.capacity()) { in enqueueInput()
114 + "queue input", size, inputBuffer.capacity())); in enqueueInput()
DCodecDecoderBlockModelTestBase.java61 return mBuffer == null ? 0 : mBuffer.capacity(); in getBufferCapacity()
DCodecEncoderTestBase.java468 size = Math.min(inputBuffer.capacity(), mInputData.length - mInputBufferReadOffset); in enqueueInput()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_fast_d1new.rscript516 const float capacity = 1.0f - fuzzy_RGBA.a;
517 const float factor = capacity * (float)matte * g_blend_info.matte_normalizer;
569 const float capacity = 1.0f - fuzzy_RGBA.a;
570 const float factor = capacity * (float)matte * g_blend_info.matte_normalizer;
695 float capacity = 1.0f - fuzzy_RGBA.a;
696 fuzzy_RGBA.r += sharp_RGBA.r * capacity;
697 fuzzy_RGBA.g += sharp_RGBA.g * capacity;
698 fuzzy_RGBA.b += sharp_RGBA.b * capacity;
712 float capacity = 1.0f - fuzzy_RGBA.a;
713 fuzzy_RGBA.r += sharp_RGBA.r * capacity;
[all …]
Dlayered_filter_fast_f32.rscript384 const float capacity = 1.0f - fuzzy->alpha;
385 const float factor = capacity * (float)matte * g_blend_info.matte_normalizer;
461 float capacity = 1.0f - fuzzy->alpha;
462 fuzzy->red += sharp->red * capacity;
463 fuzzy->green += sharp->green * capacity;
464 fuzzy->blue += sharp->blue * capacity;
/cts/tests/media/src/android/mediav2/cts/
DCodecUnitTest.java1948 mCodec.queueInputBuffer(bufferIndex, 0, buffer.capacity() + 100, 0, in testQueueInputBufferWithBadSize()
1950 fail("queueInputBuffer succeeds with bad size param :: " + buffer.capacity() + in testQueueInputBufferWithBadSize()
1976 mCodec.queueInputBuffer(bufferIndex, 16, buffer.capacity(), 0, in testQueueInputBufferWithBadBuffInfo()
2004 mCodec.queueInputBuffer(bufferIndex, -1, buffer.capacity(), 0, in testQueueInputBufferWithBadOffset()
2170 info1.set(0, buffer.capacity() / 2, 0, 0); in testQueueInputBuffersWithNullInfo()
2173 info2.set(0, buffer.capacity() / 2, 2000, 0); in testQueueInputBuffersWithNullInfo()
2177 info3.set(0, buffer.capacity() / 2, 3000, 0); in testQueueInputBuffersWithNullInfo()
2237 info1.set(0, buffer.capacity() / 2, 0, MediaCodec.BUFFER_FLAG_KEY_FRAME); in testQueueInputBuffersWithBadSize()
2240 info2.set(buffer.capacity() / 4, buffer.capacity() / 2, 250, in testQueueInputBuffersWithBadSize()
2244 info3.set(buffer.capacity() / 2, buffer.capacity() / 2 + 120, 500, in testQueueInputBuffersWithBadSize()
[all …]
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputHidTestCase.java400 final float capacity = batteryState.getCapacity(); in testInputBatteryEvents() local
402 + " got capacity " + capacity in testInputBatteryEvents()
404 Floats.contains(testData.capacities, capacity)); in testInputBatteryEvents()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPackageDeviceInfo.java263 final int capacity = sharesUidWith.length * 20; in sharesUidWithInstallerPackage() local
264 final List<String> sharedPermissions = new ArrayList<>(capacity); in sharesUidWithInstallerPackage()
/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java1709 if ((expected.capacity() != actual.capacity()) in assertByteBufferEquals()
1712 || (!equals(expected.array(), expected.arrayOffset(), expected.capacity(), in assertByteBufferEquals()
1713 actual.array(), actual.arrayOffset(), actual.capacity()))) { in assertByteBufferEquals()
1723 + ", capacity: " + buffer.capacity() in bufferToString()
1725 buffer.array(), buffer.arrayOffset(), buffer.capacity()) + "]"; in bufferToString()
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/
DVirtualAudioTest.java378 CHANNEL_OUT_MONO, ENCODING_PCM_16BIT, audioData.capacity(), in playAudio()
380 audioTrack.write(audioData, audioData.capacity(), WRITE_BLOCKING); in playAudio()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DAdaptivePlaybackTest.java835 assertTrue(size <= buf.capacity());
1005 mInputBuffers[0].capacity() + "] and " +
1007 (mOutputBuffers[0] == null ? null : mOutputBuffers[0].capacity()) + "]");
1455 csdSize += csd.capacity();
1465 Log.i(TAG, "csd[" + csd.capacity() + "]");
1883 return AdaptivePlaybackTest.checksum(mBuf, mBuf.capacity(), mCRC);
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java310 PositionSet(int capacity) { in PositionSet() argument
311 mPositions = new int[capacity]; in PositionSet()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java241 quota.acquire(buffer.capacity()); in getDataFromImage()
247 data = new byte[buffer.capacity()]; in getDataFromImage()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainVisualQueryDetectionService.java381 assertThat(buffer.capacity()).isGreaterThan(0); in onReceiveImage()
/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/
DIRadioSimImpl.java405 android.hardware.radio.sim.PhonebookCapacity capacity = in getSimPhonebookCapacity() local
410 mRadioSimResponse.getSimPhonebookCapacityResponse(rsp, capacity); in getSimPhonebookCapacity()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java2885 Log.i(TAG, "got input buffer of size " + inputBuffers[bufidx].capacity()); in doStagefrightTestRawBlob()
3039 byte [] tempBlob = new byte[(int)inputBuffers[0].capacity()]; in doStagefrightTestRawBlob()
3056 inputBuffers[bufidx].capacity()); in doStagefrightTestRawBlob()
3058 inputBuffers[bufidx].put(tempBlob, 0, inputBuffers[bufidx].capacity()); in doStagefrightTestRawBlob()
3190 + inputBuffers[bufidx].capacity()); in doStagefrightTestRawBlob()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0213/
Dpoc.cpp371 if ((size_t)alignedSize != view.capacity()) { in decodeNFrames()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaCasTest.java826 ByteBuffer outputBuf = ByteBuffer.allocate(inputBuf.capacity()); in descrambleTestInputBuffer()

12