/hardware/broadcom/wlan/bcmdhd/dhdutil/include/ |
D | bcmendian.h | 125 #define htol16_ua_store(val, bytes) ({ \ argument 127 uint8 *_bytes = (uint8 *)(bytes); \ 132 #define htol32_ua_store(val, bytes) ({ \ argument 134 uint8 *_bytes = (uint8 *)(bytes); \ 141 #define hton16_ua_store(val, bytes) ({ \ argument 143 uint8 *_bytes = (uint8 *)(bytes); \ 148 #define hton32_ua_store(val, bytes) ({ \ argument 150 uint8 *_bytes = (uint8 *)(bytes); \ 157 #define ltoh16_ua(bytes) ({ \ argument 158 const uint8 *_bytes = (const uint8 *)(bytes); \ [all …]
|
/hardware/google/aemu/base/include/aemu/base/ |
D | Allocator.h | 37 size_t bytes = sizeof(T) * count; in allocArray() local 38 void* res = alloc(bytes); in allocArray() 43 size_t bytes = strlen(toCopy) + 1; in strDup() local 44 void* res = alloc(bytes); in strDup() 45 memset(res, 0x0, bytes); in strDup() 46 memcpy(res, toCopy, bytes); in strDup() 60 void* dupArray(const void* buf, size_t bytes) { in dupArray() argument 61 void* res = alloc(bytes); in dupArray() 62 memcpy(res, buf, bytes); in dupArray()
|
D | SubAllocator.h | 60 size_t bytes = sizeof(T) * count; in allocArray() local 61 void* res = alloc(bytes); in allocArray() 66 size_t bytes = strlen(toCopy) + 1; in strDup() local 67 void* res = alloc(bytes); in strDup() 68 memset(res, 0x0, bytes); in strDup() 69 memcpy(res, toCopy, bytes); in strDup() 83 void* dupArray(const void* buf, size_t bytes) { in dupArray() argument 84 void* res = alloc(bytes); in dupArray() 85 memcpy(res, buf, bytes); in dupArray()
|
D | ring_buffer.h | 119 uint32_t bytes, 124 uint32_t bytes, 132 uint32_t bytes); 137 uint32_t bytes); 147 uint32_t bytes, 154 uint32_t bytes, 163 const struct ring_buffer* r, uint32_t bytes); 165 const struct ring_buffer* r, uint32_t bytes); 169 uint32_t bytes); 173 uint32_t bytes);
|
/hardware/google/aemu/base/ |
D | ring_buffer.cpp | 55 bool ring_buffer_can_write(const struct ring_buffer* r, uint32_t bytes) { in ring_buffer_can_write() argument 58 return get_ring_pos(read_view - r->write_pos - 1) >= bytes; in ring_buffer_can_write() 61 bool ring_buffer_can_read(const struct ring_buffer* r, uint32_t bytes) { in ring_buffer_can_read() argument 64 return get_ring_pos(write_view - r->read_pos) >= bytes; in ring_buffer_can_read() 228 uint32_t bytes) { in ring_buffer_view_can_write() argument 232 v, read_view - r->write_pos - 1) >= bytes; in ring_buffer_view_can_write() 238 uint32_t bytes) { in ring_buffer_view_can_read() argument 242 v, write_view - r->read_pos) >= bytes; in ring_buffer_view_can_read() 437 uint32_t bytes, in ring_buffer_wait_write() argument 444 v ? ring_buffer_view_can_write(r, v, bytes) : in ring_buffer_wait_write() [all …]
|
D | Stream.cpp | 91 uint8_t bytes[sizeof(float)]; in putFloat() member 94 this->write(u.bytes, sizeof(u.bytes)); in putFloat() 100 uint8_t bytes[sizeof(float)]; in getFloat() member 102 this->read(u.bytes, sizeof(u.bytes)); in getFloat()
|
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/ |
D | common.cpp | 200 char *bytes = (char *)buf; in hexdump() local 206 bytes[i], bytes[i+1], in hexdump() 207 bytes[i+2], bytes[i+3], in hexdump() 208 bytes[i+4], bytes[i+5], in hexdump() 209 bytes[i+6], bytes[i+7]); in hexdump() 213 bytes[i], bytes[i+1], in hexdump() 214 bytes[i+2], bytes[i+3]); in hexdump() 218 ALOGV("%02x", bytes[i]); in hexdump()
|
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/ |
D | common.cpp | 200 char *bytes = (char *)buf; in hexdump() local 206 bytes[i], bytes[i+1], in hexdump() 207 bytes[i+2], bytes[i+3], in hexdump() 208 bytes[i+4], bytes[i+5], in hexdump() 209 bytes[i+6], bytes[i+7]); in hexdump() 213 bytes[i], bytes[i+1], in hexdump() 214 bytes[i+2], bytes[i+3]); in hexdump() 218 ALOGV("%02x", bytes[i]); in hexdump()
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | VehicleUtils.cpp | 49 val->value.bytes.resize(vecSize); in createVehiclePropValue() 75 return value.bytes.size(); in getVehicleRawValueVectorSize() 86 dest->bytes = src.bytes; in copyVehicleRawValue() 124 shallowCopyHidlVec(&dest->value.bytes, src.value.bytes); in shallowCopy()
|
D | ProtoMessageConverter.cpp | 165 if (val.value.bytes.size() > 0) { in toProto() 166 protoVal->set_bytes_value(val.value.bytes.data(), val.value.bytes.size()); in toProto() 192 auto cast_proto_bytes_to_vec = [](auto&& bytes) { in fromProto() argument 193 return std::vector<uint8_t>(bytes.begin(), bytes.end()); in fromProto() 195 CHECK_CAST_COPY_PROTOBUF_VAR_TO_VHAL_TYPE(protoVal, bytes_value, val, value.bytes, in fromProto()
|
/hardware/libhardware_legacy/audio/ |
D | AudioHardwareStub.cpp | 128 ssize_t AudioStreamOutStub::write(const void* buffer, size_t bytes) in write() argument 131 usleep(bytes * 1000000 / sizeof(int16_t) / in write() 133 return bytes; in write() 175 ssize_t AudioStreamInStub::read(void* buffer, ssize_t bytes) in read() argument 178 usleep(bytes * 1000000 / sizeof(int16_t) / in read() 180 memset(buffer, 0, bytes); in read() 181 return bytes; in read()
|
D | AudioDumpInterface.cpp | 279 ssize_t AudioStreamOutDump::write(const void* buffer, size_t bytes) in write() argument 284 ret = mFinalStream->write(buffer, bytes); in write() 286 usleep((((bytes * 1000) / frameSize()) / sampleRate()) * 1000); in write() 287 ret = bytes; in write() 298 fwrite(buffer, bytes, 1, mFile); in write() 439 ssize_t AudioStreamInDump::read(void* buffer, ssize_t bytes) in read() argument 444 ret = mFinalStream->read(buffer, bytes); in read() 454 fwrite(buffer, bytes, 1, mFile); in read() 457 usleep((((bytes * 1000) / frameSize()) / sampleRate()) * 1000); in read() 458 ret = bytes; in read() [all …]
|
/hardware/interfaces/bluetooth/audio/utils/session/ |
D | BluetoothAudioSession.cpp | 403 size_t bytes) { in OutWritePcmData() argument 406 bytes); in OutWritePcmData() 407 if (buffer == nullptr || !bytes) return 0; in OutWritePcmData() 415 if (availableToWrite > (bytes - totalWritten)) { in OutWritePcmData() 416 availableToWrite = bytes - totalWritten; in OutWritePcmData() 421 ALOGE("FMQ datapath writting %zu/%zu failed", totalWritten, bytes); in OutWritePcmData() 430 ALOGD("data %zu/%zu overflow %d ms", totalWritten, bytes, in OutWritePcmData() 434 } while (totalWritten < bytes); in OutWritePcmData() 439 size_t BluetoothAudioSession::InReadPcmData(void* buffer, size_t bytes) { in InReadPcmData() argument 442 bytes); in InReadPcmData() [all …]
|
D | BluetoothAudioSessionControl_2_1.h | 137 const void* buffer, size_t bytes) { in OutWritePcmData() argument 141 return session_ptr->GetAudioSession()->OutWritePcmData(buffer, bytes); in OutWritePcmData() 148 size_t bytes) { in InReadPcmData() argument 152 return session_ptr->GetAudioSession()->InReadPcmData(buffer, bytes); in InReadPcmData()
|
/hardware/interfaces/media/c2/1.2/ |
D | types.hal | 28 * |lock(futex) 4bytes| 29 * |conditional_variable(futex) 4bytes| 30 * |# of max dequeable buffer 4bytes| 31 * |# of dequeued buffer 4bytes| 32 * |Status of the surface 4bytes|
|
/hardware/google/aemu/host-common/ |
D | HostGoldfishPipe_unittest.cpp | 49 size_t bytes = strlen(kResponse) + 1; in TEST_F() local 50 output->resize(bytes); in TEST_F() 51 memset(output->data(), 0x0, bytes); in TEST_F()
|
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
D | JsonFakeValueGenerator.cpp | 188 value.bytes = generateDiagnosticBytes(value); in parseFakeValueJson() 231 hidl_vec<uint8_t> bytes(byteSize % 8 == 0 ? byteSize / 8 : byteSize / 8 + 1); in generateDiagnosticBytes() local 236 setBit(bytes, i); in generateDiagnosticBytes() 243 setBit(bytes, i + (size_t)DiagnosticIntegerSensorIndex::LAST_SYSTEM_INDEX + 1); in generateDiagnosticBytes() 246 return bytes; in generateDiagnosticBytes() 249 void JsonFakeValueGenerator::setBit(hidl_vec<uint8_t>& bytes, size_t idx) { in setBit() argument 251 bytes[idx / 8] |= mask; in setBit()
|
/hardware/interfaces/tetheroffload/control/1.1/ |
D | IOffloadControl.hal | 27 * Instruct hardware to send callbacks after certain number of bytes have been transferred in 30 * The specified quota bytes must be applied to all traffic on the given upstream interface. 44 * The specified quota bytes MUST replace any previous quotas set by 46 * "tell me when either <warningBytes> or <limitBytes> bytes have been transferred 47 * (in either direction), and stop offload when <limitBytes> bytes have been transferred, 66 * Note that when one of the quota bytes is reached, the other one is still considered valid 70 * @param warningBytes The quota of warning, defined as the number of bytes, starting from 72 * @param limitBytes The quota of limit, defined as the number of bytes, starting from zero
|
/hardware/nxp/nfc/intf/nxpnfc/1.0/ |
D | INxpNfc.hal | 24 * Based on the ioctlType, input data bytes are processed and 25 * Output data bytes are generated. 30 * @return output data as stream of bytes
|
/hardware/nxp/secure_element/intf/nxpese/1.0/ |
D | INxpEse.hal | 24 * Based on the ioctlType, input data bytes are processed and 25 * Output data bytes are generated. 28 * @return output data as stream of bytes
|
/hardware/interfaces/bluetooth/audio/utils/aidl_session/ |
D | BluetoothAudioSession.cpp | 340 size_t bytes) { in OutWritePcmData() argument 341 if (buffer == nullptr || bytes <= 0) { in OutWritePcmData() 353 if (num_bytes_to_write > (bytes - total_written)) { in OutWritePcmData() 354 num_bytes_to_write = bytes - total_written; in OutWritePcmData() 360 LOG(ERROR) << "FMQ datapath writing " << total_written << "/" << bytes in OutWritePcmData() 370 LOG(DEBUG) << "Data " << total_written << "/" << bytes << " overflow " in OutWritePcmData() 374 } while (total_written < bytes); in OutWritePcmData() 378 size_t BluetoothAudioSession::InReadPcmData(void* buffer, size_t bytes) { in InReadPcmData() argument 379 if (buffer == nullptr || bytes <= 0) { in InReadPcmData() 391 if (num_bytes_to_read > (bytes - total_read)) { in InReadPcmData() [all …]
|
D | HidlToAidlMiddleware_2_0.h | 66 const void* buffer, size_t bytes); 69 size_t bytes);
|
D | BluetoothAudioSessionControl.h | 202 const void* buffer, size_t bytes) { in OutWritePcmData() argument 206 return session_ptr->OutWritePcmData(buffer, bytes); in OutWritePcmData() 215 size_t bytes) { in InReadPcmData() argument 219 return session_ptr->InReadPcmData(buffer, bytes); in InReadPcmData()
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
D | VmsUtils_test.cpp | 142 const std::string bytes = "aaa"; in TEST() local 144 auto message = createDataMessageWithLayerPublisherInfo(layer_and_publisher, bytes); in TEST() 160 EXPECT_EQ(message->value.bytes.size(), bytes.size()); in TEST() 161 EXPECT_EQ(memcmp(message->value.bytes.data(), bytes.data(), bytes.size()), 0); in TEST() 178 const std::string bytes = "aaa"; in TEST() local 180 auto message = createDataMessageWithLayerPublisherInfo(layer_and_publisher, bytes); in TEST() 183 EXPECT_EQ(data_str, bytes); in TEST() 194 std::string bytes = "pub_id"; in TEST() local 195 auto message = createPublisherIdRequest(bytes); in TEST() 201 EXPECT_EQ(message->value.bytes.size(), bytes.size()); in TEST() [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/GeneratorHub/src/ |
D | JsonFakeValueGenerator.cpp | 51 void setBit(std::vector<uint8_t>& bytes, size_t idx) { in setBit() argument 53 bytes[idx / 8] |= mask; in setBit() 84 std::vector<uint8_t> bytes((byteSize + 7) / 8); in generateDiagnosticBytes() local 89 setBit(bytes, i); in generateDiagnosticBytes() 96 setBit(bytes, i + lastIntegerSensorIndex + 1); in generateDiagnosticBytes() 99 return bytes; in generateDiagnosticBytes()
|