/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 | 131 int AAsset_read(AAsset* asset, void* buf, size_t count); 139 off_t AAsset_seek(AAsset* asset, off_t offset, int whence) 151 off64_t AAsset_seek64(AAsset* asset, off64_t offset, int whence); 156 void AAsset_close(AAsset* asset); 163 const void* AAsset_getBuffer(AAsset* asset); 168 off_t AAsset_getLength(AAsset* asset) 175 off64_t AAsset_getLength64(AAsset* asset); 180 off_t AAsset_getRemainingLength(AAsset* asset) 188 off64_t AAsset_getRemainingLength64(AAsset* asset); 198 int AAsset_openFileDescriptor(AAsset* asset, off_t* outStart, off_t* outLength) [all …]
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | DirectStatementRetriever.java | 131 private String computeAssociationJsonUrl(WebAsset asset) { in computeAssociationJsonUrl() argument 133 return new URL(asset.getScheme(), asset.getDomain(), asset.getPort(), in computeAssociationJsonUrl() 178 private Result retrieveFromWeb(WebAsset asset) in retrieveFromWeb() argument 180 return retrieveStatementFromUrl(computeAssociationJsonUrl(asset), MAX_INCLUDE_LEVEL, asset); in retrieveFromWeb() 183 private Result retrieveFromAndroid(AndroidAppAsset asset) throws AssociationServiceException { in retrieveFromAndroid() argument 188 List<String> certFps = mAndroidFetcher.getCertFingerprints(asset.getPackageName()); in retrieveFromAndroid() 189 if (!Utils.hasCommonString(certFps, asset.getCertFingerprints())) { in retrieveFromAndroid() 194 AndroidAppAsset actualSource = AndroidAppAsset.create(asset.getPackageName(), certFps); in retrieveFromAndroid() 195 for (String statementJson : mAndroidFetcher.getStatements(asset.getPackageName())) { in retrieveFromAndroid()
|
D | WebAsset.java | 84 StringBuilder asset = new StringBuilder(); in toString() local 85 asset.append("WebAsset: "); in toString() 86 asset.append(toJson()); in toString() 87 return asset.toString(); in toString() 120 protected static WebAsset create(JSONObject asset) in create() argument 122 if (asset.optString(Utils.WEB_ASSET_FIELD_SITE).equals("")) { in create() 129 url = new URL(asset.optString(Utils.WEB_ASSET_FIELD_SITE)); in create()
|
D | AssetFactory.java | 35 public static AbstractAsset create(JSONObject asset) in create() argument 37 String namespace = asset.optString(Utils.NAMESPACE_FIELD, null); in create() 44 return WebAsset.create(asset); in create() 46 return AndroidAppAsset.create(asset); in create()
|
D | AndroidAppAsset.java | 77 StringBuilder asset = new StringBuilder(); in toString() local 78 asset.append("AndroidAppAsset: "); in toString() 79 asset.append(toJson()); in toString() 80 return asset.toString(); in toString() 115 public static AndroidAppAsset create(JSONObject asset) in create() argument 117 String packageName = asset.optString(Utils.ANDROID_APP_ASSET_FIELD_PACKAGE_NAME); in create() 123 JSONArray certArray = asset.optJSONArray(Utils.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/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.string())); in findKey() 102 asset->set_name(value.string()); in findKey() 109 asset->set_lowercase_organization_name(value.string()); in findKey() 117 asset->set_cas_type((Asset_CasType)atoi(value.string())); in findKey()
|
D | ClearKeyLicenseFetcher.cpp | 36 uint64_t /* asset_id */, Asset* asset) { in FetchLicense() argument 37 *asset = asset_; in FetchLicense()
|
/frameworks/base/core/jni/android/graphics/ |
D | Utils.cpp | 23 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset) in AssetStreamAdaptor() argument 24 : fAsset(asset) in AssetStreamAdaptor() 115 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { in CopyAssetToStream() argument 116 if (NULL == asset) { in CopyAssetToStream() 120 const off64_t seekReturnVal = asset->seek(0, SEEK_SET); in CopyAssetToStream() 126 const off64_t size = asset->getLength(); in CopyAssetToStream() 133 const off64_t len = asset->read(data->writable_data(), size); in CopyAssetToStream()
|
D | FontFamily.cpp | 238 std::unique_ptr<Asset> asset; in FontFamily_addFontFromAssetManager() local 242 asset = locked_mgr->Open(str.c_str(), Asset::ACCESS_BUFFER); in FontFamily_addFontFromAssetManager() 245 asset = locked_mgr->OpenNonAsset(str.c_str(), static_cast<ApkAssetsCookie>(cookie - 1), in FontFamily_addFontFromAssetManager() 248 asset = locked_mgr->OpenNonAsset(str.c_str(), Asset::ACCESS_BUFFER); in FontFamily_addFontFromAssetManager() 252 if (nullptr == asset) { in FontFamily_addFontFromAssetManager() 257 const void* buf = asset->getBuffer(false); in FontFamily_addFontFromAssetManager() 263 sk_sp<SkData> data(SkData::MakeWithProc(buf, asset->getLength(), releaseAsset, in FontFamily_addFontFromAssetManager() 264 asset.release())); in FontFamily_addFontFromAssetManager()
|
/frameworks/base/core/jni/android/graphics/fonts/ |
D | Font.cpp | 55 static void releaseAsset(jlong asset) { in releaseAsset() argument 56 delete toAsset(asset); in releaseAsset() 97 std::unique_ptr<Asset> asset; in Font_Builder_getNativeAsset() local 101 asset = locked_mgr->Open(str.c_str(), Asset::ACCESS_BUFFER); in Font_Builder_getNativeAsset() 104 asset = locked_mgr->OpenNonAsset(str.c_str(), static_cast<ApkAssetsCookie>(cookie - 1), in Font_Builder_getNativeAsset() 107 asset = locked_mgr->OpenNonAsset(str.c_str(), Asset::ACCESS_BUFFER); in Font_Builder_getNativeAsset() 111 return reinterpret_cast<jlong>(asset.release()); in Font_Builder_getNativeAsset() 116 Asset* asset = toAsset(nativeAsset); in Font_Builder_getAssetBuffer() local 117 return env->NewDirectByteBuffer(const_cast<void*>(asset->getBuffer(false)), asset->getLength()); in Font_Builder_getAssetBuffer()
|
/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 | ApkAssets.cpp | 184 std::unique_ptr<Asset> asset = in Open() local 186 if (asset == nullptr) { in Open() 190 return asset; in Open() 199 std::unique_ptr<Asset> asset = Asset::createFromUncompressedMap(std::move(map), mode); in Open() local 200 if (asset == nullptr) { in Open() 204 return asset; in Open()
|
/frameworks/base/libs/androidfw/tests/ |
D | AttributeResolution_bench.cpp | 49 std::unique_ptr<Asset> asset = in BM_ApplyStyle() local 51 if (asset == nullptr) { in BM_ApplyStyle() 57 if (xml_tree.setTo(asset->getBuffer(true), asset->getLength(), false /*copyData*/) != NO_ERROR) { in BM_ApplyStyle() 130 std::unique_ptr<Asset> asset = assetmanager.OpenNonAsset( in BM_ApplyStyleFramework() local 132 if (asset == nullptr) { in BM_ApplyStyleFramework() 138 if (xml_tree.setTo(asset->getBuffer(true), asset->getLength(), false /*copyData*/) != NO_ERROR) { in BM_ApplyStyleFramework()
|
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()
|
/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/layoutlib/bridge/tests/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_content_res_ApkAssets.cpp | 120 std::unique_ptr<Asset> asset = apk_assets->Open(path_utf8.c_str(), in NativeOpenXml() local 122 if (asset == nullptr) { in NativeOpenXml() 130 status_t err = xml_tree->setTo(asset->getBuffer(true), asset->getLength(), true); in NativeOpenXml() 131 asset.reset(); in NativeOpenXml()
|
D | android_util_AssetManager.cpp | 402 static jobject ReturnParcelFileDescriptor(JNIEnv* env, std::unique_ptr<Asset> asset, in ReturnParcelFileDescriptor() argument 405 int fd = asset->openFileDescriptor(&start_offset, &length); in ReturnParcelFileDescriptor() 406 asset.reset(); in ReturnParcelFileDescriptor() 617 std::unique_ptr<Asset> asset = in NativeOpenAsset() local 619 if (!asset) { in NativeOpenAsset() 623 return reinterpret_cast<jlong>(asset.release()); in NativeOpenAsset() 637 std::unique_ptr<Asset> asset = assetmanager->Open(asset_path_utf8.c_str(), Asset::ACCESS_RANDOM); in NativeOpenAssetFd() local 638 if (!asset) { in NativeOpenAssetFd() 642 return ReturnParcelFileDescriptor(env, std::move(asset), out_offsets); in NativeOpenAssetFd() 663 std::unique_ptr<Asset> asset; in NativeOpenNonAsset() local [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
|