/frameworks/base/libs/androidfw/include/androidfw/ |
D | Asset.h | 49 class Asset { 51 virtual ~Asset(void) = default; 52 Asset(const Asset& src) = delete; 53 Asset& operator=(const Asset& src) = delete; 143 static Asset* createFromFd(const int fd, const char* fileName, AccessMode mode); 151 static void registerAsset(Asset* asset); 157 static void unregisterAsset(Asset* asset); 159 Asset(void); // constructor; only invoked indirectly 178 static Asset* createFromFile(const char* fileName, AccessMode mode); 183 static Asset* createFromCompressedFile(const char* fileName, AccessMode mode); [all …]
|
D | AssetManager.h | 44 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 …]
|
D | AssetsProvider.h | 43 std::unique_ptr<Asset> Open(const std::string& path, 44 Asset::AccessMode mode = Asset::AccessMode::ACCESS_RANDOM, 64 static std::unique_ptr<Asset> CreateAssetFromFile(const std::string& path); 71 static std::unique_ptr<Asset> CreateAssetFromFd(base::unique_fd fd, 78 virtual std::unique_ptr<Asset> OpenInternal(const std::string& path, Asset::AccessMode mode, 103 std::unique_ptr<Asset> OpenInternal(const std::string& path, Asset::AccessMode mode, 154 std::unique_ptr<Asset> OpenInternal(const std::string& path, 155 Asset::AccessMode mode, 179 std::unique_ptr<Asset> OpenInternal( 180 const std::string& path, Asset::AccessMode mode, bool* file_exists) const override; [all …]
|
D | ApkAssets.h | 55 static ApkAssetsPtr LoadTable(std::unique_ptr<Asset> resources_asset, 100 std::unique_ptr<Asset> idmap_asset, 103 static ApkAssetsPtr LoadImpl(std::unique_ptr<Asset> resources_asset, 106 std::unique_ptr<Asset> idmap_asset, 116 ApkAssets(PrivateConstructorUtil, std::unique_ptr<Asset> resources_asset, 118 package_property_t property_flags, std::unique_ptr<Asset> idmap_asset, 121 std::unique_ptr<Asset> resources_asset_; 127 std::unique_ptr<Asset> idmap_asset_;
|
D | AssetManager2.h | 197 std::unique_ptr<Asset> Open(const std::string& filename, Asset::AccessMode mode) const; 201 std::unique_ptr<Asset> Open(const std::string& filename, ApkAssetsCookie cookie, 202 Asset::AccessMode mode) const; 214 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, Asset::AccessMode mode, 220 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, ApkAssetsCookie cookie, 221 Asset::AccessMode mode) const;
|
/frameworks/base/libs/androidfw/tests/ |
D | Asset_test.cpp | 24 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()
|
D | AttributeResolution_bench.cpp | 48 std::unique_ptr<Asset> asset = in BM_ApplyStyle() 49 assetmanager.OpenNonAsset("res/layout/layout.xml", Asset::ACCESS_BUFFER); in BM_ApplyStyle() 121 std::unique_ptr<Asset> asset = in BM_ApplyStyleFramework() 122 assetmanager.OpenNonAsset(std::string(*layout_path), value->cookie, Asset::ACCESS_BUFFER); in BM_ApplyStyleFramework()
|
D | ApkAssets_test.cpp | 84 Asset::ACCESS_BUFFER), NotNull()); } in TEST() 87 Asset::ACCESS_BUFFER), NotNull()); } in TEST() 95 Asset::ACCESS_UNKNOWN); in TEST()
|
/frameworks/base/libs/androidfw/ |
D | Asset.cpp | 53 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 …]
|
D | AssetsProvider.cpp | 31 std::unique_ptr<Asset> AssetsProvider::Open(const std::string& path, Asset::AccessMode mode, in Open() 36 std::unique_ptr<Asset> AssetsProvider::CreateAssetFromFile(const std::string& path) { in CreateAssetFromFile() 46 std::unique_ptr<Asset> AssetsProvider::CreateAssetFromFd(base::unique_fd fd, in CreateAssetFromFd() 71 return Asset::createFromUncompressedMap(std::move(file_map), in CreateAssetFromFd() 72 Asset::AccessMode::ACCESS_RANDOM, in CreateAssetFromFd() 156 std::unique_ptr<Asset> ZipAssetsProvider::OpenInternal(const std::string& path, in OpenInternal() 157 Asset::AccessMode mode, in OpenInternal() 184 std::unique_ptr<Asset> asset = in OpenInternal() 185 Asset::createFromCompressedMap(std::move(asset_map), entry.uncompressed_length, mode); in OpenInternal() 212 auto asset = Asset::createFromUncompressedMap(std::move(asset_map), mode, std::move(ufd)); in OpenInternal() [all …]
|
D | AssetManager.cpp | 70 static Asset* const kExcludedAsset = (Asset*) 0xd000000d; 250 Asset* idmap = NULL; in addOverlayPath() 251 if ((idmap = openAssetFromFileLocked(idmapPath, Asset::ACCESS_BUFFER)) == NULL) { in addOverlayPath() 335 Asset* assets[2] = {NULL, NULL}; in createIdmap() 345 Asset::ACCESS_BUFFER, ap); in createIdmap() 436 Asset* AssetManager::open(const char* fileName, AccessMode mode) in open() 454 Asset* pAsset = openNonAssetInPathLocked(assetName.c_str(), mode, in open() 469 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie) in openNonAsset() 483 Asset* pAsset = openNonAssetInPathLocked( in openNonAsset() 494 Asset* AssetManager::openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode) in openNonAsset() [all …]
|
D | ApkAssets.cpp | 30 ApkAssets::ApkAssets(PrivateConstructorUtil, std::unique_ptr<Asset> resources_asset, in ApkAssets() 33 std::unique_ptr<Asset> idmap_asset, std::unique_ptr<LoadedIdmap> loaded_idmap) in ApkAssets() 55 ApkAssetsPtr ApkAssets::LoadTable(std::unique_ptr<Asset> resources_asset, in LoadTable() 102 std::unique_ptr<Asset> idmap_asset, in LoadImpl() 110 auto resources_asset = assets->Open(kResourcesArsc, Asset::AccessMode::ACCESS_BUFFER, in LoadImpl() 122 ApkAssetsPtr ApkAssets::LoadImpl(std::unique_ptr<Asset> resources_asset, in LoadImpl() 125 std::unique_ptr<Asset> idmap_asset, in LoadImpl()
|
/frameworks/base/native/android/ |
D | asset_manager.cpp | 51 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/libs/hwui/jni/ |
D | Utils.h | 32 explicit AssetStreamAdaptor(Asset*); 48 Asset* fAsset; 56 sk_sp<SkData> CopyAssetToData(Asset*);
|
D | Utils.cpp | 27 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset) in AssetStreamAdaptor() 119 sk_sp<SkData> android::CopyAssetToData(Asset* asset) { in CopyAssetToData()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 248 static jobject ReturnParcelFileDescriptor(JNIEnv* env, std::unique_ptr<Asset> asset, in ReturnParcelFileDescriptor() 280 static jobject ReturnParcelFileDescriptor(JNIEnv* env, std::unique_ptr<Asset> asset, in ReturnParcelFileDescriptor() 290 return Asset::getGlobalCount(); in NativeGetGlobalAssetCount() 294 String8 alloc = Asset::getAssetAllocations(); in NativeGetAssetAllocations() 511 if (access_mode != Asset::ACCESS_UNKNOWN && access_mode != Asset::ACCESS_RANDOM && in NativeOpenAsset() 512 access_mode != Asset::ACCESS_STREAMING && access_mode != Asset::ACCESS_BUFFER) { in NativeOpenAsset() 518 std::unique_ptr<Asset> asset = in NativeOpenAsset() 519 assetmanager->Open(asset_path_utf8.c_str(), static_cast<Asset::AccessMode>(access_mode)); in NativeOpenAsset() 538 std::unique_ptr<Asset> asset = assetmanager->Open(asset_path_utf8.c_str(), Asset::ACCESS_RANDOM); in NativeOpenAssetFd() 557 if (access_mode != Asset::ACCESS_UNKNOWN && access_mode != Asset::ACCESS_RANDOM && in NativeOpenNonAsset() [all …]
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
D | ClearKeyLicenseFetcher.h | 33 virtual status_t FetchLicense(uint64_t asset_id, Asset* asset); 36 Asset asset_;
|
D | ecm_generator.h | 81 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset, 105 status_t DecodeECMClearFields(const sp<ABuffer>& ecm, Asset* asset,
|
D | JsonAssetLoader.h | 38 const String8& jsonAssetString, Asset *asset); 47 bool findKey(const String8& jsonObject, Asset *asset);
|
D | ecm_generator.cpp | 57 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset, in DecodeECM() 75 status_t DecodeECMClearFields(const sp<ABuffer>& ecm, Asset* asset, in DecodeECMClearFields()
|
D | ClearKeyLicenseFetcher.cpp | 36 uint64_t /* asset_id */, Asset* asset) { in FetchLicense()
|
D | LicenseFetcher.h | 40 uint64_t asset_id, clearkeycas::Asset* asset) = 0;
|
D | ClearKeyFetcher.h | 54 clearkeycas::Asset asset_;
|
/frameworks/rs/ |
D | rsFileA3D.h | 30 class Asset; variable 64 bool load(Asset *asset);
|
/frameworks/av/drm/mediacas/plugins/clearkey/protos/ |
D | license_protos.proto | 23 // 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.
|