Home
last modified time | relevance | path

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

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/logging/
DUserEventLogger.kt21 import com.android.wallpaper.module.WallpaperPersister
22 import com.android.wallpaper.module.WallpaperPersister.Destination
110 WallpaperPersister.DEST_HOME_SCREEN -> StyleEnums.WALLPAPER_DESTINATION_HOME_SCREEN in logSnapshot()
111 WallpaperPersister.DEST_LOCK_SCREEN -> StyleEnums.WALLPAPER_DESTINATION_LOCK_SCREEN in logSnapshot()
112 WallpaperPersister.DEST_BOTH -> in logSnapshot()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/shared/model/
DWallpaperDestination.kt23 import com.android.wallpaper.module.WallpaperPersister.DEST_BOTH
24 import com.android.wallpaper.module.WallpaperPersister.DEST_HOME_SCREEN
25 import com.android.wallpaper.module.WallpaperPersister.DEST_LOCK_SCREEN
26 import com.android.wallpaper.module.WallpaperPersister.Destination
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DWallpaperSetter.java29 import com.android.wallpaper.module.WallpaperPersister.Destination;
30 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
57 private final WallpaperPersister mWallpaperPersister;
64 public WallpaperSetter(WallpaperPersister wallpaperPersister, in WallpaperSetter()
180 mPreferences.storeLatestWallpaper(WallpaperPersister.destinationToFlags(destination), in setCurrentLiveWallpaper()
203 WallpaperPersister.destinationToFlags(destination)); in setWallpaperComponent()
226 mPreferences.storeLatestWallpaper(WallpaperPersister.destinationToFlags(destination), in setCurrentLiveWallpaperFromRestore()
DDefaultWallpaperPersister.java68 public class DefaultWallpaperPersister implements WallpaperPersister {
457 if (destination == WallpaperPersister.DEST_HOME_SCREEN in setLiveWallpaperMetadata()
458 || destination == WallpaperPersister.DEST_BOTH) { in setLiveWallpaperMetadata()
474 if (destination == WallpaperPersister.DEST_LOCK_SCREEN in setLiveWallpaperMetadata()
475 || destination == WallpaperPersister.DEST_BOTH) { in setLiveWallpaperMetadata()
489 private final WallpaperPersister.SetWallpaperCallback mCallback;
505 @Destination int destination, WallpaperPersister.SetWallpaperCallback callback) { in SetWallpaperTask()
519 @Destination int destination, WallpaperPersister.SetWallpaperCallback callback) { in SetWallpaperTask()
595 .getDrawable(WallpaperPersister.destinationToFlags(mDestination))) in doInBackground()
DDefaultWallpaperPreferences.kt847 @WallpaperPersister.Destination destination: Int, in <lambda>()
853 WallpaperPersister.DEST_HOME_SCREEN -> { in <lambda>()
857 WallpaperPersister.DEST_LOCK_SCREEN -> { in <lambda>()
861 WallpaperPersister.DEST_BOTH -> { in <lambda>()
DWallpaperPersister.java41 public interface WallpaperPersister { interface
DWallpaperPicker2Injector.kt84 private var wallpaperPersister: WallpaperPersister? = null
252 override fun getWallpaperPersister(context: Context): WallpaperPersister { in getWallpaperPersister()
DInjector.kt105 fun getWallpaperPersister(context: Context): WallpaperPersister in getApplicationCoroutineScope()
DWallpaperPreferences.kt325 @WallpaperPersister.Destination destination: Int, in getWallpaperPresentationMode()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
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()
DSetWallpaperErrorDialogFragment.java25 import com.android.wallpaper.module.WallpaperPersister.Destination;
DWallpaperPickerDelegate.java44 import com.android.wallpaper.module.WallpaperPersister;
77 private WallpaperPersister mWallpaperPersister;
DLivePreviewFragment.java25 import static com.android.wallpaper.module.WallpaperPersister.destinationToFlags;
65 import com.android.wallpaper.module.WallpaperPersister;
118 WallpaperPersister.SetWallpaperCallback callback = SetWallpaperViewModel.getCallback( in setWallpaper()
DImagePreviewFragment.java67 import com.android.wallpaper.module.WallpaperPersister.Destination;
DPreviewFragment.java75 import com.android.wallpaper.module.WallpaperPersister.Destination;
/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/
DTestWallpaperPersister.java31 import com.android.wallpaper.module.WallpaperPersister;
41 public class TestWallpaperPersister implements WallpaperPersister {
55 private WallpaperPersister.SetWallpaperCallback mCallback;
80 final WallpaperPersister.SetWallpaperCallback callback) { in setIndividualWallpaper()
DTestWallpaperPreferences.kt27 import com.android.wallpaper.module.WallpaperPersister
429 @WallpaperPersister.Destination destination: Int, in updateDailyWallpaperSet()
435 WallpaperPersister.DEST_HOME_SCREEN -> { in updateDailyWallpaperSet()
439 WallpaperPersister.DEST_LOCK_SCREEN -> { in updateDailyWallpaperSet()
443 WallpaperPersister.DEST_BOTH -> { in updateDailyWallpaperSet()
DTestInjector.kt47 import com.android.wallpaper.module.WallpaperPersister
87 private var wallpaperPersister: WallpaperPersister? = null
219 override fun getWallpaperPersister(context: Context): WallpaperPersister { in getWallpaperPersister()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DPreviewIndividualHolder.java28 import com.android.wallpaper.module.WallpaperPersister;
37 private WallpaperPersister mWallpaperPersister;
DCreativeCategoryIndividualHolder.java28 import com.android.wallpaper.module.WallpaperPersister;
37 private WallpaperPersister mWallpaperPersister;
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DSetWallpaperViewModel.java27 import com.android.wallpaper.module.WallpaperPersister.Destination;
28 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/
DPreviewActivityTest.java53 import com.android.wallpaper.module.WallpaperPersister;
209 assertEquals(WallpaperPersister.DEST_HOME_SCREEN, in testClickSetWallpaper_Success_HomeScreen()
236 assertEquals(WallpaperPersister.DEST_LOCK_SCREEN, in testClickSetWallpaper_Success_LockScreen()
266 assertEquals(WallpaperPersister.DEST_BOTH, mWallpaperPersister.getLastDestination()); in testClickSetWallpaper_Success_BothHomeAndLockScreen()
303 assertEquals(WallpaperPersister.DEST_HOME_SCREEN, in testClickSetWallpaper_Fails_HomeScreen_ShowsErrorDialog()
343 assertEquals(WallpaperPersister.DEST_LOCK_SCREEN, in testClickSetWallpaper_Fails_LockScreen_ShowsErrorDialog()
383 assertEquals(WallpaperPersister.DEST_BOTH, in testClickSetWallpaper_Fails_BothHomeAndLock_ShowsErrorDialog()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/module/
DDefaultWallpaperPersisterTest.java21 import static com.android.wallpaper.module.WallpaperPersister.DEST_BOTH;
39 import com.android.wallpaper.module.WallpaperPersister.SetWallpaperCallback;