Home
last modified time | relevance | path

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

12

/system/chre/util/system/
Ddebug_dump.cc25 void debugDumpPrint(char *buffer, size_t *bufferPos, size_t bufferSize, in debugDumpPrint() argument
27 if (*bufferPos < bufferSize) { in debugDumpPrint()
30 int strLen = vsnprintf(&buffer[*bufferPos], bufferSize - *bufferPos, in debugDumpPrint()
36 if (bufferSize < strLenBytes || in debugDumpPrint()
37 *bufferPos >= (bufferSize - strLenBytes)) { in debugDumpPrint()
38 *bufferPos = bufferSize; in debugDumpPrint()
39 buffer[bufferSize - 1] = '\0'; in debugDumpPrint()
/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 buffer, 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/core/libstats/socket/tests/
Dstats_event_test.cpp100 size_t bufferSize; in TEST() local
101 uint8_t* buffer = stats_event_get_buffer(event, &bufferSize); in TEST()
102 uint8_t* bufferEnd = buffer + bufferSize; in TEST()
138 size_t bufferSize; in TEST() local
139 uint8_t* buffer = stats_event_get_buffer(event, &bufferSize); in TEST()
140 uint8_t* bufferEnd = buffer + bufferSize; in TEST()
163 size_t bufferSize; in TEST() local
164 uint8_t* buffer = stats_event_get_buffer(event, &bufferSize); in TEST()
165 uint8_t* bufferEnd = buffer + bufferSize; in TEST()
197 size_t bufferSize; in TEST() local
[all …]
/system/incremental_delivery/incfs/include/
Dincfs_ndk.h167 IncFsErrorCode IncFs_Root(const IncFsControl* control, char buffer[], size_t* bufferSize);
175 size_t* bufferSize);
177 size_t* bufferSize);
180 size_t* bufferSize);
182 char buffer[], size_t* bufferSize);
183 IncFsErrorCode IncFs_UnsafeGetSignatureByPath(const char* path, char buffer[], size_t* bufferSize);
192 IncFsReadInfo buffer[], size_t* bufferSize);
194 IncFsReadInfo buffer[], size_t* bufferSize);
/system/chre/core/
Dgnss_manager.cc40 char *buffer, size_t *bufferPos, size_t bufferSize) const { in logStateToBuffer()
41 debugDumpPrint(buffer, bufferPos, bufferSize,"\nGNSS:"); in logStateToBuffer()
42 mLocationSession.logStateToBuffer(buffer, bufferPos, bufferSize); in logStateToBuffer()
43 mMeasurementSession.logStateToBuffer(buffer, bufferPos, bufferSize); in logStateToBuffer()
115 char *buffer, size_t *bufferPos, size_t bufferSize) const { in logStateToBuffer()
116 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
119 debugDumpPrint(buffer, bufferPos, bufferSize, " Requests:\n"); in logStateToBuffer()
121 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
128 debugDumpPrint(buffer, bufferPos, bufferSize, " Transition queue:\n"); in logStateToBuffer()
130 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
Dnanoapp.cc91 size_t bufferSize) const { in logStateToBuffer()
92 PlatformNanoapp::logStateToBuffer(buffer, bufferPos, bufferSize); in logStateToBuffer()
94 buffer, bufferPos, bufferSize, in logStateToBuffer()
Dwwan_request_manager.cc77 size_t bufferSize) const { in logStateToBuffer()
78 debugDumpPrint(buffer, bufferPos, bufferSize, "\nWWAN:\n"); in logStateToBuffer()
80 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
Devent_loop.cc326 size_t bufferSize) const { in logStateToBuffer()
327 debugDumpPrint(buffer, bufferPos, bufferSize, "\nNanoapps:\n"); in logStateToBuffer()
329 app->logStateToBuffer(buffer, bufferPos, bufferSize); in logStateToBuffer()
332 debugDumpPrint(buffer, bufferPos, bufferSize, "\nEvent Loop:\n"); in logStateToBuffer()
333 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
Dwifi_request_manager.cc261 size_t bufferSize) const { in logStateToBuffer()
262 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
265 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
268 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
273 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
278 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
281 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
/system/incremental_delivery/incfs/
Dincfs.cpp548 IncFsErrorCode IncFs_Root(const IncFsControl* control, char buffer[], size_t* bufferSize) { in IncFs_Root() argument
553 if (*bufferSize <= result.size()) { in IncFs_Root()
554 *bufferSize = result.size() + 1; in IncFs_Root()
559 *bufferSize = result.size(); in IncFs_Root()
773 static IncFsErrorCode getMetadata(const char* path, char buffer[], size_t* bufferSize) { in getMetadata() argument
774 const auto res = ::getxattr(path, android::incfs::kMetadataAttrName, buffer, *bufferSize); in getMetadata()
779 *bufferSize = neededSize; in getMetadata()
785 *bufferSize = res; in getMetadata()
790 size_t* bufferSize) { in IncFs_GetMetadataById() argument
800 return getMetadata(android::incfs::details::c_str(name), buffer, bufferSize); in IncFs_GetMetadataById()
[all …]
/system/libhwbinder/
DBufferedTextOutput.cpp45 , bufferSize(0) in BufferState()
56 if ((len+bufferPos) > bufferSize) { in append()
62 bufferSize = newSize; in append()
72 if (bufferSize > 256) { in restart()
76 bufferSize = 256; in restart()
84 size_t bufferSize; member
/system/chre/platform/android/
Dplatform_audio.cc109 int32_t bufferSize = AAudioStream_getBufferCapacityInFrames(mStream); in PlatformAudio() local
111 bufferSize); in PlatformAudio()
116 bufferSize, kAndroidAudioSampleRate).toRawNanoseconds(); in PlatformAudio()
123 mBuffer.resize(bufferSize); in PlatformAudio()
/system/chre/platform/slpi/
Dhost_link.cc140 size_t bufferSize, unsigned int *messageLen) { in copyToHostBuffer() argument
145 if (size > bufferSize) { in copyToHostBuffer()
147 size, bufferSize); in copyToHostBuffer()
311 size_t bufferSize, unsigned int *messageLen) { in generateMessageToHost() argument
321 int result = copyToHostBuffer(builder, buffer, bufferSize, messageLen); in generateMessageToHost()
331 size_t bufferSize, unsigned int *messageLen) { in generateHubInfoResponse() argument
358 return copyToHostBuffer(builder, buffer, bufferSize, messageLen); in generateHubInfoResponse()
362 FlatBufferBuilder *builder, unsigned char *buffer, size_t bufferSize, in generateMessageFromBuilder() argument
365 int result = copyToHostBuffer(*builder, buffer, bufferSize, messageLen); in generateMessageFromBuilder()
606 size_t bufferSize = static_cast<size_t>(bufferLen); in chre_slpi_get_message_to_host() local
[all …]
/system/bt/stack/a2dp/
Da2dp_aac_decoder.cc67 UINT bufferSize = p_buf->len; in a2dp_aac_decoder_decode_packet() local
71 &pBuffer, &bufferSize, &bytesValid); in a2dp_aac_decoder_decode_packet()
/system/chre/platform/shared/
Dmemory_manager.cc87 size_t bufferSize) const { in logStateToBuffer()
88 debugDumpPrint(buffer, bufferPos, bufferSize, in logStateToBuffer()
/system/chre/util/include/chre/util/nanoapp/
Ddebug.h38 void logBuffer(const uint8_t *buffer, size_t bufferSize);
/system/chre/util/include/chre/util/system/
Ddebug_dump.h35 void debugDumpPrint(char *buffer, size_t *bufferPos, size_t bufferSize,
/system/chre/core/include/chre/core/
Dgnss_manager.h91 void logStateToBuffer(char *buffer, size_t *bufferPos, size_t bufferSize)
337 size_t bufferSize) const;
Dwwan_request_manager.h75 size_t bufferSize) const;
Dnanoapp.h158 size_t bufferSize) const;
/system/chre/platform/include/chre/platform/
Dplatform_nanoapp.h107 size_t bufferSize) const;
Dmemory_manager.h102 size_t bufferSize) const;
/system/bt/binder/android/bluetooth/
DIBluetoothHidDeviceCallback.aidl25 void onGetReport(in BluetoothDevice device, in byte type, in byte id, in int bufferSize); in onGetReport() argument
DIBluetoothHidHost.aidl50 boolean getReport(in BluetoothDevice device, byte reportType, byte reportId, int bufferSize); in getReport() argument
/system/chre/platform/slpi/include/chre/target_platform/
Dplatform_nanoapp_base.h68 bool copyNanoappFragment(const void *buffer, size_t bufferSize);

12