Home
last modified time | relevance | path

Searched refs:target_type (Results 1 – 25 of 39) sorted by relevance

12

/aosp12/system/sepolicy/tools/sepolicy-analyze/
H A Dtypecmp.c24 k->target_type < c->key.target_type) in insert_type_rule()
27 k->target_type == c->key.target_type && in insert_type_rule()
34 k->target_type == c->key.target_type && in insert_type_rule()
68 if (k->source_type == k->target_type) { in create_type_rules_helper()
70 key.target_type = 0; in create_type_rules_helper()
75 if (k->source_type == k->target_type) in create_type_rules_helper()
86 key.target_type = 0; in create_type_rules_helper()
130 l1->key.target_type < c->key.target_type) in find_match()
133 l1->key.target_type == c->key.target_type && in find_match()
140 l1->key.target_type == c->key.target_type && in find_match()
[all …]
H A Ddups.c27 if (k->source_type == k->target_type) in find_dups_helper()
34 tattr = &policydb->type_attr_map[k->target_type - 1]; in find_dups_helper()
36 ttype = policydb->type_val_to_struct[k->target_type - 1]; in find_dups_helper()
45 avkey.target_type = j + 1; in find_dups_helper()
47 avkey.target_type == k->target_type) in find_dups_helper()
49 if (avkey.source_type == avkey.target_type) in find_dups_helper()
52 ttype2 = policydb->type_val_to_struct[avkey.target_type - 1]; in find_dups_helper()
H A Dutils.c17 key->target_type == key->source_type ? "self" : in display_allow()
18 policydb->p_type_val_to_name[key->target_type in display_allow()
19 ? key->target_type - 1 : idx], in display_allow()
/aosp12/system/sepolicy/tools/
H A Dsepolicy-check.c64 int t_op, uint32_t target_type, in expand_and_check() argument
87 match &= check(t_op, target_type, cur->key.target_type); in expand_and_check()
128 key.source_type = key.target_type = key.target_class = 0; in check_rule()
169 key.target_type = tgt->s.value; in check_rule()
175 t_op, key.target_type, in check_rule()
183 t_op, key.target_type, in check_rule()
/aosp12/system/core/fs_mgr/tools/
H A Ddmctl.cpp79 std::string target_type = NextArg(); in Next() local
90 if (target_type == "zero") { in Next()
92 } else if (target_type == "linear") { in Next()
106 } else if (target_type == "android-verity") { in Next()
116 } else if (target_type == "bow") { in Next()
123 } else if (target_type == "snapshot-origin") { in Next()
131 } else if (target_type == "snapshot") { in Next()
160 } else if (target_type == "snapshot-merge") { in Next()
179 } else if (target_type == "user") { in Next()
348 << target.spec.target_type; in DmListDevices()
[all …]
/aosp12/system/core/fs_mgr/libdm/
H A Ddm_target.cpp50 snprintf(spec->target_type, sizeof(spec->target_type), "%s", name().c_str()); in Serialize()
179 bool DmTargetSnapshot::ReportsOverflow(const std::string& target_type) { in ReportsOverflow() argument
182 if (!dm.GetTargetByName(target_type, &info)) { in ReportsOverflow()
185 if (target_type == "snapshot") { in ReportsOverflow()
188 if (target_type == "snapshot-merge") { in ReportsOverflow()
H A Ddm.cpp574 if (const void* p = memchr(spec.target_type, '\0', sizeof(spec.target_type))) { in GetTargetType()
575 ptrdiff_t length = reinterpret_cast<const char*>(p) - spec.target_type; in GetTargetType()
576 return std::string{spec.target_type, static_cast<size_t>(length)}; in GetTargetType()
578 return std::string{spec.target_type, sizeof(spec.target_type)}; in GetTargetType()
647 return spec.target_type == "snapshot"s && data == "Overflow"s; in IsOverflowSnapshot()
H A Ddm_linear_fuzzer.cpp121 EXPECT_EQ(strcmp(targets[0].spec.target_type, "linear"), 0); in LLVMFuzzerTestOneInput()
125 EXPECT_EQ(strcmp(targets[1].spec.target_type, "linear"), 0); in LLVMFuzzerTestOneInput()
H A Ddm_test.cpp111 EXPECT_EQ(strcmp(targets[0].spec.target_type, "linear"), 0); in TEST()
115 EXPECT_EQ(strcmp(targets[1].spec.target_type, "linear"), 0); in TEST()
297 ASSERT_EQ(strncmp(status[0].spec.target_type, "snapshot-merge", strlen("snapshot-merge")), in MergeImpl()
412 ASSERT_EQ(strncmp(target_status[0].spec.target_type, "snapshot", strlen("snapshot")), 0); in TEST()
/aosp12/system/core/fs_mgr/libfiemap/
H A Dfiemap_writer.cpp73 auto target_type = DeviceMapper::GetTargetType(entry); in ValidateDmTarget() local
74 if (target_type == "bow" || target_type == "default-key" || target_type == "crypt") { in ValidateDmTarget()
77 if (target_type == "linear") { in ValidateDmTarget()
87 LOG(INFO) << "Stopping at complex target type " << target_type; in ValidateDmTarget()
/aosp12/art/runtime/
H A Dmethod_handles.cc421 Handle<mirror::MethodType> target_type, in MethodHandleInvokeMethod() argument
464 if (callsite_type->IsExactMatch(target_type.Get())) { in MethodHandleInvokeMethod()
486 target_type, in MethodHandleInvokeMethod()
494 if (!callsite_type->IsConvertible(target_type.Get())) { in MethodHandleInvokeMethod()
495 ThrowWrongMethodTypeException(target_type.Get(), callsite_type.Get()); in MethodHandleInvokeMethod()
500 target_type, in MethodHandleInvokeMethod()
538 if (ConvertReturnValue(emulated_stack_type, target_type, &local_result)) { in MethodHandleInvokeMethod()
548 return ConvertReturnValue(nominal_type, target_type, result) && in MethodHandleInvokeMethod()
552 return ConvertReturnValue(callsite_type, target_type, result); in MethodHandleInvokeMethod()
/aosp12/system/core/fs_mgr/
H A Dfs_mgr_dm_linear.cpp99 switch (extent.target_type) { in CreateDmTableInternal()
116 LOG(ERROR) << "Unknown target type in metadata: " << extent.target_type; in CreateDmTableInternal()
/aosp12/system/extras/partition_tools/
H A Dlpunpack.cc221 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in ExtractPartition()
222 std::cerr << "Unsupported target type in extent: " << extent.target_type << "\n"; in ExtractPartition()
H A Dlpdump.cc298 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in ParseLinearExtentData()
331 if (extent.target_type == LP_TARGET_TYPE_LINEAR) { in PrintMetadata()
335 } else if (extent.target_type == LP_TARGET_TYPE_ZERO) { in PrintMetadata()
H A Dlpadd.cc320 CHECK(extent.target_type == LP_TARGET_TYPE_LINEAR); in WriteExtent()
/aosp12/system/core/fs_mgr/libsnapshot/
H A Dsnapshot_fuzz_utils.cpp114 if (target.spec.target_type != "linear"s) return {}; in GetLinearBaseDeviceString()
121 if (target.spec.target_type != "snapshot"s && target.spec.target_type != "snapshot-merge"s) in GetSnapshotBaseDeviceStrings()
H A Dsnapshot.cpp896 if (target_type) { in QuerySnapshotStatus()
897 *target_type = DeviceMapper::GetTargetType(target.spec); in QuerySnapshotStatus()
1114 std::string target_type; in CheckTargetMergeState() local
1116 if (!QuerySnapshotStatus(name, &target_type, &status)) { in CheckTargetMergeState()
1119 if (target_type == "snapshot" && in CheckTargetMergeState()
1125 if (target_type != "snapshot-merge") { in CheckTargetMergeState()
1345 std::string target_type; in OnSnapshotMergeComplete() local
1347 if (!QuerySnapshotStatus(name, &target_type, &dm_status)) { in OnSnapshotMergeComplete()
1350 if (target_type != "snapshot-merge") { in OnSnapshotMergeComplete()
1351 LOG(ERROR) << "Unexpected target type " << target_type in OnSnapshotMergeComplete()
[all …]
/aosp12/system/core/fs_mgr/liblp/include/liblp/
H A Dmetadata_format.h286 uint32_t target_type; member
/aosp12/system/core/fs_mgr/liblp/
H A Dbuilder_test.cpp228 ASSERT_EQ(extent.target_type, LP_TARGET_TYPE_LINEAR); in TEST_F()
368 EXPECT_EQ(extent.target_type, LP_TARGET_TYPE_LINEAR); in TEST_F()
675 EXPECT_EQ(metadata->extents[0].target_type, LP_TARGET_TYPE_LINEAR); in TEST_F()
679 EXPECT_EQ(metadata->extents[1].target_type, LP_TARGET_TYPE_LINEAR); in TEST_F()
683 EXPECT_EQ(metadata->extents[2].target_type, LP_TARGET_TYPE_LINEAR); in TEST_F()
723 EXPECT_EQ(extent_a.target_type, extent_b.target_type); in TEST_F()
H A Dimages.cpp319 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in AddPartitionImage()
428 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in CheckExtentOrdering()
H A Dio_test.cpp199 EXPECT_EQ(exported->extents[0].target_type, imported->extents[0].target_type); in TEST_F()
/aosp12/bionic/libc/kernel/uapi/linux/
H A Ddm-ioctl.h46 char target_type[DM_MAX_TYPE_NAME]; member
/aosp12/art/dex2oat/linker/
H A Doat_writer.cc911 TypeReference target_type(patch.TargetTypeDexFile(), patch.TargetTypeIndex()); in VisitMethod() local
912 AddBssReference(target_type, in VisitMethod()
913 target_type.dex_file->NumTypeIds(), in VisitMethod()
915 writer_->bss_type_entries_.Overwrite(target_type, /* placeholder */ 0u); in VisitMethod()
917 TypeReference target_type(patch.TargetTypeDexFile(), patch.TargetTypeIndex()); in VisitMethod() local
918 AddBssReference(target_type, in VisitMethod()
919 target_type.dex_file->NumTypeIds(), in VisitMethod()
921 writer_->bss_public_type_entries_.Overwrite(target_type, /* placeholder */ 0u); in VisitMethod()
923 TypeReference target_type(patch.TargetTypeDexFile(), patch.TargetTypeIndex()); in VisitMethod() local
924 AddBssReference(target_type, in VisitMethod()
[all …]
/aosp12/system/core/fs_mgr/libdm/include/libdm/
H A Ddm_target.h224 static bool ReportsOverflow(const std::string& target_type);
/aosp12/art/runtime/verifier/
H A Dmethod_verifier.cc548 void VerifyPrimitivePut(const RegType& target_type, const RegType& insn_type,
4478 void MethodVerifier<kVerifierDebug>::VerifyPrimitivePut(const RegType& target_type, in VerifyPrimitivePut() argument
4485 if (target_type.IsIntegralTypes()) { in VerifyPrimitivePut()
4486 instruction_compatible = target_type.Equals(insn_type); in VerifyPrimitivePut()
4488 } else if (target_type.IsFloat()) { in VerifyPrimitivePut()
4491 } else if (target_type.IsLong()) { in VerifyPrimitivePut()
4501 } else if (target_type.IsDouble()) { in VerifyPrimitivePut()
4520 << "' but expected type '" << target_type << "'"; in VerifyPrimitivePut()
4525 << " of type " << value_type << " but expected " << target_type << " for put"; in VerifyPrimitivePut()

12