Hierarchy Viewr 配合 adb 命令 查看窗口属性
Hierarchy Viewr 可以看到当前 的 窗口层次如下
最上方的是一个dialog
此时用adb命令 抓取当前窗口信息: adb shell dumpsys window > D:\window.txt
WINDOW MANAGER LAST ANR (dumpsys window lastanr) <no ANR has occurred since boot> WINDOW MANAGER POLICY STATE (dumpsys window policy) mSafeMode=false mSystemReady=true mSystemBooted=true mLidState=-1 mLidOpenRotation=-1 mCameraLensCoverState=-1 mHdmiPlugged=false mLastSystemUiFlags=0x8000 mResettingSystemUiFlags=0x0 mForceClearedSystemUiFlags=0x0 mWakeGestureEnabledSetting=true mSupportAutoRotation=true mUiMode=1 mDockMode=0 mCarDockRotation=-1 mDeskDockRotation=-1 mUserRotationMode=0 mUserRotation=0 mAllowAllRotations=0 mCurrentAppOrientation=-1 mCarDockEnablesAccelerometer=true mDeskDockEnablesAccelerometer=true mLidKeyboardAccessibility=0 mLidNavigationAccessibility=0 mLidControlsSleep=false mShortPressOnPowerBehavior=1 mLongPressOnPowerBehavior=1 mDoublePressOnPowerBehavior=3 mTriplePressOnPowerBehavior=4 mHasSoftInput=true mAwake=true mScreenOnEarly=true mScreenOnFully=true mKeyguardDrawComplete=true mWindowManagerDrawComplete=true mOrientationSensorEnabled=true mOverscanScreen=(0,0) 1280x720 mRestrictedOverscanScreen=(0,0) 1280x720 mUnrestrictedScreen=(0,0) 1280x720 mRestrictedScreen=(0,0) 1280x720 mStableFullscreen=(0,0)-(1280,720) mStable=(0,50)-(1280,720) mSystem=(0,0)-(1280,720) mCur=(0,50)-(1280,292) mContent=(0,50)-(1280,292) mVoiceContent=(0,50)-(1280,292) mDock=(0,50)-(1280,720) mDockLayer=21030 mStatusBarLayer=151000 mShowingLockscreen=false mShowingDream=false mDreamingLockscreen=false mStatusBar=Window{37284ed6 u0 d0 StatusBar} isStatusBarKeyguard=false mFocusedWindow=Window{26054079 u0 d0 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity} mFocusedApp=Token{1ddd46a4 ActivityRecord{29211137 u0 com.sec.android.app.myfiles/.common.MainActivity t88}} mTopFullscreenOpaqueWindowState=Window{1a65c4ed u0 d0 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity} mForcingShowNavBar=true mForcingShowNavBarLayer=21030 mTopIsFullscreen=true mHideLockScreen=false mForceStatusBar=false mForceStatusBarFromKeyguard=false mDismissKeyguard=0 mWinDismissingKeyguard=null mHomePressed=false mAllowLockscreenWhenOn=false mLockScreenTimeout=30000 mLockScreenTimerActive=false mEndcallBehavior=2 mIncallPowerBehavior=1 mLongPressOnHomeBehavior=2 mLandscapeRotation=1 mSeascapeRotation=3 mPortraitRotation=0 mUpsideDownRotation=2 mDemoHdmiRotation=1 mDemoHdmiRotationLock=false mUndockedHdmiRotation=-1 mIsDefaultKeyguardRotationAnmationAlwaysUsed=false mKeyMapping.size=0 BarController.StatusBar mState=WINDOW_STATE_HIDDEN mTransientBar=TRANSIENT_BAR_NONE PolicyControl.sImmersiveStatusFilter=null PolicyControl.sImmersiveNavigationFilter=null PolicyControl.sImmersivePreconfirmationsFilter=null WakeGestureListener mTriggerRequested=false mSensor=null WindowOrientationListener mEnabled=true mCurrentRotation=1 mSensor={Sensor name="Screen Orientation Sensor", vendor="Samsung Electronics", version=3, type=65558, maxRange=255.0, resolution=255.0, power=0.13, minDelay=0} mRate=0 mPenState=-1 mPerformEditAfterScreenCapture=false mHasFlashAnnotateComponent=false mIsSafetyAssuranceEnabled=false mIsUseAccessControl=false mIsEnabledAccessControl=false mIsKidsModeEnabled=false mIsEasyModeEnabled=false mIsDockHomeEnabled=true mDoubleTapOnHomeBehavior=1 mAvailableDoublTapOnHomeCommand=true mDoubleTapHomeUser=0 mComponentNameOfDoubleTapOnHomeCommandIntent=ComponentInfo{com.sec.android.app.camera/com.sec.android.app.camera.Camera} mTripleTapOnHomeBehavior=0 mAvailableVoiceCommand=false mHasFakeMenuKeyRecent=false mHasFakeMenuKeyBack=true mSideSyncSourcePresentationActived=false mPowerKeyTriggered=false mHomeKeyTriggered=false mVolumeDownKeyTriggered=false mVolumeUpKeyTriggered=false mCameraKeyTriggered=false mCameraRecordKeyTriggered=false mFlashKeyTriggered=false mWiFiProtectedSetupKeyTriggered=false mBackKeyTriggered=false mRecentKeyTriggered=false mMenuKeyTriggered=false mHasPermanentMenuKey=false isCameraSpecialized=false isUseVibetonz=false hasSPenFeature=false hasHardMenuBackKey=false hasQwertyKeyboard=false hasNumericKeyboard=false isScreenShotChordEnabled=true isOneTouchReportChordEnabled=false isSupportDMBAntennaDetach=false isMultiSIMDevice=true mCoverCloseRotation=0 mIsSupportFlipCover=false mIsSupportSViewCover=false mHideSViewCoverWindowState=null OriginalmUnrestrictedScreen=(0,0) 0x0 mOriginalStableFullscreen=(0,0)-(0,0) mOriginalStable=(0,0)-(0,0) mOriginalSystem=(0,0)-(0,0) mOriginalDock=(0,0)-(0,0) mSViewCoverUnrestrictedScreen=(0,0) 0x0 mSViewCoverStableFullscreen=(0,0)-(0,0) mSViewCoverStable=(0,0)-(0,0) mSViewCoverSystem=(0,0)-(0,0) mSViewCoverDock=(0,0)-(0,0) WINDOW MANAGER ANIMATOR STATE (dumpsys window animator) DisplayContentsAnimator #0: Window #0: WindowStateAnimator{b302908 com.android.systemui.ImageWallpaper} Window #1: WindowStateAnimator{3c377438 com.android.systemui/com.android.systemui.recents.RecentsActivity} Window #2: WindowStateAnimator{2455bc11 com.sec.android.app.launcher/com.android.launcher2.Launcher} Window #3: WindowStateAnimator{2600af25 com.android.mms/com.android.mms.ui.ConversationComposer} Window #4: WindowStateAnimator{1df47176 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity} Window #5: WindowStateAnimator{32ea7377 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity} Window #6: WindowStateAnimator{220b9be4 InputMethod} Window #7: WindowStateAnimator{18701bee KeyguardScrim} Window #8: WindowStateAnimator{3d542569 StatusBar} Window #9: WindowStateAnimator{13e2cbf0 Heads Up} mBulkUpdateParams=0x8 ORIENTATION_CHANGE_COMPLETE WINDOW MANAGER SESSIONS (dumpsys window sessions) Session Session{259b1eb 8503:1000}: mNumWindow=1 mClientDead=false mSurfaceSession=android.view.SurfaceSession@3ec9084d Session Session{424ba68 3398:u0a10035}: mNumWindow=1 mClientDead=false mSurfaceSession=android.view.SurfaceSession@34ae2f02 Session Session{f420e1e 3232:u0a10034}: mNumWindow=1 mClientDead=false mSurfaceSession=android.view.SurfaceSession@1e08d013 Session Session{245dbbdd 2759:1000}: mNumWindow=1 mClientDead=false mSurfaceSession=android.view.SurfaceSession@3ad89250 Session Session{257cdab4 9365:1000}: mNumWindow=0 mClientDead=false mSurfaceSession=android.view.SurfaceSession@4aadc49 Session Session{2e08f527 3168:u0a10034}: mNumWindow=1 mClientDead=false mSurfaceSession=android.view.SurfaceSession@3554394e Session Session{2e698bdf 5788:u0a10029}: mNumWindow=1 mClientDead=false mSurfaceSession=android.view.SurfaceSession@3ea65a6f Session Session{2e82bf96 9237:u0a10030}: mNumWindow=2 mClientDead=false mSurfaceSession=android.view.SurfaceSession@3d3c837c Session Session{3a9cfabd 3047:u0a10034}: mNumWindow=2 mClientDead=false mSurfaceSession=android.view.SurfaceSession@30bbf405 WINDOW MANAGER DISPLAY CONTENTS (dumpsys window displays) Display: mDisplayId=0 init=720x1280 320dpi cur=1280x720 app=1280x720 rng=720x670-1280x1230 deferred=false layoutNeeded=false mStacks[1]1 mStackId=1 mDeferDetach=false mStackType=2 mStackZone=0 mBounds=Rect(0, 0 - 1280, 720) mFullscreen=true mShownBounds=Rect(0, 0 - 0, 0) {taskId=68 appTokens=[AppWindowToken{25953ea3 token=Token{1ea3fdd2 ActivityRecord{5ec905d u0 com.android.mms/.ui.ConversationComposer t68}}}] mdr=false} {taskId=88 appTokens=[AppWindowToken{29953c0d token=Token{1ddd46a4 ActivityRecord{29211137 u0 com.sec.android.app.myfiles/.common.MainActivity t88}}}] mdr=false} mDimLayer: mDimSurface=Surface(name=DimLayer(DimLayer)) mLayer=21024 mAlpha=0.3 mLastBounds=[0,0][1280,720] mBounds=[0,0][1280,720] Last animation: mDuration=150 mStartTime=51952437 curTime=54888106 mStartAlpha=0.0 mTargetAlpha=0.3 mDimWinAnimator=WindowStateAnimator{32ea7377 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity} mStacks[0]0 mStackId=0 mDeferDetach=false mStackType=1 mStackZone=0 mBounds=Rect(0, 0 - 1280, 720) mFullscreen=true mShownBounds=Rect(0, 0 - 0, 0) {taskId=82 appTokens=[AppWindowToken{203cf8d3 token=Token{276a82c2 ActivityRecord{29b7530d u0 com.android.systemui/.recents.RecentsActivity t82}}}] mdr=false} {taskId=67 appTokens=[AppWindowToken{32111048 token=Token{1b2d2aeb ActivityRecord{29824e3a u0 com.sec.android.app.launcher/com.android.launcher2.Launcher t67}}}] mdr=false} Application tokens in top down Z order: mStackId=1 mTaskId=88 Activity #0 AppWindowToken{29953c0d token=Token{1ddd46a4 ActivityRecord{29211137 u0 com.sec.android.app.myfiles/.common.MainActivity t88}}}: windows=[Window{1a65c4ed u0 d0 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity}, Window{26054079 u0 d0 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity}] windowType=2 hidden=false hasVisible=true willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false allAppWindows=[Window{1a65c4ed u0 d0 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity}, Window{26054079 u0 d0 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity}] groupId=88 appFullscreen=true requestedOrientation=-1 hiddenRequested=false clientHidden=false willBeHidden=false reportedDrawn=true reportedVisible=true numInterestingWindows=3 numDrawnWindows=3 inPendingTransaction=false allDrawn=true (animator=true) startingData=null removed=false firstWindowDrawn=true mDeferRemoval=false mTaskId=68 Activity #0 AppWindowToken{25953ea3 token=Token{1ea3fdd2 ActivityRecord{5ec905d u0 com.android.mms/.ui.ConversationComposer t68}}}: windows=[Window{43a45f3 u0 d0 com.android.mms/com.android.mms.ui.ConversationComposer}] windowType=2 hidden=true hasVisible=true willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false allAppWindows=[Window{43a45f3 u0 d0 com.android.mms/com.android.mms.ui.ConversationComposer}] groupId=68 appFullscreen=true requestedOrientation=-1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false numInterestingWindows=1 numDrawnWindows=1 inPendingTransaction=false allDrawn=true (animator=true) startingData=null removed=false firstWindowDrawn=true mDeferRemoval=false mStackId=0 mTaskId=67 Activity #0 AppWindowToken{32111048 token=Token{1b2d2aeb ActivityRecord{29824e3a u0 com.sec.android.app.launcher/com.android.launcher2.Launcher t67}}}: windows=[Window{2a20645f u0 d0 com.sec.android.app.launcher/com.android.launcher2.Launcher}] windowType=2 hidden=true hasVisible=true willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false allAppWindows=[Window{2a20645f u0 d0 com.sec.android.app.launcher/com.android.launcher2.Launcher}] groupId=67 appFullscreen=true requestedOrientation=1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false numInterestingWindows=1 numDrawnWindows=1 inPendingTransaction=false allDrawn=true (animator=true) startingData=null removed=false firstWindowDrawn=true mDeferRemoval=false mTaskId=82 Activity #0 AppWindowToken{203cf8d3 token=Token{276a82c2 ActivityRecord{29b7530d u0 com.android.systemui/.recents.RecentsActivity t82}}}: windows=[Window{3b6d2072 u0 d0 com.android.systemui/com.android.systemui.recents.RecentsActivity}] windowType=2 hidden=true hasVisible=true willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false allAppWindows=[Window{3b6d2072 u0 d0 com.android.systemui/com.android.systemui.recents.RecentsActivity}] groupId=82 appFullscreen=true requestedOrientation=-1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false numInterestingWindows=1 numDrawnWindows=1 inPendingTransaction=false allDrawn=true (animator=true) startingData=null removed=false firstWindowDrawn=true mDeferRemoval=false WINDOW MANAGER TOKENS (dumpsys window tokens) All tokens: WindowToken{6976c33 null} AppWindowToken{203cf8d3 token=Token{276a82c2 ActivityRecord{29b7530d u0 com.android.systemui/.recents.RecentsActivity t82}}} WindowToken{32ea2eab android.os.Binder@64ff567} WindowToken{53e9c5a android.os.Binder@341d45ef} AppWindowToken{29953c0d token=Token{1ddd46a4 ActivityRecord{29211137 u0 com.sec.android.app.myfiles/.common.MainActivity t88}}} AppWindowToken{25953ea3 token=Token{1ea3fdd2 ActivityRecord{5ec905d u0 com.android.mms/.ui.ConversationComposer t68}}} AppWindowToken{32111048 token=Token{1b2d2aeb ActivityRecord{29824e3a u0 com.sec.android.app.launcher/com.android.launcher2.Launcher t67}}} Wallpaper tokens: Wallpaper #0 WindowToken{32ea2eab android.os.Binder@64ff567} WINDOW MANAGER WINDOWS (dumpsys window windows) Window #9 Window{29c5d83c u0 d0 Heads Up}: mDisplayId=0 mSession=Session{3a9cfabd 3047:u0a10034} mClient=android.os.BinderProxy@20610a2f mOwnerUid=10034 mShowToOwnerOnly=false package=com.android.systemui appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillx500) gr=#30 sim=#20 ty=2014 fl=#1800328 fmt=-3 wanim=0x7f100040 surfaceInsets=Rect(0, 0 - 0, 0)} Requested w=0 h=0 mLayoutSeq=13 mHasSurface=false mShownFrame=[0.0,0.0][0.0,0.0] isReadyForDisplay()=false WindowStateAnimator{13e2cbf0 Heads Up}: mShownAlpha=0.0 mAlpha=1.0 mLastAlpha=0.0 mWaitingForOrientation=false shouldHideWhileStartingWindowIsShown=false mDelayedResize=false Window #8 Window{37284ed6 u0 d0 StatusBar}: mDisplayId=0 mSession=Session{3a9cfabd 3047:u0a10034} mClient=android.os.BinderProxy@2c6332f1 mOwnerUid=10034 mShowToOwnerOnly=false package=com.android.systemui appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillx50) gr=#30 sim=#10 ty=2000 fl=#81840048 fmt=-3 vsysui=0x600 surfaceInsets=Rect(0, 0 - 0, 0)} Requested w=1280 h=50 mLayoutSeq=3346 mPolicyVisibility=false mPolicyVisibilityAfterAnim=false mAppOpVisibility=true mAttachedHidden=false mHasSurface=true mShownFrame=[0.0,0.0][1280.0,50.0] isReadyForDisplay()=false WindowStateAnimator{3d542569 StatusBar}: mAnimating=false mLocalAnimating=false mAnimationIsEntrance=true mAnimation=null Surface: shown=false layer=151000 alpha=1.0 secure=false rect=(0.0,0.0) 1280.0 x 50.0 mWaitingForOrientation=false shouldHideWhileStartingWindowIsShown=false mDelayedResize=false Window #7 Window{2e294720 u0 d0 KeyguardScrim}: mDisplayId=0 mSession=Session{245dbbdd 2759:1000} mClient=android.view.ViewRootImpl$W@3d2b1623 mOwnerUid=1000 mShowToOwnerOnly=false package=android appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#10 ty=2029 fl=#1110900 pfl=0x1 fmt=-3 or=5 vsysui=0x3610000 surfaceInsets=Rect(0, 0 - 0, 0)} Requested w=0 h=0 mLayoutSeq=12 mHasSurface=false mShownFrame=[0.0,0.0][0.0,0.0] isReadyForDisplay()=false WindowStateAnimator{18701bee KeyguardScrim}: mShownAlpha=0.0 mAlpha=1.0 mLastAlpha=0.0 mWaitingForOrientation=false shouldHideWhileStartingWindowIsShown=false mDelayedResize=false Window #6 Window{ed68706 u0 d0 InputMethod}: mDisplayId=0 mSession=Session{259b1eb 8503:1000} mClient=android.os.BinderProxy@2c636de1 mOwnerUid=1000 mShowToOwnerOnly=true package=com.samsung.inputmethod appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillxwrap) gr=#50 sim=#20 ty=2011 fl=#800108 pfl=0x40 fmt=-2 wanim=0x7f0d0002 vsysui=0x300 surfaceInsets=Rect(0, 0 - 0, 0) needsMenuKey=2} Requested w=1280 h=572 mLayoutSeq=3346 mIsImWindow=true mIsWallpaper=false mIsFloatingLayer=true mWallpaperVisible=false mHasSurface=true mShownFrame=[0.0,148.0][1280.0,720.0] isReadyForDisplay()=true WindowStateAnimator{220b9be4 InputMethod}: mAnimating=false mLocalAnimating=false mAnimationIsEntrance=true mAnimation=null Surface: shown=true layer=21030 alpha=1.0 secure=false rect=(0.0,148.0) 1280.0 x 572.0 mLastFreezeDuration=+930ms mWaitingForOrientation=false shouldHideWhileStartingWindowIsShown=false mDelayedResize=false Window #5 Window{26054079 u0 d0 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity}: mDisplayId=0 mSession=Session{2e82bf96 9237:u0a10030} mClient=android.os.BinderProxy@242a2940 mOwnerUid=10030 mShowToOwnerOnly=true package=com.sec.android.app.myfiles appop=NONE mAttrs=WM.LayoutParams{(0,0)(wrapxwrap) gr=#11 sim=#120 ty=2 fl=#1800002 fmt=-3 wanim=0x1030381 surfaceInsets=Rect(48, 48 - 48, 48) needsMenuKey=2} Requested w=848 h=421 mLayoutSeq=3346 mHasSurface=true mShownFrame=[216.0,0.0][1064.0,421.0] isReadyForDisplay()=true WindowStateAnimator{32ea7377 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity}: mAnimating=false mLocalAnimating=false mAnimationIsEntrance=true mAnimation=null Surface: shown=true layer=21025 alpha=1.0 secure=false rect=(168.0,-48.0) 944.0 x 517.0 mLastFreezeDuration=+817ms mWaitingForOrientation=false shouldHideWhileStartingWindowIsShown=false mDelayedResize=false Window #4 Window{1a65c4ed u0 d0 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity}: mDisplayId=0 mSession=Session{2e82bf96 9237:u0a10030} mClient=android.os.BinderProxy@37a8e704 mOwnerUid=10030 mShowToOwnerOnly=true package=com.sec.android.app.myfiles appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#110 ty=1 fl=#81810500 wanim=0x1030380 vsysui=0x600 surfaceInsets=Rect(0, 0 - 0, 0) needsMenuKey=2 sfl=#3} Requested w=1280 h=720 mLayoutSeq=3346 mHasSurface=true mShownFrame=[0.0,0.0][1280.0,720.0] isReadyForDisplay()=true WindowStateAnimator{1df47176 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity}: Surface: shown=true layer=21020 alpha=1.0 secure=false rect=(0.0,0.0) 1280.0 x 720.0 mLastFreezeDuration=+772ms mWaitingForOrientation=false shouldHideWhileStartingWindowIsShown=false mDelayedResize=false Window #3 Window{43a45f3 u0 d0 com.android.mms/com.android.mms.ui.ConversationComposer}: mDisplayId=0 mSession=Session{2e698bdf 5788:u0a10029} mClient=android.os.BinderProxy@1c465062 mOwnerUid=10029 mShowToOwnerOnly=true package=com.android.mms appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#111 ty=1 fl=#81810100 wanim=0x1030380 vsysui=0x600 surfaceInsets=Rect(0, 0 - 0, 0) needsMenuKey=2} Requested w=720 h=1280 mLayoutSeq=3346 mHasSurface=false mShownFrame=[0.0,0.0][720.0,1280.0] isReadyForDisplay()=false WindowStateAnimator{2600af25 com.android.mms/com.android.mms.ui.ConversationComposer}: mShownAlpha=1.0 mAlpha=1.0 mLastAlpha=0.0 mWaitingForOrientation=false shouldHideWhileStartingWindowIsShown=false mDelayedResize=false Window #2 Window{2a20645f u0 d0 com.sec.android.app.launcher/com.android.launcher2.Launcher}: mDisplayId=0 mSession=Session{424ba68 3398:u0a10035} mClient=android.os.BinderProxy@320974fe mOwnerUid=10035 mShowToOwnerOnly=true package=com.sec.android.app.launcher appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#d910d00 fmt=-2 wanim=0x1030380 vsysui=0x700 surfaceInsets=Rect(0, 0 - 0, 0) needsMenuKey=2} Requested w=720 h=1280 mLayoutSeq=3346 mHasSurface=false mShownFrame=[0.0,0.0][720.0,1280.0] isReadyForDisplay()=false WindowStateAnimator{2455bc11 com.sec.android.app.launcher/com.android.launcher2.Launcher}: mWaitingForOrientation=false shouldHideWhileStartingWindowIsShown=false mDelayedResize=false Window #1 Window{3b6d2072 u0 d0 com.android.systemui/com.android.systemui.recents.RecentsActivity}: mDisplayId=0 mSession=Session{2e08f527 3168:u0a10034} mClient=android.os.BinderProxy@9b0197d mOwnerUid=10034 mShowToOwnerOnly=true package=com.android.systemui appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#123 ty=1 fl=#1910500 fmt=-2 wanim=0x1030001 vsysui=0x700 surfaceInsets=Rect(0, 0 - 0, 0) needsMenuKey=2 sfl=#2} Requested w=720 h=1280 mLayoutSeq=2277 mHasSurface=false mShownFrame=[0.0,0.0][720.0,1280.0] isReadyForDisplay()=false WindowStateAnimator{3c377438 com.android.systemui/com.android.systemui.recents.RecentsActivity}: mWaitingForOrientation=false shouldHideWhileStartingWindowIsShown=false mDelayedResize=false Window #0 Window{20341742 u0 d0 com.android.systemui.ImageWallpaper}: mDisplayId=0 mSession=Session{f420e1e 3232:u0a10034} mClient=android.os.BinderProxy@2d10698d mOwnerUid=10034 mShowToOwnerOnly=true package=null appop=NONE mAttrs=WM.LayoutParams{(0,0)(1280x1280) gr=#800033 ty=2013 fl=#318 fmt=2 wanim=0x10302e5 surfaceInsets=Rect(0, 0 - 0, 0)} Requested w=1280 h=1280 mLayoutSeq=3161 mIsImWindow=false mIsWallpaper=true mIsFloatingLayer=true mWallpaperVisible=false Offsets x=-280 y=0 mHasSurface=true mShownFrame=[-280.0,0.0][1000.0,1280.0] isReadyForDisplay()=false WindowStateAnimator{b302908 com.android.systemui.ImageWallpaper}: Surface: shown=false layer=21000 alpha=1.0 secure=false rect=(-280.0,0.0) 1280.0 x 1280.0 mOrientationChanging=true mAppFreezing=false mTurnOnScreen=false mWallpaperX=0.5 mWallpaperY=0.5 mWaitingForOrientation=false shouldHideWhileStartingWindowIsShown=false mDelayedResize=false mCurConfiguration={0 0.89 ?mcc?mnc en_US ?layoutDir sw360dp w640dp h335dp 320dpi nrml long land finger -keyb/v/h -nav/h mkbd/? s.31} mHasPermanentDpad=false mCurrentFocus=Window{26054079 u0 d0 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity} mFocusedApp=AppWindowToken{29953c0d token=Token{1ddd46a4 ActivityRecord{29211137 u0 com.sec.android.app.myfiles/.common.MainActivity t88}}} mInputMethodTarget=Window{26054079 u0 d0 com.sec.android.app.myfiles/com.sec.android.app.myfiles.common.MainActivity} mInTouchMode=true mLayoutSeq=3346 mLastDisplayFreezeDuration=+952ms due to Window{ed68706 u0 d0 InputMethod}
关键字:myfiles.common.MainActivity
我主要想看一下该dialog的flag属性,由上图,可以看出 fl=#81810500
这时,我们就需要去WindowManager中看一下 这一串数字的意义
这串数字 是 几个Flag 求&的结果
拆解如下:
80000000
01000000
00800000
00010000
00000500
00000500 却没有找到
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步