/frameworks/base/libs/androidfw/include/androidfw/ |
D | Asset.h | 48 class Asset { 50 virtual ~Asset(void) = default; 130 static void registerAsset(Asset* asset); 136 static void unregisterAsset(Asset* asset); 138 Asset(void); // constructor; only invoked indirectly 150 Asset(const Asset& src); 151 Asset& operator=(const Asset& src); 160 static Asset* createFromFile(const char* fileName, AccessMode mode); 165 static Asset* createFromCompressedFile(const char* fileName, 175 static Asset* createFromFileSegment(int fd, off64_t offset, size_t length, [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 | 68 std::unique_ptr<Asset> Open(const std::string& path, 69 Asset::AccessMode mode = Asset::AccessMode::ACCESS_RANDOM) const; 93 std::unique_ptr<Asset> idmap_asset, 98 static std::unique_ptr<Asset> CreateAssetFromFile(const std::string& path); 107 std::unique_ptr<Asset> resources_asset_; 108 std::unique_ptr<Asset> idmap_asset_;
|
D | AssetManager2.h | 161 std::unique_ptr<Asset> Open(const std::string& filename, Asset::AccessMode mode) const; 165 std::unique_ptr<Asset> Open(const std::string& filename, ApkAssetsCookie cookie, 166 Asset::AccessMode mode) const; 178 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, Asset::AccessMode mode, 184 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, ApkAssetsCookie cookie, 185 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 | 120 { ASSERT_THAT(loaded_apk->Open("res/layout/main.xml", Asset::ACCESS_BUFFER), NotNull()); } in TEST() 122 { ASSERT_THAT(loaded_apk->Open("res/layout/main.xml", Asset::ACCESS_BUFFER), NotNull()); } in TEST() 130 auto asset = loaded_apk->Open("assets/uncompressed.txt", 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() 190 /*static*/ Asset* Asset::createFromCompressedFile(const char* fileName, in createFromCompressedFile() [all …]
|
D | ApkAssets.cpp | 60 std::unique_ptr<Asset> idmap_asset = CreateAssetFromFile(idmap_path); in LoadOverlay() 87 std::unique_ptr<Asset> ApkAssets::CreateAssetFromFile(const std::string& path) { in CreateAssetFromFile() 105 return Asset::createFromUncompressedMap(std::move(file_map), Asset::AccessMode::ACCESS_RANDOM); in CreateAssetFromFile() 109 unique_fd fd, const std::string& path, std::unique_ptr<Asset> idmap_asset, in LoadImpl() 144 loaded_apk->resources_asset_ = loaded_apk->Open(kResourcesArsc, Asset::AccessMode::ACCESS_BUFFER); in LoadImpl() 167 std::unique_ptr<Asset> ApkAssets::Open(const std::string& path, Asset::AccessMode mode) const { in Open() 184 std::unique_ptr<Asset> asset = in Open() 185 Asset::createFromCompressedMap(std::move(map), entry.uncompressed_length, mode); in Open() 199 std::unique_ptr<Asset> asset = Asset::createFromUncompressedMap(std::move(map), mode); in Open()
|
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 …]
|
/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/android/graphics/fonts/ |
D | Font.cpp | 51 static inline Asset* toAsset(jlong ptr) { in toAsset() 52 return reinterpret_cast<Asset*>(ptr); in toAsset() 97 std::unique_ptr<Asset> asset; in Font_Builder_getNativeAsset() 101 asset = locked_mgr->Open(str.c_str(), Asset::ACCESS_BUFFER); in Font_Builder_getNativeAsset() 105 Asset::ACCESS_BUFFER); in Font_Builder_getNativeAsset() 107 asset = locked_mgr->OpenNonAsset(str.c_str(), Asset::ACCESS_BUFFER); in Font_Builder_getNativeAsset() 116 Asset* asset = toAsset(nativeAsset); in Font_Builder_getAssetBuffer()
|
/frameworks/base/core/jni/android/graphics/ |
D | Utils.h | 31 explicit AssetStreamAdaptor(Asset*); 47 Asset* fAsset; 56 SkMemoryStream* CopyAssetToStream(Asset*);
|
D | FontFamily.cpp | 216 delete static_cast<Asset*>(context); in releaseAsset() 238 std::unique_ptr<Asset> asset; in FontFamily_addFontFromAssetManager() 242 asset = locked_mgr->Open(str.c_str(), Asset::ACCESS_BUFFER); in FontFamily_addFontFromAssetManager() 246 Asset::ACCESS_BUFFER); in FontFamily_addFontFromAssetManager() 248 asset = locked_mgr->OpenNonAsset(str.c_str(), Asset::ACCESS_BUFFER); in FontFamily_addFontFromAssetManager()
|
D | Utils.cpp | 23 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset) in AssetStreamAdaptor() 115 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { in CopyAssetToStream()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 402 static jobject ReturnParcelFileDescriptor(JNIEnv* env, std::unique_ptr<Asset> asset, in ReturnParcelFileDescriptor() 435 return Asset::getGlobalCount(); in NativeGetGlobalAssetCount() 439 String8 alloc = Asset::getAssetAllocations(); in NativeGetAssetAllocations() 610 if (access_mode != Asset::ACCESS_UNKNOWN && access_mode != Asset::ACCESS_RANDOM && in NativeOpenAsset() 611 access_mode != Asset::ACCESS_STREAMING && access_mode != Asset::ACCESS_BUFFER) { in NativeOpenAsset() 617 std::unique_ptr<Asset> asset = in NativeOpenAsset() 618 assetmanager->Open(asset_path_utf8.c_str(), static_cast<Asset::AccessMode>(access_mode)); in NativeOpenAsset() 637 std::unique_ptr<Asset> asset = assetmanager->Open(asset_path_utf8.c_str(), Asset::ACCESS_RANDOM); in NativeOpenAssetFd() 656 if (access_mode != Asset::ACCESS_UNKNOWN && access_mode != Asset::ACCESS_RANDOM && in NativeOpenNonAsset() 657 access_mode != Asset::ACCESS_STREAMING && access_mode != Asset::ACCESS_BUFFER) { 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.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;
|
/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.
|