A B C D E F G H I L M N O P Q R S T U V W

A

activities() - Method in class positron.Positron
Get a snapshot of the known activity stack.
activities() - Method in class positron.TestCase
Get all the unfinished activities in the target package, most recent first.
activity() - Method in class positron.Positron
 
activity() - Method in class positron.TestCase
Get the most recent unfinished activity in the target package.
addMonitor(Instrumentation.ActivityMonitor) - Method in class positron.TestCase
 
addMonitor(IntentFilter, Instrumentation.ActivityResult, boolean) - Method in class positron.TestCase
 
addMonitor(String, Instrumentation.ActivityResult, boolean) - Method in class positron.TestCase
 
ALT - Static variable in class positron.TestCase
KeyEvent.KEYCODE_ALT
at(Class<T>, Object, String) - Method in class positron.Positron
Evaluate the ViewShorthand path starting from the given point.
at(String) - Method in class positron.Positron
Evaluate the ViewShorthand path starting from the current activity.
at(Class<T>, String) - Method in class positron.Positron
Evaluate the ViewShorthand path starting from the current activity.
at(Class<T>, Object, String) - Method in class positron.TestCase
 
at(Class<T>, String) - Method in class positron.TestCase
 
at(String) - Method in class positron.TestCase
 

B

BACK - Static variable in class positron.TestCase
KeyEvent.KEYCODE_BACK
backup() - Method in class positron.harness.DatabaseFixture
Backup all databases in the target context.
backup(String) - Method in class positron.harness.DatabaseFixture
Back up the given database by copying its defining file out of the way.
backup() - Method in class positron.Positron
Backup all databases in the tested application.
backup(String) - Method in class positron.Positron
Backup the given database.
backup() - Method in class positron.TestCase
 
backup(String) - Method in class positron.TestCase
 
basename(String) - Static method in class positron.harness.IOUtils
 
booleanAt(String) - Method in class positron.Positron
Evaluate the ViewShorthand path starting from the current activity.
booleanAt(String) - Method in class positron.TestCase
 

C

CALL - Static variable in class positron.TestCase
KeyEvent.KEYCODE_CALL
callActivityOnCompleteThaw(Activity, Bundle) - Method in class positron.TestCase
 
callActivityOnCreate(Activity, Bundle) - Method in class positron.TestCase
 
callActivityOnFreeze(Activity, Bundle) - Method in class positron.TestCase
 
callActivityOnNewIntent(Activity, Intent) - Method in class positron.TestCase
 
callActivityOnPause(Activity) - Method in class positron.TestCase
 
callActivityOnPostCreate(Activity, Bundle) - Method in class positron.TestCase
 
callActivityOnRestart(Activity) - Method in class positron.TestCase
 
callActivityOnResume(Activity) - Method in class positron.Positron
 
callActivityOnResume(Activity) - Method in class positron.TestCase
 
callActivityOnStart(Activity) - Method in class positron.TestCase
 
callApplicationOnCreate(Application) - Method in class positron.TestCase
 
CAMERA - Static variable in class positron.TestCase
KeyEvent.KEYCODE_CAMERA
CAP - Static variable in class positron.TestCase
KeyEvent.KEYCODE_CAP
CENTER - Static variable in class positron.TestCase
KeyEvent.KEYCODE_DPAD_CENTER
checkMonitorHit(Instrumentation.ActivityMonitor, int) - Method in class positron.TestCase
 
CLEAR - Static variable in class positron.TestCase
KeyEvent.KEYCODE_CLEAR
click() - Method in class positron.Positron
sendKeyDownUp(KEYCODE_DPAD_CENTER)
CLICK - Static variable in class positron.TestCase
KeyEvent.KEYCODE_DPAD_CENTER
click() - Method in class positron.TestCase
sendKeyDownUp(KEYCODE_DPAD_CENTER)
close(Closeable) - Static method in class positron.harness.IOUtils
 
close() - Method in class positron.harness.SqlScanner
 
cp(String, String) - Static method in class positron.harness.IOUtils
 
createTestResult() - Method in class positron.harness.InstrumentedTestRunner
 

D

DatabaseFixture - Class in positron.harness
 
DatabaseFixture(Instrumentation) - Constructor for class positron.harness.DatabaseFixture
 
doubleAt(String) - Method in class positron.Positron
Evaluate the ViewShorthand path starting from the current activity.
doubleAt(String) - Method in class positron.TestCase
 
DOWN - Static variable in class positron.TestCase
KeyEvent.KEYCODE_DPAD_DOWN
dupWindowBitmap(Activity) - Method in class positron.Positron
dupWindowBitmapSync, resuming momentarily if necessary.
dupWindowBitmap(Activity) - Method in class positron.TestCase
dupWindowBitmapSync, resuming momentarily if necessary.
dupWindowBitmapSync(Activity) - Method in class positron.Positron
 
dupWindowBitmapSync(Activity) - Method in class positron.TestCase
 

E

ENDCALL - Static variable in class positron.TestCase
KeyEvent.KEYCODE_ENDCALL
ENVELOPE - Static variable in class positron.TestCase
KeyEvent.KEYCODE_ENVELOPE
evaluate(Class<T>, Object, String) - Method in class positron.harness.ViewShorthand
 
evaluate(Object, String) - Method in class positron.harness.ViewShorthand
 
execSql(String, int...) - Method in class positron.harness.DatabaseFixture
Execute Sql scripts loaded from a raw resources.
execSql(String, int...) - Method in class positron.Positron
Execute the given Sql scripts (as raw resources in the target context.)
execSql(String, int...) - Method in class positron.TestCase
 
execStartActivity(ApplicationContext, IBinder, Activity, Intent, int) - Method in class positron.TestCase
 
EXPLORER - Static variable in class positron.TestCase
KeyEvent.KEYCODE_EXPLORER

F

Finish - Class in positron.harness
 
Finish(Activity) - Constructor for class positron.harness.Finish
 
finish(Activity) - Method in class positron.Positron
 
finish() - Method in class positron.Positron
 
finish(Activity) - Method in class positron.TestCase
Finish the given activity by calling finish() on the main thread.
finish() - Method in class positron.TestCase
finish(activity()), resuming momentarily as needed.
finish(int, Bundle) - Method in class positron.TestCase
 
finishAll() - Method in class positron.Positron
 
finishAll() - Method in class positron.TestCase
finish() all unfinished activities; useful in tearDown().

G

getAllocCounts(Bundle) - Method in class positron.TestCase
 
getContext() - Method in class positron.TestCase
 
getLineNumber() - Method in class positron.harness.SqlScanner
 
getTargetContext() - Method in class positron.TestCase
 

H

hasNext() - Method in class positron.harness.SqlScanner
 
HOME - Static variable in class positron.TestCase
KeyEvent.KEYCODE_HOME

I

InstrumentedTestResult - Class in positron.harness
TestResult that injects instrumentation.
InstrumentedTestResult(Positron) - Constructor for class positron.harness.InstrumentedTestResult
 
InstrumentedTestRunner - Class in positron.harness
 
InstrumentedTestRunner(Positron, PrintStream) - Constructor for class positron.harness.InstrumentedTestRunner
 
intAt(String) - Method in class positron.Positron
Evaluate the ViewShorthand path starting from the current activity.
intAt(String) - Method in class positron.TestCase
 
invokeMenuAction(Activity, int, int) - Method in class positron.Positron
invokeMenuActionSync, resuming momentarily if necessary.
invokeMenuAction(Activity, int, int) - Method in class positron.TestCase
invokeMenuActionSync, resuming momentarily if necessary.
invokeMenuActionSync(Activity, int, int) - Method in class positron.Positron
 
invokeMenuActionSync(Activity, int, int) - Method in class positron.TestCase
 
IOUtils - Class in positron.harness
 
IOUtils() - Constructor for class positron.harness.IOUtils
 
isProfiling() - Method in class positron.TestCase
 
iterator() - Method in class positron.harness.SqlScanner
 

L

LEFT - Static variable in class positron.TestCase
KeyEvent.KEYCODE_DPAD_LEFT
ls(String, String) - Static method in class positron.harness.IOUtils
 

M

main(String[]) - Static method in class positron.RunTests
 
mv(String, String) - Static method in class positron.harness.IOUtils
 

N

newActivity(ClassLoader, String, Intent) - Method in class positron.TestCase
 
newApplication(ClassLoader, String) - Method in class positron.TestCase
 
NEWLINE - Static variable in class positron.TestCase
KeyEvent.KEYCODE_NEWLINE
next() - Method in class positron.harness.SqlScanner
 
NUM - Static variable in class positron.TestCase
KeyEvent.KEYCODE_NUM

O

onCreate(Bundle) - Method in class positron.Positron
 
onCreate(Bundle) - Method in class positron.TestCase
 
onDestroy() - Method in class positron.TestCase
 
onException(Object, Throwable) - Method in class positron.TestCase
 
onStart() - Method in class positron.Positron
 
onStart() - Method in class positron.TestCase
 

P

pause() - Method in class positron.harness.PauseButton
 
pause() - Method in class positron.Positron
 
pause() - Method in class positron.TestCase
Pause execution of the target package.
PauseButton - Class in positron.harness
 
PauseButton(Instrumentation) - Constructor for class positron.harness.PauseButton
 
paused() - Method in class positron.harness.PauseButton
 
paused() - Method in class positron.Positron
 
paused() - Method in class positron.TestCase
Is the target package paused?
pauseNow() - Method in class positron.Positron
 
pauseNow() - Method in class positron.TestCase
Like pause, but do not implicitly call waitForIdleSync().
peek(Reader) - Static method in class positron.harness.IOUtils
 
positron - package positron
 
Positron - Class in positron
Subclass this to test your application with Positron.
Positron() - Constructor for class positron.Positron
 
positron.harness - package positron.harness
 
POWER - Static variable in class positron.TestCase
KeyEvent.KEYCODE_POWER
press(Object...) - Method in class positron.Positron
sendKeyDownUpSync on all keys in order, resuming momentarily if necessary.
press(Object...) - Method in class positron.TestCase
sendKeyDownUpSync on all keys in order, resuming momentarily if necessary.

Q

quit() - Method in class positron.harness.PauseButton
 

R

read(InputStream) - Static method in class positron.harness.IOUtils
 
read(Reader) - Static method in class positron.harness.IOUtils
 
remove() - Method in class positron.harness.SqlScanner
 
removeMonitor(Instrumentation.ActivityMonitor) - Method in class positron.TestCase
 
restore() - Method in class positron.harness.DatabaseFixture
Restore all databases that have backups in the target context.
restore(String) - Method in class positron.harness.DatabaseFixture
Restore the given database by copying the backup file back in place.
restore() - Method in class positron.Positron
Restore all databases in the tested application that have backups.
restore(String) - Method in class positron.Positron
Restore the given database from a previous backup call.
restore() - Method in class positron.TestCase
 
restore(String) - Method in class positron.TestCase
 
resume() - Method in class positron.harness.PauseButton
 
resume() - Method in class positron.Positron
 
resume() - Method in class positron.TestCase
Resume executing the target package if it has been paused.
RIGHT - Static variable in class positron.TestCase
KeyEvent.KEYCODE_DPAD_RIGHT
rm(String) - Static method in class positron.harness.IOUtils
 
run() - Method in class positron.harness.Finish
 
run(TestCase) - Method in class positron.harness.InstrumentedTestResult
 
run() - Method in class positron.harness.PauseButton
 
runOnMainSync(Runnable) - Method in class positron.TestCase
 
RunTests - Class in positron
Call acceptance tests from the host OS.
RunTests() - Constructor for class positron.RunTests
 

S

sendCharacter(int) - Method in class positron.Positron
sendCharacterSync, resuming momentarily if necessary.
sendCharacter(int) - Method in class positron.TestCase
sendCharacterSync, resuming momentarily if necessary.
sendCharacterSync(int) - Method in class positron.Positron
 
sendCharacterSync(int) - Method in class positron.TestCase
 
sendKey(KeyEvent) - Method in class positron.Positron
sendKeySync, resuming momentarily if necessary.
sendKey(KeyEvent) - Method in class positron.TestCase
sendKeySync, resuming momentarily if necessary.
sendKeyDownUp(int) - Method in class positron.Positron
sendKeyDownUpSync, resuming momentarily if necessary.
sendKeyDownUp(int) - Method in class positron.TestCase
sendKeyDownUpSync, resuming momentarily if necessary.
sendKeyDownUpSync(int) - Method in class positron.Positron
 
sendKeyDownUpSync(int) - Method in class positron.TestCase
 
sendKeySync(KeyEvent) - Method in class positron.Positron
 
sendKeySync(KeyEvent) - Method in class positron.TestCase
 
sendString(String) - Method in class positron.Positron
sendStringSync, resuming momentarily if necessary.
sendString(String) - Method in class positron.TestCase
sendStringSync, resuming momentarily if necessary.
sendStringSync(String) - Method in class positron.Positron
 
sendStringSync(String) - Method in class positron.TestCase
 
setInstrumentation(Positron) - Method in class positron.TestCase
 
SOFT_LEFT - Static variable in class positron.TestCase
KeyEvent.KEYCODE_SOFT_LEFT
SOFT_RIGHT - Static variable in class positron.TestCase
KeyEvent.KEYCODE_SOFT_RIGHT
SqlScanner - Class in positron.harness
Simple scanner to delimit Sql-like text.
SqlScanner(InputStream) - Constructor for class positron.harness.SqlScanner
 
SqlScanner(Reader) - Constructor for class positron.harness.SqlScanner
 
start() - Method in class positron.TestCase
 
startActivity(Intent) - Method in class positron.Positron
startActivitySync, resuming momentarily if necessary.
startActivity(Intent) - Method in class positron.TestCase
startActivitySync, resuming momentarily if necessary.
startActivitySync(String) - Method in class positron.Positron
Shortcut to startActivitySync the named class in the target context.
startActivitySync(Intent) - Method in class positron.Positron
 
startActivitySync(String) - Method in class positron.TestCase
Shortcut to startActivitySync the named class in the target context.
startActivitySync(Intent) - Method in class positron.TestCase
 
startAllocCounting() - Method in class positron.TestCase
 
startProfiling() - Method in class positron.TestCase
 
stopAllocCounting() - Method in class positron.TestCase
 
stopProfiling() - Method in class positron.TestCase
 
stringAt(String) - Method in class positron.Positron
Evaluate the ViewShorthand path starting from the current activity.
stringAt(String) - Method in class positron.TestCase
 
suite() - Method in class positron.Positron
 
SYM - Static variable in class positron.TestCase
KeyEvent.KEYCODE_SYM

T

TAB - Static variable in class positron.TestCase
KeyEvent.KEYCODE_TAB
TAG - Static variable in class positron.Positron
 
tearDown() - Method in class positron.TestCase
finishAll();
TestCase - Class in positron
 
TestCase(String) - Constructor for class positron.TestCase
 
TestCase() - Constructor for class positron.TestCase
 
toBundle() - Method in class positron.harness.InstrumentedTestResult
 

U

UP - Static variable in class positron.TestCase
KeyEvent.KEYCODE_DPAD_UP

V

viewAt(String) - Method in class positron.Positron
Evaluate the ViewShorthand path starting from the current activity.
viewAt(String) - Method in class positron.TestCase
 
ViewShorthand - Class in positron.harness
Use dot notation to navigate getters and array/child indexing.
ViewShorthand() - Constructor for class positron.harness.ViewShorthand
 
VOLUME_DOWN - Static variable in class positron.TestCase
KeyEvent.KEYCODE_VOLUME_UP
VOLUME_UP - Static variable in class positron.TestCase
KeyEvent.KEYCODE_VOLUME_DOWN

W

waitForIdle() - Method in class positron.Positron
waitForIdleSync, resuming momentarily if necessary.
waitForIdle() - Method in class positron.TestCase
waitForIdleSync, resuming momentarily if necessary.
waitForIdle(Runnable) - Method in class positron.TestCase
 
waitForIdleSync() - Method in class positron.Positron
 
waitForIdleSync() - Method in class positron.TestCase
 
waitForMonitor(Instrumentation.ActivityMonitor) - Method in class positron.TestCase
 
write(OutputStream, int) - Static method in class positron.harness.IOUtils
 
write(Writer, int) - Static method in class positron.harness.IOUtils
 

A B C D E F G H I L M N O P Q R S T U V W