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.h91 Domain GetDomain() const { return domain_; } in GetDomain()
92 bool IsApplicationDomain() const { return domain_ == Domain::kApplication; } in IsApplicationDomain()
105 static Domain ComputeDomain(bool is_trusted) { in ComputeDomain()
106 return is_trusted ? Domain::kCorePlatform : Domain::kApplication; in ComputeDomain()
109 static Domain ComputeDomain(ObjPtr<mirror::ClassLoader> class_loader, const DexFile* dex_file) { in ComputeDomain()
117 static Domain ComputeDomain(ObjPtr<mirror::Class> klass, const DexFile* dex_file) in ComputeDomain()
120 Domain domain = ComputeDomain(klass->GetClassLoader(), dex_file); in ComputeDomain()
122 if (domain == Domain::kApplication && in ComputeDomain()
142 const Domain domain_;
447 case Domain::kApplication: { in ShouldDenyAccessToMember()
[all …]
Dhidden_api_test.cc104 hiddenapi::Domain expected_domain, in CheckAllDexFilesInDomain()
193 void TestLocation(const std::string& location, hiddenapi::Domain expected_domain) { in TestLocation()
622 TestLocation(data_location_path, hiddenapi::Domain::kApplication); in TEST_F()
629 TestLocation(system_location_path, hiddenapi::Domain::kApplication); in TEST_F()
637 TestLocation(system_ext_location_path, hiddenapi::Domain::kApplication); in TEST_F()
646 TestLocation(system_ext_location_path, hiddenapi::Domain::kApplication); in TEST_F()
654 TestLocation(system_framework_location_path, hiddenapi::Domain::kPlatform); in TEST_F()
662 TestLocation(system_ext_framework_location_path, hiddenapi::Domain::kPlatform); in TEST_F()
673 TestLocation(system_ext_framework_location_path, hiddenapi::Domain::kPlatform); in TEST_F()
680 TestLocation(data_multi_location_path, hiddenapi::Domain::kApplication); in TEST_F()
[all …]
Dhidden_api.cc95 static Domain DetermineDomainFromLocation(const std::string& dex_location, in DetermineDomainFromLocation()
104 return Domain::kCorePlatform; in DetermineDomainFromLocation()
108 return Domain::kPlatform; in DetermineDomainFromLocation()
113 return Domain::kPlatform; in DetermineDomainFromLocation()
117 return Domain::kPlatform; in DetermineDomainFromLocation()
126 return Domain::kPlatform; in DetermineDomainFromLocation()
129 return Domain::kApplication; in DetermineDomainFromLocation()
133 Domain dex_domain = DetermineDomainFromLocation(dex_file.GetLocation(), class_loader); in InitializeDexFileDomain()
Doat_file_assistant_test.cc1587 EXPECT_EQ(dex_files_first[0]->GetHiddenapiDomain(), hiddenapi::Domain::kPlatform); in TEST_F()
1618 EXPECT_EQ(dex_files_second[0]->GetHiddenapiDomain(), hiddenapi::Domain::kPlatform); in TEST_F()
/art/test/674-hiddenapi/
Dhiddenapi.cc50 (is_core_platform == JNI_FALSE) ? hiddenapi::Domain::kPlatform in Java_Main_setDexDomain()
51 : hiddenapi::Domain::kCorePlatform); in Java_Main_setDexDomain()
/art/libdexfile/dex/
Ddex_file.h51 enum class Domain : char;
788 hiddenapi::Domain GetHiddenapiDomain() const { return hiddenapi_domain_; } in GetHiddenapiDomain()
789 void SetHiddenapiDomain(hiddenapi::Domain value) const { hiddenapi_domain_ = value; } in SetHiddenapiDomain()
906 mutable hiddenapi::Domain hiddenapi_domain_;
Ddex_file.cc127 hiddenapi_domain_(hiddenapi::Domain::kApplication) { in DexFile()
/art/runtime/native/
Ddalvik_system_DexFile.cc912 const_cast<DexFile*>(dex_file)->SetHiddenapiDomain(hiddenapi::Domain::kCorePlatform); in DexFile_setTrusted()