Android how to show ImageViews with animation at Always On Display?

0

I use the windowmanager with accessibility service context to draw images on top of the always on display (aod). It works great. But now i want to animate the ImageViews with a simple alpha-animation.

It works only when screen is on. I know i need a 'draw' wakelock and i have it already. But i get this errors in logcat when screen is OFF:

13:53:34.783 31559-31559/com.ledblinker.pro D/LEDBlinker: Notification onNotificationPosted: StatusBarNotification(pkg=chat.rocket.android user=UserHandle{0} id=1305856533 tag=null key=0|chat.rocket.android|1305856533|null|10434: Notification(channel=rocketchatrn_channel_01 pri=1 contentView=null vibrate=default sound=default defaults=0xffffffff flags=0x11 color=0xffcc3333 actions=1 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0))
13:53:36.029 31559-31559/com.ledblinker.pro D/ViewRootImpl@c979d8b[LEDBlinker]: setView = android.widget.FrameLayout@3109e68 TM=true MM=false
13:53:36.029 31559-31559/com.ledblinker.pro D/LEDBlinker: Shows AOD screen led for packname 'chat.rocket.android#SMART_NOTIFICATION#2' with color -65536
13:53:36.070 31559-31559/com.ledblinker.pro D/ViewRootImpl@c979d8b[LEDBlinker]: Relayout returned: old=(0,150,1440,3040) new=(0,0,1440,3040) req=(1440,2890)0 dur=14 res=0x7 s={true 477900701696} ch=true
13:53:36.073 31559-31659/com.ledblinker.pro D/OpenGLRenderer: createReliableSurface : 0x6ee8dc0840(0x6f451a0000)
13:53:36.074 31559-31659/com.ledblinker.pro I/mali_winsys: new_window_surface() [1440x3040] return: 0x3000
13:53:36.095 31559-31659/com.ledblinker.pro D/OpenGLRenderer: makeCurrent EglSurface : 0x0 -> 0x6ee2d35580
13:53:36.149 31559-31559/com.ledblinker.pro D/ViewRootImpl@c979d8b[LEDBlinker]: performDraw() was skipped by AOD_SHOW_STATE... DisplayState=4
13:53:36.150 31559-31559/com.ledblinker.pro D/ViewRootImpl@c979d8b[LEDBlinker]: MSG_RESIZED_REPORT: frame=(0,0,1440,3040) ci=(0,150,0,0) vi=(0,150,0,0) or=1
13:53:36.193 31559-31559/com.ledblinker.pro D/ViewRootImpl@c979d8b[LEDBlinker]: performDraw() was skipped by AOD_SHOW_STATE... DisplayState=3
13:53:36.215 31559-31559/com.ledblinker.pro D/ViewRootImpl@c979d8b[LEDBlinker]: performDraw() was skipped by AOD_SHOW_STATE... DisplayState=3
13:53:36.275 31559-31559/com.ledblinker.pro I/chatty: uid=10612(com.ledblinker.pro) identical 2 lines
13:53:36.309 31559-31559/com.ledblinker.pro D/ViewRootImpl@c979d8b[LEDBlinker]: performDraw() was skipped by AOD_SHOW_STATE... DisplayState=3
13:53:36.342 31559-31559/com.ledblinker.pro D/ViewRootImpl@c979d8b[LEDBlinker]: performDraw() was skipped by AOD_SHOW_STATE... DisplayState=3
13:53:37.278 31559-31559/com.ledblinker.pro I/chatty: uid=10612(com.ledblinker.pro) identical 28 lines

The relevant information is 'performDraw() was skipped by AOD_SHOW_STATE... DisplayState=4'

But why and how to fix that?

The ImageView will be visible but without animation. Any help would be great.

I am the developer of the LED notification app LED Blinker and i wanted to add this feature there. (https://play.google.com/store/apps/details?id=com.ledblinker)

android
android-windowmanager
asked on Stack Overflow Jul 23, 2020 by most2k1 • edited Jul 25, 2020 by most2k1

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0