Home
last modified time | relevance | path

Searched refs:byte (Results 1 – 25 of 65) sorted by relevance

123

/system/unwinding/libunwindstack/
DArmExidx.cpp177 inline bool ArmExidx::GetByte(uint8_t* byte) { in GetByte() argument
182 *byte = data_.front(); in GetByte()
187 inline bool ArmExidx::DecodePrefix_10_00(uint8_t byte) { in DecodePrefix_10_00() argument
188 CHECK((byte >> 4) == 0x8); in DecodePrefix_10_00()
190 uint16_t registers = (byte & 0xf) << 8; in DecodePrefix_10_00()
191 if (!GetByte(&byte)) { in DecodePrefix_10_00()
195 registers |= byte; in DecodePrefix_10_00()
260 inline bool ArmExidx::DecodePrefix_10_01(uint8_t byte) { in DecodePrefix_10_01() argument
261 CHECK((byte >> 4) == 0x9); in DecodePrefix_10_01()
263 uint8_t bits = byte & 0xf; in DecodePrefix_10_01()
[all …]
DArmExidx.h87 bool GetByte(uint8_t* byte);
90 bool DecodePrefix_10_00(uint8_t byte);
91 bool DecodePrefix_10_01(uint8_t byte);
92 bool DecodePrefix_10_10(uint8_t byte);
98 bool DecodePrefix_10_11_1nnn(uint8_t byte);
99 bool DecodePrefix_10(uint8_t byte);
101 bool DecodePrefix_11_000(uint8_t byte);
102 bool DecodePrefix_11_001(uint8_t byte);
103 bool DecodePrefix_11_010(uint8_t byte);
104 bool DecodePrefix_11(uint8_t byte);
DDwarfMemory.cpp50 uint8_t byte; in ReadULEB128() local
52 if (!ReadBytes(&byte, 1)) { in ReadULEB128()
55 cur_value += static_cast<uint64_t>(byte & 0x7f) << shift; in ReadULEB128()
57 } while (byte & 0x80); in ReadULEB128()
65 uint8_t byte; in ReadSLEB128() local
67 if (!ReadBytes(&byte, 1)) { in ReadSLEB128()
70 cur_value += static_cast<uint64_t>(byte & 0x7f) << shift; in ReadSLEB128()
72 } while (byte & 0x80); in ReadSLEB128()
73 if (byte & 0x40) { in ReadSLEB128()
/system/libziparchive/
Dentry_name_utils-inl.h33 const uint8_t byte = entry_name[i]; in IsValidEntryName() local
34 if (byte == 0) { in IsValidEntryName()
36 } else if ((byte & 0x80) == 0) { in IsValidEntryName()
39 } else if ((byte & 0xc0) == 0x80 || (byte & 0xfe) == 0xfe) { in IsValidEntryName()
44 for (uint8_t first = static_cast<uint8_t>((byte & 0x7f) << 1); first & 0x80; in IsValidEntryName()
/system/core/trusty/utils/rpmb_dev/
Drpmb_protocol.h36 uint8_t byte[16]; member
40 uint8_t byte[2]; member
44 uint8_t byte[4]; member
112 for (i = 0; i < sizeof(u16.byte); i++) in rpmb_get_u16()
113 val = val << 8 | u16.byte[i]; in rpmb_get_u16()
123 for (i = 0; i < sizeof(u32.byte); i++) in rpmb_get_u32()
124 val = val << 8 | u32.byte[i]; in rpmb_get_u32()
Drpmb_dev.c101 hmac_ret = HMAC_Final(hmac_ctx, mac->byte, &md_len); in rpmb_mac()
102 if (md_len != sizeof(mac->byte)) { in rpmb_mac()
103 ALOGE("bad md_len %d != %zd\n", md_len, sizeof(mac->byte)); in rpmb_mac()
320 memset(mac.byte, 0, sizeof(mac.byte)); in rpmb_dev_process_cmd()
323 if (memcmp(&mac, s->cmd[s->cmd_count - 1].key_mac.byte, sizeof(mac))) { in rpmb_dev_process_cmd()
547 for (size_t i = 0; i < sizeof(s.header.key.byte); i++) { in main()
551 s.header.key.byte[i] = strtol(optarg, &optarg, 16); in main()
Drpmb.h25 uint8_t byte[32]; member
/system/media/audio_utils/spdif/
DFrameScanner.cpp51 bool FrameScanner::scan(uint8_t byte) in scan() argument
54 ALOGV("FrameScanner: byte = 0x%02X, mCursor = %d", byte, mCursor); in scan()
58 if (byte == mSyncBytes[mCursor]) { in scan()
59 mHeaderBuffer[mCursor++] = byte; in scan()
66 mHeaderBuffer[mCursor++] = byte; in scan()
DBitFieldParser.cpp44 uint8_t byte = mData[byteCursor]; in readBits() local
48 uint32_t result = byte >> (bitsLeftInByte - bitsFromByte); in readBits()
/system/core/init/
Dinterprocess_fifo.cpp71 uint8_t byte; in Read() local
72 ssize_t count = read(fds_[0], &byte, 1); in Read()
80 return byte; in Read()
83 Result<void> InterprocessFifo::Write(uint8_t byte) noexcept { in Write() argument
84 ssize_t written = write(fds_[1], &byte, 1); in Write()
Depoll_test.cpp60 uint8_t byte = 0xee; in TEST() local
61 ASSERT_TRUE(android::base::WriteFully(fds[1], &byte, sizeof(byte))); in TEST()
/system/nvram/messages/
Dio.cpp41 uint8_t byte = (value & 0x7f) | (((value >> 7) == 0) ? 0x00 : 0x80); in EncodeVarint() local
42 if (!stream->WriteByte(byte)) { in EncodeVarint()
60 uint8_t byte = 0; in DecodeVarint() local
61 if (!stream_buffer->ReadByte(&byte)) { in DecodeVarint()
64 *value |= static_cast<uint64_t>(byte & 0x7f) << (i * 7); in DecodeVarint()
65 if ((byte & 0x80) == 0) { in DecodeVarint()
105 bool InputStreamBuffer::ReadByte(uint8_t* byte) { in ReadByte() argument
112 *byte = *pos_; in ReadByte()
192 bool OutputStreamBuffer::WriteByte(uint8_t byte) { in WriteByte() argument
199 *pos_ = byte; in WriteByte()
/system/nvram/messages/tests/
Dio_test.cpp83 uint8_t byte = 0; in TEST() local
84 EXPECT_TRUE(buf.ReadByte(&byte)); in TEST()
85 EXPECT_EQ(0, byte); in TEST()
98 uint8_t byte = 0; in TEST() local
99 EXPECT_FALSE(buf.ReadByte(&byte)); in TEST()
116 uint8_t byte = 0; in TEST() local
117 EXPECT_TRUE(buf.ReadByte(&byte)); in TEST()
118 EXPECT_EQ(0, byte); in TEST()
121 EXPECT_TRUE(buf.ReadByte(&byte)); in TEST()
122 EXPECT_EQ(1, byte); in TEST()
/system/chre/apps/test/chqts/src/general_test/
Dcell_info_gsm.cc41 for (uint8_t byte : identity.reserved) { in validateIdentity() local
42 if (byte != 0) { in validateIdentity()
44 sendFatalFailureUint8("Invalid GSM reserved byte: %d", byte); in validateIdentity()
/system/chre/util/pigweed/
Dchre_channel_output.cc42 pw::span<const std::byte> buffer) { in sendToNanoapp()
82 pw::span<const std::byte> buffer) { in Send()
101 pw::span<const std::byte> buffer) { in Send()
110 pw::Status ChreServerHostChannelOutput::Send(pw::span<const std::byte> buffer) { in Send()
/system/chre/util/include/chre/util/pigweed/
Dchre_channel_output.h76 pw::Status Send(pw::span<const std::byte> buffer) override;
98 pw::Status Send(pw::span<const std::byte> buffer) override;
117 pw::Status Send(pw::span<const std::byte> buffer) override;
/system/unwinding/libunwindstack/tests/
DDwarfMemoryTest.cpp67 uint8_t byte; in TEST_F() local
68 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1)); in TEST_F()
69 ASSERT_EQ(0x10U, byte); in TEST_F()
70 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1)); in TEST_F()
71 ASSERT_EQ(0x18U, byte); in TEST_F()
72 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1)); in TEST_F()
73 ASSERT_EQ(0xffU, byte); in TEST_F()
74 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1)); in TEST_F()
75 ASSERT_EQ(0xfeU, byte); in TEST_F()
79 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1)); in TEST_F()
[all …]
/system/chre/platform/arm/include/chre/target_platform/
Datomic_base.h31 inline bool swapByte(volatile uint8_t *byte, uint32_t newValue) { in swapByte() argument
39 : "=r"(prevValue), "=r"(storeFailed), "=r"(newValue), "=r"(byte) in swapByte()
40 : "2"(newValue), "3"(byte) in swapByte()
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/
Dfast_pair_account_data.cc41 static Header Parse(uint8_t byte) { in Parse()
43 return Header((byte & 0xF0) >> 4, byte & 0x0F); in Parse()
/system/nfc/src/adaptation/
Ddebug_lmrt.cc68 for (uint8_t byte : lmrt_payloads.tlvs[i]) { in lmrt_log() local
69 tlvs_str.push_back(hexmap[byte >> 4]); in lmrt_log()
70 tlvs_str.push_back(hexmap[byte & 0x0F]); in lmrt_log()
/system/chre/platform/shared/idl/
Dhost_messages.fbs53 name:[byte];
54 vendor:[byte];
55 toolchain:[byte];
172 app_binary_file_name:[byte];
226 /// messages. The last byte will always be a null-terminator. There are no
229 buffer:[byte];
246 debug_str:[byte];
273 enum Setting : byte {
282 enum SettingState : byte {
297 enum LogLevel : byte {
[all …]
/system/tools/xsdc/tests/resources/predefined_types/api/
Dcurrent.txt28 method public static String byteArrayToHexString(byte[]);
29 method public static byte[] hexStringToByteArray(String);
54 method public byte[] getBase64Binary();
55 method public byte[] getHexBinary();
64 method public void setBase64Binary(byte[]);
65 method public void setHexBinary(byte[]);
86 method public byte get_byte();
100 method public void set_byte(byte);
/system/nfc/src/nfc/tags/
Drw_t1t.cc813 tNFC_STATUS RW_T1tRead(uint8_t block, uint8_t byte) { in RW_T1tRead() argument
824 RW_T1T_BLD_ADD((addr), (block), (byte)); in RW_T1tRead()
842 tNFC_STATUS RW_T1tWriteErase(uint8_t block, uint8_t byte, uint8_t new_byte) { in RW_T1tWriteErase() argument
853 (block != T1T_CC_BLOCK) && (byte != T1T_CC_RWA_OFFSET)) { in RW_T1tWriteErase()
857 if ((block >= T1T_STATIC_BLOCKS) || (byte >= T1T_BLOCK_SIZE)) { in RW_T1tWriteErase()
859 block, byte); in RW_T1tWriteErase()
868 RW_T1T_BLD_ADD((addr), (block), (byte)); in RW_T1tWriteErase()
890 tNFC_STATUS RW_T1tWriteNoErase(uint8_t block, uint8_t byte, uint8_t new_byte) { in RW_T1tWriteNoErase() argument
901 (block != T1T_CC_BLOCK) && (byte != T1T_CC_RWA_OFFSET)) { in RW_T1tWriteNoErase()
905 if ((block >= T1T_STATIC_BLOCKS) || (byte >= T1T_BLOCK_SIZE)) { in RW_T1tWriteNoErase()
[all …]
/system/update_engine/payload_consumer/
Dxz_extent_writer_unittest.cc142 for (uint8_t byte : compressed) { in TEST_F() local
143 EXPECT_TRUE(xz_writer_->Write(&byte, 1)); in TEST_F()
/system/extras/cpu_loads/
DAndroid.bp61 name: "memcpy-byte",
62 srcs: ["memcpy-byte.cpp"],

123