Home
last modified time | relevance | path

Searched refs:chunkSize (Results 1 – 7 of 7) sorted by relevance

/system/media/audio_utils/
Dtinysndfile.c124 unsigned chunkSize = little4u(&chunk[4]); in sf_open_read() local
125 if (chunkSize > remaining) { in sf_open_read()
127 fprintf(stderr, "chunkSize %u > remaining %zu\n", chunkSize, remaining); in sf_open_read()
138 if (chunkSize < 2) { in sf_open_read()
140 fprintf(stderr, "chunkSize %u < 2\n", chunkSize); in sf_open_read()
168 if (chunkSize < minSize) { in sf_open_read()
170 fprintf(stderr, "chunkSize %u < minSize %zu\n", chunkSize, minSize); in sf_open_read()
181 if (chunkSize > minSize) { in sf_open_read()
182 fseek(stream, (long) (chunkSize - minSize), SEEK_CUR); in sf_open_read()
243 handle->remaining = chunkSize / handle->bytesPerFrame; in sf_open_read()
[all …]
/system/libfmq/tests/
Dmq_test.cpp546 const size_t chunkSize = 100; in TEST_F() local
548 const size_t dataLen = chunkSize * chunkNum; in TEST_F()
556 ASSERT_TRUE(mQueue->read(readData + i * chunkSize, chunkSize)); in TEST_F()
565 const int chunkSize = 100; in TEST_F() local
567 const size_t dataLen = chunkSize * chunkNum; in TEST_F()
573 ASSERT_TRUE(mQueue->write(data + i * chunkSize, chunkSize)); in TEST_F()
758 const size_t chunkSize = 100; in TEST_F() local
760 const size_t dataLen = chunkSize * chunkNum; in TEST_F()
767 ASSERT_TRUE(mQueue->read(readData + i * chunkSize, chunkSize)); in TEST_F()
776 const size_t chunkSize = 100; in TEST_F() local
[all …]
Dmsgq_test_client.cpp573 const size_t chunkSize = 100; in TEST_F() local
575 const size_t numMessages = chunkSize * chunkNum; in TEST_F()
584 ASSERT_TRUE(mQueue->read(readData + i * chunkSize, chunkSize)); in TEST_F()
594 const size_t chunkSize = 100; in TEST_F() local
596 const size_t numMessages = chunkSize * chunkNum; in TEST_F()
602 ASSERT_TRUE(mQueue->write(data + i * chunkSize, chunkSize)); in TEST_F()
780 const size_t chunkSize = 100; in TEST_F() local
782 const size_t numMessages = chunkSize * chunkNum; in TEST_F()
791 ASSERT_TRUE(mQueue->read(readData + i * chunkSize, chunkSize)); in TEST_F()
801 const size_t chunkSize = 100; in TEST_F() local
[all …]
/system/extras/tests/sdcard/
Dsdcard_perf_test.cpp312 size_t chunk_size = testCase->chunkSize(); in readData()
355 size_t chunk_size = testCase->chunkSize(); in testRead()
444 size_t chunk_size = testCase->chunkSize(); in writeData()
492 size_t chunk_size = testCase->chunkSize(); in testWrite()
568 char * const chunk = new char[testCase->chunkSize()]; in writeTestFile()
569 memset(chunk, 0xaa, testCase->chunkSize()); in writeTestFile()
574 size_t chunk_size = testCase->chunkSize(); in writeTestFile()
692 printf("# Chunk size %d kbytes\n", testCase.chunkSize() / 1024); in main()
Dtestcase.cpp158 mReadTimer = new StopWatch("read", iter() * dataSize() / chunkSize() * kReadWriteFactor); in createTimers()
161 mWriteTimer = new StopWatch("write", iter() * dataSize() / chunkSize()); in createTimers()
Dtestcase.h66 size_t chunkSize() const { return mChunkSize; } in chunkSize() function
/system/libvintf/test/
Dmain.cpp1372 size_t chunkSize; in processData() local
1374 for (; n < data.size(); p += chunkSize, n += chunkSize) { in processData()
1375 chunkSize = std::min<size_t>(5, data.size() - n); in processData()
1376 if ((status = parser.process(p, chunkSize)) != OK) { in processData()