Home
last modified time | relevance | path

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

1234

/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.cpp107 static void tryShortenProcessName(const std::string& descriptor) { in tryShortenProcessName() argument
114 if (!base::StartsWith(packageWithoutVersion(processName), packageWithoutVersion(descriptor))) { in tryShortenProcessName()
119 size_t lastDot = descriptor.rfind('.'); in tryShortenProcessName()
121 size_t secondDot = descriptor.rfind('.', lastDot - 1); in tryShortenProcessName()
145 if (base::StartsWith(descriptor, oldComm)) { in tryShortenProcessName()
179 static void onRegistrationImpl(const std::string& descriptor, const std::string& instanceName) { in onRegistrationImpl() argument
186 LOG(INFO) << "Registered " << descriptor << "/" << instanceName << " (start delay of " in onRegistrationImpl()
190 tryShortenProcessName(descriptor); in onRegistrationImpl()
564 void preloadPassthroughService(const std::string &descriptor) { in preloadPassthroughService() argument
565 PassthroughServiceManager::openLibs(descriptor, in preloadPassthroughService()
[all …]
DHidlLazyUtils.cpp92 const std::string descriptor = getDescriptor(service.get()); in registerService() local
94 LOG(INFO) << "Registering HAL: " << descriptor << " with name: " << name; in registerService()
143 const std::string descriptor = getDescriptor(entry.service.get()); in tryShutdown() local
144 bool success = manager->tryUnregister(descriptor, entry.name, entry.service); in tryShutdown()
147 LOG(INFO) << "Failed to unregister HAL " << descriptor << "/" << entry.name; in tryShutdown()
DHidlBinderSupport.cpp236 std::string descriptor = details::getDescriptor(ifacePtr); in getOrCreateCachedBinder() local
237 if (descriptor.empty()) { in getOrCreateCachedBinder()
249 auto func = details::getBnConstructorMap().get(descriptor, nullptr); in getOrCreateCachedBinder()
252 func = details::gBnConstructorMap->get(descriptor, nullptr); in getOrCreateCachedBinder()
255 descriptor.c_str()); in getOrCreateCachedBinder()
259 __func__, descriptor.c_str()); in getOrCreateCachedBinder()
DHidlTransportUtils.cpp34 if (std::string(IBase::descriptor) == castTo) { in canCastInterface()
/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/libprocessgroup/setup/
Dcgroup_map_write.cpp192 static bool SetupCgroup(const CgroupDescriptor& descriptor) { in SetupCgroup() argument
193 const format::CgroupController* controller = descriptor.controller(); in SetupCgroup()
196 if (!Mkdir(controller->path(), descriptor.mode(), descriptor.uid(), descriptor.gid())) { in SetupCgroup()
256 for (const auto& [name, descriptor] : descriptors) { in WriteRcFile()
258 write(fd, descriptor.controller(), sizeof(format::CgroupController))); in WriteRcFile()
310 for (auto& [name, descriptor] : descriptors) { in CgroupSetup()
311 if (SetupCgroup(descriptor)) { in CgroupSetup()
312 descriptor.set_mounted(true); in CgroupSetup()
/system/libhidl/transport/include/hidl/
DServiceManagement.h49 void preloadPassthroughService(const std::string &descriptor);
57 sp<::android::hidl::base::V1_0::IBase> getRawServiceInternal(const std::string& descriptor,
81 details::preloadPassthroughService(I::descriptor); in preloadPassthroughService()
DLegacySupport.h36 Interface::descriptor, name.c_str());
41 Interface::descriptor, name.c_str());
47 Interface::descriptor, name.c_str());
50 Interface::descriptor, name.c_str(), status);
/system/extras/simpleperf/
DJITDebugReader.cpp244 auto check_descriptor = [&](Descriptor& descriptor, bool is_jit) { in ReadProcess() argument
251 return descriptor.action_seqlock == tmp_jit_descriptor.action_seqlock; in ReadProcess()
253 return descriptor.action_seqlock == tmp_dex_descriptor.action_seqlock; in ReadProcess()
411 bool JITDebugReader::LoadDescriptor(bool is_64bit, const char* data, Descriptor* descriptor) { in LoadDescriptor() argument
413 return LoadDescriptorImpl<JITDescriptor64, JITCodeEntry64>(data, descriptor); in LoadDescriptor()
415 return LoadDescriptorImpl<JITDescriptor32, JITCodeEntry32>(data, descriptor); in LoadDescriptor()
419 bool JITDebugReader::LoadDescriptorImpl(const char* data, Descriptor* descriptor) { in LoadDescriptorImpl() argument
426 descriptor->action_seqlock = raw_descriptor.action_seqlock; in LoadDescriptorImpl()
427 descriptor->action_timestamp = raw_descriptor.action_timestamp; in LoadDescriptorImpl()
428 descriptor->first_entry_addr = raw_descriptor.first_entry_addr; in LoadDescriptorImpl()
[all …]
DJITDebugReader.h153 bool LoadDescriptor(bool is_64bit, const char* data, Descriptor* descriptor);
155 bool LoadDescriptorImpl(const char* data, Descriptor* descriptor);
157 bool ReadNewCodeEntries(Process& process, const Descriptor& descriptor,
161 bool ReadNewCodeEntriesImpl(Process& process, const Descriptor& descriptor,
/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/security/keystore/
Dkeystore_main.cpp66 Wrapper::WrappedIKeymasterDevice::descriptor, [&](const hidl_vec<hidl_string>& names) { in enumerateKeymasterDevices()
71 << Wrapper::WrappedIKeymasterDevice::descriptor in enumerateKeymasterDevices()
77 LOG(INFO) << "found " << Wrapper::WrappedIKeymasterDevice::descriptor in enumerateKeymasterDevices()
81 << "Security level of \"" << Wrapper::WrappedIKeymasterDevice::descriptor in enumerateKeymasterDevices()
87 << Wrapper::WrappedIKeymasterDevice::descriptor in enumerateKeymasterDevices()
/system/libhidl/transport/base/1.0/vts/functional/
Dvts_ibase_test.cpp130 EXPECT_OK(base.service->interfaceDescriptor([&](const auto& descriptor) { in TEST_F() argument
132 EXPECT_GT(descriptor.size(), 0u) << base.name; in TEST_F()
133 EXPECT_NE(IBase::descriptor, descriptor) << base.name; in TEST_F()
/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.cc507 dest->descriptor.dl_len = 0; in btif_hh_copy_hid_info()
508 if (src->descriptor.dl_len > 0) { in btif_hh_copy_hid_info()
509 dest->descriptor.dsc_list = (uint8_t*)osi_malloc(src->descriptor.dl_len); in btif_hh_copy_hid_info()
511 memcpy(dest->descriptor.dsc_list, src->descriptor.dsc_list, in btif_hh_copy_hid_info()
512 src->descriptor.dl_len); in btif_hh_copy_hid_info()
513 dest->descriptor.dl_len = src->descriptor.dl_len; in btif_hh_copy_hid_info()
956 len = p_data->dscp_info.descriptor.dl_len; in btif_hh_upstreams_evt()
988 p_data->dscp_info.descriptor.dsc_list); in btif_hh_upstreams_evt()
1003 p_data->dscp_info.descriptor.dsc_list); in btif_hh_upstreams_evt()
1009 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/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()
/system/bt/service/doc/
DIBluetoothGattClientCallback.txt56 * Called for each descriptor that was discovered on the remote device. The
57 * service and characteristic that this descriptor belongs to can be obtained
100 * code in case of an error. |descriptor_id| refers to the descriptor this
102 * descriptor value that was read from the remote device. This argument
111 * code in case of an error. |descriptor_id| refers to the descriptor this
DIBluetoothGattServerCallback.txt59 * address |device_address| for the descriptor with handle |handle|.
60 * |offset| is the index of the descriptor value that
64 * |request_id| and the appropriate descriptor value.
67 * GATT_ERROR_INVALID_OFFSET. If |is_long| is true but this descriptor is
97 * address |device_address| for the descriptor with handle |handle|
100 * |request_id|. |offset| is the index of the descriptor value that the
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc34 bool AvbDescriptorCallback(const AvbDescriptor* descriptor, void* user_data) { in AvbDescriptorCallback() argument
38 avb_descriptor_validate_and_byteswap(descriptor, &desc)); in AvbDescriptorCallback()
44 reinterpret_cast<const AvbHashtreeDescriptor*>(descriptor), &hashtree)); in AvbDescriptorCallback()
51 const uint8_t* salt = reinterpret_cast<const uint8_t*>(descriptor) + in AvbDescriptorCallback()
/system/libhidl/transport/base/1.0/
DIBase.hal63 * @return descriptor a descriptor of the run-time type of the
67 interfaceDescriptor() generates (string descriptor);
116 * @param fd File descriptor to dump data to.
/system/bt/service/test/
DParcelableTest.aidl26 void OnDescripor(in BluetoothGattDescriptor descriptor); in OnDescripor() argument
/system/libhidl/adapter/include/hidladapter/
DHidlBinderAdapter.h45 {{Adapters::Pure::descriptor, [](sp<::android::hidl::base::V1_0::IBase> base) { in adapterMain()

1234