Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added --center parameter to dump.py

  • Loading branch information...
commit e2622c8a768d2024987913722547eeaf634d5672 1 parent 941bcb7
@dtmilano authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 AndroidViewClient/examples/dump.py
View
9 AndroidViewClient/examples/dump.py
@@ -31,18 +31,21 @@
UNIQUE_ID = 'uniqueId'
POSITION = 'position'
CONTENT_DESCRIPTION = 'content-description'
+CENTER = 'center'
MAP = {'u':ViewClient.TRAVERSE_CITUI, UNIQUE_ID:ViewClient.TRAVERSE_CITUI,
'x':ViewClient.TRAVERSE_CITPS, POSITION:ViewClient.TRAVERSE_CITPS,
'd':ViewClient.TRAVERSE_CITCD, CONTENT_DESCRIPTION:ViewClient.TRAVERSE_CITCD,
+ 'c':ViewClient.TRAVERSE_CITC, CENTER:ViewClient.TRAVERSE_CITC,
}
def usage():
- print >> sys.stderr, 'usage: dump.py [-u|--%s] [-x|--%s] [-d|--%s] [serialno]' % \
- (UNIQUE_ID, POSITION, CONTENT_DESCRIPTION)
+ print >> sys.stderr, 'usage: dump.py [-u|--%s] [-x|--%s] [-d|--%s] [-c|--%s] [serialno]' % \
+ (UNIQUE_ID, POSITION, CONTENT_DESCRIPTION, CENTER)
sys.exit(1)
try:
- opts, args = getopt.getopt(sys.argv[1:], 'uxd', [UNIQUE_ID, POSITION, CONTENT_DESCRIPTION])
+ opts, args = getopt.getopt(sys.argv[1:], 'uxdc',
+ [UNIQUE_ID, POSITION, CONTENT_DESCRIPTION, CENTER])
except getopt.GetoptError, e:
print >>sys.stderr, 'ERROR:', str(e)
usage()
Please sign in to comment.
Something went wrong with that request. Please try again.