Home
last modified time | relevance | path

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

/cts/suite/audio_quality/lib/src/
DRWBuffer.h28 explicit RWBuffer(int capacity) in RWBuffer() argument
29 : mCapacity(capacity), in RWBuffer()
32 mBuffer = new char[capacity]; in RWBuffer()
/cts/suite/audio_quality/lib/src/audio/
DBuffer.cpp24 Buffer::Buffer(size_t capacity, size_t size, bool stereo) in Buffer() argument
25 : mCapacity(capacity), in Buffer()
30 mData = new char[capacity]; in Buffer()
36 memset(mData, 0, capacity); in Buffer()
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DAudioProtocol.java269 if (bufferSize > data.capacity()) { in handleStartPlayback()
270 bufferSize = data.capacity(); in handleStartPlayback()
283 int dataToWrite = (bufferSize < data.capacity())? bufferSize : data.capacity(); in handleStartPlayback()
288 int endMarker = data.capacity()/(stereo ? 4 : 2); in handleStartPlayback()
290 Log.d(TAG, "start playback id " + id + " len " + data.capacity() + in handleStartPlayback()
294 while (dataWritten < data.capacity()) { in handleStartPlayback()
295 int dataLeft = data.capacity() - dataWritten; in handleStartPlayback()
/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/suite/audio_quality/lib/include/audio/
DBuffer.h35 explicit Buffer(size_t capacity, size_t size = 0, bool stereo = true);
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPackageDeviceInfo.java169 final int capacity = sharesUidWith.length * 20; in sharesUidWithInstallerPackage() local
170 final List<String> sharedPermissions = new ArrayList<>(capacity); in sharesUidWithInstallerPackage()
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp47 int capacity; member in simplevector
51 capacity = 16; in simplevector()
53 storage = new T[capacity]; in simplevector()
60 if (numfilled == capacity) { in add()
62 capacity *= 2; in add()
63 storage = new T[capacity]; in add()
/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java1535 if ((expected.capacity() != actual.capacity()) in assertByteBufferEquals()
1538 || (!equals(expected.array(), expected.arrayOffset(), expected.capacity(), in assertByteBufferEquals()
1539 actual.array(), actual.arrayOffset(), actual.capacity()))) { in assertByteBufferEquals()
1549 + ", capacity: " + buffer.capacity() in bufferToString()
1551 buffer.array(), buffer.arrayOffset(), buffer.capacity()) + "]"; in bufferToString()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java211 quota.acquire(buffer.capacity()); in getDataFromImage()
217 data = new byte[buffer.capacity()]; in getDataFromImage()
DItsService.java516 mOpenSocket.getOutputStream().write(b.array(), 0, b.capacity()); in run()
518 byte[] barray = new byte[b.capacity()]; in run()
523 Logt.i(TAG, String.format("Wrote to socket: %d bytes", b.capacity())); in run()
525 if (imgBufSize != null && imgBufSize == b.capacity()) { in run()
719 jsonObj.put("bufValueSize", bbuf.capacity()); in sendResponse()
728 mInflightImageSizes.add(bbuf.capacity()); in sendResponse()
/cts/tests/tests/media/src/android/media/cts/
DAdaptivePlaybackTest.java805 assertTrue(size <= buf.capacity());
961 mInputBuffers[0].capacity() + "] and " +
963 (mOutputBuffers[0] == null ? null : mOutputBuffers[0].capacity()) + "]");
1377 sampleSize += csd.capacity();
1389 Log.i(TAG, "csd[" + csd.capacity() + "]");
1791 return AdaptivePlaybackTest.checksum(mBuf, mBuf.capacity(), mCRC);
DMediaCodecTest.java867 for (int i = 0; i < inputBuffer.capacity() / 2; i++) { in feedEncoder()
1629 ByteBuffer source = ByteBuffer.allocate(inputBuffers[0].capacity()); in runAudioEncoding()
1630 for (int i = 0; i < source.capacity()/2; i++) { in runAudioEncoding()
1800 new int[] { buffer.capacity() }, in testCryptoError()
1996 new int[] { buffer.capacity() }, in testCryptoErrorLostSessionState()
2283 return mBuffer.capacity(); in sizeInBytes()
DMediaCasTest.java599 ByteBuffer outputBuf = ByteBuffer.allocate(inputBuf.capacity()); in descrambleTestInputBuffer()
DEncodeDecodeTest.java689 assertTrue(inputBuf.capacity() >= frameData.length); in doEncodeDecodeVideoFromBuffer()
DDecoderTest.java2971 int cap = buf.capacity();
2993 int cap = buf.capacity();
DVideoEncoderTest.java602 mEncInputBufferSize = mEncoder.getInputBuffer(encBuffer).capacity(); in renderDecodedBuffer()
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java310 PositionSet(int capacity) { in PositionSet() argument
311 mPositions = new int[capacity]; in PositionSet()
/cts/tests/media/src/android/mediav2/cts/
DCodecUnitTest.java1790 mCodec.queueInputBuffer(bufferIndex, 0, buffer.capacity() + 100, 0, in testQueueInputBufferWithBadSize()
1792 fail("queueInputBuffer succeeds with bad size param :: " + buffer.capacity() + in testQueueInputBufferWithBadSize()
1817 mCodec.queueInputBuffer(bufferIndex, 16, buffer.capacity(), 0, in testQueueInputBufferWithBadBuffInfo()
1844 mCodec.queueInputBuffer(bufferIndex, -1, buffer.capacity(), 0, in testQueueInputBufferWithBadOffset()
DCodecTestBase.java280 int cap = buf.capacity(); in checksum()
1260 size = Math.min(inputBuffer.capacity(), mInputData.length - mNumBytesSubmitted); in enqueueInput()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java2342 Log.i(TAG, "got input buffer of size " + inputBuffers[bufidx].capacity()); in doStagefrightTestRawBlob()
2475 byte [] tempBlob = new byte[(int)inputBuffers[0].capacity()]; in doStagefrightTestRawBlob()
2481 inputBuffers[bufidx].capacity()); in doStagefrightTestRawBlob()
2486 inputBuffers[bufidx].put(tempBlob, 0, inputBuffers[bufidx].capacity()); in doStagefrightTestRawBlob()
/cts/tests/video/src/android/video/cts/
DVideoEncoderDecoderTest.java1177 int writeSize = src.capacity(); in runDecoder()