Home
last modified time | relevance | path

Searched refs:WallpaperPersister (Results 1 – 21 of 21) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DWallpaperSetter.java21 import com.android.wallpaper.module.WallpaperPersister.Destination;
22 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
45 private final WallpaperPersister mWallpaperPersister;
52 public WallpaperSetter(WallpaperPersister wallpaperPersister, in WallpaperSetter()
136 if (destination == WallpaperPersister.DEST_LOCK_SCREEN) { in setCurrentLiveWallpaper()
147 if (destination == WallpaperPersister.DEST_BOTH) { in setCurrentLiveWallpaper()
235 listener.onSet(WallpaperPersister.DEST_BOTH); in requestDestination()
DDefaultWallpaperPersister.java60 public class DefaultWallpaperPersister implements WallpaperPersister {
179 WallpaperPersister.DEST_BOTH, callback); in setIndividualWallpaperWithPosition()
214 setIndividualWallpaper(wallpaper, bitmap, WallpaperPersister.DEST_BOTH, in setIndividualWallpaperWithCenterPosition()
229 WallpaperPersister.DEST_BOTH, callback); in setIndividualWallpaperWithCenterPosition()
261 wallpaper, asset, cropRect, scale, WallpaperPersister.DEST_BOTH, callback); in setIndividualWallpaperWithCenterCropPosition()
560 private final WallpaperPersister.SetWallpaperCallback mCallback;
574 WallpaperPersister.SetWallpaperCallback callback) { in SetWallpaperTask()
587 @Destination int destination, WallpaperPersister.SetWallpaperCallback callback) { in SetWallpaperTask()
DBaseWallpaperInjector.java31 private WallpaperPersister mWallpaperPersister;
71 public synchronized WallpaperPersister getWallpaperPersister(Context context) { in getWallpaperPersister()
DNoOpUserEventLogger.java18 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
DWallpaperPersister.java33 public interface WallpaperPersister { interface
DUserEventLogger.java18 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
DInjector.java63 WallpaperPersister getWallpaperPersister(Context context); in getWallpaperPersister()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DTopLevelPickerActivity.java69 import com.android.wallpaper.module.WallpaperPersister;
70 import com.android.wallpaper.module.WallpaperPersister.Destination;
71 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
72 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
109 private WallpaperPersister mWallpaperPersister;
886 WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP, new SetWallpaperCallback() { in setCustomPhotoWallpaper()
908 … mCustomPhotoWallpaperPosition = WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP; in setCustomPhotoWallpaper()
946 wallpaperInfo, WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP, in initializeWallpaperPositionOptionClickHandlers()
963 … mCustomPhotoWallpaperPosition = WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP; in initializeWallpaperPositionOptionClickHandlers()
980 wallpaperInfo, WallpaperPersister.WALLPAPER_POSITION_STRETCH, in initializeWallpaperPositionOptionClickHandlers()
[all …]
DSetWallpaperDialogFragment.java31 import com.android.wallpaper.module.WallpaperPersister;
72 mListener.onSet(WallpaperPersister.DEST_HOME_SCREEN); in onCreateDialog()
81 mListener.onSet(WallpaperPersister.DEST_LOCK_SCREEN); in onCreateDialog()
90 mListener.onSet(WallpaperPersister.DEST_BOTH); in onCreateDialog()
DImagePreviewFragment.java40 import com.android.wallpaper.module.WallpaperPersister.Destination;
41 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
DSetWallpaperErrorDialogFragment.java24 import com.android.wallpaper.module.WallpaperPersister.Destination;
DLivePreviewFragment.java68 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
DPreviewFragment.java65 import com.android.wallpaper.module.WallpaperPersister.Destination;
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestWallpaperPersister.java30 import com.android.wallpaper.module.WallpaperPersister;
38 public class TestWallpaperPersister implements WallpaperPersister {
51 private WallpaperPersister.SetWallpaperCallback mCallback;
74 final WallpaperPersister.SetWallpaperCallback callback) { in setIndividualWallpaper()
110 mDestination = WallpaperPersister.DEST_BOTH; in setIndividualWallpaperWithPosition()
DTestInjector.java40 import com.android.wallpaper.module.WallpaperPersister;
58 private WallpaperPersister mWallpaperPersister;
106 public WallpaperPersister getWallpaperPersister(Context context) { in getWallpaperPersister()
DTestUserEventLogger.java19 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DSetIndividualHolder.java30 import com.android.wallpaper.module.WallpaperPersister;
31 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
111 WallpaperPersister wallpaperPersister = in setWallpaper()
114 1.0f /* scale */, WallpaperPersister.DEST_BOTH, new SetWallpaperCallback() { in setWallpaper()
DIndividualPickerActivity.java45 import com.android.wallpaper.module.WallpaperPersister;
63 private WallpaperPersister mWallpaperPersister;
DIndividualPickerFragment.java67 import com.android.wallpaper.module.WallpaperPersister;
68 import com.android.wallpaper.module.WallpaperPersister.Destination;
693 R.string.set_wallpaper_error_message, WallpaperPersister.DEST_BOTH); in showSetWallpaperErrorDialog()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/
DPreviewActivityTest.java52 import com.android.wallpaper.module.WallpaperPersister;
165 assertEquals(WallpaperPersister.DEST_HOME_SCREEN, mWallpaperPersister.getLastDestination()); in testClickSetWallpaper_Success_HomeScreen()
193 assertEquals(WallpaperPersister.DEST_LOCK_SCREEN, mWallpaperPersister.getLastDestination()); in testClickSetWallpaper_Success_LockScreen()
224 assertEquals(WallpaperPersister.DEST_BOTH, mWallpaperPersister.getLastDestination()); in testClickSetWallpaper_Success_BothHomeAndLockScreen()
268 assertEquals(WallpaperPersister.DEST_HOME_SCREEN, mWallpaperPersister.getLastDestination()); in testClickSetWallpaper_Fails_HomeScreen_ShowsErrorDialog()
307 assertEquals(WallpaperPersister.DEST_LOCK_SCREEN, mWallpaperPersister.getLastDestination()); in testClickSetWallpaper_Fails_LockScreen_ShowsErrorDialog()
349 assertEquals(WallpaperPersister.DEST_BOTH, mWallpaperPersister.getLastDestination()); in testClickSetWallpaper_Fails_BothHomeAndLock_ShowsErrorDialog()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DThemeManager.java40 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;