Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleaned whitespaces #56

Merged
merged 1 commit into from
Oct 1, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AndroidViewClient/examples/click-button-by-text.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'''
Copyright (C) 2012 Diego Torres Milano
Created on May 5, 2012

@author: diego
'''

Expand Down
4 changes: 2 additions & 2 deletions AndroidViewClient/examples/click-no-id-button.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'''
Copyright (C) 2012 Diego Torres Milano
Created on Aug 7, 2012

@author: diego
'''

Expand All @@ -16,7 +16,7 @@

from com.dtmilano.android.viewclient import ViewClient


vc = ViewClient(*ViewClient.connectToDeviceOrExit())

for i in range(1, 9):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
from com.dtmilano.android.viewclient import ViewClient

# 01-04 18:23:42.000: I/ActivityManager(4288): Displayed com.android.development/.DevelopmentSettings: +379ms
package = 'com.android.development'
activity = '.DevelopmentSettings'
component = package + "/" + activity
package = 'com.android.development'
activity = '.DevelopmentSettings'
component = package + "/" + activity
device, serialno = ViewClient.connectToDeviceOrExit()
device.startActivity(component=component)
ViewClient.sleep(5)
Expand Down
2 changes: 1 addition & 1 deletion AndroidViewClient/examples/dump-simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
Expand Down
2 changes: 1 addition & 1 deletion AndroidViewClient/examples/email-send.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import re
import sys
import os

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
Expand Down
2 changes: 1 addition & 1 deletion AndroidViewClient/examples/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
Expand Down Expand Up @@ -62,7 +62,7 @@
else:
print "FAIL"
else:
print >> sys.stderr, "'hello' not found"
print >> sys.stderr, "'hello' not found"
else:
print >> sys.stderr, "'Show Dialog' button not found"
else:
Expand All @@ -89,5 +89,5 @@
else:
print "FAIL"
else:
print >> sys.stderr, "'hello' not found"
print >> sys.stderr, "'hello' not found"

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
Expand Down
2 changes: 1 addition & 1 deletion AndroidViewClient/examples/sample-ui-toggle-buttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
Expand Down
2 changes: 1 addition & 1 deletion AndroidViewClient/examples/settings-display.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
Expand Down
8 changes: 4 additions & 4 deletions AndroidViewClient/examples/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
pass

from com.dtmilano.android.viewclient import ViewClient

package='com.android.settings'
activity='.Settings'
component=package + "/" + activity
package='com.android.settings'
activity='.Settings'
component=package + "/" + activity
device, serialno = ViewClient.connectToDeviceOrExit()

if True:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Then a ViewClient is created to obtain the view dump and the current values of the views with
id/celsius and id/fahrenheit are obtained and the conversion printed to stdout.
Finally, the fields are obtained by using their tags and again, conversion printed to stdout.

If --localViewServer is passed in the command line then LocalViewServer provided by
TemperatureConverter is used. This is very useful when the device is secure and ViewServer
cannot be started.
Expand All @@ -28,7 +28,7 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
Expand All @@ -40,12 +40,12 @@
if len(sys.argv) > 1 and sys.argv[1] == '--localViewServer':
localViewServer = True
sys.argv.pop(1)

device, serialno = ViewClient.connectToDeviceOrExit(ignoresecuredevice=localViewServer)

FLAG_ACTIVITY_NEW_TASK = 0x10000000
package = 'com.example.i2at.tc'
activity = '.TemperatureConverterActivity'
package = 'com.example.i2at.tc'
activity = '.TemperatureConverterActivity'
componentName = package + "/" + activity

device.startActivity(component=componentName, flags=FLAG_ACTIVITY_NEW_TASK)
Expand Down
2 changes: 1 addition & 1 deletion AndroidViewClient/examples/test-connect-to-device.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
pass

from com.dtmilano.android.viewclient import ViewClient

package = 'com.example.trashcan'
activity = '.FullScreenActivity'
package = 'com.example.trashcan'
activity = '.FullScreenActivity'
component = package + "/" + activity

device, serialno = ViewClient.connectToDeviceOrExit()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
sys.path.append(p)
except:
pass

try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
Expand Down
Loading