Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/tools/aapt2/xml/
DXmlUtil.cpp29 std::string BuildPackageNamespace(const StringPiece& package, 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(), in ExtractPackageFromNamespace()
43 package.size() - schema_prefix.size()); in ExtractPackageFromNamespace()
44 if (package.empty()) { in ExtractPackageFromNamespace()
47 return ExtractedPackage{package.to_string(), false /* is_private */}; in ExtractPackageFromNamespace()
51 StringPiece package = namespace_uri; in ExtractPackageFromNamespace() local
52 package = package.substr(schema_prefix.size(), in ExtractPackageFromNamespace()
53 package.size() - schema_prefix.size()); in ExtractPackageFromNamespace()
[all …]
DXmlUtil_test.cpp37 EXPECT_EQ(std::string("a"), p.value().package); in TEST()
43 EXPECT_EQ(std::string("android"), p.value().package); in TEST()
49 EXPECT_EQ(std::string("com.test"), p.value().package); in TEST()
55 EXPECT_EQ(std::string(), p.value().package); in TEST()
/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("string/foo", &package, &type, &entry)); in TEST()
31 EXPECT_EQ("", package); in TEST()
35 ASSERT_TRUE(ExtractResourceName("foo", &package, &type, &entry)); in TEST()
36 EXPECT_EQ("", package); in TEST()
40 ASSERT_TRUE(ExtractResourceName("android:foo", &package, &type, &entry)); in TEST()
41 EXPECT_EQ("android", package); in TEST()
45 EXPECT_FALSE(ExtractResourceName(":string/foo", &package, &type, &entry)); in TEST()
[all …]
/frameworks/base/tools/aapt2/
DResource.h84 std::string package; member
104 android::StringPiece package; member
277 : package(p.to_string()), type(t), entry(e.to_string()) {} in ResourceName()
280 int cmp = package.compare(other.package); in compare()
289 return !package.empty() && !entry.empty(); in is_valid()
293 return std::tie(lhs.package, lhs.type, lhs.entry) <
294 std::tie(rhs.package, rhs.type, rhs.entry);
298 return std::tie(lhs.package, lhs.type, lhs.entry) ==
299 std::tie(rhs.package, rhs.type, rhs.entry);
303 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, in MangleEntry() argument
74 return package + "$" + name; in MangleEntry()
DResourceTable.cpp55 for (auto& package : packages) { in FindPackageById() local
56 if (package->id && package->id.value() == id) { in FindPackageById()
57 return package.get(); in FindPackageById()
64 ResourceTablePackage* package = FindOrCreatePackage(name); in CreatePackage() local
65 if (id && !package->id) { in CreatePackage()
66 package->id = id; in CreatePackage()
67 return package; in CreatePackage()
70 if (id && package->id && package->id.value() != id.value()) { in CreatePackage()
73 return package; in CreatePackage()
382 ResourceTablePackage* package = FindOrCreatePackage(name.package); in AddResourceImpl() local
[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()
DDebug.cpp77 if (!name.package.empty()) { in Visit()
78 std::cout << name.package << ":"; in Visit()
101 if (!name.package.empty()) { in Visit()
102 std::cout << name.package << ":"; in Visit()
120 for (auto& package : table->packages) { in PrintTable() local
121 std::cout << "Package name=" << package->name; in PrintTable()
122 if (package->id) { in PrintTable()
123 std::cout << " id=" << std::hex << (int)package->id.value() << std::dec; in PrintTable()
127 for (const auto& type : package->types) { in PrintTable()
151 ResourceId id(package->id ? package->id.value() : uint8_t(0), in PrintTable()
[all …]
DResourceUtils.cpp39 if (!name_in.package) { in ToResourceName()
43 name_out.package = in ToResourceName()
44 util::Utf16ToUtf8(StringPiece16(name_in.package, name_in.packageLen)); in ToResourceName()
86 StringPiece package; in ParseResourceName() local
89 if (!android::ExtractResourceName(str.substr(offset, str.size() - offset), &package, &type, in ParseResourceName()
104 out_ref->package = package; in ParseResourceName()
173 StringPiece package; in ParseAttributeReference() local
176 if (!android::ExtractResourceName(trimmed_str.substr(1, trimmed_str.size() - 1), &package, in ParseAttributeReference()
190 out_ref->package = package; in ParseAttributeReference()
237 android::ExtractResourceName(name, &ref.package, &type_str, &ref.entry); in ParseStyleParentReference()
[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/link/
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 …]
DManifestFixer_test.cpp95 package="android"> in TEST_F()
115 package="android"> in TEST_F()
137 package="android"> in TEST_F()
156 package="android"> in TEST_F()
175 package="android" />)EOF", in TEST_F()
195 package="android"> in TEST_F()
241 package="android"> in TEST_F()
255 attr = manifestEl->FindAttribute({}, "package"); in TEST_F()
293 package="android"> in TEST_F()
319 package="android" />)EOF", in TEST_F()
[all …]
DTableMerger.cpp57 for (auto& package : table->packages) { in MergeImpl() local
62 if (package->name.empty() || context_->GetCompilationPackage() == package->name) { in MergeImpl()
86 error |= !DoMerge(src, table, package.get(), false /* mangle */, overlay, in MergeImpl()
101 for (auto& package : table->packages) { in MergeAndMangle() local
103 if (package_name != package->name) { in MergeAndMangle()
105 << package->name); in MergeAndMangle()
110 merged_packages_.insert(package->name); in MergeAndMangle()
127 error |= !DoMerge(src, table, package.get(), mangle, false /* overlay */, in MergeAndMangle()
336 const std::string& package, const FileReference& file_ref) { in CloneAndMangleFile() argument
339 std::string mangled_entry = NameMangler::MangleEntry(package, entry.to_string()); in CloneAndMangleFile()
[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)
208 for app, package in self._tests_apk.items():
209 self._install_apk(app, package)
256 for app, package in self._tests_jni.items():
[all …]
/frameworks/base/libs/androidfw/
DAssetManager2.cpp59 for (const std::unique_ptr<const LoadedPackage>& package : in BuildDynamicRefTable() local
63 if (package->IsDynamic()) { in BuildDynamicRefTable()
66 package_id = package->GetPackageId(); in BuildDynamicRefTable()
79 package_group->packages_.push_back(package.get()); in BuildDynamicRefTable()
83 for (const DynamicPackageEntry& entry : package->GetDynamicPackageMap()) { in BuildDynamicRefTable()
115 for (const auto& package : package_group.packages_) { in DumpToLog() local
116 …base::StringAppendF(&list, "%s(%02x), ", package->GetPackageName().c_str(), package->GetPackageId(… in DumpToLog()
166 for (const LoadedPackage* package : package_group.packages_) { in GetResourceConfigurations() local
167 if (exclude_system && package->IsSystem()) { in GetResourceConfigurations()
170 package->CollectConfigurations(exclude_mipmap, &configurations); in GetResourceConfigurations()
[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).string(), in toString()
78 return (package < rhs.package) || (type < rhs.type) || (name < rhs.name) || (id < rhs.id);
DResourceTable.h136 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,
194 bool appendTypeComment(const String16& package,
200 const String16& package, const String16& type, const String16& name);
235 uint32_t getResId(const String16& package,
[all …]
/frameworks/base/core/proto/android/service/
Dpackage.proto19 package android.service.pm;
26 // Name of package. e.g. "com.android.providers.telephony".
28 // UID for this package as assigned by Android OS.
101 // Name of package. e.g. "com.android.providers.telephony".
103 // UID for this package as assigned by Android OS.
113 // From "dumpsys package" - name of package which installed this one.
118 // Per-user package info.
/frameworks/compile/mclinker/include/mcld/Config/
DConfig.h.in77 /* Name of package */
80 /* Define to the address where bug reports for this package should be sent. */
83 /* Define to the full name of this package. */
86 /* Define to the full name and version of this package. */
89 /* Define to the one symbol short name of this package. */
92 /* Define to the home page for this package. */
95 /* Define to the version of this package. */
108 /* Version number of package */
/frameworks/base/proto/src/
Dmetrics_constants.proto20 package com_android_internal_logging;
95 // Notification was canceled by the package manager modifying the package.
101 // Notification was canceled by the user banning the package.
122 // Notification was canceled by the device administrator suspending the package.
1912 // User already denied access to the request folder; action pass package name
1913 // of calling package.
1922 // action pass package name of calling package.
1936 // the package of the 3rd party app in the PKG field.
1942 // the package of the 3rd party app in the PKG field.
1948 // the package of the 3rd party app in the PKG field.
[all …]
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp90 if (!attr_name.package.empty() && in TransformNestedAttr()
91 package_name_to_generate != attr_name.package) { in TransformNestedAttr()
92 output += "_" + TransformToFieldName(attr_name.package); in TransformNestedAttr()
304 << (!attr_name.package.empty() in ProcessStyleable()
305 ? attr_name.package in ProcessStyleable()
378 StringPiece package_name = attr_name.package; in ProcessStyleable()
504 const ResourceTablePackage& package, in ProcessType() argument
511 UnmangleResource(package.name, package_name_to_generate, *entry); in ProcessType()
518 if (package.id && type.id && entry->id) { in ProcessType()
519 id = ResourceId(package.id.value(), type.id.value(), entry->id.value()); in ProcessType()
[all …]
/frameworks/base/tools/incident_report/
Dformatter.cpp56 compare_name(const char* full, const char* package, const char* clazz) in compare_name() argument
58 int const packageLen = strlen(package); in compare_name()
59 int cmp = strncmp(full, package, packageLen); in compare_name()

12345678910>>...12