当前位置:   article > 正文

when the starting window is added to the diaplay?

when the starting window is added to the diaplay?
1  Session.addToDisplayAsUser()
  • 1
win.mAttrs.type == TYPE_APPLICATION_STARTING
  • 1
if(this.mWin.mAttrs.packageName.equals("com.test.aiagent")&&this.mWin.getWindowType()==TYPE_APPLICATION_STARTING){

            String  a= null;
            a.length();


        }
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  if(mAttrs.packageName.equals("com.test.aiagent")&&mAttrs.type==TYPE_APPLICATION_STARTING){
            String  a1= null  ;
            a1.length();
        }
  • 1
  • 2
  • 3
  • 4
   final WindowStateAnimator winAnimator = win.mWinAnimator;
            winAnimator.mEnterAnimationPending = true;
            winAnimator.mEnteringAnimation = true;
  • 1
  • 2
  • 3
    /** Used to indicate that this window is undergoing an enter animation. Used for system
     * windows to make the callback to View.dispatchOnWindowShownCallback(). Set when the
     * window is first added or shown, cleared when the callback has been made. */
    boolean mEnteringAnimation;

    // Set to true if, when the window gets displayed, it should perform
    // an enter animation.
    boolean mEnterAnimationPending;
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at com.android.server.wm.WindowState.<init>(WindowState.java:1163)
at com.android.server.wm.WindowState.<init>(WindowState.java:1100)
at com.android.server.wm.WindowManagerService.addWindow(WindowManagerService.java:1684)
at com.android.server.wm.Session.addToDisplayAsUser(Session.java:217)
at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:642)
at com.android.server.wm.Session.onTransact(Session.java:181)
at android.os.Binder.execTransactInternal(Binder.java:1285)
at android.os.Binder.execTransact(Binder.java:1244)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

applyEnterAnimationLocked

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
                    	at com.android.server.wm.WindowStateAnimator.applyEnterAnimationLocked(WindowStateAnimator.java:541)
                    	at com.android.server.wm.WindowState.performShowLocked(WindowState.java:4706)
                    	at com.android.server.wm.ActivityRecord.lambda$showAllWindowsLocked$17(ActivityRecord.java:6765)
                    	at com.android.server.wm.ActivityRecord.$r8$lambda$EBjQ9_0_gnlxfoGHjA_CqMEFYX8(Unknown Source:0)
                    	at com.android.server.wm.ActivityRecord$$ExternalSyntheticLambda36.accept(Unknown Source:2)
                    	at com.android.server.wm.WindowContainer$ForAllWindowsConsumerWrapper.apply(WindowContainer.java:2729)
                    	at com.android.server.wm.WindowContainer$ForAllWindowsConsumerWrapper.apply(WindowContainer.java:2719)
                    	at com.android.server.wm.WindowState.applyInOrderWithImeWindows(WindowState.java:4965)
                    	at com.android.server.wm.WindowState.forAllWindows(WindowState.java:4805)
                    	at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:1707)
                    	at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:1717)
                    	at com.android.server.wm.ActivityRecord.showAllWindowsLocked(ActivityRecord.java:6763)
                    	at com.android.server.wm.AppTransitionController.handleOpeningApps(AppTransitionController.java:1171)
                    	at com.android.server.wm.AppTransitionController.handleAppTransitionReady(AppTransitionController.java:305)
                    	at com.android.server.wm.RootWindowContainer.checkAppTransitionReady(RootWindowContainer.java:970)
                    	at com.android.server.wm.RootWindowContainer.performSurfacePlacementNoTrace(RootWindowContainer.java:834)
                    	at com.android.server.wm.RootWindowContainer.performSurfacePlacement(RootWindowContainer.java:777)
                    	at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop(WindowSurfacePlacer.java:177)
                    	at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:126)
                    	at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:115)
                    	at com.android.server.wm.WindowSurfacePlacer$Traverser.run(WindowSurfacePlacer.java:57)
                    	at android.os.Handler.handleCallback(Handler.java:942)
                    	at android.os.Handler.dispatchMessage(Handler.java:99)
                    	at android.os.Looper.loopOnce(Looper.java:201)
                    	at android.os.Looper.loop(Looper.java:288)
                    	at android.os.HandlerThread.run(HandlerThread.java:67)
                    	at com.android.server.ServiceThread.run(ServiceThread.java:44)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
WindowSurfacePlacer.performSurfacePlacement()
AppTransitionController.handleOpeningApps()
ActivityRecord.showAllWindowsLocked()
  • 1
  • 2
  • 3
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/543741
推荐阅读
相关标签
  

闽ICP备14008679号