/system/nvram/messages/tests/ |
D | nvram_messages_test.cpp | 39 request.payload.Activate<COMMAND_GET_INFO>(); in TEST() 44 EXPECT_EQ(COMMAND_GET_INFO, decoded.payload.which()); in TEST() 45 EXPECT_TRUE(decoded.payload.get<COMMAND_GET_INFO>()); in TEST() 51 response.payload.Activate<COMMAND_GET_INFO>(); in TEST() 54 response.payload.Activate<COMMAND_GET_INFO>(); in TEST() 69 EXPECT_EQ(COMMAND_GET_INFO, decoded.payload.which()); in TEST() 71 decoded.payload.get<COMMAND_GET_INFO>(); in TEST() 89 request.payload.Activate<COMMAND_CREATE_SPACE>(); in TEST() 101 EXPECT_EQ(COMMAND_CREATE_SPACE, decoded.payload.which()); in TEST() 103 decoded.payload.get<COMMAND_CREATE_SPACE>(); in TEST() [all …]
|
/system/nvram/messages/ |
D | nvram_messages.cpp | 147 MakeOneOfField(1, &Request::payload, COMMAND_GET_INFO), 148 MakeOneOfField(2, &Request::payload, COMMAND_CREATE_SPACE), 149 MakeOneOfField(3, &Request::payload, COMMAND_GET_SPACE_INFO), 150 MakeOneOfField(4, &Request::payload, COMMAND_DELETE_SPACE), 151 MakeOneOfField(5, &Request::payload, COMMAND_DISABLE_CREATE), 152 MakeOneOfField(6, &Request::payload, COMMAND_WRITE_SPACE), 153 MakeOneOfField(7, &Request::payload, COMMAND_READ_SPACE), 154 MakeOneOfField(8, &Request::payload, COMMAND_LOCK_SPACE_WRITE), 155 MakeOneOfField(9, &Request::payload, COMMAND_LOCK_SPACE_READ), 156 MakeOneOfField(10, &Request::payload, COMMAND_WIPE_STORAGE), [all …]
|
/system/update_engine/payload_generator/ |
D | payload_signer.cc | 105 brillo::Blob payload; in AddSignatureBlobToPayload() local 106 TEST_AND_RETURN_FALSE(utils::ReadFile(payload_path, &payload)); in AddSignatureBlobToPayload() 112 memcpy(payload.data() + manifest_offset, &metadata_signature_size_be, in AddSignatureBlobToPayload() 116 payload.erase(payload.begin() + metadata_size, in AddSignatureBlobToPayload() 117 payload.begin() + metadata_size + metadata_signature_size); in AddSignatureBlobToPayload() 118 payload.insert(payload.begin() + metadata_size, in AddSignatureBlobToPayload() 142 payload.size() - metadata_size - metadata_signature_size, in AddSignatureBlobToPayload() 151 payload.erase(payload.begin() + manifest_offset, in AddSignatureBlobToPayload() 152 payload.begin() + metadata_size); in AddSignatureBlobToPayload() 153 payload.insert(payload.begin() + manifest_offset, in AddSignatureBlobToPayload() [all …]
|
D | payload_signer_unittest.cc | 128 PayloadFile payload; in DoWriteAndLoadPayloadTest() local 129 payload.Init(config); in DoWriteAndLoadPayloadTest() 135 payload.WritePayload(payload_path, "/dev/null", "", &metadata_size)); in DoWriteAndLoadPayloadTest() 224 PayloadFile payload; in TEST_F() local 225 EXPECT_TRUE(payload.Init(config)); in TEST_F() 228 payload.WritePayload(payload_path, "/dev/null", "", &metadata_size)); in TEST_F() 234 payload.WritePayload(payload_path, in TEST_F() 252 PayloadFile payload; in TEST_F() local 253 EXPECT_TRUE(payload.Init(config)); in TEST_F() 256 payload.WritePayload(payload_path, in TEST_F()
|
D | delta_diff_generator.cc | 65 PayloadFile payload; in GenerateUpdatePayloadFile() local 66 TEST_AND_RETURN_FALSE(payload.Init(config)); in GenerateUpdatePayloadFile() 122 TEST_AND_RETURN_FALSE(payload.AddPartition(old_part, new_part, aops)); in GenerateUpdatePayloadFile() 128 TEST_AND_RETURN_FALSE(payload.WritePayload(output_path, temp_file_path, in GenerateUpdatePayloadFile()
|
/system/gatekeeper/ |
D | gatekeeper_messages.cpp | 107 gatekeeper_error_t GateKeeperMessage::Deserialize(const uint8_t *payload, const uint8_t *end) { in Deserialize() argument 108 if (payload + sizeof(uint32_t) > end) return ERROR_INVALID; in Deserialize() 109 const serial_header_t *header = reinterpret_cast<const serial_header_t *>(payload); in Deserialize() 111 if (payload == end) return ERROR_INVALID; in Deserialize() 113 error = nonErrorDeserialize(payload + sizeof(*header), end); in Deserialize() 118 if (payload + sizeof(serial_header_t) < end) { in Deserialize() 119 memcpy(&retry_timeout, payload + sizeof(serial_header_t), sizeof(retry_timeout)); in Deserialize() 172 gatekeeper_error_t VerifyRequest::nonErrorDeserialize(const uint8_t *payload, const uint8_t *end) { in nonErrorDeserialize() argument 184 memcpy(&challenge, payload, sizeof(challenge)); in nonErrorDeserialize() 185 payload += sizeof(challenge); in nonErrorDeserialize() [all …]
|
/system/core/liblog/include/log/ |
D | log.h | 93 int __android_log_bwrite(int32_t tag, const void* payload, size_t len); 94 int __android_log_btwrite(int32_t tag, char type, const void* payload, 96 int __android_log_bswrite(int32_t tag, const char* payload); 98 #define android_bWriteLog(tag, payload, len) \ argument 99 __android_log_bwrite(tag, payload, len) 100 #define android_btWriteLog(tag, type, payload, len) \ argument 101 __android_log_btwrite(tag, type, payload, len)
|
/system/core/liblog/tests/ |
D | liblog_benchmark.cpp | 171 buffer.payload.type = EVENT_TYPE_INT; in BM_pmsg_short() 173 buffer.payload.data = htole32(snapshot); in BM_pmsg_short() 181 buffer.payload.data = htole32(snapshot); in BM_pmsg_short() 225 android_log_event_int_t payload; in BM_pmsg_short_aligned() member 245 buffer->payload.header.tag = 0; in BM_pmsg_short_aligned() 246 buffer->payload.payload.type = EVENT_TYPE_INT; in BM_pmsg_short_aligned() 248 buffer->payload.payload.data = htole32(snapshot); in BM_pmsg_short_aligned() 253 buffer->payload.payload.data = htole32(snapshot); in BM_pmsg_short_aligned() 299 android_log_event_int_t payload; in BM_pmsg_short_unaligned1() member 319 buffer->payload.header.tag = 0; in BM_pmsg_short_unaligned1() [all …]
|
/system/update_engine/scripts/update_payload/ |
D | block_tracer.py | 33 def __init__(self, payload): argument 34 assert payload.is_init, 'uninitialized update payload' 35 self.payload = payload 107 operations = self.payload.manifest.kernel_install_operations 110 operations = self.payload.manifest.install_operations
|
D | applier.py | 197 def __init__(self, payload, bsdiff_in_place=True, bspatch_path=None, argument 210 assert payload.is_init, 'uninitialized update payload' 211 self.payload = payload 212 self.block_size = payload.manifest.block_size 213 self.minor_version = payload.manifest.minor_version 269 self.payload.payload_file.seek(start_block * block_size) 460 data = self.payload.ReadDataBlob(op.data_offset, op.data_length) 553 self.payload.ResetFile() 560 if not self.payload.IsFull(): 564 if not self.payload.IsDelta(): [all …]
|
D | checker.py | 284 def __init__(self, payload, assert_type=None, block_size=0, argument 295 if not payload.is_init: 299 self.payload = payload 517 self.minor_version = self._CheckOptionalField(self.payload.manifest, 545 manifest = self.payload.manifest 946 actual_hash = hashlib.sha256(self.payload.ReadDataBlob(data_offset, 1129 sigs_raw = self.payload.ReadDataBlob(self.sigs_offset, self.sigs_size) 1140 last_ops_section = (self.payload.manifest.kernel_install_operations or 1141 self.payload.manifest.install_operations) 1158 payload_hasher = self.payload.manifest_hasher.copy() [all …]
|
/system/update_engine/payload_consumer/ |
D | install_plan.cc | 66 for (const auto& payload : payloads) { in Dump() local 70 payload.size, in Dump() 71 payload.metadata_size, in Dump() 72 payload.metadata_signature.c_str(), in Dump() 73 base::HexEncode(payload.hash.data(), payload.hash.size()).c_str(), in Dump() 74 InstallPayloadTypeToString(payload.type).c_str()); in Dump()
|
/system/netd/server/ |
D | WakeupController.cpp | 54 const Slice payload) { in init() argument 58 extract(payload, timespec); in init() 65 prefix = toString(take(payload, payload.size() - 1)); in init() 68 extract(payload, uid); in init() 72 extract(payload, gid); in init()
|
D | WakeupControllerTest.cpp | 114 auto payload = drop(netdutils::makeSlice(msg), offsetof(Msg, uidAttr)); in TEST_F() local 116 mMessageHandler(msg.nlmsg, msg.nfmsg, payload); in TEST_F() 163 auto payload = drop(netdutils::makeSlice(msg), offsetof(Msg, uidAttr)); in TEST_F() local 165 mMessageHandler(msg.nlmsg, msg.nfmsg, payload); in TEST_F() 184 auto payload = drop(netdutils::makeSlice(msg), offsetof(Msg, prefixAttr)); in TEST_F() local 186 mMessageHandler(msg.nlmsg, msg.nfmsg, payload); in TEST_F()
|
/system/gatekeeper/include/gatekeeper/ |
D | gatekeeper_messages.h | 93 uint32_t Serialize(uint8_t *payload, const uint8_t *end) const; 98 gatekeeper_error_t Deserialize(const uint8_t *payload, const uint8_t *end); 148 virtual gatekeeper_error_t nonErrorDeserialize(const uint8_t *payload, const uint8_t *end); 164 virtual gatekeeper_error_t nonErrorDeserialize(const uint8_t *payload, const uint8_t *end); 178 virtual gatekeeper_error_t nonErrorDeserialize(const uint8_t *payload, const uint8_t *end); 205 virtual gatekeeper_error_t nonErrorDeserialize(const uint8_t *payload, const uint8_t *end);
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
D | command_packet.cc | 36 CommandPacket::CommandPacket(vector<uint8_t> header, vector<uint8_t> payload) in CommandPacket() argument 38 AddPayloadOctets(payload.size(), std::move(payload)); in CommandPacket()
|
D | packet_stream.cc | 35 vector<uint8_t> payload; in ReceiveCommand() local 47 if (!ReceiveAll(payload, params_size[0], fd)) { in ReceiveCommand() 51 return std::unique_ptr<CommandPacket>(new CommandPacket(header, payload)); in ReceiveCommand()
|
/system/update_engine/scripts/ |
D | paycheck.py | 169 payload = update_payload.Payload(payload_file) 172 payload.Init() 175 payload.Describe() 191 payload.Check( 209 payload.TraceBlock(options.root_block, options.skip, sys.stdout, False) 211 payload.TraceBlock(options.kern_block, options.skip, sys.stdout, True) 222 payload.Apply(extra_args[0], extra_args[1], **dargs)
|
/system/tpm/trunks/ |
D | trunks_ftdi_spi.cc | 304 uint8_t* payload = new uint8_t[payload_size + 1]; in SendCommandAndWait() local 311 payload + handled_so_far); in SendCommandAndWait() 320 delete[] payload; in SendCommandAndWait() 325 FtdiReadReg(TPM_DATA_FIFO_REG, sizeof(uint8_t), payload + payload_size); in SendCommandAndWait() 331 delete[] payload; in SendCommandAndWait() 336 std::string(reinterpret_cast<char*>(payload), payload_size + 1); in SendCommandAndWait() 341 delete[] payload; in SendCommandAndWait()
|
/system/core/include/private/ |
D | android_logger.h | 72 android_event_int_t payload; member 84 android_event_long_t payload; member 134 int __android_log_security_bwrite(int32_t tag, const void* payload, size_t len); 135 int __android_log_security_bswrite(int32_t tag, const char* payload);
|
/system/core/liblog/include/private/ |
D | android_logger.h | 72 android_event_int_t payload; member 84 android_event_long_t payload; member 134 int __android_log_security_bwrite(int32_t tag, const void* payload, size_t len); 135 int __android_log_security_bswrite(int32_t tag, const char* payload);
|
/system/update_engine/ |
D | update_attempter_android.cc | 148 InstallPlan::Payload payload; in ApplyPayload() local 149 payload.size = payload_size; in ApplyPayload() 150 if (!payload.size) { in ApplyPayload() 152 &payload.size)) { in ApplyPayload() 153 payload.size = 0; in ApplyPayload() 157 &payload.hash)) { in ApplyPayload() 162 &payload.metadata_size)) { in ApplyPayload() 163 payload.metadata_size = 0; in ApplyPayload() 166 payload.type = InstallPayloadType::kUnknown; in ApplyPayload() 167 install_plan_.payloads.push_back(payload); in ApplyPayload()
|
/system/core/liblog/ |
D | logger_write.c | 537 LIBLOG_ABI_PUBLIC int __android_log_bwrite(int32_t tag, const void* payload, in __android_log_bwrite() argument 543 vec[1].iov_base = (void*)payload; in __android_log_bwrite() 550 const void* payload, in __android_log_security_bwrite() argument 556 vec[1].iov_base = (void*)payload; in __android_log_security_bwrite() 568 const void* payload, size_t len) { in __android_log_btwrite() argument 575 vec[2].iov_base = (void*)payload; in __android_log_btwrite() 585 LIBLOG_ABI_PUBLIC int __android_log_bswrite(int32_t tag, const char* payload) { in __android_log_bswrite() argument 588 uint32_t len = strlen(payload); in __android_log_bswrite() 596 vec[3].iov_base = (void*)payload; in __android_log_bswrite() 607 const char* payload) { in __android_log_security_bswrite() argument [all …]
|
/system/core/libkeyutils/ |
D | keyutils.cpp | 47 key_serial_t add_key(const char* type, const char* description, const void* payload, in add_key() argument 49 return syscall(__NR_add_key, type, description, payload, payload_length, ring_id); in add_key()
|
/system/bt/vendor_libs/test_vendor_lib/test/ |
D | packet_stream_unittest.cc | 56 void CheckedReceiveCommand(const char* payload, uint16_t opcode) { in CheckedReceiveCommand() argument 57 uint8_t payload_size = strlen(payload); in CheckedReceiveCommand() 66 for (int i = 0; i < payload_size; ++i) packet.push_back(payload[i]); in CheckedReceiveCommand()
|