/frameworks/base/libs/androidfw/tests/ |
D | ResourceUtils_test.cpp | 24 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 …]
|
D | LoadedArsc_test.cpp | 53 const LoadedPackage* package = in TEST() local 55 ASSERT_THAT(package, NotNull()); in TEST() 56 EXPECT_THAT(package->GetPackageName(), StrEq("com.android.app")); in TEST() 57 EXPECT_THAT(package->GetPackageId(), Eq(0x7f)); in TEST() 62 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() 79 const LoadedPackage* package = in TEST() local 81 ASSERT_THAT(package, NotNull()); in TEST() 86 const TypeSpec* type_spec = package->GetTypeSpecByTypeIndex(type_index); in TEST() 163 const LoadedPackage* package = in TEST() local 165 ASSERT_THAT(package, NotNull()); in TEST() [all …]
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlUtil.cpp | 31 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 …]
|
D | XmlUtil.h | 39 std::string package; member 46 return a.package == b.package && a.private_namespace == b.private_namespace; 63 std::string BuildPackageNamespace(const android::StringPiece& package,
|
/frameworks/base/tools/aapt2/link/ |
D | ManifestFixer_test.cpp | 99 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 …]
|
D | PrivateAttributeMover_test.cpp | 41 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 …]
|
D | ReferenceLinker.cpp | 186 if (name.package.empty()) { in IsSymbolVisible() 193 return callsite.package == name.package; in IsSymbolVisible() 209 if (name.package.empty()) { in ResolveSymbol() 211 return symbols->FindByName(ResourceName(callsite.package, name.type, name.entry)); in ResolveSymbol() 285 if (full_name.package.empty()) { in WriteResourceName() 286 full_name.package = callsite.package; in WriteResourceName() 306 if (!ref_name.package.empty()) { in WriteAttributeName() 307 *out_msg << ref_name.package << ":"; in WriteAttributeName() 315 if (full_name.package.empty()) { in WriteAttributeName() 316 full_name.package = callsite.package; in WriteAttributeName() [all …]
|
/frameworks/base/startop/scripts/app_startup/ |
D | force_compiler_filter | 35 -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 …]
|
D | run_app_with_prefetch | 19 Usage: run_app_with_prefetch --package <name> [OPTIONS]... 21 -p, --package <name> package of the app to test 40 package="" 54 -p|--package) 55 package="$2" 132 [[ "$package" == "" ]] && echo "--package not specified" 1>&2 && exit 1 143 activity="$(get_activity_name "$package")" 167 remote_pkill "$package" 172 package_path="$(find_package_path "$package")" 174 echo "Failed to detect package path for '$package'" >&2 [all …]
|
D | query_compiler_filter.py | 63 def remote_dumpsys_package(package: str, simulate: bool) -> str: 75 """ %(package, package, package, package) 77 …code, res = execute_arbitrary_command(['adb', 'shell', 'dumpsys', 'package', package], simulate=Fa… 159 def find_first_compiler_filter(dexopt_state: DexoptState, package: str, instruction_set: str) -> st… 160 lst = find_all_compiler_filters(dexopt_state, package) 175 def find_all_compiler_filters(dexopt_state: DexoptState, package: str) -> List[CompilerFilterInfo]: 178 package_tree = find_parse_subtree(dexopt_state, re.escape("[%s]" %package)) 181 raise AssertionError("Could not find any package subtree for package %s" %(package)) 207 package_dumpsys = remote_dumpsys_package(opts.package, opts.simulate) 213 filter = find_first_compiler_filter(dexopt_state, opts.package, opts.instruction_set) [all …]
|
/frameworks/base/media/mca/ |
D | structgen.py | 92 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/ |
D | Resource.h | 89 std::string package; member 109 android::StringPiece package; member 295 : package(p.to_string()), type(t), entry(e.to_string()) {} in ResourceName() 298 int cmp = package.compare(other.package); in compare() 307 return !package.empty() && !entry.empty(); in is_valid() 311 return std::tie(lhs.package, lhs.type, lhs.entry) < 312 std::tie(rhs.package, rhs.type, rhs.entry); 316 return std::tie(lhs.package, lhs.type, lhs.entry) == 317 std::tie(rhs.package, rhs.type, rhs.entry); 321 return std::tie(lhs.package, lhs.type, lhs.entry) != [all …]
|
D | NameMangler.h | 48 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()
|
D | ResourceTable.cpp | 74 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() 402 ResourceTablePackage* package = FindOrCreatePackage(name.package); in AddResourceImpl() local [all …]
|
D | Debug.cpp | 47 explicit ValueHeadlinePrinter(const std::string& package, Printer* printer) in ValueHeadlinePrinter() argument 48 : package_(package), printer_(printer) { in ValueHeadlinePrinter() 71 if (package_ != parent_name.package) { in Visit() 72 printer_->Print(parent_name.package); in Visit() 124 explicit ValueBodyPrinter(const std::string& package, Printer* printer) in ValueBodyPrinter() argument 125 : package_(package), printer_(printer) { in ValueBodyPrinter() 155 if (!name.package.empty() && name.package != package_) { in Visit() 156 printer_->Print(name.package); in Visit() 213 if (!name.package.empty() && name.package != package_) { in Visit() 214 printer_->Print(name.package); in Visit() [all …]
|
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()
|
/frameworks/base/core/java/android/app/admin/ |
D | SecurityLogTags.logtags | 23 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)
|
/frameworks/base/tools/aapt2/compile/ |
D | IdAssigner.cpp | 58 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 …]
|
D | IdAssigner_test.cpp | 127 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/ |
D | util_bundle.py | 111 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/libs/androidfw/ |
D | AssetManager2.cpp | 98 for (const std::unique_ptr<const LoadedPackage>& package : loaded_arsc->GetPackages()) { in BuildDynamicRefTable() local 101 if (package->IsDynamic()) { in BuildDynamicRefTable() 104 package_id = package->GetPackageId(); in BuildDynamicRefTable() 114 ref_table.mAppAsLib = package->IsDynamic() && package->GetPackageId() == 0x7f; in BuildDynamicRefTable() 119 package_group->packages_.push_back(ConfiguredPackage{package.get(), {}}); in BuildDynamicRefTable() 123 for (const DynamicPackageEntry& entry : package->GetDynamicPackageMap()) { in BuildDynamicRefTable() 163 for (const auto& package : package_group.packages_) { in DumpToLog() local 164 const LoadedPackage* loaded_package = package.loaded_package_; in DumpToLog() 249 for (const ConfiguredPackage& package : package_group.packages_) { in GetResourceConfigurations() local 250 if (exclude_system && package.loaded_package_->IsSystem()) { in GetResourceConfigurations() [all …]
|
/frameworks/ml/nn/runtime/test/ |
D | TestExtensions.cpp | 196 std::string package = "com.foo"; in TEST_F() local 204 .appPackageName = package, in TEST_F() 213 .appPackageName = package, in TEST_F() 222 .appPackageName = package, in TEST_F() 231 .appPackageName = package, in TEST_F() 240 .appPackageName = package, in TEST_F() 279 .appPackageName = package, in TEST_F() 286 .appPackageName = package, in TEST_F() 294 .appPackageName = package, in TEST_F()
|
/frameworks/base/tools/aapt/ |
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()
|
/frameworks/base/non-updatable-api/ |
D | system-removed.txt | 2 package android { 10 package android.app { 26 package android.app.admin { 35 package android.app.backup { 44 package android.app.prediction { 54 package android.content { 86 package android.content.pm { 96 package android.hardware.hdmi { 108 package android.location { 121 package android.media.tv { [all …]
|
/frameworks/base/api/ |
D | system-removed.txt | 2 package android { 10 package android.app { 26 package android.app.admin { 35 package android.app.backup { 44 package android.app.prediction { 54 package android.content { 86 package android.content.pm { 96 package android.hardware.hdmi { 108 package android.location { 121 package android.media.tv { [all …]
|