Home
last modified time | relevance | path

Searched refs:NullOrIOError (Results 1 – 12 of 12) sorted by relevance

/aosp14/frameworks/base/libs/androidfw/include/androidfw/
H A DAssetManager2.h220 base::expected<uint32_t, NullOrIOError> GetParentThemeResourceId(uint32_t resid) const;
228 base::expected<ResourceName, NullOrIOError> GetResourceName(uint32_t resid) const;
238 base::expected<uint32_t, NullOrIOError> GetResourceId(
296 base::expected<std::monostate, NullOrIOError> ResolveReference(SelectedValue& value,
313 base::expected<const ResolvedBag*, NullOrIOError> GetBag(uint32_t resid) const;
322 base::expected<const ResolvedBag*, NullOrIOError> ResolveBag(SelectedValue& value) const;
328 base::expected<uint32_t, NullOrIOError> GetResourceTypeSpecFlags(uint32_t resid) const;
411 base::expected<FindEntryResult, NullOrIOError> FindEntry(uint32_t resid,
416 base::expected<FindEntryResult, NullOrIOError> FindEntryInternal(
438 base::expected<const ResolvedBag*, NullOrIOError> GetBag(
[all …]
H A DErrors.h33 using NullOrIOError = std::variant<std::nullopt_t, IOError>; variable
37 static inline bool IsIOError(const base::expected<T, NullOrIOError> result) { in IsIOError()
41 static inline IOError GetIOError(const NullOrIOError& error) { in GetIOError()
H A DLoadedArsc.h65 base::expected<uint32_t, NullOrIOError> GetFlagsForEntryIndex(uint16_t entry_index) const { in GetFlagsForEntryIndex()
166 base::expected<uint32_t, NullOrIOError> FindEntryByName(const std::u16string& type_name,
169 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
172 static base::expected<uint32_t, NullOrIOError> GetEntryOffset(
175 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
H A DIdmap.h50 base::expected<StringPiece16, NullOrIOError> stringAt(size_t idx) const override;
51 base::expected<StringPiece, NullOrIOError> string8At(size_t idx) const override;
H A DResourceTypes.h528 inline base::expected<StringPiece16, NullOrIOError> stringAt( in stringAt()
532 virtual base::expected<StringPiece16, NullOrIOError> stringAt(size_t idx) const;
535 virtual base::expected<StringPiece, NullOrIOError> string8At(size_t idx) const;
541 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> styleAt(
543 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> styleAt(size_t idx) const;
545 base::expected<size_t, NullOrIOError> indexOfString(const char16_t* str, size_t strLen) const;
569 base::expected<StringPiece, NullOrIOError> stringDecodeAt(
582 base::expected<StringPiece, NullOrIOError> string8() const;
583 base::expected<StringPiece16, NullOrIOError> string16() const;
H A DResourceUtils.h33 base::expected<AssetManager2::ResourceName, NullOrIOError> ToResourceName(
/aosp14/frameworks/base/libs/androidfw/
H A DResourceUtils.cpp51 base::expected<AssetManager2::ResourceName, NullOrIOError> ToResourceName( in ToResourceName()
59 if (base::expected<StringPiece, NullOrIOError> type_str = type_string_ref.string8(); in ToResourceName()
68 if (base::expected<StringPiece16, NullOrIOError> type16_str = type_string_ref.string16(); in ToResourceName()
77 if (base::expected<StringPiece, NullOrIOError> entry_str = entry_string_ref.string8(); in ToResourceName()
86 if (base::expected<StringPiece16, NullOrIOError> entry16_str = entry_string_ref.string16(); in ToResourceName()
H A DLoadedArsc.cpp112 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
238 base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError> LoadedPackage::GetEntry( in GetEntry()
240 base::expected<uint32_t, NullOrIOError> entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry()
247 base::expected<uint32_t, NullOrIOError> LoadedPackage::GetEntryOffset( in GetEntryOffset()
315 base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
373 base::expected<uint32_t, NullOrIOError> LoadedPackage::FindEntryByName( in FindEntryByName()
375 const base::expected<size_t, NullOrIOError> type_idx = type_string_pool_.indexOfString( in FindEntryByName()
381 const base::expected<size_t, NullOrIOError> key_idx = key_string_pool_.indexOfString( in FindEntryByName()
H A DAssetManager2.cpp611 base::expected<FindEntryResult, NullOrIOError> AssetManager2::FindEntry( in FindEntry()
766 base::expected<FindEntryResult, NullOrIOError> AssetManager2::FindEntryInternal( in FindEntryInternal()
994 base::expected<AssetManager2::ResourceName, NullOrIOError> AssetManager2::GetResourceName( in GetResourceName()
1007 base::expected<uint32_t, NullOrIOError> AssetManager2::GetResourceTypeSpecFlags( in GetResourceTypeSpecFlags()
1017 base::expected<AssetManager2::SelectedValue, NullOrIOError> AssetManager2::GetResource( in GetResource()
1045 base::expected<std::monostate, NullOrIOError> AssetManager2::ResolveReference( in ResolveReference()
1109 base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::ResolveBag( in ResolveBag()
1129 base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag( in GetBag()
1354 base::expected<uint32_t, NullOrIOError> AssetManager2::GetResourceId( in GetResourceId()
1614 base::expected<std::monostate, NullOrIOError> Theme::ResolveAttributeReference( in ResolveAttributeReference()
[all …]
H A DIdmap.cpp95 base::expected<StringPiece16, NullOrIOError> OverlayStringPool::stringAt(size_t idx) const { in stringAt()
104 base::expected<StringPiece, NullOrIOError> OverlayStringPool::string8At(size_t idx) const { in string8At()
H A DAttributeResolution.cpp66 base::expected<const ResolvedBag*, NullOrIOError> GetStyleBag(Theme* theme, in GetStyleBag()
90 base::expected<const ResolvedBag*, NullOrIOError> GetXmlStyleBag(Theme* theme, in GetXmlStyleBag()
H A DResourceTypes.cpp905 base::expected<StringPiece, NullOrIOError> ResStringPool::string8At(size_t idx) const in string8At()
956 base::expected<StringPiece, NullOrIOError> ResStringPool::stringDecodeAt( in stringDecodeAt()
990 const base::expected<StringPiece, NullOrIOError> str = string8At(idx); in string8ObjectAt()
998 const base::expected<StringPiece16, NullOrIOError> str16 = stringAt(idx); in string8ObjectAt()
1065 const base::expected<StringPiece, NullOrIOError> s = string8At(mid); in indexOfString()
1097 const base::expected<StringPiece, NullOrIOError> s = string8At(i); in indexOfString()
1155 const base::expected<StringPiece16, NullOrIOError> s = stringAt(i); in indexOfString()
3755 const base::expected<size_t, NullOrIOError> index = in findType16()
5162 const base::expected<size_t, NullOrIOError> ei = in findEntry()
6399 base::expected<StringPiece, NullOrIOError> StringPoolRef::string8() const { in string8()
[all …]