Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 25 of 114) sorted by relevance

12345

/system/libvintf/libaidlvintf_test_helper/
DVintf.cpp24 std::vector<std::string> getAidlHalInstanceNames(const std::string& descriptor) { in getAidlHalInstanceNames() argument
25 size_t lastDot = descriptor.rfind('.'); in getAidlHalInstanceNames()
26 CHECK(lastDot != std::string::npos) << "Invalid descriptor: " << descriptor; in getAidlHalInstanceNames()
27 const std::string package = descriptor.substr(0, lastDot); in getAidlHalInstanceNames()
28 const std::string iface = descriptor.substr(lastDot + 1); in getAidlHalInstanceNames()
34 ret.push_back(descriptor + "/" + instance); in getAidlHalInstanceNames()
39 ret.push_back(descriptor + "/" + instance); in getAidlHalInstanceNames()
45 std::vector<std::string> getAidlHalInstanceNames(const String16& descriptor) { in getAidlHalInstanceNames() argument
46 return getAidlHalInstanceNames(String8(descriptor).c_str()); in getAidlHalInstanceNames()
/system/libhidl/transport/
DHidlPassthroughSupport.cpp30 static sp<IBase> tryWrap(const std::string& descriptor, sp<IBase> iface) { in tryWrap() argument
31 auto func = getBsConstructorMap().get(descriptor, nullptr); in tryWrap()
34 func = gBsConstructorMap->get(descriptor, nullptr); in tryWrap()
59 for (const std::string& descriptor : types) { in wrapPassthroughInternal() local
60 base = tryWrap(descriptor, iface); in wrapPassthroughInternal()
DServiceManagement.cpp109 __attribute__((noinline)) static void tryShortenProcessName(const std::string& descriptor) { in tryShortenProcessName() argument
116 if (!base::StartsWith(packageWithoutVersion(processName), packageWithoutVersion(descriptor))) { in tryShortenProcessName()
121 size_t lastDot = descriptor.rfind('.'); in tryShortenProcessName()
123 size_t secondDot = descriptor.rfind('.', lastDot - 1); in tryShortenProcessName()
147 if (base::StartsWith(descriptor, oldComm)) { in tryShortenProcessName()
211 static void onRegistrationImpl(const std::string& descriptor, const std::string& instanceName) { in onRegistrationImpl() argument
218 LOG(INFO) << "Registered " << descriptor << "/" << instanceName << " (start delay of " in onRegistrationImpl()
222 tryShortenProcessName(descriptor); in onRegistrationImpl()
591 std::vector<std::string> getAllHalInstanceNames(const std::string& descriptor) { in getAllHalInstanceNames() argument
594 sm->listManifestByInterface(descriptor, [&](const auto& instances) { in getAllHalInstanceNames()
[all …]
DHidlLazyUtils.cpp108 const std::string descriptor = getDescriptor(service.get()); in registerService() local
110 LOG(INFO) << "Registering HAL: " << descriptor << " with name: " << name; in registerService()
166 const std::string descriptor = getDescriptor(entry.service.get()); in tryShutdown() local
167 bool success = manager->tryUnregister(descriptor, entry.name, entry.service); in tryShutdown()
170 LOG(INFO) << "Failed to unregister HAL " << descriptor << "/" << entry.name; in tryShutdown()
DHidlBinderSupport.cpp222 std::string descriptor = details::getDescriptor(ifacePtr); in getOrCreateCachedBinder() local
223 if (descriptor.empty()) { in getOrCreateCachedBinder()
235 auto func = details::getBnConstructorMap().get(descriptor, nullptr); in getOrCreateCachedBinder()
238 func = details::gBnConstructorMap->get(descriptor, nullptr); in getOrCreateCachedBinder()
241 descriptor.c_str()); in getOrCreateCachedBinder()
245 __func__, descriptor.c_str()); in getOrCreateCachedBinder()
DLegacySupport.cpp49 [&actualName](const hidl_string& descriptor) { actualName = descriptor; }); in registerPassthroughServiceImplementation() argument
/system/core/libprocessgroup/setup/
Dcgroup_map_write.cpp162 CgroupDescriptor descriptor( in MergeCgroupToDescriptors() local
168 descriptors->emplace(name, descriptor); in MergeCgroupToDescriptors()
170 iter->second = descriptor; in MergeCgroupToDescriptors()
232 static bool SetupCgroup(const CgroupDescriptor& descriptor) { in SetupCgroup() argument
233 const format::CgroupController* controller = descriptor.controller(); in SetupCgroup()
250 if (!ChangeDirModeAndOwner(controller->path(), descriptor.mode(), descriptor.uid(), in SetupCgroup()
251 descriptor.gid())) { in SetupCgroup()
258 if (!Mkdir(controller->path(), descriptor.mode(), descriptor.uid(), descriptor.gid())) { in SetupCgroup()
275 if (!Mkdir(controller->path(), descriptor.mode(), descriptor.uid(), descriptor.gid())) { in SetupCgroup()
330 for (const auto& [name, descriptor] : descriptors) { in WriteRcFile()
[all …]
/system/bt/bta/hh/
Dbta_hh_api.cc328 size_t len = sizeof(tBTA_HH_MAINT_DEV) + dscp_info.descriptor.dl_len; in BTA_HhAddDev()
341 if (dscp_info.descriptor.dl_len != 0 && dscp_info.descriptor.dsc_list) { in BTA_HhAddDev()
342 p_buf->dscp_info.descriptor.dl_len = dscp_info.descriptor.dl_len; in BTA_HhAddDev()
343 p_buf->dscp_info.descriptor.dsc_list = (uint8_t*)(p_buf + 1); in BTA_HhAddDev()
344 memcpy(p_buf->dscp_info.descriptor.dsc_list, dscp_info.descriptor.dsc_list, in BTA_HhAddDev()
345 dscp_info.descriptor.dl_len); in BTA_HhAddDev()
347 p_buf->dscp_info.descriptor.dsc_list = NULL; in BTA_HhAddDev()
348 p_buf->dscp_info.descriptor.dl_len = 0; in BTA_HhAddDev()
Dbta_hh_utils.cc125 osi_free_and_reset((void**)&p_cb->dscp_info.descriptor.dsc_list); in bta_hh_clean_up_kdev()
191 osi_free_and_reset((void**)&p_cb->dscp_info.descriptor.dsc_list); in bta_hh_add_device_to_list()
194 p_cb->dscp_info.descriptor.dsc_list = in bta_hh_add_device_to_list()
196 p_cb->dscp_info.descriptor.dl_len = p_dscp_info->dl_len; in bta_hh_add_device_to_list()
197 memcpy(p_cb->dscp_info.descriptor.dsc_list, p_dscp_info->dsc_list, in bta_hh_add_device_to_list()
442 (void**)&bta_hh_cb.kdev[xx].dscp_info.descriptor.dsc_list); in bta_hh_cleanup_disable()
/system/core/fs_mgr/libvbmeta/
Dreader.cpp47 InternalVBMetaDescriptor descriptor; in LoadVBMetaDescriptors() local
48 memcpy(&descriptor, (char*)buffer + p, SUPER_VBMETA_DESCRIPTOR_SIZE); in LoadVBMetaDescriptors()
51 descriptor.vbmeta_name = std::string((char*)buffer + p, descriptor.vbmeta_name_length); in LoadVBMetaDescriptors()
52 p += descriptor.vbmeta_name_length; in LoadVBMetaDescriptors()
54 descriptors->emplace_back(std::move(descriptor)); in LoadVBMetaDescriptors()
/system/libhidl/transport/include/hidl/
DServiceManagement.h54 void preloadPassthroughService(const std::string &descriptor);
62 sp<::android::hidl::base::V1_0::IBase> getRawServiceInternal(const std::string& descriptor,
84 std::vector<std::string> getAllHalInstanceNames(const std::string& descriptor);
94 details::preloadPassthroughService(I::descriptor); in preloadPassthroughService()
DLegacySupport.h56 return registerPassthroughServiceImplementation(Interface::descriptor,
57 ExpectInterface::descriptor, name);
97 Interface::descriptor, ExpectInterface::descriptor,
/system/libvintf/libaidlvintf_test_helper/include/aidl/
DVintf.h24 std::vector<std::string> getAidlHalInstanceNames(const std::string& descriptor);
25 std::vector<std::string> getAidlHalInstanceNames(const String16& descriptor);
/system/security/keystore/
Dkeystore_main.cpp60 Wrapper::WrappedIKeymasterDevice::descriptor, [&](const hidl_vec<hidl_string>& names) { in enumerateKeymasterDevices()
65 << Wrapper::WrappedIKeymasterDevice::descriptor in enumerateKeymasterDevices()
71 LOG(INFO) << "found " << Wrapper::WrappedIKeymasterDevice::descriptor in enumerateKeymasterDevices()
75 << "Security level of \"" << Wrapper::WrappedIKeymasterDevice::descriptor in enumerateKeymasterDevices()
81 << Wrapper::WrappedIKeymasterDevice::descriptor in enumerateKeymasterDevices()
/system/bt/bta/hd/
Dbta_hd_api.cc128 if (p_app_info->descriptor.dl_len > BTA_HD_APP_DESCRIPTOR_LEN) { in BTA_HdRegisterApp()
129 p_app_info->descriptor.dl_len = BTA_HD_APP_DESCRIPTOR_LEN; in BTA_HdRegisterApp()
132 p_buf->d_len = p_app_info->descriptor.dl_len; in BTA_HdRegisterApp()
133 memcpy(p_buf->d_data, p_app_info->descriptor.dsc_list, in BTA_HdRegisterApp()
134 p_app_info->descriptor.dl_len); in BTA_HdRegisterApp()
/system/extras/simpleperf/
DJITDebugReader.cpp565 bool JITDebugReader::LoadDescriptor(bool is_64bit, const char* data, Descriptor* descriptor) { in LoadDescriptor() argument
567 return LoadDescriptorImpl<JITDescriptor64>(data, descriptor); in LoadDescriptor()
569 return LoadDescriptorImpl<JITDescriptor32>(data, descriptor); in LoadDescriptor()
573 bool JITDebugReader::LoadDescriptorImpl(const char* data, Descriptor* descriptor) { in LoadDescriptorImpl() argument
579 descriptor->action_seqlock = raw_descriptor.action_seqlock; in LoadDescriptorImpl()
580 descriptor->action_timestamp = raw_descriptor.action_timestamp; in LoadDescriptorImpl()
581 descriptor->first_entry_addr = raw_descriptor.first_entry_addr; in LoadDescriptorImpl()
582 descriptor->version = raw_descriptor.AndroidVersion(); in LoadDescriptorImpl()
589 bool JITDebugReader::ReadNewCodeEntries(Process& process, const Descriptor& descriptor, in ReadNewCodeEntries() argument
592 if (descriptor.version == 1) { in ReadNewCodeEntries()
[all …]
DJITDebugReader.h192 bool LoadDescriptor(bool is_64bit, const char* data, Descriptor* descriptor);
194 bool LoadDescriptorImpl(const char* data, Descriptor* descriptor);
196 bool ReadNewCodeEntries(Process& process, const Descriptor& descriptor,
200 bool ReadNewCodeEntriesImpl(Process& process, const Descriptor& descriptor,
/system/extras/libfec/
Davb_utils.cpp71 auto parse_descriptor = [](const AvbDescriptor *descriptor, in parse_avb_image()
73 if (descriptor && in parse_avb_image()
74 avb_be64toh(descriptor->tag) == AVB_DESCRIPTOR_TAG_HASHTREE) { in parse_avb_image()
76 *desp = descriptor; in parse_avb_image()
/system/extras/libjsonpb/verify/
Dverify.cpp61 auto&& descriptor = message.GetDescriptor(); in AllFieldsAreKnown()
67 for (int i = 0; i < descriptor->field_count(); ++i) { in AllFieldsAreKnown()
68 known_keys.insert(GetJsonName(*descriptor->field(i))); in AllFieldsAreKnown()
80 << descriptor->full_name() << "(or its json_name option if set): [" in AllFieldsAreKnown()
/system/bt/btif/src/
Dbtif_hh.cc503 dest->descriptor.dl_len = 0; in btif_hh_copy_hid_info()
504 if (src->descriptor.dl_len > 0) { in btif_hh_copy_hid_info()
505 dest->descriptor.dsc_list = (uint8_t*)osi_malloc(src->descriptor.dl_len); in btif_hh_copy_hid_info()
507 memcpy(dest->descriptor.dsc_list, src->descriptor.dsc_list, in btif_hh_copy_hid_info()
508 src->descriptor.dl_len); in btif_hh_copy_hid_info()
509 dest->descriptor.dl_len = src->descriptor.dl_len; in btif_hh_copy_hid_info()
953 len = p_data->dscp_info.descriptor.dl_len; in btif_hh_upstreams_evt()
985 p_data->dscp_info.descriptor.dsc_list); in btif_hh_upstreams_evt()
1000 p_data->dscp_info.descriptor.dsc_list); in btif_hh_upstreams_evt()
1006 if (dscp_info.descriptor.dl_len > 0 && in btif_hh_upstreams_evt()
[all …]
Dbtif_hd.cc108 if (app_info.descriptor.dsc_list) osi_free(app_info.descriptor.dsc_list); in btif_hd_free_buf()
112 app_info.descriptor.dsc_list = NULL; in btif_hd_free_buf()
414 app_info.descriptor.dl_len = p_app_param->desc_list_len; in register_app()
415 app_info.descriptor.dsc_list = in register_app()
416 (uint8_t*)osi_malloc(app_info.descriptor.dl_len); in register_app()
417 memcpy(app_info.descriptor.dsc_list, p_app_param->desc_list, in register_app()
/system/libhidl/transport/base/1.0/vts/functional/
Dvts_ibase_test.cpp85 if (instance.getFqName().string() == IBase::descriptor) { in GetHal()
160 if (fqInstance.getFqName().string() != IBase::descriptor) { in GetPidInterfacesMap()
196 EXPECT_OK(base.service->interfaceDescriptor([&](const auto& descriptor) { in TEST_F() argument
198 EXPECT_GT(descriptor.size(), 0u) << base.name; in TEST_F()
199 EXPECT_NE(IBase::descriptor, descriptor) << base.name; in TEST_F()
/system/bt/vendor_libs/test_vendor_lib/desktop/
Droot_canal_main.cc67 google_breakpad::MinidumpDescriptor descriptor( in main() local
69 google_breakpad::ExceptionHandler eh(descriptor, nullptr, nullptr, nullptr, in main()
/system/apex/apexd/
Dapex_file.cpp333 Result<const AvbHashtreeDescriptor*> descriptor = in VerifyApexVerity() local
335 if (!descriptor.ok()) { in VerifyApexVerity()
336 return descriptor.error(); in VerifyApexVerity()
340 verifyDescriptor(*descriptor); in VerifyApexVerity()
348 (const uint8_t*)*descriptor + sizeof(AvbHashtreeDescriptor); in VerifyApexVerity()
350 reinterpret_cast<const char*>((*descriptor)->hash_algorithm); in VerifyApexVerity()
/system/bt/profile/sdp/common/
Ddata_element_reader.cc43 uint8_t descriptor = *it_++; in ReadNext() local
44 DataElementType type = static_cast<DataElementType>(descriptor >> 3); in ReadNext()
45 DataElementSize size = static_cast<DataElementSize>(descriptor & 0b00000111); in ReadNext()

12345