Home
last modified time | relevance | path

Searched refs:asset (Results 1 – 25 of 71) sorted by relevance

123

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPersister.java38 import com.android.wallpaper.asset.Asset;
39 import com.android.wallpaper.asset.Asset.BitmapReceiver;
40 import com.android.wallpaper.asset.Asset.DimensionsReceiver;
41 import com.android.wallpaper.asset.BitmapUtils;
42 import com.android.wallpaper.asset.StreamableAsset;
43 import com.android.wallpaper.asset.StreamableAsset.StreamReceiver;
90 public void setIndividualWallpaper(final WallpaperInfo wallpaper, Asset asset, in setIndividualWallpaper() argument
95 if (cropRect == null && asset instanceof StreamableAsset) { in setIndividualWallpaper()
96 ((StreamableAsset) asset).fetchInputStream(new StreamReceiver() { in setIndividualWallpaper()
115 asset.decodeBitmap(screenSize.x, screenSize.y, new BitmapReceiver() { in setIndividualWallpaper()
[all …]
DDefaultBitmapCropper.java23 import com.android.wallpaper.asset.Asset;
24 import com.android.wallpaper.asset.Asset.BitmapReceiver;
34 public void cropAndScaleBitmap(Asset asset, float scale, Rect cropRect, in cropAndScaleBitmap() argument
43 asset.decodeBitmapRegion(scaledCropRect, cropRect.width(), cropRect.height(), isRtl, in cropAndScaleBitmap()
DBitmapCropper.java23 import com.android.wallpaper.asset.Asset;
34 void cropAndScaleBitmap(Asset asset, float scale, Rect cropRect, boolean adjustForRtl, in cropAndScaleBitmap() argument
DWallpaperPersister.java25 import com.android.wallpaper.asset.Asset;
55 void setIndividualWallpaper(WallpaperInfo wallpaper, Asset asset, @Nullable Rect cropRect, in setIndividualWallpaper() argument
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DWallpaperColorsLoader.java30 import com.android.wallpaper.asset.Asset;
31 import com.android.wallpaper.asset.BitmapCachingAsset;
49 public static void getWallpaperColors(Context context, @NonNull Asset asset, in getWallpaperColors() argument
51 WallpaperColors cached = sCache.get(asset); in getWallpaperColors()
59 new BitmapCachingAsset(context, asset).decodeBitmap(screen.y / 2, screen.x / 2, bitmap -> { in getWallpaperColors()
67 sCache.put(asset, colors); in getWallpaperColors()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DWallpaperGlideModule.java1 package com.android.wallpaper.asset;
6 import com.android.wallpaper.asset.CurrentWallpaperAssetVNLoader.CurrentWallpaperAssetVNLoaderFacto…
7 import com.android.wallpaper.asset.LiveWallpaperThumbAssetLoader.LiveWallpaperThumbAssetLoaderFacto…
8 import com.android.wallpaper.asset.ResourceAssetLoader.ResourceAssetLoaderFactory;
9 import com.android.wallpaper.asset.SystemStaticAssetLoader.SystemStaticAssetLoaderFactory;
10 import com.android.wallpaper.asset.WallpaperModelLoader.WallpaperModelLoaderFactory;
DBitmapCachingAsset.java16 package com.android.wallpaper.asset;
47 CacheKey(Asset asset, int width, int height) { in CacheKey() argument
48 this(asset, width, height, false, null); in CacheKey()
51 CacheKey(Asset asset, int width, int height, boolean rtl, Rect rect) { in CacheKey() argument
52 mAsset = asset; in CacheKey()
DCurrentWallpaperAssetVNLoader.java16 package com.android.wallpaper.asset;
76 public CurrentWallpaperAssetVNDataFetcher(CurrentWallpaperAssetVN asset) { in CurrentWallpaperAssetVNDataFetcher() argument
77 mAsset = asset; in CurrentWallpaperAssetVNDataFetcher()
DSystemStaticAssetLoader.java16 package com.android.wallpaper.asset;
20 import com.android.wallpaper.asset.ResourceAssetLoader.ResourceAssetFetcher;
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DMyPhotosViewHolder.java33 import com.android.wallpaper.asset.Asset;
34 import com.android.wallpaper.asset.ContentUriAsset;
88 Asset asset = null; in fetchThumbnail() local
91 asset = new ContentUriAsset(context, Uri.parse( in fetchThumbnail()
97 return asset; in fetchThumbnail()
163 void onAssetRetrieved(@Nullable Asset asset); in onAssetRetrieved() argument
DDesktopRotationHolder.java25 import com.android.wallpaper.asset.Asset;
26 import com.android.wallpaper.asset.Asset.DrawableLoadedListener;
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DImageCategory.java28 import com.android.wallpaper.asset.Asset;
29 import com.android.wallpaper.asset.ContentUriAsset;
85 Asset asset = null; in getThumbnail() local
88 asset = new ContentUriAsset(context, in getThumbnail()
94 return asset; in getThumbnail()
DImageWallpaperInfo.java28 import com.android.wallpaper.asset.Asset;
29 import com.android.wallpaper.asset.ContentUriAsset;
113 ContentUriAsset asset = (ContentUriAsset) getAsset(context); in getAttributions() local
115 if (!asset.isJpeg()) { in getAttributions()
123 String attribute = asset.readExifTag(tag); in getAttributions()
DDefaultWallpaperInfo.java25 import com.android.wallpaper.asset.Asset;
26 import com.android.wallpaper.asset.BuiltInWallpaperAsset;
27 import com.android.wallpaper.asset.ResourceAsset;
DCurrentWallpaperInfoVN.java27 import com.android.wallpaper.asset.Asset;
28 import com.android.wallpaper.asset.BuiltInWallpaperAsset;
29 import com.android.wallpaper.asset.CurrentWallpaperAssetVN;
DSystemStaticWallpaperInfo.java29 import com.android.wallpaper.asset.Asset;
30 import com.android.wallpaper.asset.ResourceAsset;
31 import com.android.wallpaper.asset.SystemStaticAsset;
DPartnerWallpaperInfo.java25 import com.android.wallpaper.asset.Asset;
26 import com.android.wallpaper.asset.ResourceAsset;
DWallpaperCategory.java27 import com.android.wallpaper.asset.Asset;
28 import com.android.wallpaper.asset.ResourceAsset;
DAppResourceWallpaperInfo.java28 import com.android.wallpaper.asset.Asset;
29 import com.android.wallpaper.asset.ResourceAsset;
DLegacyPartnerWallpaperInfo.java27 import com.android.wallpaper.asset.Asset;
28 import com.android.wallpaper.asset.FileAsset;
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestBitmapCropper.java21 import com.android.wallpaper.asset.Asset;
22 import com.android.wallpaper.asset.Asset.BitmapReceiver;
37 public void cropAndScaleBitmap(Asset asset, float scale, Rect cropRect, boolean adjustRtl, in cropAndScaleBitmap() argument
50 asset.decodeBitmapRegion(scaledCropRect, cropRect.width(), cropRect.height(), adjustRtl, in cropAndScaleBitmap()
DTestWallpaperPersister.java25 import com.android.wallpaper.asset.Asset;
26 import com.android.wallpaper.asset.Asset.BitmapReceiver;
74 public void setIndividualWallpaper(final WallpaperInfo wallpaperInfo, Asset asset, in setIndividualWallpaper() argument
77 asset.decodeBitmap(50, 50, bitmap -> { in setIndividualWallpaper()
/packages/apps/ThemePicker/src/com/google/android/apps/wallpaper/asset/
DThemeBundleThumbAsset.java16 package com.google.android.apps.wallpaper.asset;
29 import com.android.wallpaper.asset.Asset;
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DThemeBundledWallpaperInfo.java29 import com.android.wallpaper.asset.Asset;
30 import com.android.wallpaper.asset.ResourceAsset;
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/
DPreviewActivityTest.java417 TestAsset asset = (TestAsset) mMockWallpaper.getAsset(activity); in testSetsDefaultWallpaperZoomAndScroll() local
418 Point wallpaperSize = new Point(asset.getBitmap().getWidth(), in testSetsDefaultWallpaperZoomAndScroll()
419 asset.getBitmap().getHeight()); in testSetsDefaultWallpaperZoomAndScroll()

123