Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager2.h227 base::expected<uint32_t, NullOrIOError> GetParentThemeResourceId(uint32_t resid) const;
235 base::expected<ResourceName, NullOrIOError> GetResourceName(uint32_t resid) const;
245 base::expected<uint32_t, NullOrIOError> GetResourceId(
296 base::expected<SelectedValue, NullOrIOError> GetResource(uint32_t resid, bool may_be_bag = false,
308 base::expected<std::monostate, NullOrIOError> ResolveReference(SelectedValue& value,
325 base::expected<const ResolvedBag*, NullOrIOError> GetBag(uint32_t resid) const;
334 base::expected<const ResolvedBag*, NullOrIOError> ResolveBag(SelectedValue& value) const;
340 base::expected<uint32_t, NullOrIOError> GetResourceTypeSpecFlags(uint32_t resid) const;
342 base::expected<const std::vector<uint32_t>*, NullOrIOError> GetBagResIdStack(
424 base::expected<FindEntryResult, NullOrIOError> FindEntry(uint32_t resid,
[all …]
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()
DLoadedArsc.h65 base::expected<uint32_t, NullOrIOError> GetFlagsForEntryIndex(uint16_t entry_index) const { in GetFlagsForEntryIndex()
172 base::expected<uint32_t, NullOrIOError> FindEntryByName(const std::u16string& type_name,
175 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
178 static base::expected<uint32_t, NullOrIOError> GetEntryOffset(
181 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
DIdmap.h51 base::expected<StringPiece16, NullOrIOError> stringAt(size_t idx) const override;
52 base::expected<StringPiece, NullOrIOError> string8At(size_t idx) const override;
DResourceUtils.h33 base::expected<AssetManager2::ResourceName, NullOrIOError> ToResourceName(
DResourceTypes.h531 inline base::expected<StringPiece16, NullOrIOError> stringAt(const ResStringPool_ref& ref) const { in stringAt()
534 virtual base::expected<StringPiece16, NullOrIOError> stringAt(size_t idx) const;
537 virtual base::expected<StringPiece, NullOrIOError> string8At(size_t idx) const;
543 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> styleAt(
545 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> styleAt(size_t idx) const;
547 base::expected<size_t, NullOrIOError> indexOfString(const char16_t* str, size_t strLen) const;
575 base::expected<StringPiece, NullOrIOError> stringDecodeAt(
588 base::expected<StringPiece, NullOrIOError> string8() const;
589 base::expected<StringPiece16, NullOrIOError> string16() const;
/frameworks/base/libs/androidfw/
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()
DLoadedArsc.cpp116 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
242 base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError> LoadedPackage::GetEntry( in GetEntry()
244 base::expected<uint32_t, NullOrIOError> entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry()
251 base::expected<uint32_t, NullOrIOError> LoadedPackage::GetEntryOffset( in GetEntryOffset()
319 base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
377 base::expected<uint32_t, NullOrIOError> LoadedPackage::FindEntryByName( in FindEntryByName()
379 const base::expected<size_t, NullOrIOError> type_idx = type_string_pool_.indexOfString( in FindEntryByName()
385 const base::expected<size_t, NullOrIOError> key_idx = key_string_pool_.indexOfString( in FindEntryByName()
DAssetManager2.cpp638 base::expected<FindEntryResult, NullOrIOError> AssetManager2::FindEntry( in FindEntry()
823 base::expected<FindEntryResult, NullOrIOError> AssetManager2::FindEntryInternal( in FindEntryInternal()
1045 base::expected<uint32_t, NullOrIOError> AssetManager2::GetParentThemeResourceId(uint32_t resid) in GetParentThemeResourceId()
1066 base::expected<AssetManager2::ResourceName, NullOrIOError> AssetManager2::GetResourceName( in GetResourceName()
1079 base::expected<uint32_t, NullOrIOError> AssetManager2::GetResourceTypeSpecFlags( in GetResourceTypeSpecFlags()
1089 base::expected<AssetManager2::SelectedValue, NullOrIOError> AssetManager2::GetResource( in GetResource()
1117 base::expected<std::monostate, NullOrIOError> AssetManager2::ResolveReference( in ResolveReference()
1169 base::expected<const std::vector<uint32_t>*, NullOrIOError> AssetManager2::GetBagResIdStack( in GetBagResIdStack()
1184 base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::ResolveBag( in ResolveBag()
1197 base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag(uint32_t resid) const { in GetBag()
[all …]
DIdmap.cpp97 base::expected<StringPiece16, NullOrIOError> OverlayStringPool::stringAt(size_t idx) const { in stringAt()
106 base::expected<StringPiece, NullOrIOError> OverlayStringPool::string8At(size_t idx) const { in string8At()
DAttributeResolution.cpp66 base::expected<const ResolvedBag*, NullOrIOError> GetStyleBag(Theme* theme, in GetStyleBag()
90 base::expected<const ResolvedBag*, NullOrIOError> GetXmlStyleBag(Theme* theme, in GetXmlStyleBag()
DResourceTypes.cpp799 base::expected<StringPiece16, NullOrIOError> ResStringPool::stringAt(size_t idx) const in stringAt()
935 base::expected<StringPiece, NullOrIOError> ResStringPool::string8At(size_t idx) const in string8At()
986 base::expected<StringPiece, NullOrIOError> ResStringPool::stringDecodeAt( in stringDecodeAt()
1020 const base::expected<StringPiece, NullOrIOError> str = string8At(idx); in string8ObjectAt()
1028 const base::expected<StringPiece16, NullOrIOError> str16 = stringAt(idx); in string8ObjectAt()
1039 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> ResStringPool::styleAt( in styleAt()
1045 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> ResStringPool::styleAt( in styleAt()
1066 base::expected<size_t, NullOrIOError> ResStringPool::indexOfString(const char16_t* str, in indexOfString()
1095 const base::expected<StringPiece, NullOrIOError> s = string8At(mid); in indexOfString()
1136 const base::expected<StringPiece, NullOrIOError> s = string8At(i); in indexOfString()
[all …]