/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/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 | 175 void addTableName(uint32_t table, const std::string& name, std::string* contents) { in addTableName() argument 177 snprintf(tableString, sizeof(tableString), "%u", table); in addTableName() 235 uint32_t table, uint32_t fwmark, uint32_t mask, const char* iif, in modifyIpRule() argument 273 if (table == RT_TABLE_UNSPEC && rule.action == FR_ACT_TO_TBL && action != RTM_DELRULE) { in modifyIpRule() 287 { &FRATTR_TABLE, table != RT_TABLE_UNSPEC ? sizeof(FRATTR_TABLE) : 0 }, in modifyIpRule() 288 { &table, table != RT_TABLE_UNSPEC ? sizeof(table) : 0 }, in modifyIpRule() 320 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument 323 return modifyIpRule(action, priority, FR_ACT_TO_TBL, table, fwmark, mask, iif, oif, uidStart, in modifyIpRule() 327 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument 329 return modifyIpRule(action, priority, table, fwmark, mask, IIF_NONE, OIF_NONE, INVALID_UID, in modifyIpRule() [all …]
|
D | Controllers.cpp | 114 const char* table, in findExistingChildChains() argument 131 std::string command = StringPrintf("*%s\n-S %s\nCOMMIT\n", table, parentChain); in findExistingChildChains() 134 ALOGE("Error listing chain %s in table %s\n", parentChain, table); in findExistingChildChains() 153 void Controllers::createChildChains(IptablesTarget target, const char* table, in createChildChains() argument 157 std::string command = StringPrintf("*%s\n", table); in createChildChains() 178 existingChildChains = findExistingChildChains(target, table, parentChain); in createChildChains()
|
D | Controllers.h | 66 const char* table, 68 static void createChildChains(IptablesTarget target, const char* table, const char* parentChain,
|
D | RouteController.h | 122 static int flushRoutes(uint32_t table); 144 int modifyIpRoute(uint16_t action, uint32_t table, const char* interface, const char* destination, 146 int flushRoutes(uint32_t table) WARN_UNUSED_RESULT;
|
D | IptablesBaseTest.cpp | 92 const std::string& table, in fakeExecIptablesRestoreCommand() argument 95 std::string fullCmd = StringPrintf("-t %s %s", table.c_str(), command.c_str()); in fakeExecIptablesRestoreCommand()
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 117 const char *table, uint32_t table_length) in verify_table() argument 124 SHA256((uint8_t*)table, table_length, hash_buf); in verify_table() 150 verity.table, verity.table_length) == 0 || in verify_verity_signature() 152 verity.table, verity.table_length) == 0) { in verify_verity_signature() 159 static int invalidate_table(char *table, size_t table_length) in invalidate_table() argument 166 if (table[n++] == ' ') { in invalidate_table() 174 while (n < table_length && table[n] != ' ') { in invalidate_table() 175 table[n++] = '0'; in invalidate_table() 187 char *table; member 212 params->table, 1 + VERITY_TABLE_OPT_FEC_ARGS, mode_flag, params->ecc_dev, in format_verity_table() [all …]
|
D | fs_mgr_dm_linear.cpp | 76 const std::string& super_device, DmTable* table) { in CreateDmTable() argument 100 if (!table->AddTarget(std::move(target))) { in CreateDmTable() 106 table->set_readonly(true); in CreateDmTable() 116 DmTable table; in CreateLogicalPartition() local 117 if (!CreateDmTable(metadata, partition, super_device, &table)) { in CreateLogicalPartition() 121 table.set_readonly(false); in CreateLogicalPartition() 124 if (!dm.CreateDevice(name, table)) { in CreateLogicalPartition()
|
/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/core/fs_mgr/libdm/include/libdm/ |
D | dm.h | 77 const std::unique_ptr<DmTable> table(const std::string& name) const; 86 bool CreateDevice(const std::string& name, const DmTable& table); 93 bool LoadTableAndActivate(const std::string& name, const DmTable& table); 129 bool GetTableStatus(const std::string& name, std::vector<TargetInfo>* table); 133 bool GetTableInfo(const std::string& name, std::vector<TargetInfo>* table); 147 bool GetTable(const std::string& name, uint32_t flags, std::vector<TargetInfo>* table);
|
/system/core/fs_mgr/libdm/ |
D | dm.cpp | 96 const std::unique_ptr<DmTable> DeviceMapper::table(const std::string& /* name */) const { in table() function in android::dm::DeviceMapper 113 bool DeviceMapper::CreateDevice(const std::string& name, const DmTable& table) { in CreateDevice() argument 117 if (!LoadTableAndActivate(name, table)) { in CreateDevice() 124 bool DeviceMapper::LoadTableAndActivate(const std::string& name, const DmTable& table) { in LoadTableAndActivate() argument 126 ioctl_buffer += table.Serialize(); in LoadTableAndActivate() 132 io->target_count = static_cast<uint32_t>(table.num_targets()); in LoadTableAndActivate() 133 if (table.readonly()) { in LoadTableAndActivate() 291 bool DeviceMapper::GetTableStatus(const std::string& name, std::vector<TargetInfo>* table) { in GetTableStatus() argument 292 return GetTable(name, 0, table); in GetTableStatus() 295 bool DeviceMapper::GetTableInfo(const std::string& name, std::vector<TargetInfo>* table) { in GetTableInfo() argument [all …]
|
D | dm_table.cpp | 64 std::string table; in Serialize() local 66 table += target->Serialize(); in Serialize() 68 return table; in Serialize()
|
D | dm_test.cpp | 58 TempDevice(const std::string& name, const DmTable& table) in TempDevice() argument 60 valid_ = dm_.CreateDevice(name, table); in TempDevice() 139 DmTable table; in TEST() local 140 ASSERT_TRUE(table.AddTarget(make_unique<DmTargetLinear>(0, 1, loop_a.device(), 0))); in TEST() 141 ASSERT_TRUE(table.AddTarget(make_unique<DmTargetLinear>(1, 1, loop_b.device(), 0))); in TEST() 142 ASSERT_TRUE(table.valid()); in TEST() 144 TempDevice dev("libdm-test-dm-linear", table); in TEST()
|
/system/libvintf/ |
D | main.cpp | 189 void insert(const HalManifest* manifest, Table* table, const RowMutator& mutate) { in insert() argument 194 mutate(&(*table)[key]); in insert() 199 void insert(const CompatibilityMatrix* matrix, Table* table, const RowMutator& mutate) { in insert() argument 209 auto it = table->find(key); in insert() 210 if (it == table->end()) { in insert() 211 mutate(&(*table)[key]); in insert() 225 Table table; in generateHalSummary() local 226 insert(vm, &table, [](auto* row) { row->dm = true; }); in generateHalSummary() 227 insert(fm, &table, [](auto* row) { row->fm = true; }); in generateHalSummary() 228 insert(vcm, &table, [](auto* row) { row->dcm = true; }); in generateHalSummary() [all …]
|
/system/extras/verity/ |
D | build_verity_metadata.py | 49 def sign_verity_table(table, signer_path, key_path, signer_args=None): argument 52 table_file.write(table) 64 table = "1 %s %s %s %s %s %s sha256 %s %s" 65 table %= ( block_device, 73 return table
|
D | verity_verifier.cpp | 52 const char* table, uint32_t table_length) { in verify_table() argument 55 SHA256(const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(table)), table_length, hash_buf); in verify_table() 114 verity.table, verity.table_length); in main()
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 156 DmTable table; in DmCreateCmdHandler() local 160 table.set_readonly(true); in DmCreateCmdHandler() 172 if (!target || !table.AddTarget(std::move(target))) { in DmCreateCmdHandler() 177 if (table.num_targets() == 0) { in DmCreateCmdHandler() 183 if (!dm.CreateDevice(name, table)) { in DmCreateCmdHandler() 245 std::vector<DeviceMapper::TargetInfo> table; in DmListDevices() local 246 if (!dm.GetTableInfo(dev.name(), &table)) { in DmListDevices() 253 for (const auto& target : table) { in DmListDevices() 318 std::vector<DeviceMapper::TargetInfo> table; in TableCmdHandler() local 319 if (!dm.GetTableInfo(argv[0], &table)) { in TableCmdHandler() [all …]
|
/system/chre/platform/shared/idl/ |
D | host_messages.fbs | 18 table NanoappMessage { 31 table HubInfoRequest {} 32 table HubInfoResponse { 65 table NanoappListRequest {} 67 table NanoappListEntry { 81 table NanoappListResponse { 123 table LoadNanoappRequest { 144 table LoadNanoappResponse { 158 table UnloadNanoappRequest { 168 table UnloadNanoappResponse { [all …]
|
/system/extras/libfec/ |
D | fec_verity.cpp | 336 std::unique_ptr<char[]> table(new (std::nothrow) char[size + 1]); in parse_table() local 338 if (!table) { in parse_table() 344 if (!raw_pread(f, table.get(), size, offset)) { in parse_table() 348 } else if (fec_pread(f, table.get(), size, offset) != (ssize_t)size) { in parse_table() 353 table[size] = '\0'; in parse_table() 354 debug("verity table: '%s'", table.get()); in parse_table() 360 auto tokens = android::base::Split(table.get(), " "); in parse_table() 450 if (v->table) { in parse_table() 451 delete[] v->table; in parse_table() 452 v->table = NULL; in parse_table() [all …]
|
/system/sepolicy/tools/ |
D | sepolicy-check.c | 131 src = hashtab_search(policy->p_types.table, s); in check_rule() 138 tgt = hashtab_search(policy->p_types.table, t); in check_rule() 145 cls = hashtab_search(policy->p_classes.table, c); in check_rule() 152 perm = hashtab_search(cls->permissions.table, p); in check_rule() 158 perm = hashtab_search(cls->comdatum->permissions.table, p); in check_rule()
|
/system/chre/host/common/include/chre_host/ |
D | host_messages_generated.h | 200 flatbuffers::NativeTable *table; 202 ChreMessageUnion() : type(ChreMessage::NONE), table(nullptr) {} 204 type(std::move(u.type)), table(std::move(u.table)) {} 216 table = new T(std::forward<T>(value)); 225 reinterpret_cast<NanoappMessageT *>(table) : nullptr; 229 reinterpret_cast<HubInfoRequestT *>(table) : nullptr; 233 reinterpret_cast<HubInfoResponseT *>(table) : nullptr; 237 reinterpret_cast<NanoappListRequestT *>(table) : nullptr; 241 reinterpret_cast<NanoappListResponseT *>(table) : nullptr; 245 reinterpret_cast<LoadNanoappRequestT *>(table) : nullptr; [all …]
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | attribute.c | 34 dat = hashtab_search(policydb->p_types.table, name); in list_attribute() 71 return hashtab_map(policydb->p_types.table, print_attr, policydb); in list_all_attributes()
|
D | booleans.c | 21 return hashtab_map(policydb->p_bools.table, list_booleans, NULL); in booleans_func()
|