Index

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

A

addReporters(List<PerfStatsReporter>) - Method in class org.robolectric.util.PerfStatsPublisher
 
advanceBy(long) - Method in class org.robolectric.util.Scheduler
advanceBy(long, TimeUnit) - Method in class org.robolectric.util.Scheduler
Deprecated.
Run all runnables that are scheduled to run in the next time interval.
advanceTo(long) - Method in class org.robolectric.util.Scheduler
Deprecated.
Run all runnables that are scheduled before the endTime.
advanceToLastPostedRunnable() - Method in class org.robolectric.util.Scheduler
Deprecated.
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
Deprecated.
Run the next runnable in the queue.
AndroidMetadata - Class in org.robolectric
Data related to Android tests.
AndroidMetadata(Map<String, String>) - Constructor for class org.robolectric.AndroidMetadata
 
areAnyRunnable() - Method in class org.robolectric.util.Scheduler
Deprecated.
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

CONSTANT_IDLE - Enum constant in enum org.robolectric.util.Scheduler.IdleState
Deprecated.
The Scheduler will automatically execute any runnables (past, present or future) as soon as they are posted and advance the clock if necessary.
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.
Dependency Resolution - Search tag in class org.robolectric.util.inject.Injector
Section
destroy() - Method in class org.robolectric.util.TempDirectory
 
doFinalReportOnShutdown() - Method in class org.robolectric.util.PerfStatsPublisher
Register a JVM shutdown hook that calls PerfStatsReporter#finalReport on all reporters
doFinalReportOnShutdown(Runnable) - Method in class org.robolectric.util.PerfStatsPublisher
A variant of PerfStatsPublisher.doFinalReportOnShutdown() that allows running a task before finalReport is called

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

finalReport() - Method in class org.robolectric.util.SimplePerfStatsReporter
 
finished() - Method in class org.robolectric.util.PerfStatsCollector.Event
 
finished(boolean) - Method in class org.robolectric.util.PerfStatsCollector.Event
 

G

get() - Method in interface org.robolectric.util.PerfStatsCollector.ThrowingSupplier
 
getBasePath() - Method in class org.robolectric.util.TempDirectory
 
getCurrentTime() - Method in class org.robolectric.util.Scheduler
Deprecated.
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
Deprecated.
Retrieves the current idling state of this Scheduler.
getInstance() - Static method in class org.robolectric.util.PerfStatsCollector
 
getInstance() - Static method in class org.robolectric.util.PerfStatsPublisher
 
getInstance(Class<T>) - Method in class org.robolectric.util.inject.Injector
Finds an instance for the given class.
getLastScheduledTaskTime() - Method in class org.robolectric.util.Scheduler
Deprecated.
 
getMetadata() - Method in class org.robolectric.util.PerfStatsCollector
 
getMetrics() - Method in class org.robolectric.util.PerfStatsCollector
 
getNextScheduledTaskTime() - Method in class org.robolectric.util.Scheduler
Deprecated.
 

H

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

I

incrementCount(String) - Method in class org.robolectric.util.PerfStatsCollector
 
info(String, Object...) - Static method in class org.robolectric.util.Logger
Log an info message.
Injection - Search tag in class org.robolectric.util.inject.Injector
Section
InjectionException - Exception Class in org.robolectric.util.inject
 
InjectionException(Class<?>, String) - Constructor for exception class org.robolectric.util.inject.InjectionException
 
InjectionException(Class<?>, String, Throwable) - Constructor for exception class org.robolectric.util.inject.InjectionException
 
InjectionException(Class<?>, Throwable) - Constructor for exception class org.robolectric.util.inject.InjectionException
 
InjectionException(Injector.Key<?>, String) - Constructor for exception class org.robolectric.util.inject.InjectionException
 
InjectionException(Injector.Key<?>, String, Throwable) - Constructor for exception class org.robolectric.util.inject.InjectionException
 
InjectionException(Injector.Key<?>, Throwable) - Constructor for exception class 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
 
isCollection() - Method in class org.robolectric.util.inject.Injector.Key
 
isEnabled() - Method in class org.robolectric.util.PerfStatsCollector
 
isLinux() - Static method in class org.robolectric.util.OsUtil
 
isMac() - Static method in class org.robolectric.util.OsUtil
 
isPaused() - Method in class org.robolectric.util.Scheduler
Deprecated.
Determine if the scheduler is paused.
isWindows() - Static method in class org.robolectric.util.OsUtil
 

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.
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
 
OsUtil - Class in org.robolectric.util
OS-related utilities.

P

pathFrom(URL) - Static method in class org.robolectric.util.Util
 
pause() - Method in class org.robolectric.util.Scheduler
Deprecated.
Pause the scheduler.
PAUSED - Enum constant in enum org.robolectric.util.Scheduler.IdleState
Deprecated.
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> - Interface in org.robolectric.util
Runnable that throws an exception.
PerfStatsCollector.ThrowingSupplier<T,F> - Interface in org.robolectric.util
Supplier that throws an exception.
PerfStatsPublisher - Class in org.robolectric.util
Helper class used by the test runner to manage PerfStatsReporters and publish data
post(Runnable) - Method in class org.robolectric.util.Scheduler
Deprecated.
Add a runnable to the queue.
postAtFrontOfQueue(Runnable) - Method in class org.robolectric.util.Scheduler
Deprecated.
Add a runnable to the head of the queue.
postDelayed(Runnable, long) - Method in class org.robolectric.util.Scheduler
Deprecated.
Add a runnable to the queue to be run after a delay.
postDelayed(Runnable, long, TimeUnit) - Method in class org.robolectric.util.Scheduler
Deprecated.
Add a runnable to the queue to be run after a delay.
putMetadata(Metadata) - Method in class org.robolectric.util.PerfStatsCollector
 

R

recordCount(String, int) - Method in class org.robolectric.util.PerfStatsCollector
Records a precise count for the given event.
remove(Runnable) - Method in class org.robolectric.util.Scheduler
Deprecated.
Remove a runnable from the queue.
report(Metadata, Collection<Metric>) - Method in class org.robolectric.util.SimplePerfStatsReporter
 
report(PerfStatsCollector) - Method in class org.robolectric.util.PerfStatsPublisher
Report the currently stored metrics to the registered PerfStatsReporter.
reset() - Method in class org.robolectric.util.PerfStatsCollector
 
reset() - Method in class org.robolectric.util.Scheduler
Deprecated.
Reset the internal state of the Scheduler.
run() - Method in interface org.robolectric.util.PerfStatsCollector.ThrowingRunnable
 
runOneTask() - Method in class org.robolectric.util.Scheduler
Deprecated.
Run the next runnable in the queue.

S

Scheduler - Class in org.robolectric.util
Deprecated.
Scheduler APIs only function when using LooperMode.LEGACY. Switch to LooperMode.PAUSED and use
invalid reference
ShadowLooper
APIs instead.
Scheduler() - Constructor for class org.robolectric.util.Scheduler
Deprecated.
 
Scheduler.IdleState - Enum in org.robolectric.util
Deprecated.
Describes the current state of a Scheduler.
Scopes - Search tag in class org.robolectric.util.inject.Injector
Section
setEnabled(boolean) - Method in class org.robolectric.util.PerfStatsCollector
Call to explicitly disable perf stats collection.
setIdleState(Scheduler.IdleState) - Method in class org.robolectric.util.Scheduler
Deprecated.
Sets the current idling state of this Scheduler.
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
Deprecated.
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.
startEvent(String) - Method in class org.robolectric.util.PerfStatsCollector
 
strict(String, Object...) - Static method in class org.robolectric.util.Logger
 
strict(String, Throwable) - Static method in class org.robolectric.util.Logger
 
Supersedes - 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
A helper class for working with temporary directories.
TempDirectory() - Constructor for class org.robolectric.util.TempDirectory
 
TempDirectory(String) - Constructor for class org.robolectric.util.TempDirectory
 
Thread Safety - Search tag in class org.robolectric.util.inject.Injector
Section
toString() - Method in class org.robolectric.util.inject.Injector.Key
 

U

unPause() - Method in class org.robolectric.util.Scheduler
Deprecated.
Un-pause the scheduler.
UNPAUSED - Enum constant in enum org.robolectric.util.Scheduler.IdleState
Deprecated.
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.Supersedes
The type that is superceded by the annotated type.
valueOf(String) - Static method in enum org.robolectric.util.Scheduler.IdleState
Deprecated.
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.robolectric.util.Scheduler.IdleState
Deprecated.
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.
A B C D E F G H I K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form