/system/bt/service/common/android/bluetooth/ |
H A D | uuid.cc | 33 // a second 64-bit integer. This is the same as writing the raw-bytes in 36 ::bluetooth::Uuid::UUID128Bit bytes = uuid.To128BitBE(); local 39 ((((uint64_t)bytes[0]) << 56) | (((uint64_t)bytes[1]) << 48) | 40 (((uint64_t)bytes[2]) << 40) | (((uint64_t)bytes[3]) << 32) | 41 (((uint64_t)bytes[4]) << 24) | (((uint64_t)bytes[5]) << 16) | 42 (((uint64_t)bytes[6]) << 8) | bytes[ 58 ::bluetooth::Uuid::UUID128Bit bytes; local [all...] |
/system/chre/apps/chqts/src/shared/ |
H A D | nano_endian.cc | 21 void swapBytes(uint8_t *bytes, size_t size) { argument 23 uint8_t tmp = bytes[front]; 24 bytes[front] = bytes[end]; 25 bytes[end] = tmp;
|
H A D | nano_endian_test.cc | 28 uint8_t bytes[] = { local 37 static_assert(arrayLength(bytes) == arrayLength(postSwap), 40 static_assert((kByteCount > 0) && (kByteCount <= arrayLength(bytes)), 45 nanoapp_testing::swapBytes(bytes, kByteCount); 46 EXPECT_EQ(0, ::memcmp(bytes, kExpected, kByteCount)); 48 if (arrayLength(bytes) < kByteCount) { 50 EXPECT_EQ(kByteCount + 1, bytes[kByteCount]); 95 const uint8_t *bytes = reinterpret_cast<uint8_t*>(&value); local 96 EXPECT_EQ(0, ::memcmp(kLittleEndianRepresentation, bytes,
|
H A D | dumb_allocator.h | 33 void *alloc(size_t bytes); 61 * This will allow up to kSlotCount allocations of up to kAllocSize bytes 62 * each, and costs (kSlotCount * kAllocSize) bytes of underlying storage. 71 * If "bytes" <= kAllocSize, and there are less than kSlotCount allocations, 76 void *alloc(size_t bytes) { argument 77 return DumbAllocatorBase::alloc(bytes);
|
H A D | nano_string.cc | 36 uint8_t *bytes = static_cast<uint8_t*>(mem); local 38 bytes[i] = static_cast<uint8_t>(val); 42 void memcpy(void *d, const void *s, size_t bytes) { argument 45 for (size_t i = 0; i < bytes; i++) {
|
/system/chre/platform/linux/ |
H A D | memory_manager.cc | 23 void *MemoryManager::doAlloc(Nanoapp *app, uint32_t bytes) { argument 24 return chre::memoryAlloc(bytes);
|
/system/chre/platform/slpi/ |
H A D | memory_manager.cc | 24 void *MemoryManager::doAlloc(Nanoapp *app, uint32_t bytes) { argument 26 return chre::memoryAlloc(bytes); 28 return chre::memoryAllocBigImage(bytes);
|
/system/chre/platform/shared/ |
H A D | memory_manager.cc | 23 void *MemoryManager::nanoappAlloc(Nanoapp *app, uint32_t bytes) { argument 25 if (bytes > 0) { 29 } else if ((mTotalAllocatedBytes + bytes) > kMaxAllocationBytes) { 34 doAlloc(app, sizeof(AllocHeader) + bytes)); 37 mTotalAllocatedBytes += bytes; 39 header->data.bytes = bytes; 53 if (mTotalAllocatedBytes >= header->data.bytes) { 54 mTotalAllocatedBytes -= header->data.bytes; 69 "\nNanoapp heap usage: %zu bytes allocate [all...] |
/system/core/toolbox/upstream-netbsd/lib/libc/gen/ |
H A D | humanize_number.c | 47 humanize_number(char *buf, size_t len, int64_t bytes, argument 90 if (bytes < 0) { 93 if (-bytes < INT64_MAX / 100) 94 bytes *= -100; 96 bytes = -bytes; 103 if (bytes < INT64_MAX / 100) 104 bytes *= 100; 132 for (i = 0; bytes >= max - 50 && i < maxscale; i++) 133 bytes / [all...] |
/system/bt/btif/include/ |
H A D | btif_uid.h | 34 void uid_set_add_tx(uid_set_t* set, int32_t app_uid, uint64_t bytes); 35 void uid_set_add_rx(uid_set_t* set, int32_t app_uid, uint64_t bytes);
|
/system/chre/util/ |
H A D | container_support.cc | 30 void *chreHeapAlloc(uint32_t bytes) { argument 31 return malloc(bytes);
|
/system/core/libutils/ |
H A D | JenkinsHash.cpp | 37 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) { argument 44 uint32_t data = bytes[i] | (bytes[i+1] << 8) | (bytes[i+2] << 16) | (bytes[i+3] << 24); 48 uint32_t data = bytes[i]; 49 data |= ((size & 3) > 1) ? (bytes[i+1] << 8) : 0; 50 data |= ((size & 3) > 2) ? (bytes[i+2] << 16) : 0;
|
/system/update_engine/ |
H A D | mock_file_writer.h | 27 MOCK_METHOD2(Write, bool(const void* bytes, size_t count)); 28 MOCK_METHOD3(Write, bool(const void* bytes, size_t count, ErrorCode* error));
|
H A D | fake_file_writer.h | 44 virtual ssize_t Write(const void* bytes, size_t count) { argument 47 const char* char_bytes = reinterpret_cast<const char*>(bytes); 59 const brillo::Blob& bytes() { function in class:chromeos_update_engine::FakeFileWriter 64 // The internal store of all bytes that have been written
|
/system/nfc/utils/test/ |
H A D | config_test.cc | 80 auto bytes = config.getBytes("BYTES_VALUE"); local 81 EXPECT_EQ(bytes.size(), 5u); 82 EXPECT_EQ(bytes[0], 10); 83 EXPECT_EQ(bytes[1], 11); 84 EXPECT_EQ(bytes[2], 12); 85 EXPECT_EQ(bytes[3], 255); 86 EXPECT_EQ(bytes[4], 0); 128 auto bytes = config.getBytes("BYTES_VALUE"); local 129 EXPECT_EQ(bytes.size(), 5u); 130 EXPECT_EQ(bytes[ [all...] |
/system/netd/server/ |
H A D | BandwidthController.h | 42 int setInterfaceSharedQuota(const std::string& iface, int64_t bytes); 43 int getInterfaceSharedQuota(int64_t *bytes); 46 int setInterfaceQuota(const std::string& iface, int64_t bytes); 47 int getInterfaceQuota(const std::string& iface, int64_t* bytes); 55 int setGlobalAlert(int64_t bytes); 60 int setSharedAlert(int64_t bytes); 63 int setInterfaceAlert(const std::string& iface, int64_t bytes); 95 int runIptablesAlertCmd(IptOp op, const std::string& alertName, int64_t bytes); 96 int runIptablesAlertFwdCmd(IptOp op, const std::string& alertName, int64_t bytes); 98 int updateQuota(const std::string& alertName, int64_t bytes); [all...] |
/system/core/fastboot/ |
H A D | udp.cpp | 60 static uint16_t ExtractUint16(const uint8_t* bytes) { argument 61 return (static_cast<uint16_t>(bytes[0]) << 8) | bytes[1]; 71 const uint8_t* bytes() const { return bytes_; } function in class:udp::Header 119 // Sends |length| bytes from |data| and waits for the response packet up to |attempts| times. 121 // Excess bytes that cannot fit in |rx_data| are dropped. 122 // On success, returns the number of response data bytes received, which may be greater than 168 // The first two bytes contain the next expected sequence number. 183 // The first two data bytes contain the version, the second two bytes contai 228 ssize_t bytes = SendSinglePacketHelper(&header, tx_data, packet_data_length, rx_data, local 266 ssize_t bytes = 0; local 330 ssize_t bytes = SendData(kIdFastboot, nullptr, 0, reinterpret_cast<uint8_t*>(data), length, local 348 ssize_t bytes = SendData(kIdFastboot, reinterpret_cast<const uint8_t*>(data), length, nullptr, local [all...] |
/system/core/libmemunreachable/ |
H A D | LineBuffer.cpp | 49 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer_ + bytes_, buffer_len_ - bytes_ - 1)); local 50 if (bytes <= 0) { 62 bytes_ += bytes;
|
/system/extras/memory_replay/ |
H A D | LineBuffer.cpp | 44 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer_ + bytes_, buffer_len_ - bytes_ - 1)); local 45 if (bytes <= 0) { 57 bytes_ += bytes;
|
/system/update_engine/payload_consumer/ |
H A D | fake_extent_writer.h | 42 bool Write(const void* bytes, size_t count) override { 46 reinterpret_cast<const uint8_t*>(bytes), 47 reinterpret_cast<const uint8_t*>(bytes) + count);
|
H A D | file_writer.h | 42 // Wrapper around write. Returns true if all requested bytes 44 virtual bool Write(const void* bytes, size_t count) = 0; 50 virtual bool Write(const void* bytes, argument 54 return Write(bytes, count); 72 bool Write(const void* bytes, size_t count) override;
|
/system/core/storaged/ |
H A D | storaged_service.cpp | 51 rec.second.bytes[READ][FOREGROUND][CHARGER_OFF], 52 rec.second.bytes[WRITE][FOREGROUND][CHARGER_OFF], 53 rec.second.bytes[READ][BACKGROUND][CHARGER_OFF], 54 rec.second.bytes[WRITE][BACKGROUND][CHARGER_OFF], 55 rec.second.bytes[READ][FOREGROUND][CHARGER_ON], 56 rec.second.bytes[WRITE][FOREGROUND][CHARGER_ON], 57 rec.second.bytes[READ][BACKGROUND][CHARGER_ON], 58 rec.second.bytes[WRITE][BACKGROUND][CHARGER_ON]); 68 uid_usage.bytes[READ][FOREGROUND][CHARGER_OFF], 69 uid_usage.bytes[WRIT [all...] |
/system/bt/vendor_libs/test_vendor_lib/src/ |
H A D | acl_packet.cc | 38 void AclPacket::AddPayloadOctets(size_t octets, const vector<uint8_t>& bytes) { argument 39 CHECK(bytes.size() == octets); 41 raw_packet_.insert(raw_packet_.end(), bytes.begin(), bytes.end());
|
/system/core/libbacktrace/ |
H A D | BacktracePtrace.cpp | 65 size_t BacktracePtrace::Read(uint64_t addr, uint8_t* buffer, size_t bytes) { argument 76 bytes = MIN(map.end - addr, bytes); 84 size_t copy_bytes = MIN(sizeof(word_t) - align_bytes, bytes); 88 bytes -= copy_bytes; 92 size_t num_words = bytes / sizeof(word_t); 103 size_t left_over = bytes & (sizeof(word_t) - 1);
|
/system/bt/btif/src/ |
H A D | btif_uid.cc | 75 void uid_set_add_tx(uid_set_t* set, int32_t app_uid, uint64_t bytes) { argument 76 if (app_uid == -1 || bytes == 0) return; 80 node->data.tx_bytes += bytes; 83 void uid_set_add_rx(uid_set_t* set, int32_t app_uid, uint64_t bytes) { argument 84 if (app_uid == -1 || bytes == 0) return; 88 node->data.rx_bytes += bytes;
|