Searched defs:package (Results 1 - 25 of 37) sorted by last modified time

12

/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jar ... android/databinding/ android/databinding/Bindable.class Bindable.java package android.databinding public abstract annotation android.databinding. ...
/frameworks/base/tools/aapt/
H A DAaptAssets.h274 * Note that sorting here is not enough to guarantee that the package
519 void setPackage(const String8& package) { argument
520 mPackage = package;
521 mSymbolsPrivatePackage = package;
H A DBundle.h132 void setPrivateSymbolsPackage(const android::String8& package) { argument
133 mPrivateSymbolsPackage = package;
H A DResource.cpp260 ssize_t nameIndex = block.indexOfAttribute(NULL, "package");
262 fprintf(stderr, "%s:%d: <manifest> does not have package attribute.\n",
763 static void fullyQualifyClassName(const String8& package, sp<XMLNode> node, argument
770 // asdf --> package.asdf
771 // .asdf .a.b --> package.asdf package.a.b
777 className += package;
780 className += package;
881 // Deal with manifest package name overrides
884 // Update the actual package nam
2665 writeResourceSymbols(Bundle* bundle, const sp<AaptAssets>& assets, const String8& package, bool includePrivate, bool emitCallback) argument
[all...]
H A DResourceIdCache.cpp47 static inline String16 makeHashableName(const android::String16& package, argument
53 hashable += package;
58 uint32_t ResourceIdCache::lookup(const android::String16& package, argument
62 const String16 hashedName = makeHashableName(package, type, name, onlyPublic);
84 uint32_t ResourceIdCache::store(const android::String16& package, argument
90 const String16 hashedName = makeHashableName(package, type, name, onlyPublic);
H A DResourceTable.cpp172 "a reference to another resource, in the form \"<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>\"\n"
173 "or to a theme attribute in the form \"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\"."},
275 "\"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>\") or\n"
277 "\"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>\")\n"
1118 ssize_t pkgIdx = block.indexOfAttribute(NULL, "package");
1121 "A 'package' attribute is required for <private-symbols>\n");
1131 "private symbol package already specified. Ignoring...\n");
1777 sp<Package> package = new Package(mAssetsPackage, packageId); local
1778 mPackages.add(assetsPackage, package);
1779 mOrderedPackages.add(package);
1823 addPublic(const SourcePos& sourcePos, const String16& package, const String16& type, const String16& name, const uint32_t ident) argument
1847 addEntry(const SourcePos& sourcePos, const String16& package, const String16& type, const String16& name, const String16& value, const Vector<StringPool::entry_style_span>* style, const ResTable_config* params, const bool doSetIndex, const int32_t format, const bool overwrite) argument
1880 startBag(const SourcePos& sourcePos, const String16& package, const String16& type, const String16& name, const String16& bagParent, const ResTable_config* params, bool overlay, bool replace, bool ) argument
1940 addBag(const SourcePos& sourcePos, const String16& package, const String16& type, const String16& name, const String16& bagParent, const String16& bagKey, const String16& value, const Vector<StringPool::entry_style_span>* style, const ResTable_config* params, bool replace, bool isId, const int32_t format) argument
1985 hasBagOrEntry(const String16& package, const String16& type, const String16& name) const argument
2010 hasBagOrEntry(const String16& package, const String16& type, const String16& name, const ResTable_config& config) const argument
2045 String16 package, type, name; local
2053 appendComment(const String16& package, const String16& type, const String16& name, const String16& comment, bool onlyIfEmpty) argument
2077 appendTypeComment(const String16& package, const String16& type, const String16& name, const String16& comment) argument
2100 makeAttribute(const String16& package, const String16& name, const SourcePos& source, int32_t format, const String16& comment, bool shouldAppendComment) argument
2155 canAddEntry(const SourcePos& pos, const String16& package, const String16& type, const String16& name) argument
2191 getResId(const String16& package, const String16& type, const String16& name, bool onlyPublic) const argument
2243 String16 package, type, name; local
2358 getCustomResource( const String16& package, const String16& type, const String16& name) const argument
2382 getCustomResourceWithCreation( const String16& package, const String16& type, const String16& name, const bool createIfNotFound) argument
3367 writePublicDefinitions(const String16& package, FILE* fp) argument
3383 writePublicDefinitions(const String16& package, FILE* fp, bool pub) argument
3591 generateAttributes(ResourceTable* table, const String16& package) argument
4264 getPackage(const String16& package) argument
4272 getType(const String16& package, const String16& type, const SourcePos& sourcePos, bool doSetIndex) argument
4284 getEntry(const String16& package, const String16& type, const String16& name, const SourcePos& sourcePos, bool overlay, const ResTable_config* config, bool doSetIndex) argument
4299 getConfigList(const String16& package, const String16& type, const String16& name) const argument
4881 buildNamespace(const String16& package) argument
[all...]
H A DSymbol.h35 android::String16 package; member in struct:Symbol
63 : package(p)
71 android::String8(package).string(),
78 return (package < rhs.package) || (type < rhs.type) || (name < rhs.name) || (id < rhs.id);
/frameworks/base/tools/aapt2/
H A DAppInfo.h30 * App's package name.
32 std::u16string package; member in struct:aapt::AppInfo
H A DNameMangler.h31 * Represents the package we are trying to build. References pointing
32 * to this package are not mangled, and mangled references inherit this package name.
51 if (mPolicy.targetPackageName == name.package ||
52 mPolicy.packagesToMangle.count(name.package) == 0) {
59 mangleEntry(name.package, name.entry)
63 bool shouldMangle(const std::u16string& package) const {
64 if (package.empty() || mPolicy.targetPackageName == package) {
67 return mPolicy.packagesToMangle.count(package) !
75 mangleEntry(const std::u16string& package, const std::u16string& name) argument
[all...]
H A DNameMangler_test.cpp25 std::u16string package = u"android.appcompat"; local
28 NameMangler::mangle(package, &name);
38 std::u16string package; local
41 EXPECT_FALSE(NameMangler::unmangle(&name, &package));
H A DResource.h35 * to the 'type' in package:type/entry.
76 std::u16string package; member in struct:aapt::ResourceName
94 StringPiece16 package; member in struct:aapt::ResourceNameRef
117 * PP: 8 bit package identifier. 0x01 is reserved for system
256 package(p.toString()), type(t), entry(e.toString()) {
260 return !package.empty() && !entry.empty();
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, rh
[all...]
H A DResourceParser.cpp496 // name.package can be empty here, as it will assume the package name of the table.
939 StringPiece16 package; local
943 package = StringPiece16(start, p - start);
950 ref.name = ResourceName(package.toString(), ResourceType::kAttr,
999 // Transform the namespace prefix to the actual package name, and mark the reference as
1212 // If this is a declaration, the package name may be in the name. Separate these out.
H A DResourceTable.cpp53 for (auto& package : packages) {
54 if (package->id && package->id.value() == id) {
55 return package.get();
62 ResourceTablePackage* package = findOrCreatePackage(name); local
63 if (id && !package->id) {
64 package->id = id;
65 return package;
68 if (id && package->id && package
350 ResourceTablePackage* package = findOrCreatePackage(name.package); local
447 ResourceTablePackage* package = findOrCreatePackage(name.package); local
516 ResourceTablePackage* package = findPackage(name.package); local
[all...]
H A DResourceTable.h247 ResourceTablePackage* package; member in struct:aapt::ResourceTable::SearchResult
266 * The list of packages in this table, sorted alphabetically by package name.
271 * Returns the package struct with the given name, or nullptr if such a package does not
272 * exist. The empty string is a valid package and typically is used to represent the
273 * 'current' package before it is known to the ResourceTable.
H A DResourceUtils.cpp65 StringPiece16 package; local
68 if (!extractResourceName(str.substr(offset, str.size() - offset), &package, &type, &entry)) {
82 outRef->package = package;
150 StringPiece16 package; local
154 &package, &type, &entry)) {
167 outRef->package = package;
183 * @[[*]package:][style/]<entry>
184 * ?[[*]package
[all...]
/frameworks/base/tools/aapt2/flatten/
H A DTableFlattener.cpp217 PackageFlattener(IDiagnostics* diag, ResourceTablePackage* package) : argument
218 mDiag(diag), mPackage(package) {
229 "package name '" << mPackage->name << "' is too long");
233 // Copy the package name in device endianness.
490 // Flatten each package.
491 for (auto& package : table->packages) {
492 PackageFlattener flattener(context->getDiagnostics(), package.get());
/frameworks/base/tools/aapt2/java/
H A DClassDefinition.cpp67 const StringPiece& package,
70 *out << sWarningHeader << "package " << package << ";\n\n"; local
66 writeJavaFile(const ClassDefinition* def, const StringPiece& package, bool final, std::ostream* out) argument
H A DJavaClassGenerator.cpp48 u"long", u"native", u"new", u"package", u"private", u"protected",
90 // the package.
91 if (!attrName.package.empty() && packageNameToGenerate != attrName.package) {
92 output += "_" + transform(attrName.package);
103 "\"<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>\" or a theme\n"
105 "\"<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>\".");
235 if (mangledReference.name.value().package.empty()) {
236 mangledReference.name.value().package = mContext->getCompilationPackage();
298 << (!attrName.package
406 addMembersToTypeClass(const StringPiece16& packageNameToGenerate, const ResourceTablePackage* package, const ResourceTableType* type, ClassDefinition* outTypeClassDef) argument
[all...]
H A DProguardRules.cpp46 std::u16string package = maybePackage.value().package + u"." + node->name; variable
47 if (util::isJavaClassName(package)) {
48 addClass(node->lineNumber, package);
150 xml::Attribute* attr = node->findAttribute({}, u"package");
/frameworks/base/tools/aapt2/link/
H A DManifestFixer.cpp38 // Since we don't know the package name, we can just make a fake one here and
39 // the test will be identical as long as the real package name is valid too.
71 xml::Attribute* attr = el->findAttribute({}, u"package");
73 diag->error(DiagMessage(el->lineNumber) << "<manifest> tag is missing 'package' attribute");
77 << "attribute 'package' in <manifest> tag must not be a reference");
81 << "attribute 'package' in <manifest> tag is not a valid Java package name: '"
92 diag->error(DiagMessage() << "invalid manifest package override '"
100 diag->error(DiagMessage() << "invalid instrumentation target package override '"
174 manifestAction[u"original-package"];
223 FullyQualifiedClassNameVisitor(const StringPiece16& package) argument
[all...]
H A DPrivateAttributeMover_test.cpp40 ResourceTablePackage* package = table->findPackage(u"android"); local
41 ASSERT_NE(package, nullptr);
43 ResourceTableType* type = package->findType(ResourceType::kAttr);
49 type = package->findType(ResourceType::kAttrPrivate);
67 ResourceTablePackage* package = table->findPackage(u"android"); local
68 ASSERT_NE(package, nullptr);
70 ResourceTableType* type = package->findType(ResourceType::kAttr);
74 type = package->findType(ResourceType::kAttrPrivate);
H A DTableMerger.cpp31 // Create the desired package that all tables will be merged into.
34 assert(mMasterPackage && "package name or ID already taken");
48 * This will merge packages with the same package name (or no package name).
56 for (auto& package : table->packages) {
58 if (package->id && package->id.value() != 0x0 && package->id.value() != desiredPackageId) {
60 << "ignoring package " << package
278 cloneAndMangleFile(const std::u16string& package, const FileReference& fileRef) argument
[all...]
H A DXmlReferenceLinker.cpp33 * links their symbolic name to their Resource ID, performing mangling and package aliasing
83 // There is a valid package name for this attribute. We will look this up.
84 StringPiece16 package = maybePackage.value().package; variable
85 if (package.empty()) {
86 // Empty package means the 'current' or 'local' package.
87 package = mContext->getCompilationPackage();
90 Reference attrRef(ResourceNameRef(package, ResourceType::kAttr, attr.name));
117 << package << "
[all...]
/frameworks/base/tools/aapt2/test/
H A DBuilders.h44 ResourceTablePackage* package = mTable->createPackage(packageName, id); local
45 assert(package);
249 doc->file.name.package = context->getCompilationPackage();
H A DContext.h44 assert(mCompilationPackage && "package name not set");
49 assert(mPackageId && "package ID not set");
79 ContextBuilder& setCompilationPackage(const StringPiece16& package) { argument
80 mContext->mCompilationPackage = package.toString();

Completed in 2340 milliseconds

12