Skip navigation links
A C D E F G I M N R S T V W 

A

addCleanupDir(File) - Static method in class com.android.testutils.SdkTestCase
 
addSelection(String, int, int) - Static method in class com.android.testutils.SdkTestCase
 
advanceBy(long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
advanceBy will run all actions scheduled within the interval (converted to nanos) specified from the current time.
advanceBy(long) - Method in class com.android.testutils.VirtualTimeScheduler
advanceBy will run all actions scheduled within the interval specified from the current time.
advanceTo(long) - Method in class com.android.testutils.VirtualTimeScheduler
advanceTo will run all actions scheduled between CurrentTimeNanos and endTimeNanos.
assertEqualsGolden(String, String) - Method in class com.android.testutils.SdkTestCase
 
assertEqualsGolden(String, String, String) - Method in class com.android.testutils.SdkTestCase
 
awaitTermination(long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 

C

cancel(boolean) - Method in class com.android.testutils.VirtualTimeFuture
 
cleanup(String) - Method in class com.android.testutils.SdkTestCase
 
close() - Method in class com.android.testutils.SystemPropertyOverrides
 
com.android.testutils - package com.android.testutils
 
compareTo(Delayed) - Method in class com.android.testutils.VirtualTimeFuture
 
contents - Variable in class com.android.testutils.SdkTestCase.TestFile
 
copy(String) - Method in class com.android.testutils.SdkTestCase.TestFile
 
createFile(File) - Method in class com.android.testutils.SdkTestCase.TestFile
 
createTempDirDeletedOnExit() - Static method in class com.android.testutils.TestUtils
 

D

deleteFile(File) - Method in class com.android.testutils.SdkTestCase
 
deleteFile(File) - Static method in class com.android.testutils.TestUtils
 

E

execute(Runnable) - Method in class com.android.testutils.VirtualTimeScheduler
 

F

findSrcDir() - Method in class com.android.testutils.SdkTestCase
Get the location to write missing golden files to
findSrcRelativeDir(String) - Method in class com.android.testutils.SdkTestCase
 
from(String) - Method in class com.android.testutils.SdkTestCase.TestFile
 

G

get() - Method in class com.android.testutils.VirtualTimeFuture
 
get(long, TimeUnit) - Method in class com.android.testutils.VirtualTimeFuture
 
getActionsExecuted() - Method in class com.android.testutils.VirtualTimeScheduler
 
getActionsQueued() - Method in class com.android.testutils.VirtualTimeScheduler
 
getCallable() - Method in class com.android.testutils.VirtualTimeFuture
Gets the Callable this future is created for.
getCanonicalRoot(String...) - Static method in class com.android.testutils.TestUtils
returns a File for the subfolder of the test resource data.
getCaretContext(String, int) - Static method in class com.android.testutils.SdkTestCase
 
getCaretOffset(String, String) - Static method in class com.android.testutils.SdkTestCase
 
getContents() - Method in class com.android.testutils.SdkTestCase.TestFile
 
getCurrentTimeNanos() - Method in class com.android.testutils.VirtualTimeScheduler
 
getDelay(TimeUnit) - Method in class com.android.testutils.VirtualTimeFuture
 
getDiff(String, String) - Static method in class com.android.testutils.TestUtils
 
getDiff(String[], String[]) - Static method in class com.android.testutils.TestUtils
 
getFurthestScheduledTimeNanos() - Method in class com.android.testutils.VirtualTimeScheduler
 
getId() - Method in class com.android.testutils.VirtualTimeFuture
Helper used by the scheduler's Comparator to distinguish/order futures scheduled for the same time.
getOffset() - Method in class com.android.testutils.VirtualTimeFuture
Gets the Offset between invocations of the action behind this future, for repeated actions only.
getOwningScheduler() - Method in class com.android.testutils.VirtualTimeFuture
Gets the VirtualTimeScheduler this future is associated with.
getQueue() - Method in class com.android.testutils.VirtualTimeScheduler
 
getRepeatKind() - Method in class com.android.testutils.VirtualTimeFuture
Describes if this future is repeated and if so how.
getRoot(String...) - Static method in class com.android.testutils.TestUtils
returns a File for the subfolder of the test resource data.
getRunnable() - Method in class com.android.testutils.VirtualTimeFuture
Gets the Runnable this future is created for.
getSdkDir() - Static method in class com.android.testutils.TestUtils
Returns the SDK directory as built from the Android source tree.
getTargetDir() - Method in class com.android.testutils.SdkTestCase
Get the location to write missing golden files to
getTempDir() - Static method in class com.android.testutils.SdkTestCase
 
getTestDataRelPath() - Method in class com.android.testutils.SdkTestCase
 
getTestfile(File, String) - Method in class com.android.testutils.SdkTestCase
 
getTestResource(String, boolean) - Method in class com.android.testutils.SdkTestCase
 
getTick() - Method in class com.android.testutils.VirtualTimeFuture
Gets the virtual time in nano seconds that this future is scheduled to execute at.

I

invokeAll(Collection<? extends Callable<T>>) - Method in class com.android.testutils.VirtualTimeScheduler
 
invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
invokeAny(Collection<? extends Callable<T>>) - Method in class com.android.testutils.VirtualTimeScheduler
 
invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
isCancelled() - Method in class com.android.testutils.VirtualTimeFuture
 
isDone() - Method in class com.android.testutils.VirtualTimeFuture
 
isShutdown() - Method in class com.android.testutils.VirtualTimeScheduler
 
isTerminated() - Method in class com.android.testutils.VirtualTimeScheduler
 

M

makeTestFile(String, String, InputStream) - Method in class com.android.testutils.SdkTestCase
 
makeTestFile(File, String, String, InputStream) - Method in class com.android.testutils.SdkTestCase
 

N

now() - Method in class com.android.testutils.VirtualTimeDateProvider
 

R

readTestFile(String, boolean) - Method in class com.android.testutils.SdkTestCase
 
removeSessionData(String) - Method in class com.android.testutils.SdkTestCase
 

S

schedule(Runnable, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
schedule(Callable<V>, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
scheduleAtFixedRate(Runnable, long, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - Method in class com.android.testutils.VirtualTimeScheduler
 
sCleanDirs - Static variable in class com.android.testutils.SdkTestCase
 
SdkTestCase - Class in com.android.testutils
Common test case for SDK unit tests.
SdkTestCase() - Constructor for class com.android.testutils.SdkTestCase
 
SdkTestCase.TestFile - Class in com.android.testutils
Test file description, which can copy from resource directory or from a specified hardcoded string literal, and copy into a target directory
setProperty(String, String) - Method in class com.android.testutils.SystemPropertyOverrides
Sets a system property (by calling System.setProperty(String, String)) while backing up the original value and replacing it once this class is closed.
shutdown() - Method in class com.android.testutils.VirtualTimeScheduler
 
shutdownNow() - Method in class com.android.testutils.VirtualTimeScheduler
 
sourceRelativePath - Variable in class com.android.testutils.SdkTestCase.TestFile
 
submit(Callable<T>) - Method in class com.android.testutils.VirtualTimeScheduler
 
submit(Runnable, T) - Method in class com.android.testutils.VirtualTimeScheduler
 
submit(Runnable) - Method in class com.android.testutils.VirtualTimeScheduler
 
SystemPropertyOverrides - Class in com.android.testutils
Utility to make it easier for tests to override system properties (instead of directly using System.setProperty(String, String)).
SystemPropertyOverrides() - Constructor for class com.android.testutils.SystemPropertyOverrides
 

T

targetRelativePath - Variable in class com.android.testutils.SdkTestCase.TestFile
 
TestFile() - Constructor for class com.android.testutils.SdkTestCase.TestFile
 
TestUtils - Class in com.android.testutils
Utility methods to deal with loading the test data.
TestUtils() - Constructor for class com.android.testutils.TestUtils
 
to(String) - Method in class com.android.testutils.SdkTestCase.TestFile
 

V

valueOf(String) - Static method in enum com.android.testutils.VirtualTimeRepeatKind
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.android.testutils.VirtualTimeRepeatKind
Returns an array containing the constants of this enum type, in the order they are declared.
VirtualTimeDateProvider - Class in com.android.testutils
An implementation of DateProvider that uses the virtual notion of time of a VirtualTimeScheduler to provide a presentation of "now".
VirtualTimeDateProvider(VirtualTimeScheduler) - Constructor for class com.android.testutils.VirtualTimeDateProvider
 
VirtualTimeFuture<T> - Class in com.android.testutils
Future used by the VirtualTimeScheduler to track the actions scheduled on it.
VirtualTimeRepeatKind - Enum in com.android.testutils
Used in the VirtualTimeScheduler and VirtualTimeFuture to determine if and how the scheduled job should be repeated.
VirtualTimeScheduler - Class in com.android.testutils
VirtualTimeScheduler is a ScheduledExecutorService that uses a virtual notion of time.
VirtualTimeScheduler() - Constructor for class com.android.testutils.VirtualTimeScheduler
 

W

waitFilesystemTime() - Static method in class com.android.testutils.TestUtils
Sleeps the current thread for enough time to ensure that we exceed filesystem timestamp resolution.
withSource(String) - Method in class com.android.testutils.SdkTestCase.TestFile
 
A C D E F G I M N R S T V W 
Skip navigation links