HomeSort by relevance Sort by last modified time
    Searched refs:hiddenapi (Results 1 - 25 of 45) sorted by null

1 2

  /art/libartbase/base/
hiddenapi_domain.h 21 namespace hiddenapi { namespace in namespace:art
37 } // namespace hiddenapi
hiddenapi_flags.cc 20 namespace hiddenapi { namespace in namespace:art
26 } // namespace hiddenapi
hiddenapi_stubs.h 24 namespace hiddenapi { namespace in namespace:art
60 } // namespace hiddenapi
  /art/tools/veridex/
hidden_api.h 34 class HiddenApi {
36 HiddenApi(const char* flags_file, bool sdk_uses_only);
38 hiddenapi::ApiList GetApiList(const std::string& name) const {
40 return (it == api_list_.end()) ? hiddenapi::ApiList() : it->second;
52 return HiddenApi::GetApiMethodName(*ref.dex_file, ref.index);
62 void AddSignatureToApiList(const std::string& signature, hiddenapi::ApiList membership);
64 std::map<std::string, hiddenapi::ApiList> api_list_;
71 uint32_t api_counts[hiddenapi::ApiList::kValueCount] = {}; // initialize all to zero
appcompat.sh 25 -e ${SCRIPT_DIR}/hiddenapi-flags.csv && \
30 --api-flags=${SCRIPT_DIR}/hiddenapi-flags.csv \
64 file="${OUT}/soong/hiddenapi/hiddenapi-flags.csv"
hidden_api.cc 27 HiddenApi::HiddenApi(const char* filename, bool sdk_uses_only) {
35 hiddenapi::ApiList membership;
36 bool success = hiddenapi::ApiList::FromNames(values.begin() + 1, values.end(), &membership);
40 if (sdk_uses_only != membership.Contains(hiddenapi::ApiList::Whitelist())) {
65 void HiddenApi::AddSignatureToApiList(const std::string& signature, hiddenapi::ApiList membership) {
78 std::string HiddenApi::GetApiMethodName(const DexFile& dex_file, uint32_t method_index) {
88 std::string HiddenApi::GetApiFieldName(const DexFile& dex_file, uint32_t field_index) {
hidden_api_finder.cc 37 std::string name = HiddenApi::GetApiMethodName(resolver->GetDexFile(), method_id);
48 std::string name = HiddenApi::GetApiFieldName(resolver->GetDexFile(), field_id);
79 std::string str = HiddenApi::ToInternalName(name);
80 // Note: we can query the lists directly, as HiddenApi added classes that own
182 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first);
194 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first);
208 hiddenapi::ApiList api_list = hidden_api_.GetApiList(full_name);
230 std::string ref_string = HiddenApi::GetApiMethodName(ref);
veridex.cc 222 HiddenApi hidden_api(options.flags_file, options.only_report_sdk_uses);
251 os << stats.api_counts[hiddenapi::ApiList::Whitelist().GetIntValue()]
257 for (size_t i = 0; i < hiddenapi::ApiList::kValueCount; ++i) {
258 hiddenapi::ApiList api_list = hiddenapi::ApiList(i);
259 if (api_list != hiddenapi::ApiList::Whitelist()) {
precise_hidden_api_finder.cc 103 hiddenapi::ApiList api_list = hidden_api_.GetApiList(full_name);
108 os << kPrefix << HiddenApi::GetApiMethodName(ref) << std::endl;
  /build/soong/java/
hiddenapi_singleton.go 22 android.RegisterSingletonType("hiddenapi", hiddenAPISingletonFactory)
39 stubFlags: android.PathForOutput(ctx, "hiddenapi", "hiddenapi-stub-flags.txt"),
40 flags: android.PathForOutput(ctx, "hiddenapi", "hiddenapi-flags.csv"),
41 metadata: android.PathForOutput(ctx, "hiddenapi", "hiddenapi-greylist.csv"),
54 // hiddenAPI singleton rules
56 // Don't run any hiddenapi rules if UNSAFE_DISABLE_HIDDENAPI_FLAGS=true
86 // stubFlagsRule creates the rule to build hiddenapi-stub-flags.txt out of dex jars from stub modules and boot imag
    [all...]
hiddenapi.go 30 type hiddenAPI struct {
36 func (h *hiddenAPI) flagsCSV() android.Path {
40 func (h *hiddenAPI) metadataCSV() android.Path {
44 func (h *hiddenAPI) bootDexJar() android.Path {
54 var _ hiddenAPIIntf = (*hiddenAPI)(nil)
56 func (h *hiddenAPI) hiddenAPI(ctx android.ModuleContext, dexJar android.ModuleOutPath, implementationJar android.Path,
62 // Modules whose names are of the format <x>-hiddenapi provide hiddenapi information
65 bootJarName := strings.TrimSuffix(name, "-hiddenapi")
    [all...]
  /art/runtime/
hidden_api_test.cc 32 using hiddenapi::detail::MemberSignature;
33 using hiddenapi::detail::ShouldDenyAccessToMemberImpl;
78 bool ShouldDenyAccess(hiddenapi::ApiList list) REQUIRES_SHARED(Locks::mutator_lock_) {
84 /* access_method= */ hiddenapi::AccessMethod::kNone);
109 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kJustWarn);
110 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Whitelist()), false);
111 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Greylist()), false);
112 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::GreylistMaxP()), false);
113 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::GreylistMaxO()), false);
114 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Blacklist()), false)
    [all...]
runtime_options.def 123 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy,
125 hiddenapi::EnforcementPolicy::kDisabled)
126 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy,
128 hiddenapi::EnforcementPolicy::kDisabled)
parsed_options.cc 61 std::initializer_list<std::pair<const char*, hiddenapi::EnforcementPolicy>>;
76 {{"disabled", hiddenapi::EnforcementPolicy::kDisabled},
77 {"just-warn", hiddenapi::EnforcementPolicy::kJustWarn},
78 {"enabled", hiddenapi::EnforcementPolicy::kEnabled}};
80 static_cast<size_t>(hiddenapi::EnforcementPolicy::kMax) + 1);
347 .WithType<hiddenapi::EnforcementPolicy>()
351 .WithType<hiddenapi::EnforcementPolicy>()
    [all...]
runtime.h 54 namespace hiddenapi { namespace in namespace:art
56 } // namespace hiddenapi
552 void SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) {
556 hiddenapi::EnforcementPolicy GetHiddenApiEnforcementPolicy() const {
560 void SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) {
564 hiddenapi::EnforcementPolicy GetCorePlatformApiEnforcementPolicy() const {
    [all...]
hidden_api.cc 35 namespace hiddenapi { namespace in namespace:art
40 // Note that when flipping this flag, you must also update the expectations of test 674-hiddenapi
200 hiddenapi::ApiList list,
404 CHECK(flags.IsValid()) << "Could not find hiddenapi flags for "
510 } // namespace hiddenapi
  /art/tools/hiddenapi/
hiddenapi_test.cc 35 file_path += "/bin/hiddenapi";
52 ZipArchive::Open(GetTestDexFileName("HiddenApi").c_str(), &error));
54 LOG(FATAL) << "Could not open test file " << GetTestDexFileName("HiddenApi") << ": " << error;
59 LOG(FATAL) << "Could not find classes.dex in test file " << GetTestDexFileName("HiddenApi")
64 << GetTestDexFileName("HiddenApi") << ": " << error;
80 LOG(ERROR) << "HiddenApi binary exited with unexpected return code " << return_code;
87 std::string boot_jar = GetTestDexFileName("HiddenApi");
104 LOG(ERROR) << "HiddenApi binary exited with unexpected return code " << return_code;
175 hiddenapi::ApiList GetFieldHiddenFlags(const char* name,
179 ClassAccessor accessor(dex_file, class_def, /* parse hiddenapi flags */ true)
    [all...]
  /art/runtime/native/
dalvik_system_ZygoteHooks.cc 155 // corresponding to hiddenapi::EnforcementPolicy
288 hiddenapi::EnforcementPolicy api_enforcement_policy = hiddenapi::EnforcementPolicy::kDisabled;
305 api_enforcement_policy = hiddenapi::EnforcementPolicyFromInt(
373 bool do_hidden_api_checks = api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled;
380 if (api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled &&
java_lang_Class.cc 58 // a hiddenapi AccessContext formed from its declaring class.
59 static hiddenapi::AccessContext GetReflectionCaller(Thread* self)
112 return caller.IsNull() ? hiddenapi::AccessContext(/* is_trusted= */ true)
113 : hiddenapi::AccessContext(caller);
116 static std::function<hiddenapi::AccessContext()> GetHiddenapiAccessContextFunction(Thread* self) {
125 return hiddenapi::ShouldDenyAccessToMember(member,
127 hiddenapi::AccessMethod::kReflection);
136 const hiddenapi::AccessContext& access_context,
143 return !hiddenapi::ShouldDenyAccessToMember(
144 member, access_context, hiddenapi::AccessMethod::kNone)
    [all...]
  /build/make/target/product/
runtime_libart.mk 45 hiddenapi-package-whitelist.xml \
  /art/test/674-hiddenapi/
hiddenapi.cc 34 runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled);
35 runtime->SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled);
37 static_cast<uint32_t>(hiddenapi::ApiList::GreylistMaxO().GetMaxAllowedSdkVersion()));
47 (is_core_platform == JNI_FALSE) ? hiddenapi::Domain::kPlatform
48 : hiddenapi::Domain::kCorePlatform);
  /art/libdexfile/dex/
class_accessor-inl.h 72 DCHECK(hiddenapi::ApiList(hiddenapi_flags_).IsValid());
86 DCHECK(hiddenapi::ApiList(hiddenapi_flags_).IsValid());
  /art/tools/
build_linux_bionic_tests.sh 81 $soong_out/bin/hiddenapi
  /build/soong/java/config/
config.go 104 pctx.HostBinToolVariable("HiddenAPICmd", "hiddenapi")
153 pctx.HostBinToolVariable("HiddenAPI", "hiddenapi")
  /art/runtime/mirror/
class.cc     [all...]

Completed in 242 milliseconds

1 2