Home
last modified time | relevance | path

Searched refs:Asset (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/libs/androidfw/include/androidfw/
DAsset.h49 class Asset {
51 virtual ~Asset(void) = default;
128 static Asset* createFromFd(const int fd, const char* fileName, AccessMode mode);
136 static void registerAsset(Asset* asset);
142 static void unregisterAsset(Asset* asset);
144 Asset(void); // constructor; only invoked indirectly
156 Asset(const Asset& src);
157 Asset& operator=(const Asset& src);
167 static Asset* createFromFile(const char* fileName, AccessMode mode);
172 static Asset* createFromCompressedFile(const char* fileName,
[all …]
DAssetManager.h44 class Asset; // fwd decl for things that include Asset.h first variable
143 typedef Asset::AccessMode AccessMode; // typing shortcut
151 Asset* open(const char* fileName, AccessMode mode);
160 Asset* openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie = NULL);
166 Asset* openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode);
232 Asset* openNonAssetInPathLocked(const char* fileName, AccessMode mode,
239 Asset* openAssetFromFileLocked(const String8& fileName, AccessMode mode);
240 Asset* openAssetFromZipLocked(const ZipFileRO* pZipFile,
256 Asset* openIdmapLocked(const struct asset_path& ap) const;
268 Asset* getResourceTableAsset();
[all …]
DApkAssets.h44 std::unique_ptr<Asset> Open(const std::string& path,
45 Asset::AccessMode mode = Asset::AccessMode::ACCESS_RANDOM,
59 virtual std::unique_ptr<Asset> OpenInternal(const std::string& path,
60 Asset::AccessMode mode,
155 static std::unique_ptr<Asset> CreateAssetFromFile(const std::string& path);
162 static std::unique_ptr<Asset> CreateAssetFromFd(base::unique_fd fd,
173 std::unique_ptr<Asset> idmap_asset = nullptr,
177 std::unique_ptr<Asset> resources_asset, const std::string& path,
190 std::unique_ptr<Asset> resources_asset_;
191 std::unique_ptr<Asset> idmap_asset_;
DAssetManager2.h171 std::unique_ptr<Asset> Open(const std::string& filename, Asset::AccessMode mode) const;
175 std::unique_ptr<Asset> Open(const std::string& filename, ApkAssetsCookie cookie,
176 Asset::AccessMode mode) const;
188 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, Asset::AccessMode mode,
194 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, ApkAssetsCookie cookie,
195 Asset::AccessMode mode) const;
/frameworks/base/libs/androidfw/tests/
DAsset_test.cpp24 const int32_t count = Asset::getGlobalCount(); in TEST()
25 Asset* asset = new _FileAsset(); in TEST()
26 EXPECT_EQ(count + 1, Asset::getGlobalCount()); in TEST()
28 EXPECT_EQ(count, Asset::getGlobalCount()); in TEST()
32 const int32_t count = Asset::getGlobalCount(); in TEST()
33 Asset* asset = new _CompressedAsset(); in TEST()
34 EXPECT_EQ(count + 1, Asset::getGlobalCount()); in TEST()
36 EXPECT_EQ(count, Asset::getGlobalCount()); in TEST()
DAttributeResolution_bench.cpp49 std::unique_ptr<Asset> asset = in BM_ApplyStyle()
50 assetmanager.OpenNonAsset("res/layout/layout.xml", Asset::ACCESS_BUFFER); in BM_ApplyStyle()
130 std::unique_ptr<Asset> asset = assetmanager.OpenNonAsset( in BM_ApplyStyleFramework()
131 StringPiece(layout_path, len).to_string(), cookie, Asset::ACCESS_BUFFER); in BM_ApplyStyleFramework()
DApkAssets_test.cpp87 Asset::ACCESS_BUFFER), NotNull()); } in TEST()
90 Asset::ACCESS_BUFFER), NotNull()); } in TEST()
99 Asset::ACCESS_UNKNOWN); in TEST()
/frameworks/base/libs/androidfw/
DAsset.cpp53 static Asset* gHead = NULL;
54 static Asset* gTail = NULL;
56 void Asset::registerAsset(Asset* asset) in registerAsset()
74 void Asset::unregisterAsset(Asset* asset) in unregisterAsset()
97 int32_t Asset::getGlobalCount() in getGlobalCount()
103 String8 Asset::getAssetAllocations() in getAssetAllocations()
107 Asset* cur = gHead; in getAssetAllocations()
123 Asset::Asset(void) in Asset() function in Asset
134 /*static*/ Asset* Asset::createFromFile(const char* fileName, AccessMode mode) in createFromFile()
145 /*static*/ Asset* Asset::createFromFd(const int fd, const char* fileName, AccessMode mode) in createFromFd()
[all …]
DAssetManager.cpp69 static Asset* const kExcludedAsset = (Asset*) 0xd000000d;
249 Asset* idmap = NULL; in addOverlayPath()
250 if ((idmap = openAssetFromFileLocked(idmapPath, Asset::ACCESS_BUFFER)) == NULL) { in addOverlayPath()
334 Asset* assets[2] = {NULL, NULL}; in createIdmap()
344 Asset::ACCESS_BUFFER, ap); in createIdmap()
435 Asset* AssetManager::open(const char* fileName, AccessMode mode) in open()
453 Asset* pAsset = openNonAssetInPathLocked(assetName.string(), mode, in open()
468 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie) in openNonAsset()
482 Asset* pAsset = openNonAssetInPathLocked( in openNonAsset()
493 Asset* AssetManager::openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode) in openNonAsset()
[all …]
DApkAssets.cpp147 std::unique_ptr<Asset> OpenInternal( in OpenInternal()
148 const std::string& path, Asset::AccessMode mode, bool* file_exists) const override { in OpenInternal()
173 std::unique_ptr<Asset> asset = in OpenInternal()
174 Asset::createFromCompressedMap(std::move(map), entry.uncompressed_length, mode); in OpenInternal()
200 std::unique_ptr<Asset> asset = Asset::createFromUncompressedMap(std::move(map), in OpenInternal()
251 std::unique_ptr<Asset> OpenInternal( in OpenInternal()
252 const std::string& path, Asset::AccessMode /* mode */, bool* file_exists) const override { in OpenInternal()
282 std::unique_ptr<Asset> OpenInternal(const std::string& /*path */, in OpenInternal()
283 Asset::AccessMode /* mode */, in OpenInternal()
315 std::unique_ptr<Asset> OpenInternal( in OpenInternal()
[all …]
/frameworks/base/native/android/
Dasset_manager.cpp51 std::unique_ptr<Asset> mAsset;
53 explicit AAsset(std::unique_ptr<Asset> asset) : mAsset(std::move(asset)) { } in AAsset()
68 Asset::AccessMode amMode; in AAssetManager_open()
71 amMode = Asset::ACCESS_UNKNOWN; in AAssetManager_open()
74 amMode = Asset::ACCESS_RANDOM; in AAssetManager_open()
77 amMode = Asset::ACCESS_STREAMING; in AAssetManager_open()
80 amMode = Asset::ACCESS_BUFFER; in AAssetManager_open()
87 std::unique_ptr<Asset> asset = locked_mgr->Open(filename, amMode); in AAssetManager_open()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp309 static jobject ReturnParcelFileDescriptor(JNIEnv* env, std::unique_ptr<Asset> asset, in ReturnParcelFileDescriptor()
341 static jobject ReturnParcelFileDescriptor(JNIEnv* env, std::unique_ptr<Asset> asset, in ReturnParcelFileDescriptor()
351 return Asset::getGlobalCount(); in NativeGetGlobalAssetCount()
355 String8 alloc = Asset::getAssetAllocations(); in NativeGetAssetAllocations()
538 if (access_mode != Asset::ACCESS_UNKNOWN && access_mode != Asset::ACCESS_RANDOM && in NativeOpenAsset()
539 access_mode != Asset::ACCESS_STREAMING && access_mode != Asset::ACCESS_BUFFER) { in NativeOpenAsset()
545 std::unique_ptr<Asset> asset = in NativeOpenAsset()
546 assetmanager->Open(asset_path_utf8.c_str(), static_cast<Asset::AccessMode>(access_mode)); in NativeOpenAsset()
565 std::unique_ptr<Asset> asset = assetmanager->Open(asset_path_utf8.c_str(), Asset::ACCESS_RANDOM); in NativeOpenAssetFd()
584 if (access_mode != Asset::ACCESS_UNKNOWN && access_mode != Asset::ACCESS_RANDOM && in NativeOpenNonAsset()
[all …]
Dandroid_content_res_ApkAssets.cpp87 std::unique_ptr<Asset> OpenInternal(const std::string& path, in OpenInternal()
88 Asset::AccessMode mode, in OpenInternal()
343 std::unique_ptr<Asset> asset = apk_assets->GetAssetsProvider()->Open( in NativeOpenXml()
344 path_utf8.c_str(),Asset::AccessMode::ACCESS_RANDOM); in NativeOpenXml()
/frameworks/base/libs/hwui/jni/
DUtils.h29 explicit AssetStreamAdaptor(Asset*);
45 Asset* fAsset;
54 SkMemoryStream* CopyAssetToStream(Asset*);
DUtils.cpp25 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset) in AssetStreamAdaptor()
117 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { in CopyAssetToStream()
/frameworks/av/drm/mediacas/plugins/clearkey/
DClearKeyLicenseFetcher.h33 virtual status_t FetchLicense(uint64_t asset_id, Asset* asset);
36 Asset asset_;
Decm_generator.h81 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset,
105 status_t DecodeECMClearFields(const sp<ABuffer>& ecm, Asset* asset,
DJsonAssetLoader.h38 const String8& jsonAssetString, Asset *asset);
47 bool findKey(const String8& jsonObject, Asset *asset);
Decm.cpp48 Asset asset; in Parse()
66 const Asset& asset_from_emm) { in Decrypt()
71 Asset asset(asset_from_emm); in Decrypt()
Decm_generator.cpp57 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset, in DecodeECM()
75 status_t DecodeECMClearFields(const sp<ABuffer>& ecm, Asset* asset, in DecodeECMClearFields()
DClearKeyLicenseFetcher.cpp36 uint64_t /* asset_id */, Asset* asset) { in FetchLicense()
DLicenseFetcher.h40 uint64_t asset_id, clearkeycas::Asset* asset) = 0;
DClearKeyFetcher.h54 clearkeycas::Asset asset_;
/frameworks/rs/
DrsFileA3D.h30 class Asset; variable
64 bool load(Asset *asset);
/frameworks/av/drm/mediacas/plugins/clearkey/protos/
Dlicense_protos.proto23 // The Asset is the data describing licensing requirements and polciy for a
29 message Asset { message
45 // Organization table and part of the primary key for the Asset table.

12