Home
last modified time | relevance | path

Searched refs:descriptors (Results 1 – 25 of 107) sorted by relevance

12345

/system/core/fs_mgr/libvbmeta/
Dbuilder_test.cpp57 EXPECT_EQ(table->descriptors.size(), 3); in TEST()
59 EXPECT_EQ(table->descriptors[0].vbmeta_index, 0); in TEST()
60 EXPECT_EQ(table->descriptors[0].vbmeta_name_length, 6); in TEST()
61 for (int i = 0; i < sizeof(table->descriptors[0].reserved); i++) in TEST()
62 EXPECT_EQ(table->descriptors[0].reserved[i], 0); in TEST()
63 EXPECT_EQ(table->descriptors[0].vbmeta_name, "vbmeta"); in TEST()
65 EXPECT_EQ(table->descriptors[1].vbmeta_index, 2); in TEST()
66 EXPECT_EQ(table->descriptors[1].vbmeta_name_length, 13); in TEST()
67 for (int i = 0; i < sizeof(table->descriptors[1].reserved); i++) in TEST()
68 EXPECT_EQ(table->descriptors[1].reserved[i], 0); in TEST()
[all …]
Dsuper_vbmeta_test.cpp164 EXPECT_EQ(table.descriptors.size(), 3); in TEST()
166 EXPECT_EQ(table.descriptors[0].vbmeta_index, 0); in TEST()
167 EXPECT_EQ(table.descriptors[0].vbmeta_name_length, 14); in TEST()
168 EXPECT_EQ(table.descriptors[0].vbmeta_name, "vbmeta_product"); in TEST()
173 EXPECT_EQ(table.descriptors[1].vbmeta_index, 1); in TEST()
174 EXPECT_EQ(table.descriptors[1].vbmeta_name_length, 13); in TEST()
175 EXPECT_EQ(table.descriptors[1].vbmeta_name, "vbmeta_system"); in TEST()
180 EXPECT_EQ(table.descriptors[2].vbmeta_index, 2); in TEST()
181 EXPECT_EQ(table.descriptors[2].vbmeta_name_length, 13); in TEST()
182 EXPECT_EQ(table.descriptors[2].vbmeta_name, "vbmeta_vendor"); in TEST()
Dbuilder.cpp93 table_.descriptors.begin(), table_.descriptors.end(), in AddVBMetaImage()
97 if (desc != table_.descriptors.end()) { in AddVBMetaImage()
112 table_.descriptors.emplace_back(std::move(new_desc)); in AddVBMetaImage()
123 table_.descriptors.begin(), table_.descriptors.end(), in DeleteVBMetaImage()
126 if (desc != table_.descriptors.end()) { in DeleteVBMetaImage()
131 table_.descriptors.erase(desc); in DeleteVBMetaImage()
138 for (const auto& desc : table_.descriptors) { in ExportVBMetaTable()
Dreader.cpp45 std::vector<InternalVBMetaDescriptor>* descriptors) { in LoadVBMetaDescriptors() argument
54 descriptors->emplace_back(std::move(descriptor)); in LoadVBMetaDescriptors()
81 &table->descriptors); in ReadVBMetaTable()
Dsuper_vbmeta_format.h33 std::vector<InternalVBMetaDescriptor> descriptors; member
/system/nvram/messages/
Dmessage_codec.cpp23 const FieldDescriptor* descriptors, in MessageEncoderBase() argument
26 descriptors_(descriptors), in MessageEncoderBase()
31 const FieldDescriptor* descriptors, in Encode() argument
33 MessageEncoderBase encoder(object, descriptors, num_descriptors); in Encode()
83 const FieldDescriptor* descriptors, in MessageDecoderBase() argument
86 descriptors_(descriptors), in MessageDecoderBase()
91 const FieldDescriptor* descriptors, in Decode() argument
93 MessageDecoderBase decoder(object, descriptors, num_descriptors); in Decode()
/system/bt/service/common/android/bluetooth/
Dbluetooth_gatt_characteristic.cc44 std::vector<BluetoothGattDescriptor> descriptors; in writeToParcel() local
46 descriptors.push_back(desc); in writeToParcel()
49 status = parcel->writeParcelableVector(descriptors); in writeToParcel()
72 std::vector<BluetoothGattDescriptor> descriptors; in readFromParcel() local
73 status = parcel->readParcelableVector(&descriptors); in readFromParcel()
76 for (const auto& desc : descriptors) { in readFromParcel()
/system/core/libprocessgroup/setup/
Dcgroup_map_write.cpp145 static void MergeCgroupToDescriptors(std::map<std::string, CgroupDescriptor>* descriptors, in MergeCgroupToDescriptors() argument
166 auto iter = descriptors->find(name); in MergeCgroupToDescriptors()
167 if (iter == descriptors->end()) { in MergeCgroupToDescriptors()
168 descriptors->emplace(name, descriptor); in MergeCgroupToDescriptors()
175 std::map<std::string, CgroupDescriptor>* descriptors) { in ReadDescriptorsFromFile() argument
195 MergeCgroupToDescriptors(descriptors, cgroups[i], name, "", 1); in ReadDescriptorsFromFile()
202 MergeCgroupToDescriptors(descriptors, cgroups2, CGROUPV2_CONTROLLER_NAME, "", 2); in ReadDescriptorsFromFile()
207 MergeCgroupToDescriptors(descriptors, childGroups[i], name, root_path, 2); in ReadDescriptorsFromFile()
214 static bool ReadDescriptors(std::map<std::string, CgroupDescriptor>* descriptors) { in ReadDescriptors() argument
216 if (!ReadDescriptorsFromFile(CGROUPS_DESC_FILE, descriptors)) { in ReadDescriptors()
[all …]
/system/bt/service/common/bluetooth/
Dcharacteristic.h31 const std::vector<Descriptor>& descriptors) in Characteristic() argument
36 descriptors_(descriptors){}; in Characteristic()
49 const std::vector<Descriptor>& descriptors() const { return descriptors_; } in descriptors() function
50 std::vector<Descriptor>& descriptors() { return descriptors_; } in descriptors() function
/system/nvram/messages/include/nvram/messages/
Dmessage_codec.h67 const FieldDescriptor* descriptors,
74 const FieldDescriptor* descriptors,
107 const FieldDescriptor* descriptors,
113 const FieldDescriptor* descriptors,
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp135 std::unique_ptr<const AvbDescriptor*[], decltype(&avb_free)> descriptors( in GetHashDescriptor() local
138 if (!descriptors || num_descriptors < 1) { in GetHashDescriptor()
144 if (!avb_descriptor_validate_and_byteswap(descriptors[n], &desc)) { in GetHashDescriptor()
149 desc_partition_name = (const uint8_t*)descriptors[n] + sizeof(AvbHashDescriptor); in GetHashDescriptor()
150 if (!avb_hash_descriptor_validate_and_byteswap((AvbHashDescriptor*)descriptors[n], in GetHashDescriptor()
193 std::unique_ptr<const AvbDescriptor* [], decltype(&avb_free)> descriptors( in GetHashtreeDescriptor() local
196 if (!descriptors || num_descriptors < 1) { in GetHashtreeDescriptor()
202 if (!avb_descriptor_validate_and_byteswap(descriptors[n], &desc)) { in GetHashtreeDescriptor()
208 (const uint8_t*)descriptors[n] + sizeof(AvbHashtreeDescriptor); in GetHashtreeDescriptor()
210 (AvbHashtreeDescriptor*)descriptors[n], hashtree_desc.get())) { in GetHashtreeDescriptor()
[all …]
/system/sepolicy/private/
Ddex2oat.te21 # Read already open asec_apk_file file descriptors passed by installd.
39 # Allow dex2oat to use file descriptors from otapreopt.
63 # pass file descriptors for the preopted boot image to dex2oat. So dex2oat needs to be able to
74 # Allow dex2oat to use file descriptors from preinstall.
Dkernel.te5 # Allow the kernel to read otapreopt_chroot's file descriptors and files under
/system/sepolicy/prebuilts/api/30.0/private/
Ddex2oat.te24 # Read already open asec_apk_file file descriptors passed by installd.
42 # Allow dex2oat to use file descriptors from otapreopt.
66 # pass file descriptors for the preopted boot image to dex2oat. So dex2oat needs to be able to
77 # Allow dex2oat to use file descriptors from preinstall.
Dkernel.te5 # Allow the kernel to read otapreopt_chroot's file descriptors and files under
/system/sepolicy/prebuilts/api/29.0/private/
Ddex2oat.te24 # Read already open asec_apk_file file descriptors passed by installd.
42 # Allow dex2oat to use file descriptors from otapreopt.
66 # pass file descriptors for the preopted boot image to dex2oat. So dex2oat needs to be able to
77 # Allow dex2oat to use file descriptors from preinstall.
Dkernel.te5 # Allow the kernel to read otapreopt_chroot's file descriptors and files under
Dtraced.te29 # Allow traceur to pass open file descriptors to traced, so traced can directly
34 # Allow iorapd to pass memfd descriptors to traced, so traced can directly
60 # Disallows access to /data files, still allowing to write to file descriptors
Dsecure_element.te11 # already open bugreport file descriptors may be shared with
/system/sepolicy/prebuilts/api/27.0/public/
Ddex2oat.te24 # Read already open asec_apk_file file descriptors passed by installd.
42 # Allow dex2oat to use file descriptors from otapreopt.
58 # pass file descriptors for the preopted boot image to dex2oat. So dex2oat needs to be able to
/system/sepolicy/prebuilts/api/26.0/public/
Ddex2oat.te24 # Read already open asec_apk_file file descriptors passed by installd.
42 # Allow dex2oat to use file descriptors from otapreopt.
58 # pass file descriptors for the preopted boot image to dex2oat. So dex2oat needs to be able to
/system/sepolicy/prebuilts/api/28.0/public/
Ddex2oat.te24 # Read already open asec_apk_file file descriptors passed by installd.
42 # Allow dex2oat to use file descriptors from otapreopt.
58 # pass file descriptors for the preopted boot image to dex2oat. So dex2oat needs to be able to
/system/bt/bta/gatt/
Ddatabase.cc73 for (const Descriptor& d : c.descriptors) { in ToString()
112 for (const Descriptor& desc : charac.descriptors) { in Serialize()
180 current_service_it->characteristics.back().descriptors.emplace_back( in Deserialize()
/system/apex/apexd/
Dapex_file.cpp273 const AvbDescriptor** descriptors; in findDescriptor() local
276 descriptors = in findDescriptor()
281 auto guard = android::base::ScopeGuard(std::bind(avb_free, descriptors)); in findDescriptor()
285 if (!avb_descriptor_validate_and_byteswap(descriptors[i], &desc)) { in findDescriptor()
294 return (const AvbHashtreeDescriptor*)descriptors[i]; in findDescriptor()
/system/sepolicy/prebuilts/api/28.0/private/
Dsecure_element.te11 # already open bugreport file descriptors may be shared with

12345