`
MyEyeOfJava
  • 浏览: 1151375 次
  • 性别: Icon_minigender_1
  • 来自: 北京
博客专栏
7af2d6ca-4fe1-3e9a-be85-3f65f7120bd0
测试开发
浏览量:71140
533896eb-dd7b-3cde-b4d3-cc1ce02c1c14
晨记
浏览量:0
社区版块
存档分类
最新评论

[android]android自动化测试十四之dumpsys性能测试

阅读更多
dumpsys 用来给出手机中所有应用程序的信息,并且也会给出现在手机的状态。
dumpsys [Option]
               meminfo 显示内存信息
               cpuinfo 显示CPU信息
               account 显示accounts信息
               activity 显示所有的activities的信息
               window 显示键盘,窗口和它们的关系
               wifi 显示wifi信息


示例:全部信息

Event Hub State:
  HaveFirstKeyboard: false
  FirstKeyboardId: 0x10000
  Devices:
    0x10000: qwerty2 (aka device 0 - first keyboard)
      Classes: 0x000000af
      Path: /dev/input/event0
      KeyLayoutFile: 

Input Reader State:
  Device 0x0: qwerty2
    Sources: 0x00011307
    KeyboardType: 2
    Motion Ranges:
      X: min=0.000, max=480.000, flat=0.000, fuzz=1.002
      Y: min=0.000, max=800.000, flat=0.000, fuzz=1.001
    Keyboard Input Mapper:
      AssociatedDisplayId: 0
      KeyboardType: 2
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
    Trackball Input Mapper:
      AssociatedDisplayId: 0
      XPrecision: 6.000
      YPrecision: 6.000
      Down: false
      DownTime: 0
    Touch Input Mapper:
      AssociatedDisplayId: 0
      UseBadTouchFilter: false
      UseAveragingTouchFilter: false
      UseJumpyTouchFilter: false
      Raw Axes:
        X: min=0, max=479, flat=0, fuzz=0
        Y: min=0, max=799, flat=0, fuzz=0
        Pressure: unknown range
        TouchMajor: unknown range
        TouchMinor: unknown range
        ToolMajor: unknown range
        ToolMinor: unknown range
        Orientation: unknown range
      Calibration:
        touch.touchSize.calibration: none
        touch.toolSize.calibration: none
        touch.pressure.calibration: none
        touch.size.calibration: none
        touch.orientation.calibration: none
      SurfaceWidth: 480px
      SurfaceHeight: 800px
      SurfaceOrientation: 0
      Translation and Scaling Factors:        XOrigin: 0
        YOrigin: 0
        XScale: 1.002
        YScale: 1.001
        XPrecision: 0.998
        YPrecision: 0.999
        GeometricScale: 1.002
        ToolSizeLinearScale: 0.000
        ToolSizeLinearBias: 0.000
        ToolSizeAreaScale: 0.000
        ToolSizeAreaBias: 0.000
        PressureScale: 0.000
        SizeScale: 0.000
        OrientationSCale: 0.000

Input Dispatcher State:
  DispatchEnabled: 1
  DispatchFrozen: 0
  FocusedApplication: name='AppWindowToken{40970358 token=HistoryRecord{4081ad10 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity}}', dispatchingTimeout=5000.000ms
  FocusedWindow: name='Window{40745458 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity paused=false}'
  TouchDown: false
  TouchSplit: false
  TouchedWindows: <none>
  Windows:
    0: name='Window{40891f18 StatusBar paused=false}', paused=false, hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=false, flags=0x00000048, type=0x000007d0, layer=81000, frame=[0,0][480,38], visibleFrame=[0,0][480,38], touchableArea=[0,0][480,38], ownerPid=183, ownerUid=1000, dispatchingTimeout=5000.000ms
    1: name='Window{40635b50 StatusBarExpanded paused=false}', paused=false, hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=false, flags=0x00011328, type=0x000007de, layer=51005, frame=[0,-800][480,-82], visibleFrame=[0,-800][480,-82], touchableArea=[0,-800][480,-82], ownerPid=183, ownerUid=1000, dispatchingTimeout=5000.000ms
    2: name='Window{408d2310 TrackingView paused=false}', paused=false, hasFocus=false, hasWallpaper=false, visible=false, canReceiveKeys=false, flags=0x00020300, type=0x000007de, layer=51000, frame=[0,0][480,800], visibleFrame=[0,0][480,800], touchableArea=[0,0][480,800], ownerPid=183, ownerUid=1000, dispatchingTimeout=5000.000ms
    3: name='Window{40745458 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity paused=false}', paused=false, hasFocus=true, hasWallpaper=false, visible=true, canReceiveKeys=true, flags=0x00010100, type=0x00000001, layer=21015, frame=[0,0][480,800], visibleFrame=[0,38][480,800], touchableArea=[0,0][480,800], ownerPid=419, ownerUid=10030, dispatchingTimeout=5000.000ms
    4: name='Window{40673050 cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity paused=false}', paused=false, hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=true, flags=0x00010100, type=0x00000001, layer=21010, frame=[0,0][480,800], visibleFrame=[0,38][480,800], touchableArea=[0,0][480,800], ownerPid=419, ownerUid=10030, dispatchingTimeout=5000.000ms
    5: name='Window{4093df78 com.android.launcher/com.android.launcher2.Launcher paused=false}', paused=false, hasFocus=false, hasWallpaper=true, visible=true, canReceiveKeys=true, flags=0x00110100, type=0x00000001, layer=21005, frame=[0,0][480,800], visibleFrame=[0,38][480,800], touchableArea=[0,0][480,800], ownerPid=262, ownerUid=10013, dispatchingTimeout=5000.000ms
    6: name='Window{407a61d8 com.android.internal.service.wallpaper.ImageWallpaper paused=false}', paused=false, hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=false, flags=0x00000318, type=0x000007dd, layer=21000, frame=[0,0][480,800], visibleFrame=[0,0][480,800], touchableArea=[0,0][480,800], ownerPid=84, ownerUid=1000, dispatchingTimeout=5000.000ms
  MonitoringChannels: <none>
  InboundQueue: length=0
  ActiveConnections: <none>
  AppSwitch: not pending


 
Current Window Manager state:
  Window #6 Window{40891f18 StatusBar paused=false}:
    mSession=Session{4064f0f0 uid 1000} mClient=android.os.BinderProxy@40639370
    mAttrs=WM.LayoutParams{(0,0)(fillx38) sim=#20 gr=#37 ty=2000 fl=#48 fmt=2 wanim=0x103006d}
    mBaseLayer=81000 mSubLayer=0 mAnimLayer=81000+0=81000 mLastLayer=81000
    mSurface=Surface(name=StatusBar, identity=3)
    Surface: shown=true layer=81000 alpha=1.0 rect=(0,0) 480 x 38
    mToken=WindowToken{40746708 token=null}
    mRootToken=WindowToken{40746708 token=null}
    mViewVisibility=0x0 mLastHidden=false mHaveFrame=true mObscured=false
    Requested w=480 h=38 mLayoutSeq=43
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mConfiguration={ scale=1.0 imsi=0/0 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=34 uiMode=17 seq=4}
    mShownFrame=[0,0][480,38] last=[0,0][480,38]
    mFrame=[0,0][480,38] last=[0,0][480,38]
    mContainingFrame=[0,0][480,800] mDisplayFrame=[0,0][480,800]
    mContentFrame=[0,0][480,38] mVisibleFrame=[0,0][480,38]
    mContentInsets=[0,0][0,0] last=[0,0][0,0] mVisibleInsets=[0,0][0,0] last=[0,0][0,0]
    mAnimating=false mLocalAnimating=false mAnimationIsEntrance=true mAnimation=null
    mDrawPending=false mCommitDrawPending=false mReadyToShow=false mHasDrawn=true
  Window #5 Window{40635b50 StatusBarExpanded paused=false}:
    mSession=Session{4064f0f0 uid 1000} mClient=android.os.BinderProxy@40797698
    mAttrs=WM.LayoutParams{(0,-800)(fillx718) sim=#20 gr=#37 ty=2014 fl=#11328 fmt=-3 wanim=0x1030001}
    mBaseLayer=51000 mSubLayer=0 mAnimLayer=51005+0=51005 mLastLayer=51005
    mSurface=Surface(name=StatusBarExpanded, identity=4)
    Surface: shown=true layer=51005 alpha=1.0 rect=(0,-800) 480 x 718
    mToken=WindowToken{40746708 token=null}
    mRootToken=WindowToken{40746708 token=null}
    mViewVisibility=0x0 mLastHidden=false mHaveFrame=true mObscured=false
    Requested w=480 h=718 mLayoutSeq=43
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mConfiguration={ scale=1.0 imsi=0/0 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=34 uiMode=17 seq=4}
    mShownFrame=[0,-800][480,-82] last=[0,-800][480,-82]
    mFrame=[0,-800][480,-82] last=[0,-800][480,-82]
    mContainingFrame=[0,0][480,800] mDisplayFrame=[-10000,-10000][10000,10000]
    mContentFrame=[0,-800][480,-82] mVisibleFrame=[0,-800][480,-82]
    mContentInsets=[0,0][0,0] last=[0,0][0,0] mVisibleInsets=[0,0][0,0] last=[0,0][0,0]
    mDrawPending=false mCommitDrawPending=false mReadyToShow=false mHasDrawn=true
  Window #4 Window{408d2310 TrackingView paused=false}:
    mSession=Session{4064f0f0 uid 1000} mClient=android.os.BinderProxy@406c58e0
    mAttrs=WM.LayoutParams{(0,-800)(fillxfill) sim=#20 gr=#37 ty=2014 fl=#20300 fmt=2}
    mBaseLayer=51000 mSubLayer=0 mAnimLayer=51000+0=51000 mLastLayer=0
    mToken=WindowToken{40746708 token=null}
    mRootToken=WindowToken{40746708 token=null}
    mViewVisibility=0x8 mLastHidden=false mHaveFrame=true mObscured=false
    Requested w=480 h=800 mLayoutSeq=7
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mConfiguration=null
    mShownFrame=[0,0][0,0] last=[0,0][0,0]
    mFrame=[0,0][480,800] last=[0,0][0,0]
    mContainingFrame=[0,0][480,800] mDisplayFrame=[-10000,-10000][10000,10000]
    mContentFrame=[0,0][480,800] mVisibleFrame=[0,0][480,800]
    mContentInsets=[0,0][0,0] last=[0,0][0,0] mVisibleInsets=[0,0][0,0] last=[0,0][0,0]
    mDrawPending=false mCommitDrawPending=false mReadyToShow=false mHasDrawn=false
  Window #3 Window{40745458 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity paused=false}:
    mSession=Session{407498f0 uid 10030} mClient=android.os.BinderProxy@406fd0d0
    mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#110 ty=1 fl=#10100 fmt=-1}
    mBaseLayer=21000 mSubLayer=0 mAnimLayer=21015+0=21015 mLastLayer=21015
    mSurface=Surface(name=cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity, identity=10)
    Surface: shown=true layer=21015 alpha=1.0 rect=(0,0) 480 x 800
    mToken=AppWindowToken{40970358 token=HistoryRecord{4081ad10 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity}}
    mRootToken=AppWindowToken{40970358 token=HistoryRecord{4081ad10 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity}}
    mAppToken=AppWindowToken{40970358 token=HistoryRecord{4081ad10 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity}}
    mViewVisibility=0x0 mLastHidden=false mHaveFrame=true mObscured=false
    Requested w=480 h=800 mLayoutSeq=43
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mConfiguration={ scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=34 uiMode=17 seq=5}
    mShownFrame=[0,0][480,800] last=[0,0][480,800]
    mFrame=[0,0][480,800] last=[0,0][480,800]
    mContainingFrame=[0,0][480,800] mDisplayFrame=[0,0][480,800]
    mContentFrame=[0,38][480,800] mVisibleFrame=[0,38][480,800]
    mContentInsets=[0,38][0,0] last=[0,38][0,0] mVisibleInsets=[0,38][0,0] last=[0,38][0,0]
    mDrawPending=false mCommitDrawPending=false mReadyToShow=false mHasDrawn=true
  Window #2 Window{40673050 cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity paused=false}:
    mSession=Session{407498f0 uid 10030} mClient=android.os.BinderProxy@4073ad38
    mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#10100 fmt=-1}
    mBaseLayer=21000 mSubLayer=0 mAnimLayer=21010+0=21010 mLastLayer=21010
    mSurface=Surface(name=cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity, identity=8)
    Surface: shown=true layer=21010 alpha=1.0 rect=(0,0) 480 x 800
    mToken=AppWindowToken{4081df70 token=HistoryRecord{405527c8 cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity}}
    mRootToken=AppWindowToken{4081df70 token=HistoryRecord{405527c8 cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity}}
    mAppToken=AppWindowToken{4081df70 token=HistoryRecord{405527c8 cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity}}
    mViewVisibility=0x0 mLastHidden=false mHaveFrame=true mObscured=true
    Requested w=480 h=800 mLayoutSeq=43
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mConfiguration={ scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=34 uiMode=17 seq=5}
    mShownFrame=[0,0][480,800] last=[0,0][480,800]
    mFrame=[0,0][480,800] last=[0,0][480,800]
    mContainingFrame=[0,0][480,800] mDisplayFrame=[0,0][480,800]
    mContentFrame=[0,38][480,800] mVisibleFrame=[0,38][480,800]
    mContentInsets=[0,38][0,0] last=[0,38][0,0] mVisibleInsets=[0,38][0,0] last=[0,38][0,0]
    mDrawPending=false mCommitDrawPending=false mReadyToShow=false mHasDrawn=true
  Window #1 Window{4093df78 com.android.launcher/com.android.launcher2.Launcher paused=false}:
    mSession=Session{409464b8 uid 10013} mClient=android.os.BinderProxy@4081c9e0
    mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#110100 fmt=-2 wanim=0x1030001}
    mBaseLayer=21000 mSubLayer=0 mAnimLayer=21005+0=21005 mLastLayer=21005
    mSurface=Surface(name=com.android.launcher/com.android.launcher2.Launcher, identity=6)
    Surface: shown=true layer=21005 alpha=1.0 rect=(0,0) 480 x 800
    mToken=AppWindowToken{409c3128 token=HistoryRecord{40757508 com.android.launcher/com.android.launcher2.Launcher}}
    mRootToken=AppWindowToken{409c3128 token=HistoryRecord{40757508 com.android.launcher/com.android.launcher2.Launcher}}
    mAppToken=AppWindowToken{409c3128 token=HistoryRecord{40757508 com.android.launcher/com.android.launcher2.Launcher}}
    mViewVisibility=0x0 mLastHidden=false mHaveFrame=true mObscured=true
    Requested w=480 h=800 mLayoutSeq=43
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mConfiguration={ scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=34 uiMode=17 seq=5}
    mShownFrame=[0,0][480,800] last=[0,0][480,800]
    mFrame=[0,0][480,800] last=[0,0][480,800]
    mContainingFrame=[0,0][480,800] mDisplayFrame=[0,0][480,800]
    mContentFrame=[0,38][480,800] mVisibleFrame=[0,38][480,800]
    mContentInsets=[0,38][0,0] last=[0,38][0,0] mVisibleInsets=[0,38][0,0] last=[0,38][0,0]
    mDrawPending=false mCommitDrawPending=false mReadyToShow=false mHasDrawn=true
    mWallpaperX=0.5 mWallpaperY=0.0
    mWallpaperXStep=0.25 mWallpaperYStep=0.0
  Window #0 Window{407a61d8 com.android.internal.service.wallpaper.ImageWallpaper paused=false}:
    mSession=Session{4070fda0 uid 1000} mClient=android.service.wallpaper.WallpaperService$Engine$4@407352d0
    mAttrs=WM.LayoutParams{(0,0)(fillxfill) gr=#33 ty=2013 fl=#318 fmt=4 wanim=0x1030079}
    mIsImWindow=false mIsWallpaper=true mIsFloatingLayer=true mWallpaperVisible=false
    mBaseLayer=21000 mSubLayer=0 mAnimLayer=21000+0=21000 mLastLayer=21000
    mSurface=Surface(name=com.android.internal.service.wallpaper.ImageWallpaper, identity=2)
    Surface: shown=false layer=21000 alpha=1.0 rect=(0,0) 480 x 800
    mToken=WindowToken{406589a0 token=android.os.Binder@40550d80}
    mRootToken=WindowToken{406589a0 token=android.os.Binder@40550d80}
    mViewVisibility=0x0 mLastHidden=true mHaveFrame=true mObscured=true
    Requested w=-1 h=-1 mLayoutSeq=34
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mConfiguration={ scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=34 uiMode=17 seq=5}
    mShownFrame=[0,0][480,800] last=[0,0][480,800]
    mFrame=[0,0][480,800] last=[0,0][480,800]
    mContainingFrame=[0,0][480,800] mDisplayFrame=[-10000,-10000][10000,10000]
    mContentFrame=[0,0][480,800] mVisibleFrame=[0,0][480,800]
    mContentInsets=[0,0][0,0] last=[0,0][0,0] mVisibleInsets=[0,0][0,0] last=[0,0][0,0]
    mDrawPending=false mCommitDrawPending=false mReadyToShow=false mHasDrawn=true
    mWallpaperX=0.5 mWallpaperY=0.0
    mWallpaperXStep=0.25 mWallpaperYStep=0.0
 
  All active sessions:
  Session Session{407498f0 uid 10030}:
    mNumWindow=2 mClientDead=false mSurfaceSession=android.view.SurfaceSession@406b7280
  Session Session{409464b8 uid 10013}:
    mNumWindow=1 mClientDead=false mSurfaceSession=android.view.SurfaceSession@40528e28
  Session Session{4064f0f0 uid 1000}:
    mNumWindow=3 mClientDead=false mSurfaceSession=android.view.SurfaceSession@4054aa38
  Session Session{4070fda0 uid 1000}:
    mNumWindow=1 mClientDead=false mSurfaceSession=android.view.SurfaceSession@409588d0
 
  All tokens:
  Token null:
    token=null
    windows=[Window{40891f18 StatusBar paused=false}, Window{408d2310 TrackingView paused=false}, Window{40635b50 StatusBarExpanded paused=false}]
    windowType=-1 hidden=false hasVisible=true
  Token HistoryRecord{4081ad10 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity}:
    token=HistoryRecord{4081ad10 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity}
    windows=[Window{40745458 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity paused=false}]
    windowType=2 hidden=false hasVisible=true
    app=true
    allAppWindows=[Window{40745458 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity paused=false}]
    groupId=4 appFullscreen=false requestedOrientation=1
    hiddenRequested=false clientHidden=false willBeHidden=false reportedVisible=true
    numInterestingWindows=1 numDrawnWindows=1 inPendingTransaction=false allDrawn=true
    startingData=null removed=false firstWindowDrawn=true
  Token HistoryRecord{40757508 com.android.launcher/com.android.launcher2.Launcher}:
    token=HistoryRecord{40757508 com.android.launcher/com.android.launcher2.Launcher}
    windows=[Window{4093df78 com.android.launcher/com.android.launcher2.Launcher paused=false}]
    windowType=2 hidden=false hasVisible=true
    app=true
    allAppWindows=[Window{4093df78 com.android.launcher/com.android.launcher2.Launcher paused=false}]
    groupId=3 appFullscreen=true requestedOrientation=5
    hiddenRequested=false clientHidden=false willBeHidden=false reportedVisible=true
    numInterestingWindows=1 numDrawnWindows=1 inPendingTransaction=false allDrawn=true
    startingData=null removed=false firstWindowDrawn=true
  Token android.os.Binder@40549038:
    token=android.os.Binder@40549038
    windows=[]
    windowType=2011 hidden=false hasVisible=false
  Token android.os.Binder@40550d80:
    token=android.os.Binder@40550d80
    windows=[Window{407a61d8 com.android.internal.service.wallpaper.ImageWallpaper paused=false}]
    windowType=2013 hidden=true hasVisible=true
  Token HistoryRecord{405527c8 cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity}:
    token=HistoryRecord{405527c8 cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity}
    windows=[Window{40673050 cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity paused=false}]
    windowType=2 hidden=false hasVisible=true
    app=true
    allAppWindows=[Window{40673050 cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity paused=false}]
    groupId=4 appFullscreen=false requestedOrientation=1
    hiddenRequested=false clientHidden=false willBeHidden=false reportedVisible=true
    numInterestingWindows=1 numDrawnWindows=1 inPendingTransaction=false allDrawn=true
    startingData=null removed=false firstWindowDrawn=true
 
  Window token list:
  #0: WindowToken{406589a0 token=android.os.Binder@40550d80}
  #1: WindowToken{405270a8 token=android.os.Binder@40549038}
  #2: WindowToken{40746708 token=null}
  #3: AppWindowToken{409c3128 token=HistoryRecord{40757508 com.android.launcher/com.android.launcher2.Launcher}}
  #4: AppWindowToken{4081df70 token=HistoryRecord{405527c8 cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity}}
  #5: AppWindowToken{40970358 token=HistoryRecord{4081ad10 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity}}
 
  Wallpaper tokens:
  Wallpaper #0 WindowToken{406589a0 token=android.os.Binder@40550d80}:
    token=android.os.Binder@40550d80
    windows=[Window{407a61d8 com.android.internal.service.wallpaper.ImageWallpaper paused=false}]
    windowType=2013 hidden=true hasVisible=true
 
  Application tokens in Z order:
  App #2: AppWindowToken{40970358 token=HistoryRecord{4081ad10 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity}}
  App #1: AppWindowToken{4081df70 token=HistoryRecord{405527c8 cn.opda.a.phonoalbumshoushou/cn.com.opda.android.mainui.MainActivity}}
  App #0: AppWindowToken{409c3128 token=HistoryRecord{40757508 com.android.launcher/com.android.launcher2.Launcher}}
 
  mCurrentFocus=Window{40745458 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity paused=false}
  mLastFocus=Window{40745458 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity paused=false}
  mFocusedApp=AppWindowToken{40970358 token=HistoryRecord{4081ad10 cn.opda.a.phonoalbumshoushou/com.dianxinos.optimizer.recommend.RecommendTabActivity}}
  mInputMethodTarget=null
  mInputMethodWindow=null
  mWallpaperTarget=Window{4093df78 com.android.launcher/com.android.launcher2.Launcher paused=false}
  mCurConfiguration={ scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=34 uiMode=17 seq=5}
  mInTouchMode=false mLayoutSeq=43
  mSystemBooted=true mDisplayEnabled=true
  mLayoutNeeded=false mBlurShown=false
  no DimAnimator 
  mInputMethodAnimLayerAdjustment=0  mWallpaperAnimLayerAdjustment=0
  mLastWallpaperX=0.5 mLastWallpaperY=0.0
  mDisplayFrozen=false mWindowsFreezingScreen=false mAppsFreezingScreen=0 mWaitingForConfig=false
  mRotation=0, mForcedAppOrientation=1, mRequestedRotation=0
  mAnimationPending=false mWindowAnimationScale=1.0 mTransitionWindowAnimationScale=1.0
  mNextAppTransition=0xffffffff, mAppTransitionReady=false, mAppTransitionRunning=false, mAppTransitionTimeout=false
  mStartingIconInTransition=false, mSkipAppTransitionAnimation=false
  DisplayWidth=480 DisplayHeight=800
分享到:
评论

相关推荐

    如何测试Android APP的耗电量? Android自动化测试脚本入门

    - 在测试过程中,可以通过编写bat脚本来实现自动化测试,提高效率。 3. **Android 应用耗电量:** - 指的是Android应用运行时对设备电池电量的消耗情况。 - 高效地管理电池资源对于延长设备使用时间至关重要,...

    Android系统UI性能测试方法的研究.pdf

    Android系统UI性能测试是确保应用软件提供良好用户体验的关键环节。随着Android应用的爆炸式增长,用户对于应用的性能要求越来越严格,尤其是UI的启动...关键词:Android系统UI,性能测试,自动化测试,MonkeyRunner。

    android移动app性能测试

    在进行Android App性能测试时,通常会使用Python等编程语言封装adb命令,以自动化收集数据和生成图表。测试结果分析时,对比不同版本和竞品的数据,可以帮助优化应用性能,提高用户满意度。此外,定期进行性能测试并...

    Android自动化压力测试图解教程——Monkey工具

    总结来说,Monkey工具是Android自动化压力测试的重要手段,而`detect_memory.sh`这样的脚本则有助于我们更深入地分析测试过程中的内存消耗。通过这样的实践,开发者可以不断提升应用的质量和用户体验。

    常用Adb命令monkey自动化脚本编写.docx

    在Android测试开发中,ADB(Android Debug Bridge)和Monkey工具是不可或缺的利器。...通过熟练掌握这些ADB和Monkey命令,可以有效地进行Android应用的自动化测试和性能分析,提升开发和调试的效率。

    monkey_android自动化工具

    android monkey python3 统计性能信息cpu,men,fps,battery,flow 支持wifi,gprs统计 统计crash信息 fps统计:需要打开开发者里面的GPU呈现模式分析-在adb shell dumpsys gfxinfo中

    android压力测试Monkey命令1

    Monkey是Android SDK中附带的一个命令行工具,用于在模拟器或真实设备上运行自动化测试。它位于SDK的platform-tools目录下,主要功能是生成一系列随机的用户事件,如按键输入、触摸屏点击、手势等,以此来对应用程序...

    使用python+poco+夜神模拟器进行自动化测试实例

    POCO是一个基于Python的UI自动化测试框架,专门用于Android和iOS平台上的应用测试。POCO能够通过识别用户界面元素来模拟用户的操作,如点击、滑动等,并支持多种定位方式,包括XPath、ID、Class Name等。此外,POCO...

    深入探索Android卡顿优化(上)1

    开发者需要掌握各种分析工具,了解CPU性能指标,同时建立有效的自动化检测机制,以确保应用的流畅运行。随着硬件性能的提升和Android系统的演进,卡顿优化的技术也在不断进步,开发者需要持续学习,以适应新的挑战。

    自动获取android包名类名

    了解如何自动获取包名和类名对于Android开发者来说非常有用,特别是在进行自动化测试、分析应用行为或编写自定义脚本时。通过熟练掌握这些技巧,开发者可以提高工作效率,更好地理解和控制他们的应用。

    web+app+接口的测试pdf版本

    9. **自动化测试流程**: 自动化测试通常包括创建功能测试用例,筛选适合自动化的用例,编写自动化脚本,将手动用例转换为自动化用例,最后执行测试并生成测试报告。 以上就是Web自动化测试、App测试和接口测试的...

    android platform tools 工具,android sdk 必备

    3. Hierarchy Viewer(现已弃用):这个工具允许开发者可视化Android应用程序的视图层次结构,从而分析布局性能并优化用户界面。虽然在Android Studio 3.2之后被Layout Inspector取代,但其原理相似,都是为了帮助...

    Android APP程序书写和性能优化1

    Android系统提供了内置的性能监控工具,如开发者选项中的严格模式和GPU监控,以及Linux命令`dumpsys`,可用于查看内存、线程和组件信息。例如,`dumpsys meminfo`可以查看应用的内存占用,`dumpsys activity`可以...

    android 安卓ADB工具

    - **自动化测试**:结合脚本,ADB可以实现批量安装、启动应用,甚至执行自动化测试。 综上所述,Android ADB工具是开发者的重要辅助,无论是在日常开发、调试还是自动化任务中,都有其不可替代的角色。熟练掌握ADB...

    Android Monkey压力测试详细介绍

    Android Monkey压力测试是一种自动化工具,用于测试Android应用程序的稳定性和健壮性。它通过发送大量随机的用户事件,如点击、滑动、按键等,来模拟用户的各种操作,以此来发现潜在的错误、崩溃和性能问题。Monkey...

    android shell apk

    这类应用通常用于开发者调试、系统管理、自动化任务或者对Android系统有深入操作需求的用户。 描述中提到,“android上面执行终端的程序,安装就可以使用”,意味着用户可以通过安装这个APK文件(migoolan.terminal...

    android adb shell

    3. **自动化测试**:结合 Monkey 工具,实现对应用的自动化压力测试。 4. **故障诊断**:当设备出现异常时,通过查看系统日志 (`logcat`) 来定位问题的原因。 5. **设备管理**:可以通过 ADB Shell 远程管理设备,...

    Android之常用命令和工具

    为了进一步简化使用流程,可以编写一个简单的 shell 脚本来自动化这一过程: ```shell #!/bin/bash dev="device" devices=$(adb devices) if [[ ${devices} == *$dev ]] then echo "手机已经连接好终端" info=$...

Global site tag (gtag.js) - Google Analytics