Home
last modified time | relevance | path

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

12

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DWallpaperSetter.java27 import com.android.wallpaper.module.WallpaperPersister.Destination;
28 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
55 private final WallpaperPersister mWallpaperPersister;
62 public WallpaperSetter(WallpaperPersister wallpaperPersister, in WallpaperSetter()
192 if (destination == WallpaperPersister.DEST_LOCK_SCREEN) { in setCurrentLiveWallpaper()
203 if (destination == WallpaperPersister.DEST_BOTH) { in setCurrentLiveWallpaper()
309 listener.onSet(WallpaperPersister.DEST_BOTH); in requestDestination()
DDefaultWallpaperPersister.java63 public class DefaultWallpaperPersister implements WallpaperPersister {
182 WallpaperPersister.DEST_BOTH, callback); in setIndividualWallpaperWithPosition()
216 WallpaperPersister.DEST_BOTH, callback)); in setIndividualWallpaperWithCenterPosition()
228 WallpaperPersister.DEST_BOTH, callback); in setIndividualWallpaperWithCenterPosition()
260 wallpaper, asset, cropRect, scale, WallpaperPersister.DEST_BOTH, callback); in setIndividualWallpaperWithCenterCropPosition()
600 private final WallpaperPersister.SetWallpaperCallback mCallback;
614 WallpaperPersister.SetWallpaperCallback callback) { in SetWallpaperTask()
627 @Destination int destination, WallpaperPersister.SetWallpaperCallback callback) { in SetWallpaperTask()
DBaseWallpaperInjector.java31 private WallpaperPersister mWallpaperPersister;
72 public synchronized WallpaperPersister getWallpaperPersister(Context context) { in getWallpaperPersister()
DDefaultWallpaperPreferences.java28 import com.android.wallpaper.module.WallpaperPersister.Destination;
894 if (destination == WallpaperPersister.DEST_HOME_SCREEN) { in updateDailyWallpaperSet()
897 } else if (destination == WallpaperPersister.DEST_LOCK_SCREEN) { in updateDailyWallpaperSet()
900 } else if (destination == WallpaperPersister.DEST_BOTH) { in updateDailyWallpaperSet()
DWallpaperPersister.java33 public interface WallpaperPersister { interface
DNoOpUserEventLogger.java20 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
DUserEventLogger.java22 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
DInjector.java65 WallpaperPersister getWallpaperPersister(Context context); in getWallpaperPersister()
DWallpaperPreferences.java24 import com.android.wallpaper.module.WallpaperPersister.Destination;
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DTopLevelPickerActivity.java68 import com.android.wallpaper.module.WallpaperPersister;
69 import com.android.wallpaper.module.WallpaperPersister.Destination;
70 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
71 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
111 private WallpaperPersister mWallpaperPersister;
917 WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP, new SetWallpaperCallback() { in setCustomPhotoWallpaper()
939 … mCustomPhotoWallpaperPosition = WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP; in setCustomPhotoWallpaper()
977 wallpaperInfo, WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP, in initializeWallpaperPositionOptionClickHandlers()
994 … mCustomPhotoWallpaperPosition = WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP; in initializeWallpaperPositionOptionClickHandlers()
1011 wallpaperInfo, WallpaperPersister.WALLPAPER_POSITION_STRETCH, in initializeWallpaperPositionOptionClickHandlers()
[all …]
DSetWallpaperDialogFragment.java33 import com.android.wallpaper.module.WallpaperPersister;
81 v -> onSetWallpaperButtonClick(WallpaperPersister.DEST_HOME_SCREEN)); in onCreateDialog()
85 v -> onSetWallpaperButtonClick(WallpaperPersister.DEST_LOCK_SCREEN)); in onCreateDialog()
89 v -> onSetWallpaperButtonClick(WallpaperPersister.DEST_BOTH)); in onCreateDialog()
DCategoryFragment.java56 import com.android.wallpaper.module.WallpaperPersister;
467 public void onDestinationSet(@WallpaperPersister.Destination int destination) { in onDestinationSet()
468 if (destination == WallpaperPersister.DEST_BOTH) { in onDestinationSet()
DWallpaperPickerDelegate.java46 import com.android.wallpaper.module.WallpaperPersister;
85 private WallpaperPersister mWallpaperPersister;
DSetWallpaperErrorDialogFragment.java25 import com.android.wallpaper.module.WallpaperPersister.Destination;
DImagePreviewFragment.java66 import com.android.wallpaper.module.WallpaperPersister.Destination;
67 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
DPreviewFragment.java49 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;
76 final WallpaperPersister.SetWallpaperCallback callback) { in setIndividualWallpaper()
115 mDestination = WallpaperPersister.DEST_BOTH; in setIndividualWallpaperWithPosition()
DTestWallpaperPreferences.java18 import static com.android.wallpaper.module.WallpaperPersister.DEST_BOTH;
19 import static com.android.wallpaper.module.WallpaperPersister.DEST_HOME_SCREEN;
20 import static com.android.wallpaper.module.WallpaperPersister.DEST_LOCK_SCREEN;
24 import com.android.wallpaper.module.WallpaperPersister.Destination;
DTestInjector.java43 import com.android.wallpaper.module.WallpaperPersister;
61 private WallpaperPersister mWallpaperPersister;
109 public WallpaperPersister getWallpaperPersister(Context context) { in getWallpaperPersister()
DTestUserEventLogger.java21 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()
DPreviewIndividualHolder.java30 import com.android.wallpaper.module.WallpaperPersister;
40 private WallpaperPersister mWallpaperPersister;
DIndividualPickerFragment.java77 import com.android.wallpaper.module.WallpaperPersister;
78 import com.android.wallpaper.module.WallpaperPersister.Destination;
212 WallpaperPersister mWallpaperPersister;
955 private WallpaperPersister.SetWallpaperCallback mSetWallpaperCallback =
956 new WallpaperPersister.SetWallpaperCallback() {
996 R.string.set_wallpaper_error_message, WallpaperPersister.DEST_BOTH); in showSetWallpaperErrorDialog()
1132 if (isDestinationBoth || mWallpaperDestination == WallpaperPersister.DEST_HOME_SCREEN) { in getAppliedWallpaperId()
DIndividualPickerActivity.java45 import com.android.wallpaper.module.WallpaperPersister;
66 private WallpaperPersister mWallpaperPersister;
/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()

12