Move ImageWallpaper.java into package 'com.android.systemui.wallpapers'

Test: Manual on mobile (try to download & attach a wallpaper, check that
nothing breaks)
Test: atest ImageWallpaperTest
Bug: 243402530

Change-Id: I5af1acf08bb1c43a5e119597a9cef2ea667723c3
This commit is contained in:
Aurélien Pomini
2022-08-22 12:22:40 +00:00
parent 9fefe95ba6
commit 369f1b973e
6 changed files with 7 additions and 6 deletions

View File

@@ -519,7 +519,7 @@ public abstract class WallpaperService extends Service {
* {@link #addLocalColorsAreas(List)}
* {@link #removeLocalColorsAreas(List)}
* When local colors change, call {@link #notifyLocalColorsChanged(List, List)}
* See {@link com.android.systemui.ImageWallpaper} for an example
* See {@link com.android.systemui.wallpapers.ImageWallpaper} for an example
* @hide
*/
public boolean supportsLocalColorExtraction() {

View File

@@ -1733,7 +1733,7 @@
<item name="default_lock_wallpaper" type="drawable">@null</item>
<!-- Component name of the built in wallpaper used to display bitmap wallpapers. This must not be null. -->
<string name="image_wallpaper_component" translatable="false">com.android.systemui/com.android.systemui.ImageWallpaper</string>
<string name="image_wallpaper_component" translatable="false">com.android.systemui/com.android.systemui.wallpapers.ImageWallpaper</string>
<!-- True if WallpaperService is enabled -->
<bool name="config_enableWallpaperService">true</bool>

View File

@@ -414,7 +414,7 @@
</intent-filter>
</receiver>
<service android:name=".ImageWallpaper"
<service android:name=".wallpapers.ImageWallpaper"
android:singleUser="true"
android:permission="android.permission.BIND_WALLPAPER"
android:exported="true" />

View File

@@ -18,7 +18,6 @@ package com.android.systemui.dagger;
import android.app.Service;
import com.android.systemui.ImageWallpaper;
import com.android.systemui.SystemUIService;
import com.android.systemui.doze.DozeService;
import com.android.systemui.dreams.DreamOverlayService;
@@ -26,6 +25,7 @@ import com.android.systemui.dump.SystemUIAuxiliaryDumpService;
import com.android.systemui.keyguard.KeyguardService;
import com.android.systemui.screenrecord.RecordingService;
import com.android.systemui.statusbar.phone.NotificationListenerWithPlugins;
import com.android.systemui.wallpapers.ImageWallpaper;
import dagger.Binds;
import dagger.Module;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.systemui;
package com.android.systemui.wallpapers;
import android.app.WallpaperColors;
import android.graphics.Bitmap;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.systemui;
package com.android.systemui.wallpapers;
import static com.google.common.truth.Truth.assertWithMessage;
@@ -40,6 +40,7 @@ import android.view.Display;
import android.view.DisplayInfo;
import android.view.SurfaceHolder;
import com.android.systemui.SysuiTestCase;
import com.android.systemui.glwallpaper.ImageWallpaperRenderer;
import org.junit.Before;