/frameworks/base/core/jni/android/graphics/ |
FontFamily.cpp | 96 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local 97 if (NULL == asset) { 101 SkStream* stream = new AssetStreamAdaptor(asset,
|
Movie.cpp | 12 #include <androidfw/Asset.h> 85 android::Asset* asset = reinterpret_cast<android::Asset*>(native_asset); local 86 if (asset == NULL) return NULL; 87 SkAutoTUnref<SkStreamRewindable> stream (new android::AssetStreamAdaptor(asset,
|
BitmapRegionDecoder.cpp | 40 #include <androidfw/Asset.h> 153 jlong native_asset, // Asset 155 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 156 SkAutoTUnref<SkMemoryStream> stream(CopyAssetToStream(asset));
|
BitmapFactory.cpp | 19 #include <androidfw/Asset.h> 512 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 513 // since we know we'll be done with the asset when we return, we can 515 SkAutoTUnref<SkStreamRewindable> stream(new AssetStreamAdaptor(asset,
|
/frameworks/base/graphics/java/android/graphics/ |
Movie.java | 51 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); local 52 return nativeDecodeAsset(asset); 58 private static native Movie nativeDecodeAsset(long asset);
|
BitmapFactory.java | 608 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); local 609 bm = nativeDecodeAsset(asset, outPadding, opts);
|
/cts/suite/cts/deviceTests/opengl/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/samples/android/wearable/wear/AgendaData/Wearable/src/main/java/com/example/android/agendadata/ |
HomeListenerService.java | 41 import com.google.android.gms.wearable.Asset; 133 Asset asset = data.getAsset(PROFILE_PIC); local 134 if (null != asset) { 137 Wearable.DataApi.getFdForAsset(mGoogleApiClient, asset).await(); 143 Log.d(TAG, "asset fetch failed with statusCode: "
|
/development/samples/wearable/AgendaData/Wearable/src/main/java/com/example/android/wearable/agendadata/ |
HomeListenerService.java | 41 import com.google.android.gms.wearable.Asset; 133 Asset asset = data.getAsset(PROFILE_PIC); local 134 if (null != asset) { 137 Wearable.DataApi.getFdForAsset(mGoogleApiClient, asset).await(); 143 Log.d(TAG, "asset fetch failed with statusCode: "
|
/frameworks/base/native/android/ |
asset_manager.cpp | 21 #include <androidfw/Asset.h> 49 Asset* mAsset; 51 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 | 220 * Creates a FileA3D object from an asset stored on disk 223 * @param mgr asset manager used to load asset 233 throw new RSRuntimeException("Unable to create a3d file from asset " + path); 295 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); local 296 fileId = rs.nFileA3DCreateFromAssetStream(asset); 298 throw new RSRuntimeException("Unsupported asset stream");
|
Font.java | 189 throw new RSRuntimeException("Unable to create font from asset " + path); 213 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); local 214 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset); 216 throw new RSRuntimeException("Unsupported asset stream created");
|
/frameworks/rs/ |
rsFileA3D.cpp | 26 #include <androidfw/Asset.h> 94 bool FileA3D::load(Asset *asset) { 96 mAsset = asset; 97 return load(asset->getBuffer(false), asset->getLength()); 435 ALOGE("File load failed. Asset stream is NULL"); 450 Asset *asset = static_cast<Asset *>(_asset) local [all...] |
/development/ndk/platforms/android-9/samples/native-audio/jni/ |
native-audio-jni.c | 35 // for native asset manager 566 // create asset audio player 576 // use asset manager to open asset by filename 579 AAsset* asset = AAssetManager_open(mgr, utf8, AASSET_MODE_UNKNOWN); local 584 // the asset might not be found 585 if (NULL == asset) { 589 // open asset as file descriptor 591 int fd = AAsset_openFileDescriptor(asset, &start, &length); 593 AAsset_close(asset); [all...] |
/frameworks/base/cmds/bootanimation/ |
BootAnimation.cpp | 110 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER); local 111 if (!asset) 114 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(), 116 asset->close(); 117 delete asset;
|
/frameworks/base/core/java/android/content/res/ |
AssetManager.java | 30 * Provides access to an application's raw asset files; see {@link Resources} 37 /* modes used when opening an asset */ 83 * appropriate asset manager with {@link Resources#getAssets}. Not for 94 if (localLOGV) Log.v(TAG, "New asset manager: " + this); 117 if (localLOGV) Log.v(TAG, "New asset manager: " + this); 121 * Return a global shared asset manager that provides access to only 131 * Close this asset manager. 276 * Open an asset using ACCESS_STREAMING mode. This provides access to 280 * @param fileName The name of the asset to open. This name can be 291 * Open an asset using an explicit access mode, returning an InputStream t 313 long asset = openAsset(fileName, accessMode); local 405 long asset = openNonAssetNative(cookie, fileName, accessMode); local [all...] |
/frameworks/base/rs/jni/ |
android_renderscript_RenderScript.cpp | 28 #include <androidfw/Asset.h> 828 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 844 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local 912 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 932 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local [all...] |
/frameworks/base/tools/aapt/ |
Command.cpp | 4 // Android Asset Packaging Tool main entry point. 44 printf("Android Asset Packaging Tool, v0.2-" AAPT_VERSION "\n"); 228 Asset* manifestAsset = assets.openNonAsset("AndroidManifest.xml", 229 Asset::ACCESS_BUFFER); 393 Asset* aidAsset = assets.openNonAsset(xmlPath, Asset::ACCESS_BUFFER); 632 // The dynamicRefTable can be null if there are no resources for this asset cookie. 636 Asset* asset = NULL; local 656 asset = assets.openNonAsset(assetsCookie, resname, Asset::ACCESS_BUFFER) [all...] |
Resource.cpp | 995 Asset* asset = assets.openNonAsset(cookie, "AndroidManifest.xml", Asset::ACCESS_STREAMING); local [all...] |