Home
last modified time | relevance | path

Searched refs:uuid (Results 1 – 25 of 88) sorted by relevance

1234

/system/media/audio/include/system/
Daudio_aidl_utils.h34 static inline std::string toString(const ::aidl::android::media::audio::common::AudioUuid& uuid) { in toString() argument
36 "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x", uuid.timeLow, in toString()
37 uuid.timeMid, uuid.timeHiAndVersion, uuid.clockSeq, uuid.node[0], in toString()
38 uuid.node[1], uuid.node[2], uuid.node[3], uuid.node[4], uuid.node[5]); in toString()
/system/core/trusty/coverage/
Duuid.cpp31 bool str_to_uuid(const char* str, struct uuid* uuid) { in str_to_uuid() argument
33 static_assert(sizeof(uu) == sizeof(*uuid)); in str_to_uuid()
39 memcpy(uuid, uu, sizeof(*uuid)); in str_to_uuid()
40 uuid->time_low = reverse_u32(uuid->time_low); in str_to_uuid()
41 uuid->time_mid = reverse_u16(uuid->time_mid); in str_to_uuid()
42 uuid->time_hi_and_version = reverse_u16(uuid->time_hi_and_version); in str_to_uuid()
Dcoverage.cpp46 CoverageRecord::CoverageRecord(string tipc_dev, struct uuid* uuid) in CoverageRecord() argument
49 uuid_(*uuid), in CoverageRecord()
55 CoverageRecord::CoverageRecord(string tipc_dev, struct uuid* uuid, string module_name) in CoverageRecord() argument
58 uuid_(*uuid), in CoverageRecord()
129 req.open_args.uuid = uuid_; in Open()
/system/core/trusty/utils/coverage-controller/
Dcontroller.cpp87 struct uuid zero_uuid = {0, 0, 0, { 0 }}; in setUpShm()
103 if (!memcmp(&resp.send_list_args.uuid, &zero_uuid, sizeof(struct uuid))) { in setUpShm()
106 if(uuid_set_.find(resp.send_list_args.uuid) == uuid_set_.end()) { in setUpShm()
107 uuid_set_.insert(resp.send_list_args.uuid); in setUpShm()
111 resp.send_list_args.uuid.time_low, in setUpShm()
112 resp.send_list_args.uuid.time_mid, in setUpShm()
113 resp.send_list_args.uuid.time_hi_and_version, in setUpShm()
114 resp.send_list_args.uuid.clock_seq_and_node[0], in setUpShm()
115 resp.send_list_args.uuid.clock_seq_and_node[1], in setUpShm()
116 resp.send_list_args.uuid.clock_seq_and_node[2], in setUpShm()
[all …]
/system/media/audio/include/system/audio_effects/
Deffect_uuid.h29 AudioUuid uuid{}; in stringToUuid()
34 return uuid; in stringToUuid()
37 uuid.timeLow = (uint32_t)tmp[0]; in stringToUuid()
38 uuid.timeMid = (uint16_t)tmp[1]; in stringToUuid()
39 uuid.timeHiAndVersion = (uint16_t)tmp[2]; in stringToUuid()
40 uuid.clockSeq = (uint16_t)tmp[3]; in stringToUuid()
41 uuid.node.insert(uuid.node.end(), {(uint8_t)tmp[4], (uint8_t)tmp[5], (uint8_t)tmp[6], in stringToUuid()
43 return uuid; in stringToUuid()
180 static const ::android::base::NoDestructor<AudioUuid> uuid( \
182 return *uuid; \
/system/core/trusty/coverage/include/trusty/coverage/
Dcoverage.h40 CoverageRecord(std::string tipc_dev, struct uuid* uuid);
46 CoverageRecord(std::string tipc_dev, struct uuid* uuid, std::string module_name);
73 struct uuid uuid_;
Duuid.h21 struct uuid { struct
35 bool str_to_uuid(const char* str, struct uuid* uuid);
Dtipc.h38 struct uuid uuid; member
/system/core/trusty/line-coverage/include/trusty/line-coverage/
Dtipc.h64 struct uuid uuid; member
85 struct uuid uuid; member
Dcoverage.h36 CoverageRecord(std::string tipc_dev, struct uuid* uuid);
53 struct uuid uuid_;
Duuid.h24 struct uuid { struct
30 bool operator<(const struct uuid& rhs) const argument
/system/security/keystore2/src/
Dglobals.rs105 self.uuid_by_sec_level.get(sec_level).and_then(|uuid| self.dev_by_uuid(uuid)) in dev_by_sec_level()
108 fn dev_by_uuid(&self, uuid: &Uuid) -> Option<(Strong<T>, KeyMintHardwareInfo, Uuid)> { in dev_by_uuid()
110 .get(uuid) in dev_by_uuid()
111 .map(|(dev, hw_info)| ((*dev).clone(), (*hw_info).clone(), *uuid)) in dev_by_uuid()
124 let uuid: Uuid = sec_level.into(); in insert() localVariable
125 self.devices_by_uuid.insert(uuid, (dev, hw_info)); in insert()
126 self.uuid_by_sec_level.insert(sec_level, uuid); in insert()
166 Box::new(|uuid, blob| {
167 let km_dev = get_keymint_dev_by_uuid(uuid).map(|(dev, _)| dev)?;
338 if let Some((dev, hw_info, uuid)) = devices_map.dev_by_sec_level(security_level) { in get_keymint_device()
[all …]
Dservice.rs65 let (dev, uuid) = KeystoreSecurityLevel::new_native_binder( in new_native_binder()
70 result.i_sec_level_by_uuid.insert(uuid, dev); in new_native_binder()
71 result.uuid_by_sec_level.insert(SecurityLevel::TRUSTED_ENVIRONMENT, uuid); in new_native_binder()
74 if let Ok((dev, uuid)) = in new_native_binder()
77 result.i_sec_level_by_uuid.insert(uuid, dev); in new_native_binder()
78 result.uuid_by_sec_level.insert(SecurityLevel::STRONGBOX, uuid); in new_native_binder()
94 fn uuid_to_sec_level(&self, uuid: &Uuid) -> SecurityLevel { in uuid_to_sec_level()
97 .find(|(_, v)| **v == *uuid) in uuid_to_sec_level()
102 fn get_i_sec_level_by_uuid(&self, uuid: &Uuid) -> Result<Strong<dyn IKeystoreSecurityLevel>> { in get_i_sec_level_by_uuid()
103 if let Some(dev) = self.i_sec_level_by_uuid.get(uuid) { in get_i_sec_level_by_uuid()
[all …]
/system/core/trusty/line-coverage/
Dcoverage.cpp53 CoverageRecord::CoverageRecord(string tipc_dev, struct uuid* uuid) in CoverageRecord() argument
56 uuid_(*uuid), in CoverageRecord()
122 req.open_args.uuid = uuid_; in Open()
154 req.open_args.uuid = uuid_; in Open()
/system/chre/host/test/hal_generic/common/
Dhal_client_manager_test.cc66 explicit ContextHubCallbackForTest(const std::string &uuid) { in ContextHubCallbackForTest() argument
67 assert(uuid.length() == 32); // 2 digits for one bytes x 16 bytes in ContextHubCallbackForTest()
69 mUuid[i] = strtol(uuid.substr(i * 2, 2).c_str(), /* end_ptr= */ nullptr, in ContextHubCallbackForTest()
134 bool createClientForTest(const std::string &uuid, pid_t pid) { in createClientForTest() argument
139 return createClient(uuid, pid, callback, in createClientForTest()
221 EXPECT_EQ(client.uuid, kSystemServerUuid); in TEST_F()
244 EXPECT_EQ(client.uuid, kSystemServerUuid); in TEST_F()
308 int uuid = 1; in TEST_F() local
310 for (int i = 0; i < kMaxNumOfHalClients; i++, uuid++, pid++) { in TEST_F()
312 halClientManager->createClientForTest(std::to_string(uuid), pid)); in TEST_F()
[all …]
/system/core/init/test_upgrade_mte/src/com/android/tests/init/
DMteUpgradeTest.java69 String uuid = java.util.UUID.randomUUID().toString(); in testCrash() local
71 assertThat(getDevice().setProperty("sys.mte_crash_test_uuid", uuid)).isTrue(); in testCrash()
84 if (!tombstoneProto.getCommandLineList().stream().anyMatch(x -> x.contains(uuid))) { in testCrash()
101 String uuid = java.util.UUID.randomUUID().toString(); in testCrashOverridden() local
103 assertThat(getDevice().setProperty("sys.mte_crash_test_uuid", uuid)).isTrue(); in testCrashOverridden()
117 if (!tombstoneProto.getCommandLineList().stream().anyMatch(x -> x.contains(uuid))) { in testCrashOverridden()
/system/chre/host/hal_generic/common/
Dhal_client_manager.h94 explicit Client(const std::string &uuid, const std::string &name, in Client()
96 : Client(uuid, name, clientId, /* pid= */ kPidUnset, in Client()
100 explicit Client(std::string uuid, std::string name, in Client()
104 : uuid{std::move(uuid)}, in Client()
121 const std::string uuid; member
410 bool createClient(const std::string &uuid, pid_t pid,
451 return client->uuid == kSystemServerUuid || in isValidEndpointId()
481 Client *getClientByUuid(const std::string &uuid) REQUIRES(mLock);
Dhal_client_manager.cc102 Client *HalClientManager::getClientByUuid(const std::string &uuid) { in getClientByUuid() argument
104 [&uuid](const Client &client) { return client.uuid == uuid; }); in getClientByUuid()
132 const std::string &uuid, pid_t pid, in createClient() argument
141 mClients.emplace_back(uuid, getName(callback), mNextClientId, pid, callback, in createClient()
186 std::string uuid = getUuid(callback); in registerCallback() local
187 client = getClientByUuid(uuid); in registerCallback()
194 uuid.c_str(), client->name.c_str()); in registerCallback()
211 return createClient(uuid, pid, callback, deathRecipientCookie); in registerCallback()
459 if (client->uuid != kSystemServerUuid) { in mutateEndpointIdFromHostIfNeeded()
495 std::string uuid = mapping[kJsonUuid].asString(); in HalClientManager() local
[all …]
/system/chre/chpp/tools/
Duuid_gen.py24 import uuid
26 u = uuid.uuid4().hex
/system/media/tests/
Daudio_aidl_utils_test.cpp27 const auto uuid = ::aidl::android::hardware::audio::effect::stringToUuid(testStr.c_str()); in TEST() local
28 const auto targetStr = ::android::audio::utils::toString(uuid); in TEST()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c678 typedef struct uuid struct
686 static void print_uuid(const char *dev, uuid_t *uuid) in print_uuid() argument
689 printf("uuid: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x\n", uuid->time_low, in print_uuid()
690 uuid->time_mid, uuid->time_hi_and_version, uuid->clock_seq_and_node[0], in print_uuid()
691 uuid->clock_seq_and_node[1], uuid->clock_seq_and_node[2], uuid->clock_seq_and_node[3], in print_uuid()
692 uuid->clock_seq_and_node[4], uuid->clock_seq_and_node[5], uuid->clock_seq_and_node[6], in print_uuid()
693 uuid->clock_seq_and_node[7]); in print_uuid()
699 uuid_t uuid; in dev_uuid_test() local
708 rc = read(fd, &uuid, sizeof(uuid)); in dev_uuid_test()
711 } else if (rc != sizeof(uuid)) { in dev_uuid_test()
[all …]
/system/extras/profcollectd/libprofcollectd/
Dreport.rs26 use uuid::v1::{Context, Timestamp};
27 use uuid::Uuid;
91 let uuid = Uuid::new_v1( in get_report_filename() localVariable
95 Ok(uuid.to_string()) in get_report_filename()
/system/core/fs_mgr/libdm/
Ddm.cpp64 bool DeviceMapper::CreateDevice(const std::string& name, const std::string& uuid) { in CreateDevice() argument
76 if (!uuid.empty()) { in CreateDevice()
77 snprintf(io.uuid, sizeof(io.uuid), "%s", uuid.c_str()); in CreateDevice()
182 std::string uuid = GenerateUuid(); in CreateEmptyDevice() local
183 return CreateDevice(name, uuid); in CreateEmptyDevice()
245 if (io.uuid[0] == '\0') { in GetDeviceUniquePath()
249 *path = "/dev/block/mapper/by-uuid/"s + io.uuid; in GetDeviceUniquePath()
253 bool DeviceMapper::GetDeviceNameAndUuid(dev_t dev, std::string* name, std::string* uuid) { in GetDeviceNameAndUuid() argument
266 if (uuid) { in GetDeviceNameAndUuid()
267 *uuid = io.uuid; in GetDeviceNameAndUuid()
[all …]
/system/chre/chpp/
Dapp.c755 void chppUuidToStr(const uint8_t uuid[CHPP_SERVICE_UUID_LEN], in chppUuidToStr()
760 uuid[0], uuid[1], uuid[2], uuid[3], uuid[4], uuid[5], uuid[6], uuid[7], in chppUuidToStr()
761 uuid[8], uuid[9], uuid[10], uuid[11], uuid[12], uuid[13], uuid[14], in chppUuidToStr()
762 uuid[15]); in chppUuidToStr()
/system/chre/chpp/test/
Dtransport_test.cpp737 static const uint8_t uuid[CHPP_SERVICE_UUID_LEN] = CHPP_UUID_WWAN_STANDARD; in TEST_P() local
738 memcpy(&wwanServiceDescriptor.uuid, &uuid, in TEST_P()
739 sizeof(wwanServiceDescriptor.uuid)); in TEST_P()
747 EXPECT_EQ(std::memcmp(services[0].uuid, wwanServiceDescriptor.uuid, in TEST_P()
748 sizeof(wwanServiceDescriptor.uuid)), in TEST_P()
973 static const uint8_t uuid[CHPP_SERVICE_UUID_LEN] = CHPP_UUID_WWAN_STANDARD; in TEST_F() local
974 memcpy(&wwanServiceDescriptor.uuid, &uuid, in TEST_F()
975 sizeof(wwanServiceDescriptor.uuid)); in TEST_F()
1056 static const uint8_t uuid[CHPP_SERVICE_UUID_LEN] = CHPP_UUID_WWAN_STANDARD; in TEST_F() local
1057 memcpy(&wwanServiceDescriptor.uuid, &uuid, in TEST_F()
[all …]

1234