/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | WallpaperInfoHelper.java | 44 @NonNull WallpaperInfo wallpaperInfo, in loadExploreIntent() argument 46 String actionUrl = wallpaperInfo.getActionUrl(context); in loadExploreIntent() 47 CharSequence actionLabel = getActionLabel(context, wallpaperInfo); in loadExploreIntent() 49 Uri exploreUri = Uri.parse(wallpaperInfo.getActionUrl(context)); in loadExploreIntent() 64 private static CharSequence getActionLabel(Context context, WallpaperInfo wallpaperInfo) { in getActionLabel() argument 66 if (wallpaperInfo instanceof LiveWallpaperInfo) { in getActionLabel() 67 exploreLabel = ((LiveWallpaperInfo) wallpaperInfo).getActionDescription(context); in getActionLabel() 70 exploreLabel = context.getString(wallpaperInfo.getActionLabelRes(context)); in getActionLabel()
|
D | CategoryFragment.java | 102 void showViewOnlyPreview(WallpaperInfo wallpaperInfo, boolean isViewAsHome); in showViewOnlyPreview() argument 444 public void updateThumbnail(WallpaperInfo wallpaperInfo) { in updateThumbnail() argument 452 mHomePreviewWallpaperInfo = wallpaperInfo; in updateThumbnail() 453 mLockPreviewWallpaperInfo = wallpaperInfo; in updateThumbnail() 660 private void updateThumbnail(WallpaperInfo wallpaperInfo, ImageView thumbnailView, in updateThumbnail() argument 662 if (wallpaperInfo == null) { in updateThumbnail() 678 !(wallpaperInfo instanceof LiveWallpaperInfo) && isHomeWallpaper; in updateThumbnail() 682 wallpaperInfo.getThumbAsset(activity.getApplicationContext()) in updateThumbnail() 689 if (wallpaperInfo instanceof LiveWallpaperInfo) { in updateThumbnail() 691 wallpaperInfo.getThumbAsset(activity.getApplicationContext()).loadPreviewImage( in updateThumbnail() [all …]
|
D | TopLevelPickerActivity.java | 795 public void showViewOnlyPreview(WallpaperInfo wallpaperInfo, boolean isViewAsHome) { in showViewOnlyPreview() argument 796 mDelegate.showViewOnlyPreview(wallpaperInfo, isViewAsHome); in showViewOnlyPreview() 919 public void onSuccess(WallpaperInfo wallpaperInfo) { in setCustomPhotoWallpaper() 966 private void initializeWallpaperPositionOptionClickHandlers(final WallpaperInfo wallpaperInfo) { in initializeWallpaperPositionOptionClickHandlers() argument 977 wallpaperInfo, WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP, in initializeWallpaperPositionOptionClickHandlers() 980 public void onSuccess(WallpaperInfo wallpaperInfo) { in initializeWallpaperPositionOptionClickHandlers() 1011 wallpaperInfo, WallpaperPersister.WALLPAPER_POSITION_STRETCH, in initializeWallpaperPositionOptionClickHandlers() 1014 public void onSuccess(WallpaperInfo wallpaperInfo) { in initializeWallpaperPositionOptionClickHandlers() 1045 wallpaperInfo, WallpaperPersister.WALLPAPER_POSITION_CENTER, in initializeWallpaperPositionOptionClickHandlers() 1048 public void onSuccess(WallpaperInfo wallpaperInfo) { in initializeWallpaperPositionOptionClickHandlers() [all …]
|
D | PreviewActivity.java | 41 public static Intent newIntent(Context packageContext, WallpaperInfo wallpaperInfo) { in newIntent() argument 43 intent.putExtra(EXTRA_WALLPAPER_INFO, wallpaperInfo); in newIntent()
|
D | PreviewFragment.java | 103 public static PreviewFragment newInstance(WallpaperInfo wallpaperInfo, @PreviewMode int mode, in newInstance() argument 106 args.putParcelable(ARG_WALLPAPER, wallpaperInfo); in newInstance() 111 PreviewFragment fragment = wallpaperInfo instanceof LiveWallpaperInfo in newInstance()
|
D | LivePreviewFragment.java | 449 public void onSuccess(com.android.wallpaper.model.WallpaperInfo wallpaperInfo) { in setCurrentWallpaper() argument 461 protected String getDeleteAction(android.app.WallpaperInfo wallpaperInfo) { in getDeleteAction() argument 464 ServiceInfo serviceInfo = wallpaperInfo.getServiceInfo(); in getDeleteAction()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | LiveWallpaperInfo.java | 120 android.app.WallpaperInfo wallpaperInfo; in fromAttributeSet() local 122 wallpaperInfo = new android.app.WallpaperInfo(context, resolveInfos.get(0)); in fromAttributeSet() 128 return new LiveWallpaperInfo(wallpaperInfo, false, categoryId); in fromAttributeSet() 176 android.app.WallpaperInfo wallpaperInfo; in getAll() local 178 wallpaperInfo = new android.app.WallpaperInfo(context, resolveInfo); in getAll() 185 wallpaperInfo.getPackageName())) { in getAll() 189 wallpaperInfos.add(factory.getLiveWallpaperInfo(wallpaperInfo)); in getAll() 219 android.app.WallpaperInfo wallpaperInfo; in getFromSpecifiedPackage() local 221 wallpaperInfo = new android.app.WallpaperInfo(context, resolveInfo); in getFromSpecifiedPackage() 230 if (!packageName.equals(wallpaperInfo.getPackageName())) { in getFromSpecifiedPackage() [all …]
|
D | WallpaperSectionController.java | 361 private void updatePreview(WallpaperInfo wallpaperInfo, boolean isHomeWallpaper) { in updatePreview() argument 362 if (wallpaperInfo == null) { in updatePreview() 377 maybeLoadThumbnail(wallpaperInfo, surfaceCallback); in updatePreview() 384 if (wallpaperInfo instanceof LiveWallpaperInfo) { in updatePreview() 385 setUpLiveWallpaperPreview(wallpaperInfo); in updatePreview() 391 mWallpaperPreviewNavigator.showViewOnlyPreview(wallpaperInfo, isHomeWallpaper); in updatePreview() 397 private Asset maybeLoadThumbnail(WallpaperInfo wallpaperInfo, in maybeLoadThumbnail() argument 401 wallpaperInfo.getThumbAsset(mAppContext)); in maybeLoadThumbnail()
|
D | PartnerWallpaperInfo.java | 99 WallpaperInfo wallpaperInfo = new PartnerWallpaperInfo(thumbRes, fullRes); in getAll() local 100 wallpaperInfos.add(wallpaperInfo); in getAll()
|
D | AppResourceWallpaperInfo.java | 95 WallpaperInfo wallpaperInfo = new AppResourceWallpaperInfo( in getAll() local 97 wallpapers.add(wallpaperInfo); in getAll()
|
D | SystemStaticWallpaperInfo.java | 136 SystemStaticWallpaperInfo wallpaperInfo = new SystemStaticWallpaperInfo( in getAll() local 140 wallpapers.add(wallpaperInfo); in getAll()
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
D | TestWallpaperPersister.java | 74 public void setIndividualWallpaper(final WallpaperInfo wallpaperInfo, Asset asset, in setIndividualWallpaper() argument 80 mPrefs.setHomeWallpaperAttributions(wallpaperInfo.getAttributions(mAppContext)); in setIndividualWallpaper() 83 mPrefs.setHomeWallpaperRemoteId(wallpaperInfo.getWallpaperId()); in setIndividualWallpaper() 87 mPrefs.setLockWallpaperAttributions(wallpaperInfo.getAttributions(mAppContext)); in setIndividualWallpaper() 88 mPrefs.setLockWallpaperRemoteId(wallpaperInfo.getWallpaperId()); in setIndividualWallpaper() 94 mWallpaperInfo = wallpaperInfo; in setIndividualWallpaper() 207 public void setWallpaperInfoInPreview(WallpaperInfo wallpaperInfo) { in setWallpaperInfoInPreview() argument
|
D | TestCategoryProvider.java | 42 WallpaperInfo wallpaperInfo = new com.android.wallpaper.testing.TestWallpaperInfo(0); in TestCategoryProvider() local 43 wallpapers.add(wallpaperInfo); in TestCategoryProvider()
|
D | TestInjector.java | 215 public Fragment getPreviewFragment(Context context, WallpaperInfo wallpaperInfo, int mode, in getPreviewFragment() argument 217 return ImagePreviewFragment.newInstance(wallpaperInfo, mode, viewAsHome, in getPreviewFragment()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | WallpaperInfoView.java | 54 public void populateWallpaperInfo(@NonNull WallpaperInfo wallpaperInfo, in populateWallpaperInfo() argument 58 final List<String> attributions = wallpaperInfo.getAttributions(getContext()); in populateWallpaperInfo() 74 if (shouldShowMetadata(wallpaperInfo)) { in populateWallpaperInfo() 93 private boolean shouldShowMetadata(WallpaperInfo wallpaperInfo) { in shouldShowMetadata() argument 94 android.app.WallpaperInfo wallpaperComponent = wallpaperInfo.getWallpaperComponent(); in shouldShowMetadata()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/ |
D | PreviewIndividualHolder.java | 68 private void showPreview(WallpaperInfo wallpaperInfo) { in showPreview() argument 69 mWallpaperPersister.setWallpaperInfoInPreview(wallpaperInfo); in showPreview() 70 wallpaperInfo.showPreview(mActivity, mPreviewIntentFactory, in showPreview() 71 wallpaperInfo instanceof LiveWallpaperInfo ? PREVIEW_LIVE_WALLPAPER_REQUEST_CODE in showPreview()
|
D | IndividualPickerFragment.java | 145 void updateThumbnail(WallpaperInfo wallpaperInfo); in updateThumbnail() argument 958 public void onSuccess(WallpaperInfo wallpaperInfo) { 1075 private void updateActivatedStatus(WallpaperInfo wallpaperInfo, boolean isActivated) { in updateActivatedStatus() argument 1076 if (wallpaperInfo == null) { in updateActivatedStatus() 1079 int index = mWallpapers.indexOf(wallpaperInfo); in updateActivatedStatus() 1092 private void updateAppliedStatus(WallpaperInfo wallpaperInfo, boolean isApplied) { in updateAppliedStatus() argument 1093 if (wallpaperInfo == null) { in updateAppliedStatus() 1096 int index = mWallpapers.indexOf(wallpaperInfo); in updateAppliedStatus() 1128 android.app.WallpaperInfo wallpaperInfo = mWallpaperManager.getWallpaperInfo(); in getAppliedWallpaperId() local 1133 return wallpaperInfo != null in getAppliedWallpaperId() [all …]
|
D | IndividualPickerActivity.java | 203 public void showPreview(WallpaperInfo wallpaperInfo) { in showPreview() argument 204 mWallpaperPersister.setWallpaperInfoInPreview(wallpaperInfo); in showPreview() 205 wallpaperInfo.showPreview(this, mPreviewIntentFactory, in showPreview() 206 wallpaperInfo instanceof LiveWallpaperInfo ? PREVIEW_LIVE_WALLPAPER_REQUEST_CODE in showPreview()
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
D | LiveWallpaperListAdapter.java | 111 LiveWallpaperInfo wallpaperInfo = mWallpapers.get(position); in getView() local 113 holder.thumbnail.setImageDrawable(wallpaperInfo.thumbnail); in getView() 116 if (holder.title != null && wallpaperInfo.info != null) { in getView() 117 holder.title.setText(wallpaperInfo.info.loadLabel(mPackageManager)); in getView() 119 holder.title.setCompoundDrawablesWithIntrinsicBounds(null, wallpaperInfo.thumbnail, in getView()
|
D | LiveWallpaperActivity.java | 54 LiveWallpaperListAdapter.LiveWallpaperInfo wallpaperInfo = in onListItemClick() local 56 final WallpaperInfo info = wallpaperInfo.info; in onListItemClick()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultCategoryProvider.java | 258 .filter(wallpaperInfo -> wallpaperInfo instanceof LiveWallpaperInfo) in getExcludedLiveWallpaperPackageNames() 259 .map(wallpaperInfo -> in getExcludedLiveWallpaperPackageNames() 260 ((LiveWallpaperInfo) wallpaperInfo).getWallpaperComponent() in getExcludedLiveWallpaperPackageNames()
|
/packages/apps/WallpaperPicker2/src_override/com/android/wallpaper/module/ |
D | WallpapersInjector.java | 72 WallpaperInfo wallpaperInfo, in getPreviewFragment() argument 76 return ImagePreviewFragment.newInstance(wallpaperInfo, mode, viewAsHome, in getPreviewFragment()
|
/packages/apps/ThemePicker/src_override/com/android/wallpaper/module/ |
D | WallpapersInjector.java | 72 WallpaperInfo wallpaperInfo, in getPreviewFragment() argument 76 return ImagePreviewFragment.newInstance(wallpaperInfo, mode, viewAsHome, in getPreviewFragment()
|
/packages/apps/ThemePicker/src/com/android/customization/module/ |
D | DefaultCustomizationInjector.java | 95 WallpaperInfo wallpaperInfo, in getPreviewFragment() argument 99 return PreviewFragment.newInstance(wallpaperInfo, mode, viewAsHome, testingModeEnabled); in getPreviewFragment()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/ |
D | WallpaperPreviewer.java | 138 public void setWallpaper(WallpaperInfo wallpaperInfo, in setWallpaper() argument 140 mWallpaper = wallpaperInfo; in setWallpaper()
|