META-INF/
META-INF/MANIFEST.MF
com/
com/android/
com/android/uiautomator/
com/android/uiautomator/janktesthelper/
com/android/uiautomator/janktesthelper/UiWatchers.classUiWatchers.java
package com.android.uiautomator.janktesthelper
com.android.uiautomator.janktesthelper.UiWatchers extends java.lang.Object {
private static final String LOG_TAG
private final java.util.List mErrors
void ()
public void registerAnrAndCrashWatchers ()
public void onAnrDetected (java.lang.String)
String errorText
public void onCrashDetected (java.lang.String)
String errorText
public void reset ()
public java.util.List getErrors ()
public void postHandler ()
com.android.uiautomator.core.UiObjectNotFoundException e
String formatedOutput
com.android.uiautomator.core.UiObject buttonOK
static synthetic java.lang.String access$000 ()
static void ()
}
com/android/uiautomator/janktesthelper/UiWatchers$3.classUiWatchers.java
package com.android.uiautomator.janktesthelper
com.android.uiautomator.janktesthelper.UiWatchers$3 extends java.lang.Object implements com.android.uiautomator.core.UiWatcher {
final synthetic com.android.uiautomator.janktesthelper.UiWatchers this$0
void (com.android.uiautomator.janktesthelper.UiWatchers)
public boolean checkForCondition ()
com.android.uiautomator.core.UiObjectNotFoundException e
String errorText
com.android.uiautomator.core.UiObject window
}
com/android/uiautomator/janktesthelper/UiWatchers$2.classUiWatchers.java
package com.android.uiautomator.janktesthelper
com.android.uiautomator.janktesthelper.UiWatchers$2 extends java.lang.Object implements com.android.uiautomator.core.UiWatcher {
final synthetic com.android.uiautomator.janktesthelper.UiWatchers this$0
void (com.android.uiautomator.janktesthelper.UiWatchers)
public boolean checkForCondition ()
com.android.uiautomator.core.UiObjectNotFoundException e
String errorText
com.android.uiautomator.core.UiObject window
}
com/android/uiautomator/janktesthelper/UiWatchers$4.classUiWatchers.java
package com.android.uiautomator.janktesthelper
com.android.uiautomator.janktesthelper.UiWatchers$4 extends java.lang.Object implements com.android.uiautomator.core.UiWatcher {
final synthetic com.android.uiautomator.janktesthelper.UiWatchers this$0
void (com.android.uiautomator.janktesthelper.UiWatchers)
public boolean checkForCondition ()
com.android.uiautomator.core.UiObjectNotFoundException e
String errorText
com.android.uiautomator.core.UiObject window
}
com/android/uiautomator/janktesthelper/JankTestBase.classJankTestBase.java
package com.android.uiautomator.janktesthelper
public com.android.uiautomator.janktesthelper.JankTestBase extends com.android.uiautomator.testrunner.UiAutomatorTestCase {
public static final String KEY_AVG_JANK
public static final String KEY_MAX_JANK
public static final String KEY_AVG_FPS
public static final String KEY_AVG_MAX_FRAME_DURATION
private static final String TAG
private static final String LOCAL_TMP_DIR
private static String OUTPUT_FILE_NAME
private static String STATUS_FILE_NAME
private static final String RAW_DATA_DIR
private static int SUCCESS_THRESHOLD
private static boolean DEBUG
private static final java.io.File SYSTRACE_DIR
private static final String TRACE_FILE_NAME
private static final int DEFAULT_TRACE_TIME
private static final String ATRACE_COMMAND
protected static final long DEFAULT_ANIMATION_TIME
protected static final int DEFAULT_FLING_STEPS
protected com.android.uiautomator.core.UiDevice mDevice
protected com.android.uiautomator.janktesthelper.UiWatchers mTestWatchers
protected java.io.BufferedWriter mWriter
protected java.io.BufferedWriter mStatusWriter
protected int mTraceTime
protected android.os.Bundle mParams
protected String mTestCaseName
protected int mSuccessTestRuns
protected Thread mThread
private int mIteration
private int[] jankyFrameNumberArray
private double[] frameRateArray
private int[] maxFrameDurationArray
private com.android.uiautomator.janktesthelper.SurfaceFlingerHelper mSurfaceFlingerHelper
public void ()
protected void setUp () throws java.lang.Exception
String mIterationStr
String mTraceTimeStr
protected void tearDown () throws java.lang.Exception
protected void startTrace (java.lang.String, int)
String outputFile
String testCaseName
int iteration
protected void waitForTrace ()
InterruptedException e
protected boolean validateResults (int)
int expectedDataSize
int receivedDataSize
protected void recordResults (java.lang.String, int)
SecurityException e
java.io.IOException e
java.io.IOException e
java.io.IOException e
java.io.IOException e
String fileName
String testCaseName
int iteration
long refreshPeriod
java.io.File rawDataDir
String rawFileName
java.io.BufferedWriter fw
int jankyFrameNumber
double frameRate
int maxFrameDuration
String msg
protected void saveResults (java.lang.String)
java.io.IOException e
String msg
java.io.IOException e
java.io.IOException e
String testCaseName
double avgJankyFrameNumber
int maxJankyFrameNumber
double avgFrameRate
double avgMaxFrameDuration
String avgMsg
android.os.Bundle status
private static int getMaxValue (int[])
int i
int[] intArray
int index
int max
private static double getAverage (int[])
int i
int[] intArray
int total
int numberTests
private static double getAverage (double[])
int i
double[] doubleArray
double total
int numberTests
private void print (int[], java.lang.String)
int i
int[] intArray
String arrayName
private void print (double[], java.lang.String)
int i
double[] doubleArray
String arrayName
private void log (java.lang.String)
String message
protected com.android.uiautomator.janktesthelper.SurfaceFlingerHelper getSurfaceFlingerHelper ()
protected int getIteration ()
static synthetic java.io.File access$000 ()
static synthetic void access$100 (com.android.uiautomator.janktesthelper.JankTestBase, java.lang.String)
com.android.uiautomator.janktesthelper.JankTestBase x0
String x1
static synthetic java.lang.String access$200 ()
static void ()
}
com/android/uiautomator/janktesthelper/SurfaceFlingerHelper.classSurfaceFlingerHelper.java
package com.android.uiautomator.janktesthelper
public com.android.uiautomator.janktesthelper.SurfaceFlingerHelper extends java.lang.Object {
private static String TAG
private static int BUFFER_SIZE
private static int BUFFER_NUMBER
private static String CLEAR_BUFFER_CMD
private static String FRAME_LATENCY_CMD
private static int mPauseThreshold
private long[][] mFrameBufferData
private long mRefreshPeriod
private int mFrameLatencySampleSize
private long[] mFrameDuration
private double[] mNormalizedFrameDuration
private int[] mRoundNormalizedFrameDuration
private int mMaxRoundNormalizedFrameDuration
private double mFrameTimeTarget
private final String PENDING_FENCE_TIME
public void ()
public void clearBuffer (java.lang.String)
int j
int i
int status
java.io.IOException e
java.io.IOException e
java.io.IOException e
InterruptedException e
java.io.IOException e
java.io.IOException e
String windowName
Process p
java.io.BufferedReader resultReader
String command
public void setFrameTimeTarget (double)
double value
public void setPauseThreshold (int)
int threshold
public boolean dumpFrameLatency (java.lang.String)
String windowName
public boolean dumpFrameLatency (java.lang.String, boolean)
java.io.IOException e
java.io.IOException e
int i
String[] bufferValues
int status
String line
boolean dataInvalidFlag
int dataSize
java.io.IOException e
InterruptedException e
java.io.IOException e
java.io.IOException e
java.io.IOException e
java.io.IOException e
String windowName
boolean ignorePendingFenceTime
Process p
java.io.BufferedReader resultReader
String command
public int getDataSampleSize ()
public long getRefreshPeriod ()
public java.lang.String getFrameBufferData ()
int j
int i
StringBuilder rawData
private long[] getFrameDuration ()
long curFrameTime
int i
long preFrameTime
private double[] getNormalizedFrameDuration ()
int i
private int[] getRoundNormalizedFrameDuration ()
int value
int i
public int getJankyFrameNumber ()
int value
int i
int numberJankiness
public int getMaxFrameDuration ()
public double getFrameRate ()
long startTime
long endTime
long totalDuration
public void printData (java.lang.String)
String line
int i
java.io.IOException e
java.io.IOException e
java.io.IOException e
java.io.IOException e
String fileName
java.io.BufferedWriter fw
private void log (java.lang.String)
String msg
static void ()
}
com/android/uiautomator/janktesthelper/UiWatchers$1.classUiWatchers.java
package com.android.uiautomator.janktesthelper
com.android.uiautomator.janktesthelper.UiWatchers$1 extends java.lang.Object implements com.android.uiautomator.core.UiWatcher {
final synthetic com.android.uiautomator.janktesthelper.UiWatchers this$0
void (com.android.uiautomator.janktesthelper.UiWatchers)
public boolean checkForCondition ()
com.android.uiautomator.core.UiObjectNotFoundException e
com.android.uiautomator.core.UiObject window
String errorText
}
com/android/uiautomator/janktesthelper/JankTestBase$SystraceTracker.classJankTestBase.java
package com.android.uiautomator.janktesthelper
public com.android.uiautomator.janktesthelper.JankTestBase$SystraceTracker extends java.lang.Object implements java.lang.Runnable {
java.io.File mFile
int mTime
final synthetic com.android.uiautomator.janktesthelper.JankTestBase this$0
public void (com.android.uiautomator.janktesthelper.JankTestBase, int, java.lang.String)
SecurityException e
int traceTime
String fileName
public void run ()
byte[] buffer
int n
java.io.BufferedReader br
String line
int status
InterruptedException e
java.io.IOException e
IllegalThreadStateException e
String command
Process p
java.io.InputStream in
java.io.BufferedOutputStream out
}