/aosp14/frameworks/base/libs/androidfw/tests/ |
H A D | ResourceUtils_test.cpp | 24 StringPiece package, type, entry; in TEST() local 26 EXPECT_EQ("android", package); in TEST() 31 EXPECT_EQ("android", package); in TEST() 36 EXPECT_EQ("", package); in TEST() 41 EXPECT_EQ("", package); in TEST() 45 ASSERT_TRUE(ExtractResourceName("foo", &package, &type, &entry)); in TEST() 46 EXPECT_EQ("", package); in TEST() 50 ASSERT_TRUE(ExtractResourceName("@foo", &package, &type, &entry)); in TEST() 51 EXPECT_EQ("", package); in TEST() 56 EXPECT_EQ("android", package); in TEST() [all …]
|
H A D | LoadedArsc_test.cpp | 57 const LoadedPackage* package = in TEST() local 59 ASSERT_THAT(package, NotNull()); in TEST() 146 const LoadedPackage* package = in TEST() local 148 ASSERT_THAT(package, NotNull()); in TEST() 192 ASSERT_THAT(package, NotNull()); in TEST() 329 const LoadedPackage* package = in TEST() local 331 ASSERT_THAT(package, NotNull()); in TEST() 363 const LoadedPackage* package = in TEST_P() local 365 ASSERT_THAT(package, NotNull()); in TEST_P() 386 const LoadedPackage* package = in TEST_P() local [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/packagemanager/apps/query-all/ |
H A D | Android.bp | 15 package { 27 "--rename-manifest-package com.android.perftests.appenumeration0", 33 "--rename-manifest-package com.android.perftests.appenumeration1", 39 "--rename-manifest-package com.android.perftests.appenumeration2", 45 "--rename-manifest-package com.android.perftests.appenumeration3", 51 "--rename-manifest-package com.android.perftests.appenumeration4", 57 "--rename-manifest-package com.android.perftests.appenumeration5", 63 "--rename-manifest-package com.android.perftests.appenumeration6", 69 "--rename-manifest-package com.android.perftests.appenumeration7", 75 "--rename-manifest-package com.android.perftests.appenumeration8", [all …]
|
/aosp14/frameworks/base/tools/aapt2/xml/ |
H A D | XmlUtil.cpp | 30 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 …]
|
H A D | XmlUtil.h | 38 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);
|
H A D | XmlUtil_test.cpp | 33 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()
|
/aosp14/frameworks/base/tools/aapt2/link/ |
H A D | ManifestFixer_test.cpp | 1161 package="android"> 1187 package="android"> 1202 package="android"> 1228 package="android"> 1258 package="android"> 1276 package="android"> 1294 package="android"> 1312 package="android"> 1330 package="android"> 1349 package="android"> [all …]
|
H A D | PrivateAttributeMover_test.cpp | 41 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 …]
|
H A D | ReferenceLinker.cpp | 64 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() 354 if (!ref_name.package.empty()) { in WriteAttributeName() 355 *out_msg << ref_name.package << ":"; in WriteAttributeName() 363 if (full_name.package.empty()) { in WriteAttributeName() 364 full_name.package = callsite.package; in WriteAttributeName() 387 transformed_reference.name.value().package = callsite.package; in LinkReference() [all …]
|
H A D | TableMerger.cpp | 51 for (auto& package : table->packages) { in MergeImpl() local 56 if (package->name.empty() || context_->GetCompilationPackage() == package->name) { in MergeImpl() 61 error |= !DoMerge(src, package.get(), false /*mangle*/, overlay, allow_new); in MergeImpl() 72 for (auto& package : table->packages) { in MergeAndMangle() local 74 if (package_name != package->name) { in MergeAndMangle() 76 << "ignoring package " << package->name); in MergeAndMangle() 81 merged_packages_.insert(package->name); in MergeAndMangle() 82 error |= !DoMerge(src, package.get(), mangle, false /*overlay*/, true /*allow_new*/); in MergeAndMangle() 326 const std::string& package, const FileReference& file_ref) { in CloneAndMangleFile() argument 329 std::string mangled_entry = NameMangler::MangleEntry(package, entry); in CloneAndMangleFile() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/apps/overlay/ |
H A D | Android.bp | 15 package { 27 "--rename-manifest-package com.android.perftests.overlay0", 34 "--rename-manifest-package com.android.perftests.overlay1", 41 "--rename-manifest-package com.android.perftests.overlay2", 48 "--rename-manifest-package com.android.perftests.overlay3", 55 "--rename-manifest-package com.android.perftests.overlay4", 62 "--rename-manifest-package com.android.perftests.overlay5", 69 "--rename-manifest-package com.android.perftests.overlay6", 76 "--rename-manifest-package com.android.perftests.overlay7", 82 "--rename-manifest-package com.android.perftests.overlay8", [all …]
|
/aosp14/frameworks/base/core/java/android/app/admin/ |
H A D | SecurityLogTags.logtags | 23 210016 security_password_expiration_set (package|3),(admin_user|1),(target_user|1),(timeout… 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) 41 210034 security_camera_policy_set (package|3),(admin_user|1),(target_user|1),(disable… [all …]
|
/aosp14/frameworks/base/media/mca/ |
H A D | structgen.py | 92 def ToJNIPackage(package, jclassname): argument 93 return "%s_%s" % (package.replace(".", "_"), jclassname) 111 self.package = package 171 def __init__(self, name, structname, jclassname, package): argument 175 def __init__(self, name, structname, jclassname, package): argument 179 def __init__(self, name, structname, jclassname, package): argument 187 self.package = None 215 self.package = linecomps[1] 245 elif not self.package: 314 defname = ToMacroDefName(self.structname, self.package) [all …]
|
/aosp14/frameworks/base/tools/aapt2/ |
H A D | NameMangler.h | 47 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()
|
H A D | Resource.h | 130 std::string package; member 151 android::StringPiece package; member 433 int cmp = package.compare(other.package); in compare() 442 return !package.empty() && !entry.empty(); in is_valid() 447 std::tie(rhs.package, rhs.type, rhs.entry); 452 std::tie(rhs.package, rhs.type, rhs.entry); 469 : package(rhs.package), type(rhs.type), entry(rhs.entry) {} in ResourceNameRef() 473 : package(p), type(t), entry(e) { in ResourceNameRef() 482 package = rhs.package; 489 return ResourceName(package, type, entry); in ToResourceName() [all …]
|
H A D | NameMangler_test.cpp | 26 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()
|
H A D | ResourceTable.cpp | 403 for (const auto& package : packages) { in GetPartitionedView() local 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() 485 auto package = FindOrCreatePackage(res.name.package); in AddResource() local 602 ResourceTablePackage* package = FindPackage(name.package); in FindResource() local 603 if (package == nullptr) { in FindResource() 621 ResourceTablePackage* package = FindPackage(name.package); in FindResource() local 622 if (package == nullptr) { in FindResource() 642 ResourceTablePackage* package = FindPackage(name.package); in RemoveResource() local [all …]
|
/aosp14/frameworks/base/core/proto/android/service/ |
H A D | package.proto | 18 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 125 // The package on behalf of which the initiiating package requested the install. 128 // The package that is the update owner. 149 // UID for this package as assigned by Android OS. 158 // From "dumpsys package" - name of package which installed this one. 163 // Per-user package info. 165 // Where the request to install this package came from, [all …]
|
/aosp14/frameworks/base/tools/aapt/ |
H A D | ResourceIdCache.cpp | 47 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()
|
H A D | Symbol.h | 35 android::String16 package; member 63 : package(p) in Symbol() 71 android::String8(package).string(), in toString() 78 return (package < rhs.package) || (type < rhs.type) || (name < rhs.name) || (id < rhs.id);
|
H A D | ResourceTable.h | 136 const String16& package, 142 const String16& package, 153 const String16& package, 163 const String16& package, 175 bool hasBagOrEntry(const String16& package, 179 bool hasBagOrEntry(const String16& package, 188 bool appendComment(const String16& package, 235 uint32_t getResId(const String16& package, 586 bool makeAttribute(const String16& package, 597 sp<Type> getType(const String16& package, [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/rollback/ |
H A D | README.md | 26 * A backup copy of the userdata for the package com.example.foo is made and 63 a package in the update. 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. 118 If there is a problem enabling rollback for any package in the multi-package 119 install session, rollback will not be enabled for any package in the 120 multi-package install session. 127 package was updated, then no reboot is required when the package is rolled back. 147 package, including: [all …]
|
/aosp14/frameworks/base/tests/ActivityManagerPerfTests/ |
H A D | README.txt | 4 * These are only for tests that don't require a target package to test against 24 * Target package which contains the Services, BroadcastReceivers, etc. to test against 25 * Sends the time it measures back to the test package 35 * Add any components you will test against in the target package under 42 package 43 * The target package can report the time it measures through an ITimeReceiverCallback passed 45 (or however a Binder needs to be passed to the target package) 50 * If the target package should be running before your test logic starts, add startTargetPackage();
|
/aosp14/frameworks/base/tools/aapt2/java/ |
H A D | JavaClassGenerator.cpp | 92 if (!attr_name.package.empty() && in TransformNestedAttr() 93 package_name_to_generate != attr_name.package) { in TransformNestedAttr() 94 output += "_" + JavaClassGenerator::TransformToFieldName(attr_name.package); in TransformNestedAttr() 229 const std::string_view package_name = name.package.empty() ? fallback_package_name : name.package; in GetRFieldReference() 265 if (attr.name.value().package.empty()) { in ProcessStyleable() 325 << (!attr_name.package.empty() ? attr_name.package in ProcessStyleable() 408 StringPiece package_name = attr_name.package; in ProcessStyleable() 531 const ResourceTablePackage& package, in ProcessType() argument 538 UnmangleResource(package.name, package_name_to_generate, *entry); in ProcessType() 617 for (const auto& package : table_->packages) { in Generate() local [all …]
|
/aosp14/frameworks/base/services/incremental/ |
H A D | IncrementalServiceValidation.cpp | 46 const char* package) { in CheckPermissionForDataDelivery() argument 57 String16 packageName{package}; in CheckPermissionForDataDelivery() 63 package)); in CheckPermissionForDataDelivery() 78 uid, pid, package, operation, result)); in CheckPermissionForDataDelivery()
|