A B C D F G H I L M N O P Q R S T V 
All Classes All Packages

A

ALL_SDKS - Static variable in annotation type org.robolectric.annotation.Config
 
annotationType() - Method in class org.robolectric.annotation.Config.Implementation
 
application - Variable in class org.robolectric.annotation.Config.Builder
 
application() - Method in annotation type org.robolectric.annotation.Config
The Application class to use in the test, this takes precedence over any application specified in the AndroidManifest.xml.
application() - Method in class org.robolectric.annotation.Config.Implementation
 
assetDir - Variable in class org.robolectric.annotation.Config.Builder
 
assetDir() - Method in annotation type org.robolectric.annotation.Config
Deprecated.
If you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configure
assetDir() - Method in class org.robolectric.annotation.Config.Implementation
 

B

build() - Method in class org.robolectric.annotation.Config.Builder
 
Builder() - Constructor for class org.robolectric.annotation.Config.Builder
 
Builder(Config) - Constructor for class org.robolectric.annotation.Config.Builder
 

C

callThroughByDefault() - Method in annotation type org.robolectric.annotation.Implements
If true, Robolectric will invoke the actual Android code for any method that isn't shadowed.
className() - Method in annotation type org.robolectric.annotation.Implements
Android class name (if the Class object is not accessible).
Config - Annotation Type in org.robolectric.annotation
Configuration settings that can be used on a per-class or per-test basis.
Config.Builder - Class in org.robolectric.annotation
 
Config.Implementation - Class in org.robolectric.annotation
 
ConfigUtils - Class in org.robolectric.annotation.internal
 

D

DEFAULT_APPLICATION - Static variable in annotation type org.robolectric.annotation.Config
 
DEFAULT_ASSET_FOLDER - Static variable in annotation type org.robolectric.annotation.Config
 
DEFAULT_MANIFEST_NAME - Static variable in annotation type org.robolectric.annotation.Config
 
DEFAULT_PACKAGE_NAME - Static variable in annotation type org.robolectric.annotation.Config
 
DEFAULT_QUALIFIERS - Static variable in annotation type org.robolectric.annotation.Config
 
DEFAULT_RES_FOLDER - Static variable in annotation type org.robolectric.annotation.Config
 
DEFAULT_SDK - Static variable in annotation type org.robolectric.annotation.Implementation
 
DEFAULT_VALUE_INT - Static variable in annotation type org.robolectric.annotation.Config
 
DEFAULT_VALUE_STRING - Static variable in annotation type org.robolectric.annotation.Config
 
defaults() - Static method in class org.robolectric.annotation.Config.Builder
This returns actual default values where they exist, in the sense that we could use the values, rather than markers like -1 or --default.

F

fromProperties(Properties) - Static method in class org.robolectric.annotation.Config.Implementation
 

G

GetInstallerPackageNameMode - Annotation Type in org.robolectric.annotation
A org.robolectric.pluginapi.config.Configurer annotation for controlling how Robolectric executes PackageManager#getInstallerPackageName method.
GetInstallerPackageNameMode.Mode - Enum in org.robolectric.annotation
Specifies the different ShadowApplicationPackageManager#getInstallerPackageName modes.

H

HiddenApi - Annotation Type in org.robolectric.annotation
Indicates that the annotated method is hidden in the public Android API.

I

Implementation - Annotation Type in org.robolectric.annotation
Indicates that a method declaration is intended to shadow a method with the same signature on the associated Android class.
Implementation(int[], int, int, String, String, String, String, String, Class<?>[], String[], Class<? extends Application>, String[]) - Constructor for class org.robolectric.annotation.Config.Implementation
 
Implements - Annotation Type in org.robolectric.annotation
Indicates that a class declaration is intended to shadow an Android class declaration.
Implements.DefaultShadowPicker - Interface in org.robolectric.annotation
 
instrumentedPackages - Variable in class org.robolectric.annotation.Config.Builder
 
instrumentedPackages() - Method in class org.robolectric.annotation.Config.Implementation
 
instrumentedPackages() - Method in annotation type org.robolectric.annotation.Config
A list of instrumented packages, in addition to those that are already instrumented.
isDefaultApplication(Class<? extends Application>) - Static method in class org.robolectric.annotation.Config.Builder
 
isInAndroidSdk() - Method in annotation type org.robolectric.annotation.Implements
Denotes that this type exists in the public Android SDK.
issueId() - Method in annotation type org.robolectric.annotation.GetInstallerPackageNameMode
Optional string for storing the issue / bug id tracking the fixing of the affected tests and thus removal of this annotation.
issueId() - Method in annotation type org.robolectric.annotation.TextLayoutMode
Optional string for storing the issue / bug id tracking the fixing of the affected tests and thus removal of this annotation.

L

LazyApplication - Annotation Type in org.robolectric.annotation.experimental
A org.robolectric.pluginapi.config.Configurer annotation that dictates whether or not Robolectric should lazily instantiate the Application under test.
LazyApplication.LazyLoad - Enum in org.robolectric.annotation.experimental
Whether or not the Application should be lazily loaded
LEGACY - org.robolectric.annotation.GetInstallerPackageNameMode.Mode
Robolectric's prior behavior when calling getInstallerPackageName method.
LEGACY - org.robolectric.annotation.LooperMode.Mode
Deprecated.
use LooperMode.PAUSED
LEGACY - org.robolectric.annotation.TextLayoutMode.Mode
Deprecated.
LEGACY mode is inaccurate, has known bugs and will be removed in a future release.
libraries - Variable in class org.robolectric.annotation.Config.Builder
 
libraries() - Method in class org.robolectric.annotation.Config.Implementation
 
libraries() - Method in annotation type org.robolectric.annotation.Config
Deprecated.
If you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configure
LooperMode - Annotation Type in org.robolectric.annotation
A org.robolectric.pluginapi.config.Configurer annotation for controlling Robolectric's Looper behavior.
LooperMode.Mode - Enum in org.robolectric.annotation
Specifies the different supported Looper modes.
looseSignatures() - Method in annotation type org.robolectric.annotation.Implements
If true, when an exact method signature match isn't found, Robolectric will look for a method with the same name but with all argument types replaced with java.lang.Object.

M

manifest - Variable in class org.robolectric.annotation.Config.Builder
 
manifest() - Method in class org.robolectric.annotation.Config.Implementation
 
manifest() - Method in annotation type org.robolectric.annotation.Config
Deprecated.
If you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configure builds http://robolectric.org/getting-started/
maxSdk - Variable in class org.robolectric.annotation.Config.Builder
 
maxSdk() - Method in class org.robolectric.annotation.Config.Implementation
 
maxSdk() - Method in annotation type org.robolectric.annotation.Config
The maximum Android SDK level to emulate when running tests on multiple API versions.
maxSdk() - Method in annotation type org.robolectric.annotation.Implementation
The annotated shadow method will be invoked only for the specified SDK or lesser.
maxSdk() - Method in annotation type org.robolectric.annotation.Implements
If specified, the shadow class will be applied only for this SDK or lesser.
minSdk - Variable in class org.robolectric.annotation.Config.Builder
 
minSdk() - Method in class org.robolectric.annotation.Config.Implementation
 
minSdk() - Method in annotation type org.robolectric.annotation.Config
The minimum Android SDK level to emulate when running tests on multiple API versions.
minSdk() - Method in annotation type org.robolectric.annotation.Implementation
The annotated shadow method will be invoked only for the specified SDK or greater.
minSdk() - Method in annotation type org.robolectric.annotation.Implements
If specified, the shadow class will be applied only for this SDK or greater.

N

NEWEST_SDK - Static variable in annotation type org.robolectric.annotation.Config
 
NONE - Static variable in annotation type org.robolectric.annotation.Config
TODO(vnayar): Create named constants for default values instead of magic numbers.

O

OFF - org.robolectric.annotation.experimental.LazyApplication.LazyLoad
 
OLDEST_SDK - Static variable in annotation type org.robolectric.annotation.Config
 
ON - org.robolectric.annotation.experimental.LazyApplication.LazyLoad
 
org.robolectric.annotation - package org.robolectric.annotation
Package containing Robolectric annotations.
org.robolectric.annotation.experimental - package org.robolectric.annotation.experimental
 
org.robolectric.annotation.internal - package org.robolectric.annotation.internal
 
org.robolectric.shadow.api - package org.robolectric.shadow.api
 
overlay(Config) - Method in class org.robolectric.annotation.Config.Builder
 

P

packageName - Variable in class org.robolectric.annotation.Config.Builder
 
packageName() - Method in class org.robolectric.annotation.Config.Implementation
 
packageName() - Method in annotation type org.robolectric.annotation.Config
Deprecated.
To change your package name please override the applicationId in your build system. Changing package name here is broken as the package name will no longer match the package name encoded in the arsc resources file. If you are looking to simulate another application you can create another applications Context using Context.createPackageContext(String, int). Note that you must add this package to org.robolectric.shadows.ShadowPackageManager#addPackage(android.content.pm.PackageInfo) first.
parseSdkArrayProperty(String) - Static method in class org.robolectric.annotation.internal.ConfigUtils
 
parseSdkInt(String) - Static method in class org.robolectric.annotation.internal.ConfigUtils
 
parseStringArrayProperty(String) - Static method in class org.robolectric.annotation.internal.ConfigUtils
 
PAUSED - org.robolectric.annotation.LooperMode.Mode
A mode that more accurately models real Android's Looper behavior.
pickShadowClass() - Method in interface org.robolectric.shadow.api.ShadowPicker
Determines the shadow class to be used depending on the configuration of the org.robolectric.internal.Environment.

Q

qualifiers - Variable in class org.robolectric.annotation.Config.Builder
 
qualifiers() - Method in class org.robolectric.annotation.Config.Implementation
 
qualifiers() - Method in annotation type org.robolectric.annotation.Config
Qualifiers specifying device configuration for this test, such as "fr-normal-port-hdpi".

R

REALISTIC - org.robolectric.annotation.GetInstallerPackageNameMode.Mode
The new, real behavior when calling getInstallerPackageName method.
REALISTIC - org.robolectric.annotation.TextLayoutMode.Mode
Deprecated.
REALTISTIC is the default mode and does not need to be stated explicity.
RealObject - Annotation Type in org.robolectric.annotation
Shadow fields annotated @RealObject will have the real instance injected.
ReflectorObject - Annotation Type in org.robolectric.annotation
Serves to cache the reflector object instance and lower test runtime.
Resetter - Annotation Type in org.robolectric.annotation
Indicates that the annotated method is used to reset static state in a shadow.
resourceDir - Variable in class org.robolectric.annotation.Config.Builder
 
resourceDir() - Method in class org.robolectric.annotation.Config.Implementation
 
resourceDir() - Method in annotation type org.robolectric.annotation.Config
Deprecated.
If you are using at least Android Studio 3.0 alpha 5 or Bazel's android_local_test please migrate to the preferred way to configure

S

sdk - Variable in class org.robolectric.annotation.Config.Builder
 
sdk() - Method in class org.robolectric.annotation.Config.Implementation
 
sdk() - Method in annotation type org.robolectric.annotation.Config
The Android SDK level to emulate.
setApplication(Class<? extends Application>) - Method in class org.robolectric.annotation.Config.Builder
 
setAssetDir(String) - Method in class org.robolectric.annotation.Config.Builder
 
setInstrumentedPackages(String...) - Method in class org.robolectric.annotation.Config.Builder
 
setLibraries(String...) - Method in class org.robolectric.annotation.Config.Builder
 
setManifest(String) - Method in class org.robolectric.annotation.Config.Builder
 
setMaxSdk(int) - Method in class org.robolectric.annotation.Config.Builder
 
setMinSdk(int) - Method in class org.robolectric.annotation.Config.Builder
 
setPackageName(String) - Method in class org.robolectric.annotation.Config.Builder
 
setQualifiers(String) - Method in class org.robolectric.annotation.Config.Builder
 
setResourceDir(String) - Method in class org.robolectric.annotation.Config.Builder
 
setSdk(int...) - Method in class org.robolectric.annotation.Config.Builder
 
setShadows(Class<?>...) - Method in class org.robolectric.annotation.Config.Builder
 
shadowPicker() - Method in annotation type org.robolectric.annotation.Implements
If specified, the picker will be instantiated and called from within the newly-created Robolectric classloader.
ShadowPicker<T> - Interface in org.robolectric.shadow.api
 
shadows - Variable in class org.robolectric.annotation.Config.Builder
 
shadows() - Method in class org.robolectric.annotation.Config.Implementation
 
shadows() - Method in annotation type org.robolectric.annotation.Config
A list of shadow classes to enable, in addition to those that are already present.

T

TARGET_SDK - Static variable in annotation type org.robolectric.annotation.Config
 
TextLayoutMode - Annotation Type in org.robolectric.annotation
A org.robolectric.pluginapi.config.Configurer annotation for controlling how Robolectric performs UI layout.
TextLayoutMode.Mode - Enum in org.robolectric.annotation
Specifies the different supported Text layout modes.
toString() - Method in class org.robolectric.annotation.Config.Implementation
 

V

value() - Method in annotation type org.robolectric.annotation.experimental.LazyApplication
Whether or not the Application should be lazily loaded
value() - Method in annotation type org.robolectric.annotation.GetInstallerPackageNameMode
 
value() - Method in annotation type org.robolectric.annotation.Implements
The Android class to be shadowed.
value() - Method in annotation type org.robolectric.annotation.LooperMode
Set the Looper mode.
value() - Method in annotation type org.robolectric.annotation.TextLayoutMode
 
valueOf(String) - Static method in enum org.robolectric.annotation.experimental.LazyApplication.LazyLoad
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.robolectric.annotation.GetInstallerPackageNameMode.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.robolectric.annotation.LooperMode.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.robolectric.annotation.TextLayoutMode.Mode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.robolectric.annotation.experimental.LazyApplication.LazyLoad
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.robolectric.annotation.GetInstallerPackageNameMode.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.robolectric.annotation.LooperMode.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.robolectric.annotation.TextLayoutMode.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D F G H I L M N O P Q R S T V 
All Classes All Packages