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.java23 import com.android.wallpaper.module.WallpaperPersister.Destination;
24 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
51 private final WallpaperPersister mWallpaperPersister;
58 public WallpaperSetter(WallpaperPersister wallpaperPersister, in WallpaperSetter()
174 if (destination == WallpaperPersister.DEST_LOCK_SCREEN) { in setCurrentLiveWallpaper()
185 if (destination == WallpaperPersister.DEST_BOTH) { in setCurrentLiveWallpaper()
291 listener.onSet(WallpaperPersister.DEST_BOTH); in requestDestination()
DDefaultWallpaperPersister.java63 public class DefaultWallpaperPersister implements WallpaperPersister {
182 WallpaperPersister.DEST_BOTH, callback); in setIndividualWallpaperWithPosition()
217 setIndividualWallpaper(wallpaper, bitmap, WallpaperPersister.DEST_BOTH, in setIndividualWallpaperWithCenterPosition()
232 WallpaperPersister.DEST_BOTH, callback); in setIndividualWallpaperWithCenterPosition()
264 wallpaper, asset, cropRect, scale, WallpaperPersister.DEST_BOTH, callback); in setIndividualWallpaperWithCenterCropPosition()
604 private final WallpaperPersister.SetWallpaperCallback mCallback;
618 WallpaperPersister.SetWallpaperCallback callback) { in SetWallpaperTask()
631 @Destination int destination, WallpaperPersister.SetWallpaperCallback callback) { in SetWallpaperTask()
DBaseWallpaperInjector.java31 private WallpaperPersister mWallpaperPersister;
71 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.java18 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
DUserEventLogger.java18 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;
110 private WallpaperPersister mWallpaperPersister;
913 WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP, new SetWallpaperCallback() { in setCustomPhotoWallpaper()
935 … mCustomPhotoWallpaperPosition = WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP; in setCustomPhotoWallpaper()
973 wallpaperInfo, WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP, in initializeWallpaperPositionOptionClickHandlers()
990 … mCustomPhotoWallpaperPosition = WallpaperPersister.WALLPAPER_POSITION_CENTER_CROP; in initializeWallpaperPositionOptionClickHandlers()
1007 wallpaperInfo, WallpaperPersister.WALLPAPER_POSITION_STRETCH, in initializeWallpaperPositionOptionClickHandlers()
[all …]
DSetWallpaperDialogFragment.java33 import com.android.wallpaper.module.WallpaperPersister;
75 v -> onSetWallpaperButtonClick(WallpaperPersister.DEST_HOME_SCREEN)); in onCreateDialog()
82 v -> onSetWallpaperButtonClick(WallpaperPersister.DEST_LOCK_SCREEN)); in onCreateDialog()
89 v -> onSetWallpaperButtonClick(WallpaperPersister.DEST_BOTH)); in onCreateDialog()
DWallpaperPickerDelegate.java46 import com.android.wallpaper.module.WallpaperPersister;
83 private WallpaperPersister mWallpaperPersister;
DCategoryFragment.java58 import com.android.wallpaper.module.WallpaperPersister;
486 public void onDestinationSet(@WallpaperPersister.Destination int destination) { in onDestinationSet()
487 if (destination == WallpaperPersister.DEST_BOTH) { in onDestinationSet()
DSetWallpaperErrorDialogFragment.java25 import com.android.wallpaper.module.WallpaperPersister.Destination;
DImagePreviewFragment.java58 import com.android.wallpaper.module.WallpaperPersister.Destination;
59 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
DPreviewFragment.java48 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.java42 import com.android.wallpaper.module.WallpaperPersister;
60 private WallpaperPersister mWallpaperPersister;
108 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()
DPreviewIndividualHolder.java30 import com.android.wallpaper.module.WallpaperPersister;
40 private WallpaperPersister mWallpaperPersister;
DIndividualPickerFragment.java74 import com.android.wallpaper.module.WallpaperPersister;
75 import com.android.wallpaper.module.WallpaperPersister.Destination;
189 WallpaperPersister mWallpaperPersister;
878 private WallpaperPersister.SetWallpaperCallback mSetWallpaperCallback =
879 new WallpaperPersister.SetWallpaperCallback() {
908 R.string.set_wallpaper_error_message, WallpaperPersister.DEST_BOTH); in showSetWallpaperErrorDialog()
1048 if (isDestinationBoth || mWallpaperDestination == WallpaperPersister.DEST_HOME_SCREEN) { in getAppliedWallpaperId()
DIndividualPickerActivity.java45 import com.android.wallpaper.module.WallpaperPersister;
64 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