Home
last modified time | relevance | path

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

12345678910>>...109

/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.cpp57 const LoadedPackage* package = in TEST() local
59 ASSERT_THAT(package, NotNull()); in TEST()
60 EXPECT_THAT(package->GetPackageName(), StrEq("com.android.app")); in TEST()
61 EXPECT_THAT(package->GetPackageId(), Eq(0x7f)); in TEST()
66 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST()
146 const LoadedPackage* package = in TEST() local
148 ASSERT_THAT(package, NotNull()); in TEST()
153 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST()
157 auto type_name16 = package->GetTypeStringPool()->stringAt(type_spec->type_spec->id - 1); in TEST()
191 const auto& package = loaded_arsc->GetPackages()[0]; in TEST() local
[all …]
/frameworks/base/apct-tests/perftests/packagemanager/apps/query-all/
DAndroid.bp15 package {
28 "--rename-manifest-package com.android.perftests.appenumeration0",
35 "--rename-manifest-package com.android.perftests.appenumeration1",
42 "--rename-manifest-package com.android.perftests.appenumeration2",
49 "--rename-manifest-package com.android.perftests.appenumeration3",
56 "--rename-manifest-package com.android.perftests.appenumeration4",
63 "--rename-manifest-package com.android.perftests.appenumeration5",
70 "--rename-manifest-package com.android.perftests.appenumeration6",
77 "--rename-manifest-package com.android.perftests.appenumeration7",
84 "--rename-manifest-package com.android.perftests.appenumeration8",
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlUtil.cpp30 std::string BuildPackageNamespace(StringPiece package, bool private_reference) { in BuildPackageNamespace() argument
32 result.append(package.data(), package.size()); in BuildPackageNamespace()
39 StringPiece package = namespace_uri; in ExtractPackageFromNamespace() local
40 package = package.substr(schema_prefix.size(), package.size() - schema_prefix.size()); in ExtractPackageFromNamespace()
41 if (package.empty()) { in ExtractPackageFromNamespace()
44 return ExtractedPackage{std::string(package), false /* is_private */}; in ExtractPackageFromNamespace()
48 StringPiece package = namespace_uri; in ExtractPackageFromNamespace() local
49 package = package.substr(schema_prefix.size(), package.size() - schema_prefix.size()); in ExtractPackageFromNamespace()
50 if (package.empty()) { in ExtractPackageFromNamespace()
53 return ExtractedPackage{std::string(package), true /* is_private */}; in ExtractPackageFromNamespace()
[all …]
DXmlUtil.h38 std::string package; member
45 return a.package == b.package && a.private_namespace == b.private_namespace;
62 std::string BuildPackageNamespace(android::StringPiece package, bool private_reference = false);
DXmlUtil_test.cpp33 EXPECT_EQ(std::string("a"), p.value().package); in TEST()
38 EXPECT_EQ(std::string("android"), p.value().package); in TEST()
43 EXPECT_EQ(std::string("com.test"), p.value().package); in TEST()
48 EXPECT_EQ(std::string(), p.value().package); in TEST()
/frameworks/base/apct-tests/perftests/permission/apps/usepermissionapp/
DAndroid.bp15 package {
28 "--rename-manifest-package android.perftests.appenumeration0",
35 "--rename-manifest-package android.perftests.appenumeration1",
42 "--rename-manifest-package android.perftests.appenumeration2",
49 "--rename-manifest-package android.perftests.appenumeration3",
56 "--rename-manifest-package android.perftests.appenumeration4",
63 "--rename-manifest-package android.perftests.appenumeration5",
70 "--rename-manifest-package android.perftests.appenumeration6",
77 "--rename-manifest-package android.perftests.appenumeration7",
84 "--rename-manifest-package android.perftests.appenumeration8",
[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->FindTypeWithDefaultName(ResourceType::kAttr); in TEST()
50 type = package->FindTypeWithDefaultName(ResourceType::kAttrPrivate); in TEST()
68 ResourceTablePackage* package = table->FindPackage("android"); in TEST() local
69 ASSERT_NE(package, nullptr); in TEST()
71 ResourceTableType* type = package->FindTypeWithDefaultName(ResourceType::kAttr); in TEST()
75 type = package->FindTypeWithDefaultName(ResourceType::kAttrPrivate); in TEST()
87 ResourceTablePackage* package = table->FindPackage("android"); in TEST() local
88 ASSERT_NE(nullptr, package); in TEST()
[all …]
DFeatureFlagsFilter_test.cpp60 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android">
73 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android">
86 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android">
99 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android">
118 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android">
140 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android">
162 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android">
171 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android">
180 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android">
189 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android">
[all …]
DReferenceLinker.cpp64 if (full_name.package.empty()) { in operator <<()
65 full_name.package = name.callsite_.package; in operator <<()
234 if (name.package.empty()) { in IsSymbolVisible()
241 return callsite.package == name.package; in IsSymbolVisible()
258 if (name.package.empty()) { in ResolveSymbol()
261 ResourceName(callsite.package, name.type, name.entry)); in ResolveSymbol()
269 if (callsite.package == context->GetCompilationPackage()) { in ResolveSymbol()
273 StringPrintf("%s.%s", callsite.package.c_str(), split_name.c_str()); in ResolveSymbol()
354 if (!ref_name.package.empty()) { in WriteAttributeName()
355 *out_msg << ref_name.package << ":"; in WriteAttributeName()
[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/apct-tests/perftests/core/apps/overlay/
DAndroid.bp15 package {
28 "--rename-manifest-package com.android.perftests.overlay0",
35 "--rename-manifest-package com.android.perftests.overlay1",
42 "--rename-manifest-package com.android.perftests.overlay2",
49 "--rename-manifest-package com.android.perftests.overlay3",
56 "--rename-manifest-package com.android.perftests.overlay4",
63 "--rename-manifest-package com.android.perftests.overlay5",
70 "--rename-manifest-package com.android.perftests.overlay6",
77 "--rename-manifest-package com.android.perftests.overlay7",
84 "--rename-manifest-package com.android.perftests.overlay8",
[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/
DNameMangler.h47 if (policy_.target_package_name == name.package || in MangleName()
48 policy_.packages_to_mangle.count(name.package) == 0) { in MangleName()
52 std::string mangled_entry_name = MangleEntry(name.package, name.entry); in MangleName()
57 bool ShouldMangle(std::string_view package) const { in ShouldMangle() argument
58 if (package.empty() || policy_.target_package_name == package) { in ShouldMangle()
61 return policy_.packages_to_mangle.count(package) != 0; in ShouldMangle()
71 static std::string MangleEntry(std::string_view package, std::string_view name) { in MangleEntry() argument
72 return (std::string(package) += '$') += name; in MangleEntry()
DResource.h130 std::string package; member
151 android::StringPiece package; member
425 : package(p), type(t.ToResourceNamedType()), entry(e) { in ResourceName()
433 int cmp = package.compare(other.package); in compare()
442 return !package.empty() && !entry.empty(); in is_valid()
446 return std::tie(lhs.package, lhs.type, lhs.entry) <
447 std::tie(rhs.package, rhs.type, rhs.entry);
451 return std::tie(lhs.package, lhs.type, lhs.entry) ==
452 std::tie(rhs.package, rhs.type, rhs.entry);
456 return std::tie(lhs.package, lhs.type, lhs.entry) !=
[all …]
DNameMangler_test.cpp26 std::string package = "android.appcompat"; in TEST() local
29 std::string mangled_name = NameMangler::MangleEntry(package, name); in TEST()
40 std::string package; in TEST() local
43 EXPECT_FALSE(NameMangler::Unmangle(&name, &package)); in TEST()
DResourceTable.cpp350 void InsertEntryIntoTableView(ResourceTableView& table, const ResourceTablePackage* package, in InsertEntryIntoTableView() argument
361 ResourceTablePackageView new_package{package->name, in InsertEntryIntoTableView()
403 for (const auto& package : packages) { in GetPartitionedView() local
404 for (const auto& type : package->types) { in GetPartitionedView()
406 InsertEntryIntoTableView(view, package.get(), type.get(), entry->name, entry->id, in GetPartitionedView()
412 InsertEntryIntoTableView(view, package.get(), type.get(), entry->name, alias_id, in GetPartitionedView()
426 for (auto& package : view.packages) { in GetPartitionedView() local
432 for (auto type_it = package.types.begin(); type_it != package.types.end();) { in GetPartitionedView()
447 new_packages.emplace_back(ResourceTablePackageView{package.name, package.id}); in GetPartitionedView()
454 type_it = package.types.erase(type_it); in GetPartitionedView()
[all …]
/frameworks/base/tools/aapt/
DResourceIdCache.cpp47 static inline String16 makeHashableName(const android::String16& package, in makeHashableName() argument
53 hashable += package; in makeHashableName()
58 uint32_t ResourceIdCache::lookup(const android::String16& package, in lookup() argument
62 const String16 hashedName = makeHashableName(package, type, name, onlyPublic); in lookup()
84 uint32_t ResourceIdCache::store(const android::String16& package, in store() argument
90 const String16 hashedName = makeHashableName(package, type, name, onlyPublic); in store()
DSymbol.h35 android::String16 package; member
63 : package(p) in Symbol()
71 android::String8(package).c_str(), in toString()
78 return (package < rhs.package) || (type < rhs.type) || (name < rhs.name) || (id < rhs.id);
/frameworks/base/core/proto/android/service/
Dpackage.proto18 package android.service.pm;
32 // Name of package. e.g. "com.android.providers.telephony".
34 // UID for this package as assigned by Android OS.
73 // The split name of package, e.g. base
151 // The package that requested the installation of this one.
154 // The package on behalf of which the initiiating package requested the install.
157 // The package that is the update owner.
176 // Name of package. e.g. "com.android.providers.telephony".
178 // UID for this package as assigned by Android OS.
187 // From "dumpsys package" - name of package which installed this one.
[all …]
/frameworks/base/
DAconfigFlags.bp165 package: "com.android.window.flags",
185 package: "android.hardware.devicestate.feature.flags",
200 package: "com.android.hardware.input",
220 package: "com.android.text.flags",
239 package: "android.location.flags",
261 package: "android.nfc",
292 package: "android.security",
318 package: "android.app.usage",
339 package: "android.os",
391 package: "com.android.internal.os",
[all …]
/frameworks/base/services/core/java/com/android/server/rollback/
DREADME.md26 * A backup copy of the userdata for the package com.example.foo is made and
61 There is a package watchdog service running on device that will trigger rollback
63 a package in the update.
105 Rollback can be enabled for multi-package installs. This requires that all
108 multi-package install session, then rollback of any single package in the
109 multi-package install session will cause all packages in the multi-package
111 multi-package downgrade install to preserve atomicity.
114 multi-package install session. If a problem with one of the included packages is
115 identified, rollback can be requested for that package, causing all packages in
118 If there is a problem enabling rollback for any package in the multi-package
[all …]
/frameworks/base/services/incremental/
DIncrementalServiceValidation.cpp46 const char* package) { in CheckPermissionForDataDelivery() argument
57 String16 packageName{package}; in CheckPermissionForDataDelivery()
63 package)); in CheckPermissionForDataDelivery()
78 uid, pid, package, operation, result)); in CheckPermissionForDataDelivery()
/frameworks/base/apex/jobscheduler/service/aconfig/
DAndroid.bp4 package: "com.android.server.deviceidle",
20 package: "com.android.server.job",
36 package: "com.android.server.alarm",
49 package: "com.android.server.usage",

12345678910>>...109