/frameworks/hardware/interfaces/sensorservice/utils/ |
D | direct_channel_buffer_reader_test.cc | 99 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/ |
D | large_mmap.cc | 59 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/ |
D | RemoteDataSource.h | 53 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/ |
D | android_media_MediaDataSource.cpp | 49 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()
|
D | android_media_MediaHTTPConnection.cpp | 44 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()
|
D | android_media_MediaHTTPConnection.h | 32 kBufferSize = 32768, enumerator
|
D | android_media_MediaDataSource.h | 38 kBufferSize = 64 * 1024, enumerator
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_HardwareRendererObserver.h | 49 static constexpr int kBufferSize = static_cast<int>(uirenderer::FrameInfoIndex::NumIndexes); 57 int64_t buffer[kBufferSize];
|
D | android_graphics_HardwareRendererObserver.cpp | 53 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/ |
D | rtsp_connection_fuzzer.cpp | 53 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/ |
D | SineSource.cpp | 32 mGroup->add_buffer(new MediaBuffer(kBufferSize)); in start() 56 meta->setInt32(kKeyMaxInputSize, kBufferSize); in getFormat()
|
D | SineSource.h | 27 enum { kBufferSize = 8192 }; enumerator
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerStreamListener.cpp | 37 mMemoryDealer = new MemoryDealer(kNumBuffers * kBufferSize); in NuPlayerStreamListener() 39 sp<IMemory> mem = mMemoryDealer->allocate(kBufferSize); in NuPlayerStreamListener()
|
/frameworks/av/media/libheif/ |
D | HeifDecoderImpl.cpp | 99 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/ |
D | NuPlayerStreamListener.h | 45 kBufferSize = 188 * 10 enumerator
|
/frameworks/av/media/libeffects/testlibs/ |
D | EffectEqualizer.cpp | 105 static const size_t kBufferSize = 32; variable 107 typedef AudioFormatAdapter<AudioEqualizer, kBufferSize> FormatAdapter;
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | FabricatedOverlay.cpp | 46 constexpr auto kBufferSize = 1024; variable 288 android::BigBuffer string_buffer(kBufferSize); in Build()
|
/frameworks/base/cmds/bootanimation/ |
D | BootAnimation.cpp | 434 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/ |
D | dexopt.cpp | 888 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()
|