Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 25 of 30) sorted by relevance

12

/system/chre/util/nanoapp/
Ddebug.cc31 void logBuffer(const uint8_t *buffer, size_t bufferSize) { in logBuffer() argument
37 if (bufferSize > 128) { in logBuffer()
39 bufferSize); in logBuffer()
40 bufferSize = 128; in logBuffer()
42 LOGD("Dumping buffer @ %p, size %zu", buffer, bufferSize); in logBuffer()
45 for (size_t i = 1; i <= bufferSize; i++) { in logBuffer()
/system/incremental_delivery/incfs/include/
Dincfs_ndk.h226 IncFsErrorCode IncFs_Root(const IncFsControl* control, char buffer[], size_t* bufferSize);
237 size_t* bufferSize);
239 size_t* bufferSize);
242 size_t* bufferSize);
244 char buffer[], size_t* bufferSize);
245 IncFsErrorCode IncFs_UnsafeGetSignatureByPath(const char* path, char buffer[], size_t* bufferSize);
254 IncFsReadInfo buffer[], size_t* bufferSize);
256 IncFsReadInfo buffer[], size_t* bufferSize);
259 IncFsReadInfoWithUid buffer[], size_t* bufferSize);
261 IncFsReadInfoWithUid buffer[], size_t* bufferSize);
[all …]
/system/chre/platform/shared/include/chre/platform/shared/
Dlog_buffer_manager.h58 size_t bufferSize) in LogBufferManager() argument
59 : mPrimaryLogBuffer(this, primaryBufferData, bufferSize), in LogBufferManager()
61 bufferSize) {} in LogBufferManager()
Dhost_protocol_chre.h244 const uint8_t *logBuffer, size_t bufferSize);
250 const uint8_t *logBuffer, size_t bufferSize,
/system/libhwbinder/
DBufferedTextOutput.cpp44 , bufferSize(0) in BufferState()
55 if ((len+bufferPos) > bufferSize) { in append()
61 bufferSize = newSize; in append()
71 if (bufferSize > 256) { in restart()
75 bufferSize = 256; in restart()
83 size_t bufferSize; member
/system/incremental_delivery/incfs/
Dincfs.cpp690 IncFsErrorCode IncFs_Root(const IncFsControl* control, char buffer[], size_t* bufferSize) { in IncFs_Root() argument
695 if (*bufferSize <= result.size()) { in IncFs_Root()
696 *bufferSize = result.size() + 1; in IncFs_Root()
701 *bufferSize = result.size(); in IncFs_Root()
957 static IncFsErrorCode getMetadata(const char* path, char buffer[], size_t* bufferSize) { in getMetadata() argument
958 const auto res = ::getxattr(path, kMetadataAttrName, buffer, *bufferSize); in getMetadata()
963 *bufferSize = neededSize; in getMetadata()
969 *bufferSize = res; in getMetadata()
974 size_t* bufferSize) { in IncFs_GetMetadataById() argument
984 return getMetadata(details::c_str(name), buffer, bufferSize); in IncFs_GetMetadataById()
[all …]
/system/libfmq/include/fmq/
DAidlMessageQueue.h101 android::base::unique_fd bufferFd, size_t bufferSize);
115 android::base::unique_fd bufferFd, size_t bufferSize,
133 android::base::unique_fd bufferFd, size_t bufferSize)
135 numElementsInQueue, configureEventFlagWord, std::move(bufferFd), bufferSize) {}
141 size_t bufferSize, std::enable_if_t<std::is_same_v<V, MQErased>, size_t> quantum)
143 numElementsInQueue, configureEventFlagWord, std::move(bufferFd), bufferSize,
DMessageQueue.h47 android::base::unique_fd bufferFd, size_t bufferSize) in MessageQueue()
49 std::move(bufferFd), bufferSize) {} in MessageQueue()
DAidlMQDescriptorShim.h46 AidlMQDescriptorShim(size_t bufferSize, native_handle_t* nHandle, size_t messageSize,
169 AidlMQDescriptorShim<T, flavor>::AidlMQDescriptorShim(size_t bufferSize, native_handle_t* nHandle, in AidlMQDescriptorShim() argument
177 bool overflow = bufferSize > std::numeric_limits<uint64_t>::max() - in AidlMQDescriptorShim()
182 sizeof(hardware::details::RingBufferPosition) + bufferSize); in AidlMQDescriptorShim()
187 " bytes. Data buffer size: " + std::to_string(bufferSize) + " bytes. Max size: " + in AidlMQDescriptorShim()
205 bufferSize, /* memory to be allocated for data buffer */ in AidlMQDescriptorShim()
DMessageQueueBase.h75 android::base::unique_fd bufferFd, size_t bufferSize) in MessageQueueBase()
77 bufferSize, sizeof(T)) { in MessageQueueBase()
478 android::base::unique_fd bufferFd, size_t bufferSize, size_t quantum);
746 size_t bufferSize, size_t quantum) { in MessageQueueBase() argument
758 if (bufferFd != -1 && numElementsInQueue * quantum > bufferSize) { in MessageQueueBase()
759 hardware::details::logError("The supplied buffer size(" + std::to_string(bufferSize) + in MessageQueueBase()
/system/chre/util/include/chre/util/system/
Ddebug_dump.h36 explicit DebugDumpWrapper(size_t bufferSize) in DebugDumpWrapper() argument
37 : kBuffSize(bufferSize), mCurrBuff(nullptr) {} in DebugDumpWrapper()
/system/chre/platform/android/
Dplatform_audio.cc109 int32_t bufferSize = AAudioStream_getBufferCapacityInFrames(mStream); in PlatformAudio() local
110 LOGD("Created audio stream with %" PRId32 " frames buffer size", bufferSize); in PlatformAudio()
116 bufferSize, kAndroidAudioSampleRate) in PlatformAudio()
124 mBuffer.resize(bufferSize); in PlatformAudio()
/system/chre/platform/slpi/
Dhost_link.cc124 unsigned char *buffer, size_t bufferSize, in copyToHostBuffer() argument
130 if (size > bufferSize) { in copyToHostBuffer()
132 size, bufferSize); in copyToHostBuffer()
251 size_t bufferSize, unsigned int *messageLen) { in generateMessageToHost() argument
262 int result = copyToHostBuffer(builder, buffer, bufferSize, messageLen); in generateMessageToHost()
272 size_t bufferSize, unsigned int *messageLen) { in generateHubInfoResponse() argument
297 return copyToHostBuffer(builder, buffer, bufferSize, messageLen); in generateHubInfoResponse()
301 unsigned char *buffer, size_t bufferSize, in generateMessageFromBuilder() argument
305 int result = copyToHostBuffer(*builder, buffer, bufferSize, messageLen); in generateMessageFromBuilder()
484 size_t bufferSize = static_cast<size_t>(bufferLen); in chre_slpi_get_message_to_host() local
[all …]
/system/libhidl/fuzzer/
DlibHidlBase_parcel_fuzzer.cpp70 uint32_t bufferSize = mFdp.ConsumeIntegralInRange<uint32_t>(kMinSize, kMaxSize); in createRandomParcel() local
72 std::vector<GrantorDescriptor> grantDescriptor(bufferSize); in createRandomParcel()
73 for (size_t idx = 0; idx < bufferSize; ++idx) { in createRandomParcel()
82 descriptorSync = MQDescriptorSync<uint8_t>{bufferSize, testHandle, size, in createRandomParcel()
/system/chre/util/include/chre/util/nanoapp/
Ddebug.h38 void logBuffer(const uint8_t *buffer, size_t bufferSize);
/system/media/audio_utils/tests/
Dspdif_tests.cpp208 size_t bufferSize = encoder.getBurstBufferSizeBytes(); in TEST() local
210 ASSERT_GE(bufferSize, pendingBytes); in TEST()
227 size_t bufferSize = encoder.getBurstBufferSizeBytes(); in TEST() local
229 ASSERT_GE(bufferSize, pendingBytes); in TEST()
/system/libhidl/base/include/hidl/
DMQDescriptor.h38 MQDescriptor(size_t bufferSize, native_handle_t* nHandle,
109 MQDescriptor<T, flavor>::MQDescriptor(size_t bufferSize, native_handle_t* nHandle, in MQDescriptor() argument
124 bufferSize, /* memory to be allocated for data buffer */ in MQDescriptor()
/system/chre/platform/exynos/include/chre/target_platform/
Dplatform_nanoapp_base.h70 bool copyNanoappFragment(const void *buffer, size_t bufferSize);
/system/chre/platform/slpi/include/chre/target_platform/
Dplatform_nanoapp_base.h71 bool copyNanoappFragment(const void *buffer, size_t bufferSize);
/system/chre/platform/freertos/include/chre/target_platform/
Dplatform_nanoapp_base.h88 bool copyNanoappFragment(const void *buffer, size_t bufferSize);
/system/chre/platform/shared/
Dhost_protocol_chre.cc305 size_t bufferSize) { in encodeLogMessages() argument
307 reinterpret_cast<const int8_t *>(logBuffer), bufferSize); in encodeLogMessages()
314 size_t bufferSize, in encodeLogMessagesV2() argument
317 reinterpret_cast<const int8_t *>(logBuffer), bufferSize); in encodeLogMessagesV2()
Dlog_buffer.cc30 size_t bufferSize) in LogBuffer() argument
32 mBufferMaxSize(bufferSize), in LogBuffer()
34 CHRE_ASSERT(bufferSize >= kBufferMinSize); in LogBuffer()
/system/incremental_delivery/libdataloader/include/
Ddataloader_ndk.h130 char buffer[], size_t* bufferSize);
/system/core/fs_mgr/liblp/fuzzer/
Dliblp_apis_fuzzer.cpp191 uint64_t bufferSize = mFdp.ConsumeIntegralInRange<uint64_t>( in process() local
194 buffer.resize(bufferSize); in process()
/system/libfmq/fuzzer/
Dfmq_fuzzer.cpp338 size_t bufferSize = numElements * sizeof(payload_t); in fuzzWithReaders() local
351 dataFd.reset(::ashmem_create_region("CustomData", bufferSize)); in fuzzWithReaders()
353 writeMq = std::make_unique<Queue>(numElements, evFlag, std::move(dataFd), bufferSize); in fuzzWithReaders()

12