/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...] |
ApkAssets_test.cpp | 35 std::unique_ptr<Asset> asset = loaded_apk->Open("res/layout/main.xml"); local 36 ASSERT_NE(nullptr, asset); 63 std::unique_ptr<Asset> assets = loaded_apk->Open("res/layout/main.xml", Asset::ACCESS_BUFFER); 68 std::unique_ptr<Asset> assets = loaded_apk->Open("res/layout/main.xml", Asset::ACCESS_BUFFER); 78 auto asset = loaded_apk->Open("assets/uncompressed.txt", Asset::ACCESS_UNKNOWN); local 79 ASSERT_NE(nullptr, asset); [all...] |
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/ |
TestAssetRepository.java | 32 File asset = new File(path); local 33 if (asset.isFile()) { 34 return new FileInputStream(asset);
|
/frameworks/base/libs/androidfw/ |
ApkAssets.cpp | 28 #include "androidfw/Asset.h" 70 loaded_apk->Open("resources.arsc", Asset::AccessMode::ACCESS_BUFFER); 86 std::unique_ptr<Asset> ApkAssets::Open(const std::string& path, Asset::AccessMode mode) const { 106 std::unique_ptr<Asset> asset = local 107 Asset::createFromCompressedMap(std::move(map), entry.uncompressed_length, mode); 108 if (asset == nullptr) { 112 return asset; 121 std::unique_ptr<Asset> asset = Asset::createFromUncompressedMap(std::move(map), mode) local [all...] |
/frameworks/base/core/jni/android/graphics/ |
Movie.cpp | 11 #include <androidfw/Asset.h> 84 android::Asset* asset = reinterpret_cast<android::Asset*>(native_asset); local 85 if (asset == NULL) return NULL; 86 android::AssetStreamAdaptor stream(asset);
|
BitmapRegionDecoder.cpp | 37 #include <androidfw/Asset.h> 108 jlong native_asset, // Asset 110 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 111 std::unique_ptr<SkMemoryStream> stream(CopyAssetToStream(asset));
|
FontFamily.cpp | 215 delete static_cast<Asset*>(context); 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(), 242 Asset::ACCESS_BUFFER) : mgr->openNonAsset(str.c_str(), Asset::ACCESS_BUFFER); 245 if (NULL == asset) { 250 const void* buf = asset->getBuffer(false) [all...] |
/development/samples/browseable/PdfRendererBasic/src/com.example.android.pdfrendererbasic/ |
PdfRendererBasicFragment.java | 149 // Since PdfRenderer cannot handle the compressed asset file directly, we copy it into 151 InputStream asset = context.getAssets().open(FILENAME); local 155 while ((size = asset.read(buffer)) != -1) { 158 asset.close();
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
FileProvider.java | 37 * A very simple content provider that can serve arbitrary asset files from 115 // Try to open an asset with the given name. 124 AssetFileDescriptor asset = getContext().getAssets().openNonAssetFd(cookie, assetPath); local 126 asset.createInputStream(), this)); 136 // Transfer data from the asset to the pipe the client is reading.
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
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/graphics/java/android/graphics/ |
Movie.java | 56 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); local 57 return nativeDecodeAsset(asset); 63 private static native Movie nativeDecodeAsset(long asset);
|
BitmapFactory.java | 720 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); local [all...] |
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
AndroidAppAsset.java | 30 * Immutable value type that names an Android app asset. 77 StringBuilder asset = new StringBuilder(); local 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) 117 String packageName = asset.optString(Utils.ANDROID_APP_ASSET_FIELD_PACKAGE_NAME) [all...] |
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(); local 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) [all...] |
/developers/build/prebuilts/gradle/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/ |
PdfRendererBasicFragment.java | 154 // Since PdfRenderer cannot handle the compressed asset file directly, we copy it into 156 InputStream asset = context.getAssets().open(FILENAME); local 160 while ((size = asset.read(buffer)) != -1) { 163 asset.close();
|
/developers/samples/android/ui/graphics/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/ |
PdfRendererBasicFragment.java | 154 // Since PdfRenderer cannot handle the compressed asset file directly, we copy it into 156 InputStream asset = context.getAssets().open(FILENAME); local 160 while ((size = asset.read(buffer)) != -1) { 163 asset.close();
|
/cts/tests/openglperf2/jni/graphics/ |
GLUtils.cpp | 42 AAsset* asset = loadAsset(path); local 43 if (asset == NULL) { 47 off_t length = AAsset_getLength(asset); 49 int num = AAsset_read(asset, buffer, length); 50 AAsset_close(asset);
|
/developers/build/prebuilts/gradle/AgendaData/Wearable/src/main/java/com/example/android/wearable/agendadata/ |
HomeListenerService.java | 40 import com.google.android.gms.wearable.Asset; 144 Asset asset = data.getAsset(PROFILE_PIC); local 145 if (null != asset) { 148 Wearable.DataApi.getFdForAsset(mGoogleApiClient, asset).await(); 154 Log.d(TAG, "asset fetch failed with statusCode: "
|
/developers/samples/android/wearable/wear/AgendaData/Wearable/src/main/java/com/example/android/wearable/agendadata/ |
HomeListenerService.java | 40 import com.google.android.gms.wearable.Asset; 144 Asset asset = data.getAsset(PROFILE_PIC); local 145 if (null != asset) { 148 Wearable.DataApi.getFdForAsset(mGoogleApiClient, asset).await(); 154 Log.d(TAG, "asset fetch failed with statusCode: "
|
/development/samples/browseable/AgendaData/Wearable/src/com.example.android.wearable.agendadata/ |
HomeListenerService.java | 40 import com.google.android.gms.wearable.Asset; 144 Asset asset = data.getAsset(PROFILE_PIC); local 145 if (null != asset) { 148 Wearable.DataApi.getFdForAsset(mGoogleApiClient, asset).await(); 154 Log.d(TAG, "asset fetch failed with statusCode: "
|
/frameworks/base/native/android/ |
asset_manager.cpp | 21 #include <androidfw/Asset.h> 49 Asset* mAsset; 51 explicit AAsset(Asset* asset) : mAsset(asset) { } 70 * Asset Manager functionality 89 Asset::AccessMode amMode; 92 amMode = Asset::ACCESS_UNKNOWN; 95 amMode = Asset::ACCESS_RANDOM; 98 amMode = Asset::ACCESS_STREAMING 108 Asset* asset = mgr->open(filename, amMode); local [all...] |
/frameworks/base/rs/java/android/renderscript/ |
FileA3D.java | 224 * Creates a FileA3D object from an asset stored on disk 227 * @param mgr asset manager used to load asset 237 throw new RSRuntimeException("Unable to create a3d file from asset " + path); 299 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); local 300 fileId = rs.nFileA3DCreateFromAssetStream(asset); 302 throw new RSRuntimeException("Unsupported asset stream");
|
Font.java | 190 throw new RSRuntimeException("Unable to create font from asset " + path); 214 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); local 215 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset); 217 throw new RSRuntimeException("Unsupported asset stream created");
|
/frameworks/base/tools/split-select/ |
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;
|
/developers/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
MainActivity.java | 47 import com.google.android.gms.wearable.Asset; 155 Asset photoAsset = dataMapItem.getDataMap() 310 * {@link com.google.android.gms.wearable.Asset} 312 private class LoadBitmapAsyncTask extends AsyncTask<Asset, Void, Bitmap> { 315 protected Bitmap doInBackground(Asset... params) { 319 Asset asset = params[0]; local 322 mGoogleApiClient, asset).await().getInputStream(); 325 Log.w(TAG, "Requested an unknown Asset."); 331 Log.e(TAG, "Asset must be non-null") [all...] |