Home
last modified time | relevance | path

Searched refs:Domain (Results 1 – 9 of 9) sorted by relevance

/art/libartbase/base/
Dhiddenapi_domain.h27 enum class Domain : char { enum
33 inline bool IsDomainMoreTrustedThan(Domain domainA, Domain domainB) { in IsDomainMoreTrustedThan()
/art/runtime/
Dhidden_api.h93 Domain GetDomain() const { return domain_; } in GetDomain()
94 bool IsApplicationDomain() const { return domain_ == Domain::kApplication; } in IsApplicationDomain()
107 static Domain ComputeDomain(bool is_trusted) { in ComputeDomain()
108 return is_trusted ? Domain::kCorePlatform : Domain::kApplication; in ComputeDomain()
111 static Domain ComputeDomain(ObjPtr<mirror::ClassLoader> class_loader, const DexFile* dex_file) { in ComputeDomain()
119 static Domain ComputeDomain(ObjPtr<mirror::Class> klass, const DexFile* dex_file) in ComputeDomain()
122 Domain domain = ComputeDomain(klass->GetClassLoader(), dex_file); in ComputeDomain()
124 if (domain == Domain::kApplication && in ComputeDomain()
144 const Domain domain_;
Dhidden_api.cc102 static Domain DetermineDomainFromLocation(const std::string& dex_location, in DetermineDomainFromLocation()
110 return Domain::kCorePlatform; in DetermineDomainFromLocation()
114 return Domain::kPlatform; in DetermineDomainFromLocation()
119 return Domain::kPlatform; in DetermineDomainFromLocation()
123 return Domain::kPlatform; in DetermineDomainFromLocation()
132 return Domain::kPlatform; in DetermineDomainFromLocation()
135 return Domain::kApplication; in DetermineDomainFromLocation()
139 Domain dex_domain = DetermineDomainFromLocation(dex_file.GetLocation(), class_loader); in InitializeDexFileDomain()
726 case Domain::kApplication: { in ShouldDenyAccessToMember()
748 case Domain::kPlatform: { in ShouldDenyAccessToMember()
[all …]
Dhidden_api_test.cc110 hiddenapi::Domain expected_domain, in CheckAllDexFilesInDomain()
199 void TestLocation(const std::string& location, hiddenapi::Domain expected_domain) { in TestLocation()
678 TestLocation(data_location_path, hiddenapi::Domain::kApplication); in TEST_F()
685 TestLocation(system_location_path, hiddenapi::Domain::kApplication); in TEST_F()
693 TestLocation(system_ext_location_path, hiddenapi::Domain::kApplication); in TEST_F()
702 TestLocation(system_ext_location_path, hiddenapi::Domain::kApplication); in TEST_F()
710 TestLocation(system_framework_location_path, hiddenapi::Domain::kPlatform); in TEST_F()
718 TestLocation(system_ext_framework_location_path, hiddenapi::Domain::kPlatform); in TEST_F()
729 TestLocation(system_ext_framework_location_path, hiddenapi::Domain::kPlatform); in TEST_F()
736 TestLocation(data_multi_location_path, hiddenapi::Domain::kApplication); in TEST_F()
[all …]
/art/test/674-hiddenapi/
Dhiddenapi.cc47 (is_core_platform == JNI_FALSE) ? hiddenapi::Domain::kPlatform in Java_Main_setDexDomain()
48 : hiddenapi::Domain::kCorePlatform); in Java_Main_setDexDomain()
/art/libdexfile/dex/
Ddex_file.h54 enum class Domain : char;
889 hiddenapi::Domain GetHiddenapiDomain() const { return hiddenapi_domain_; } in GetHiddenapiDomain()
890 void SetHiddenapiDomain(hiddenapi::Domain value) const { hiddenapi_domain_ = value; } in SetHiddenapiDomain()
1022 mutable hiddenapi::Domain hiddenapi_domain_;
Ddex_file.cc177 hiddenapi_domain_(hiddenapi::Domain::kApplication) { in DexFile()
/art/runtime/native/
Ddalvik_system_DexFile.cc993 const_cast<DexFile*>(dex_file)->SetHiddenapiDomain(hiddenapi::Domain::kCorePlatform); in DexFile_setTrusted()
/art/runtime/oat/
Doat_file_assistant_test.cc2406 EXPECT_EQ(dex_files_first[0]->GetHiddenapiDomain(), hiddenapi::Domain::kPlatform); in TEST_F()
2437 EXPECT_EQ(dex_files_second[0]->GetHiddenapiDomain(), hiddenapi::Domain::kPlatform); in TEST_F()