/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/viewpager/ |
D | ViewPagerFragment.java | 19 private String asset; field in ViewPagerFragment 24 public void setAsset(String asset) { in setAsset() argument 25 this.asset = asset; in setAsset() 33 if (asset == null && savedInstanceState.containsKey(BUNDLE_ASSET)) { in onCreateView() 34 asset = savedInstanceState.getString(BUNDLE_ASSET); in onCreateView() 37 if (asset != null) { in onCreateView() 39 imageView.setImage(ImageSource.asset(asset)); in onCreateView() 50 outState.putString(BUNDLE_ASSET, asset); in onSaveInstanceState()
|
/external/tensorflow/tensorflow/contrib/android/ |
D | asset_manager_filesystem.cc | 37 ScopedAsset(AAsset* asset) : asset_(asset) {} in ScopedAsset() argument 92 auto asset = ScopedAsset(AAssetManager_open( in Read() local 94 if (asset.get() == nullptr) { in Read() 98 off64_t new_offset = AAsset_seek64(asset.get(), offset, SEEK_SET); in Read() 99 off64_t length = AAsset_getLength64(asset.get()); in Read() 106 int read = AAsset_read(asset.get(), scratch, region_left); in Read() 129 auto asset = ScopedAsset( in FileExists() local 131 if (asset.get() == nullptr) { in FileExists() 140 auto asset = ScopedAsset( in NewRandomAccessFile() local 142 if (asset.get() == nullptr) { in NewRandomAccessFile() [all …]
|
/external/skqp/infra/bots/assets/ |
D | README.md | 14 Each asset has its own subdirectory with the following contents: 15 * VERSION: The current version number of the asset. 16 * download.py: Convenience script for downloading the current version of the asset. 17 * upload.py: Convenience script for uploading a new version of the asset. 18 * [optional] create.py: Script which creates the asset, implemented by the user. 25 Add a new asset and upload an initial version. 29 Creating asset in infra/bots/assets/myasset 33 Add script to automate creation of this asset? (y/n) n 38 Add an asset whose creation can be automated. 42 Add script to automate creation of this asset? (y/n) y
|
D | assets.py | 40 asset = asset_utils.Asset(args.asset_name, 42 asset.download_current_version(args.target_dir) 47 asset = asset_utils.Asset(args.asset_name, 49 asset.upload_new_version(args.target_dir, commit=args.commit,
|
D | asset_utils.py | 310 asset = cls(name, store) 311 if os.path.isdir(asset._dir): 312 raise Exception('Asset %s already exists!' % asset._name) 314 print 'Creating asset in %s' % asset._dir 315 os.mkdir(asset._dir) 318 dst = os.path.join(asset._dir, script) 330 print 'Successfully created asset %s.' % asset._name 331 return asset
|
/external/skia/infra/bots/assets/ |
D | README.md | 14 Each asset has its own subdirectory with the following contents: 15 * VERSION: The current version number of the asset. 16 * download.py: Convenience script for downloading the current version of the asset. 17 * upload.py: Convenience script for uploading a new version of the asset. 18 * [optional] create.py: Script which creates the asset, implemented by the user. 25 Add a new asset and upload an initial version. 29 Creating asset in infra/bots/assets/myasset 33 Add script to automate creation of this asset? (y/n) n 38 Add an asset whose creation can be automated. 42 Add script to automate creation of this asset? (y/n) y
|
D | assets.py | 40 asset = asset_utils.Asset(args.asset_name, 42 asset.download_current_version(args.target_dir) 47 asset = asset_utils.Asset(args.asset_name, 49 asset.upload_new_version(args.target_dir, commit=args.commit,
|
D | asset_utils.py | 310 asset = cls(name, store) 311 if os.path.isdir(asset._dir): 312 raise Exception('Asset %s already exists!' % asset._name) 314 print 'Creating asset in %s' % asset._dir 315 os.mkdir(asset._dir) 318 dst = os.path.join(asset._dir, script) 330 print 'Successfully created asset %s.' % asset._name 331 return asset
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowArscAssetManager9.java | 414 static ParcelFileDescriptor ReturnParcelFileDescriptor(/* JNIEnv* env,*/ Asset asset, in ReturnParcelFileDescriptor() argument 418 FileDescriptor fd = asset.openFileDescriptor(start_offset, length); in ReturnParcelFileDescriptor() 445 return ParcelFileDescriptor.open(asset.getFile(), ParcelFileDescriptor.MODE_READ_ONLY); in ReturnParcelFileDescriptor() 697 Asset asset = in nativeOpenAsset() local 699 if (!isTruthy(asset)) { in nativeOpenAsset() 702 return Registries.NATIVE_ASSET_REGISTRY.register(asset); in nativeOpenAsset() 719 Asset asset = assetmanager.Open(asset_path_utf8, Asset.AccessMode.ACCESS_RANDOM); in nativeOpenAssetFd() local 720 if (!isTruthy(asset)) { in nativeOpenAssetFd() 723 return ReturnParcelFileDescriptor(asset, out_offsets); in nativeOpenAssetFd() 748 Asset asset; in nativeOpenNonAsset() local [all …]
|
D | ShadowArscAssetManager10.java | 418 static ParcelFileDescriptor ReturnParcelFileDescriptor(/* JNIEnv* env,*/ Asset asset, in ReturnParcelFileDescriptor() argument 422 FileDescriptor fd = asset.openFileDescriptor(start_offset, length); in ReturnParcelFileDescriptor() 449 return ParcelFileDescriptor.open(asset.getFile(), ParcelFileDescriptor.MODE_READ_ONLY); in ReturnParcelFileDescriptor() 701 Asset asset = in nativeOpenAsset() local 703 if (!isTruthy(asset)) { in nativeOpenAsset() 706 return Registries.NATIVE_ASSET_REGISTRY.register(asset); in nativeOpenAsset() 723 Asset asset = assetmanager.Open(asset_path_utf8, Asset.AccessMode.ACCESS_RANDOM); in nativeOpenAssetFd() local 724 if (!isTruthy(asset)) { in nativeOpenAssetFd() 727 return ReturnParcelFileDescriptor(asset, out_offsets); in nativeOpenAssetFd() 752 Asset asset; in nativeOpenNonAsset() local [all …]
|
D | ShadowArscAssetManager.java | 418 protected final void destroyAsset(int asset) { in destroyAsset() argument 419 destroyAsset((long) asset); in destroyAsset() 423 protected final void destroyAsset(long asset) { in destroyAsset() argument 424 Registries.NATIVE_ASSET_REGISTRY.unregister(asset); in destroyAsset() 428 protected final int readAssetChar(int asset) { in readAssetChar() argument 429 return readAssetChar((long) asset); in readAssetChar() 433 protected final int readAssetChar(long asset) { in readAssetChar() argument 434 Asset a = getAsset(asset); in readAssetChar() 441 protected final int readAsset(int asset, byte[] b, int off, int len) throws IOException { in readAsset() argument 442 return readAsset((long) asset, b, off, len); in readAsset() [all …]
|
D | ShadowArscAssetInputStream.java | 42 Asset asset = getAsset(); in isNinePatch() local 43 return asset != null && asset.isNinePatch(); in isNinePatch()
|
D | ShadowAssetInputStream.java | 18 Asset asset = NATIVE_ASSET_REGISTRY.getNativeObject(assetPtr); in createAssetInputStream() local 28 slais.setNinePatch(asset.isNinePatch()); in createAssetInputStream()
|
/external/setupdesign/main/src/com/google/android/setupdesign/ |
D | SetupWizardLayout.java | 248 public void setIllustration(int asset, int horizontalTile) { in setIllustration() argument 252 final Drawable illustrationDrawable = getIllustration(asset, horizontalTile); in setIllustration() 257 private void setIllustration(Drawable asset, Drawable horizontalTile) { in setIllustration() argument 261 final Drawable illustrationDrawable = getIllustration(asset, horizontalTile); in setIllustration() 327 private Drawable getIllustration(int asset, int horizontalTile) { in getIllustration() argument 329 final Drawable assetDrawable = context.getResources().getDrawable(asset); in getIllustration() 335 private Drawable getIllustration(Drawable asset, Drawable horizontalTile) { in getIllustration() argument 343 if (asset instanceof BitmapDrawable) { in getIllustration() 345 ((BitmapDrawable) asset).setGravity(Gravity.TOP | Gravity.LEFT); in getIllustration() 347 final LayerDrawable layers = new LayerDrawable(new Drawable[] {horizontalTile, asset}); in getIllustration() [all …]
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | CppApkAssets.java | 303 Asset asset = in Open() local 305 if (asset == null) { in Open() 309 return asset; in Open() 319 Asset asset = Asset.createFromUncompressedMap(map, mode); in Open() local 320 if (asset == null) { in Open() 324 return asset; in Open()
|
/external/skqp/tests/ |
D | StreamTest.cpp | 335 SkStreamAsset* asset, in stream_peek_test() argument 337 if (asset->getLength() != expected->size()) { in stream_peek_test() 344 for (size_t i = 0; i < asset->getLength(); ++i) { in stream_peek_test() 346 SkToU32(SkTMin(sizeof(buffer), asset->getLength() - i)); in stream_peek_test() 350 SkASSERT(size + i <= asset->getLength()); in stream_peek_test() 351 if (asset->peek(buffer, size) < size) { in stream_peek_test() 360 REPORTER_ASSERT(rep, 1 == asset->read(&value, 1)); in stream_peek_test() 385 std::unique_ptr<SkStreamAsset> asset(dynamicMemoryWStream.detachAsStream()); in DEF_TEST() local 386 sk_sp<SkData> expected(SkData::MakeUninitialized(asset->getLength())); in DEF_TEST() 392 for (size_t i = 0; i < asset->getLength(); ++i) { in DEF_TEST() [all …]
|
/external/skia/tests/ |
D | StreamTest.cpp | 335 SkStreamAsset* asset, in stream_peek_test() argument 337 if (asset->getLength() != expected->size()) { in stream_peek_test() 344 for (size_t i = 0; i < asset->getLength(); ++i) { in stream_peek_test() 346 SkToU32(SkTMin(sizeof(buffer), asset->getLength() - i)); in stream_peek_test() 350 SkASSERT(size + i <= asset->getLength()); in stream_peek_test() 351 if (asset->peek(buffer, size) < size) { in stream_peek_test() 360 REPORTER_ASSERT(rep, 1 == asset->read(&value, 1)); in stream_peek_test() 385 std::unique_ptr<SkStreamAsset> asset(dynamicMemoryWStream.detachAsStream()); in DEF_TEST() local 386 sk_sp<SkData> expected(SkData::MakeUninitialized(asset->getLength())); in DEF_TEST() 392 for (size_t i = 0; i < asset->getLength(); ++i) { in DEF_TEST() [all …]
|
/external/skia/infra/bots/assets/skimage/ |
D | create.py | 21 asset = asset_utils.Asset(common.ASSET_NAME, asset_utils.MultiStore()) 22 asset.download_current_version(target_dir)
|
/external/skqp/infra/bots/assets/skimage/ |
D | create.py | 21 asset = asset_utils.Asset(common.ASSET_NAME, asset_utils.MultiStore()) 22 asset.download_current_version(target_dir)
|
/external/skia/infra/bots/assets/linux_vulkan_sdk/ |
D | README.md | 1 To create the vulkan sdk asset: 8 When uploading the CIPD asset, use -s $VULKAN_SDK/VERSION/x86_64
|
/external/skqp/infra/bots/assets/linux_vulkan_sdk/ |
D | README.md | 1 To create the vulkan sdk asset: 8 When uploading the CIPD asset, use -s $VULKAN_SDK/VERSION/x86_64
|
/external/skqp/tools/sk_app/android/ |
D | surface_glue_android.cpp | 43 AAsset* asset = AAssetManager_open(gAAssetManager, path.c_str(), AASSET_MODE_STREAMING); in config_resource_mgr() local 44 if (!asset) { in config_resource_mgr() 47 size_t size = SkToSizeT(AAsset_getLength(asset)); in config_resource_mgr() 49 (void)AAsset_read(asset, data->writable_data(), size); in config_resource_mgr() 50 AAsset_close(asset); in config_resource_mgr()
|
/external/skia/tools/sk_app/android/ |
D | surface_glue_android.cpp | 43 AAsset* asset = AAssetManager_open(gAAssetManager, path.c_str(), AASSET_MODE_STREAMING); in config_resource_mgr() local 44 if (!asset) { in config_resource_mgr() 47 size_t size = SkToSizeT(AAsset_getLength(asset)); in config_resource_mgr() 49 (void)AAsset_read(asset, data->writable_data(), size); in config_resource_mgr() 50 AAsset_close(asset); in config_resource_mgr()
|
/external/skqp/tools/skqp/src/ |
D | jni_skqp.cpp | 35 if (AAsset* asset = AAssetManager_open(gAAssetManager, path, AASSET_MODE_STREAMING)) { in open_asset_data() local 36 if (size_t size = SkToSizeT(AAsset_getLength(asset))) { in open_asset_data() 38 int ret = AAsset_read(asset, data->writable_data(), size); in open_asset_data() 43 AAsset_close(asset); in open_asset_data()
|
/external/skia/tools/skqp/src/ |
D | jni_skqp.cpp | 35 if (AAsset* asset = AAssetManager_open(gAAssetManager, path, AASSET_MODE_STREAMING)) { in open_asset_data() local 36 if (size_t size = SkToSizeT(AAsset_getLength(asset))) { in open_asset_data() 38 int ret = AAsset_read(asset, data->writable_data(), size); in open_asset_data() 43 AAsset_close(asset); in open_asset_data()
|