Home
last modified time | relevance | path

Searched refs:desc (Results 1 – 25 of 32) sorted by relevance

12

/system/nvram/messages/
Dmessage_codec.cpp72 const FieldDescriptor& desc = descriptors_[i]; in EncodeData() local
73 writer->set_field_number(desc.field_number); in EncodeData()
74 if (!desc.encode_function(object_, writer)) { in EncodeData()
109 const FieldDescriptor* desc = FindDescriptor(reader); in DecodeData() local
110 if (desc) { in DecodeData()
111 if (!desc->decode_function(object_, reader)) { in DecodeData()
128 const FieldDescriptor& desc = descriptors_[i]; in FindDescriptor() local
129 if (reader->field_number() == desc.field_number && in FindDescriptor()
130 reader->wire_type() == desc.wire_type) { in FindDescriptor()
131 return &desc; in FindDescriptor()
/system/core/libunwindstack/
DJitDebug.cpp84 JITDescriptor32 desc; in ReadDescriptor32() local
85 if (!memory_->ReadFully(addr, &desc, sizeof(desc))) { in ReadDescriptor32()
89 if (desc.header.version != 1 || desc.first_entry == 0) { in ReadDescriptor32()
94 return desc.first_entry; in ReadDescriptor32()
98 JITDescriptor64 desc; in ReadDescriptor64() local
99 if (!memory_->ReadFully(addr, &desc, sizeof(desc))) { in ReadDescriptor64()
103 if (desc.header.version != 1 || desc.first_entry == 0) { in ReadDescriptor64()
108 return desc.first_entry; in ReadDescriptor64()
/system/core/libusbhost/
Dusbhost.c83 unsigned char desc[MAX_DESCRIPTORS_LENGTH]; member
379 length = read(fd, device->desc, sizeof(device->desc)); in usb_device_new()
452 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc; in usb_device_get_vendor_id() local
453 return __le16_to_cpu(desc->idVendor); in usb_device_get_vendor_id()
458 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc; in usb_device_get_product_id() local
459 return __le16_to_cpu(desc->idProduct); in usb_device_get_product_id()
463 return (struct usb_device_descriptor*)device->desc; in usb_device_get_device_descriptor()
471 return device->desc; in usb_device_get_raw_descriptors()
560 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_manufacturer_name() local
561 return usb_device_get_string(device, desc->iManufacturer, timeout); in usb_device_get_manufacturer_name()
[all …]
/system/core/fastboot/
Dusb_linux.cpp89 int desc; member
340 char desc[1024]; in find_usb_device() local
366 n = read(fd, desc, sizeof(desc)); in find_usb_device()
368 if (filter_usb_device(de->d_name, desc, n, writable, callback, &in, &out, &ifc) == 0) { in find_usb_device()
373 usb->desc = fd; in find_usb_device()
401 if (handle_->ep_out == 0 || handle_->desc == -1) { in Write()
414 n = ioctl(handle_->desc, USBDEVFS_BULK, &bulk); in Write()
436 if (handle_->ep_in == 0 || handle_->desc == -1) { in Read()
450 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, handle_->desc, handle_->fname); in Read()
451 n = ioctl(handle_->desc, USBDEVFS_BULK, &bulk); in Read()
[all …]
/system/bt/service/common/android/bluetooth/
Dbluetooth_gatt_characteristic.cc45 for (const auto& desc : descriptors_) { in writeToParcel() local
46 descriptors.push_back(desc); in writeToParcel()
76 for (const auto& desc : descriptors) { in readFromParcel() local
77 descriptors_.push_back(desc); in readFromParcel()
/system/core/libkeyutils/
Dmini_keyctl.cpp54 std::string desc = argv[3]; in main() local
57 return Add(type, desc, data, keyring); in main()
61 std::string desc = argv[3]; in main() local
63 return Padd(type, desc, keyring); in main()
Dmini_keyctl_utils.cpp103 int Add(const std::string& type, const std::string& desc, const std::string& data, in Add() argument
116 key_serial_t key = add_key(type.c_str(), desc.c_str(), data.c_str(), data.size(), keyring_id); in Add()
123 LOG(INFO) << "Key " << desc << " added to " << keyring << " with key id: 0x" << std::hex << key; in Add()
127 int Padd(const std::string& type, const std::string& desc, const std::string& keyring) { in Padd() argument
143 key_serial_t key = add_key(type.c_str(), desc.c_str(), data.c_str(), data.size(), keyring_id); in Padd()
150 LOG(INFO) << "Key " << desc << " added to " << keyring << " with key id: 0x" << std::hex << key; in Padd()
Dmini_keyctl_utils.h22 int Add(const std::string& type, const std::string& desc, const std::string& data,
26 int Padd(const std::string& type, const std::string& desc, const std::string& keyring);
/system/apex/apexd/
Dapex_file.cpp199 std::string getSalt(const AvbHashtreeDescriptor& desc, in getSalt() argument
201 const uint8_t* desc_salt = trailingData + desc.partition_name_len; in getSalt()
203 return bytes_to_hex(desc_salt, desc.salt_len); in getSalt()
206 std::string getDigest(const AvbHashtreeDescriptor& desc, in getDigest() argument
209 trailingData + desc.partition_name_len + desc.salt_len; in getDigest()
211 return bytes_to_hex(desc_digest, desc.root_digest_len); in getDigest()
369 AvbDescriptor desc; in findDescriptor() local
370 if (!avb_descriptor_validate_and_byteswap(descriptors[i], &desc)) { in findDescriptor()
375 if (desc.tag != AVB_DESCRIPTOR_TAG_HASHTREE) { in findDescriptor()
389 const AvbHashtreeDescriptor* desc) { in verifyDescriptor() argument
[all …]
Dapex_file.h36 std::unique_ptr<AvbHashtreeDescriptor> desc; member
Dapexd.cpp164 AvbHashtreeDescriptor* desc = verity_data.desc.get(); in createVerityTable() local
168 hash_algorithm << desc->hash_algorithm; in createVerityTable()
171 0, desc->image_size / 512, desc->dm_verity_version, loop, loop, in createVerityTable()
172 desc->data_block_size, desc->hash_block_size, in createVerityTable()
173 desc->image_size / desc->data_block_size, in createVerityTable()
174 desc->tree_offset / desc->hash_block_size, hash_algorithm.str(), in createVerityTable()
475 readVerityDevice(blockDevice, (*verityData).desc->image_size); in mountNonFlattened()
Dapex_file_test.cpp89 EXPECT_NE(nullptr, data.desc.get()); in TEST()
/system/core/adb/sysdeps/win32/
Derrno.cpp47 #define ERR(errnum, desc) case errnum: custom_msg = desc; break in adb_strerror() argument
/system/bt/bta/gatt/
Dbta_gattc_cache.cc487 for (const Descriptor& desc : charac.descriptors) { in bta_gattc_get_descriptor_srcb() local
488 if (handle == desc.handle) return &desc; in bta_gattc_get_descriptor_srcb()
512 for (const Descriptor& desc : charac.descriptors) { in bta_gattc_get_owning_characteristic_srcb() local
513 if (handle == desc.handle) return &charac; in bta_gattc_get_owning_characteristic_srcb()
639 for (const Descriptor& desc : charac.descriptors) { in bta_gattc_get_gatt_db_impl() local
641 curr_db_attr, BTGATT_DB_DESCRIPTOR, desc.handle, 0 /* s_handle */, in bta_gattc_get_gatt_db_impl()
642 0 /* e_handle */, desc.handle, desc.uuid, 0 /* property */); in bta_gattc_get_gatt_db_impl()
Ddatabase.cc112 for (const Descriptor& desc : charac.descriptors) { in Serialize() local
113 nv_attr.push_back({desc.handle, desc.uuid, {}}); in Serialize()
/system/connectivity/wificond/tests/
Doffload_test_utils.cpp96 const std::string& desc) { in createOffloadStatus() argument
97 return {code, desc}; in createOffloadStatus()
Doffload_test_utils.h42 const std::string& desc);
/system/chre/build/sys_support/qcom/
Duimg_dl_ver.c48 int desc[3]; member
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp151 AvbDescriptor desc; in GetHashtreeDescriptor() local
152 if (!avb_descriptor_validate_and_byteswap(descriptors[n], &desc)) { in GetHashtreeDescriptor()
156 if (desc.tag == AVB_DESCRIPTOR_TAG_HASHTREE) { in GetHashtreeDescriptor()
466 AvbDescriptor desc; in GetChainPartitionInfo() local
467 if (!avb_descriptor_validate_and_byteswap(descriptors[i], &desc)) { in GetChainPartitionInfo()
472 if (desc.tag == AVB_DESCRIPTOR_TAG_CHAIN_PARTITION) { in GetChainPartitionInfo()
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc36 AvbDescriptor desc; in AvbDescriptorCallback() local
38 avb_descriptor_validate_and_byteswap(descriptor, &desc)); in AvbDescriptorCallback()
39 if (desc.tag != AVB_DESCRIPTOR_TAG_HASHTREE) in AvbDescriptorCallback()
/system/core/adb/daemon/
Dusb_legacy.cpp76 usb_endpoint_descriptor desc; in getMaxPacketSize() local
77 if (ioctl(ffs_fd, FUNCTIONFS_ENDPOINT_DESC, reinterpret_cast<unsigned long>(&desc))) { in getMaxPacketSize()
81 return desc.wMaxPacketSize; in getMaxPacketSize()
/system/extras/simpleperf/
Drecord_file_reader.cpp186 SectionDesc desc; in ReadFeatureSectionDescriptors() local
187 if (!Read(&desc, sizeof(desc))) { in ReadFeatureSectionDescriptors()
190 feature_section_descriptors_.emplace(id, desc); in ReadFeatureSectionDescriptors()
/system/extras/ioshark/
Dioshark_bench.h143 void print_bytes(char *desc, struct rw_bytes_s *rw_bytes);
/system/libfmq/tests/
Dmsgq_test_client.cpp860 auto desc = mQueue->getDesc(); in TEST_F() local
862 new (std::nothrow) MessageQueue<uint16_t, kUnsynchronizedWrite>(*desc)); in TEST_F()
893 auto desc = mQueue->getDesc(); in TEST_F() local
895 new (std::nothrow) MessageQueue<uint16_t, kUnsynchronizedWrite>(*desc)); in TEST_F()
/system/extras/pagecache/
Dpagecache.py351 desc = 'Example: %prog'
352 parser = optparse.OptionParser(usage=usage, description=desc)

12