/frameworks/base/native/android/ |
D | asset_manager.cpp | 53 explicit AAsset(std::unique_ptr<Asset> asset) : mAsset(std::move(asset)) { } in AAsset() 87 std::unique_ptr<Asset> asset = locked_mgr->Open(filename, amMode); in AAssetManager_open() local 88 if (asset == nullptr) { in AAssetManager_open() 91 return new AAsset(std::move(asset)); in AAssetManager_open() 149 int AAsset_read(AAsset* asset, void* buf, size_t count) in AAsset_read() argument 151 return asset->mAsset->read(buf, (size_t)count); in AAsset_read() 154 off_t AAsset_seek(AAsset* asset, off_t offset, int whence) in AAsset_seek() argument 156 return asset->mAsset->seek(offset, whence); in AAsset_seek() 159 off64_t AAsset_seek64(AAsset* asset, off64_t offset, int whence) in AAsset_seek64() argument 161 return asset->mAsset->seek(offset, whence); in AAsset_seek64() [all …]
|
/frameworks/native/include/android/ |
D | asset_manager.h | 135 int AAsset_read(AAsset* asset, void* buf, size_t count); 143 off_t AAsset_seek(AAsset* asset, off_t offset, int whence) 155 off64_t AAsset_seek64(AAsset* asset, off64_t offset, int whence); 160 void AAsset_close(AAsset* asset); 167 const void* AAsset_getBuffer(AAsset* asset); 172 off_t AAsset_getLength(AAsset* asset) 179 off64_t AAsset_getLength64(AAsset* asset); 184 off_t AAsset_getRemainingLength(AAsset* asset) 192 off64_t AAsset_getRemainingLength64(AAsset* asset); 202 int AAsset_openFileDescriptor(AAsset* asset, off_t* outStart, off_t* outLength) [all …]
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
D | ecm_generator.cpp | 57 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset, in DecodeECM() argument 59 CHECK(asset); in DecodeECM() 63 status_t status = DecodeECMClearFields(ecm, asset, default_fields); in DecodeECM() 75 status_t DecodeECMClearFields(const sp<ABuffer>& ecm, Asset* asset, in DecodeECMClearFields() argument 77 CHECK(asset); in DecodeECMClearFields() 96 asset->set_id(LoadNext32(&ptr)); in DecodeECMClearFields() 97 if (asset->id() == 0) { in DecodeECMClearFields()
|
D | ecm.cpp | 48 Asset asset; in Parse() local 51 buffer_as_binary, &asset, &default_fields); in Parse() 56 set_asset_id(asset.id()); in Parse() 71 Asset asset(asset_from_emm); in Decrypt() local 75 buffer_as_binary, &asset, &content_key, &default_fields); in Decrypt() 80 if (asset.id() != asset_from_emm.id()) { in Decrypt() 82 asset_from_emm.id(), asset.id()); in Decrypt() 85 set_asset_id(asset.id()); in Decrypt()
|
D | JsonAssetLoader.cpp | 53 const String8& jsonAssetString, Asset *asset) { in extractAssetFromString() argument 65 if (!findKey(mJsonObjects[0], asset)) { in extractAssetFromString() 86 bool JsonAssetLoader::findKey(const String8& jsonObject, Asset *asset) { in findKey() argument 95 asset->set_id(atoi(value.c_str())); in findKey() 102 asset->set_name(value.c_str()); in findKey() 109 asset->set_lowercase_organization_name(value.c_str()); in findKey() 117 asset->set_cas_type((Asset_CasType)atoi(value.c_str())); in findKey()
|
D | ClearKeyLicenseFetcher.cpp | 36 uint64_t /* asset_id */, Asset* asset) { in FetchLicense() argument 37 *asset = asset_; in FetchLicense()
|
D | ecm_generator.h | 81 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset, 105 status_t DecodeECMClearFields(const sp<ABuffer>& ecm, Asset* asset,
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | WebAsset.java | 86 StringBuilder asset = new StringBuilder(); in toString() local 87 asset.append("WebAsset: "); in toString() 88 asset.append(toJson()); in toString() 89 return asset.toString(); in toString() 122 protected static WebAsset create(JSONObject asset) in create() argument 124 if (asset.optString(StatementUtils.WEB_ASSET_FIELD_SITE).equals("")) { in create() 131 url = new URL(asset.optString(StatementUtils.WEB_ASSET_FIELD_SITE)); in create()
|
D | AssetFactory.java | 37 public static AbstractAsset create(JSONObject asset) in create() argument 39 String namespace = asset.optString(StatementUtils.NAMESPACE_FIELD, null); in create() 46 return WebAsset.create(asset); in create() 48 return AndroidAppAsset.create(asset); in create()
|
D | AndroidAppAsset.java | 81 StringBuilder asset = new StringBuilder(); in toString() local 82 asset.append("AndroidAppAsset: "); in toString() 83 asset.append(toJson()); in toString() 84 return asset.toString(); in toString() 119 public static AndroidAppAsset create(JSONObject asset) in create() argument 121 String packageName = asset.optString(StatementUtils.ANDROID_APP_ASSET_FIELD_PACKAGE_NAME); in create() 127 JSONArray certArray = asset.optJSONArray(StatementUtils.ANDROID_APP_ASSET_FIELD_CERT_FPS); in create()
|
D | WebAssetMatcher.java | 31 public boolean matches(AbstractAsset asset) { in matches() argument 32 if (asset instanceof WebAsset) { in matches() 33 WebAsset webAsset = (WebAsset) asset; in matches()
|
D | AndroidAppAssetMatcher.java | 35 public boolean matches(AbstractAsset asset) { in matches() argument 36 if (asset instanceof AndroidAppAsset) { in matches() 37 AndroidAppAsset androidAppAsset = (AndroidAppAsset) asset; in matches()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/network/retriever/ |
D | StatementRetriever.kt | 75 private suspend fun retrieveFromWeb(asset: WebAsset, network: Network? = null): Result? { in retrieveFromWeb() 76 val url = computeAssociationJsonUrl(asset) ?: return null in retrieveFromWeb() 77 return retrieve(url, MAX_INCLUDE_LEVEL, asset, network) in retrieveFromWeb() 80 private fun computeAssociationJsonUrl(asset: WebAsset) = tryOrNull { in computeAssociationJsonUrl() 81 URL(asset.scheme, asset.domain, asset.port, WELL_KNOWN_STATEMENT_PATH).toExternalForm() in computeAssociationJsonUrl()
|
/frameworks/base/libs/hwui/jni/ |
D | Utils.cpp | 27 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset) in AssetStreamAdaptor() argument 28 : fAsset(asset) in AssetStreamAdaptor() 119 sk_sp<SkData> android::CopyAssetToData(Asset* asset) { in CopyAssetToData() argument 120 if (NULL == asset) { in CopyAssetToData() 124 const off64_t seekReturnVal = asset->seek(0, SEEK_SET); in CopyAssetToData() 130 const off64_t size = asset->getLength(); in CopyAssetToData() 137 const off64_t len = asset->read(data->writable_data(), size); in CopyAssetToData()
|
/frameworks/base/libs/androidfw/tests/ |
D | Asset_test.cpp | 25 Asset* asset = new _FileAsset(); in TEST() local 27 delete asset; in TEST() 33 Asset* asset = new _CompressedAsset(); in TEST() local 35 delete asset; in TEST()
|
D | AttributeResolution_bench.cpp | 48 std::unique_ptr<Asset> asset = in BM_ApplyStyle() local 50 if (asset == nullptr) { in BM_ApplyStyle() 56 if (xml_tree.setTo(asset->getBuffer(true), asset->getLength(), false /*copyData*/) != NO_ERROR) { in BM_ApplyStyle() 121 std::unique_ptr<Asset> asset = in BM_ApplyStyleFramework() local 123 if (asset == nullptr) { in BM_ApplyStyleFramework() 129 if (xml_tree.setTo(asset->getBuffer(true), asset->getLength(), false /*copyData*/) != NO_ERROR) { in BM_ApplyStyleFramework()
|
D | Idmap_test.cpp | 153 auto asset = asset_manager.OpenNonAsset("res/layout/hello_view.xml", value->cookie, in TEST_F() local 157 status_t err = xml_tree->setTo(asset->getBuffer(true), asset->getLength(), false); in TEST_F() 193 auto asset = AssetsProvider::CreateAssetFromFile(GetTestDataPath() + "/loader/resources.arsc"); in TEST_F() local 194 ASSERT_THAT(asset, NotNull()); in TEST_F() 196 auto loader_assets = ApkAssets::LoadTable(std::move(asset), EmptyAssetsProvider::Create(), in TEST_F()
|
/frameworks/base/libs/androidfw/ |
D | Asset.cpp | 56 void Asset::registerAsset(Asset* asset) in registerAsset() argument 60 asset->mNext = asset->mPrev = NULL; in registerAsset() 62 gHead = gTail = asset; in registerAsset() 64 asset->mPrev = gTail; in registerAsset() 65 gTail->mNext = asset; in registerAsset() 66 gTail = asset; in registerAsset() 70 ALOGI("Creating Asset %p #%d\n", asset, gCount); in registerAsset() 74 void Asset::unregisterAsset(Asset* asset) in unregisterAsset() argument 78 if (gHead == asset) { in unregisterAsset() 79 gHead = asset->mNext; in unregisterAsset() [all …]
|
D | AssetsProvider.cpp | 184 std::unique_ptr<Asset> asset = in OpenInternal() local 186 if (asset == nullptr) { in OpenInternal() 191 return asset; in OpenInternal() 212 auto asset = Asset::createFromUncompressedMap(std::move(asset_map), mode, std::move(ufd)); in OpenInternal() local 213 if (asset == nullptr) { in OpenInternal() 217 return asset; in OpenInternal() 382 auto asset = primary_->Open(path, mode, file_exists); in OpenInternal() local 383 return (asset) ? std::move(asset) : secondary_->Open(path, mode, file_exists); in OpenInternal()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
D | SetupWizardLayout.java | 243 public void setIllustration(int asset, int horizontalTile) { in setIllustration() argument 247 final Drawable illustrationDrawable = getIllustration(asset, horizontalTile); in setIllustration() 252 private void setIllustration(Drawable asset, Drawable horizontalTile) { in setIllustration() argument 256 final Drawable illustrationDrawable = getIllustration(asset, horizontalTile); in setIllustration() 322 private Drawable getIllustration(int asset, int horizontalTile) { in getIllustration() argument 324 final Drawable assetDrawable = context.getResources().getDrawable(asset); in getIllustration() 330 private Drawable getIllustration(Drawable asset, Drawable horizontalTile) { in getIllustration() argument 338 if (asset instanceof BitmapDrawable) { in getIllustration() 340 ((BitmapDrawable) asset).setGravity(Gravity.TOP | Gravity.LEFT); in getIllustration() 342 final LayerDrawable layers = new LayerDrawable(new Drawable[] {horizontalTile, asset}); in getIllustration() [all …]
|
/frameworks/av/drm/mediacas/plugins/clearkey/protos/ |
D | license_protos.proto | 24 // customer's video asset. 40 // Organization-specified name of the asset. Required. Must not be empty. 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.
|
/frameworks/libs/systemui/weathereffects/src/com/google/android/wallpaper/weathereffects/ |
D | WeatherEngine.kt | 92 interactor.wallpaperImageModel.collect { asset -> in <lambda>() method 93 if (asset == null || asset == currentAssets) return@collect in <lambda>() 95 createWeatherEffect(asset.foreground, asset.background, asset.weatherEffect) in <lambda>()
|
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/ |
D | TestAssetRepository.java | 40 File asset = new File(path); in open() local 41 if (asset.isFile()) { in open() 42 return new FileInputStream(asset); in open()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 248 static jobject ReturnParcelFileDescriptor(JNIEnv* env, std::unique_ptr<Asset> asset, in ReturnParcelFileDescriptor() argument 251 int fd = asset->openFileDescriptor(&start_offset, &length); in ReturnParcelFileDescriptor() 252 asset.reset(); in ReturnParcelFileDescriptor() 280 static jobject ReturnParcelFileDescriptor(JNIEnv* env, std::unique_ptr<Asset> asset, in ReturnParcelFileDescriptor() argument 518 std::unique_ptr<Asset> asset = in NativeOpenAsset() local 520 if (!asset) { in NativeOpenAsset() 524 return reinterpret_cast<jlong>(asset.release()); in NativeOpenAsset() 538 std::unique_ptr<Asset> asset = assetmanager->Open(asset_path_utf8.c_str(), Asset::ACCESS_RANDOM); in NativeOpenAssetFd() local 539 if (!asset) { in NativeOpenAssetFd() 543 return ReturnParcelFileDescriptor(env, std::move(asset), out_offsets); in NativeOpenAssetFd() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Movie.java | 65 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in decodeStream() local 66 return nativeDecodeAsset(asset); in decodeStream() 72 private static native Movie nativeDecodeAsset(long asset); in nativeDecodeAsset() argument
|