Index

A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

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.
AutoFactory - Annotation Type in org.robolectric.util.inject
Indicates that the annotated type will be used as a factory.

B

bind(Class<T>, Class<? extends T>) - Method in class org.robolectric.util.inject.Injector.Builder
Registers an implementing class for the given dependency type.
bind(Class<T>, T) - Method in class org.robolectric.util.inject.Injector.Builder
Registers an instance for the given dependency type.
bind(Injector.Key<T>, T) - Method in class org.robolectric.util.inject.Injector.Builder
Registers an instance for the given key.
bindDefault(Class<T>, Class<? extends T>) - Method in class org.robolectric.util.inject.Injector.Builder
Registers a fallback implementing class for the given dependency type.
build() - Method in class org.robolectric.util.inject.Injector.Builder
Builds an injector as previously configured.
Builder() - Constructor for class org.robolectric.util.inject.Injector.Builder
Creates a new builder.
Builder(ClassLoader) - Constructor for class org.robolectric.util.inject.Injector.Builder
Creates a new builder using the specified ClassLoader for plugin loading.
Builder(Injector) - Constructor for class org.robolectric.util.inject.Injector.Builder
Creates a new builder with a parent injector.
Builder(Injector, ClassLoader) - Constructor for class org.robolectric.util.inject.Injector.Builder
Creates a new builder with a parent injector and the specified ClassLoader for plugin loading.

C

cancel(boolean) - Method in class org.robolectric.util.SimpleFuture
Deprecated.
 
CONSTANT_IDLE - Enum constant in enum org.robolectric.util.Scheduler.IdleState
The Scheduler will automatically execute any runnables (past, present or future) as soon as they are posted and advance the clock if necessary.
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() - Method in class org.robolectric.util.SoftThreadLocal
 
create(String) - Method in class org.robolectric.util.TempDirectory
 
createFile(String, 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.inject.Injector.Key
 
error(String, Object...) - Static method in class org.robolectric.util.Logger
Log an error message.
error(String, Throwable) - Static method in class org.robolectric.util.Logger
Log an error message.

F

file(File, String...) - Static method in class org.robolectric.util.Util
 
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
 
format(String, Date, Locale, TimeZone) - Static method in class org.robolectric.util.Strftime
Format a date string.

G

get() - Method in interface org.robolectric.util.PerfStatsCollector.ThrowingSupplier
 
get() - Method in class org.robolectric.util.SimpleFuture
Deprecated.
 
get() - Method in class org.robolectric.util.SoftThreadLocal
 
get(long, TimeUnit) - Method in class org.robolectric.util.SimpleFuture
Deprecated.
 
getBasePath() - Method in class org.robolectric.util.TempDirectory
 
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
 
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
 
getInstance(Class<T>) - Method in class org.robolectric.util.inject.Injector
Finds an instance for the given class.
getJavaVersion() - Static method in class org.robolectric.util.Util
Returns the Java version as an int value.
getLastScheduledTaskTime() - Method in class org.robolectric.util.Scheduler
 
getMetadata() - Method in class org.robolectric.util.PerfStatsCollector
 
getMetrics() - Method in class org.robolectric.util.PerfStatsCollector
 
getNextScheduledTaskTime() - Method in class org.robolectric.util.Scheduler
 
getResourcesMode() - Method in class org.robolectric.AndroidMetadata
 

H

hashCode() - Method in class org.robolectric.util.inject.Injector.Key
 

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.
incrementCount(String) - Method in class org.robolectric.util.PerfStatsCollector
 
info(String, Object...) - Static method in class org.robolectric.util.Logger
Log an info message.
InjectionException - Exception in org.robolectric.util.inject
 
InjectionException(Class<?>, String) - Constructor for exception org.robolectric.util.inject.InjectionException
 
InjectionException(Class<?>, String, Throwable) - Constructor for exception org.robolectric.util.inject.InjectionException
 
InjectionException(Class<?>, Throwable) - Constructor for exception org.robolectric.util.inject.InjectionException
 
InjectionException(Injector.Key<?>, String) - Constructor for exception org.robolectric.util.inject.InjectionException
 
InjectionException(Injector.Key<?>, String, Throwable) - Constructor for exception org.robolectric.util.inject.InjectionException
 
InjectionException(Injector.Key<?>, Throwable) - Constructor for exception org.robolectric.util.inject.InjectionException
 
Injector - Class in org.robolectric.util.inject
A tiny dependency injection and plugin helper for Robolectric.
Injector() - Constructor for class org.robolectric.util.inject.Injector
Creates a new empty injector.
Injector.Builder - Class in org.robolectric.util.inject
Builder for Injector.
Injector.Key<T> - Class in org.robolectric.util.inject
Identifies an injection point.
isArray() - Method in class org.robolectric.util.inject.Injector.Key
 
isCancelled() - Method in class org.robolectric.util.SimpleFuture
Deprecated.
 
isCollection() - Method in class org.robolectric.util.inject.Injector.Key
 
isPaused() - Method in class org.robolectric.util.Scheduler
Determine if the scheduler is paused.

J

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

K

Key(Type, String) - Constructor for class org.robolectric.util.inject.Injector.Key
 

L

lifecycle(String, Object...) - Static method in class org.robolectric.util.Logger
Log a lifecycle message.
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.ThrowingRunnable<E>) - Method in class org.robolectric.util.PerfStatsCollector
 
measure(String, PerfStatsCollector.ThrowingSupplier<T, E>) - Method in class org.robolectric.util.PerfStatsCollector
 

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
 
newScopeBuilder(ClassLoader) - Method in class org.robolectric.util.inject.Injector
 

O

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

P

parseInt(String) - Static method in class org.robolectric.util.Util
 
pathFrom(URL) - Static method in class org.robolectric.util.Util
 
pause() - Method in class org.robolectric.util.Scheduler
Pause the scheduler.
PAUSED - Enum constant in enum org.robolectric.util.Scheduler.IdleState
The Scheduler will not automatically advance the clock nor execute any runnables.
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.ThrowingRunnable<F extends Exception> - Interface in org.robolectric.util
Runnable that throws an exception.
PerfStatsCollector.ThrowingSupplier<T,F extends Exception> - Interface in org.robolectric.util
Supplier that throws an exception.
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, and closes it.
register() - Method in class org.robolectric.util.SimplePerfStatsReporter
 
remove(Runnable) - Method in class org.robolectric.util.Scheduler
Remove a runnable from the queue.
report(Metadata, Collection<Metric>) - Method in class org.robolectric.util.SimplePerfStatsReporter
 
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.
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.
This class can introduce deadlocks, since its lock is held while invoking run().
SimpleFuture(Callable<T>) - Constructor for class org.robolectric.util.SimpleFuture
Deprecated.
 
SimplePerfStatsReporter - Class in org.robolectric.util
Simple implementation of PerfStatsReporter that writes stats to stdout.
SimplePerfStatsReporter() - Constructor for class org.robolectric.util.SimplePerfStatsReporter
 
size() - Method in class org.robolectric.util.Scheduler
Return the number of enqueued runnables.
sneakyThrow(Throwable) - Static method in class org.robolectric.util.Util
Re-throw t (even if it's a checked exception) without requiring a throws declaration.
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, Object...) - Static method in class org.robolectric.util.Logger
 
strict(String, Throwable) - Static method in class org.robolectric.util.Logger
 
Supercedes - Annotation Type in org.robolectric.util.inject
Indicates that the annotated type is intended as a replacement for another type.

T

TempDirectory - Class in org.robolectric.util
 
TempDirectory() - Constructor for class org.robolectric.util.TempDirectory
 
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.inject.Injector.Key
 

U

unPause() - Method in class org.robolectric.util.Scheduler
Un-pause the scheduler.
UNPAUSED - Enum constant in enum org.robolectric.util.Scheduler.IdleState
The Scheduler's clock won't automatically advance the clock but will automatically execute any runnables scheduled to execute at or before the current time.
Util - Class in org.robolectric.util
Generic collection of utility methods.
Util() - Constructor for class org.robolectric.util.Util
 

V

value() - Element in annotation type org.robolectric.util.inject.Supercedes
The type that is superceded by the annotated type.
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 B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form