Home
last modified time | relevance | path

Searched refs:package (Results 1 – 25 of 635) sorted by relevance

12345678910>>...26

/frameworks/base/libs/androidfw/tests/
DResourceUtils_test.cpp24 StringPiece package, type, entry; in TEST() local
25 ASSERT_TRUE(ExtractResourceName("android:string/foo", &package, &type, &entry)); in TEST()
26 EXPECT_EQ("android", package); in TEST()
30 ASSERT_TRUE(ExtractResourceName("@android:string/foo", &package, &type, &entry)); in TEST()
31 EXPECT_EQ("android", package); in TEST()
35 ASSERT_TRUE(ExtractResourceName("string/foo", &package, &type, &entry)); in TEST()
36 EXPECT_EQ("", package); in TEST()
40 ASSERT_TRUE(ExtractResourceName("@string/foo", &package, &type, &entry)); in TEST()
41 EXPECT_EQ("", package); in TEST()
45 ASSERT_TRUE(ExtractResourceName("foo", &package, &type, &entry)); in TEST()
[all …]
DLoadedArsc_test.cpp56 const LoadedPackage* package = in TEST() local
58 ASSERT_THAT(package, NotNull()); in TEST()
59 EXPECT_THAT(package->GetPackageName(), StrEq("com.android.app")); in TEST()
60 EXPECT_THAT(package->GetPackageId(), Eq(0x7f)); in TEST()
65 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST()
82 const LoadedPackage* package = in TEST() local
84 ASSERT_THAT(package, NotNull()); in TEST()
89 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST()
165 const LoadedPackage* package = in TEST() local
167 ASSERT_THAT(package, NotNull()); in TEST()
[all …]
/frameworks/base/apct-tests/perftests/packagemanager/apps/query-all/
DAndroid.bp18 "--rename-manifest-package com.android.perftests.appenumeration0",
24 "--rename-manifest-package com.android.perftests.appenumeration1",
30 "--rename-manifest-package com.android.perftests.appenumeration2",
36 "--rename-manifest-package com.android.perftests.appenumeration3",
42 "--rename-manifest-package com.android.perftests.appenumeration4",
48 "--rename-manifest-package com.android.perftests.appenumeration5",
54 "--rename-manifest-package com.android.perftests.appenumeration6",
60 "--rename-manifest-package com.android.perftests.appenumeration7",
66 "--rename-manifest-package com.android.perftests.appenumeration8",
72 "--rename-manifest-package com.android.perftests.appenumeration9",
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlUtil.cpp31 std::string BuildPackageNamespace(const StringPiece& package, bool private_reference) { in BuildPackageNamespace() argument
33 result.append(package.data(), package.size()); in BuildPackageNamespace()
41 StringPiece package = namespace_uri; in ExtractPackageFromNamespace() local
42 package = package.substr(schema_prefix.size(), package.size() - schema_prefix.size()); in ExtractPackageFromNamespace()
43 if (package.empty()) { in ExtractPackageFromNamespace()
46 return ExtractedPackage{package.to_string(), false /* is_private */}; in ExtractPackageFromNamespace()
50 StringPiece package = namespace_uri; in ExtractPackageFromNamespace() local
51 package = package.substr(schema_prefix.size(), package.size() - schema_prefix.size()); in ExtractPackageFromNamespace()
52 if (package.empty()) { in ExtractPackageFromNamespace()
55 return ExtractedPackage{package.to_string(), true /* is_private */}; in ExtractPackageFromNamespace()
[all …]
/frameworks/base/startop/scripts/app_startup/
Drun_app_with_prefetch19 Usage: run_app_with_prefetch --package <name> [OPTIONS]...
21 -p, --package <name> package of the app to test
41 package=""
55 -p|--package)
56 package="$2"
146 [[ "$package" == "" ]] && echo "--package not specified" 1>&2 && exit 1
157 activity="$(get_activity_name "$package")"
181 remote_pkill "$package"
186 package_path="$(find_package_path "$package")"
188 echo "Failed to detect package path for '$package'" >&2
[all …]
Dparse_metrics19 Usage: launch_application package activity | parse_metrics --package <name> --timestamp <timestamp>…
32 To add package-specific metrics, add a script called 'metrics/\$full_package_name'
36 -p, --package <name> package of the app that is being used
53 package=""
64 -p|--package)
65 package="$2"
107 [[ "$package" == "" ]] && echo "--package not specified" 1>&2 && exit 64
118 activity="$(get_activity_name "$package")"
195 pattern="ActivityTaskManager: Displayed ${package}"
196 re_pattern='.*Displayed[[:blank:]]\+'"${package}"'[/][^[:blank:]]\+[[:blank:]]+\([[:digit:]]\+ms\|[…
[all …]
Dforce_compiler_filter35 -p, --package package of the app to recompile
37 valid options are listed by: adb shell cmd package, under compile -m
60 -p|--package)
61 package="$2"
85 if [[ -z "$package" ]]; then
93 activity="$(get_activity_name "$package")"
113 adb shell cmd package compile -m "$arg_compiler_filter" -f "$arg_package"
123 local output=$("$DIR"/launch_application "$package" "$activity")
135 force_package_compilation "$compiler_filter" "$package"
139 adb shell am force-stop "$package"
[all …]
Dquery_compiler_filter.py65 def remote_dumpsys_package(package: str, simulate: bool) -> str:
77 """ %(package, package, package, package)
80 'package', package],
165 def find_first_compiler_filter(dexopt_state: DexoptState, package: str, instruction_set: str) -> st…
166 lst = find_all_compiler_filters(dexopt_state, package)
181 def find_all_compiler_filters(dexopt_state: DexoptState, package: str) -> List[CompilerFilterInfo]:
184 package_tree = find_parse_subtree(dexopt_state, re.escape("[%s]" %package))
187 raise AssertionError("Could not find any package subtree for package %s" %(package))
213 package_dumpsys = remote_dumpsys_package(opts.package, opts.simulate)
219 filter = find_first_compiler_filter(dexopt_state, opts.package, opts.instruction_set)
[all …]
Dlaunch_application22 Usage: $(basename $0) <package> <activity>
25 <package> package of the app to test
34 local package="$1"
42 adb shell am start -S -W "$package"/"$activity"
/frameworks/base/startop/scripts/iorap/
Dcommon82 local package="$1"
87 echo "${IORAPD_DATA_PATH}/${package}%2F${activity}.${suffix}"
91 local package="$1"
96 local remote_path="$(_iorapd_path_to_data_file "$package" "$activity" "perfetto_trace.pb")"
107 local package="$1"
110 local remote_path="$(_iorapd_path_to_data_file "$package" "$activity" "perfetto_trace.pb")"
118 local package="$1"
122 local compiled_path="$(_iorapd_path_to_data_file "$package" "$activity" "perfetto_trace.pb")"
139 local package="$1"
144 local input_path="$(_iorapd_path_to_data_file "$package" "$activity" "perfetto_trace.pb")"
[all …]
Dcollector28 -p, --package package of the app to test
59 -p|--package)
60 package="$2"
119 adb shell cmd package compile -m "$arg_comp_filter" -f "$arg_package"
204 [[ "$package" == "" ]] && echo "--package not specified" 1>&2 && exit 1
212 activity="$(get_activity_name "$package")"
231 compilation_was="$(parse_package_compilation "$package")"
245 force_package_compilation "$comp_filter" "$package"
259 local package="$1"
264 remote_pkill "$package"
[all …]
/frameworks/base/tools/aapt2/link/
DManifestFixer_test.cpp99 package="android"> in TEST_F()
121 package="android"> in TEST_F()
143 package="android"> in TEST_F()
162 package="android"> in TEST_F()
181 package="android" />)EOF", in TEST_F()
203 package="android"> in TEST_F()
249 package="android"> in TEST_F()
264 attr = manifest_el->FindAttribute({}, "package"); in TEST_F()
309 package="android"> in TEST_F()
335 package="android"> in TEST_F()
[all …]
DPrivateAttributeMover_test.cpp41 ResourceTablePackage* package = table->FindPackage("android"); in TEST() local
42 ASSERT_NE(package, nullptr); in TEST()
44 ResourceTableType* type = package->FindType(ResourceType::kAttr); in TEST()
50 type = package->FindType(ResourceType::kAttrPrivate); in TEST()
68 ResourceTablePackage* package = table->FindPackage("android"); in TEST() local
69 ASSERT_NE(package, nullptr); in TEST()
71 ResourceTableType* type = package->FindType(ResourceType::kAttr); in TEST()
75 type = package->FindType(ResourceType::kAttrPrivate); in TEST()
87 ResourceTablePackage* package = table->FindPackage("android"); in TEST() local
88 ASSERT_NE(nullptr, package); in TEST()
[all …]
DReferenceLinker.cpp188 if (name.package.empty()) { in IsSymbolVisible()
195 return callsite.package == name.package; in IsSymbolVisible()
212 if (name.package.empty()) { in ResolveSymbol()
215 ResourceName(callsite.package, name.type, name.entry)); in ResolveSymbol()
225 if (callsite.package == context->GetCompilationPackage()) { in ResolveSymbol()
229 StringPrintf("%s.%s", callsite.package.c_str(), split_name.c_str()); in ResolveSymbol()
312 if (full_name.package.empty()) { in WriteResourceName()
313 full_name.package = callsite.package; in WriteResourceName()
333 if (!ref_name.package.empty()) { in WriteAttributeName()
334 *out_msg << ref_name.package << ":"; in WriteAttributeName()
[all …]
/frameworks/base/apct-tests/perftests/core/apps/overlay/
DAndroid.bp18 "--rename-manifest-package com.android.perftests.overlay0",
25 "--rename-manifest-package com.android.perftests.overlay1",
32 "--rename-manifest-package com.android.perftests.overlay2",
39 "--rename-manifest-package com.android.perftests.overlay3",
46 "--rename-manifest-package com.android.perftests.overlay4",
53 "--rename-manifest-package com.android.perftests.overlay5",
60 "--rename-manifest-package com.android.perftests.overlay6",
67 "--rename-manifest-package com.android.perftests.overlay7",
73 "--rename-manifest-package com.android.perftests.overlay8",
80 "--rename-manifest-package com.android.perftests.overlay9",
[all …]
/frameworks/base/core/java/android/app/admin/
DSecurityLogTags.logtags23 210016 security_password_expiration_set (package|3),(admin_user|1),(target_user|1),(timeout…
24 210017 security_password_complexity_set (package|3),(admin_user|1),(target_user|1),(length|…
25 210018 security_password_history_length_set (package|3),(admin_user|1),(target_user|1),(length|…
26 210019 security_max_screen_lock_timeout_set (package|3),(admin_user|1),(target_user|1),(timeout…
27 210020 security_max_password_attempts_set (package|3),(admin_user|1),(target_user|1),(num_fai…
28 210021 security_keyguard_disabled_features_set (package|3),(admin_user|1),(target_user|1),(feature…
29 210022 security_remote_lock (package|3),(admin_user|1),(target_user|1)
30 210023 security_wipe_failed (package|3),(admin_user|1)
34 210027 security_user_restriction_added (package|3),(admin_user|1),(restriction|3)
35 210028 security_user_restriction_removed (package|3),(admin_user|1),(restriction|3)
[all …]
/frameworks/base/media/mca/
Dstructgen.py92 def ToJNIPackage(package, jclassname): argument
93 return "%s_%s" % (package.replace(".", "_"), jclassname)
107 def __init__(self, name, structname, jclassname, package, javatype, ctype, jtype, defval): argument
111 self.package = package
143 % (self.jtype, ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0))
150 "}\n" % (self.jtype, ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0),\
156 % (ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0), self.jtype)
167 "}\n" % (ToJNIPackage(self.package, self.jclassname), ToJavaName(self.name, 0),\
171 def __init__(self, name, structname, jclassname, package): argument
172 …FieldType_BasePOD.__init__(self, name, structname, jclassname, package, "float", "float", "jfloat"…
[all …]
/frameworks/base/tools/aapt2/
DResource.h89 std::string package; member
109 android::StringPiece package; member
296 : package(p.to_string()), type(t), entry(e.to_string()) {} in ResourceName()
299 int cmp = package.compare(other.package); in compare()
308 return !package.empty() && !entry.empty(); in is_valid()
312 return std::tie(lhs.package, lhs.type, lhs.entry) <
313 std::tie(rhs.package, rhs.type, rhs.entry);
317 return std::tie(lhs.package, lhs.type, lhs.entry) ==
318 std::tie(rhs.package, rhs.type, rhs.entry);
322 return std::tie(lhs.package, lhs.type, lhs.entry) !=
[all …]
DNameMangler.h48 if (policy_.target_package_name == name.package || in MangleName()
49 policy_.packages_to_mangle.count(name.package) == 0) { in MangleName()
53 std::string mangled_entry_name = MangleEntry(name.package, name.entry); in MangleName()
58 bool ShouldMangle(const std::string& package) const { in ShouldMangle() argument
59 if (package.empty() || policy_.target_package_name == package) { in ShouldMangle()
62 return policy_.packages_to_mangle.count(package) != 0; in ShouldMangle()
72 static std::string MangleEntry(const std::string& package, const std::string& name) { in MangleEntry() argument
73 return package + "$" + name; in MangleEntry()
DResourceTable.cpp74 for (auto& package : packages) { in FindPackageById() local
75 if (package->id && package->id.value() == id) { in FindPackageById()
76 return package.get(); in FindPackageById()
84 ResourceTablePackage* package = FindOrCreatePackage(name); in CreatePackage() local
85 if (id && !package->id) { in CreatePackage()
86 package->id = id; in CreatePackage()
87 return package; in CreatePackage()
90 if (id && package->id && package->id.value() != id.value()) { in CreatePackage()
93 return package; in CreatePackage()
400 ResourceTablePackage* package = FindOrCreatePackage(name.package); in AddResourceImpl() local
[all …]
/frameworks/base/tools/aapt2/compile/
DIdAssigner.cpp58 for (auto& package : table->packages) { in Consume() local
59 CHECK(bool(package->id)) << "packages must have manually assigned IDs"; in Consume()
61 for (auto& type : package->types) { in Consume()
63 const ResourceName name(package->name, type->type, entry->name); in Consume()
72 package.get(), type.get(), entry.get()); in Consume()
79 if (package->id && type->id && entry->id) { in Consume()
81 ResourceId resource_id(package->id.value(), type->id.value(), in Consume()
120 for (auto& package : table->packages) { in Consume() local
121 CHECK(bool(package->id)) << "packages must have manually assigned IDs"; in Consume()
128 ResourceId resource_id(package->id.value(), 0, 0); in Consume()
[all …]
DIdAssigner_test.cpp127 EXPECT_EQ(make_value<uint8_t>(0x01), search_result.package->id); in TEST()
134 for (auto& package : table->packages) { in VerifyIds() local
135 if (!package->id) { in VerifyIds()
136 return ::testing::AssertionFailure() << "package " << package->name in VerifyIds()
140 if (!package_ids.insert(package->id.value()).second) { in VerifyIds()
142 << "package " << package->name << " has non-unique ID " << std::hex in VerifyIds()
143 << (int)package->id.value() << std::dec; in VerifyIds()
147 for (auto& package : table->packages) { in VerifyIds() local
149 for (auto& type : package->types) { in VerifyIds()
152 << " of package " << package->name in VerifyIds()
[all …]
/frameworks/rs/tests/lldb/tests/harness/
Dutil_bundle.py111 for app, package in self._tests_apk.items():
113 output = self._android.adb_retry('uninstall ' + package,
136 for app, package in self._tests_jni.items():
137 output = self._android.adb('uninstall ' + package)
166 def _install_apk(self, app, package): argument
180 self._android.stop_app(package)
182 self._android.adb('uninstall ' + package)
209 for app, package in self._tests_apk.items():
210 self._install_apk(app, package)
257 for app, package in self._tests_jni.items():
[all …]
/frameworks/base/startop/scripts/iorap/lib/
Diorapd_utils.py31 def _iorapd_path_to_data_file(package: str, activity: str, suffix: str) -> str:
39 return '{}/{}%2F{}.{}'.format(IORAPD_DATA_PATH, package, activity, suffix)
41 def compile_perfetto_trace_on_device(package: str, activity: str,
46 [package, activity, inodes])
49 def get_iorapd_compiler_trace(package: str, activity: str, dest: str) -> str:
51 src = _iorapd_path_to_data_file(package, activity, 'compiled_trace.pb')
57 def iorapd_compiler_install_trace_file(package: str, activity: str,
65 compiled_path = _iorapd_path_to_data_file(package, activity,
82 def wait_for_iorapd_finish(package: str,
101 [package, activity, logcat_timestamp,
/frameworks/base/startop/scripts/app_startup/lib/
Dapp_runner.py68 package: str,
73 self.package = package
81 self.activity = AppRunner.get_activity(self.package)
95 def get_activity(package: str) -> str:
100 [package])
123 self.package))
146 self.package,
198 package=self.package,

12345678910>>...26