Home
last modified time | relevance | path

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

12345678910>>...18

/frameworks/base/tools/aapt2/xml/
DXmlUtil.cpp29 StringPiece16 package = namespaceUri; in extractPackageFromNamespace() local
30 package = package.substr(schemaPrefix.size(), package.size() - schemaPrefix.size()); in extractPackageFromNamespace()
31 if (package.empty()) { in extractPackageFromNamespace()
34 return ExtractedPackage{ package.toString(), false /* isPrivate */ }; in extractPackageFromNamespace()
38 StringPiece16 package = namespaceUri; in extractPackageFromNamespace() local
39 package = package.substr(schemaPrefix.size(), package.size() - schemaPrefix.size()); in extractPackageFromNamespace()
40 if (package.empty()) { in extractPackageFromNamespace()
43 return ExtractedPackage{ package.toString(), true /* isPrivate */ }; in extractPackageFromNamespace()
55 declStack->transformPackageAlias(inRef->name.value().package, localPackage)) { in transformReferenceFromNamespace()
57 inRef->name.value().package = std::move(extractedPackage.package); in transformReferenceFromNamespace()
DXmlUtil_test.cpp35 EXPECT_EQ(std::u16string(u"a"), p.value().package); in TEST()
40 EXPECT_EQ(std::u16string(u"android"), p.value().package); in TEST()
45 EXPECT_EQ(std::u16string(u"com.test"), p.value().package); in TEST()
50 EXPECT_EQ(std::u16string(), p.value().package); in TEST()
/frameworks/base/tools/aapt2/
DResource.h76 std::u16string package; member
94 StringPiece16 package; member
256 package(p.toString()), type(t), entry(e.toString()) { in ResourceName()
260 return !package.empty() && !entry.empty(); in isValid()
264 return std::tie(lhs.package, lhs.type, lhs.entry)
265 < std::tie(rhs.package, rhs.type, rhs.entry);
269 return std::tie(lhs.package, lhs.type, lhs.entry)
270 == std::tie(rhs.package, rhs.type, rhs.entry);
274 return std::tie(lhs.package, lhs.type, lhs.entry)
275 != std::tie(rhs.package, rhs.type, rhs.entry);
[all …]
DNameMangler.h51 if (mPolicy.targetPackageName == name.package || in mangleName()
52 mPolicy.packagesToMangle.count(name.package) == 0) { in mangleName()
59 mangleEntry(name.package, name.entry) in mangleName()
63 bool shouldMangle(const std::u16string& package) const { in shouldMangle() argument
64 if (package.empty() || mPolicy.targetPackageName == package) { in shouldMangle()
67 return mPolicy.packagesToMangle.count(package) != 0; in shouldMangle()
75 static std::u16string mangleEntry(const std::u16string& package, const std::u16string& name) { in mangleEntry() argument
76 return package + u"$" + name; in mangleEntry()
DResourceTable.cpp53 for (auto& package : packages) { in findPackageById() local
54 if (package->id && package->id.value() == id) { in findPackageById()
55 return package.get(); in findPackageById()
62 ResourceTablePackage* package = findOrCreatePackage(name); in createPackage() local
63 if (id && !package->id) { in createPackage()
64 package->id = id; in createPackage()
65 return package; in createPackage()
68 if (id && package->id && package->id.value() != id.value()) { in createPackage()
71 return package; in createPackage()
361 ResourceTablePackage* package = findOrCreatePackage(name.package); in addResourceImpl() local
[all …]
DDebug.cpp74 if (!name.package.empty()) { in visit()
75 std::cout << name.package << ":"; in visit()
102 if (!name.package.empty()) { in visit()
103 std::cout << name.package << ":"; in visit()
122 for (auto& package : table->packages) { in printTable() local
123 std::cout << "Package name=" << package->name; in printTable()
124 if (package->id) { in printTable()
125 std::cout << " id=" << std::hex << (int) package->id.value() << std::dec; in printTable()
129 for (const auto& type : package->types) { in printTable()
152 ResourceId id(package->id ? package->id.value() : uint8_t(0), in printTable()
[all …]
DNameMangler_test.cpp25 std::u16string package = u"android.appcompat"; in TEST() local
28 NameMangler::mangle(package, &name); in TEST()
38 std::u16string package; in TEST() local
41 EXPECT_FALSE(NameMangler::unmangle(&name, &package)); in TEST()
DResourceUtils.cpp65 StringPiece16 package; in parseResourceName() local
68 if (!extractResourceName(str.substr(offset, str.size() - offset), &package, &type, &entry)) { in parseResourceName()
82 outRef->package = package; in parseResourceName()
150 StringPiece16 package; in tryParseAttributeReference() local
154 &package, &type, &entry)) { in tryParseAttributeReference()
167 outRef->package = package; in tryParseAttributeReference()
213 extractResourceName(name, &ref.package, &typeStr, &ref.entry); in parseStyleParentReference()
225 if (!hasLeadingIdentifiers && ref.package.empty() && !typeStr.empty()) { in parseStyleParentReference()
570 if (mangler && mangler->shouldMangle(resFile.name.package)) { in buildResourceFileName()
571 out << NameMangler::mangleEntry(resFile.name.package, resFile.name.entry); in buildResourceFileName()
/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/compile/
DIdAssigner_test.cpp76 for (auto& package : table->packages) { in verifyIds() local
77 if (!package->id) { in verifyIds()
78 return ::testing::AssertionFailure() << "package " << package->name << " has no ID"; in verifyIds()
81 if (!packageIds.insert(package->id.value()).second) { in verifyIds()
82 return ::testing::AssertionFailure() << "package " << package->name in verifyIds()
83 << " has non-unique ID " << std::hex << (int) package->id.value() << std::dec; in verifyIds()
87 for (auto& package : table->packages) { in verifyIds() local
89 for (auto& type : package->types) { in verifyIds()
92 << package->name << " has no ID"; in verifyIds()
97 << " of package " << package->name << " has non-unique ID " in verifyIds()
[all …]
DIdAssigner.cpp33 for (auto& package : table->packages) { in consume() local
34 assert(package->id && "packages must have manually assigned IDs"); in consume()
42 for (auto& type : package->types) { in consume()
50 << "package '" << package->name << "' has " in consume()
67 ResourceNameRef nameRef(package->name, type->type, entry->name); in consume()
97 for (auto& type : package->types) { in consume()
/frameworks/base/tools/aapt2/link/
DPrivateAttributeMover_test.cpp40 ResourceTablePackage* package = table->findPackage(u"android"); in TEST() local
41 ASSERT_NE(package, nullptr); in TEST()
43 ResourceTableType* type = package->findType(ResourceType::kAttr); in TEST()
49 type = package->findType(ResourceType::kAttrPrivate); in TEST()
67 ResourceTablePackage* package = table->findPackage(u"android"); in TEST() local
68 ASSERT_NE(package, nullptr); in TEST()
70 ResourceTableType* type = package->findType(ResourceType::kAttr); in TEST()
74 type = package->findType(ResourceType::kAttrPrivate); in TEST()
DTableMerger.cpp56 for (auto& package : table->packages) { in mergeImpl() local
58 if (package->id && package->id.value() != 0x0 && package->id.value() != desiredPackageId) { in mergeImpl()
60 << "ignoring package " << package->name); in mergeImpl()
64 if (package->name.empty() || mContext->getCompilationPackage() == package->name) { in mergeImpl()
88 error |= !doMerge(src, table, package.get(), in mergeImpl()
101 for (auto& package : table->packages) { in mergeAndMangle() local
103 if (packageName != package->name) { in mergeAndMangle()
105 << "ignoring package " << package->name); in mergeAndMangle()
110 mMergedPackages.insert(package->name); in mergeAndMangle()
126 error |= !doMerge(src, table, package.get(), in mergeAndMangle()
[all …]
DManifestFixer_test.cpp90 package="android">
111 package="android">
129 package="android">
147 package="android" />)EOF", options);
168 package="android">
181 attr = manifestEl->findAttribute({}, u"package");
218 package="android">
241 package="android" />)EOF", options);
DXmlReferenceLinker.cpp84 StringPiece16 package = maybePackage.value().package; in visit() local
85 if (package.empty()) { in visit()
87 package = mContext->getCompilationPackage(); in visit()
90 Reference attrRef(ResourceNameRef(package, ResourceType::kAttr, attr.name)); in visit()
117 << package << ":" << attr.name << " " in visit()
124 << "attribute '" << package << ":" in visit()
DPrivateAttributeMover.cpp57 for (auto& package : table->packages) { in consume() local
58 ResourceTableType* type = package->findType(ResourceType::kAttr); in consume()
68 ResourceTableType* privAttrType = package->findOrCreateType(ResourceType::kAttrPrivate); in consume()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp91 if (!attrName.package.empty() && packageNameToGenerate != attrName.package) { in transformNestedAttr()
92 output += "_" + transform(attrName.package); in transformNestedAttr()
235 if (mangledReference.name.value().package.empty()) { in addMembersToStyleableClass()
236 mangledReference.name.value().package = mContext->getCompilationPackage(); in addMembersToStyleableClass()
298 << (!attrName.package.empty() in addMembersToStyleableClass()
299 ? attrName.package : mContext->getCompilationPackage()) in addMembersToStyleableClass()
370 StringPiece16 packageName = attrName.package; in addMembersToStyleableClass()
407 const ResourceTablePackage* package, in addMembersToTypeClass() argument
417 if (package->id && type->id && entry->id) { in addMembersToTypeClass()
418 id = ResourceId(package->id.value(), type->id.value(), entry->id.value()); in addMembersToTypeClass()
[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);
232 uint32_t getResId(const String16& package,
[all …]
/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/tools/aapt2/process/
DSymbolTable.cpp109 return findByName(ResourceName(name.package, ResourceType::kAttrPrivate, name.entry)); in findByName()
119 if (sr.package->id && sr.type->id && sr.entry->id) { in findByName()
120 symbol->id = ResourceId(sr.package->id.value(), sr.type->id.value(), sr.entry->id.value()); in findByName()
196 StringPiece16(entryName.package, entryName.packageLen), in lookupAttributeInTable()
215 name.package.data(), name.package.size(), in findByName()
243 if (resName.package) { in getResourceName()
244 name.package = StringPiece16(resName.package, resName.packageLen).toString(); in getResourceName()
/frameworks/base/tests/FeatureSplit/feature2/
DAndroid.mk29 featureOfApk := $(call intermediates-dir-for,APPS,$(featureOf))/package.apk
30 featureAfterApk := $(call intermediates-dir-for,APPS,$(featureAfter))/package.apk
36 LOCAL_AAPT_FLAGS += --custom-package com.android.test.split.feature.two
/frameworks/base/api/
Dsystem-removed.txt1 package android.app {
9 package android.app.admin {
18 package android.content {
33 package android.content.pm {
56 package android.database {
66 package android.graphics {
85 package android.location {
146 package android.media {
154 package android.media.tv {
166 package android.mtp {
[all …]
/frameworks/base/core/tests/BTtraffic/
DREADME1 This is a tool to generate classic Bluetooth traffic with specified period and package size.
10 4. Client can configure the traffic by specifying the transfer period and package size.
42 --ei size: package size, unit: byte; default: 1024, MAX: 20MB
43 --ei period: system sleep time between sending each package, unit: ms, default: 5000
44 ** if -1 is provided, client will only send the package once.

12345678910>>...18