/art/runtime/ |
D | hidden_api_test.cc | 34 using hiddenapi::detail::MemberSignature; 35 using hiddenapi::detail::ShouldDenyAccessToMemberImpl; 110 hiddenapi::Domain expected_domain, in CheckAllDexFilesInDomain() 114 hiddenapi::AccessContext context(loader, dex_file.get()); in CheckAllDexFilesInDomain() 190 bool ShouldDenyAccess(hiddenapi::ApiList list) REQUIRES_SHARED(Locks::mutator_lock_) { in ShouldDenyAccess() 196 /* access_method= */ hiddenapi::AccessMethod::kNone); in ShouldDenyAccess() 199 void TestLocation(const std::string& location, hiddenapi::Domain expected_domain) { in TestLocation() 270 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kJustWarn); in TEST_F() 271 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Sdk()), false); in TEST_F() 272 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Unsupported()), false); in TEST_F() [all …]
|
D | runtime.h | 62 namespace hiddenapi { 657 void SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetHiddenApiEnforcementPolicy() 661 hiddenapi::EnforcementPolicy GetHiddenApiEnforcementPolicy() const { in GetHiddenApiEnforcementPolicy() 665 void SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetCorePlatformApiEnforcementPolicy() 669 hiddenapi::EnforcementPolicy GetCorePlatformApiEnforcementPolicy() const { in GetCorePlatformApiEnforcementPolicy() 673 void SetTestApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetTestApiEnforcementPolicy() 677 hiddenapi::EnforcementPolicy GetTestApiEnforcementPolicy() const { in GetTestApiEnforcementPolicy() 1447 hiddenapi::EnforcementPolicy hidden_api_policy_; 1450 hiddenapi::EnforcementPolicy core_platform_api_policy_; 1453 hiddenapi::EnforcementPolicy test_api_policy_;
|
D | parsed_options.cc | 64 std::initializer_list<std::pair<const char*, hiddenapi::EnforcementPolicy>>; 79 {{"disabled", hiddenapi::EnforcementPolicy::kDisabled}, in MakeParser() 80 {"just-warn", hiddenapi::EnforcementPolicy::kJustWarn}, in MakeParser() 81 {"enabled", hiddenapi::EnforcementPolicy::kEnabled}}; in MakeParser() 83 static_cast<size_t>(hiddenapi::EnforcementPolicy::kMax) + 1); in MakeParser() 432 .WithType<hiddenapi::EnforcementPolicy>() in MakeParser() 436 .WithType<hiddenapi::EnforcementPolicy>() in MakeParser()
|
D | runtime_options.def | 141 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, 143 hiddenapi::EnforcementPolicy::kDisabled) 144 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, 146 hiddenapi::EnforcementPolicy::kDisabled)
|
/art/tools/veridex/ |
D | api_list_filter.h | 30 std::set<hiddenapi::ApiList> exclude_set; in ApiListFilter() 40 hiddenapi::ApiList list = hiddenapi::ApiList::FromName(name); in ApiListFilter() 49 lists_.push_back(hiddenapi::ApiList()); in ApiListFilter() 51 for (size_t i = 0; i < hiddenapi::ApiList::kValueCount; ++i) { in ApiListFilter() 52 hiddenapi::ApiList list = hiddenapi::ApiList(i); in ApiListFilter() 59 bool Matches(hiddenapi::ApiList list) const { in Matches() 69 std::vector<hiddenapi::ApiList> lists_;
|
D | hidden_api.h | 46 hiddenapi::ApiList GetApiList(const std::string& name) const { in GetApiList() 48 return (it == api_list_.end()) ? hiddenapi::ApiList() : it->second; in GetApiList() 95 void AddSignatureToApiList(const std::string& signature, hiddenapi::ApiList membership); 106 std::map<std::string, hiddenapi::ApiList> api_list_; 115 uint32_t api_counts[hiddenapi::ApiList::kValueSize] = {};
|
D | hidden_api.cc | 37 hiddenapi::ApiList membership; in HiddenApi() 38 bool success = hiddenapi::ApiList::FromNames(values.begin() + 1, values.end(), &membership); in HiddenApi() 69 void HiddenApi::AddSignatureToApiList(const std::string& signature, hiddenapi::ApiList membership) { in AddSignatureToApiList()
|
D | appcompat.sh | 25 -e ${SCRIPT_DIR}/hiddenapi-flags.csv && \ 30 --api-flags=${SCRIPT_DIR}/hiddenapi-flags.csv \
|
D | Android.bp | 159 ":platform-bootclasspath{hiddenapi-flags.csv}", 176 ":platform-bootclasspath{hiddenapi-flags.csv}", 188 …rname $(location :platform-bootclasspath{hiddenapi-flags.csv})` -f $(location :platform-bootclassp…
|
D | hidden_api_finder.cc | 189 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first); in Dump() 205 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first); in Dump() 223 hiddenapi::ApiList api_list = hidden_api_.GetApiList(full_name); in Dump()
|
D | veridex.cc | 275 DumpApiListStats(os, stats, hiddenapi::ApiList(), api_list_filter); in DumpSummaryStats() 276 for (size_t i = 0; i < hiddenapi::ApiList::kValueCount; ++i) { in DumpSummaryStats() 277 DumpApiListStats(os, stats, hiddenapi::ApiList(i), api_list_filter); in DumpSummaryStats() 283 const hiddenapi::ApiList& api_list, in DumpApiListStats()
|
/art/test/2270-mh-internal-hiddenapi-use/ |
D | Android.bp | 3 // Build rules for ART run-test `2270-mh-internal-hiddenapi-use`. 16 name: "art-run-test-2270-mh-internal-hiddenapi-use", 21 ":art-run-test-2270-mh-internal-hiddenapi-use-expected-stdout", 22 ":art-run-test-2270-mh-internal-hiddenapi-use-expected-stderr", 28 name: "art-run-test-2270-mh-internal-hiddenapi-use-expected-stdout", 29 out: ["art-run-test-2270-mh-internal-hiddenapi-use-expected-stdout.txt"], 36 name: "art-run-test-2270-mh-internal-hiddenapi-use-expected-stderr", 37 out: ["art-run-test-2270-mh-internal-hiddenapi-use-expected-stderr.txt"],
|
D | mh-internal-hidden-api.cc | 28 runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_enableHiddenApiChecks()
|
/art/tools/hiddenapi/ |
D | hiddenapi_test.cc | 176 hiddenapi::ApiList GetFieldHiddenFlags(const char* name, in GetFieldHiddenFlags() 184 return hiddenapi::ApiList::Sdk(); in GetFieldHiddenFlags() 193 return hiddenapi::ApiList(field.GetHiddenapiFlags()); in GetFieldHiddenFlags() 202 hiddenapi::ApiList GetMethodHiddenFlags(const char* name, in GetMethodHiddenFlags() 211 return hiddenapi::ApiList::Sdk(); in GetMethodHiddenFlags() 222 return hiddenapi::ApiList(method.GetHiddenapiFlags()); in GetMethodHiddenFlags() 231 hiddenapi::ApiList GetIFieldHiddenFlags(const DexFile& dex_file) { in GetIFieldHiddenFlags() 235 hiddenapi::ApiList GetSFieldHiddenFlags(const DexFile& dex_file) { in GetSFieldHiddenFlags() 239 hiddenapi::ApiList GetIMethodHiddenFlags(const DexFile& dex_file) { in GetIMethodHiddenFlags() 244 hiddenapi::ApiList GetSMethodHiddenFlags(const DexFile& dex_file) { in GetSMethodHiddenFlags() [all …]
|
D | Android.bp | 27 name: "hiddenapi-defaults", 32 "hiddenapi.cc", 49 name: "hiddenapi", 51 "hiddenapi-defaults", 70 "hiddenapi-defaults",
|
/art/build/boot/hiddenapi/ |
D | OWNERS | 1 # soong-team@ as the hiddenapi files are tightly coupled with Soong 4 # compat-team@ for changes to hiddenapi files
|
/art/build/boot/ |
D | Android.bp | 121 blocked: ["hiddenapi/hiddenapi-blocked.txt"], 122 max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"], 123 unsupported_packages: ["hiddenapi/hiddenapi-unsupported-packages.txt"],
|
/art/runtime/native/ |
D | dalvik_system_ZygoteHooks.cc | 312 hiddenapi::EnforcementPolicy api_enforcement_policy = hiddenapi::EnforcementPolicy::kDisabled; in ZygoteHooks_nativePostForkChild() 326 api_enforcement_policy = hiddenapi::EnforcementPolicyFromInt( in ZygoteHooks_nativePostForkChild() 331 runtime->SetTestApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kDisabled); in ZygoteHooks_nativePostForkChild() 333 runtime->SetTestApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in ZygoteHooks_nativePostForkChild() 412 bool do_hidden_api_checks = api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled; in ZygoteHooks_nativePostForkChild() 419 if (api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled && in ZygoteHooks_nativePostForkChild()
|
/art/test/822-hiddenapi-future/ |
D | info.txt | 1 Tests that future hiddenapi flags do not crash the runtime.
|
/art/libartbase/base/ |
D | hiddenapi_domain.h | 21 namespace hiddenapi {
|
D | hiddenapi_stubs.h | 24 namespace hiddenapi {
|
/art/test/817-hiddenapi/ |
D | info.txt | 1 Test that even if hiddenapi bits are not propagated up the hierarchy, the
|
/art/test/674-hiddenapi/ |
D | hiddenapi.cc | 34 runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init() 35 runtime->SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init() 37 static_cast<uint32_t>(hiddenapi::ApiList::MaxTargetO().GetMaxAllowedSdkVersion())); in Java_Main_init() 47 (is_core_platform == JNI_FALSE) ? hiddenapi::Domain::kPlatform in Java_Main_setDexDomain() 48 : hiddenapi::Domain::kCorePlatform); in Java_Main_setDexDomain()
|
/art/test/691-hiddenapi-proxy/ |
D | info.txt | 2 would try to get their class def to find hiddenapi flags in the dex file, but class def if not
|
/art/ |
D | PREUPLOAD.cfg | 4 hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh $…
|