/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | WallpaperSetter.java | 27 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()
|
D | DefaultWallpaperPersister.java | 63 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()
|
D | BaseWallpaperInjector.java | 31 private WallpaperPersister mWallpaperPersister; 72 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 | 20 import com.android.wallpaper.module.WallpaperPersister.WallpaperPosition;
|
D | UserEventLogger.java | 22 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; 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 …]
|
D | SetWallpaperDialogFragment.java | 33 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()
|
D | CategoryFragment.java | 56 import com.android.wallpaper.module.WallpaperPersister; 467 public void onDestinationSet(@WallpaperPersister.Destination int destination) { in onDestinationSet() 468 if (destination == WallpaperPersister.DEST_BOTH) { in onDestinationSet()
|
D | WallpaperPickerDelegate.java | 46 import com.android.wallpaper.module.WallpaperPersister; 85 private WallpaperPersister mWallpaperPersister;
|
D | SetWallpaperErrorDialogFragment.java | 25 import com.android.wallpaper.module.WallpaperPersister.Destination;
|
D | ImagePreviewFragment.java | 66 import com.android.wallpaper.module.WallpaperPersister.Destination; 67 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
|
D | PreviewFragment.java | 49 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 | 43 import com.android.wallpaper.module.WallpaperPersister; 61 private WallpaperPersister mWallpaperPersister; 109 public WallpaperPersister getWallpaperPersister(Context context) { in getWallpaperPersister()
|
D | TestUserEventLogger.java | 21 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 | 77 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()
|
D | IndividualPickerActivity.java | 45 import com.android.wallpaper.module.WallpaperPersister; 66 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()
|