/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | WallpaperSetter.java | 23 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()
|
D | DefaultWallpaperPersister.java | 63 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()
|
D | BaseWallpaperInjector.java | 31 private WallpaperPersister mWallpaperPersister; 71 public synchronized WallpaperPersister getWallpaperPersister(Context context) { in getWallpaperPersister()
|
D | DefaultWallpaperPreferences.java | 28 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()
|
D | WallpaperPersister.java | 33 public interface WallpaperPersister { interface
|
D | NoOpUserEventLogger.java | 18 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
|
D | UserEventLogger.java | 18 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
|
D | Injector.java | 65 WallpaperPersister getWallpaperPersister(Context context); in getWallpaperPersister()
|
D | WallpaperPreferences.java | 24 import com.android.wallpaper.module.WallpaperPersister.Destination;
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | TopLevelPickerActivity.java | 68 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 …]
|
D | SetWallpaperDialogFragment.java | 33 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()
|
D | WallpaperPickerDelegate.java | 46 import com.android.wallpaper.module.WallpaperPersister; 83 private WallpaperPersister mWallpaperPersister;
|
D | CategoryFragment.java | 58 import com.android.wallpaper.module.WallpaperPersister; 486 public void onDestinationSet(@WallpaperPersister.Destination int destination) { in onDestinationSet() 487 if (destination == WallpaperPersister.DEST_BOTH) { in onDestinationSet()
|
D | SetWallpaperErrorDialogFragment.java | 25 import com.android.wallpaper.module.WallpaperPersister.Destination;
|
D | ImagePreviewFragment.java | 58 import com.android.wallpaper.module.WallpaperPersister.Destination; 59 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
|
D | PreviewFragment.java | 48 import com.android.wallpaper.module.WallpaperPersister.Destination;
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
D | TestWallpaperPersister.java | 30 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()
|
D | TestWallpaperPreferences.java | 18 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;
|
D | TestInjector.java | 42 import com.android.wallpaper.module.WallpaperPersister; 60 private WallpaperPersister mWallpaperPersister; 108 public WallpaperPersister getWallpaperPersister(Context context) { in getWallpaperPersister()
|
D | TestUserEventLogger.java | 19 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/ |
D | SetIndividualHolder.java | 30 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()
|
D | PreviewIndividualHolder.java | 30 import com.android.wallpaper.module.WallpaperPersister; 40 private WallpaperPersister mWallpaperPersister;
|
D | IndividualPickerFragment.java | 74 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()
|
D | IndividualPickerActivity.java | 45 import com.android.wallpaper.module.WallpaperPersister; 64 private WallpaperPersister mWallpaperPersister;
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/ |
D | PreviewActivityTest.java | 52 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()
|