public class DGuiObjectRecognition
extends java.lang.Object
TOPLEVEL_WINDOW_RECS_UC
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
ARRAY_PROP_ABSLISTVIEW
ARRAY_PROP_ABSLISTVIEW contains all property names should be returned for AbsListView object.
|
static java.lang.String[] |
ARRAY_PROP_ACCESSIBLITY
ARRAY_PROP_ACCESSIBLITY contains all property names should be returned for object containing AccessibilityNodeInfo.
|
static java.lang.String[] |
ARRAY_PROP_ACTIONBAR
ARRAY_PROP_ACTIONBAR contains all property names should be returned for ActionBar object.
|
static java.lang.String[] |
ARRAY_PROP_ACTIONBAR_TAB
ARRAY_PROP_ACTIONBAR_TAB contains all property names should be returned for ActionBar.Tab object.
|
static java.lang.String[] |
ARRAY_PROP_ACTIVITY
ARRAY_PROP_ACTIVITY contains all property names should be returned for Activity object.
|
static java.lang.String[] |
ARRAY_PROP_ADAPTER
ARRAY_PROP_ADAPTER contains all property names should be returned for Adapter object.
|
static java.lang.String[] |
ARRAY_PROP_ADAPTERVIEW
ARRAY_PROP_ADAPTERVIEW contains all property names should be returned for AdapterView object.
|
static java.lang.String[] |
ARRAY_PROP_DISPLAY
ARRAY_PROP_DISPLAY contains all property names should be returned for Display object.
|
static java.lang.String[] |
ARRAY_PROP_LISTVIEW
ARRAY_PROP_LISTVIEW contains all property names should be returned for ListView object.
|
static java.lang.String[] |
ARRAY_PROP_PROGRESSDIALOG
ARRAY_PROP_DISPLAY contains all property names should be returned for Display object.
|
static java.lang.String[] |
ARRAY_PROP_SPINNER |
static java.lang.String[] |
ARRAY_PROP_SWITCH |
static java.lang.String[] |
ARRAY_PROP_TEXTVIEW
ARRAY_PROP_TEXTVIEW contains all property names should be returned for TextView object.
|
static java.lang.String[] |
ARRAY_PROP_TOGGLEBUTTON |
static java.lang.String[] |
ARRAY_PROP_VIEW
ARRAY_PROP_VIEW contains all property names should be returned for View object.
|
static java.lang.String[] |
ARRAY_PROP_VIEWGROUP
ARRAY_PROP_VIEWGROUP contains all property names should be returned for ViewGroup object.
|
static java.lang.String[] |
ARRAY_PROP_WINDOW
ARRAY_PROP_WINDOW contains all property names should be returned for Window object.
|
static java.lang.String[] |
PREFIX_PROP_ARRAY |
static java.lang.String |
PREFIX_PROP_GET
The possible prefix for the name of accessory method
|
static java.lang.String |
PREFIX_PROP_HAS |
static java.lang.String |
PREFIX_PROP_IS |
static java.lang.String |
PROP_ACCESSIBLEBOUNDSINPARENT |
static java.lang.String |
PROP_ACCESSIBLEBOUNDSINSCREEN |
static java.lang.String |
PROP_ACCESSIBLECHILDCOUNT |
static java.lang.String |
PROP_ACCESSIBLECONTENTDESCRIPTION |
static java.lang.String |
PROP_ACCESSIBLEISACCESSIBILITYFOCUSED |
static java.lang.String |
PROP_ACCESSIBLEISCHECKABLE |
static java.lang.String |
PROP_ACCESSIBLEISCHECKED |
static java.lang.String |
PROP_ACCESSIBLEISCLICKABLE |
static java.lang.String |
PROP_ACCESSIBLEISENABLED |
static java.lang.String |
PROP_ACCESSIBLEISFOCUSABLE |
static java.lang.String |
PROP_ACCESSIBLEISFOCUSED |
static java.lang.String |
PROP_ACCESSIBLEISLONGCLICKABLE |
static java.lang.String |
PROP_ACCESSIBLEISPASSWORD |
static java.lang.String |
PROP_ACCESSIBLEISSCROLLABLE |
static java.lang.String |
PROP_ACCESSIBLEISSELECTED |
static java.lang.String |
PROP_ACCESSIBLEISVISIBLETOUSER |
static java.lang.String |
PROP_ACCESSIBLEPACKAGENAME |
static java.lang.String |
PROP_ACCESSIBLEPREFIX |
static java.lang.String |
PROP_ACCESSIBLETEXT |
static java.lang.String |
PROP_ACCESSIBLEWINDOWID |
static java.lang.String |
PROP_ALPHA |
static java.lang.String |
PROP_APPLICATION |
static java.lang.String |
PROP_AREALLITEMSENABLED |
static java.lang.String |
PROP_AUTOLINKMASK |
static java.lang.String |
PROP_BASELINE |
static java.lang.String |
PROP_BOTTOM |
static java.lang.String |
PROP_CACHECOLORHINT |
static java.lang.String |
PROP_CALLINGACTIVITY |
static java.lang.String |
PROP_CALLINGPACKAGE |
static java.lang.String |
PROP_CANSCROLLDOWN |
static java.lang.String |
PROP_CANSCROLLLEFT |
static java.lang.String |
PROP_CANSCROLLRIGHT |
static java.lang.String |
PROP_CANSCROLLUP |
static java.lang.String |
PROP_CHECKEDITEMCOUNT |
static java.lang.String |
PROP_CHECKEDITEMIDS |
static java.lang.String |
PROP_CHECKEDITEMPOSITION |
static java.lang.String |
PROP_CHECKEDITEMPOSITIONS |
static java.lang.String |
PROP_CHECKITEMIDS |
static java.lang.String |
PROP_CHILDCOUNT |
static java.lang.String |
PROP_CHOICEMODE |
static java.lang.String |
PROP_CLASSNAME |
static java.lang.String |
PROP_COMPONENTNAME |
static java.lang.String |
PROP_COMPOUNDDRAWABLEPADDING |
static java.lang.String |
PROP_COMPOUNDPADDINGBOTTOM |
static java.lang.String |
PROP_COMPOUNDPADDINGLEFT |
static java.lang.String |
PROP_COMPOUNDPADDINGRIGHT |
static java.lang.String |
PROP_COMPOUNDPADDINGTOP |
static java.lang.String |
PROP_CONTENTDESCRIPTION |
static java.lang.String |
PROP_COUNT |
static java.lang.String |
PROP_CURRENTHINTTEXTCOLOR |
static java.lang.String |
PROP_CURRENTTEXTCOLOR |
static java.lang.String |
PROP_CURSORVISIBLE |
static java.lang.String |
PROP_DIDTOUCHFOCUSSELECT |
static java.lang.String |
PROP_DISPLAYID |
static java.lang.String |
PROP_DISPLAYOPTIONS |
static java.lang.String |
PROP_DIVIDERHEIGHT |
static java.lang.String |
PROP_DRAWINGCACHEBACKGROUNDCOLOR |
static java.lang.String |
PROP_DRAWINGCACHEQUALITY |
static java.lang.String |
PROP_DRAWINGRECT |
static java.lang.String |
PROP_DRAWINGTIME |
static java.lang.String |
PROP_DROPDOWNHORIZONTALOFFSET
PROP_ABSSPINNER_COUNT is redundancy with AdapterView's PROP_COUNT,
as AbsSpinner is subclass of AdapterView, so we don't need to add this
property name to
getObjectPropertyNames(Object) again for AbsSpinner |
static java.lang.String |
PROP_DROPDOWNVERTICALOFFSET |
static java.lang.String |
PROP_DROPDOWNWIDTH |
static java.lang.String |
PROP_EXTENDEDPADDINGBOTTOM |
static java.lang.String |
PROP_EXTENDEDPADDINGTOP |
static java.lang.String |
PROP_FILTERTOUCHESWHENOBSCURED |
static java.lang.String |
PROP_FIRSTVISIBLEPOSITION |
static java.lang.String |
PROP_FOCUSEDRECT |
static java.lang.String |
PROP_FOOTERVIEWSCOUNT |
static java.lang.String |
PROP_FREEZETEXT |
static java.lang.String |
PROP_GLOBALVISIBLERECT |
static java.lang.String |
PROP_GRAVITY |
static java.lang.String |
PROP_HASCHILDREN |
static java.lang.String |
PROP_HASFOCUS |
static java.lang.String |
PROP_HASFOCUSABLE |
static java.lang.String |
PROP_HASONCLICKLISTENERS
Don't put PROP_HASONCLICKLISTENERS in ARRAY_PROP_VIEW, whether return
PROP_HASONCLICKLISTENERS as View's property name will depend on whether
View object has method "hasOnClickListeners()" or not.
|
static java.lang.String |
PROP_HASOVERLAPPINGRENDERING |
static java.lang.String |
PROP_HASSELECTION |
static java.lang.String |
PROP_HASSTABLEIDS |
static java.lang.String |
PROP_HASTEXTFILTER |
static java.lang.String |
PROP_HASWINDOWFOCUS |
static java.lang.String |
PROP_HEADERVIEWSCOUNT |
static java.lang.String |
PROP_HEIGHT |
static java.lang.String |
PROP_HIGHLIGHTCOLOR |
static java.lang.String |
PROP_HINT |
static java.lang.String |
PROP_HITRECT |
static java.lang.String |
PROP_HORIZONTALFADINGEDGELENGTH |
static java.lang.String |
PROP_ID |
static java.lang.String |
PROP_IMEACTIONID |
static java.lang.String |
PROP_IMEACTIONLABEL |
static java.lang.String |
PROP_IMEOPTIONS |
static java.lang.String |
PROP_INCLUDEDFONTPADDING |
static java.lang.String |
PROP_INPUTMETHODTARGET |
static java.lang.String |
PROP_INPUTTYPE |
static java.lang.String |
PROP_ISACTIVATED |
static java.lang.String |
PROP_ISACTIVE |
static java.lang.String |
PROP_ISALWAYSDRAWNWITHCACHEENABLED |
static java.lang.String |
PROP_ISANIMATIONCACHEENABLED |
static java.lang.String |
PROP_ISCHANGINGCONFIGURATIONS |
static java.lang.String |
PROP_ISCHECKED |
static java.lang.String |
PROP_ISCHILD |
static java.lang.String |
PROP_ISCLICKABLE |
static java.lang.String |
PROP_ISDIRTY |
static java.lang.String |
PROP_ISDRAWINGCACHEENABLED |
static java.lang.String |
PROP_ISDUPLICATEPARENTSTATEENABLED |
static java.lang.String |
PROP_ISEMPTY |
static java.lang.String |
PROP_ISENABLED |
static java.lang.String |
PROP_ISFASTSCROLLALWAYSVISIBLE |
static java.lang.String |
PROP_ISFASTSCROLLENABLED |
static java.lang.String |
PROP_ISFINISHING |
static java.lang.String |
PROP_ISFLOATING |
static java.lang.String |
PROP_ISFOCUSABLE |
static java.lang.String |
PROP_ISFOCUSABLEINTOUCHMODE |
static java.lang.String |
PROP_ISFOCUSED |
static java.lang.String |
PROP_ISHAPTICFEEDBACKENABLED |
static java.lang.String |
PROP_ISHARDWAREACCELERATED |
static java.lang.String |
PROP_ISHORIZONTALFADINGEDGEENABLED |
static java.lang.String |
PROP_ISHORIZONTALSCROLLBARENABLED |
static java.lang.String |
PROP_ISHOVERED |
static java.lang.String |
PROP_ISINDETERMINATE |
static java.lang.String |
PROP_ISINEDITMODE |
static java.lang.String |
PROP_ISINTOUCHMODE |
static java.lang.String |
PROP_ISLAYOUTREQUESTED |
static java.lang.String |
PROP_ISLONGCLICKABLE |
static java.lang.String |
PROP_ISMOTIONEVENTSPLITTINGENABLED |
static java.lang.String |
PROP_ISOPAQUE |
static java.lang.String |
PROP_ISPRESSED |
static java.lang.String |
PROP_ISSAVEENABLED |
static java.lang.String |
PROP_ISSAVEFROMPARENTENABLED |
static java.lang.String |
PROP_ISSCROLLBARFADINGENABLED |
static java.lang.String |
PROP_ISSCROLLINGCACHEENABLED |
static java.lang.String |
PROP_ISSELECTED |
static java.lang.String |
PROP_ISSHOWING |
static java.lang.String |
PROP_ISSHOWN |
static java.lang.String |
PROP_ISSMOOTHSCROLLBARENABLED |
static java.lang.String |
PROP_ISSOUNDEFFECTSENABLED |
static java.lang.String |
PROP_ISSTACKFROMBOTTOM |
static java.lang.String |
PROP_ISTASKROOT |
static java.lang.String |
PROP_ISTEXTFILTERENABLED |
static java.lang.String |
PROP_ISVERTICALFADINGEDGEENABLED |
static java.lang.String |
PROP_ISVERTICALSCROLLBARENABLED |
static java.lang.String |
PROP_ITEMCOUNT |
static java.lang.String |
PROP_ITEMIDS |
static java.lang.String |
PROP_ITEMS |
static java.lang.String |
PROP_ITEMSCANFOCUS |
static java.lang.String |
PROP_KEEPSCREENON |
static java.lang.String |
PROP_LASTVISIBLEPOSITION |
static java.lang.String |
PROP_LAYERTYPE |
static java.lang.String |
PROP_LAYOUTPARAMS |
static java.lang.String |
PROP_LEFT |
static java.lang.String |
PROP_LENGTH |
static java.lang.String |
PROP_LINECOUNT |
static java.lang.String |
PROP_LINEHEIGHT |
static java.lang.String |
PROP_LINESPACINGEXTRA |
static java.lang.String |
PROP_LINESPACINGMULTIPLIER |
static java.lang.String |
PROP_LINKSCLICKABLE |
static java.lang.String |
PROP_LISTPADDINGBOTTOM |
static java.lang.String |
PROP_LISTPADDINGLEFT |
static java.lang.String |
PROP_LISTPADDINGRIGHT |
static java.lang.String |
PROP_LISTPADDINGTOP |
static java.lang.String |
PROP_LOCALCLASSNAME |
static java.lang.String |
PROP_LOCALVISIBLERECT |
static java.lang.String |
PROP_LOCATIONINWINDOW |
static java.lang.String |
PROP_LOCATIONONSCREEN |
static java.lang.String |
PROP_MARQUEEREPEATLIMIT |
static java.lang.String |
PROP_MAX |
static java.lang.String |
PROP_MAXHEIGHT |
static java.lang.String |
PROP_MAXLINES |
static java.lang.String |
PROP_MAXSCROLLAMOUNT |
static java.lang.String |
PROP_MAXWIDTH |
static java.lang.String |
PROP_MINHEIGHT |
static java.lang.String |
PROP_MINLINES |
static java.lang.String |
PROP_MINWIDTH |
static java.lang.String |
PROP_NAVIGATIONITEMCOUNT |
static java.lang.String |
PROP_NAVIGATIONMODE |
static java.lang.String |
PROP_NEXTFOCUSDOWNID |
static java.lang.String |
PROP_NEXTFOCUSFORWARDID |
static java.lang.String |
PROP_NEXTFOCUSLEFTID |
static java.lang.String |
PROP_NEXTFOCUSRIGHTID |
static java.lang.String |
PROP_NEXTFOCUSUPID |
static java.lang.String |
PROP_ORIENTATION |
static java.lang.String |
PROP_OVERSCROLLMODE |
static java.lang.String |
PROP_PADDINGBOTTOM |
static java.lang.String |
PROP_PADDINGLEFT |
static java.lang.String |
PROP_PADDINGRIGHT |
static java.lang.String |
PROP_PADDINGTOP |
static java.lang.String |
PROP_PIVOTX |
static java.lang.String |
PROP_PIVOTY |
static java.lang.String |
PROP_PIXELFORMAT |
static java.lang.String |
PROP_POSITION |
static java.lang.String |
PROP_PROGRESS |
static java.lang.String |
PROP_PROMPT |
static java.lang.String |
PROP_REFRESHRATE |
static java.lang.String |
PROP_REQUESTEDORIENTATION |
static java.lang.String |
PROP_RIGHT |
static java.lang.String |
PROP_ROTATION |
static java.lang.String |
PROP_ROTATIONX |
static java.lang.String |
PROP_ROTATIONY |
static java.lang.String |
PROP_SCALEX |
static java.lang.String |
PROP_SCALEY |
static java.lang.String |
PROP_SCROLLBARSTYLE |
static java.lang.String |
PROP_SCROLLX |
static java.lang.String |
PROP_SCROLLY |
static java.lang.String |
PROP_SECONDARYPROGRESS |
static java.lang.String |
PROP_SELECTEDITEMID |
static java.lang.String |
PROP_SELECTEDITEMPOSITION |
static java.lang.String |
PROP_SELECTEDNAVIGATIONINDEX |
static java.lang.String |
PROP_SELECTEDTAB |
static java.lang.String |
PROP_SELECTIONEND |
static java.lang.String |
PROP_SELECTIONSTART |
static java.lang.String |
PROP_SHOULDDELAYCHILDPRESSEDSTATE |
static java.lang.String |
PROP_SOLIDCOLOR |
static java.lang.String |
PROP_SUBTITLE |
static java.lang.String |
PROP_SUGGESTIONSENABLED |
static java.lang.String |
PROP_SWITCH_COMPOUNDPADDINGRIGHT |
static java.lang.String |
PROP_SWITCHMINWIDTH |
static java.lang.String |
PROP_SWITCHPADDING |
static java.lang.String |
PROP_SYSTEMUIVISIBILITY |
static java.lang.String |
PROP_TABCOUNT |
static java.lang.String |
PROP_TAG |
static java.lang.String |
PROP_TASKID |
static java.lang.String |
PROP_TEXT |
static java.lang.String |
PROP_TEXTFILTER |
static java.lang.String |
PROP_TEXTOFF |
static java.lang.String |
PROP_TEXTON |
static java.lang.String |
PROP_TEXTSCALEX |
static java.lang.String |
PROP_TEXTSELECTABLE |
static java.lang.String |
PROP_TEXTSIZE |
static java.lang.String |
PROP_THUMBTEXTPADDING |
static java.lang.String |
PROP_TITLE |
static java.lang.String |
PROP_TITLECOLOR |
static java.lang.String |
PROP_TOGGLEBUTTON_TEXTOFF |
static java.lang.String |
PROP_TOGGLEBUTTON_TEXTON |
static java.lang.String |
PROP_TOP |
static java.lang.String |
PROP_TOTALPADDINGBOTTOM |
static java.lang.String |
PROP_TOTALPADDINGLEFT |
static java.lang.String |
PROP_TOTALPADDINGRIGHT |
static java.lang.String |
PROP_TOTALPADDINGTOP |
static java.lang.String |
PROP_TRANSCRIPTMODE |
static java.lang.String |
PROP_TRANSLATIONX |
static java.lang.String |
PROP_TRANSLATIONY |
static java.lang.String |
PROP_VERTICALFADINGEDGELENGTH |
static java.lang.String |
PROP_VERTICALSCROLLBARPOSITION |
static java.lang.String |
PROP_VERTICALSCROLLBARWIDTH |
static java.lang.String |
PROP_VIEWTYPECOUNT |
static java.lang.String |
PROP_VISIBILITY |
static java.lang.String |
PROP_VISIBLEITEMCOUNT |
static java.lang.String |
PROP_VISIBLEITEMS |
static java.lang.String |
PROP_WIDTH |
static java.lang.String |
PROP_WILLNOTCACHEDRAWING |
static java.lang.String |
PROP_WILLNOTDRAW |
static java.lang.String |
PROP_WINDOWVISIBILITY |
static java.lang.String |
PROP_WINDOWVISIBLEDISPLAYFRAME |
static java.lang.String |
PROP_X |
static java.lang.String |
PROP_Y |
(package private) static java.lang.String |
TAG |
(package private) static DSAFSTestRunner |
testrunner |
static java.lang.String[] |
TOPLEVEL_WINDOW_RECS_UC
Array of known top-level window recognition strings
|
Constructor and Description |
---|
DGuiObjectRecognition() |
Modifier and Type | Method and Description |
---|---|
static java.util.Vector<java.lang.String> |
addAdapterPropertyNames(java.util.Vector<java.lang.String> names,
android.widget.Adapter adapter)
Add Adapter subclass property names to the list of available object property names.
|
static java.lang.String |
convertArrayToDelimitedString(java.util.ArrayList list)
Returning a String of ArrayList items using String.valueOf(Object) following these guidelines:
|
(package private) static void |
debug(java.lang.String message) |
static java.lang.String |
getAdapterProperty(android.widget.Adapter adapter,
java.lang.String propname)
Add Adapter subclass property names to the list of available object property names.
|
static java.lang.Object[] |
getChildren(java.lang.Object aparent) |
static android.app.Application |
getForegroundApplication() |
static java.lang.String |
getObjectCaption(java.lang.Object obj)
getTitle if Object is an Activity.
|
static java.lang.String |
getObjectClassName(java.lang.Object obj) |
static int |
getObjectId(java.lang.Object obj) |
static java.lang.String |
getObjectIdString(java.lang.Object obj) |
static boolean |
getObjectIsEnabled(java.lang.Object obj) |
static boolean |
getObjectIsShowing(java.lang.Object obj) |
static boolean |
getObjectIsValid(java.lang.Object obj) |
static java.lang.String |
getObjectName(java.lang.Object obj)
Android Views do not support Names, apparently.
|
static java.lang.String |
getObjectProperty(java.lang.Object obj,
java.lang.String propname)
GuiObjectRecognition.getObjectProperty (obj, propname)
|
static java.lang.String[] |
getObjectPropertyNames(java.lang.Object obj) |
static java.lang.String[] |
getObjectSuperclassNames(java.lang.Object obj)
Get the full class hierarchy of superclass classnames, begin from java.lang.Object.
|
static java.lang.String |
getObjectText(java.lang.Object obj) |
static java.util.List<java.lang.String> |
getPossiblePropertyAccessorMethodsName(java.lang.String propertyName)
Purpose: Get the name of the possible property accessory methods, for example isXXX, getXXX, hasXXX
and return them within a List. |
static java.lang.String |
getPropertyByReflection(java.lang.Object obj,
java.lang.String property,
boolean includingSuperClass)
Purpose: Try to get the value of a property for an object.
|
static java.lang.Object[] |
getTopLevelWindows()
Returns the one topmost parent View of the View that is currently focused.
|
static boolean |
hasChildren(java.lang.Object view) |
static boolean |
isTopLevelPopupContainer(java.lang.Object obj)
Currently not implemented...
|
static boolean |
isTopLevelWindowRecognition(java.lang.String objstring)
Initial implementation to detect that a recognition string snippet is likely pointing to
the top-level window itself and not a child of the top-level window.
|
static void |
setSAFSTestRunner(DSAFSTestRunner _testrunner)
Must be set prior to calling debug or any of the static "get" functions.
|
static java.lang.String TAG
static DSAFSTestRunner testrunner
public static final java.lang.String[] TOPLEVEL_WINDOW_RECS_UC
public static final java.lang.String PREFIX_PROP_GET
public static final java.lang.String PREFIX_PROP_IS
public static final java.lang.String PREFIX_PROP_HAS
public static final java.lang.String[] PREFIX_PROP_ARRAY
public static final java.lang.String PROP_CLASSNAME
public static final java.lang.String PROP_CONTENTDESCRIPTION
public static final java.lang.String PROP_GRAVITY
public static final java.lang.String PROP_HASWINDOWFOCUS
public static final java.lang.String PROP_HEIGHT
public static final java.lang.String PROP_LAYOUTPARAMS
public static final java.lang.String PROP_ROTATION
public static final java.lang.String PROP_TEXT
public static final java.lang.String PROP_TITLE
public static final java.lang.String PROP_WIDTH
public static final java.lang.String PROP_HASCHILDREN
public static final java.lang.String PROP_ISFLOATING
public static final java.lang.String PROP_ISACTIVE
public static final java.lang.String[] ARRAY_PROP_WINDOW
public static final java.lang.String PROP_APPLICATION
public static final java.lang.String PROP_CALLINGACTIVITY
public static final java.lang.String PROP_CALLINGPACKAGE
public static final java.lang.String PROP_COMPONENTNAME
public static final java.lang.String PROP_LOCALCLASSNAME
public static final java.lang.String PROP_REQUESTEDORIENTATION
public static final java.lang.String PROP_TASKID
public static final java.lang.String PROP_TITLECOLOR
public static final java.lang.String PROP_ISCHANGINGCONFIGURATIONS
public static final java.lang.String PROP_ISCHILD
public static final java.lang.String PROP_ISFINISHING
public static final java.lang.String PROP_ISTASKROOT
public static final java.lang.String[] ARRAY_PROP_ACTIVITY
public static final java.lang.String PROP_DISPLAYOPTIONS
public static final java.lang.String PROP_ISSHOWING
public static final java.lang.String PROP_NAVIGATIONITEMCOUNT
public static final java.lang.String PROP_NAVIGATIONMODE
public static final java.lang.String PROP_SELECTEDTAB
public static final java.lang.String PROP_SELECTEDNAVIGATIONINDEX
public static final java.lang.String PROP_SUBTITLE
public static final java.lang.String PROP_TABCOUNT
public static final java.lang.String[] ARRAY_PROP_ACTIONBAR
public static final java.lang.String PROP_POSITION
public static final java.lang.String[] ARRAY_PROP_ACTIONBAR_TAB
public static final java.lang.String PROP_DISPLAYID
public static final java.lang.String PROP_ORIENTATION
public static final java.lang.String PROP_PIXELFORMAT
public static final java.lang.String PROP_REFRESHRATE
public static final java.lang.String[] ARRAY_PROP_DISPLAY
public static final java.lang.String PROP_MAX
public static final java.lang.String PROP_PROGRESS
public static final java.lang.String PROP_SECONDARYPROGRESS
public static final java.lang.String PROP_ISINDETERMINATE
public static final java.lang.String[] ARRAY_PROP_PROGRESSDIALOG
public static final java.lang.String PROP_ACCESSIBLEPREFIX
public static final java.lang.String PROP_ACCESSIBLEISACCESSIBILITYFOCUSED
public static final java.lang.String PROP_ACCESSIBLEBOUNDSINPARENT
public static final java.lang.String PROP_ACCESSIBLEBOUNDSINSCREEN
public static final java.lang.String PROP_ACCESSIBLECHILDCOUNT
public static final java.lang.String PROP_ACCESSIBLECONTENTDESCRIPTION
public static final java.lang.String PROP_ACCESSIBLEPACKAGENAME
public static final java.lang.String PROP_ACCESSIBLETEXT
public static final java.lang.String PROP_ACCESSIBLEWINDOWID
public static final java.lang.String PROP_ACCESSIBLEISCHECKABLE
public static final java.lang.String PROP_ACCESSIBLEISCHECKED
public static final java.lang.String PROP_ACCESSIBLEISCLICKABLE
public static final java.lang.String PROP_ACCESSIBLEISENABLED
public static final java.lang.String PROP_ACCESSIBLEISFOCUSABLE
public static final java.lang.String PROP_ACCESSIBLEISFOCUSED
public static final java.lang.String PROP_ACCESSIBLEISLONGCLICKABLE
public static final java.lang.String PROP_ACCESSIBLEISPASSWORD
public static final java.lang.String PROP_ACCESSIBLEISSCROLLABLE
public static final java.lang.String PROP_ACCESSIBLEISSELECTED
public static final java.lang.String PROP_ACCESSIBLEISVISIBLETOUSER
public static final java.lang.String[] ARRAY_PROP_ACCESSIBLITY
public static final java.lang.String PROP_CHILDCOUNT
public static final java.lang.String PROP_ISALWAYSDRAWNWITHCACHEENABLED
public static final java.lang.String PROP_ISANIMATIONCACHEENABLED
public static final java.lang.String PROP_ISMOTIONEVENTSPLITTINGENABLED
public static final java.lang.String PROP_SHOULDDELAYCHILDPRESSEDSTATE
public static final java.lang.String[] ARRAY_PROP_VIEWGROUP
public static final java.lang.String PROP_COUNT
public static final java.lang.String PROP_FIRSTVISIBLEPOSITION
public static final java.lang.String PROP_LASTVISIBLEPOSITION
public static final java.lang.String PROP_VISIBLEITEMCOUNT
public static final java.lang.String PROP_VISIBLEITEMS
public static final java.lang.String PROP_SELECTEDITEMID
public static final java.lang.String PROP_SELECTEDITEMPOSITION
public static final java.lang.String[] ARRAY_PROP_ADAPTERVIEW
public static final java.lang.String PROP_CACHECOLORHINT
public static final java.lang.String PROP_CHECKEDITEMCOUNT
public static final java.lang.String PROP_CHECKEDITEMIDS
public static final java.lang.String PROP_CHECKEDITEMPOSITION
public static final java.lang.String PROP_CHECKEDITEMPOSITIONS
public static final java.lang.String PROP_CHOICEMODE
public static final java.lang.String PROP_LISTPADDINGBOTTOM
public static final java.lang.String PROP_LISTPADDINGLEFT
public static final java.lang.String PROP_LISTPADDINGRIGHT
public static final java.lang.String PROP_LISTPADDINGTOP
public static final java.lang.String PROP_TRANSCRIPTMODE
public static final java.lang.String PROP_TEXTFILTER
public static final java.lang.String PROP_HASTEXTFILTER
public static final java.lang.String PROP_ISFASTSCROLLALWAYSVISIBLE
public static final java.lang.String PROP_ISFASTSCROLLENABLED
public static final java.lang.String PROP_ISSCROLLINGCACHEENABLED
public static final java.lang.String PROP_ISSMOOTHSCROLLBARENABLED
public static final java.lang.String PROP_ISSTACKFROMBOTTOM
public static final java.lang.String PROP_ISTEXTFILTERENABLED
public static final java.lang.String[] ARRAY_PROP_ABSLISTVIEW
public static final java.lang.String PROP_CHECKITEMIDS
public static final java.lang.String PROP_DIVIDERHEIGHT
public static final java.lang.String PROP_FOOTERVIEWSCOUNT
public static final java.lang.String PROP_HEADERVIEWSCOUNT
public static final java.lang.String PROP_ITEMSCANFOCUS
public static final java.lang.String PROP_MAXSCROLLAMOUNT
public static final java.lang.String[] ARRAY_PROP_LISTVIEW
public static final java.lang.String PROP_DROPDOWNHORIZONTALOFFSET
getObjectPropertyNames(Object)
again for AbsSpinnerpublic static final java.lang.String PROP_DROPDOWNVERTICALOFFSET
public static final java.lang.String PROP_DROPDOWNWIDTH
public static final java.lang.String PROP_PROMPT
public static final java.lang.String[] ARRAY_PROP_SPINNER
public static final java.lang.String PROP_DIDTOUCHFOCUSSELECT
public static final java.lang.String PROP_HASSELECTION
public static final java.lang.String PROP_HASOVERLAPPINGRENDERING
public static final java.lang.String PROP_AUTOLINKMASK
public static final java.lang.String PROP_COMPOUNDDRAWABLEPADDING
public static final java.lang.String PROP_COMPOUNDPADDINGBOTTOM
public static final java.lang.String PROP_COMPOUNDPADDINGLEFT
public static final java.lang.String PROP_COMPOUNDPADDINGRIGHT
public static final java.lang.String PROP_COMPOUNDPADDINGTOP
public static final java.lang.String PROP_CURRENTHINTTEXTCOLOR
public static final java.lang.String PROP_CURRENTTEXTCOLOR
public static final java.lang.String PROP_EXTENDEDPADDINGBOTTOM
public static final java.lang.String PROP_EXTENDEDPADDINGTOP
public static final java.lang.String PROP_FOCUSEDRECT
public static final java.lang.String PROP_FREEZETEXT
public static final java.lang.String PROP_HIGHLIGHTCOLOR
public static final java.lang.String PROP_HINT
public static final java.lang.String PROP_IMEACTIONID
public static final java.lang.String PROP_IMEACTIONLABEL
public static final java.lang.String PROP_IMEOPTIONS
public static final java.lang.String PROP_INCLUDEDFONTPADDING
public static final java.lang.String PROP_INPUTTYPE
public static final java.lang.String PROP_LINECOUNT
public static final java.lang.String PROP_LINEHEIGHT
public static final java.lang.String PROP_LINESPACINGEXTRA
public static final java.lang.String PROP_LINESPACINGMULTIPLIER
public static final java.lang.String PROP_LINKSCLICKABLE
public static final java.lang.String PROP_MARQUEEREPEATLIMIT
public static final java.lang.String PROP_MAXHEIGHT
public static final java.lang.String PROP_MAXLINES
public static final java.lang.String PROP_MAXWIDTH
public static final java.lang.String PROP_MINHEIGHT
public static final java.lang.String PROP_MINLINES
public static final java.lang.String PROP_MINWIDTH
public static final java.lang.String PROP_TEXTSCALEX
public static final java.lang.String PROP_TEXTSIZE
public static final java.lang.String PROP_TOTALPADDINGBOTTOM
public static final java.lang.String PROP_TOTALPADDINGLEFT
public static final java.lang.String PROP_TOTALPADDINGRIGHT
public static final java.lang.String PROP_TOTALPADDINGTOP
public static final java.lang.String PROP_SELECTIONEND
public static final java.lang.String PROP_SELECTIONSTART
public static final java.lang.String PROP_CURSORVISIBLE
public static final java.lang.String PROP_INPUTMETHODTARGET
public static final java.lang.String PROP_SUGGESTIONSENABLED
public static final java.lang.String PROP_TEXTSELECTABLE
public static final java.lang.String PROP_LENGTH
public static final java.lang.String[] ARRAY_PROP_TEXTVIEW
public static final java.lang.String PROP_ISCHECKED
public static final java.lang.String PROP_SWITCH_COMPOUNDPADDINGRIGHT
public static final java.lang.String PROP_SWITCHMINWIDTH
public static final java.lang.String PROP_SWITCHPADDING
public static final java.lang.String PROP_TEXTOFF
public static final java.lang.String PROP_TEXTON
public static final java.lang.String PROP_THUMBTEXTPADDING
public static final java.lang.String[] ARRAY_PROP_SWITCH
public static final java.lang.String PROP_TOGGLEBUTTON_TEXTOFF
public static final java.lang.String PROP_TOGGLEBUTTON_TEXTON
public static final java.lang.String[] ARRAY_PROP_TOGGLEBUTTON
public static final java.lang.String PROP_ALPHA
public static final java.lang.String PROP_BASELINE
public static final java.lang.String PROP_BOTTOM
public static final java.lang.String PROP_CANSCROLLLEFT
public static final java.lang.String PROP_CANSCROLLRIGHT
public static final java.lang.String PROP_CANSCROLLUP
public static final java.lang.String PROP_CANSCROLLDOWN
public static final java.lang.String PROP_DRAWINGCACHEBACKGROUNDCOLOR
public static final java.lang.String PROP_DRAWINGCACHEQUALITY
public static final java.lang.String PROP_DRAWINGRECT
public static final java.lang.String PROP_DRAWINGTIME
public static final java.lang.String PROP_FILTERTOUCHESWHENOBSCURED
public static final java.lang.String PROP_GLOBALVISIBLERECT
public static final java.lang.String PROP_HITRECT
public static final java.lang.String PROP_HORIZONTALFADINGEDGELENGTH
public static final java.lang.String PROP_ID
public static final java.lang.String PROP_KEEPSCREENON
public static final java.lang.String PROP_LAYERTYPE
public static final java.lang.String PROP_LEFT
public static final java.lang.String PROP_LOCALVISIBLERECT
public static final java.lang.String PROP_LOCATIONINWINDOW
public static final java.lang.String PROP_LOCATIONONSCREEN
public static final java.lang.String PROP_NEXTFOCUSDOWNID
public static final java.lang.String PROP_NEXTFOCUSFORWARDID
public static final java.lang.String PROP_NEXTFOCUSLEFTID
public static final java.lang.String PROP_NEXTFOCUSRIGHTID
public static final java.lang.String PROP_NEXTFOCUSUPID
public static final java.lang.String PROP_OVERSCROLLMODE
public static final java.lang.String PROP_PADDINGBOTTOM
public static final java.lang.String PROP_PADDINGLEFT
public static final java.lang.String PROP_PADDINGRIGHT
public static final java.lang.String PROP_PADDINGTOP
public static final java.lang.String PROP_PIVOTX
public static final java.lang.String PROP_PIVOTY
public static final java.lang.String PROP_RIGHT
public static final java.lang.String PROP_ROTATIONX
public static final java.lang.String PROP_ROTATIONY
public static final java.lang.String PROP_SCALEX
public static final java.lang.String PROP_SCALEY
public static final java.lang.String PROP_SCROLLBARSTYLE
public static final java.lang.String PROP_SCROLLX
public static final java.lang.String PROP_SCROLLY
public static final java.lang.String PROP_SOLIDCOLOR
public static final java.lang.String PROP_SYSTEMUIVISIBILITY
public static final java.lang.String PROP_TAG
public static final java.lang.String PROP_TOP
public static final java.lang.String PROP_TRANSLATIONX
public static final java.lang.String PROP_TRANSLATIONY
public static final java.lang.String PROP_VERTICALFADINGEDGELENGTH
public static final java.lang.String PROP_VERTICALSCROLLBARPOSITION
public static final java.lang.String PROP_VERTICALSCROLLBARWIDTH
public static final java.lang.String PROP_VISIBILITY
public static final java.lang.String PROP_WINDOWVISIBILITY
public static final java.lang.String PROP_WINDOWVISIBLEDISPLAYFRAME
public static final java.lang.String PROP_X
public static final java.lang.String PROP_Y
public static final java.lang.String PROP_HASFOCUS
public static final java.lang.String PROP_HASFOCUSABLE
public static final java.lang.String PROP_ISACTIVATED
public static final java.lang.String PROP_ISCLICKABLE
public static final java.lang.String PROP_ISDIRTY
public static final java.lang.String PROP_ISDRAWINGCACHEENABLED
public static final java.lang.String PROP_ISDUPLICATEPARENTSTATEENABLED
public static final java.lang.String PROP_ISENABLED
public static final java.lang.String PROP_ISFOCUSABLE
public static final java.lang.String PROP_ISFOCUSABLEINTOUCHMODE
public static final java.lang.String PROP_ISFOCUSED
public static final java.lang.String PROP_ISHAPTICFEEDBACKENABLED
public static final java.lang.String PROP_ISHARDWAREACCELERATED
public static final java.lang.String PROP_ISHORIZONTALFADINGEDGEENABLED
public static final java.lang.String PROP_ISHORIZONTALSCROLLBARENABLED
public static final java.lang.String PROP_ISHOVERED
public static final java.lang.String PROP_ISINEDITMODE
public static final java.lang.String PROP_ISINTOUCHMODE
public static final java.lang.String PROP_ISLAYOUTREQUESTED
public static final java.lang.String PROP_ISLONGCLICKABLE
public static final java.lang.String PROP_ISOPAQUE
public static final java.lang.String PROP_ISPRESSED
public static final java.lang.String PROP_ISSAVEENABLED
public static final java.lang.String PROP_ISSAVEFROMPARENTENABLED
public static final java.lang.String PROP_ISSCROLLBARFADINGENABLED
public static final java.lang.String PROP_ISSELECTED
public static final java.lang.String PROP_ISSHOWN
public static final java.lang.String PROP_ISSOUNDEFFECTSENABLED
public static final java.lang.String PROP_ISVERTICALFADINGEDGEENABLED
public static final java.lang.String PROP_ISVERTICALSCROLLBARENABLED
public static final java.lang.String PROP_WILLNOTCACHEDRAWING
public static final java.lang.String PROP_WILLNOTDRAW
public static final java.lang.String PROP_HASONCLICKLISTENERS
public static final java.lang.String[] ARRAY_PROP_VIEW
public static final java.lang.String PROP_ITEMCOUNT
public static final java.lang.String PROP_ITEMIDS
public static final java.lang.String PROP_ITEMS
public static final java.lang.String PROP_VIEWTYPECOUNT
public static final java.lang.String PROP_HASSTABLEIDS
public static final java.lang.String PROP_ISEMPTY
public static final java.lang.String[] ARRAY_PROP_ADAPTER
public static final java.lang.String PROP_AREALLITEMSENABLED
public static void setSAFSTestRunner(DSAFSTestRunner _testrunner)
_testrunner
- static void debug(java.lang.String message)
public static android.app.Application getForegroundApplication() throws RemoteException
RemoteException
- if no static testrunner or Solo object has been set.setSAFSTestRunner(DSAFSTestRunner)
,
Application
public static java.lang.Object[] getTopLevelWindows() throws RemoteException
RemoteException
- if no static testrunner or Solo object has been set or
if Solo cannot seem to get the currently focused View of the Current Window.setSAFSTestRunner(DSAFSTestRunner)
public static boolean hasChildren(java.lang.Object view)
public static java.lang.Object[] getChildren(java.lang.Object aparent)
aparent
- ViewGroup or AdapterView from which to seek children.
Only a ViewGroup is checked for child Views.public static boolean isTopLevelWindowRecognition(java.lang.String objstring)
objstring
- public static boolean isTopLevelPopupContainer(java.lang.Object obj)
objstring
- public static java.lang.String getObjectClassName(java.lang.Object obj) throws java.lang.NullPointerException
obj
- java.lang.NullPointerException
- on null obj reference.public static java.lang.String[] getObjectSuperclassNames(java.lang.Object obj)
obj
- java.lang.NullPointerException
- on null obj reference.public static java.lang.String getObjectName(java.lang.Object obj) throws java.lang.NullPointerException
So we will try to see if the contentDescription is worth using.
We will try to get the view's id name defined in the xml file, for example, we have a view definition like <TextView android:id="@+id/text2" .../>, then 'text2' will be returned.
obj
- java.lang.NullPointerException
- if null obj reference.setSAFSTestRunner(DSAFSTestRunner)
,
#getObjectId(Object)(android.view.View)
public static int getObjectId(java.lang.Object obj) throws java.lang.NullPointerException
obj
- java.lang.NullPointerException
- if null obj reference.setSAFSTestRunner(DSAFSTestRunner)
,
getObjectIdString(Object)
public static java.lang.String getObjectIdString(java.lang.Object obj)
obj
- getObjectId(Object)
public static boolean getObjectIsEnabled(java.lang.Object obj) throws java.lang.NullPointerException
obj
- java.lang.NullPointerException
- if null obj reference.setSAFSTestRunner(DSAFSTestRunner)
public static boolean getObjectIsShowing(java.lang.Object obj) throws java.lang.NullPointerException
obj
- java.lang.NullPointerException
- if null obj reference.setSAFSTestRunner(DSAFSTestRunner)
public static boolean getObjectIsValid(java.lang.Object obj) throws java.lang.NullPointerException
obj
- java.lang.NullPointerException
- if null obj reference.setSAFSTestRunner(DSAFSTestRunner)
public static java.lang.String getObjectText(java.lang.Object obj) throws java.lang.NullPointerException
obj
- View subclass like TextView, or Adapter subclass.java.lang.NullPointerException
- if null obj reference.
of View provided is NOT one we know how to handle yet.setSAFSTestRunner(DSAFSTestRunner)
public static java.lang.String getObjectCaption(java.lang.Object obj) throws RemoteException, java.lang.NullPointerException
obj
- java.lang.NullPointerException
- if null obj reference.RemoteException
- if no static testrunner or Solo object has been set or if the subclass
of Object provided is NOT one we know how to handle yet.java.lang.NullPointerException
- if the Object provided was null.setSAFSTestRunner(DSAFSTestRunner)
public static java.lang.String getObjectProperty(java.lang.Object obj, java.lang.String propname)
convertArrayToDelimitedString(ArrayList)
public static java.util.Vector<java.lang.String> addAdapterPropertyNames(java.util.Vector<java.lang.String> names, android.widget.Adapter adapter)
Some property names exposed for certain Adapters:
public static java.lang.String convertArrayToDelimitedString(java.util.ArrayList list)
list
- public static java.lang.String getAdapterProperty(android.widget.Adapter adapter, java.lang.String propname)
adapter
- Adapter retrieved from the View using the Adapterpropname
- String property name to extract from the Adapter.convertArrayToDelimitedString(ArrayList)
addAdapterPropertyNames(Vector, Adapter)
public static java.lang.String[] getObjectPropertyNames(java.lang.Object obj)
obj
- public static java.util.List<java.lang.String> getPossiblePropertyAccessorMethodsName(java.lang.String propertyName)
propertyName,
- String, the property namepublic static java.lang.String getPropertyByReflection(java.lang.Object obj, java.lang.String property, boolean includingSuperClass)
obj,
- Object, the object from which to get the property valueproperty,
- String, the property name to get valueincludingSuperClass,
- boolean, if we need to get value from super class.Copyright © SAS Institute. All Rights Reserved.