Home
last modified time | relevance | path

Searched refs:kBufferSize (Results 1 – 19 of 19) sorted by relevance

/frameworks/hardware/interfaces/sensorservice/utils/
Ddirect_channel_buffer_reader_test.cc99 DirectChannelBufferReaderTest() : buffer_{}, reader_(&buffer_[0], kBufferSize) {} in DirectChannelBufferReaderTest()
111 next_buffer_index_ = (next_buffer_index_ + 1) % kBufferSize; in FinishWritingSample()
155 static constexpr int kBufferSize = 20; member in __anonb64ca7aa0111::DirectChannelBufferReaderTest
156 std::array<sensors_event_t, kBufferSize> buffer_;
178 for (int i = 0; i < kBufferSize; i++) { in TEST_F()
181 EXPECT_EQ(reader_.Read(), kBufferSize - 1); in TEST_F()
182 EXPECT_EQ(reader_.GetSampleContainer().size(), kBufferSize - 1); in TEST_F()
210 for (int i = 0; i < kBufferSize; i++) { in TEST_F()
222 EXPECT_EQ(reader_.Read(), kBufferSize - 1); in TEST_F()
230 for (int i = 0; i < kBufferSize + 5; i++) { in TEST_F()
[all …]
/frameworks/libs/binary_translation/base/
Dlarge_mmap.cc59 constexpr size_t kBufferSize = size_t(1) << 34; // 16gb in InitLargeMmap() local
64 {.size = kBufferSize + kSpacingSize, .flags = MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE})); in InitLargeMmap()
65 MunmapOrDie(ptr + kBufferSize, kSpacingSize); in InitLargeMmap()
68 g_buffer_end = ptr + kBufferSize; in InitLargeMmap()
/frameworks/av/media/libstagefright/include/media/stagefright/
DRemoteDataSource.h53 if (size > kBufferSize) { in readAt()
54 size = kBufferSize; in readAt()
93 kBufferSize = 64 * 1024, enumerator
104 sp<MemoryDealer> memoryDealer = new MemoryDealer(kBufferSize, "RemoteDataSource"); in RemoteDataSource()
105 mMemory = memoryDealer->allocate(kBufferSize); in RemoteDataSource()
/frameworks/base/media/jni/
Dandroid_media_MediaDataSource.cpp49 ScopedLocalRef<jbyteArray> tmp(env, env->NewByteArray(kBufferSize)); in JMediaDataSource()
53 sp<MemoryDealer> memoryDealer = new MemoryDealer(kBufferSize, "JMediaDataSource"); in JMediaDataSource()
54 mMemory = memoryDealer->allocate(kBufferSize); in JMediaDataSource()
77 if (size > kBufferSize) { in readAt()
78 size = kBufferSize; in readAt()
Dandroid_media_MediaHTTPConnection.cpp44 mDealer = new MemoryDealer(kBufferSize, "MediaHTTPConnection"); in JMediaHTTPConnection()
45 mMemory = mDealer->allocate(kBufferSize); in JMediaHTTPConnection()
48 env, env->NewByteArray(JMediaHTTPConnection::kBufferSize)); in JMediaHTTPConnection()
137 if (size > JMediaHTTPConnection::kBufferSize) { in android_media_MediaHTTPConnection_native_readAt()
138 size = JMediaHTTPConnection::kBufferSize; in android_media_MediaHTTPConnection_native_readAt()
Dandroid_media_MediaHTTPConnection.h32 kBufferSize = 32768, enumerator
Dandroid_media_MediaDataSource.h38 kBufferSize = 64 * 1024, enumerator
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_HardwareRendererObserver.h49 static constexpr int kBufferSize = static_cast<int>(uirenderer::FrameInfoIndex::NumIndexes);
57 int64_t buffer[kBufferSize];
Dandroid_graphics_HardwareRendererObserver.cpp53 LOG_ALWAYS_FATAL_IF(bufferSize != HardwareRendererObserver::kBufferSize, in getNextBuffer()
58 env->SetLongArrayRegion(metrics, 0, kBufferSize, elem.buffer); in getNextBuffer()
74 memcpy(elem.buffer, stats, kBufferSize * sizeof(stats[0])); in notify()
/frameworks/av/media/libstagefright/rtsp/fuzzer/
Drtsp_connection_fuzzer.cpp53 constexpr int32_t kBufferSize = 1024; variable
251 char buffer[kBufferSize] = {0}; in handleClientResponse()
253 read(newSocket, buffer, kBufferSize); in handleClientResponse()
265 char buffer[kBufferSize] = {0}; in handleConnection()
266 if (checkSocket(newSocket) == 1 && recv(newSocket, buffer, kBufferSize, MSG_DONTWAIT) > 0) { in handleConnection()
278 char buffer[kBufferSize] = {0}; in handleConnection()
280 if (recv(newSocket, buffer, kBufferSize, MSG_DONTWAIT) > 0) { in handleConnection()
/frameworks/av/cmds/stagefright/
DSineSource.cpp32 mGroup->add_buffer(new MediaBuffer(kBufferSize)); in start()
56 meta->setInt32(kKeyMaxInputSize, kBufferSize); in getFormat()
DSineSource.h27 enum { kBufferSize = 8192 }; enumerator
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerStreamListener.cpp37 mMemoryDealer = new MemoryDealer(kNumBuffers * kBufferSize); in NuPlayerStreamListener()
39 sp<IMemory> mem = mMemoryDealer->allocate(kBufferSize); in NuPlayerStreamListener()
/frameworks/av/media/libheif/
DHeifDecoderImpl.cpp99 kBufferSize = 64 * 1024, enumerator
117 new MemoryDealer(kBufferSize, "HeifDataSource"); in init()
118 mMemory = memoryDealer->allocate(kBufferSize); in init()
173 if (size > kBufferSize) { in readAt()
174 size = kBufferSize; in readAt()
/frameworks/av/media/libmediaplayerservice/nuplayer/include/nuplayer/
DNuPlayerStreamListener.h45 kBufferSize = 188 * 10 enumerator
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp105 static const size_t kBufferSize = 32; variable
107 typedef AudioFormatAdapter<AudioEqualizer, kBufferSize> FormatAdapter;
/frameworks/base/cmds/idmap2/libidmap2/
DFabricatedOverlay.cpp46 constexpr auto kBufferSize = 1024; variable
288 android::BigBuffer string_buffer(kBufferSize); in Build()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp434 constexpr int kBufferSize = 100; in handleEvent() local
435 DisplayEventReceiver::Event buffer[kBufferSize]; in handleEvent()
438 numEvents = mBootAnimation->mDisplayEventReceiver->getEvents(buffer, kBufferSize); in handleEvent()
/frameworks/native/cmds/installd/
Ddexopt.cpp888 static constexpr size_t kBufferSize = 4 * 1024; in copy_system_profile() local
889 char buffer[kBufferSize]; in copy_system_profile()
891 ssize_t bytes = read(in_fd.get(), buffer, kBufferSize); in copy_system_profile()