Such wallpaper has to define supportsAmbientMode, and set it to true on its android.service.wallpaper meta data. Also introduces WallpaperService.Engine#onAmbientModeChanged to notify a live wallpaper that the display state has changed. Change-Id: I49e846069a698b3cc3bb6e7cda98172920eaae4c Bug: 64155983 Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeWallpaperStateTest.java Test: runtest -x frameworks/base/tests/Internal/src/android/app/WallpaperInfoTest.java Test: runtest -x frameworks/base/tests/Internal/src/android/service/wallpaper/WallpaperServiceTest.java Test: set AoD wallpaper, go to aod, lock screen, launcher Test: set regular wallpaper, go to aod, lock screen, launcher
24 lines
577 B
Makefile
24 lines
577 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_USE_AAPT2 := true
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
LOCAL_PROTOC_OPTIMIZE_TYPE := nano
|
|
|
|
# Include some source files directly to be able to access package members
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
|
|
LOCAL_JAVA_LIBRARIES := android.test.runner
|
|
LOCAL_STATIC_JAVA_LIBRARIES := junit \
|
|
android-support-test \
|
|
mockito-target-minus-junit4
|
|
|
|
LOCAL_JAVA_RESOURCE_DIRS := res
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
LOCAL_PACKAGE_NAME := InternalTests
|
|
LOCAL_COMPATIBILITY_SUITE := device-tests
|
|
|
|
include $(BUILD_PACKAGE)
|