Android 12 Starting window的添加与移除

2024-04-24 17:20
文章标签 android window 移除 starting

本文主要是介绍Android 12 Starting window的添加与移除,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

添加:

04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.StartingSurfaceController.createSplashScreenStartingSurface(StartingSurfaceController.java:87)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.SplashScreenStartingData.createStartingSurface(SplashScreenStartingData.java:49)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityRecord$AddStartingWindow.run(ActivityRecord.java:2847)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityRecord.scheduleAddStartingWindow(ActivityRecord.java:2820)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityRecord.addStartingWindow(ActivityRecord.java:2799)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityRecord.showStartingWindow(ActivityRecord.java:7997)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityRecord.showStartingWindow(ActivityRecord.java:7957)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.StartingSurfaceController.showStartingWindow(StartingSurfaceController.java:201)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.Task.startActivityLocked(Task.java:5873)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityStarter.startActivityInner(ActivityStarter.java:2156)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityStarter.startActivityUnchecked(ActivityStarter.java:1840)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1383)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:786)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1365)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1328)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityTaskManagerService.startActivity(ActivityTaskManagerService.java:1303)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at android.app.IActivityTaskManager$Stub.onTransact(IActivityTaskManager.java:1174)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at com.android.server.wm.ActivityTaskManagerService.onTransact(ActivityTaskManagerService.java:5560)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at android.os.Binder.execTransactInternal(Binder.java:1290)
04-13 16:29:55.931 2944 7259 D jinyanmeistart: at android.os.Binder.execTransact(Binder.java:1249)04-13 16:29:55.932 5000 5835 D jinyanmeistart: ITaskOrganizer addStartingWindow :
04-13 16:29:55.932 5000 5835 D jinyanmeistart: java.lang.RuntimeException: jinyanmeistart
04-13 16:29:55.932 5000 5835 D jinyanmeistart: at android.window.TaskOrganizer$1.addStartingWindow(TaskOrganizer.java:287)
04-13 16:29:55.932 5000 5835 D jinyanmeistart: at android.window.ITaskOrganizer$Stub.onTransact(ITaskOrganizer.java:211)
04-13 16:29:55.932 5000 5835 D jinyanmeistart: at android.os.Binder.execTransactInternal(Binder.java:1290)
04-13 16:29:55.932 5000 5835 D jinyanmeistart: at android.os.Binder.execTransact(Binder.java:1249)
04-13 16:29:55.952 2944 3701 D jinyanmeistart: getFinishedCallback 11111111:com.android.server.wm.WindowContainer$$ExternalSyntheticLambda4@ebc3815

 

调用到shell 的system _ui 进程:

其中调用到StartingSurfaceDrawer.addSplashScreenStartingWindow

函数初计算了startingwindow的各种屏幕参数params,

mAttrs.type = TYPE_APPLICATION_STARTING

然后根据参数addWindow。

addView

然后调用到系统的WindwmanagerService的addView,执行添加窗口的流程

移除:

 

在刷新的过程中,遍历窗口属性时,如果当topactivity的Surface drawState为drawState == HAS_DRAWN || drawState == READY_TO_SHOW) 移除starting window04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.view.ViewRootImpl.createSyncIfNeeded(ViewRootImpl.java:3938)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3886)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2608)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9623)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1491)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1499)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.view.Choreographer.doCallbacks(Choreographer.java:1114)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.view.Choreographer.doFrame(Choreographer.java:1031)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1467)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.os.Handler.handleCallback(Handler.java:942)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.os.Handler.dispatchMessage(Handler.java:99)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.os.Looper.loopOnce(Looper.java:211)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.os.Looper.loop(Looper.java:300)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at android.app.ActivityThread.main(ActivityThread.java:8352)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at java.lang.reflect.Method.invoke(Native Method)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
04-13 20:51:34.272 10792 10792 D jinyanmeistart: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)04-13 20:51:34.273 10792 10792 D jinyanmeistart: finishDrawing mWindow:android.view.ViewRootImpl$W@b52582a
04-13 20:51:34.273 10792 10792 D jinyanmeistart: java.lang.RuntimeException: reportDrawFinished
04-13 20:51:34.273 10792 10792 D jinyanmeistart: at android.view.ViewRootImpl.reportDrawFinished(ViewRootImpl.java:4614)
04-13 20:51:34.273 10792 10792 D jinyanmeistart: at android.view.ViewRootImpl.lambda$createSyncIfNeeded$4$android-view-ViewRootImpl(ViewRootImpl.java:3945)
04-13 20:51:34.273 10792 10792 D jinyanmeistart: at android.view.ViewRootImpl$$ExternalSyntheticLambda1.run(Unknown Source:6)
04-13 20:51:34.273 10792 10792 D jinyanmeistart: at android.os.Handler.handleCallback(Handler.java:942)
04-13 20:51:34.273 10792 10792 D jinyanmeistart: at android.os.Handler.dispatchMessage(Handler.java:99)
04-13 20:51:34.273 10792 10792 D jinyanmeistart: at android.os.Looper.loopOnce(Looper.java:211)
04-13 20:51:34.273 10792 10792 D jinyanmeistart: at android.os.Looper.loop(Looper.java:300)
04-13 20:51:34.273 10792 10792 D jinyanmeistart: at android.app.ActivityThread.main(ActivityThread.java:8352)
04-13 20:51:34.273 10792 10792 D jinyanmeistart: at java.lang.reflect.Method.invoke(Native Method)
04-13 20:51:34.273 10792 10792 D jinyanmeistart: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
04-13 20:51:34.273 10792 10792 D jinyanmeistart: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)04-13 20:51:34.276 2901 2955 D jinyanmeistar: requestTraversal:com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:205 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:148 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:137
04-13 20:51:34.276 2901 2955 D jinyanmeistar: java.lang.RuntimeException: jinyanmeistart
04-13 20:51:34.276 2901 2955 D jinyanmeistar: at com.android.server.wm.WindowSurfacePlacer.requestTraversal(WindowSurfacePlacer.java:248)
04-13 20:51:34.276 2901 2955 D jinyanmeistar: at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop(WindowSurfacePlacer.java:205)
04-13 20:51:34.276 2901 2955 D jinyanmeistar: at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:148)
04-13 20:51:34.276 2901 2955 D jinyanmeistar: at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:137)
04-13 20:51:34.276 2901 2955 D jinyanmeistar: at com.android.server.wm.WindowSurfacePlacer$Traverser.run(WindowSurfacePlacer.java:79)
04-13 20:51:34.276 2901 2955 D jinyanmeistar: at android.os.Handler.handleCallback(Handler.java:942)
04-13 20:51:34.276 2901 2955 D jinyanmeistar: at android.os.Handler.dispatchMessage(Handler.java:99)
04-13 20:51:34.276 2901 2955 D jinyanmeistar: at android.os.Looper.loopOnce(Looper.java:211)
04-13 20:51:34.276 2901 2955 D jinyanmeistar: at android.os.Looper.loop(Looper.java:300)
04-13 20:51:34.276 2901 2955 D jinyanmeistar: at android.os.HandlerThread.run(HandlerThread.java:67)
04-13 20:51:34.276 2901 2955 D jinyanmeistar: at com.android.server.ServiceThread.run(ServiceThread.java:46)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: TaskOrganizerController removeStartingWindow + topActivity:ActivityRecord{c790b3d u0 com.tencent.mobileqq/.activity.LoginActivity} t405}
04-13 16:29:56.352 2944 2970 D jinyanmeistart: java.lang.RuntimeException: jinyanmeistart
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.TaskOrganizerController.removeStartingWindow(TaskOrganizerController.java:551)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.StartingSurfaceController$StartingSurface.remove(StartingSurfaceController.java:275)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.ActivityRecord.lambda$removeStartingWindowAnimation$6$com-android-server-wm-ActivityRecord(ActivityRecord.java:3221)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.ActivityRecord$$ExternalSyntheticLambda11.run(Unknown Source:8)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.ActivityRecord.removeStartingWindowAnimation(ActivityRecord.java:3237)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.ActivityRecord.removeStartingWindow(ActivityRecord.java:3163)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.ActivityRecord.onFirstWindowDrawn(ActivityRecord.java:7323)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowState.performShowLocked(WindowState.java:5094)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowStateAnimator.commitFinishDrawingLocked(WindowStateAnimator.java:315)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.DisplayContent.lambda$new$8$com-android-server-wm-DisplayContent(DisplayContent.java:1065)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.DisplayContent$$ExternalSyntheticLambda17.accept(Unknown Source:4)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer$ForAllWindowsConsumerWrapper.apply(WindowContainer.java:2753)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer$ForAllWindowsConsumerWrapper.apply(WindowContainer.java:2743)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowState.applyInOrderWithImeWindows(WindowState.java:5377)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowState.forAllWindows(WindowState.java:5221)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:1735)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:1735)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:1735)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:1735)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:1735)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:1735)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:1735)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:1735)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:1752)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.DisplayContent.applySurfaceChangesTransaction(DisplayContent.java:5079)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.RootWindowContainer.applySurfaceChangesTransaction(RootWindowContainer.java:1099)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.RootWindowContainer.performSurfacePlacementNoTrace(RootWindowContainer.java:897)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.RootWindowContainer.performSurfacePlacement(RootWindowContainer.java:855)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop(WindowSurfacePlacer.java:199)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:148)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:137)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowSurfacePlacer$Traverser.run(WindowSurfacePlacer.java:79)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at android.os.Handler.handleCallback(Handler.java:942)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at android.os.Handler.dispatchMessage(Handler.java:99)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at android.os.Looper.loopOnce(Looper.java:211)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at android.os.Looper.loop(Looper.java:300)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at android.os.HandlerThread.run(HandlerThread.java:67)
04-13 16:29:56.352 2944 2970 D jinyanmeistart: at com.android.server.ServiceThread.run(ServiceThread.java:46)然后调用到shell的removeStartingWindow04-13 16:29:56.353 5000 5835 D jinyanmeistart: ITaskOrganizer removeStartingWindow :
04-13 16:29:56.353 5000 5835 D jinyanmeistart: java.lang.RuntimeException: jinyanmeistart
04-13 16:29:56.353 5000 5835 D jinyanmeistart: at android.window.TaskOrganizer$1.removeStartingWindow(TaskOrganizer.java:294)
04-13 16:29:56.353 5000 5835 D jinyanmeistart: at android.window.ITaskOrganizer$Stub.onTransact(ITaskOrganizer.java:219)
04-13 16:29:56.353 5000 5835 D jinyanmeistart: at android.os.Binder.execTransactInternal(Binder.java:1290)
04-13 16:29:56.353 5000 5835 D jinyanmeistart: at android.os.Binder.execTransact(Binder.java:1249)04-13 16:29:56.354 5000 5129 D jinyanmeistart: java.lang.RuntimeException: jinyanmeistart
04-13 16:29:56.354 5000 5129 D jinyanmeistart: at com.android.wm.shell.startingsurface.StartingWindowController.removeStartingWindow(StartingWindowController.java:191)
04-13 16:29:56.354 5000 5129 D jinyanmeistart: at com.android.wm.shell.ShellTaskOrganizer.removeStartingWindow(ShellTaskOrganizer.java:407)
04-13 16:29:56.354 5000 5129 D jinyanmeistart: at android.window.TaskOrganizer$1.lambda$removeStartingWindow$1$android-window-TaskOrganizer$1(TaskOrganizer.java:295)
04-13 16:29:56.354 5000 5129 D jinyanmeistart: at android.window.TaskOrganizer$1$$ExternalSyntheticLambda10.run(Unknown Source:4)
04-13 16:29:56.354 5000 5129 D jinyanmeistart: at android.os.Handler.handleCallback(Handler.java:942)
04-13 16:29:56.354 5000 5129 D jinyanmeistart: at android.os.Handler.dispatchMessage(Handler.java:99)
04-13 16:29:56.354 5000 5129 D jinyanmeistart: at android.os.Looper.loopOnce(Looper.java:211)
04-13 16:29:56.354 5000 5129 D jinyanmeistart: at android.os.Looper.loop(Looper.java:300)
04-13 16:29:56.354 5000 5129 D jinyanmeistart: at android.os.HandlerThread.run(HandlerThread.java:67)04-13 16:29:56.359 5000 5287 D jinyanmeistart: java.lang.RuntimeException: jinyanmeistart
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at android.view.ViewRootImpl.die(ViewRootImpl.java:9116)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:523)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:464)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at com.android.wm.shell.startingsurface.StartingSurfaceDrawer.removeWindowInner(StartingSurfaceDrawer.java:698)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at com.android.wm.shell.startingsurface.StartingSurfaceDrawer.removeWindowSynced(StartingSurfaceDrawer.java:655)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at com.android.wm.shell.startingsurface.StartingSurfaceDrawer.removeStartingWindow(StartingSurfaceDrawer.java:523)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at com.android.wm.shell.startingsurface.StartingWindowController.lambda$removeStartingWindow$4(StartingWindowController.java:192)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at com.android.wm.shell.startingsurface.StartingWindowController.$r8$lambda$qG0mTCPcPig28ujIzll9N1h0gXA(Unknown Source:0)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at com.android.wm.shell.startingsurface.StartingWindowController$$ExternalSyntheticLambda3.run(Unknown Source:4)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at android.os.Handler.handleCallback(Handler.java:942)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at android.os.Handler.dispatchMessage(Handler.java:99)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at android.os.Looper.loopOnce(Looper.java:211)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at android.os.Looper.loop(Looper.java:300)
04-13 16:29:56.359 5000 5287 D jinyanmeistart: at android.os.HandlerThread.run(HandlerThread.java:67)由shell的systemUI进程ViewRootImpl调用到 WMS的removeWindow 并且释放surface。将状态置于0.04-13 16:29:56.578 2944 2970 D jinyanmeistart: destroySurface mDrawState 555 +++:4
04-13 16:29:56.578 2944 2970 D jinyanmeistart: destroySurface mDrawState 555 ---:0
04-13 16:29:56.578 2944 2970 D jinyanmeistart: java.lang.RuntimeException: jinyanmeistart
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowStateAnimator.destroySurface(WindowStateAnimator.java:830)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowStateAnimator.destroySurfaceLocked(WindowStateAnimator.java:467)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowState.destroySurfaceUnchecked(WindowState.java:3834)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowState.destroySurface(WindowState.java:3808)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowState.onExitAnimationDone(WindowState.java:5578)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowStateAnimator.onAnimationFinished(WindowStateAnimator.java:198)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowState.onAnimationFinished(WindowState.java:5793)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.WindowContainer$$ExternalSyntheticLambda4.onAnimationFinished(Unknown Source:2)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$0$com-android-server-wm-SurfaceAnimator(SurfaceAnimator.java:135)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.SurfaceAnimator$$ExternalSyntheticLambda1.run(Unknown Source:8)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$1$com-android-server-wm-SurfaceAnimator(SurfaceAnimator.java:145)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.SurfaceAnimator$$ExternalSyntheticLambda0.onAnimationFinished(Unknown Source:4)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.LocalAnimationAdapter.lambda$startAnimation$0$com-android-server-wm-LocalAnimationAdapter(LocalAnimationAdapter.java:69)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.wm.LocalAnimationAdapter$$ExternalSyntheticLambda0.run(Unknown Source:6)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at android.os.Handler.handleCallback(Handler.java:942)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at android.os.Handler.dispatchMessage(Handler.java:99)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at android.os.Looper.loopOnce(Looper.java:211)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at android.os.Looper.loop(Looper.java:300)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at android.os.HandlerThread.run(HandlerThread.java:67)
04-13 16:29:56.578 2944 2970 D jinyanmeistart: at com.android.server.ServiceThread.run(ServiceThread.java:46)

 

 

这篇关于Android 12 Starting window的添加与移除的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/932358

相关文章

Android中Dialog的使用详解

《Android中Dialog的使用详解》Dialog(对话框)是Android中常用的UI组件,用于临时显示重要信息或获取用户输入,本文给大家介绍Android中Dialog的使用,感兴趣的朋友一起... 目录android中Dialog的使用详解1. 基本Dialog类型1.1 AlertDialog(

Android Kotlin 高阶函数详解及其在协程中的应用小结

《AndroidKotlin高阶函数详解及其在协程中的应用小结》高阶函数是Kotlin中的一个重要特性,它能够将函数作为一等公民(First-ClassCitizen),使得代码更加简洁、灵活和可... 目录1. 引言2. 什么是高阶函数?3. 高阶函数的基础用法3.1 传递函数作为参数3.2 Lambda

Android自定义Scrollbar的两种实现方式

《Android自定义Scrollbar的两种实现方式》本文介绍两种实现自定义滚动条的方法,分别通过ItemDecoration方案和独立View方案实现滚动条定制化,文章通过代码示例讲解的非常详细,... 目录方案一:ItemDecoration实现(推荐用于RecyclerView)实现原理完整代码实现

如何使用Python实现一个简单的window任务管理器

《如何使用Python实现一个简单的window任务管理器》这篇文章主要为大家详细介绍了如何使用Python实现一个简单的window任务管理器,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起... 任务管理器效果图完整代码import tkinter as tkfrom tkinter i

Android App安装列表获取方法(实践方案)

《AndroidApp安装列表获取方法(实践方案)》文章介绍了Android11及以上版本获取应用列表的方案调整,包括权限配置、白名单配置和action配置三种方式,并提供了相应的Java和Kotl... 目录前言实现方案         方案概述一、 androidManifest 三种配置方式

Android WebView无法加载H5页面的常见问题和解决方法

《AndroidWebView无法加载H5页面的常见问题和解决方法》AndroidWebView是一种视图组件,使得Android应用能够显示网页内容,它基于Chromium,具备现代浏览器的许多功... 目录1. WebView 简介2. 常见问题3. 网络权限设置4. 启用 JavaScript5. D

Android如何获取当前CPU频率和占用率

《Android如何获取当前CPU频率和占用率》最近在优化App的性能,需要获取当前CPU视频频率和占用率,所以本文小编就来和大家总结一下如何在Android中获取当前CPU频率和占用率吧... 最近在优化 App 的性能,需要获取当前 CPU视频频率和占用率,通过查询资料,大致思路如下:目前没有标准的

Android开发中gradle下载缓慢的问题级解决方法

《Android开发中gradle下载缓慢的问题级解决方法》本文介绍了解决Android开发中Gradle下载缓慢问题的几种方法,本文给大家介绍的非常详细,感兴趣的朋友跟随小编一起看看吧... 目录一、网络环境优化二、Gradle版本与配置优化三、其他优化措施针对android开发中Gradle下载缓慢的问

Android 悬浮窗开发示例((动态权限请求 | 前台服务和通知 | 悬浮窗创建 )

《Android悬浮窗开发示例((动态权限请求|前台服务和通知|悬浮窗创建)》本文介绍了Android悬浮窗的实现效果,包括动态权限请求、前台服务和通知的使用,悬浮窗权限需要动态申请并引导... 目录一、悬浮窗 动态权限请求1、动态请求权限2、悬浮窗权限说明3、检查动态权限4、申请动态权限5、权限设置完毕后

Android里面的Service种类以及启动方式

《Android里面的Service种类以及启动方式》Android中的Service分为前台服务和后台服务,前台服务需要亮身份牌并显示通知,后台服务则有启动方式选择,包括startService和b... 目录一句话总结:一、Service 的两种类型:1. 前台服务(必须亮身份牌)2. 后台服务(偷偷干