HomeSort by relevance Sort by last modified time
    Searched refs:Asset (Results 1 - 25 of 69) sorted by null

1 2 3

  /frameworks/base/libs/androidfw/tests/
Asset_test.cpp 17 #include "androidfw/Asset.h"
24 const int32_t count = Asset::getGlobalCount();
25 Asset* asset = new _FileAsset(); local
26 EXPECT_EQ(count + 1, Asset::getGlobalCount());
27 delete asset;
28 EXPECT_EQ(count, Asset::getGlobalCount());
32 const int32_t count = Asset::getGlobalCount();
33 Asset* asset = new _CompressedAsset() local
    [all...]
  /frameworks/av/drm/mediacas/plugins/clearkey/
ClearKeyLicenseFetcher.h 33 virtual status_t FetchLicense(uint64_t asset_id, Asset* asset);
36 Asset asset_;
ecm_generator.h 47 // 12 - 15 : Asset ID
50 // The clear asset ID (bytes 12-15) is compared to the encrypted asset ID
62 // asset->id
71 // |asset|, |content_key|, |default_fields| are owned by caller and must not
76 // Asset asset;
80 // status_t status = ecm_generator::DecodeECM(ecm, &asset, &content_key, &default_fields);
81 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset,
    [all...]
ClearKeyLicenseFetcher.cpp 36 uint64_t /* asset_id */, Asset* asset) {
37 *asset = asset_;
LicenseFetcher.h 36 // Fetches license based on |asset_id|. On return, |asset| contains the
38 // |asset| must be non-null.
40 uint64_t asset_id, clearkeycas::Asset* asset) = 0;
JsonAssetLoader.h 38 const String8& jsonAssetString, Asset *asset);
47 bool findKey(const String8& jsonObject, Asset *asset);
ClearKeyFetcher.h 54 clearkeycas::Asset asset_;
ecm_generator.cpp 57 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset,
59 CHECK(asset);
63 status_t status = DecodeECMClearFields(ecm, asset, default_fields);
75 status_t DecodeECMClearFields(const sp<ABuffer>& ecm, Asset* asset,
77 CHECK(asset);
96 asset->set_id(LoadNext32(&ptr));
97 if (asset->id() == 0) {
ecm.cpp 46 Asset asset; local
49 buffer_as_binary, &asset, &default_fields);
54 set_asset_id(asset.id());
64 const Asset& asset_from_emm) {
65 // Invariant: asset has id. These are postconditions for Emm::Decrypt().
68 // DecodeEcm fills in |asset|.id() with the asset_id from the encoded Ecm.
69 Asset asset(asset_from_emm);
73 buffer_as_binary, &asset, &content_key, &default_fields)
    [all...]
  /frameworks/base/libs/androidfw/include/androidfw/
Asset.h 18 // Class providing access to a read-only asset. Asset objects are NOT
44 * "Asset" is the base class for all types of assets. The classes below
48 class Asset {
50 virtual ~Asset(void) = default;
55 /* used when opening an asset */
83 * Close the asset, freeing all associated resources.
103 * Open a new file descriptor that can be used to read this asset.
105 * asset is compressed).
110 * Return whether this asset's buffer is allocated in RAM (not mmapped)
    [all...]
ApkAssets.h 26 #include "androidfw/Asset.h"
65 std::unique_ptr<Asset> Open(const std::string& path,
66 Asset::AccessMode mode = Asset::AccessMode::ACCESS_RANDOM) const;
84 std::unique_ptr<Asset> idmap_asset,
88 // Creates an Asset from any file on the file system.
89 static std::unique_ptr<Asset> CreateAssetFromFile(const std::string& path);
97 std::unique_ptr<Asset> resources_asset_;
98 std::unique_ptr<Asset> idmap_asset_;
AssetManager.h 18 // Asset management class. AssetManager objects are thread-safe.
23 #include <androidfw/Asset.h>
44 class Asset; // fwd decl for things that include Asset.h first
53 * The purpose of the AssetManager is to create Asset objects.
55 * The asset hierarchy may be examined like a filesystem, using
83 * added asset path will be examined first when searching for assets,
89 * newly-added asset source.
104 * newly-added asset source.
116 * Iterate over the asset paths in this manager. (Previousl
    [all...]
AssetManager2.h 28 #include "androidfw/Asset.h"
105 // Returns the string pool for the given asset cookie.
148 std::unique_ptr<Asset> Open(const std::string& filename, Asset::AccessMode mode) const;
152 std::unique_ptr<Asset> Open(const std::string& filename, ApkAssetsCookie cookie,
153 Asset::AccessMode mode) const;
165 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, Asset::AccessMode mode,
171 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, ApkAssetsCookie cookie,
172 Asset::AccessMode mode) const
    [all...]
  /frameworks/base/core/jni/android/graphics/
Utils.h 25 #include <androidfw/Asset.h>
31 explicit AssetStreamAdaptor(Asset*);
47 Asset* fAsset;
51 * Make a deep copy of the asset, and return it as a stream, or NULL if there
53 * FIXME: If we could "ref/reopen" the asset, we may not need to copy it here.
56 SkMemoryStream* CopyAssetToStream(Asset*);
  /frameworks/base/native/android/
asset_manager.cpp 22 #include <androidfw/Asset.h>
51 std::unique_ptr<Asset> mAsset;
53 explicit AAsset(std::unique_ptr<Asset> asset) : mAsset(std::move(asset)) { }
59 * Asset Manager functionality
68 Asset::AccessMode amMode;
71 amMode = Asset::ACCESS_UNKNOWN;
74 amMode = Asset::ACCESS_RANDOM;
77 amMode = Asset::ACCESS_STREAMING
87 std::unique_ptr<Asset> asset = locked_mgr->Open(filename, amMode); local
    [all...]
  /frameworks/av/drm/mediacas/plugins/clearkey/protos/
license_protos.proto 23 // The Asset is the data describing licensing requirements and polciy for a
24 // customer's video asset.
29 message Asset {
40 // Organization-specified name of the asset. Required. Must not be empty.
45 // Organization table and part of the primary key for the Asset table.
49 optional string policy_name = 4; // Name of the Policy to apply to this asset.
59 // asset keys per asset. This is not supported in this implementation.
61 optional bytes encryption_key = 1; // 256-byte key for the asset.
  /external/skia/infra/bots/assets/skimage/
create.py 9 """Create the asset."""
18 """Create the asset."""
21 asset = asset_utils.Asset(common.ASSET_NAME, asset_utils.MultiStore())
22 asset.download_current_version(target_dir)
  /external/skqp/infra/bots/assets/skimage/
create.py 9 """Create the asset."""
18 """Create the asset."""
21 asset = asset_utils.Asset(common.ASSET_NAME, asset_utils.MultiStore())
22 asset.download_current_version(target_dir)
  /frameworks/base/libs/androidfw/
Asset.cpp 18 // Provide access to a read-only asset.
21 #define LOG_TAG "asset"
24 #include <androidfw/Asset.h>
53 static Asset* gHead = NULL;
54 static Asset* gTail = NULL;
56 void Asset::registerAsset(Asset* asset)
60 asset->mNext = asset->mPrev = NULL
    [all...]
ApkAssets.cpp 30 #include "androidfw/Asset.h"
57 std::unique_ptr<Asset> idmap_asset = CreateAssetFromFile(idmap_path);
81 std::unique_ptr<Asset> ApkAssets::CreateAssetFromFile(const std::string& path) {
99 return Asset::createFromUncompressedMap(std::move(file_map), Asset::AccessMode::ACCESS_RANDOM);
103 unique_fd fd, const std::string& path, std::unique_ptr<Asset> idmap_asset,
137 loaded_apk->resources_asset_ = loaded_apk->Open(kResourcesArsc, Asset::AccessMode::ACCESS_BUFFER);
143 // Must retain ownership of the IDMAP Asset so that all pointers to its mmapped data remain valid.
160 std::unique_ptr<Asset> ApkAssets::Open(const std::string& path, Asset::AccessMode mode) const
178 std::unique_ptr<Asset> asset = local
193 std::unique_ptr<Asset> asset = Asset::createFromUncompressedMap(std::move(map), mode); local
    [all...]
AssetManager.cpp 21 #define LOG_TAG "asset"
25 #include <androidfw/Asset.h>
69 static Asset* const kExcludedAsset = (Asset*) 0xd000000d;
190 ALOGW("Asset path %s is neither a directory nor file (type=%d).",
206 ALOGV("In %p Asset %s path: %s", this,
246 Asset* idmap = NULL;
247 if ((idmap = openAssetFromFileLocked(idmapPath, Asset::ACCESS_BUFFER)) == NULL) {
310 ALOGV("In %p Asset fd %d name: %s", this, fd, ap.path.string());
331 Asset* assets[2] = {NULL, NULL}
    [all...]
  /external/skia/infra/bots/assets/
assets.py 27 """Add a new asset."""
28 asset_utils.Asset.add(args.asset_name,
33 """Remove an asset."""
34 asset_utils.Asset(args.asset_name,
39 """Download the current version of an asset."""
40 asset = asset_utils.Asset(args.asset_name,
42 asset.download_current_version(args.target_dir)
46 """Upload a new version of the asset."""
47 asset = asset_utils.Asset(args.asset_name
    [all...]
  /external/skqp/infra/bots/assets/
assets.py 27 """Add a new asset."""
28 asset_utils.Asset.add(args.asset_name,
33 """Remove an asset."""
34 asset_utils.Asset(args.asset_name,
39 """Download the current version of an asset."""
40 asset = asset_utils.Asset(args.asset_name,
42 asset.download_current_version(args.target_dir)
46 """Upload a new version of the asset."""
47 asset = asset_utils.Asset(args.asset_name
    [all...]
  /frameworks/rs/
rsFileA3D.h 30 class Asset;
64 bool load(Asset *asset);
  /frameworks/base/core/jni/
android_util_AssetManager.cpp 18 #define LOG_TAG "asset"
36 #include "androidfw/Asset.h"
103 // Java asset cookies have 0 as an invalid cookie, but TypedArray expects < 0.
246 static jobject ReturnParcelFileDescriptor(JNIEnv* env, std::unique_ptr<Asset> asset,
249 int fd = asset->openFileDescriptor(&start_offset, &length);
250 asset.reset();
279 return Asset::getGlobalCount();
283 String8 alloc = Asset::getAssetAllocations();
453 if (access_mode != Asset::ACCESS_UNKNOWN && access_mode != Asset::ACCESS_RANDOM &
460 std::unique_ptr<Asset> asset = local
480 std::unique_ptr<Asset> asset = assetmanager->Open(asset_path_utf8.c_str(), Asset::ACCESS_RANDOM); local
506 std::unique_ptr<Asset> asset; local
534 std::unique_ptr<Asset> asset; local
560 std::unique_ptr<Asset> asset; local
1271 Asset* asset = reinterpret_cast<Asset*>(asset_ptr); local
1295 Asset* asset = reinterpret_cast<Asset*>(asset_ptr); local
1306 Asset* asset = reinterpret_cast<Asset*>(asset_ptr); local
1312 Asset* asset = reinterpret_cast<Asset*>(asset_ptr); local
1317 Asset* asset = reinterpret_cast<Asset*>(asset_ptr); local
    [all...]

Completed in 524 milliseconds

1 2 3