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实现任意版本设置默认的锁屏壁纸和桌面壁纸(两张壁纸可不一致)

客户有些需求需要设置默认壁纸和锁屏壁纸  在默认情况下 这两个壁纸是相同的  如果需要默认的锁屏壁纸和桌面壁纸不一样 需要额外修改 Android13实现 替换默认桌面壁纸: 将图片文件替换frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.*  (注意不能是bmp格式) 替换默认锁屏壁纸: 将图片资源放入vendo

Android平台播放RTSP流的几种方案探究(VLC VS ExoPlayer VS SmartPlayer)

技术背景 好多开发者需要遴选Android平台RTSP直播播放器的时候,不知道如何选的好,本文针对常用的方案,做个大概的说明: 1. 使用VLC for Android VLC Media Player(VLC多媒体播放器),最初命名为VideoLAN客户端,是VideoLAN品牌产品,是VideoLAN计划的多媒体播放器。它支持众多音频与视频解码器及文件格式,并支持DVD影音光盘,VCD影

android-opencv-jni

//------------------start opencv--------------------@Override public void onResume(){ super.onResume(); //通过OpenCV引擎服务加载并初始化OpenCV类库,所谓OpenCV引擎服务即是 //OpenCV_2.4.3.2_Manager_2.4_*.apk程序包,存

从状态管理到性能优化:全面解析 Android Compose

文章目录 引言一、Android Compose基本概念1.1 什么是Android Compose?1.2 Compose的优势1.3 如何在项目中使用Compose 二、Compose中的状态管理2.1 状态管理的重要性2.2 Compose中的状态和数据流2.3 使用State和MutableState处理状态2.4 通过ViewModel进行状态管理 三、Compose中的列表和滚动

Android 10.0 mtk平板camera2横屏预览旋转90度横屏拍照图片旋转90度功能实现

1.前言 在10.0的系统rom定制化开发中,在进行一些平板等默认横屏的设备开发的过程中,需要在进入camera2的 时候,默认预览图像也是需要横屏显示的,在上一篇已经实现了横屏预览功能,然后发现横屏预览后,拍照保存的图片 依然是竖屏的,所以说同样需要将图片也保存为横屏图标了,所以就需要看下mtk的camera2的相关横屏保存图片功能, 如何实现实现横屏保存图片功能 如图所示: 2.mtk

android应用中res目录说明

Android应用的res目录是一个特殊的项目,该项目里存放了Android应用所用的全部资源,包括图片、字符串、颜色、尺寸、样式等,类似于web开发中的public目录,js、css、image、style。。。。 Android按照约定,将不同的资源放在不同的文件夹中,这样可以方便的让AAPT(即Android Asset Packaging Tool , 在SDK的build-tools目

Android fill_parent、match_parent、wrap_content三者的作用及区别

这三个属性都是用来适应视图的水平或者垂直大小,以视图的内容或尺寸为基础的布局,比精确的指定视图的范围更加方便。 1、fill_parent 设置一个视图的布局为fill_parent将强制性的使视图扩展至它父元素的大小 2、match_parent 和fill_parent一样,从字面上的意思match_parent更贴切一些,于是从2.2开始,两个属性都可以使用,但2.3版本以后的建议使

Android Environment 获取的路径问题

1. 以获取 /System 路径为例 /*** Return root of the "system" partition holding the core Android OS.* Always present and mounted read-only.*/public static @NonNull File getRootDirectory() {return DIR_ANDR

Android逆向(反调,脱壳,过ssl证书脚本)

文章目录 总结 基础Android基础工具 定位关键代码页面activity定位数据包参数定位堆栈追踪 编写反调脱壳好用的脚本过ssl证书校验抓包反调的脚本打印堆栈bilibili反调的脚本 总结 暑假做了两个月的Android逆向,记录一下自己学到的东西。对于app渗透有了一些思路。 这两个月主要做的是代码分析,对于分析完后的持久化等没有学习。主要是如何反编译源码,如何找到

android系统源码12 修改默认桌面壁纸--SRO方式

1、aosp12修改默认桌面壁纸 代码路径 :frameworks\base\core\res\res\drawable-nodpi 替换成自己的图片即可,不过需要覆盖所有目录下的图片。 由于是静态修改,则需要make一下,重新编译。 2、方法二Overlay方式 由于上述方法有很大缺点,修改多了之后容易遗忘自己修改哪些文件,为此我们采用另外一种方法,使用Overlay方式。