Lines Matching refs:String8
30 bool valid_symbol_name(const String8& str);
72 bool initFromFilterString(const String8& config);
74 int initFromDirName(const Vector<String8>& parts, const int startIndex);
81 String8 toDirName() const;
110 bool initFromDirName(const char* dir, String8* resType);
122 String8 toString() const { return mParams.toString(); } in toString()
123 String8 toDirName(const String8& resType) const;
125 const String8 getVersionString() const { return AaptConfig::getVersion(mParams); } in getVersionString()
150 AaptFile(const String8& sourceFile, const AaptGroupEntry& groupEntry, in AaptFile()
151 const String8& resType) in AaptFile()
166 const String8& getPath() const { return mPath; } in getPath()
181 const String8& getResourceType() const { return mResourceType; } in getResourceType()
185 const String8& getSourceFile() const { return mSourceFile; } in getSourceFile()
187 String8 getPrintableSource() const;
196 String8 mPath;
198 String8 mResourceType;
199 String8 mSourceFile;
213 AaptGroup(const String8& leaf, const String8& path) in AaptGroup()
217 const String8& getLeaf() const { return mLeaf; } in getLeaf()
220 const String8& getPath() const { return mPath; } in getPath()
228 void print(const String8& prefix) const;
230 String8 getPrintableSource() const;
233 String8 mLeaf;
234 String8 mPath;
246 AaptDir(const String8& leaf, const String8& path) in AaptDir()
250 const String8& getLeaf() const { return mLeaf; } in getLeaf()
252 const String8& getPath() const { return mPath; } in getPath()
254 const DefaultKeyedVector<String8, sp<AaptGroup> >& getFiles() const { return mFiles; } in getFiles()
255 const DefaultKeyedVector<String8, sp<AaptDir> >& getDirs() const { return mDirs; } in getDirs()
257 virtual status_t addFile(const String8& name, const sp<AaptGroup>& file);
259 void removeFile(const String8& name);
260 void removeDir(const String8& name);
281 void print(const String8& prefix) const;
283 String8 getPrintableSource() const;
288 status_t addDir(const String8& name, const sp<AaptDir>& dir);
289 sp<AaptDir> makeDir(const String8& name);
290 status_t addLeafFile(const String8& leafName,
294 const String8& srcDir,
296 const String8& resType,
300 String8 mLeaf;
301 String8 mPath;
303 DefaultKeyedVector<String8, sp<AaptGroup> > mFiles;
304 DefaultKeyedVector<String8, sp<AaptDir> > mDirs;
317 AaptSymbolEntry(const String8& _name) in AaptSymbolEntry()
340 const String8 name;
359 String8 stringVal;
372 status_t addSymbol(const String8& name, int32_t value, const SourcePos& pos) { in addSymbol()
382 status_t addStringSymbol(const String8& name, const String8& value, in addStringSymbol()
393 status_t makeSymbolPublic(const String8& name, const SourcePos& pos) { in makeSymbolPublic()
402 status_t makeSymbolJavaSymbol(const String8& name, const SourcePos& pos) { in makeSymbolJavaSymbol()
411 void appendComment(const String8& name, const String16& comment, const SourcePos& pos) { in appendComment()
424 void appendTypeComment(const String8& name, const String16& comment) { in appendTypeComment()
437 sp<AaptSymbols> addNestedSymbol(const String8& name, const SourcePos& pos) { in addNestedSymbol()
453 const KeyedVector<String8, AaptSymbolEntry>& getSymbols() const in getSymbols()
455 const DefaultKeyedVector<String8, sp<AaptSymbols> >& getNestedSymbols() const in getNestedSymbols()
458 const String16& getComment(const String8& name) const in getComment()
460 const String16& getTypeComment(const String8& name) const in getTypeComment()
464 bool check_valid_symbol_name(const String8& symbol, const SourcePos& pos, const char* label) { in check_valid_symbol_name()
471 AaptSymbolEntry& edit_symbol(const String8& symbol, const SourcePos* pos) { in edit_symbol()
482 const AaptSymbolEntry& get_symbol(const String8& symbol) const { in get_symbol()
490 KeyedVector<String8, AaptSymbolEntry> mSymbols;
491 DefaultKeyedVector<String8, sp<AaptSymbols> > mNestedSymbols;
496 public KeyedVector<String8,sp<AaptGroup> >
505 public Vector<String8>
520 const String8& getPackage() const { return mPackage; } in getPackage()
521 void setPackage(const String8& package) { in setPackage()
529 virtual status_t addFile(const String8& name, const sp<AaptGroup>& file);
531 sp<AaptFile> addFile(const String8& filePath,
533 const String8& srcDir,
535 const String8& resType);
537 void addResource(const String8& leafName,
538 const String8& path,
540 const String8& resType);
546 sp<AaptSymbols> getSymbolsFor(const String8& name);
548 sp<AaptSymbols> getJavaSymbolsFor(const String8& name);
552 const DefaultKeyedVector<String8, sp<AaptSymbols> >& getSymbols() const { return mSymbols; } in getSymbols()
554 String8 getSymbolsPrivatePackage() const { return mSymbolsPrivatePackage; } in getSymbolsPrivatePackage()
555 void setSymbolsPrivatePackage(const String8& pkg) { in setSymbolsPrivatePackage()
569 void print(const String8& prefix) const;
572 sp<AaptDir> resDir(const String8& name) const;
577 inline KeyedVector<String8, sp<ResourceTypeSet> >* getResources() { return mRes; } in getResources()
579 setResources(KeyedVector<String8, sp<ResourceTypeSet> >* res) { delete mRes; mRes = res; } in setResources() argument
591 const String8& srcDir,
593 const String8& resType,
597 ssize_t slurpResourceTree(Bundle* bundle, const String8& srcDir);
602 String8 mPackage;
604 DefaultKeyedVector<String8, sp<AaptSymbols> > mSymbols;
605 DefaultKeyedVector<String8, sp<AaptSymbols> > mJavaSymbols;
606 String8 mSymbolsPrivatePackage;
617 KeyedVector<String8, sp<ResourceTypeSet> >* mRes;