META-INF/
META-INF/MANIFEST.MF
com/
com/facebook/
com/facebook/testing/
com/facebook/testing/screenshot/
com/facebook/testing/screenshot/WindowAttachment$Detacher.classWindowAttachment.java
package com.facebook.testing.screenshot
public abstract com.facebook.testing.screenshot.WindowAttachment$Detacher extends java.lang.Object {
public abstract void detach ()
}
com/facebook/testing/screenshot/ScreenshotTestRunner.classScreenshotTestRunner.java
package com.facebook.testing.screenshot
public com.facebook.testing.screenshot.ScreenshotTestRunner extends android.test.InstrumentationTestRunner {
public void ()
public void onCreate (android.os.Bundle)
android.os.Bundle args
public void finish (int, android.os.Bundle)
int resultCode
android.os.Bundle results
}
com/facebook/testing/screenshot/ViewHelpers$AfterLayout.classViewHelpers.java
package com.facebook.testing.screenshot
public com.facebook.testing.screenshot.ViewHelpers$AfterLayout extends java.lang.Object {
final com.facebook.testing.screenshot.ViewHelpers this$0
public void (com.facebook.testing.screenshot.ViewHelpers)
public android.graphics.Bitmap draw ()
android.graphics.Bitmap bmp
android.graphics.Canvas canvas
com.facebook.testing.screenshot.WindowAttachment$Detacher detacher
}
com/facebook/testing/screenshot/Screenshot.classScreenshot.java
package com.facebook.testing.screenshot
public com.facebook.testing.screenshot.Screenshot extends java.lang.Object {
public void ()
public static com.facebook.testing.screenshot.RecordBuilder snap (android.view.View)
android.view.View measuredView
public static com.facebook.testing.screenshot.RecordBuilder snapActivity (android.app.Activity)
android.app.Activity activity
}
com/facebook/testing/screenshot/WindowAttachment.classWindowAttachment.java
package com.facebook.testing.screenshot
public abstract com.facebook.testing.screenshot.WindowAttachment extends java.lang.Object {
private static final java.util.WeakHashMap sAttachments
public static com.facebook.testing.screenshot.WindowAttachment$Detacher dispatchAttach (android.view.View)
android.view.View view
private static void dispatchDetach (android.view.View)
android.view.View view
private static void invoke (android.view.View, java.lang.String)
android.view.View view
String methodName
private static void invokeUnchecked (android.view.View, java.lang.String)
java.lang.reflect.Method method
Exception e
int i
android.view.ViewGroup vg
android.view.View view
String methodName
public static void setAttachInfo (android.view.View)
Class cAttachInfo
Class cViewRootImpl
Class cIWindowSession
Class cIWindow
Class cCallbacks
android.content.Context context
android.view.WindowManager wm
android.view.Display display
Object viewRootImpl
Object window
Class[] params
Object[] values
Object attachInfo
java.lang.reflect.Method dispatch
Exception e
android.view.View view
private static java.lang.Object invokeConstructor (java.lang.Class, java.lang.Class[], java.lang.Object[]) throws java.lang.Exception
Class clazz
Class[] params
Object[] values
java.lang.reflect.Constructor cons
private static java.lang.Object createIWindow () throws java.lang.Exception
Class cIWindow
Object ret
java.lang.reflect.Method m
private static void setField (java.lang.Object, java.lang.String, java.lang.Object) throws java.lang.Exception
Object o
String fieldName
Object value
Class clazz
java.lang.reflect.Field field
private void ()
static void access$100 (android.view.View)
android.view.View x0
static java.util.WeakHashMap access$200 ()
static void ()
}
com/facebook/testing/screenshot/WindowAttachment$1.classWindowAttachment.java
package com.facebook.testing.screenshot
com.facebook.testing.screenshot.WindowAttachment$1 extends java.lang.Object {
}
com/facebook/testing/screenshot/WindowAttachment$NoopDetacher.classWindowAttachment.java
package com.facebook.testing.screenshot
com.facebook.testing.screenshot.WindowAttachment$NoopDetacher extends java.lang.Object implements com.facebook.testing.screenshot.WindowAttachment$Detacher {
private void ()
public void detach ()
void (com.facebook.testing.screenshot.WindowAttachment$1)
com.facebook.testing.screenshot.WindowAttachment$1 x0
}
com/facebook/testing/screenshot/RecordBuilder.classRecordBuilder.java
package com.facebook.testing.screenshot
public abstract com.facebook.testing.screenshot.RecordBuilder extends java.lang.Object {
public abstract com.facebook.testing.screenshot.RecordBuilder setName (java.lang.String)
public abstract com.facebook.testing.screenshot.RecordBuilder setDescription (java.lang.String)
public abstract com.facebook.testing.screenshot.RecordBuilder addExtra (java.lang.String, java.lang.String)
public abstract void record ()
}
com/facebook/testing/screenshot/BuildConfig.classBuildConfig.java
package com.facebook.testing.screenshot
public final com.facebook.testing.screenshot.BuildConfig extends java.lang.Object {
public static final boolean DEBUG
public static final String APPLICATION_ID
public static final String BUILD_TYPE
public static final String FLAVOR
public static final int VERSION_CODE
public static final String VERSION_NAME
public void ()
}
com/facebook/testing/screenshot/ViewHelpers.classViewHelpers.java
package com.facebook.testing.screenshot
public com.facebook.testing.screenshot.ViewHelpers extends java.lang.Object {
private static final int HEIGHT_LIMIT
private android.view.View mView
private int mWidthMeasureSpec
private int mHeightMeasureSpec
private boolean mGuessListViewHeight
private void (android.view.View)
android.view.View view
public static com.facebook.testing.screenshot.ViewHelpers setupView (android.view.View)
android.view.View view
public com.facebook.testing.screenshot.ViewHelpers$AfterLayout layout ()
private void layoutInternal ()
private void layoutWithHeightDetection ()
android.widget.ListView view
int bottom
public com.facebook.testing.screenshot.ViewHelpers setExactHeightPx (int)
int px
public com.facebook.testing.screenshot.ViewHelpers guessListViewHeight ()
private void validateHeight ()
public com.facebook.testing.screenshot.ViewHelpers setExactWidthPx (int)
int px
public com.facebook.testing.screenshot.ViewHelpers setExactWidthDp (int)
int dp
public com.facebook.testing.screenshot.ViewHelpers setExactHeightDp (int)
int dp
private void dispatchPreDraw (android.view.View)
int i
android.view.ViewGroup vg
android.view.View view
private void layoutView ()
private int dpToPx (int)
int dp
android.content.res.Resources resources
static android.view.View access$000 (com.facebook.testing.screenshot.ViewHelpers)
com.facebook.testing.screenshot.ViewHelpers x0
}
com/facebook/testing/screenshot/ScreenshotRunner.classScreenshotRunner.java
package com.facebook.testing.screenshot
public abstract com.facebook.testing.screenshot.ScreenshotRunner extends java.lang.Object {
public void ()
public static void onCreate (android.app.Instrumentation, android.os.Bundle)
android.app.Instrumentation instrumentation
android.os.Bundle arguments
com.facebook.testing.screenshot.internal.Registry registry
public static void onDestroy ()
}
com/facebook/testing/screenshot/WindowAttachment$RealDetacher.classWindowAttachment.java
package com.facebook.testing.screenshot
com.facebook.testing.screenshot.WindowAttachment$RealDetacher extends java.lang.Object implements com.facebook.testing.screenshot.WindowAttachment$Detacher {
private android.view.View mView
public void (android.view.View)
android.view.View view
public void detach ()
}
com/facebook/testing/screenshot/internal/
com/facebook/testing/screenshot/internal/AlbumImpl.classAlbumImpl.java
package com.facebook.testing.screenshot.internal
public com.facebook.testing.screenshot.internal.AlbumImpl extends java.lang.Object implements com.facebook.testing.screenshot.internal.Album {
private static final int COMPRESSION_QUALITY
private final java.io.File mDir
private final java.util.Set mAllNames
private int mTempFileNameCounter
private org.xmlpull.v1.XmlSerializer mXmlSerializer
private java.io.FileOutputStream mOutputStream
private com.facebook.testing.screenshot.internal.HostFileSender mHostFileSender
void (com.facebook.testing.screenshot.internal.ScreenshotDirectories, java.lang.String, com.facebook.testing.screenshot.internal.HostFileSender)
com.facebook.testing.screenshot.internal.ScreenshotDirectories screenshotDirectories
String name
com.facebook.testing.screenshot.internal.HostFileSender hostFileSender
public void flush ()
private void initXml ()
java.io.IOException e
private void endXml ()
java.io.IOException e
java.io.IOException e
android.graphics.Bitmap getScreenshot (java.lang.String)
String name
java.io.File getScreenshotFile (java.lang.String)
String name
java.io.File file
public java.lang.String writeBitmap (java.lang.String, int, int, android.graphics.Bitmap) throws java.io.IOException
String name
int tilei
int tilej
android.graphics.Bitmap bitmap
String tileName
java.io.File file
java.io.FileOutputStream outputStream
public void cleanup ()
String s
String[] arr$
int len$
int i$
private java.io.File getScreenshotFileInternal (java.lang.String)
String name
String fileName
java.io.File file
private java.io.File getViewHierarchyFile (java.lang.String)
String name
String fileName
public java.io.OutputStream openViewHierarchyFile (java.lang.String) throws java.io.IOException
String name
java.io.File file
java.io.OutputStream os
public void addRecord (com.facebook.testing.screenshot.internal.RecordBuilderImpl) throws java.io.IOException
java.util.Map$Entry entry
java.util.Iterator i$
com.facebook.testing.screenshot.internal.RecordBuilderImpl recordBuilder
com.facebook.testing.screenshot.internal.Tiling tiling
java.io.File viewHierarchy
private void saveTiling (com.facebook.testing.screenshot.internal.RecordBuilderImpl) throws java.io.IOException
java.io.File file
int j
int i
com.facebook.testing.screenshot.internal.RecordBuilderImpl recordBuilder
com.facebook.testing.screenshot.internal.Tiling tiling
private void addTextNode (java.lang.String, java.lang.String) throws java.io.IOException
String name
String value
public java.io.File getMetadataFile ()
private java.lang.String generateTileName (java.lang.String, int, int)
String name
int i
int j
public static com.facebook.testing.screenshot.internal.AlbumImpl createLocal (android.content.Context, java.lang.String)
android.content.Context context
String name
public static com.facebook.testing.screenshot.internal.AlbumImpl createStreaming (android.content.Context, java.lang.String, com.facebook.testing.screenshot.internal.HostFileSender)
android.content.Context context
String name
com.facebook.testing.screenshot.internal.HostFileSender hostFileSender
}
com/facebook/testing/screenshot/internal/TestNameDetector.classTestNameDetector.java
package com.facebook.testing.screenshot.internal
public com.facebook.testing.screenshot.internal.TestNameDetector extends java.lang.Object {
private static final String UNKNOWN
public static java.lang.String getTestClass ()
ClassNotFoundException c
StackTraceElement elem
StackTraceElement[] arr$
int len$
int i$
StackTraceElement[] stack
RuntimeException e
public static java.lang.String getTestName ()
StackTraceElement elem
StackTraceElement[] arr$
int len$
int i$
StackTraceElement[] stack
String testClass
String finalName
RuntimeException e
private static boolean isTestCase (java.lang.Class)
Class clazz
private static boolean isTestElement (java.lang.StackTraceElement) throws java.lang.ClassNotFoundException
Class clazz
java.lang.reflect.Method method
NoSuchMethodException e
StackTraceElement elem
private void ()
}
com/facebook/testing/screenshot/internal/ScreenshotImpl$2.classScreenshotImpl.java
package com.facebook.testing.screenshot.internal
com.facebook.testing.screenshot.internal.ScreenshotImpl$2 extends java.lang.Object implements java.util.concurrent.Callable {
final com.facebook.testing.screenshot.internal.RecordBuilderImpl val$recordBuilder
final com.facebook.testing.screenshot.internal.ScreenshotImpl this$0
void (com.facebook.testing.screenshot.internal.ScreenshotImpl, com.facebook.testing.screenshot.internal.RecordBuilderImpl)
public java.lang.Void call ()
public volatile java.lang.Object call () throws java.lang.Exception
}
com/facebook/testing/screenshot/internal/ScreenshotImpl$1.classScreenshotImpl.java
package com.facebook.testing.screenshot.internal
com.facebook.testing.screenshot.internal.ScreenshotImpl$1 extends java.lang.Object implements java.util.concurrent.Callable {
final android.app.Activity val$activity
final com.facebook.testing.screenshot.internal.ScreenshotImpl this$0
void (com.facebook.testing.screenshot.internal.ScreenshotImpl, android.app.Activity)
public com.facebook.testing.screenshot.internal.RecordBuilderImpl call ()
public volatile java.lang.Object call () throws java.lang.Exception
}
com/facebook/testing/screenshot/internal/Tiling.classTiling.java
package com.facebook.testing.screenshot.internal
public com.facebook.testing.screenshot.internal.Tiling extends java.lang.Object {
private int mWidth
private int mHeight
private String[][] mContents
public void (int, int)
int width
int height
public int getHeight ()
public int getWidth ()
public java.lang.String getAt (int, int)
int x
int y
public void setAt (int, int, java.lang.String)
int x
int y
String name
public static com.facebook.testing.screenshot.internal.Tiling singleTile (java.lang.String)
String name
com.facebook.testing.screenshot.internal.Tiling ret
}
com/facebook/testing/screenshot/internal/RecordBuilderImpl.classRecordBuilderImpl.java
package com.facebook.testing.screenshot.internal
public com.facebook.testing.screenshot.internal.RecordBuilderImpl extends java.lang.Object implements com.facebook.testing.screenshot.RecordBuilder {
private final com.facebook.testing.screenshot.internal.ScreenshotImpl mScreenshotImpl
private String mDescription
private String mName
private String mTestClass
private String mTestName
private String mError
private com.facebook.testing.screenshot.internal.Tiling mTiling
private android.view.View mView
private final java.util.Map mExtras
void (com.facebook.testing.screenshot.internal.ScreenshotImpl)
com.facebook.testing.screenshot.internal.ScreenshotImpl screenshotImpl
public com.facebook.testing.screenshot.internal.RecordBuilderImpl setDescription (java.lang.String)
String description
public java.lang.String getDescription ()
public com.facebook.testing.screenshot.internal.RecordBuilderImpl setName (java.lang.String)
String name
java.nio.charset.CharsetEncoder charsetEncoder
public java.lang.String getName ()
public com.facebook.testing.screenshot.internal.RecordBuilderImpl setTestName (java.lang.String)
String testName
public java.lang.String getTestName ()
public com.facebook.testing.screenshot.internal.RecordBuilderImpl setTestClass (java.lang.String)
String testClass
public java.lang.String getTestClass ()
public android.graphics.Bitmap getBitmap ()
public boolean hasExplicitName ()
com.facebook.testing.screenshot.internal.RecordBuilderImpl setError (java.lang.String)
String error
public java.lang.String getError ()
public void record ()
void checkState ()
int j
int i
com.facebook.testing.screenshot.internal.RecordBuilderImpl setView (android.view.View)
android.view.View view
public android.view.View getView ()
com.facebook.testing.screenshot.internal.RecordBuilderImpl setTiling (com.facebook.testing.screenshot.internal.Tiling)
com.facebook.testing.screenshot.internal.Tiling tiling
public com.facebook.testing.screenshot.internal.Tiling getTiling ()
public com.facebook.testing.screenshot.internal.RecordBuilderImpl addExtra (java.lang.String, java.lang.String)
String key
String value
public java.util.Map getExtras ()
public volatile com.facebook.testing.screenshot.RecordBuilder addExtra (java.lang.String, java.lang.String)
String x0
String x1
public volatile com.facebook.testing.screenshot.RecordBuilder setDescription (java.lang.String)
String x0
public volatile com.facebook.testing.screenshot.RecordBuilder setName (java.lang.String)
String x0
}
com/facebook/testing/screenshot/internal/Registry.classRegistry.java
package com.facebook.testing.screenshot.internal
public com.facebook.testing.screenshot.internal.Registry extends java.lang.Object {
public android.app.Instrumentation instrumentation
public android.os.Bundle arguments
private static com.facebook.testing.screenshot.internal.Registry sRegistry
public void ()
public static com.facebook.testing.screenshot.internal.Registry getRegistry ()
public static void clear ()
}
com/facebook/testing/screenshot/internal/HostFileSender.classHostFileSender.java
package com.facebook.testing.screenshot.internal
public com.facebook.testing.screenshot.internal.HostFileSender extends java.lang.Object {
final int QUEUE_SIZE
private final java.util.List mQueue
private android.app.Instrumentation mInstrumentation
private android.os.Bundle mArguments
public void (android.app.Instrumentation, android.os.Bundle)
android.app.Instrumentation instrumentation
android.os.Bundle arguments
public synchronized void send (java.io.File)
java.io.File file
android.os.Bundle bundle
public void flush ()
InterruptedException e
synchronized void updateQueue ()
java.io.File next
java.util.Iterator iterator
synchronized int getQueueSize ()
private synchronized void waitForQueue ()
InterruptedException e
private boolean isDiscardMode ()
private boolean isHostFileSenderSupported ()
}
com/facebook/testing/screenshot/internal/ScreenshotImpl$3.classScreenshotImpl.java
package com.facebook.testing.screenshot.internal
com.facebook.testing.screenshot.internal.ScreenshotImpl$3 extends java.lang.Object implements java.lang.Runnable {
final Object[] val$ret
final java.util.concurrent.Callable val$callable
final Exception[] val$e
final Object val$lock
final com.facebook.testing.screenshot.internal.ScreenshotImpl this$0
void (com.facebook.testing.screenshot.internal.ScreenshotImpl, java.lang.Object[], java.util.concurrent.Callable, java.lang.Exception[], java.lang.Object)
public void run ()
Exception ee
}
com/facebook/testing/screenshot/internal/ScreenshotImpl.classScreenshotImpl.java
package com.facebook.testing.screenshot.internal
public com.facebook.testing.screenshot.internal.ScreenshotImpl extends java.lang.Object {
private static final int TILING_THRESHOLD
private final com.facebook.testing.screenshot.internal.Album mAlbum
private int mTileSize
private android.graphics.Bitmap mBitmap
private android.graphics.Canvas mCanvas
private com.facebook.testing.screenshot.internal.ViewHierarchy mViewHierarchy
private boolean mEnableBitmapReconfigure
private static com.facebook.testing.screenshot.internal.ScreenshotImpl sInstance
public void setTileSize (int)
int tileSize
void setEnableBitmapReconfigure (boolean)
boolean enableBitmapReconfigure
public int getTileSize ()
void (com.facebook.testing.screenshot.internal.Album, com.facebook.testing.screenshot.internal.ViewHierarchy)
com.facebook.testing.screenshot.internal.Album album
com.facebook.testing.screenshot.internal.ViewHierarchy viewHierarchy
public com.facebook.testing.screenshot.internal.RecordBuilderImpl snapActivity (android.app.Activity)
android.app.Activity activity
android.view.View rootView
public com.facebook.testing.screenshot.internal.RecordBuilderImpl snap (android.view.View)
android.view.View measuredView
com.facebook.testing.screenshot.internal.RecordBuilderImpl recordBuilder
public void flush ()
private void storeBitmap (com.facebook.testing.screenshot.internal.RecordBuilderImpl)
int j
int i
int width
int height
int maxi
int maxj
java.io.IOException e
com.facebook.testing.screenshot.internal.RecordBuilderImpl recordBuilder
android.view.View measuredView
int tileSize
com.facebook.testing.screenshot.WindowAttachment$Detacher detacher
private void drawTile (android.view.View, int, int, com.facebook.testing.screenshot.internal.RecordBuilderImpl) throws java.io.IOException
android.view.View measuredView
int i
int j
com.facebook.testing.screenshot.internal.RecordBuilderImpl recordBuilder
int width
int height
int left
int top
int right
int bottom
String tempName
private void lazyInitBitmap ()
private void clearCanvas (android.graphics.Canvas)
android.graphics.Canvas canvas
private void drawClippedView (android.view.View, int, int, android.graphics.Canvas)
android.view.View view
int left
int top
android.graphics.Canvas canvas
private static com.facebook.testing.screenshot.internal.ScreenshotImpl create (android.content.Context, android.os.Bundle, com.facebook.testing.screenshot.internal.HostFileSender)
android.content.Context context
android.os.Bundle args
com.facebook.testing.screenshot.internal.HostFileSender hostFileSender
String mode
com.facebook.testing.screenshot.internal.Album album
public void record (com.facebook.testing.screenshot.internal.RecordBuilderImpl)
Throwable x2
Throwable x2
java.io.OutputStream viewHieararchyDump
java.io.IOException e
com.facebook.testing.screenshot.internal.RecordBuilderImpl recordBuilder
android.graphics.Bitmap getBitmap (com.facebook.testing.screenshot.internal.RecordBuilderImpl)
com.facebook.testing.screenshot.internal.RecordBuilderImpl recordBuilder
android.view.View view
android.graphics.Bitmap bmp
com.facebook.testing.screenshot.WindowAttachment$Detacher detacher
private boolean isUiThread ()
private java.lang.Object runCallableOnUiThread (java.util.concurrent.Callable)
InterruptedException ee
java.util.concurrent.Callable callable
Object[] ret
Exception[] e
Object lock
android.os.Handler handler
public static com.facebook.testing.screenshot.internal.ScreenshotImpl getInstance ()
android.app.Instrumentation instrumentation
android.os.Bundle arguments
com.facebook.testing.screenshot.internal.HostFileSender hostFileSender
public static boolean hasBeenCreated ()
static void access$000 (com.facebook.testing.screenshot.internal.ScreenshotImpl, com.facebook.testing.screenshot.internal.RecordBuilderImpl)
com.facebook.testing.screenshot.internal.ScreenshotImpl x0
com.facebook.testing.screenshot.internal.RecordBuilderImpl x1
}
com/facebook/testing/screenshot/internal/ViewHierarchy.classViewHierarchy.java
package com.facebook.testing.screenshot.internal
public com.facebook.testing.screenshot.internal.ViewHierarchy extends java.lang.Object {
public void ()
public void deflate (android.view.View, java.io.OutputStream) throws java.io.IOException
javax.xml.transform.dom.DOMSource source
javax.xml.transform.TransformerFactory transformerFactory
javax.xml.transform.Transformer transformer
javax.xml.transform.stream.StreamResult result
javax.xml.transform.TransformerException e
android.view.View view
java.io.OutputStream out
org.w3c.dom.Document doc
private org.w3c.dom.Document deflateToDocument (android.view.View)
javax.xml.parsers.ParserConfigurationException e
android.view.View view
org.w3c.dom.Document doc
private org.w3c.dom.Element deflateRelative (android.view.View, android.graphics.Point, org.w3c.dom.Document)
org.w3c.dom.Element child
int i
android.graphics.Point myTopLeft
android.view.ViewGroup vg
android.view.View view
android.graphics.Point topLeft
org.w3c.dom.Document doc
org.w3c.dom.Element el
android.graphics.Rect rect
org.w3c.dom.Element children
private void addTextNode (org.w3c.dom.Element, java.lang.String, java.lang.String)
org.w3c.dom.Element parent
String name
String value
org.w3c.dom.Element elem
}
com/facebook/testing/screenshot/internal/Album.classAlbum.java
package com.facebook.testing.screenshot.internal
public abstract com.facebook.testing.screenshot.internal.Album extends java.lang.Object {
public abstract java.lang.String writeBitmap (java.lang.String, int, int, android.graphics.Bitmap) throws java.io.IOException
public abstract void flush ()
public abstract void cleanup ()
public abstract java.io.OutputStream openViewHierarchyFile (java.lang.String) throws java.io.IOException
public abstract void addRecord (com.facebook.testing.screenshot.internal.RecordBuilderImpl) throws java.io.IOException
}
com/facebook/testing/screenshot/internal/ScreenshotDirectories.classScreenshotDirectories.java
package com.facebook.testing.screenshot.internal
com.facebook.testing.screenshot.internal.ScreenshotDirectories extends java.lang.Object {
private android.content.Context mContext
public void (android.content.Context)
android.content.Context context
public java.io.File get (java.lang.String)
String type
private java.io.File getSdcardDir (java.lang.String)
String type
String parent
String child
java.io.File dir
private java.io.File getDataDir (java.lang.String)
String type
java.io.File dir
private void setWorldWriteable (java.io.File)
java.io.File dir
}