Merge changes from topic "wallpaper-refactor" into tm-qpr-dev

* changes:
  move glwallpaper to package wallpapers.gl
  Move ImageWallpaper.java into package 'com.android.systemui.wallpapers'
This commit is contained in:
Aurélien Pomini
2022-09-13 13:17:47 +00:00
committed by Android (Google) Code Review
13 changed files with 17 additions and 16 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;
@@ -37,8 +37,8 @@ import android.view.WindowManager;
import androidx.annotation.NonNull;
import com.android.internal.annotations.VisibleForTesting;
import com.android.systemui.glwallpaper.EglHelper;
import com.android.systemui.glwallpaper.ImageWallpaperRenderer;
import com.android.systemui.wallpapers.gl.EglHelper;
import com.android.systemui.wallpapers.gl.ImageWallpaperRenderer;
import java.io.FileDescriptor;
import java.io.PrintWriter;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.systemui.glwallpaper;
package com.android.systemui.wallpapers.gl;
import static android.opengl.EGL14.EGL_ALPHA_SIZE;
import static android.opengl.EGL14.EGL_BLUE_SIZE;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.systemui.glwallpaper;
package com.android.systemui.wallpapers.gl;
import android.util.Size;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.systemui.glwallpaper;
package com.android.systemui.wallpapers.gl;
import static android.opengl.GLES20.GL_FRAGMENT_SHADER;
import static android.opengl.GLES20.GL_VERTEX_SHADER;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.systemui.glwallpaper;
package com.android.systemui.wallpapers.gl;
import static android.opengl.GLES20.GL_FLOAT;
import static android.opengl.GLES20.GL_LINEAR;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.systemui.glwallpaper;
package com.android.systemui.wallpapers.gl;
import static android.opengl.GLES20.GL_COLOR_BUFFER_BIT;
import static android.opengl.GLES20.glClear;

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,7 +40,8 @@ import android.view.Display;
import android.view.DisplayInfo;
import android.view.SurfaceHolder;
import com.android.systemui.glwallpaper.ImageWallpaperRenderer;
import com.android.systemui.SysuiTestCase;
import com.android.systemui.wallpapers.gl.ImageWallpaperRenderer;
import org.junit.Before;
import org.junit.Ignore;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.systemui.glwallpaper;
package com.android.systemui.wallpapers.gl;
import static com.google.common.truth.Truth.assertThat;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.systemui.glwallpaper;
package com.android.systemui.wallpapers.gl;
import static com.google.common.truth.Truth.assertThat;