/frameworks/base/libs/androidfw/tests/ |
H A D | Asset_test.cpp | 25 Asset* asset = new _FileAsset(); local 27 delete asset; 33 Asset* asset = new _CompressedAsset(); local 35 delete asset;
|
H A D | ApkAssets_test.cpp | 35 std::unique_ptr<Asset> asset = loaded_apk->Open("res/layout/main.xml"); local 36 ASSERT_NE(nullptr, asset); 78 auto asset = loaded_apk->Open("assets/uncompressed.txt", Asset::ACCESS_UNKNOWN); local 79 ASSERT_NE(nullptr, asset); 82 base::unique_fd fd(asset->openFileDescriptor(&start, &length));
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ClearKeyLicenseFetcher.cpp | 36 uint64_t /* asset_id */, Asset* asset) { 37 *asset = asset_; 35 FetchLicense( uint64_t , Asset* asset) argument
|
H A D | ecm_generator.cpp | 59 status_t DecodeECM(const sp<ABuffer>& ecm, Asset* asset, argument 61 CHECK(asset); 65 status_t status = DecodeECMClearFields(ecm, asset, default_fields); 77 status_t DecodeECMClearFields(const sp<ABuffer>& ecm, Asset* asset, argument 79 CHECK(asset); 98 asset->set_id(LoadNext32(&ptr)); 99 if (asset->id() == 0) {
|
H A D | JsonAssetLoader.cpp | 48 * Extract a clear key asset from a JSON string. 50 * Returns OK if a clear key asset is extracted successfully, 52 * clear key asset. 55 const String8& jsonAssetString, Asset *asset) { 67 if (!findKey(mJsonObjects[0], asset)) { 88 bool JsonAssetLoader::findKey(const String8& jsonObject, Asset *asset) { argument 97 asset->set_id(atoi(value.string())); 104 asset->set_name(value.string()); 111 asset->set_lowercase_organization_name(value.string()); 119 asset 54 extractAssetFromString( const String8& jsonAssetString, Asset *asset) argument [all...] |
H A D | ecm.cpp | 46 Asset asset; local 49 buffer_as_binary, &asset, &default_fields); 54 set_asset_id(asset.id()); 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); 78 if (asset.id() != asset_from_emm.id()) { 80 asset_from_emm.id(), asset.id()); 83 set_asset_id(asset [all...] |
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
H A D | AbstractAssetMatcher.java | 22 * An asset matcher that can match asset with the given query. 27 * Returns true if this AssetMatcher matches the asset. 29 public abstract boolean matches(AbstractAsset asset); argument
|
H A D | AndroidAppAssetMatcher.java | 35 public boolean matches(AbstractAsset asset) { argument 36 if (asset instanceof AndroidAppAsset) { 37 AndroidAppAsset androidAppAsset = (AndroidAppAsset) asset;
|
H A D | AssetFactory.java | 22 * Factory to create asset from JSON string. 31 * Checks that the input is a valid asset with purposes. 33 * @throws AssociationServiceException if the asset is not well formatted. 35 public static AbstractAsset create(JSONObject asset) argument 37 String namespace = asset.optString(Utils.NAMESPACE_FIELD, null); 44 return WebAsset.create(asset); 46 return AndroidAppAsset.create(asset);
|
H A D | WebAssetMatcher.java | 31 public boolean matches(AbstractAsset asset) { argument 32 if (asset instanceof WebAsset) { 33 WebAsset webAsset = (WebAsset) asset;
|
H A D | AndroidAppAsset.java | 30 * Immutable value type that names an Android app asset. 77 StringBuilder asset = new StringBuilder(); 78 asset.append("AndroidAppAsset: "); 79 asset.append(toJson()); 80 return asset.toString(); 109 * Checks that the input is a valid Android app asset. 111 * @param asset a JSONObject that has "namespace", "package_name", and 113 * @throws AssociationServiceException if the asset is not well formatted. 115 public static AndroidAppAsset create(JSONObject asset) argument 117 String packageName = asset [all...] |
H A D | WebAsset.java | 26 * Immutable value type that names a web asset. 28 * <p>A web asset can be named by its protocol, domain, and port using this JSON string: 84 StringBuilder asset = new StringBuilder(); 85 asset.append("WebAsset: "); 86 asset.append(toJson()); 87 return asset.toString(); 111 // Only allow insecure include file if the asset scheme is http. 116 * Checks that the input is a valid web asset. 118 * @throws AssociationServiceException if the asset is not well formatted. 120 protected static WebAsset create(JSONObject asset) argument [all...] |
H A D | DirectStatementRetriever.java | 33 * the asset. 131 private String computeAssociationJsonUrl(WebAsset asset) { argument 133 return new URL(asset.getScheme(), asset.getDomain(), asset.getPort(), 178 private Result retrieveFromWeb(WebAsset asset) argument 180 return retrieveStatementFromUrl(computeAssociationJsonUrl(asset), MAX_INCLUDE_LEVEL, asset); 183 private Result retrieveFromAndroid(AndroidAppAsset asset) throws AssociationServiceException { argument 188 List<String> certFps = mAndroidFetcher.getCertFingerprints(asset [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 109 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Utils.cpp | 23 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset) argument 24 : fAsset(asset) 59 // asset->seek returns new total offset 83 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { argument 84 if (NULL == asset) { 88 const off64_t seekReturnVal = asset->seek(0, SEEK_SET); 90 SkDebugf("---- copyAsset: asset rewind failed\n"); 94 const off64_t size = asset->getLength(); 96 SkDebugf("---- copyAsset: asset->getLength() returned %d\n", size); 101 const off64_t len = asset [all...] |
H A D | Movie.cpp | 84 android::Asset* asset = reinterpret_cast<android::Asset*>(native_asset); local 85 if (asset == NULL) return NULL; 86 android::AssetStreamAdaptor stream(asset);
|
H A D | BitmapRegionDecoder.cpp | 110 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 111 std::unique_ptr<SkMemoryStream> stream(CopyAssetToStream(asset));
|
H A D | FontFamily.cpp | 237 Asset* asset; local 239 asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); 241 asset = cookie ? mgr->openNonAsset(static_cast<int32_t>(cookie), str.c_str(), 245 if (NULL == asset) { 250 const void* buf = asset->getBuffer(false); 252 delete asset; 257 sk_sp<SkData> data(SkData::MakeWithProc(buf, asset->getLength(), releaseAsset, asset));
|
/frameworks/base/libs/androidfw/ |
H A D | ApkAssets.cpp | 106 std::unique_ptr<Asset> asset = local 108 if (asset == nullptr) { 112 return asset; 121 std::unique_ptr<Asset> asset = Asset::createFromUncompressedMap(std::move(map), mode); local 122 if (asset == nullptr) { 126 return asset;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapRegionDecoder.java | 277 long asset, boolean isShareable); 276 nativeNewInstance( long asset, boolean isShareable) argument
|
H A D | Movie.java | 56 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); 57 return nativeDecodeAsset(asset); 63 private static native Movie nativeDecodeAsset(long asset); argument
|
/frameworks/base/native/android/ |
H A D | asset_manager.cpp | 51 explicit AAsset(Asset* asset) : mAsset(asset) { } argument 108 Asset* asset = mgr->open(filename, amMode); local 109 if (asset == NULL) { 113 return new AAsset(asset); 171 int AAsset_read(AAsset* asset, void* buf, size_t count) argument 173 return asset->mAsset->read(buf, (size_t)count); 176 off_t AAsset_seek(AAsset* asset, off_t offset, int whence) argument 178 return asset->mAsset->seek(offset, whence); 181 off64_t AAsset_seek64(AAsset* asset, off64_ argument 186 AAsset_close(AAsset* asset) argument 192 AAsset_getBuffer(AAsset* asset) argument 197 AAsset_getLength(AAsset* asset) argument 202 AAsset_getLength64(AAsset* asset) argument 207 AAsset_getRemainingLength(AAsset* asset) argument 212 AAsset_getRemainingLength64(AAsset* asset) argument 217 AAsset_openFileDescriptor(AAsset* asset, off_t* outStart, off_t* outLength) argument 228 AAsset_openFileDescriptor64(AAsset* asset, off64_t* outStart, off64_t* outLength) argument 233 AAsset_isAllocated(AAsset* asset) argument [all...] |
/frameworks/base/tools/split-select/ |
H A D | Main.cpp | 131 Asset* asset = assetManager.openNonAsset(cookie, "AndroidManifest.xml", Asset::ACCESS_BUFFER); local 132 if (asset == NULL) { 137 if (xml.setTo(asset->getBuffer(true), asset->getLength(), false) != NO_ERROR) { 138 delete asset; 201 delete asset;
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | SetupWizardLayout.java | 224 * a suitable drawable from an asset and a horizontal repeating tile, use 238 * Set the illustration of the layout, which will be created asset and the horizontal tile as 239 * suitable. On phone layouts (not sw600dp), the asset will be scaled, maintaining aspect ratio. 241 * illustration area that the asset doesn't fill will be covered by the horizontalTile. 243 * @param asset Resource ID of the illustration asset. 246 public void setIllustration(int asset, int horizontalTile) { argument 250 final Drawable illustrationDrawable = getIllustration(asset, horizontalTile); 255 private void setIllustration(Drawable asset, Drawable horizontalTile) { argument 259 final Drawable illustrationDrawable = getIllustration(asset, horizontalTil 326 getIllustration(int asset, int horizontalTile) argument 334 getIllustration(Drawable asset, Drawable horizontalTile) argument [all...] |
/frameworks/rs/ |
H A D | rsFileA3D.cpp | 84 bool FileA3D::load(Asset *asset) { argument
|