/system/security/keystore/tests/ |
D | auth_token_table_test.cpp | 62 AuthTokenTable table; in TEST() local 93 AuthTokenTable table; in TEST() local 95 table.AddAuthenticationToken(make_token(1, 2)); in TEST() 96 table.AddAuthenticationToken(make_token(3, 4)); in TEST() 97 EXPECT_EQ(2U, table.size()); in TEST() 104 (std::tie(rc, found) = table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0), rc)); in TEST() 110 (std::tie(rc, found) = table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0), rc)); in TEST() 116 (std::tie(rc, found) = table.FindAuthorization(make_set(3), KeyPurpose::SIGN, 0), rc)); in TEST() 122 (std::tie(rc, found) = table.FindAuthorization(make_set(4), KeyPurpose::SIGN, 0), rc)); in TEST() 128 (std::tie(rc, found) = table.FindAuthorization(make_set(5), KeyPurpose::SIGN, 0), rc)); in TEST() [all …]
|
/system/core/fs_mgr/libvbmeta/ |
D | builder_test.cpp | 44 std::unique_ptr<VBMetaTable> table = builder->ExportVBMetaTable(); in TEST() local 45 ASSERT_NE(table, nullptr); in TEST() 48 EXPECT_EQ(table->header.magic, SUPER_VBMETA_MAGIC); in TEST() 49 EXPECT_EQ(table->header.major_version, SUPER_VBMETA_MAJOR_VERSION); in TEST() 50 EXPECT_EQ(table->header.minor_version, SUPER_VBMETA_MINOR_VERSION); in TEST() 51 EXPECT_EQ(table->header.header_size, SUPER_VBMETA_HEADER_SIZE); in TEST() 52 EXPECT_EQ(table->header.total_size, in TEST() 54 EXPECT_EQ(table->header.descriptors_size, SUPER_VBMETA_DESCRIPTOR_SIZE * 3 + 33); in TEST() 57 EXPECT_EQ(table->descriptors.size(), 3); in TEST() 59 EXPECT_EQ(table->descriptors[0].vbmeta_index, 0); in TEST() [all …]
|
D | writer.cpp | 30 std::string table; in SerializeVBMetaTable() local 31 table.append(reinterpret_cast<const char*>(&input.header), SUPER_VBMETA_HEADER_SIZE); in SerializeVBMetaTable() 34 table.append(reinterpret_cast<const char*>(&desc), SUPER_VBMETA_DESCRIPTOR_SIZE); in SerializeVBMetaTable() 35 table.append(desc.vbmeta_name); in SerializeVBMetaTable() 39 table.resize(SUPER_VBMETA_TABLE_MAX_SIZE, '\0'); in SerializeVBMetaTable() 41 return table; in SerializeVBMetaTable() 44 Result<void> WritePrimaryVBMetaTable(int fd, const std::string& table) { in WritePrimaryVBMetaTable() argument 50 if (!android::base::WriteFully(fd, table.data(), table.size())) { in WritePrimaryVBMetaTable() 56 Result<void> WriteBackupVBMetaTable(int fd, const std::string& table) { in WriteBackupVBMetaTable() argument 62 if (!android::base::WriteFully(fd, table.data(), table.size())) { in WriteBackupVBMetaTable()
|
D | reader.cpp | 58 Result<void> ReadVBMetaTable(int fd, uint64_t offset, VBMetaTable* table) { in ReadVBMetaTable() argument 66 Result<void> rv_header = LoadAndVerifySuperVBMetaHeader(header_buffer.get(), &table->header); in ReadVBMetaTable() 71 const uint64_t descriptors_offset = offset + table->header.header_size; in ReadVBMetaTable() 73 std::make_unique<uint8_t[]>(table->header.descriptors_size); in ReadVBMetaTable() 75 table->header.descriptors_size, descriptors_offset)) { in ReadVBMetaTable() 80 LoadVBMetaDescriptors(descriptors_buffer.get(), table->header.descriptors_size, in ReadVBMetaTable() 81 &table->descriptors); in ReadVBMetaTable() 85 Result<void> ReadPrimaryVBMetaTable(int fd, VBMetaTable* table) { in ReadPrimaryVBMetaTable() argument 87 return ReadVBMetaTable(fd, offset, table); in ReadPrimaryVBMetaTable() 90 Result<void> ReadBackupVBMetaTable(int fd, VBMetaTable* table) { in ReadBackupVBMetaTable() argument [all …]
|
D | super_vbmeta_test.cpp | 146 VBMetaTable table; in TEST() local 147 EXPECT_RESULT_OK(android::fs_mgr::ReadPrimaryVBMetaTable(fd, &table)); in TEST() 150 EXPECT_EQ(android::fs_mgr::SerializeVBMetaTable(table), in TEST() 154 std::string serial_table = android::fs_mgr::SerializeVBMetaTable(table); in TEST() 160 table.header.total_size, &test_checksum[0]); in TEST() 161 EXPECT_EQ(memcmp(table.header.checksum, test_checksum, 32), 0); in TEST() 164 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() [all …]
|
/system/bt/gd/dumpsys/internal/ |
D | filter_internal.cc | 35 void internal::ScrubFromTable(flatbuffers::Table* table, flatbuffers::voffset_t field_offset) { in ScrubFromTable() argument 36 ASSERT(table != nullptr); in ScrubFromTable() 37 uint8_t* vtable = const_cast<uint8_t*>(table->GetVTable()); in ScrubFromTable() 109 const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privacy_level) { in FilterTypeInteger() argument 110 ASSERT(table != nullptr); in FilterTypeInteger() 115 [[maybe_unused]] int32_t val = table->GetField<int32_t>(field_offset, default_val); in FilterTypeInteger() 119 flatbuffers::SetField<int32_t>(table, field, default_val); in FilterTypeInteger() 120 internal::ScrubFromTable(table, field_offset); in FilterTypeInteger() 123 flatbuffers::SetField<int32_t>(table, field, default_val); in FilterTypeInteger() 126 auto target_field = flatbuffers::GetFieldI<int32_t>(*table, field); in FilterTypeInteger() [all …]
|
D | filter_internal_test.cc | 128 flatbuffers::Table* table = GetMutableTable(); in TEST_F() local 134 …bluetooth::dumpsys::internal::FilterTypeInteger(**it, table, bluetooth::dumpsys::internal::Privacy… in TEST_F() 143 flatbuffers::Table* table = GetMutableTable(); in TEST_F() local 150 **it, table, bluetooth::dumpsys::internal::PrivacyLevel::kAnonymized); in TEST_F() 159 flatbuffers::Table* table = GetMutableTable(); in TEST_F() local 165 …bluetooth::dumpsys::internal::FilterTypeInteger(**it, table, bluetooth::dumpsys::internal::Privacy… in TEST_F() 174 flatbuffers::Table* table = GetMutableTable(); in TEST_F() local 180 …bluetooth::dumpsys::internal::FilterTypeInteger(**it, table, bluetooth::dumpsys::internal::Privacy… in TEST_F() 189 flatbuffers::Table* table = GetMutableTable(); in TEST_F() local 195 …bluetooth::dumpsys::internal::FilterTypeFloat(**it, table, bluetooth::dumpsys::internal::PrivacyLe… in TEST_F() [all …]
|
D | filter_internal.h | 44 void ScrubFromTable(flatbuffers::Table* table, flatbuffers::voffset_t field_offset); 115 bool FilterTypeInteger(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priv… 116 bool FilterTypeFloat(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privac… 117 bool FilterTypeString(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priva… 118 bool FilterTypeStruct(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priva…
|
/system/bt/gd/dumpsys/ |
D | filter.cc | 51 virtual bool FilterField(const reflection::Field* field, flatbuffers::Table* table) { in FilterField() argument 63 virtual void FilterObject(const reflection::Object* object, flatbuffers::Table* table){}; in FilterObject() argument 73 virtual void FilterTable(const reflection::Schema* schema, flatbuffers::Table* table){}; in FilterTable() argument 90 bool FilterField(const reflection::Field* field, flatbuffers::Table* table) override; 91 void FilterObject(const reflection::Object* object, flatbuffers::Table* table) override; 92 void FilterTable(const reflection::Schema* schema, flatbuffers::Table* table) override; 95 bool UserPrivacyFilter::FilterField(const reflection::Field* field, flatbuffers::Table* table) { in FilterField() argument 97 ASSERT(table != nullptr); in FilterField() 102 return internal::FilterTypeInteger(*field, table, privacy_level); in FilterField() 105 return internal::FilterTypeFloat(*field, table, privacy_level); in FilterField() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 118 const char *table, uint32_t table_length) in verify_table() argument 125 SHA256((uint8_t*)table, table_length, hash_buf); in verify_table() 151 verity.table, verity.table_length) == 0 || in verify_verity_signature() 153 verity.table, verity.table_length) == 0) { in verify_verity_signature() 160 static int invalidate_table(char *table, size_t table_length) in invalidate_table() argument 167 if (table[n++] == ' ') { in invalidate_table() 175 while (n < table_length && table[n] != ' ') { in invalidate_table() 176 table[n++] = '0'; in invalidate_table() 188 char *table; member 213 params->table, 1 + VERITY_TABLE_OPT_FEC_ARGS, mode_flag, params->ecc_dev, in format_verity_table() [all …]
|
D | fs_mgr_dm_linear.cpp | 92 bool CreateDmTableInternal(const CreateLogicalPartitionParams& params, DmTable* table) { in CreateDmTableInternal() argument 119 if (!table->AddTarget(std::move(target))) { in CreateDmTableInternal() 125 table->set_readonly(true); in CreateDmTableInternal() 128 table->set_readonly(false); in CreateDmTableInternal() 133 bool CreateDmTable(CreateLogicalPartitionParams params, DmTable* table) { in CreateDmTable() argument 136 return CreateDmTableInternal(params, table); in CreateDmTable() 238 DmTable table; in CreateLogicalPartition() local 239 if (!CreateDmTableInternal(params, &table)) { in CreateLogicalPartition() 244 if (!dm.CreateDevice(params.device_name, table, path, params.timeout_ms)) { in CreateLogicalPartition()
|
/system/tools/aidl/tests/ |
D | test_util.cpp | 71 diff_table_entry table[a_lines.size() + 1][b_lines.size() + 1]; in PrintDiff() local 86 table[i][j].longest_common_subsequence_length = 0; in PrintDiff() 87 table[i][j].propagation_directions = directions; in PrintDiff() 89 table[i][j].longest_common_subsequence_length = in PrintDiff() 90 table[i-1][j-1].longest_common_subsequence_length + 1; in PrintDiff() 91 table[i][j].propagation_directions = UP_LEFT; in PrintDiff() 93 size_t length_up = table[i-1][j].longest_common_subsequence_length; in PrintDiff() 94 size_t length_left = table[i][j-1].longest_common_subsequence_length; in PrintDiff() 108 table[i][j].longest_common_subsequence_length = length; in PrintDiff() 109 table[i][j].propagation_directions = directions; in PrintDiff() [all …]
|
/system/netd/server/ |
D | RouteController.cpp | 202 void addTableName(uint32_t table, const std::string& name, std::string* contents) { in addTableName() argument 204 snprintf(tableString, sizeof(tableString), "%u", table); in addTableName() 262 uint32_t table, uint32_t fwmark, uint32_t mask, in modifyIpRule() argument 301 if (table == RT_TABLE_UNSPEC && rule.action == FR_ACT_TO_TBL && action != RTM_DELRULE) { in modifyIpRule() 315 { &FRATTR_TABLE, table != RT_TABLE_UNSPEC ? sizeof(FRATTR_TABLE) : 0 }, in modifyIpRule() 316 { &table, table != RT_TABLE_UNSPEC ? sizeof(table) : 0 }, in modifyIpRule() 348 [[nodiscard]] static int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument 351 return modifyIpRule(action, priority, FR_ACT_TO_TBL, table, fwmark, mask, iif, oif, uidStart, in modifyIpRule() 355 [[nodiscard]] static int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument 357 return modifyIpRule(action, priority, table, fwmark, mask, IIF_NONE, OIF_NONE, INVALID_UID, in modifyIpRule() [all …]
|
/system/bt/gd/dumpsys/test_data/ |
D | baz.fbs | 5 table BazSubTablePrivate { 10 table BazSubTableOpaque { 15 table BazSubTableAnonymized { 20 table BazSubTableAny { 28 table BazTestSchema {
|
/system/extras/ioshark/ |
D | ioshark_bench_mmap.c | 53 struct mmap_io_ent_tab_s table[MMAP_ENTS + 1]; member 69 mio->table[mio->num_entries].offset = offset; in setup_mmap_io_state() 70 mio->table[mio->num_entries].len = in setup_mmap_io_state() 72 total_len -= mio->table[mio->num_entries].len; in setup_mmap_io_state() 73 offset += mio->table[mio->num_entries].len; in setup_mmap_io_state() 91 if (mio->table[i].len > 0) in mmap_getnext_off_len() 97 iolength = MIN(mio->table[i].len, iolength); in mmap_getnext_off_len() 98 *offset = mio->table[i].offset; in mmap_getnext_off_len() 99 mio->table[i].offset += iolength; in mmap_getnext_off_len() 100 mio->table[i].len -= iolength; in mmap_getnext_off_len()
|
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/ |
D | flatbuffers_types.fbs | 20 table Ssid { 28 table PreferredNetwork { 38 table ScanResult { 51 table ScanResultMessage { 58 table ScanParams { 68 table ScanFilter { 76 table ScanConfig { 84 table ScanRecord { 96 table RpcLogRecord { 104 table ScanStats {
|
/system/vold/ |
D | CryptoType.cpp | 27 const CryptoType& lookup_crypto_algorithm(const CryptoType table[], int table_len, in lookup_crypto_algorithm() argument 33 if (strcmp(paramstr, table[i].get_config_name()) == 0) { in lookup_crypto_algorithm() 34 return table[i]; in lookup_crypto_algorithm()
|
/system/core/fs_mgr/libdm/ |
D | dm_linear_fuzzer.cpp | 97 DmTable table; in LLVMFuzzerTestOneInput() local 98 ASSERT_TRUE(table.Emplace<DmTargetLinear>(val[0], val[1], loop_a.device(), val[2])); in LLVMFuzzerTestOneInput() 99 ASSERT_TRUE(table.Emplace<DmTargetLinear>(val[3], val[4], loop_b.device(), val[5])); in LLVMFuzzerTestOneInput() 100 ASSERT_TRUE(table.valid()); in LLVMFuzzerTestOneInput() 101 ASSERT_EQ(2u, table.num_sectors()); in LLVMFuzzerTestOneInput() 103 TempDevice dev("libdm-test-dm-linear", table); in LLVMFuzzerTestOneInput()
|
D | dm_test.cpp | 70 DmTable table; in TEST() local 71 ASSERT_TRUE(table.Emplace<DmTargetLinear>(0, 1, loop_a.device(), 0)); in TEST() 72 ASSERT_TRUE(table.Emplace<DmTargetLinear>(1, 1, loop_b.device(), 0)); in TEST() 73 ASSERT_TRUE(table.valid()); in TEST() 74 ASSERT_EQ(2u, table.num_sectors()); in TEST() 76 TempDevice dev("libdm-test-dm-linear", table); in TEST() 134 DmTable table; in TEST() local 135 ASSERT_TRUE(table.Emplace<DmTargetLinear>(0, 1, loop_a.device(), 0)); in TEST() 136 ASSERT_TRUE(table.valid()); in TEST() 137 ASSERT_EQ(1u, table.num_sectors()); in TEST() [all …]
|
D | dm_table.cpp | 65 std::string table; in Serialize() local 67 table += target->Serialize(); in Serialize() 69 return table; in Serialize()
|
/system/libvintf/ |
D | main.cpp | 189 void insert(const HalManifest* manifest, Table* table, const RowMutator& mutate) { in insert() argument 193 mutate(&(*table)[key]); in insert() 198 void insert(const CompatibilityMatrix* matrix, Table* table, const RowMutator& mutate) { in insert() argument 207 auto it = table->find(key); in insert() 208 if (it == table->end()) { in insert() 209 mutate(&(*table)[key]); in insert() 223 Table table; in generateHalSummary() local 224 insert(vm, &table, [](auto* row) { row->dm = true; }); in generateHalSummary() 225 insert(fm, &table, [](auto* row) { row->fm = true; }); in generateHalSummary() 226 insert(vcm, &table, [](auto* row) { row->dcm = true; }); in generateHalSummary() [all …]
|
/system/bt/gd/shim/ |
D | dumpsys.fbs | 6 table ExamplePiecemealTable { 12 table ExampleInstantTable { 18 table DumpsysModuleData {
|
/system/bt/gd/dumpsys/internal/test_data/ |
D | struct.fbs | 3 table TestSubTable { 7 table TestTableStruct{
|
/system/netd/tests/ |
D | test_utils.cpp | 86 std::vector<std::string> listIpRoutes(const char* ipVersion, const char* table) { in listIpRoutes() argument 87 std::string command = StringPrintf("%s %s route ls table %s", IP_PATH, ipVersion, table); in listIpRoutes() 91 bool ipRouteExists(const char* ipVersion, const char* table, const std::string& ipRoute) { in ipRouteExists() argument 92 std::vector<std::string> routes = listIpRoutes(ipVersion, table); in ipRouteExists()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | dm.h | 135 bool CreateDevice(const std::string& name, const DmTable& table, std::string* path, 141 bool CreateDevice(const std::string& name, const DmTable& table); 148 bool LoadTableAndActivate(const std::string& name, const DmTable& table); 211 bool GetTableStatus(const std::string& name, std::vector<TargetInfo>* table); 215 bool GetTableInfo(const std::string& name, std::vector<TargetInfo>* table); 245 bool GetTable(const std::string& name, uint32_t flags, std::vector<TargetInfo>* table);
|