/frameworks/base/libs/androidfw/include/androidfw/ |
D | Asset.h | 49 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 …]
|
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 | ApkAssets.h | 44 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_;
|
D | AssetManager2.h | 171 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/ |
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 | 49 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()
|
D | ApkAssets_test.cpp | 87 Asset::ACCESS_BUFFER), NotNull()); } in TEST() 90 Asset::ACCESS_BUFFER), NotNull()); } in TEST() 99 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 | AssetManager.cpp | 69 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 …]
|
D | ApkAssets.cpp | 147 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/ |
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/core/jni/ |
D | android_util_AssetManager.cpp | 309 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 …]
|
D | android_content_res_ApkAssets.cpp | 87 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/ |
D | Utils.h | 29 explicit AssetStreamAdaptor(Asset*); 45 Asset* fAsset; 54 SkMemoryStream* CopyAssetToStream(Asset*);
|
D | Utils.cpp | 25 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset) in AssetStreamAdaptor() 117 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { in CopyAssetToStream()
|
/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.cpp | 48 Asset asset; in Parse() 66 const Asset& asset_from_emm) { in Decrypt() 71 Asset asset(asset_from_emm); in Decrypt()
|
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.
|