const temp ="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 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 mHasSoftInput=true mAwake=true mScreenOnEarly=true mScreenOnFully=true mKeyguardDrawComplete=true mWindowManagerDrawComplete=true mOrientationSensorEnabled=true mOverscanScreen=(0,0) 1080x1920 mRestrictedOverscanScreen=(0,0) 1080x1920 mUnrestrictedScreen=(0,0) 1080x1920 mRestrictedScreen=(0,0) 1080x1920 mStableFullscreen=(0,0)-(1080,1920) mStable=(0,75)-(1080,1920) mSystem=(0,75)-(1080,1920) mCur=(0,75)-(1080,1920) mContent=(0,75)-(1080,1920) mVoiceContent=(0,75)-(1080,1920) mDock=(0,75)-(1080,1920) mDockLayer=268435456 mStatusBarLayer=151000 mShowingLockscreen=false mShowingDream=false mDreamingLockscreen=false mStatusBar=Window{18472b79 u0 StatusBar} isStatusBarKeyguard=false mFocusedWindow=Window{26f53ce8 u0 com.android.keychain/com.android.keychain.KeyChainActivity} mFocusedApp=Token{1744e3cd ActivityRecord{1ce7b564 u0 com.android.keychain/.KeyChainActivity t3464}} mTopFullscreenOpaqueWindowState=Window{7dd0f47 u0 com.android.chrome/com.google.android.apps.chrome.Main} mTopIsFullscreen=false mHideLockScreen=false mForceStatusBar=false mForceStatusBarFromKeyguard=false mDismissKeyguard=0 mWinDismissingKeyguard=null mHomePressed=false mAllowLockscreenWhenOn=false mLockScreenTimeout=600000 mLockScreenTimerActive=false mEndcallBehavior=2 mIncallPowerBehavior=1 mLongPressOnHomeBehavior=1 mLandscapeRotation=1 mSeascapeRotation=3 mPortraitRotation=0 mUpsideDownRotation=2 mDemoHdmiRotation=1 mDemoHdmiRotationLock=false mUndockedHdmiRotation=-1 mKeyMapping.size=0 BarController.StatusBar mState=WINDOW_STATE_SHOWING mTransientBar=TRANSIENT_BAR_NONE PolicyControl.sImmersiveStatusFilter=null PolicyControl.sImmersiveNavigationFilter=null PolicyControl.sImmersivePreconfirmationsFilter=null WakeGestureListener mTriggerRequested=false mSensor=null WindowOrientationListener mEnabled=false mCurrentRotation=0 mSensor=null mRate=0 mPenState=-1 mPerformEditAfterScreenCapture=true mHasFlashAnnotateComponent=false mIsSafetyAssuranceEnabled=false mIsUseAccessControl=false mIsEnabledAccessControl=false mIsKidsModeEnabled=false mIsEasyModeEnabled=false mIsDockHomeEnabled=true mDoubleTapOnHomeBehavior=1 mAvailableVoiceCommand=true mTripleTapOnHomeBehavior=0 mIsRingingOrOffhook=false 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=true isCameraSpecialized=false isUseVibetonz=true hasSPenFeature=false hasQwertyKeyboard=false hasNumericKeyboard=false isScreenShotChordEnabled=true isOneTouchReportChordEnabled=false isSupportDMBAntennaDetach=false isMultiSIMDevice=false hasHardMenuBackKey=false mCoverCloseRotation=0 mIsSupportFlipCover=false mIsSupportSViewCover=true 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{7026d42 com.android.systemui.ImageWallpaper} Window #1: WindowStateAnimator{3b3a0702 com.sec.android.app.launcher/com.android.launcher2.Launcher} Window #2: WindowStateAnimator{3ece3fb5 SurfaceView} Window #3: WindowStateAnimator{1038764a com.android.chrome/com.google.android.apps.chrome.Main} Window #4: WindowStateAnimator{235119bb com.android.keychain/com.android.keychain.KeyChainActivity} Window #5: WindowStateAnimator{21011ed8 com.android.keychain/com.android.keychain.KeyChainActivity} Window #6: WindowStateAnimator{305cb7fe InputMethod} Window #7: WindowStateAnimator{11589a90 ContainerKeyguardScrim} Window #8: WindowStateAnimator{3d31df89 KeyguardScrim} Window #9: WindowStateAnimator{2d4e1b8e StatusBar} Window #10: WindowStateAnimator{3154cfbc Heads Up} mBulkUpdateParams=0x8 ORIENTATION_CHANGE_COMPLETE WINDOW MANAGER SESSIONS (dumpsys window sessions) Session Session{1eddc0b 3447:u0a10008}: mNumWindow=1 mClientDead=false mSurfaceSession=android.view.SurfaceSession@1363c813 Session Session{8b759ef 13569:1000}: mNumWindow=2 mClientDead=false mSurfaceSession=android.view.SurfaceSession@17f02231 Session Session{127f530d 20627:1000}: mNumWindow=1 mClientDead=false mSurfaceSession=android.view.SurfaceSession@23fdeb5f Session Session{1405fa81 3162:1000}: mNumWindow=2 mClientDead=false mSurfaceSession=android.view.SurfaceSession@194629a Session Session{1bb6971a 3387:u0a10021}: mNumWindow=2 mClientDead=false mSurfaceSession=android.view.SurfaceSession@3f5517cb Session Session{28860714 3581:u0a10021}: mNumWindow=1 mClientDead=false mSurfaceSession=android.view.SurfaceSession@167d2ba8 Session Session{362dd2c8 12521:u0a10088}: mNumWindow=2 mClientDead=false mSurfaceSession=android.view.SurfaceSession@3e8fad16 WINDOW MANAGER DISPLAY CONTENTS (dumpsys window displays) Display: mDisplayId=0 init=1080x1920 480dpi cur=1080x1920 app=1080x1920 rng=1080x1005-1920x1845 deferred=false layoutNeeded=false mStacks[1]1 mStackId=1 mDeferDetach=false mStackType=2 mStackZone=0 mBounds=Rect(0, 0 - 1080, 1920) mFullscreen=true mStackFrameBounds=Rect(0, 0 - 1080, 1920) {taskId=3349 appTokens=[AppWindowToken{2f57462f token=Token{314a7c0e ActivityRecord{38d97209 u0 com.android.settings/.applications.InstalledAppDetails t3349}}}, AppWindowToken{c7f0658 token=Token{2affef3b ActivityRecord{1faf31ca u0 com.android.settings/.applications.InstalledAppDetails t3349}}}, AppWindowToken{e1310b0 token=Token{397ecbf3 ActivityRecord{1d512e62 u0 com.android.settings/.applications.InstalledAppDetails t3349}}}]} {taskId=3464 appTokens=[AppWindowToken{1ad1efbd token=Token{3df2bb14 ActivityRecord{86ad167 u0 com.android.chrome/com.google.android.apps.chrome.Main t3464}}}, AppWindowToken{234ba482 token=Token{1744e3cd ActivityRecord{1ce7b564 u0 com.android.keychain/.KeyChainActivity t3464}}}]} mDimLayer: mDimSurface=Surface(name=DimLayer) mLayer=21024 mAlpha=0.3 mLastBounds=[0,0][1080,1920] mBounds=[0,0][1080,1920] Last animation: mDuration=150 mStartTime=2334215642 curTime=2420509610 mStartAlpha=0.0 mTargetAlpha=0.3 mDimWinAnimator=WindowStateAnimator{21011ed8 com.android.keychain/com.android.keychain.KeyChainActivity} Exiting application tokens: Exiting App #9 AppWindowToken{2e4ba1e0 token=Token{28c723e3 ActivityRecord{1a053012 u0 com.sec.android.gallery3d/.app.Gallery t3456}}}: windows=[] windowType=2 hidden=true hasVisible=false willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=true willBeHideBlockMain=false app=true voiceInteraction=false groupId=3456 appFullscreen=true requestedOrientation=-1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false paused=true numInterestingWindows=2 numDrawnWindows=2 inPendingTransaction=false allDrawn=true (animator=true) startingData=null removed=true firstWindowDrawn=false Exiting App #8 AppWindowToken{19b3baad token=Token{2943656 ActivityRecord{6f80871 u0 com.android.chrome/com.google.android.apps.chrome.Main t3448}}}: windows=[] windowType=2 hidden=true hasVisible=false willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3448 appFullscreen=true requestedOrientation=-1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false numInterestingWindows=2 numDrawnWindows=2 inPendingTransaction=false allDrawn=true (animator=true) startingData=null removed=true firstWindowDrawn=false Exiting App #7 AppWindowToken{228bb4e5 token=Token{3c213bdc ActivityRecord{183384f u0 com.facebook.katana/.activity.react.ImmersiveReactActivity t3423}}}: windows=[] windowType=2 hidden=true hasVisible=false willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3423 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=true firstWindowDrawn=false Exiting App #6 AppWindowToken{1e8bfe84 token=Token{31ba3c97 ActivityRecord{3baf2b16 u0 com.android.vending/.AssetBrowserActivity t3372}}}: windows=[] windowType=2 hidden=true hasVisible=false willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3372 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=true firstWindowDrawn=false Exiting App #5 AppWindowToken{24fce281 token=Token{15626e68 ActivityRecord{cead8b u0 com.android.chrome/com.google.android.apps.chrome.Main t3358}}}: windows=[] windowType=2 hidden=true hasVisible=false willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3358 appFullscreen=true requestedOrientation=-1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false paused=true numInterestingWindows=3 numDrawnWindows=3 inPendingTransaction=false allDrawn=true (animator=true) startingData=null removed=true firstWindowDrawn=false Exiting App #4 AppWindowToken{2b0d4e01 token=Token{3c0b57e8 ActivityRecord{d4b4d0b u0 com.android.chrome/org.chromium.chrome.browser.settings.SettingsActivity t3358}}}: windows=[] windowType=2 hidden=true hasVisible=false willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3358 appFullscreen=true requestedOrientation=-1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false paused=true numInterestingWindows=1 numDrawnWindows=1 inPendingTransaction=false allDrawn=true (animator=true) startingData=null removed=true firstWindowDrawn=false Exiting App #3 AppWindowToken{36acd5f3 token=Token{3da92062 ActivityRecord{13bd632d u0 com.android.packageinstaller/.UninstallAppProgress t3362}}}: windows=[] windowType=2 hidden=true hasVisible=false willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3362 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=true firstWindowDrawn=false Exiting App #2 AppWindowToken{3e7e79dc token=Token{1636ae4f ActivityRecord{1b23f0ae u0 com.android.settings/.Settings t3320}}}: windows=[] windowType=2 hidden=true hasVisible=false willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3320 appFullscreen=true requestedOrientation=-1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false paused=true numInterestingWindows=1 numDrawnWindows=1 inPendingTransaction=false allDrawn=true (animator=true) startingData=null removed=true firstWindowDrawn=false Exiting App #1 AppWindowToken{1ba8d930 token=Token{39246673 ActivityRecord{24faa2e2 u0 com.android.vending/.AssetBrowserActivity t3314}}}: windows=[] windowType=2 hidden=true hasVisible=false willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3314 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=true firstWindowDrawn=false Exiting App #0 AppWindowToken{1268c4d0 token=Token{6c83c93 ActivityRecord{294d7d82 u0 com.facebook.katana/com.facebook.account.login.activity.SimpleLoginActivity t3317}}}: windows=[] windowType=2 hidden=true hasVisible=false willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3317 appFullscreen=true requestedOrientation=-1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false paused=true numInterestingWindows=1 numDrawnWindows=1 inPendingTransaction=false allDrawn=true (animator=true) startingData=null removed=true firstWindowDrawn=false mStacks[0]0 mStackId=0 mDeferDetach=false mStackType=1 mStackZone=0 mBounds=Rect(0, 0 - 1080, 1920) mFullscreen=true mStackFrameBounds=Rect(0, 0 - 1080, 1920) {taskId=3312 appTokens=[AppWindowToken{7e7ff87 token=Token{3d1f63c6 ActivityRecord{1886c5a1 u0 com.sec.android.app.launcher/com.android.launcher2.Launcher t3312}}}]} Exiting application tokens: Exiting App #0 AppWindowToken{70240cd token=Token{3bfc6664 ActivityRecord{f4dd7f7 u0 com.android.systemui/.recents.RecentsActivity t3386}}}: windows=[] windowType=2 hidden=true hasVisible=false willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3386 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=true firstWindowDrawn=false Application tokens in bottom up Z order: App #0 AppWindowToken{234ba482 token=Token{1744e3cd ActivityRecord{1ce7b564 u0 com.android.keychain/.KeyChainActivity t3464}}}: windows=[Window{206541da u0 com.android.keychain/com.android.keychain.KeyChainActivity}, Window{26f53ce8 u0 com.android.keychain/com.android.keychain.KeyChainActivity}] windowType=2 hidden=false hasVisible=true willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false allAppWindows=[Window{206541da u0 com.android.keychain/com.android.keychain.KeyChainActivity}, Window{26f53ce8 u0 com.android.keychain/com.android.keychain.KeyChainActivity}] groupId=3464 appFullscreen=false requestedOrientation=-1 hiddenRequested=false clientHidden=false willBeHidden=false reportedDrawn=true reportedVisible=true numInterestingWindows=2 numDrawnWindows=2 inPendingTransaction=false allDrawn=true (animator=true) startingData=null removed=false firstWindowDrawn=true App #1 AppWindowToken{1ad1efbd token=Token{3df2bb14 ActivityRecord{86ad167 u0 com.android.chrome/com.google.android.apps.chrome.Main t3464}}}: windows=[Window{7dd0f47 u0 com.android.chrome/com.google.android.apps.chrome.Main}] windowType=2 hidden=false hasVisible=true willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false allAppWindows=[Window{7dd0f47 u0 com.android.chrome/com.google.android.apps.chrome.Main}, Window{1eed9697 u0 SurfaceView}] groupId=3464 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 App #2 AppWindowToken{7e7ff87 token=Token{3d1f63c6 ActivityRecord{1886c5a1 u0 com.sec.android.app.launcher/com.android.launcher2.Launcher t3312}}}: windows=[Window{2327cfa6 u0 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{2327cfa6 u0 com.sec.android.app.launcher/com.android.launcher2.Launcher}] groupId=3312 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=com.android.server.wm.StartingData@6b6c675 removed=false firstWindowDrawn=true App #3 AppWindowToken{e1310b0 token=Token{397ecbf3 ActivityRecord{1d512e62 u0 com.android.settings/.applications.InstalledAppDetails t3349}}}: windows=[] windowType=2 hidden=true hasVisible=true willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3349 appFullscreen=true requestedOrientation=-1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false numInterestingWindows=2 numDrawnWindows=2 inPendingTransaction=false allDrawn=true (animator=true) App #4 AppWindowToken{c7f0658 token=Token{2affef3b ActivityRecord{1faf31ca u0 com.android.settings/.applications.InstalledAppDetails t3349}}}: windows=[] windowType=2 hidden=true hasVisible=true willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3349 appFullscreen=true requestedOrientation=-1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false numInterestingWindows=1 numDrawnWindows=1 inPendingTransaction=false allDrawn=true (animator=true) App #5 AppWindowToken{2f57462f token=Token{314a7c0e ActivityRecord{38d97209 u0 com.android.settings/.applications.InstalledAppDetails t3349}}}: windows=[] windowType=2 hidden=true hasVisible=true willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false willBeHideBlockMain=false app=true voiceInteraction=false groupId=3349 appFullscreen=true requestedOrientation=-1 hiddenRequested=true clientHidden=true willBeHidden=false reportedDrawn=false reportedVisible=false numInterestingWindows=1 numDrawnWindows=1 inPendingTransaction=false allDrawn=true (animator=true) Multi-Window information for this display CenterBar: Point(540, 960) GlobalTasks TASK {taskId=3464 appTokens=[AppWindowToken{1ad1efbd token=Token{3df2bb14 ActivityRecord{86ad167 u0 com.android.chrome/com.google.android.apps.chrome.Main t3464}}}, AppWindowToken{234ba482 token=Token{1744e3cd ActivityRecord{1ce7b564 u0 com.android.keychain/.KeyChainActivity t3464}}}]} TASK {taskId=3312 appTokens=[AppWindowToken{7e7ff87 token=Token{3d1f63c6 ActivityRecord{1886c5a1 u0 com.sec.android.app.launcher/com.android.launcher2.Launcher t3312}}}]} TASK {taskId=3349 appTokens=[AppWindowToken{2f57462f token=Token{314a7c0e ActivityRecord{38d97209 u0 com.android.settings/.applications.InstalledAppDetails t3349}}}, AppWindowToken{c7f0658 token=Token{2affef3b ActivityRecord{1faf31ca u0 com.android.settings/.applications.InstalledAppDetails t3349}}}, AppWindowToken{e1310b0 token=Token{397ecbf3 ActivityRecord{1d512e62 u0 com.android.settings/.applications.InstalledAppDetails t3349}}}]} WINDOW MANAGER TOKENS (dumpsys window tokens) All tokens: WindowToken{9c60e66 null} AppWindowToken{1ad1efbd token=Token{3df2bb14 ActivityRecord{86ad167 u0 com.android.chrome/com.google.android.apps.chrome.Main t3464}}} WindowToken{1ed55084 android.os.BinderProxy@1003da86} AppWindowToken{2f57462f token=Token{314a7c0e ActivityRecord{38d97209 u0 com.android.settings/.applications.InstalledAppDetails t3349}}} WindowToken{219cbded android.os.Binder@17b3854a} AppWindowToken{234ba482 token=Token{1744e3cd ActivityRecord{1ce7b564 u0 com.android.keychain/.KeyChainActivity t3464}}} AppWindowToken{c7f0658 token=Token{2affef3b ActivityRecord{1faf31ca u0 com.android.settings/.applications.InstalledAppDetails t3349}}} WindowToken{a9b65a7 android.os.Binder@2912a2b1} AppWindowToken{e1310b0 token=Token{397ecbf3 ActivityRecord{1d512e62 u0 com.android.settings/.applications.InstalledAppDetails t3349}}} AppWindowToken{7e7ff87 token=Token{3d1f63c6 ActivityRecord{1886c5a1 u0 com.sec.android.app.launcher/com.android.launcher2.Launcher t3312}}} Wallpaper tokens: Wallpaper #0 WindowToken{a9b65a7 android.os.Binder@2912a2b1} WINDOW MANAGER WINDOWS (dumpsys window windows) Window #10 Window{1c7fa62a u0 Heads Up}: mDisplayId=0 mSession=Session{1bb6971a 3387:u0a10021} mClient=android.os.BinderProxy@8b6c315 mOwnerUid=10021 mShowToOwnerOnly=false package=com.android.systemui appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillx750) gr=#30 sim=#20 ty=2014 fl=#1820328 fmt=-3 wanim=0x7f0f0037 surfaceInsets=Rect(0, 0 - 0, 0) mwfl=0x0} Requested w=1080 h=750 mLayoutSeq=13115 mHasSurface=false mShownFrame=[0.0,0.0][1080.0,750.0] isReadyForDisplay()=false WindowStateAnimator{3154cfbc Heads Up}: mShownAlpha=1.0 mAlpha=1.0 mLastAlpha=0.0 mGlobalScale=1.0 mDsDx=1.0 mDtDx=0.0 mDsDy=0.0 mDtDy=1.0 windowType=normal : {type=0, zone=ZONE_UNKNOWN, option=0x00000000, bounds=null, isNull=false, isolatedCenterPoint=Point(0, 0), scale=0.0, specificTaskId=-1} Current zone bounds=[0,0][1080,1920] mWaitingForOrientation=false Window #9 Window{18472b79 u0 StatusBar}: mDisplayId=0 mSession=Session{1bb6971a 3387:u0a10021} mClient=android.os.BinderProxy@de4e040 mOwnerUid=10021 mShowToOwnerOnly=false package=com.android.systemui appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillx75) gr=#30 sim=#10 ty=2000 fl=#81840048 fmt=-3 vsysui=0x600 surfaceInsets=Rect(0, 0 - 0, 0) mwfl=0x0} Requested w=1080 h=75 mLayoutSeq=13934 mHasSurface=true mShownFrame=[0.0,0.0][1080.0,75.0] isReadyForDisplay()=true WindowStateAnimator{2d4e1b8e StatusBar}: mAnimating=false mLocalAnimating=false mAnimationIsEntrance=true mAnimation=null Surface: shown=true layer=151000 alpha=1.0 rect=(0.0,0.0) 1080.0 x 75.0 mGlobalScale=1.0 mDsDx=1.0 mDtDx=0.0 mDsDy=0.0 mDtDy=1.0 windowType=normal : {type=0, zone=ZONE_UNKNOWN, option=0x00000000, bounds=null, isNull=false, isolatedCenterPoint=Point(0, 0), scale=0.0, specificTaskId=-1} Current zone bounds=[0,0][1080,1920] mWaitingForOrientation=false Window #8 Window{4320114 u0 KeyguardScrim}: mDisplayId=0 mSession=Session{1405fa81 3162:1000} mClient=android.view.ViewRootImpl$W@2aa36f67 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) mwfl=0x0} Requested w=1080 h=1920 mLayoutSeq=4 mHasSurface=false mShownFrame=[0.0,0.0][0.0,0.0] isReadyForDisplay()=false WindowStateAnimator{3d31df89 KeyguardScrim}: mShownAlpha=0.0 mAlpha=1.0 mLastAlpha=0.0 windowType=normal : {type=0, zone=ZONE_UNKNOWN, option=0x00000000, bounds=null, isNull=false, isolatedCenterPoint=Point(0, 0), scale=0.0, specificTaskId=-1} Current zone bounds=[0,0][1080,1920] mWaitingForOrientation=false Window #7 Window{db782c3 u0 ContainerKeyguardScrim}: mDisplayId=0 mSession=Session{1405fa81 3162:1000} mClient=android.view.ViewRootImpl$W@23d23e72 mOwnerUid=1000 mShowToOwnerOnly=false package=android appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#23 ty=2008 fl=#1110d00 fmt=-3 or=5 surfaceInsets=Rect(0, 0 - 0, 0) mwfl=0x0} Requested w=1080 h=1920 mLayoutSeq=5 mHasSurface=false mShownFrame=[0.0,0.0][0.0,0.0] isReadyForDisplay()=false WindowStateAnimator{11589a90 ContainerKeyguardScrim}: mShownAlpha=0.0 mAlpha=1.0 mLastAlpha=0.0 windowType=normal : {type=0, zone=ZONE_UNKNOWN, option=0x00000000, bounds=null, isNull=false, isolatedCenterPoint=Point(0, 0), scale=0.0, specificTaskId=-1} Current zone bounds=[0,0][1080,1920] mWaitingForOrientation=false Window #6 Window{9606c10 u0 InputMethod}: mDisplayId=0 mSession=Session{127f530d 20627:1000} mClient=android.os.BinderProxy@2a44f8d3 mOwnerUid=1000 mShowToOwnerOnly=true package=com.sec.android.inputmethod appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillxwrap) gr=#50 sim=#20 ty=2011 fl=#1800108 pfl=0x8 fmt=-2 wanim=0x1030056 vsysui=0x300 surfaceInsets=Rect(0, 0 - 0, 0) mwfl=0x10} Requested w=1080 h=1137 mLayoutSeq=13905 mIsImWindow=true mIsWallpaper=false mIsFloatingLayer=true mWallpaperVisible=false mHasSurface=false mShownFrame=[0.0,783.0][1080.0,1920.0] isReadyForDisplay()=false WindowStateAnimator{305cb7fe InputMethod}: mShownAlpha=1.0 mAlpha=1.0 mLastAlpha=0.0 mGlobalScale=1.0 mDsDx=1.0 mDtDx=0.0 mDsDy=0.0 mDtDy=1.0 windowType=normal : {type=0, zone=ZONE_UNKNOWN, option=0x00000000, bounds=null, isNull=false, isolatedCenterPoint=Point(0, 0), scale=0.0, specificTaskId=-1} Current zone bounds=[0,0][1080,1920] mWaitingForOrientation=false Window #5 Window{26f53ce8 u0 com.android.keychain/com.android.keychain.KeyChainActivity}: mDisplayId=0 mSession=Session{8b759ef 13569:1000} mClient=android.os.BinderProxy@2dc9a60b mOwnerUid=1000 mShowToOwnerOnly=true package=com.android.keychain appop=NONE mAttrs=WM.LayoutParams{(0,0)(wrapxwrap) gr=#11 sim=#120 ty=2 fl=#1820002 pfl=0x8 fmt=-3 wanim=0x103037e surfaceInsets=Rect(24, 24 - 24, 24) mwfl=0x10} Requested w=1002 h=1675 mLayoutSeq=13934 mHasSurface=true mShownFrame=[39.0,160.0][1041.0,1835.0] isReadyForDisplay()=true WindowStateAnimator{21011ed8 com.android.keychain/com.android.keychain.KeyChainActivity}: mAnimating=false mLocalAnimating=false mAnimationIsEntrance=true mAnimation=null Surface: shown=true layer=21025 alpha=1.0 rect=(15.0,136.0) 1050.0 x 1723.0 mGlobalScale=1.0 mDsDx=1.0 mDtDx=0.0 mDsDy=0.0 mDtDy=1.0 windowType=normal : MultiWindowStyle{type=0, zone=ZONE_UNKNOWN, option=0x00000000, bounds=null, isNull=false, isolatedCenterPoint=Point(0, 0), scale=0.0, specificTaskId=-1} Current zone bounds=[0,0][1080,1920] Current stack bounds=[0,0][1080,1920] mWaitingForOrientation=false Window #4 Window{206541da u0 com.android.keychain/com.android.keychain.KeyChainActivity}: mDisplayId=0 mSession=Session{8b759ef 13569:1000} mClient=android.os.BinderProxy@3a67bf85 mOwnerUid=1000 mShowToOwnerOnly=true package=com.android.keychain appop=NONE mAttrs=WM.LayoutParams{(0,0)(wrapxwrap) sim=#120 ty=1 fl=#1800002 pfl=0x8 fmt=-2 wanim=0x103037d surfaceInsets=Rect(0, 0 - 0, 0) mwfl=0x10} Requested w=0 h=0 mLayoutSeq=13934 mHasSurface=true mShownFrame=[540.0,997.0][540.0,997.0] isReadyForDisplay()=true WindowStateAnimator{235119bb com.android.keychain/com.android.keychain.KeyChainActivity}: Surface: shown=true layer=21020 alpha=1.0 rect=(540.0,997.0) 1.0 x 1.0 mGlobalScale=1.0 mDsDx=1.0 mDtDx=0.0 mDsDy=0.0 mDtDy=1.0 windowType=normal : MultiWindowStyle{type=0, zone=ZONE_UNKNOWN, option=0x00000000, bounds=null, isNull=false, isolatedCenterPoint=Point(0, 0), scale=0.0, specificTaskId=-1} Current zone bounds=[0,0][1080,1920] Current stack bounds=[0,0][1080,1920] mWaitingForOrientation=false Window #3 Window{7dd0f47 u0 com.android.chrome/com.google.android.apps.chrome.Main}: mDisplayId=0 mSession=Session{362dd2c8 12521:u0a10088} mClient=android.os.BinderProxy@1003da86 mOwnerUid=10088 mShowToOwnerOnly=true package=com.android.chrome appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#10 ty=1 fl=#1810100 pfl=0x8 fmt=-3 wanim=0x1030461 surfaceInsets=Rect(0, 0 - 0, 0) mwfl=0x0} Requested w=1080 h=1920 mLayoutSeq=13934 mHasSurface=true mShownFrame=[0.0,0.0][1080.0,1920.0] isReadyForDisplay()=true WindowStateAnimator{1038764a com.android.chrome/com.google.android.apps.chrome.Main}: Surface: shown=true layer=21015 alpha=1.0 rect=(0.0,0.0) 1080.0 x 1920.0 mGlobalScale=1.0 mDsDx=1.0 mDtDx=0.0 mDsDy=0.0 mDtDy=1.0 windowType=normal : MultiWindowStyle{type=0, zone=ZONE_UNKNOWN, option=0x01000002, bounds=null, isNull=false, isolatedCenterPoint=Point(0, 0), scale=0.0, specificTaskId=-1} Current zone bounds=[0,0][1080,1920] Current stack bounds=[0,0][1080,1920] mWaitingForOrientation=false Window #2 Window{1eed9697 u0 SurfaceView}: mDisplayId=0 mSession=Session{362dd2c8 12521:u0a10088} mClient=android.os.BinderProxy@38a5b45e mOwnerUid=10088 mShowToOwnerOnly=true package=null appop=NONE mAttrs=WM.LayoutParams{(0,75)(1080x1845) gr=#800033 ty=1001 fl=#4218 pfl=0x40 fmt=4 surfaceInsets=Rect(0, 0 - 0, 0) mwfl=0x0} Requested w=1080 h=1845 mLayoutSeq=13934 mAttachedWindow=Window{7dd0f47 u0 com.android.chrome/com.google.android.apps.chrome.Main} mLayoutAttached=true mHasSurface=true mShownFrame=[0.0,75.0][1080.0,1920.0] isReadyForDisplay()=true WindowStateAnimator{3ece3fb5 SurfaceView}: Surface: shown=true layer=21010 alpha=1.0 rect=(0.0,75.0) 1080.0 x 1845.0 mGlobalScale=1.0 mDsDx=1.0 mDtDx=0.0 mDsDy=0.0 mDtDy=1.0 windowType=normal : MultiWindowStyle{type=0, zone=ZONE_UNKNOWN, option=0x01000002, bounds=null, isNull=false, isolatedCenterPoint=Point(0, 0), scale=0.0, specificTaskId=-1} Current zone bounds=[0,0][1080,1920] Current stack bounds=[0,0][1080,1920] mWaitingForOrientation=false Window #1 Window{2327cfa6 u0 com.sec.android.app.launcher/com.android.launcher2.Launcher}: mDisplayId=0 mSession=Session{1eddc0b 3447:u0a10008} mClient=android.os.BinderProxy@9bff501 mOwnerUid=10008 mShowToOwnerOnly=true package=com.sec.android.app.launcher appop=NONE mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#5910100 pfl=0x8 fmt=-2 wanim=0x103037d vsysui=0x40000500 surfaceInsets=Rect(0, 0 - 0, 0) mwfl=0x10} Requested w=1080 h=1920 mLayoutSeq=13847 mHasSurface=false mShownFrame=[0.0,0.0][1080.0,1920.0] isReadyForDisplay()=false WindowStateAnimator{3b3a0702 com.sec.android.app.launcher/com.android.launcher2.Launcher}: mGlobalScale=1.0 mDsDx=1.0 mDtDx=0.0 mDsDy=0.0 mDtDy=1.0 mWallpaperX=0.5 mWallpaperY=0.5 windowType=normal : MultiWindowStyle{type=0, zone=ZONE_UNKNOWN, option=0x00000000, bounds=null, isNull=false, isolatedCenterPoint=Point(0, 0), scale=0.0, specificTaskId=-1} Current zone bounds=[0,0][1080,1920] Current stack bounds=[0,0][1080,1920] mWaitingForOrientation=false Window #0 Window{1afc2292 u0 com.android.systemui.ImageWallpaper}: mDisplayId=0 mSession=Session{28860714 3581:u0a10021} mClient=android.os.BinderProxy@d2f501d mOwnerUid=10021 mShowToOwnerOnly=true package=null appop=NONE mAttrs=WM.LayoutParams{(0,0)(1920x1920) gr=#800033 ty=2013 fl=#318 fmt=2 wanim=0x10302e2 surfaceInsets=Rect(0, 0 - 0, 0) mwfl=0x0} Requested w=1920 h=1920 mLayoutSeq=13853 mIsImWindow=false mIsWallpaper=true mIsFloatingLayer=true mWallpaperVisible=false Offsets x=-420 y=0 mHasSurface=true mShownFrame=[-420.0,0.0][1500.0,1920.0] isReadyForDisplay()=false WindowStateAnimator{7026d42 com.android.systemui.ImageWallpaper}: Surface: shown=false layer=21000 alpha=1.0 rect=(-420.0,0.0) 1920.0 x 1920.0 mGlobalScale=1.0 mDsDx=1.0 mDtDx=0.0 mDsDy=0.0 mDtDy=1.0 mLastFreezeDuration=+1d6h38m5s425ms mWallpaperX=0.5 mWallpaperY=0.5 windowType=normal : {type=0, zone=ZONE_UNKNOWN, option=0x00000000, bounds=null, isNull=false, isolatedCenterPoint=Point(0, 0), scale=0.0, specificTaskId=-1} Current zone bounds=[0,0][1080,1920] mWaitingForOrientation=false mCurConfiguration={0 0.93 ?mcc?mnc en_US ldltr sw360dp w360dp h615dp 480dpi nrml long port finger -keyb/v/h -nav/h s.8} mHasPermanentDpad=false mCurrentFocus=Window{26f53ce8 u0 com.android.keychain/com.android.keychain.KeyChainActivity} mFocusedApp=AppWindowToken{234ba482 token=Token{1744e3cd ActivityRecord{1ce7b564 u0 com.android.keychain/.KeyChainActivity t3464}}} mInputMethodTarget=Window{7dd0f47 u0 com.android.chrome/com.google.android.apps.chrome.Main} mInTouchMode=false mLayoutSeq=13934 mLastDisplayFreezeDuration=+507ms due to Window{2c1b54ce u0 co.clabs.valora/org.celo.mobile.MainActivity}"
const temp2 ="Display: mDisplayId=3 stacks=0 init=720x1560 420dpi cur=720x1560 app=720x1560 rng=720x720-1560x1560 Display: mDisplayId=0 stacks=7 init=1080x2340 420dpi cur=1080x2340 app=1080x2131 rng=1080x1017-2131x2131 deferred=false mLayoutNeeded=false mTouchExcludeRegion=SkRegion((0,0,1080,2340))"

let info={};
[info.junk,info.junk,info.junk,info.width,info.height]=temp2.match(/(mDisplayId=0)(\d|\D)+init=(\d+)x(\d+)/)
console.log(info.width)
console.log(info.height) 

Javascript Online Compiler

Write, Run & Share Javascript code online using OneCompiler's JS online compiler for free. It's one of the robust, feature-rich online compilers for Javascript language. Getting started with the OneCompiler's Javascript editor is easy and fast. The editor shows sample boilerplate code when you choose language as Javascript and start coding.

About Javascript

Javascript(JS) is a object-oriented programming language which adhere to ECMA Script Standards. Javascript is required to design the behaviour of the web pages.

Key Features

  • Open-source
  • Just-in-time compiled language
  • Embedded along with HTML and makes web pages alive
  • Originally named as LiveScript.
  • Executable in both browser and server which has Javascript engines like V8(chrome), SpiderMonkey(Firefox) etc.

Syntax help

STDIN Example

var readline = require('readline');
var rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  terminal: false
});

rl.on('line', function(line){
    console.log("Hello, " + line);
});

variable declaration

KeywordDescriptionScope
varVar is used to declare variables(old way of declaring variables)Function or global scope
letlet is also used to declare variables(new way)Global or block Scope
constconst is used to declare const values. Once the value is assigned, it can not be modifiedGlobal or block Scope

Backtick Strings

Interpolation

let greetings = `Hello ${name}`

Multi line Strings

const msg = `
hello
world!
`

Arrays

An array is a collection of items or values.

Syntax:

let arrayName = [value1, value2,..etc];
// or
let arrayName = new Array("value1","value2",..etc);

Example:

let mobiles = ["iPhone", "Samsung", "Pixel"];

// accessing an array
console.log(mobiles[0]);

// changing an array element
mobiles[3] = "Nokia";

Arrow functions

Arrow Functions helps developers to write code in concise way, it’s introduced in ES6.
Arrow functions can be written in multiple ways. Below are couple of ways to use arrow function but it can be written in many other ways as well.

Syntax:

() => expression

Example:

const numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
const squaresOfEvenNumbers = numbers.filter(ele => ele % 2 == 0)
                                    .map(ele => ele ** 2);
console.log(squaresOfEvenNumbers);

De-structuring

Arrays

let [firstName, lastName] = ['Foo', 'Bar']

Objects

let {firstName, lastName} = {
  firstName: 'Foo',
  lastName: 'Bar'
}

rest(...) operator

 const {
    title,
    firstName,
    lastName,
    ...rest
  } = record;

Spread(...) operator

//Object spread
const post = {
  ...options,
  type: "new"
}
//array spread
const users = [
  ...adminUsers,
  ...normalUsers
]

Functions

function greetings({ name = 'Foo' } = {}) { //Defaulting name to Foo
  console.log(`Hello ${name}!`);
}
 
greet() // Hello Foo
greet({ name: 'Bar' }) // Hi Bar

Loops

1. If:

IF is used to execute a block of code based on a condition.

Syntax

if(condition){
    // code
}

2. If-Else:

Else part is used to execute the block of code when the condition fails.

Syntax

if(condition){
    // code
} else {
    // code
}

3. Switch:

Switch is used to replace nested If-Else statements.

Syntax

switch(condition){
    case 'value1' :
        //code
        [break;]
    case 'value2' :
        //code
        [break;]
    .......
    default :
        //code
        [break;]
}

4. For

For loop is used to iterate a set of statements based on a condition.

for(Initialization; Condition; Increment/decrement){  
//code  
} 

5. While

While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.

while (condition) {  
  // code 
}  

6. Do-While

Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.

do {  
  // code 
} while (condition); 

Classes

ES6 introduced classes along with OOPS concepts in JS. Class is similar to a function which you can think like kind of template which will get called when ever you initialize class.

Syntax:

class className {
  constructor() { ... } //Mandatory Class method
  method1() { ... }
  method2() { ... }
  ...
}

Example:

class Mobile {
  constructor(model) {
    this.name = model;
  }
}

mbl = new Mobile("iPhone");