/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 125 typedef Asset::AccessMode AccessMode; // typing shortcut 133 Asset* open(const char* fileName, AccessMode mode); 142 Asset* openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie = NULL); 148 Asset* openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode); 209 Asset* openNonAssetInPathLocked(const char* fileName, AccessMode mode, 216 Asset* openAssetFromFileLocked(const String8& fileName, AccessMode mode); 217 Asset* openAssetFromZipLocked(const ZipFileRO* pZipFile, 233 Asset* openIdmapLocked(const struct asset_path& ap) const; 244 Asset* getResourceTableAsset(); [all …]
|
D | ApkAssets.h | 39 std::unique_ptr<Asset> Open(const std::string& path, 40 Asset::AccessMode mode = Asset::AccessMode::ACCESS_RANDOM) const; 66 std::unique_ptr<Asset> resources_asset_;
|
D | AssetManager2.h | 142 std::unique_ptr<Asset> Open(const std::string& filename, Asset::AccessMode mode); 146 std::unique_ptr<Asset> Open(const std::string& filename, ApkAssetsCookie cookie, 147 Asset::AccessMode mode); 159 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, Asset::AccessMode mode, 165 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, ApkAssetsCookie cookie, 166 Asset::AccessMode mode);
|
/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 | ApkAssets_test.cpp | 35 std::unique_ptr<Asset> asset = loaded_apk->Open("res/layout/main.xml"); in TEST() 63 std::unique_ptr<Asset> assets = loaded_apk->Open("res/layout/main.xml", Asset::ACCESS_BUFFER); in TEST() 68 std::unique_ptr<Asset> assets = loaded_apk->Open("res/layout/main.xml", Asset::ACCESS_BUFFER); in TEST() 78 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 | AssetManager.cpp | 69 static Asset* const kExcludedAsset = (Asset*) 0xd000000d; 233 Asset* idmap = NULL; in addOverlayPath() 234 if ((idmap = openAssetFromFileLocked(idmapPath, Asset::ACCESS_BUFFER)) == NULL) { in addOverlayPath() 290 Asset* assets[2] = {NULL, NULL}; in createIdmap() 300 Asset::ACCESS_BUFFER, ap); in createIdmap() 391 Asset* AssetManager::open(const char* fileName, AccessMode mode) in open() 409 Asset* pAsset = openNonAssetInPathLocked(assetName.string(), mode, mAssetPaths.itemAt(i)); in open() 423 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie) in openNonAsset() 437 Asset* pAsset = openNonAssetInPathLocked( in openNonAsset() 448 Asset* AssetManager::openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode) in openNonAsset() [all …]
|
D | ApkAssets.cpp | 70 loaded_apk->Open("resources.arsc", Asset::AccessMode::ACCESS_BUFFER); in LoadImpl() 86 std::unique_ptr<Asset> ApkAssets::Open(const std::string& path, Asset::AccessMode mode) const { in Open() 106 std::unique_ptr<Asset> asset = in Open() 107 Asset::createFromCompressedMap(std::move(map), entry.uncompressed_length, mode); in Open() 121 std::unique_ptr<Asset> asset = Asset::createFromUncompressedMap(std::move(map), mode); in Open()
|
D | AssetManager2.cpp | 191 std::unique_ptr<Asset> AssetManager2::Open(const std::string& filename, Asset::AccessMode mode) { in Open() 196 std::unique_ptr<Asset> AssetManager2::Open(const std::string& filename, ApkAssetsCookie cookie, in Open() 197 Asset::AccessMode mode) { in Open() 234 std::unique_ptr<Asset> AssetManager2::OpenNonAsset(const std::string& filename, in OpenNonAsset() 235 Asset::AccessMode mode, in OpenNonAsset() 239 std::unique_ptr<Asset> asset = apk_assets_[i]->Open(filename, mode); in OpenNonAsset() 254 std::unique_ptr<Asset> AssetManager2::OpenNonAsset(const std::string& filename, in OpenNonAsset() 255 ApkAssetsCookie cookie, Asset::AccessMode mode) { in OpenNonAsset()
|
/frameworks/base/native/android/ |
D | asset_manager.cpp | 49 Asset* mAsset; 51 explicit AAsset(Asset* asset) : mAsset(asset) { } in AAsset() 89 Asset::AccessMode amMode; in AAssetManager_open() 92 amMode = Asset::ACCESS_UNKNOWN; in AAssetManager_open() 95 amMode = Asset::ACCESS_RANDOM; in AAssetManager_open() 98 amMode = Asset::ACCESS_STREAMING; in AAssetManager_open() 101 amMode = Asset::ACCESS_BUFFER; in AAssetManager_open() 108 Asset* asset = mgr->open(filename, amMode); in AAssetManager_open()
|
/frameworks/base/core/jni/android/graphics/ |
D | Utils.h | 31 explicit AssetStreamAdaptor(Asset*); 41 Asset* fAsset; 50 SkMemoryStream* CopyAssetToStream(Asset*);
|
D | FontFamily.cpp | 215 delete static_cast<Asset*>(context); in releaseAsset() 237 Asset* asset; in FontFamily_addFontFromAssetManager() 239 asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in FontFamily_addFontFromAssetManager() 242 Asset::ACCESS_BUFFER) : mgr->openNonAsset(str.c_str(), Asset::ACCESS_BUFFER); in FontFamily_addFontFromAssetManager()
|
D | Utils.cpp | 23 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset) in AssetStreamAdaptor() 83 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { in CopyAssetToStream()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 238 if (mode != Asset::ACCESS_UNKNOWN && mode != Asset::ACCESS_RANDOM in android_content_AssetManager_openAsset() 239 && mode != Asset::ACCESS_STREAMING && mode != Asset::ACCESS_BUFFER) { in android_content_AssetManager_openAsset() 244 Asset* a = am->open(fileName8.c_str(), (Asset::AccessMode)mode); in android_content_AssetManager_openAsset() 256 static jobject returnParcelFileDescriptor(JNIEnv* env, Asset* a, jlongArray outOffsets) in returnParcelFileDescriptor() 303 Asset* a = am->open(fileName8.c_str(), Asset::ACCESS_RANDOM); in android_content_AssetManager_openAssetFd() 332 if (mode != Asset::ACCESS_UNKNOWN && mode != Asset::ACCESS_RANDOM in android_content_AssetManager_openNonAssetNative() 333 && mode != Asset::ACCESS_STREAMING && mode != Asset::ACCESS_BUFFER) { in android_content_AssetManager_openNonAssetNative() 338 Asset* a = cookie in android_content_AssetManager_openNonAssetNative() 340 (Asset::AccessMode)mode) in android_content_AssetManager_openNonAssetNative() 341 : am->openNonAsset(fileName8.c_str(), (Asset::AccessMode)mode); in android_content_AssetManager_openNonAssetNative() [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 | 46 Asset asset; in Parse() 64 const Asset& asset_from_emm) { in Decrypt() 69 Asset asset(asset_from_emm); in Decrypt()
|
D | ecm_generator.cpp | 59 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset, in DecodeECM() 77 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.
|