Skip navigation links
A C D E F G H I J L M N O P R S T U V W 

A

accept(T) - Method in interface org.robolectric.util.Consumer
Performs this operation on the given argument.
advanceBy(long) - Method in class org.robolectric.util.Scheduler
advanceBy(long, TimeUnit) - Method in class org.robolectric.util.Scheduler
Run all runnables that are scheduled to run in the next time interval.
advanceTo(long) - Method in class org.robolectric.util.Scheduler
Run all runnables that are scheduled before the endTime.
advanceToLastPostedRunnable() - Method in class org.robolectric.util.Scheduler
Run all runnables in the queue, and any additional runnables they schedule that are scheduled before the latest scheduled runnable currently in the queue.
advanceToNextPostedRunnable() - Method in class org.robolectric.util.Scheduler
Run the next runnable in the queue.
AndroidMetadata - Class in org.robolectric
Data related to Android tests.
AndroidMetadata(Map<String, String>, String) - Constructor for class org.robolectric.AndroidMetadata
 
andThen(Consumer<? super T>) - Method in interface org.robolectric.util.Consumer
Returns a composed Consumer that performs, in sequence, this operation followed by the after operation.
areAnyRunnable() - Method in class org.robolectric.util.Scheduler
Determine if any enqueued runnables are enqueued before the current time.

C

cancel(boolean) - Method in class org.robolectric.util.SimpleFuture
Deprecated.
 
Consumer<T> - Interface in org.robolectric.util
Represents an operation that accepts a single input argument and returns no result.
copy(InputStream, OutputStream) - Static method in class org.robolectric.util.Util
 
create(A, B) - Static method in class org.robolectric.util.Pair
 
create() - Method in class org.robolectric.util.SoftThreadLocal
 
create(String) - Method in class org.robolectric.util.TempDirectory
 
createIfNotExists(String) - Method in class org.robolectric.util.TempDirectory
 

D

debug(String, Object...) - Static method in class org.robolectric.util.Logger
Log a debug message.
destroy() - Method in class org.robolectric.util.TempDirectory
 
done() - Method in class org.robolectric.util.SimpleFuture
Deprecated.
 

E

equals(Object) - Method in class org.robolectric.util.Pair
 
equals(Object) - Method in class org.robolectric.util.PerfStatsCollector.Metric
 
error(String, Throwable) - Static method in class org.robolectric.util.Logger
Log an error message.
error(String, Object...) - Static method in class org.robolectric.util.Logger
Log an error message.

F

file(String...) - Static method in class org.robolectric.util.Util
 
file(File, String...) - Static method in class org.robolectric.util.Util
 
finished() - Method in class org.robolectric.util.PerfStatsCollector.Event
 
finished(boolean) - Method in class org.robolectric.util.PerfStatsCollector.Event
 
first - Variable in class org.robolectric.util.Pair
 
format(String, Date, Locale, TimeZone) - Static method in class org.robolectric.util.Strftime
Format a date string.

G

get(Class<T>) - Method in class org.robolectric.util.PerfStatsCollector.Metadata
 
get() - Method in interface org.robolectric.util.PerfStatsCollector.ThrowingSupplier
 
get() - Method in class org.robolectric.util.SimpleFuture
Deprecated.
 
get(long, TimeUnit) - Method in class org.robolectric.util.SimpleFuture
Deprecated.
 
get() - Method in class org.robolectric.util.SoftThreadLocal
 
getCount() - Method in class org.robolectric.util.PerfStatsCollector.Metric
 
getCurrentTime() - Method in class org.robolectric.util.Scheduler
Get the current time (as seen by the scheduler), in milliseconds.
getDeviceBootProperties() - Method in class org.robolectric.AndroidMetadata
 
getElapsedNs() - Method in class org.robolectric.util.PerfStatsCollector.Metric
 
getIdleState() - Method in class org.robolectric.util.Scheduler
Retrieves the current idling state of this Scheduler.
getInstance() - Static method in class org.robolectric.util.PerfStatsCollector
 
getMetadata() - Method in class org.robolectric.util.PerfStatsCollector
 
getMetrics() - Method in class org.robolectric.util.PerfStatsCollector
 
getName() - Method in class org.robolectric.util.PerfStatsCollector.Metric
 
getResourcesMode() - Method in class org.robolectric.AndroidMetadata
 

H

hashCode() - Method in class org.robolectric.util.Pair
 
hashCode() - Method in class org.robolectric.util.PerfStatsCollector.Metric
 

I

idleConstantly(boolean) - Method in class org.robolectric.util.Scheduler
Deprecated.
This method is ambiguous in how it should behave when turning off constant idle. Use Scheduler.setIdleState(IdleState) instead to explicitly set the state.
info(String, Object...) - Static method in class org.robolectric.util.Logger
Log an info message.
intArrayToList(int[]) - Static method in class org.robolectric.util.Util
 
isCancelled() - Method in class org.robolectric.util.SimpleFuture
Deprecated.
 
isPaused() - Method in class org.robolectric.util.Scheduler
Determine if the scheduler is paused.
isSuccess() - Method in class org.robolectric.util.PerfStatsCollector.Metric
 

J

Join - Class in org.robolectric.util
Utility class used to join strings together with a delimiter.
Join() - Constructor for class org.robolectric.util.Join
 
join(String, Collection) - Static method in class org.robolectric.util.Join
 
join(String, Object...) - Static method in class org.robolectric.util.Join
 

L

Logger - Class in org.robolectric.util
Logger for Robolectric.
Logger() - Constructor for class org.robolectric.util.Logger
 
loggingEnabled() - Static method in class org.robolectric.util.Logger
 

M

measure(String, PerfStatsCollector.ThrowingSupplier<T, E>) - Method in class org.robolectric.util.PerfStatsCollector
 
measure(String, PerfStatsCollector.ThrowingRunnable<E>) - Method in class org.robolectric.util.PerfStatsCollector
 
Metric(String, int, int, boolean) - Constructor for class org.robolectric.util.PerfStatsCollector.Metric
 
Metric(String, boolean) - Constructor for class org.robolectric.util.PerfStatsCollector.Metric
 

N

NamedStream - Interface in org.robolectric.util
Marker interface for InputStream that need special handling.
NANOS_PER_MS - Static variable in class org.robolectric.util.TimeUtils
 

O

org.robolectric - package org.robolectric
 
org.robolectric.util - package org.robolectric.util
Package containing general utility classes.

P

Pair<F,S> - Class in org.robolectric.util
Container to ease passing around a tuple of two objects.
Pair(F, S) - Constructor for class org.robolectric.util.Pair
 
parseInt(String) - Static method in class org.robolectric.util.Util
 
pause() - Method in class org.robolectric.util.Scheduler
Pause the scheduler.
PerfStatsCollector - Class in org.robolectric.util
Collects performance statistics for later reporting via PerfStatsReporter.
PerfStatsCollector() - Constructor for class org.robolectric.util.PerfStatsCollector
 
PerfStatsCollector.Event - Class in org.robolectric.util
Event for perf stats collection.
PerfStatsCollector.Metadata - Class in org.robolectric.util
Metadata for perf stats collection.
PerfStatsCollector.Metric - Class in org.robolectric.util
Metric for perf stats collection.
PerfStatsCollector.ThrowingRunnable<F extends java.lang.Exception> - Interface in org.robolectric.util
Runnable that throws an exception.
PerfStatsCollector.ThrowingSupplier<T,F extends java.lang.Exception> - Interface in org.robolectric.util
Supplier that throws an exception.
PerfStatsReporter - Interface in org.robolectric.util
 
post(Runnable) - Method in class org.robolectric.util.Scheduler
Add a runnable to the queue.
postAtFrontOfQueue(Runnable) - Method in class org.robolectric.util.Scheduler
Add a runnable to the head of the queue.
postDelayed(Runnable, long) - Method in class org.robolectric.util.Scheduler
Add a runnable to the queue to be run after a delay.
postDelayed(Runnable, long, TimeUnit) - Method in class org.robolectric.util.Scheduler
Add a runnable to the queue to be run after a delay.
putMetadata(Class<T>, T) - Method in class org.robolectric.util.PerfStatsCollector
 

R

readBytes(InputStream) - Static method in class org.robolectric.util.Util
This method consumes an input stream and returns its content.
remove(Runnable) - Method in class org.robolectric.util.Scheduler
Remove a runnable from the queue.
report(PerfStatsCollector.Metadata, Collection<PerfStatsCollector.Metric>) - Method in interface org.robolectric.util.PerfStatsReporter
Report performance stats.
reset() - Method in class org.robolectric.util.PerfStatsCollector
 
reset() - Method in class org.robolectric.util.Scheduler
Reset the internal state of the Scheduler.
reverse(T[]) - Static method in class org.robolectric.util.Util
 
run() - Method in interface org.robolectric.util.PerfStatsCollector.ThrowingRunnable
 
run() - Method in class org.robolectric.util.SimpleFuture
Deprecated.
 
run() - Method in class org.robolectric.util.TestRunnable
 
runOneTask() - Method in class org.robolectric.util.Scheduler
Run the next runnable in the queue.

S

Scheduler - Class in org.robolectric.util
Class that manages a queue of Runnables that are scheduled to run now (or at some time in the future).
Scheduler() - Constructor for class org.robolectric.util.Scheduler
 
Scheduler.IdleState - Enum in org.robolectric.util
Describes the current state of a Scheduler.
second - Variable in class org.robolectric.util.Pair
 
set(T) - Method in class org.robolectric.util.SoftThreadLocal
 
setEnabled(boolean) - Method in class org.robolectric.util.PerfStatsCollector
If not enabled, don’t bother retaining perf stats, saving some memory and CPU cycles.
setIdleState(Scheduler.IdleState) - Method in class org.robolectric.util.Scheduler
Sets the current idling state of this Scheduler.
SimpleFuture<T> - Class in org.robolectric.util
Deprecated.
SimpleFuture(Callable<T>) - Constructor for class org.robolectric.util.SimpleFuture
Deprecated.
 
size() - Method in class org.robolectric.util.Scheduler
Return the number of enqueued runnables.
SoftThreadLocal<T> - Class in org.robolectric.util
Soft reference to a java.lang.ThreadLocal.
SoftThreadLocal() - Constructor for class org.robolectric.util.SoftThreadLocal
 
startEvent(String) - Method in class org.robolectric.util.PerfStatsCollector
 
Strftime - Class in org.robolectric.util
An implementation of the Unix strftime with some glibc extensions.
Strftime() - Constructor for class org.robolectric.util.Strftime
 
strict(String, Throwable) - Static method in class org.robolectric.util.Logger
 
strict(String, Object...) - Static method in class org.robolectric.util.Logger
 

T

TempDirectory - Class in org.robolectric.util
 
TempDirectory(String) - Constructor for class org.robolectric.util.TempDirectory
 
TestRunnable - Class in org.robolectric.util
 
TestRunnable() - Constructor for class org.robolectric.util.TestRunnable
 
TimeUtils - Class in org.robolectric.util
Utility methods for dealing with time.
TimeUtils() - Constructor for class org.robolectric.util.TimeUtils
 
toString() - Method in class org.robolectric.util.PerfStatsCollector.Metric
 

U

unPause() - Method in class org.robolectric.util.Scheduler
Un-pause the scheduler.
url(String) - Static method in class org.robolectric.util.Util
 
Util - Class in org.robolectric.util
Generic collection of utility methods.
Util() - Constructor for class org.robolectric.util.Util
 

V

valueOf(String) - Static method in enum org.robolectric.util.Scheduler.IdleState
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.robolectric.util.Scheduler.IdleState
Returns an array containing the constants of this enum type, in the order they are declared.

W

warn(String, Object...) - Static method in class org.robolectric.util.Logger
Log a warning message.
wasRun - Variable in class org.robolectric.util.TestRunnable
 
A C D E F G H I J L M N O P R S T U V W 
Skip navigation links