/cts/suite/audio_quality/lib/include/audio/ |
D | Buffer.h | 35 explicit Buffer(size_t capacity, size_t size = 0, bool stereo = true); 39 inline size_t getCapacity() { in getCapacity() 43 inline size_t getSize() { in getSize() 47 inline size_t getSamples() { in getSamples() 51 inline void setSize(size_t size) { in setSize() 55 inline void increaseSize(size_t size) { in increaseSize() 62 inline void setData(char* data, size_t len) { in setData() 80 inline void increaseHandled(size_t size) { in increaseHandled() 84 inline void setHandled(size_t size) { in setHandled() 88 inline size_t amountHandled() { in amountHandled() [all …]
|
/cts/apps/CtsVerifier/jni/audio_loopback/audio_utils/ |
D | fifo.h | 35 size_t mFrameCount; // max number of significant frames to be stored in the FIFO > 0 36 size_t mFrameCountP2; // roundup(mFrameCount) 37 size_t mFudgeFactor; // mFrameCountP2 - mFrameCount, the number of "wasted" frames after 39 size_t mFrameSize; // size of each frame in bytes 54 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize, 70 ssize_t audio_utils_fifo_write(struct audio_utils_fifo *fifo, const void *buffer, size_t count); 80 ssize_t audio_utils_fifo_read(struct audio_utils_fifo *fifo, void *buffer, size_t count);
|
D | fifo.c | 28 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize, in audio_utils_fifo_init() 66 static inline size_t audio_utils_fifo_diff(struct audio_utils_fifo *fifo, int32_t rear, in audio_utils_fifo_diff() 80 return (size_t) diff; in audio_utils_fifo_diff() 83 ssize_t audio_utils_fifo_write(struct audio_utils_fifo *fifo, const void *buffer, size_t count) in audio_utils_fifo_write() 87 size_t availToWrite = fifo->mFrameCount - audio_utils_fifo_diff(fifo, rear, front); in audio_utils_fifo_write() 92 size_t part1 = fifo->mFrameCount - rear; in audio_utils_fifo_write() 99 size_t part2 = availToWrite - part1; in audio_utils_fifo_write() 110 ssize_t audio_utils_fifo_read(struct audio_utils_fifo *fifo, void *buffer, size_t count) in audio_utils_fifo_read() 114 size_t availToRead = audio_utils_fifo_diff(fifo, rear, front); in audio_utils_fifo_read() 119 size_t part1 = fifo->mFrameCount - front; in audio_utils_fifo_read() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/includes/ |
D | memutils.c | 28 size_t page_size = getpagesize(); in exit_handler() 86 void *memalign(size_t alignment, size_t size) { in memalign() 97 size_t total_size; in memalign() 98 size_t aligned_size = size; in memalign() 99 size_t num_pages; in memalign() 100 size_t page_size = getpagesize(); in memalign() 108 size_t new_alignment = sizeof(size_t); in memalign() 157 void *malloc(size_t size) { in malloc() 166 return memalign(sizeof(size_t), size); in malloc() 169 void *calloc(size_t nitems, size_t size) { in calloc() [all …]
|
D | memutils.h | 42 size_t mem_size; 45 static void* (*real_memalign)(size_t, size_t) = NULL; 46 static void* (*real_calloc)(size_t, size_t) = NULL; 47 static void* (*real_malloc)(size_t) = NULL; 48 static void* (*real_realloc)(void *ptr, size_t size) = NULL;
|
/cts/tests/aslr/src/ |
D | AslrMallocTest.cpp | 38 const size_t minEntropyBits = 8; 41 const size_t allocSizes[] = { 69 void GetAddress(size_t allocSize, uintptr_t& address) in GetAddress() 108 size_t iterations = 2 * (1 << minEntropyBits); in TestRandomization() 117 for (size_t i = 0; i < iterations; ++i) { in TestRandomization() 124 size_t entropy = static_cast<size_t>(0.5 + in TestRandomization() 143 size_t size; in main()
|
/cts/tests/tests/media/libaudiojni/ |
D | Blob.h | 30 BlobReadOnly(const void *data, size_t size, bool byReference) : in BlobReadOnly() 47 const size_t mSize; 54 Blob(size_t size) : in Blob() 61 Blob(void *data, size_t size) : in Blob() 72 size_t mOffset; 73 const size_t mSize;
|
D | Gate.h | 64 size_t waitId = ++mWaitCount; in wait() 111 size_t waiters() { in waiters() 119 size_t mWaitCount; // total number of threads that have called wait() 120 size_t mPassCount; // total number of threads passed the gate. 125 inline size_t waiters_l() { in waiters_l() 130 inline bool passedGate_l(size_t waitId) { in passedGate_l()
|
D | audio-record-native.cpp | 50 static const size_t BUFFER_SIZE_MSEC = 20; 316 ssize_t read(void *buffer, size_t size, bool blocking = false) { in read() 322 size_t copied; in read() 329 size_t osize = size; in read() 332 size_t tocopy = min(size, b->mSize - b->mOffset); in read() 368 size_t getBuffersPending() { in getBuffersPending() 405 size_t tocopy = min(mReadBlob->mSize - mReadBlob->mOffset, b->mSize - b->mOffset); in bufferQueueCallback() 445 size_t mBufferSize; 446 size_t mNumBuffers; 471 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioRecordNative_nativeTest() [all …]
|
/cts/suite/audio_quality/lib/src/ |
D | StringUtil.cpp | 42 android::String8 StringUtil::substr(const android::String8& str, size_t pos, size_t n) in substr() 44 size_t l = str.length(); in substr() 64 size_t l1 = str.length(); in endsWith() 65 size_t l2 = strlen(other); in endsWith() 70 size_t iStr = l1 - l2; in endsWith() 71 size_t iOther = 0; in endsWith()
|
/cts/tests/sensor/jni/ |
D | SensorTest.h | 65 int createSharedMemoryDirectChannel(int fd, size_t size); 66 int createHardwareBufferDirectChannel(AHardwareBuffer const *buffer, size_t size); 110 static TestSharedMemory* create(int type, size_t size); 112 std::vector<ASensorEvent> parseEvents(int64_t lastCounter = -1, size_t offset = 0) const; 127 size_t getSize() const { in getSize() 131 TestSharedMemory(int type, size_t size); 135 size_t mSize;
|
D | SensorTest.cpp | 73 int TestSensorManager::createSharedMemoryDirectChannel(int fd, size_t size) { in createSharedMemoryDirectChannel() 82 AHardwareBuffer const *buffer, size_t size) { in createHardwareBufferDirectChannel() 110 std::vector<ASensorEvent> TestSharedMemory::parseEvents(int64_t lastCounter, size_t offset) const { in parseEvents() 111 constexpr size_t kEventSize = sizeof(ASensorEvent); in parseEvents() 112 constexpr size_t kOffsetSize = offsetof(ASensorEvent, version); in parseEvents() 113 constexpr size_t kOffsetAtomicCounter = offsetof(ASensorEvent, reserved0); in parseEvents() 137 TestSharedMemory::TestSharedMemory(int type, size_t size) in TestSharedMemory() 234 TestSharedMemory* TestSharedMemory::create(int type, size_t size) { in create() 235 constexpr size_t kMaxSize = 128*1024*1024; // sensor test should not need more than 128M in create()
|
D | SensorTestCases.cpp | 137 constexpr size_t kEventSize = sizeof(ASensorEvent); in testDirectReport() 138 constexpr size_t kNEvent = 4096; // enough to contain 1.5 * 800 * 2.2 events in testDirectReport() 139 constexpr size_t kMemSize = kEventSize * kNEvent; in testDirectReport() 172 for (size_t i = 0; i < kMemSize; ++i) { in testDirectReport() 181 for (size_t i = 0; i < kMemSize; ++i) { in testDirectReport() 207 ASSERT_GT(events.size(), static_cast<size_t>(nominalFreq * 0.55f * nominalTestTimeSec)); in testDirectReport() 208 ASSERT_LT(events.size(), static_cast<size_t>(nominalFreq * 2.2f * maxTestTimeSec)); in testDirectReport()
|
/cts/tests/tests/media/libmediandkjni/ |
D | codec-utils-jni.cpp | 52 size_t size; 56 size_t cropWidth; 57 size_t cropHeight; 63 size_t numPlanes; 70 virtual size_t length() = 0; 91 size_t length() { in length() 96 size_t len; 216 for (size_t ix = 0; ix < img->numPlanes; ++ix) { in getNativeImage() 262 for (size_t ix = 0; ix < img->numPlanes; ++ix) { in Java_android_media_cts_CodecUtils_getImageChecksumAlder32() 264 for (size_t y = img->plane[ix].cropHeight; y > 0; --y) { in Java_android_media_cts_CodecUtils_getImageChecksumAlder32() [all …]
|
D | native-mediadrm-jni.cpp | 62 static const size_t kPlayTimeSeconds = 30; 63 static const size_t kUuidSize = 16; 103 static const size_t kKeyRequestSize = sizeof(kKeyRequestData); 300 for (size_t i = 0; i < psshInfo->numentries; i++) { in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative() 343 size_t numTracks = AMediaExtractor_getTrackCount( in addTracks() 347 for (size_t i = 0; i < numTracks; ++i) { in addTracks() 391 size_t bufsize; in fillDecoder() 530 int /*extra*/, const uint8_t* /*data*/, size_t /*dataSize*/) { in listener() argument 570 const AMediaDrmKeyStatus* keysStatus, size_t numKeys, bool hasNewUsableKey) { in onKeysChangeListener() 585 for (size_t i = 0; i < numKeys; ++i) { in onKeysChangeListener() [all …]
|
/cts/suite/audio_quality/lib/src/audio/ |
D | Buffer.cpp | 24 Buffer::Buffer(size_t capacity, size_t size, bool stereo) in Buffer() 47 size_t newSize = mSize/2; in changeToMono() 50 for (size_t i = 0; i < newSize/2; i++) { //16bpp only in changeToMono() 55 for (size_t i = 0; i < newSize/2; i++) { //16bpp only in changeToMono() 60 for (size_t i = 0; i < newSize/2; i++) { //16bpp only in changeToMono() 97 size_t size = file.tellg(); in loadFromFile() 143 for (size_t i = 0; i < mSize; i++) { in operator ==()
|
/cts/suite/audio_quality/test/ |
D | SignalProcessingInterfaceTest.cpp | 55 for (size_t i = 0; i < in0->getSize(); i++) { in TEST_F() 60 for (size_t i = 0; i < in1->getSize(); i++) { in TEST_F() 69 for (size_t i = 0; i < out0->getSize(); i++) { in TEST_F() 74 for (size_t i = 0; i < out1->getSize(); i++) { in TEST_F() 151 for (size_t i = 0; i < in0->getSize(); i++) { in TEST_F() 156 for (size_t i = 0; i < in1->getSize(); i++) { in TEST_F() 161 for (size_t i = 0; i < in2->getSize(); i++) { in TEST_F() 166 for (size_t i = 0; i < in3->getSize(); i++) { in TEST_F() 177 for (size_t i = 0; i < out0->getSize(); i++) { in TEST_F() 182 for (size_t i = 0; i < out1->getSize(); i++) { in TEST_F()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_MediaVulkanGpuTest.cpp | 39 for (size_t i = 0; i < 4; ++i) { in fuzzyMatch() 40 size_t shift = 8 * i; in fuzzyMatch() 128 size_t referenceSize = in loadMediaAndVerifyFrameImport() 129 static_cast<size_t>(env->GetArrayLength(referencePixels)); in loadMediaAndVerifyFrameImport() 136 size_t frame_offset = y * bufferDesc.width + x; in loadMediaAndVerifyFrameImport() 137 size_t reference_offset = y * kTestImageWidth + x; in loadMediaAndVerifyFrameImport()
|
D | android_graphics_cts_BasicVulkanGpuTest.cpp | 50 size_t pixelWidth; in verifyBasicBufferImport() 109 for (size_t y = 0; y < kTestImageHeight; ++y) { in verifyBasicBufferImport() 110 for (size_t x = 0; x < kTestImageWidth; ++x) { in verifyBasicBufferImport() 138 size_t offset = y * kTestImageWidth * formatDesc.pixelWidth + in verifyBasicBufferImport()
|
/cts/tests/openglperf2/jni/reference/scene/ |
D | Scene.cpp | 47 for (size_t i = 0; i < mTextureIds.size(); i++) { in tearDown() 50 for (size_t i = 0; i < mMeshes.size(); i++) { in tearDown() 53 for (size_t i = 0; i < mSceneGraphs.size(); i++) { in tearDown() 68 for (size_t i = 0; i < mSceneGraphs.size(); i++) { in update()
|
/cts/tests/tests/binder_ndk/libbinder_ndk_test/ |
D | test_parcel.cpp | 216 binder_status_t writeToParcel(AParcel* p, size_t length) const { in TEST_F() 222 static const char* ElementGetter(const void* vectorData, size_t /*index*/, int32_t* outLength) { in TEST_F() 233 for (size_t i = 0; i < kTestcase.size(); i++) { in TEST_F() 285 size_t position = AParcel_getDataPosition(out); in TEST_F() 331 size_t prePosition = AParcel_getDataPosition(in); in TEST_F() 332 size_t postPosition = prePosition + delta; in TEST_F() 353 size_t position = AParcel_getDataPosition(in); in TEST_F() 355 size_t prePosition = AParcel_getDataPosition(in); in TEST_F() 357 size_t postPosition = AParcel_getDataPosition(in); in TEST_F() 360 size_t delta = postPosition - prePosition; in TEST_F()
|
/cts/tests/media/jni/ |
D | NativeCodecEncoderSurfaceTest.cpp | 65 bool enqueueDecoderInput(size_t bufferIndex); 66 bool dequeueDecoderOutput(size_t bufferIndex, AMediaCodecBufferInfo* bufferInfo); 67 bool dequeueEncoderOutput(size_t bufferIndex, AMediaCodecBufferInfo* info); 71 bool enqueueDecoderEOS(size_t bufferIndex); 132 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(mExtractor); in setUpExtractor() 208 bool CodecEncoderSurfaceTest::enqueueDecoderEOS(size_t bufferIndex) { in enqueueDecoderEOS() 219 bool CodecEncoderSurfaceTest::enqueueDecoderInput(size_t bufferIndex) { in enqueueDecoderInput() 224 size_t bufSize = 0; in enqueueDecoderInput() 255 bool CodecEncoderSurfaceTest::dequeueDecoderOutput(size_t bufferIndex, in dequeueDecoderOutput() 270 bool CodecEncoderSurfaceTest::dequeueEncoderOutput(size_t bufferIndex, in dequeueEncoderOutput() [all …]
|
D | NativeCodecDecoderTest.cpp | 34 size_t mRefLength; 38 std::vector<std::pair<void*, size_t>> mCsdBuffers; 48 bool enqueueInput(size_t bufferIndex) override; 49 bool dequeueOutput(size_t bufferIndex, AMediaCodecBufferInfo* bufferInfo) override; 114 for (size_t trackID = 0; trackID < AMediaExtractor_getTrackCount(mExtractor); in setUpExtractor() 163 size_t bufSize; in enqueueCodecConfig() 170 size_t csdSize = mCsdBuffers[mCurrCsdIdx].second; in enqueueCodecConfig() 182 bool CodecDecoderTest::enqueueInput(size_t bufferIndex) { in enqueueInput() 187 size_t bufSize; in enqueueInput() 218 bool CodecDecoderTest::dequeueOutput(size_t bufferIndex, AMediaCodecBufferInfo* info) { in dequeueOutput() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/ |
D | IPCThreadState.h | 92 const uint8_t* data, size_t dataSize, 93 const binder_size_t* objects, size_t objectsSize, 96 const uint8_t* data, size_t dataSize, 97 const binder_size_t* objects, size_t objectsSize,
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2412/ |
D | poc.cpp | 55 size_t lengthPos = pData->dataPosition(); in writeBundle() 59 size_t startPos = pData->dataPosition(); in writeBundle() 69 size_t endPos = pData->dataPosition(); in writeBundle()
|