HomeSort by relevance Sort by last modified time
    Searched defs:asset (Results 1 - 15 of 15) sorted by null

  /external/webkit/Source/WebKit/android/
RenderSkinAndroid.cpp 37 #include <utils/Asset.h>
64 android::Asset* asset = am->open(fileName, android::Asset::ACCESS_BUFFER); local
65 if (!asset) {
66 asset = am->openNonAsset(fileName, android::Asset::ACCESS_BUFFER);
67 if (!asset) {
73 bool success = SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(), bitmap)
    [all...]
RenderSkinNinePatch.cpp 27 #include <utils/Asset.h>
42 Asset* asset = am->open(filename, android::Asset::ACCESS_BUFFER); local
43 if (!asset) {
44 asset = am->openNonAsset(filename, android::Asset::ACCESS_BUFFER);
45 if (!asset) {
52 SkMemoryStream stream(asset->getBuffer(false), asset->getLength())
    [all...]
  /frameworks/base/core/jni/android/graphics/
Typeface.cpp 58 AssetStream(Asset* asset, bool hasMemoryBase) : fAsset(asset)
88 // asset->seek returns new total offset
111 Asset* fAsset;
128 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
129 if (NULL == asset) {
133 SkStream* stream = new AssetStream(asset, true)
    [all...]
BitmapRegionDecoder.cpp 40 #include <utils/Asset.h>
166 jint native_asset, // Asset
169 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
170 assStream = new AssetStreamAdaptor(asset);
BitmapFactory.cpp 18 #include <utils/Asset.h>
328 /* make a deep copy of the asset, and return it as a stream, or NULL if there
331 static SkStream* copyAssetToStream(Asset* asset) {
332 // if we could "ref/reopen" the asset, we may not need to copy it here
333 off64_t size = asset->seek(0, SEEK_SET);
335 SkDebugf("---- copyAsset: asset rewind failed\n");
339 size = asset->getLength();
341 SkDebugf("---- copyAsset: asset->getLength() returned %d\n", size);
347 off64_t len = asset->read(data, size)
361 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
    [all...]
  /frameworks/base/libs/rs/
rsFileA3D.cpp 85 bool FileA3D::load(Asset *asset) {
86 mAsset = asset;
87 return load(asset->getBuffer(false), asset->getLength());
411 LOGE("File load failed. Asset stream is NULL");
425 Asset *asset = static_cast<Asset *>(_asset); local
429 fa3d->load(asset);
    [all...]
  /external/webkit/Source/WebKit/android/WebCoreSupport/
WebRequest.cpp 345 Asset* asset = assetManager->open("webkit/incognito_mode_start_page.html", Asset::ACCESS_BUFFER); local
346 if (asset) {
347 data.append((const char*)asset->getBuffer(false), asset->getLength());
348 delete asset;
  /frameworks/base/graphics/java/android/renderscript/
FileA3D.java 212 * Creates a FileA3D object from an asset stored on disk
215 * @param mgr asset manager used to load asset
225 throw new RSRuntimeException("Unable to create a3d file from asset " + path);
284 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); local
285 fileId = rs.nFileA3DCreateFromAssetStream(asset);
287 throw new RSRuntimeException("Unsupported asset stream");
Font.java 168 throw new RSRuntimeException("Unable to create font from asset " + path);
189 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); local
190 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset);
192 throw new RSRuntimeException("Unsupported asset stream created");
  /frameworks/base/native/android/
asset_manager.cpp 23 #include <utils/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/cmds/bootanimation/
BootAnimation.cpp 96 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER); local
97 if (!asset)
100 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(),
102 asset->close();
103 delete asset;
  /development/ndk/platforms/android-9/samples/native-audio/jni/
native-audio-jni.c 35 // for native asset manager
541 // create asset audio player
551 // use asset manager to open asset by filename
554 AAsset* asset = AAssetManager_open(mgr, (const char *) utf8, AASSET_MODE_UNKNOWN); local
559 // the asset might not be found
560 if (NULL == asset) {
564 // open asset as file descriptor
566 int fd = AAsset_openFileDescriptor(asset, &start, &length);
568 AAsset_close(asset);
    [all...]
  /frameworks/base/core/java/android/content/res/
AssetManager.java 29 * Provides access to an application's raw asset files; see {@link Resources}
36 /* 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.
278 * Open an asset using ACCESS_STREAMING mode. This provides access to
282 * @param fileName The name of the asset to open. This name can be
293 * Open an asset using an explicit access mode, returning an InputStream t
315 int asset = openAsset(fileName, accessMode); local
407 int asset = openNonAssetNative(cookie, fileName, accessMode); local
    [all...]
  /frameworks/base/graphics/jni/
android_renderscript_RenderScript.cpp 34 #include <utils/Asset.h>
714 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
716 jint id = (jint)rsaFileA3DCreateFromMemory(con, asset->getBuffer(false), asset->getLength());
729 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
730 if (asset == NULL)
797 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
817 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.
29 printf("Android Asset Packaging Tool, v0.2\n");
208 Asset* manifestAsset = assets.openNonAsset("AndroidManifest.xml",
209 Asset::ACCESS_BUFFER);
431 Asset* asset = NULL; local
490 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER);
491 if (asset == NULL) {
496 if (tree.setTo(asset->getBuffer(true)
    [all...]

Completed in 155 milliseconds