Home
last modified time | relevance | path

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

/aosp12/frameworks/base/libs/androidfw/include/androidfw/
H A DAssetManager2.h201 base::expected<ResourceName, NullOrIOError> GetResourceName(uint32_t resid) const;
211 base::expected<uint32_t, NullOrIOError> GetResourceId(
269 base::expected<std::monostate, NullOrIOError> ResolveReference(SelectedValue& value,
286 base::expected<const ResolvedBag*, NullOrIOError> GetBag(uint32_t resid) const;
295 base::expected<const ResolvedBag*, NullOrIOError> ResolveBag(SelectedValue& value) const;
301 base::expected<uint32_t, NullOrIOError> GetResourceTypeSpecFlags(uint32_t resid) const;
393 base::expected<FindEntryResult, NullOrIOError> FindEntry(uint32_t resid,
398 base::expected<FindEntryResult, NullOrIOError> FindEntryInternal(
420 base::expected<const ResolvedBag*, NullOrIOError> GetBag(
509 base::expected<std::monostate, NullOrIOError> ApplyStyle(uint32_t resid, bool force = false);
[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::map_ptr<ResTable_entry>, NullOrIOError> GetEntry(
172 static base::expected<uint32_t, NullOrIOError> GetEntryOffset(
175 static base::expected<incfs::map_ptr<ResTable_entry>, NullOrIOError> GetEntryFromOffset(
H A DResourceTypes.h524 inline base::expected<StringPiece16, NullOrIOError> stringAt( in stringAt()
528 virtual base::expected<StringPiece16, NullOrIOError> stringAt(size_t idx) const;
531 virtual base::expected<StringPiece, NullOrIOError> string8At(size_t idx) const;
537 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> styleAt(
539 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> styleAt(size_t idx) const;
541 base::expected<size_t, NullOrIOError> indexOfString(const char16_t* str, size_t strLen) const;
565 base::expected<StringPiece, NullOrIOError> stringDecodeAt(
578 base::expected<StringPiece, NullOrIOError> string8() const;
579 base::expected<StringPiece16, NullOrIOError> string16() const;
H A DIdmap.h48 base::expected<StringPiece16, NullOrIOError> stringAt(size_t idx) const override;
49 base::expected<StringPiece, NullOrIOError> string8At(size_t idx) const override;
H A DResourceUtils.h33 base::expected<AssetManager2::ResourceName, NullOrIOError> ToResourceName(
/aosp12/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.cpp110 static base::expected<std::monostate, NullOrIOError> VerifyResTableEntry( in VerifyResTableEntry()
231 base::expected<incfs::map_ptr<ResTable_entry>, NullOrIOError> LoadedPackage::GetEntry( in GetEntry()
233 base::expected<uint32_t, NullOrIOError> entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry()
240 base::expected<uint32_t, NullOrIOError> LoadedPackage::GetEntryOffset( in GetEntryOffset()
300 base::expected<incfs::map_ptr<ResTable_entry>, NullOrIOError> LoadedPackage::GetEntryFromOffset( in GetEntryFromOffset()
357 base::expected<uint32_t, NullOrIOError> LoadedPackage::FindEntryByName( in FindEntryByName()
359 const base::expected<size_t, NullOrIOError> type_idx = type_string_pool_.indexOfString( in FindEntryByName()
365 const base::expected<size_t, NullOrIOError> key_idx = key_string_pool_.indexOfString( in FindEntryByName()
H A DAssetManager2.cpp559 base::expected<FindEntryResult, NullOrIOError> AssetManager2::FindEntry( in FindEntry()
662 base::expected<FindEntryResult, NullOrIOError> AssetManager2::FindEntryInternal( in FindEntryInternal()
871 base::expected<AssetManager2::ResourceName, NullOrIOError> AssetManager2::GetResourceName( in GetResourceName()
884 base::expected<uint32_t, NullOrIOError> AssetManager2::GetResourceTypeSpecFlags( in GetResourceTypeSpecFlags()
894 base::expected<AssetManager2::SelectedValue, NullOrIOError> AssetManager2::GetResource( in GetResource()
922 base::expected<std::monostate, NullOrIOError> AssetManager2::ResolveReference( in ResolveReference()
986 base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::ResolveBag( in ResolveBag()
1006 base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag( in GetBag()
1231 base::expected<uint32_t, NullOrIOError> AssetManager2::GetResourceId( in GetResourceId()
1456 base::expected<std::monostate, NullOrIOError> Theme::ResolveAttributeReference( in ResolveAttributeReference()
[all …]
H A DIdmap.cpp87 base::expected<StringPiece16, NullOrIOError> OverlayStringPool::stringAt(size_t idx) const { in stringAt()
96 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.cpp892 base::expected<StringPiece, NullOrIOError> ResStringPool::string8At(size_t idx) const in string8At()
943 base::expected<StringPiece, NullOrIOError> ResStringPool::stringDecodeAt( in stringDecodeAt()
977 const base::expected<StringPiece, NullOrIOError> str = string8At(idx); in string8ObjectAt()
985 const base::expected<StringPiece16, NullOrIOError> str16 = stringAt(idx); in string8ObjectAt()
1052 const base::expected<StringPiece, NullOrIOError> s = string8At(mid); in indexOfString()
1084 const base::expected<StringPiece, NullOrIOError> s = string8At(i); in indexOfString()
1142 const base::expected<StringPiece16, NullOrIOError> s = stringAt(i); in indexOfString()
3712 const base::expected<size_t, NullOrIOError> index = in findType16()
5126 const base::expected<size_t, NullOrIOError> ei = in findEntry()
6363 base::expected<StringPiece, NullOrIOError> StringPoolRef::string8() const { in string8()
[all …]