$ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _
All Classes All Packages
All Classes All Packages
$
- $$robo$getData() - Method in interface org.robolectric.internal.bytecode.ShadowedObject
A
- abandon() - Method in class org.robolectric.shadows.ShadowPackageInstaller.ShadowSession
- abandonAudioFocus(AudioManager.OnAudioFocusChangeListener) - Method in class org.robolectric.shadows.ShadowAudioManager
- abandonAudioFocusRequest(AudioFocusRequest) - Method in class org.robolectric.shadows.ShadowAudioManager
-
Provides a mock like interface for the abandonAudioFocusRequest method by storing the request object for later inspection and returning the value specified in setNextFocusRequestResponse.
- abandonSession(int) - Method in class org.robolectric.shadows.ShadowPackageInstaller
- abortBroadcast() - Method in class org.robolectric.shadows.ShadowBroadcastReceiver
- abortCreation() - Method in class org.robolectric.shadows.ShadowFontFamily
- accept(int) - Method in class org.robolectric.shadows.ShadowBluetoothServerSocket
-
May block the current thread and wait until
BluetoothDevice
is offered viaShadowBluetoothServerSocket.deviceConnected(BluetoothDevice)
method or timeout occurred. - accept(T) - Method in interface org.robolectric.util.Consumer
-
Performs this operation on the given argument.
- acceptCookie() - Method in class android.webkit.RoboCookieManager
- acceptRingingCall() - Method in class org.robolectric.shadows.ShadowTelecomManager
- acceptThirdPartyCookies(WebView) - Method in class android.webkit.RoboCookieManager
- ACCESS_BUFFER - org.robolectric.res.android.Asset.AccessMode
- ACCESS_RANDOM - org.robolectric.res.android.Asset.AccessMode
- ACCESS_STREAMING - org.robolectric.res.android.Asset.AccessMode
- ACCESS_UNKNOWN - org.robolectric.res.android.Asset.AccessMode
- Accessor - Annotation Type in org.robolectric.util.reflector
-
Indicates that the annotated method is an accessor for a non-visible field.
- AConfiguration - Class in org.robolectric.res.android
- AConfiguration() - Constructor for class org.robolectric.res.android.AConfiguration
- ACONFIGURATION_COLOR_MODE - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for wide color gamut and HDR configurations.
- ACONFIGURATION_DENSITY - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for density configuration.
- ACONFIGURATION_DENSITY_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Density: any density.
- ACONFIGURATION_DENSITY_DEFAULT - Static variable in class org.robolectric.res.android.AConfiguration
-
Density: default density.
- ACONFIGURATION_DENSITY_HIGH - Static variable in class org.robolectric.res.android.AConfiguration
-
Density: value corresponding to the hdpi resource qualifier.
- ACONFIGURATION_DENSITY_LOW - Static variable in class org.robolectric.res.android.AConfiguration
-
Density: value corresponding to the ldpi resource qualifier.
- ACONFIGURATION_DENSITY_MEDIUM - Static variable in class org.robolectric.res.android.AConfiguration
-
Density: value corresponding to the mdpi resource qualifier.
- ACONFIGURATION_DENSITY_NONE - Static variable in class org.robolectric.res.android.AConfiguration
-
Density: no density specified.
- ACONFIGURATION_DENSITY_TV - Static variable in class org.robolectric.res.android.AConfiguration
-
Density: value corresponding to the tvdpi resource qualifier.
- ACONFIGURATION_DENSITY_XHIGH - Static variable in class org.robolectric.res.android.AConfiguration
-
Density: value corresponding to the xhdpi resource qualifier.
- ACONFIGURATION_DENSITY_XXHIGH - Static variable in class org.robolectric.res.android.AConfiguration
-
Density: value corresponding to the xxhdpi resource qualifier.
- ACONFIGURATION_DENSITY_XXXHIGH - Static variable in class org.robolectric.res.android.AConfiguration
-
Density: value corresponding to the xxxhdpi resource qualifier.
- ACONFIGURATION_HDR_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
HDR: not specified.
- ACONFIGURATION_HDR_NO - Static variable in class org.robolectric.res.android.AConfiguration
-
HDR: value that corresponds to lowdr resource qualifier specified.
- ACONFIGURATION_HDR_YES - Static variable in class org.robolectric.res.android.AConfiguration
-
HDR: value that corresponds to highdr resource qualifier specified.
- ACONFIGURATION_KEYBOARD - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for keyboard configuration.
- ACONFIGURATION_KEYBOARD_12KEY - Static variable in class org.robolectric.res.android.AConfiguration
-
Keyboard: value corresponding to the 12key resource qualifier.
- ACONFIGURATION_KEYBOARD_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Keyboard: not specified.
- ACONFIGURATION_KEYBOARD_HIDDEN - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for keyboardHidden configuration.
- ACONFIGURATION_KEYBOARD_NOKEYS - Static variable in class org.robolectric.res.android.AConfiguration
-
Keyboard: value corresponding to the nokeys resource qualifier.
- ACONFIGURATION_KEYBOARD_QWERTY - Static variable in class org.robolectric.res.android.AConfiguration
-
Keyboard: value corresponding to the qwerty resource qualifier.
- ACONFIGURATION_KEYSHIDDEN_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Keyboard availability: not specified.
- ACONFIGURATION_KEYSHIDDEN_NO - Static variable in class org.robolectric.res.android.AConfiguration
-
Keyboard availability: value corresponding to the keysexposed resource qualifier.
- ACONFIGURATION_KEYSHIDDEN_SOFT - Static variable in class org.robolectric.res.android.AConfiguration
-
Keyboard availability: value corresponding to the keyssoft resource qualifier.
- ACONFIGURATION_KEYSHIDDEN_YES - Static variable in class org.robolectric.res.android.AConfiguration
-
Keyboard availability: value corresponding to the keyshidden resource qualifier.
- ACONFIGURATION_LAYOUTDIR - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for layout direction configuration.
- ACONFIGURATION_LAYOUTDIR_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Layout direction: not specified.
- ACONFIGURATION_LAYOUTDIR_LTR - Static variable in class org.robolectric.res.android.AConfiguration
-
Layout direction: value that corresponds to ldltr resource qualifier specified.
- ACONFIGURATION_LAYOUTDIR_RTL - Static variable in class org.robolectric.res.android.AConfiguration
-
Layout direction: value that corresponds to ldrtl resource qualifier specified.
- ACONFIGURATION_LOCALE - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for locale configuration.
- ACONFIGURATION_MCC - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for mcc configuration.
- ACONFIGURATION_MNC - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for mnc configuration.
- ACONFIGURATION_MNC_ZERO - Static variable in class org.robolectric.res.android.AConfiguration
-
Constant used to to represent MNC (Mobile Network Code) zero.
- ACONFIGURATION_NAVHIDDEN_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Navigation availability: not specified.
- ACONFIGURATION_NAVHIDDEN_NO - Static variable in class org.robolectric.res.android.AConfiguration
-
Navigation availability: value corresponding to the navexposed resource qualifier.
- ACONFIGURATION_NAVHIDDEN_YES - Static variable in class org.robolectric.res.android.AConfiguration
-
Navigation availability: value corresponding to the navhidden resource qualifier.
- ACONFIGURATION_NAVIGATION - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for navigation configuration.
- ACONFIGURATION_NAVIGATION_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Navigation: not specified.
- ACONFIGURATION_NAVIGATION_DPAD - Static variable in class org.robolectric.res.android.AConfiguration
-
Navigation: value corresponding to the dpad resource qualifier.
- ACONFIGURATION_NAVIGATION_NONAV - Static variable in class org.robolectric.res.android.AConfiguration
-
Navigation: value corresponding to the nonav resource qualifier.
- ACONFIGURATION_NAVIGATION_TRACKBALL - Static variable in class org.robolectric.res.android.AConfiguration
-
Navigation: value corresponding to the trackball resource qualifier.
- ACONFIGURATION_NAVIGATION_WHEEL - Static variable in class org.robolectric.res.android.AConfiguration
-
Navigation: value corresponding to the wheel resource qualifier.
- ACONFIGURATION_ORIENTATION - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for orientation configuration.
- ACONFIGURATION_ORIENTATION_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Orientation: not specified.
- ACONFIGURATION_ORIENTATION_LAND - Static variable in class org.robolectric.res.android.AConfiguration
-
Orientation: value corresponding to the land resource qualifier.
- ACONFIGURATION_ORIENTATION_PORT - Static variable in class org.robolectric.res.android.AConfiguration
-
Orientation: value corresponding to the port resource qualifier.
- ACONFIGURATION_ORIENTATION_SQUARE - Static variable in class org.robolectric.res.android.AConfiguration
-
Deprecated.Not currently supported or used.
- ACONFIGURATION_SCREEN_HEIGHT_DP_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Screen height DPI: not specified.
- ACONFIGURATION_SCREEN_LAYOUT - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for screen layout configuration.
- ACONFIGURATION_SCREEN_ROUND - Static variable in class org.robolectric.res.android.AConfiguration
- ACONFIGURATION_SCREEN_SIZE - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for screen size configuration.
- ACONFIGURATION_SCREEN_WIDTH_DP_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Screen width DPI: not specified.
- ACONFIGURATION_SCREENLONG_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Screen layout: not specified.
- ACONFIGURATION_SCREENLONG_NO - Static variable in class org.robolectric.res.android.AConfiguration
-
Screen layout: value that corresponds to the notlong resource qualifier.
- ACONFIGURATION_SCREENLONG_YES - Static variable in class org.robolectric.res.android.AConfiguration
-
Screen layout: value that corresponds to the long resource qualifier.
- ACONFIGURATION_SCREENROUND_ANY - Static variable in class org.robolectric.res.android.AConfiguration
- ACONFIGURATION_SCREENROUND_NO - Static variable in class org.robolectric.res.android.AConfiguration
- ACONFIGURATION_SCREENROUND_YES - Static variable in class org.robolectric.res.android.AConfiguration
- ACONFIGURATION_SCREENSIZE_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Screen size: not specified.
- ACONFIGURATION_SCREENSIZE_LARGE - Static variable in class org.robolectric.res.android.AConfiguration
-
Screen size: value indicating the screen is at least approximately 480x640 dp units, corresponding to the large resource qualifier.
- ACONFIGURATION_SCREENSIZE_NORMAL - Static variable in class org.robolectric.res.android.AConfiguration
-
Screen size: value indicating the screen is at least approximately 320x470 dp units, corresponding to the normal resource qualifier.
- ACONFIGURATION_SCREENSIZE_SMALL - Static variable in class org.robolectric.res.android.AConfiguration
-
Screen size: value indicating the screen is at least approximately 320x426 dp units, corresponding to the small resource qualifier.
- ACONFIGURATION_SCREENSIZE_XLARGE - Static variable in class org.robolectric.res.android.AConfiguration
-
Screen size: value indicating the screen is at least approximately 720x960 dp units, corresponding to the xlarge resource qualifier.
- ACONFIGURATION_SMALLEST_SCREEN_SIZE - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for smallest screen width configuration.
- ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Smallest screen width DPI: not specified.
- ACONFIGURATION_TOUCHSCREEN - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for touchscreen configuration.
- ACONFIGURATION_TOUCHSCREEN_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Touchscreen: not specified.
- ACONFIGURATION_TOUCHSCREEN_FINGER - Static variable in class org.robolectric.res.android.AConfiguration
-
Touchscreen: value corresponding to the finger resource qualifier.
- ACONFIGURATION_TOUCHSCREEN_NOTOUCH - Static variable in class org.robolectric.res.android.AConfiguration
-
Touchscreen: value corresponding to the notouch resource qualifier.
- ACONFIGURATION_TOUCHSCREEN_STYLUS - Static variable in class org.robolectric.res.android.AConfiguration
-
Deprecated.Not currently supported or used.
- ACONFIGURATION_UI_MODE - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for ui mode configuration.
- ACONFIGURATION_UI_MODE_NIGHT_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
UI night mode: not specified.
- ACONFIGURATION_UI_MODE_NIGHT_NO - Static variable in class org.robolectric.res.android.AConfiguration
-
UI night mode: value that corresponds to notnight resource qualifier specified.
- ACONFIGURATION_UI_MODE_NIGHT_YES - Static variable in class org.robolectric.res.android.AConfiguration
-
UI night mode: value that corresponds to night resource qualifier specified.
- ACONFIGURATION_UI_MODE_TYPE_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
UI mode: not specified.
- ACONFIGURATION_UI_MODE_TYPE_APPLIANCE - Static variable in class org.robolectric.res.android.AConfiguration
-
UI mode: value that corresponds to appliance resource qualifier specified.
- ACONFIGURATION_UI_MODE_TYPE_CAR - Static variable in class org.robolectric.res.android.AConfiguration
-
UI mode: value that corresponds to car resource qualifier specified.
- ACONFIGURATION_UI_MODE_TYPE_DESK - Static variable in class org.robolectric.res.android.AConfiguration
-
UI mode: value that corresponds to desk resource qualifier specified.
- ACONFIGURATION_UI_MODE_TYPE_NORMAL - Static variable in class org.robolectric.res.android.AConfiguration
-
UI mode: value that corresponds to no UI mode type resource qualifier specified.
- ACONFIGURATION_UI_MODE_TYPE_TELEVISION - Static variable in class org.robolectric.res.android.AConfiguration
-
UI mode: value that corresponds to television resource qualifier specified.
- ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET - Static variable in class org.robolectric.res.android.AConfiguration
-
UI mode: value that corresponds to vr resource qualifier specified.
- ACONFIGURATION_UI_MODE_TYPE_WATCH - Static variable in class org.robolectric.res.android.AConfiguration
-
UI mode: value that corresponds to watch resource qualifier specified.
- ACONFIGURATION_VERSION - Static variable in class org.robolectric.res.android.AConfiguration
-
Bit mask for platform version configuration.
- ACONFIGURATION_WIDE_COLOR_GAMUT_ANY - Static variable in class org.robolectric.res.android.AConfiguration
-
Wide color gamut: not specified.
- ACONFIGURATION_WIDE_COLOR_GAMUT_NO - Static variable in class org.robolectric.res.android.AConfiguration
-
Wide color gamut: value that corresponds to no nowidecg resource qualifier specified.
- ACONFIGURATION_WIDE_COLOR_GAMUT_YES - Static variable in class org.robolectric.res.android.AConfiguration
-
Wide color gamut: value that corresponds to widecg resource qualifier specified.
- acquire() - Method in class org.robolectric.shadows.ShadowPowerManager.ShadowWakeLock
- acquire() - Method in class org.robolectric.shadows.ShadowWifiManager.ShadowMulticastLock
- acquire() - Method in class org.robolectric.shadows.ShadowWifiManager.ShadowWifiLock
- acquire(long) - Method in class org.robolectric.shadows.ShadowPowerManager.ShadowWakeLock
- acquireContentProviderClient(Uri) - Method in class org.robolectric.shadows.ShadowContentResolver
- acquireContentProviderClient(String) - Method in class org.robolectric.shadows.ShadowContentResolver
- acquireProvider(Uri) - Method in class org.robolectric.shadows.ShadowContentResolver
- acquireProvider(String) - Method in class org.robolectric.shadows.ShadowContentResolver
- acquireUnstableContentProviderClient(Uri) - Method in class org.robolectric.shadows.ShadowContentResolver
- acquireUnstableContentProviderClient(String) - Method in class org.robolectric.shadows.ShadowContentResolver
- acquireUnstableProvider(Uri) - Method in class org.robolectric.shadows.ShadowContentResolver
- acquireUnstableProvider(String) - Method in class org.robolectric.shadows.ShadowContentResolver
- action - Variable in class org.robolectric.shadows.ShadowWallpaperManager.WallpaperCommandRecord
- activateResetToken(ComponentName) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
-
Activates reset token for given admin.
- ActivityController<T extends Activity> - Class in org.robolectric.android.controller
-
ActivityController provides low-level APIs to control activity's lifecycle.
- ActivityData - Class in org.robolectric.manifest
- ActivityData(String, Map<String, String>, List<IntentFilterData>) - Constructor for class org.robolectric.manifest.ActivityData
- ActivityData(String, Map<String, String>, List<IntentFilterData>, ActivityData, MetaData) - Constructor for class org.robolectric.manifest.ActivityData
- ActivityData(Map<String, String>, List<IntentFilterData>) - Constructor for class org.robolectric.manifest.ActivityData
- actualIsPublic() - Method in class org.robolectric.annotation.processing.RobolectricModel.ShadowInfo
- add(int) - Method in class org.robolectric.fakes.RoboMenu
- add(int, int, int, int) - Method in class org.robolectric.fakes.RoboMenu
- add(int, int, int, CharSequence) - Method in class org.robolectric.fakes.RoboMenu
- add(CharSequence) - Method in class org.robolectric.fakes.RoboMenu
- add(T) - Method in class org.robolectric.res.android.SortedVector
- addAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener) - Method in class org.robolectric.shadows.ShadowAccessibilityManager
- addAccessibilityStateChangeListener(AccessibilityManager.AccessibilityStateChangeListener, Handler) - Method in class org.robolectric.shadows.ShadowAccessibilityManager
- addAccount(Account) - Method in class org.robolectric.shadows.ShadowAccountManager
- addAccount(Account, String...) - Method in class org.robolectric.shadows.ShadowAccountManager
-
Adds an account to the AccountManager but when
AccountManager.getAccountsByTypeForPackage(String, String)
is called will be included if is in one of the #visibleToPackages - addAccount(String, String, String[], Bundle, Activity, AccountManagerCallback<Bundle>, Handler) - Method in class org.robolectric.shadows.ShadowAccountManager
- addAccountExplicitly(Account, String, Bundle) - Method in class org.robolectric.shadows.ShadowAccountManager
- addAction(int) - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- addAction(AccessibilityNodeInfo.AccessibilityAction) - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- addAction(String) - Method in class org.robolectric.manifest.BroadcastReceiverData
- addAction(String) - Method in class org.robolectric.manifest.ServiceData
- addActiveNotification(StatusBarNotification) - Method in class org.robolectric.shadows.ShadowNotificationListenerService
-
Adds the given
StatusBarNotification
to the list of active Notifications. - addActiveNotification(String, int, Notification) - Method in class org.robolectric.shadows.ShadowNotificationListenerService
-
Adds the given
Notification
to the list of active Notifications. - addActivity(UserHandle, LauncherActivityInfo) - Method in class org.robolectric.shadows.ShadowLauncherApps
-
Adds a
LauncherActivityInfo
to be retrieved byShadowLauncherApps.getActivityList(String, UserHandle)
. - addActivityIcon(ComponentName, Drawable) - Method in class org.robolectric.shadows.ShadowPackageManager
- addActivityIcon(Intent, Drawable) - Method in class org.robolectric.shadows.ShadowPackageManager
- addActivityIfNotPresent(ComponentName) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Makes sure that given activity exists.
- addAllSatellites(Collection<GnssStatusBuilder.GnssSatelliteInfo>) - Method in class org.robolectric.shadows.GnssStatusBuilder
-
Deprecated.Adds a collection of satellites to the
GnssStatus
being built. - addApplicationExitInfo(Object) - Method in class org.robolectric.shadows.ShadowActivityManager
-
Adds given
ApplicationExitInfo
, seeShadowActivityManager.ApplicationExitInfoBuilder
- addApplicationExitInfo(String, int, int, int) - Method in class org.robolectric.shadows.ShadowActivityManager
-
Deprecated.Prefer using overload with
ShadowActivityManager.ApplicationExitInfoBuilder
- addArc(float, float, float, float, float, float) - Method in class org.robolectric.shadows.ShadowPath
- addAssetPath(String) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- addAssetPath(String) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- addAssetPath(String8, Ref<Integer>, boolean) - Method in class org.robolectric.res.android.CppAssetManager
- addAssetPath(String8, Ref<Integer>, boolean, boolean) - Method in class org.robolectric.res.android.CppAssetManager
- addAssetPathNative(String) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- addAssetPathNative(String) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- addAssetPathNative(String, boolean) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- addAssetPathNative(String, boolean) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- addAssociation(String) - Method in class org.robolectric.shadows.ShadowCompanionDeviceManager
- addAttribute(int, String) - Method in interface org.robolectric.android.AttributeSetBuilder
-
Set an attribute to the given value.
- addAttribute(int, String) - Method in class org.robolectric.android.AttributeSetBuilderImpl
- addAttribute(int, String) - Method in interface org.robolectric.Robolectric.AttributeSetBuilder
-
Deprecated.Set an attribute to the given value.
- addAudioDataListener(ShadowAudioTrack.OnAudioDataWrittenListener) - Static method in class org.robolectric.shadows.ShadowAudioTrack
-
Registers an
ShadowAudioTrack.OnAudioDataWrittenListener
to theShadowAudioTrack
. - addAuthenticator(AuthenticatorDescription) - Method in class org.robolectric.shadows.ShadowAccountManager
- addAuthenticator(String) - Method in class org.robolectric.shadows.ShadowAccountManager
- addAuthority(String, String) - Method in class org.robolectric.manifest.IntentFilterData
- addAutomaticZenRule(AutomaticZenRule) - Method in class org.robolectric.shadows.ShadowNotificationManager
- addAvailableRestoreSets(long, List<String>) - Method in class org.robolectric.shadows.ShadowBackupManager
-
Adds a restore set available to be restored.
- addAvailableRole(String) - Method in class org.robolectric.shadows.ShadowRoleManager
-
Add a role that will be recognized as available when invoking
RoleManager.isRoleAvailable(String)
. - addAvailableRollbacks(RollbackInfo) - Method in class org.robolectric.shadows.ShadowRollbackManager
- addBinderService(String, Class<? extends IInterface>) - Static method in class org.robolectric.shadows.ShadowServiceManager
- addBinderService(String, Class<? extends IInterface>, boolean) - Static method in class org.robolectric.shadows.ShadowServiceManager
- addBinderService(String, Class<? extends IInterface>, String, boolean) - Static method in class org.robolectric.shadows.ShadowServiceManager
- addBinderService(String, String) - Static method in class org.robolectric.shadows.ShadowServiceManager
- addBluetoothRoute() - Method in class org.robolectric.shadows.ShadowMediaRouter
-
Adds the Bluetooth A2DP route and ensures it's the selected route, simulating connecting a Bluetooth device.
- addBoundWidget(int, AppWidgetProviderInfo) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
- addCall(Call) - Method in class org.robolectric.shadows.ShadowInCallService
- addCall(Call) - Method in class org.robolectric.shadows.ShadowPhone
-
Add Call to a collection that returns when getCalls is called.
- addCall(ParcelableCall) - Method in class org.robolectric.shadows.ShadowInCallService
- addCallback(SurfaceHolder.Callback) - Method in class org.robolectric.shadows.ShadowSurfaceView.FakeSurfaceHolder
- addCallbackBuffer(byte[]) - Method in class org.robolectric.shadows.ShadowCamera
- addCamera(String, CameraCharacteristics) - Method in class org.robolectric.shadows.ShadowCameraManager
-
Adds the given cameraId and characteristics to this shadow.
- addCameraInfo(int, Camera.CameraInfo) - Static method in class org.robolectric.shadows.ShadowCamera
-
Add a mock
Camera.CameraInfo
object to simulate the existence of one or more cameras. - addCanonicalName(String, String) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Adds a canonical package name for a package.
- addCapability(int) - Method in class org.robolectric.shadows.ShadowNetworkCapabilities
-
Adds
capability
to the NetworkCapabilities. - addCaptioningChangeListener(CaptioningManager.CaptioningChangeListener) - Method in class org.robolectric.shadows.ShadowCaptioningManager
- addChangedPackage(int, String) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Adds
packageName
to the list of changed packages for the particularsequenceNumber
. - addChild(AccessibilityNodeInfo) - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
-
Add a child node to this one.
- addChild(AccessibilityWindowInfo) - Method in class org.robolectric.shadows.ShadowAccessibilityWindowInfo
- addChild(View) - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- addChild(View, int) - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- addCircle(float, float, float, Path.Direction) - Method in class org.robolectric.shadows.ShadowPath
- addClassNameTranslation(String, String) - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- addCodec(MediaCodecInfo) - Static method in class org.robolectric.shadows.ShadowMediaCodecList
-
Add a
MediaCodecInfo
to the list of MediaCodecInfos. - addCompletedDownload(String, String, boolean, String, String, long, boolean) - Method in class org.robolectric.shadows.ShadowDownloadManager
- addCompletedDownload(String, String, boolean, String, String, long, boolean, Uri, Uri) - Method in class org.robolectric.shadows.ShadowDownloadManager
- addConnectedDevice(BluetoothDevice) - Method in class org.robolectric.shadows.ShadowBluetoothHeadset
-
Adds the given BluetoothDevice to the shadow's list of "connected devices"
- addController(MediaController) - Method in class org.robolectric.shadows.ShadowMediaSessionManager
-
Adds a
MediaController
that will be returned when callingShadowMediaSessionManager.getActiveSessions(ComponentName)
. - addCorruptStreamSource(String) - Static method in class org.robolectric.shadows.ShadowDrawable
- addCrossProfileIntentFilter(IntentFilter, int, int, int) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- addCurrentToCannonicalName(String, String) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Deprecated.
- addData(String, long, byte[]) - Method in class org.robolectric.shadows.ShadowDropBoxManager
-
Adds entry to the DropboxManager with the flag indicating data is text.
- addDecoder(String, ShadowMediaCodec.CodecConfig) - Static method in class org.robolectric.shadows.ShadowMediaCodec
-
Add a fake decoding codec to the Shadow.
- addDefaultAssets(String) - Method in class org.robolectric.res.android.CppAssetManager
- addDefaultAssets(Path) - Method in class org.robolectric.res.android.CppAssetManager
- addDefaultNetworkActiveListener(ConnectivityManager.OnNetworkActiveListener) - Method in class org.robolectric.shadows.ShadowConnectivityManager
- addDevice(int, int, BluetoothDevice) - Method in class org.robolectric.shadows.ShadowBluetoothManager
-
Add a remote bluetooth device that will be served by
BluetoothManager.getDevicesMatchingConnectionStates(int, int[])
for the specified profile and states of the profile connection. - addDevice(BluetoothDevice, int) - Method in class org.robolectric.shadows.ShadowBluetoothA2dp
- addDirectCallConstructor(MutableClass) - Method in class org.robolectric.internal.bytecode.ClassInstrumentor
- addDisplay(String) - Static method in class org.robolectric.shadows.ShadowDisplayManager
-
Adds a simulated display and drain the main looper queue to ensure all the callbacks are processed.
- addDrawableResolution(String, int, Drawable) - Method in class org.robolectric.shadows.ShadowPackageManager
- addDynamicShortcut(ShortcutInfo) - Method in class org.robolectric.shadows.ShadowLauncherApps
-
Adds a dynamic shortcut to be returned by
ShadowLauncherApps.getShortcuts(ShortcutQuery, UserHandle)
. - addDynamicShortcuts(List<ShortcutInfo>) - Method in class org.robolectric.shadows.ShadowShortcutManager
- addEffect(AudioEffect.Descriptor) - Static method in class org.robolectric.shadows.ShadowAudioEffect
-
Adds an effect represented by an
AudioEffect.Descriptor
, only to be queried fromShadowAudioEffect.queryEffects()
. - addEnabledPackage(UserHandle, String) - Method in class org.robolectric.shadows.ShadowLauncherApps
-
Adds an enabled package to be checked by
ShadowLauncherApps.isPackageEnabled(String, UserHandle)
. - addEncoder(String, ShadowMediaCodec.CodecConfig) - Static method in class org.robolectric.shadows.ShadowMediaCodec
-
Add a fake encoding codec to the Shadow.
- addEvent(UsageEvents.Event) - Method in class org.robolectric.shadows.ShadowUsageStatsManager
-
Adds an event to be returned by
UsageStatsManager.queryEvents(long, long)
. - addEvent(EventLog.Event) - Static method in class org.robolectric.shadows.ShadowEventLog
-
Add event to
EventLog
. - addEvent(String, long, int) - Method in class org.robolectric.shadows.ShadowUsageStatsManager
-
Deprecated.
- addException(DataSource, IOException) - Static method in class org.robolectric.shadows.ShadowMediaPlayer
- addException(DataSource, RuntimeException) - Static method in class org.robolectric.shadows.ShadowMediaMetadataRetriever
-
Configures an exception to be thrown when
ShadowMediaMetadataRetriever.setDataSource(org.robolectric.shadows.util.DataSource)
is called for the given data source. - addException(DataSource, RuntimeException) - Static method in class org.robolectric.shadows.ShadowMediaPlayer
- addExtensionMimeTypMapping(String, String) - Method in class org.robolectric.shadows.ShadowMimeTypeMap
- addExternalDir(String) - Static method in class org.robolectric.shadows.ShadowEnvironment
-
Adds a directory to list returned by
ShadowEnvironment.ShadowUserEnvironment.getExternalDirs()
. - addExtraShadow(String, String) - Method in class org.robolectric.annotation.processing.RobolectricModel.Builder
- addField(int, FieldNode) - Method in class org.robolectric.internal.bytecode.MutableClass
- addFontFromAssetManager(AssetManager, String, int, boolean, int, int, int, FontVariationAxis[]) - Method in class org.robolectric.shadows.ShadowFontFamily
- addFrame(Context, Uri, long, Bitmap) - Static method in class org.robolectric.shadows.ShadowMediaMetadataRetriever
-
Adds the given bitmap at the given time for the given data source.
- addFrame(FileDescriptor, long, long, long, Bitmap) - Static method in class org.robolectric.shadows.ShadowMediaMetadataRetriever
-
Adds the given bitmap at the given time for the given data source.
- addFrame(FileDescriptor, long, Bitmap) - Static method in class org.robolectric.shadows.ShadowMediaMetadataRetriever
-
Adds the given bitmap at the given time for the given data source.
- addFrame(String, long, Bitmap) - Static method in class org.robolectric.shadows.ShadowMediaMetadataRetriever
-
Adds the given bitmap at the given time for the given data source.
- addFrame(String, Map<String, String>, long, Bitmap) - Static method in class org.robolectric.shadows.ShadowMediaMetadataRetriever
-
Adds the given bitmap at the given time for the given data source.
- addFrame(DataSource, long, Bitmap) - Static method in class org.robolectric.shadows.ShadowMediaMetadataRetriever
- addGlobalPerformClickListener(View.OnClickListener) - Static method in class org.robolectric.shadows.ShadowView
-
Registers an
View.OnClickListener
to theShadowView
. - addGlobalPerformLongClickListener(View.OnLongClickListener) - Static method in class org.robolectric.shadows.ShadowView
-
Registers an
View.OnLongClickListener
to theShadowView
. - addGpsStatusListener(GpsStatus.Listener) - Method in class org.robolectric.shadows.ShadowLocationManager
- addHeader(String, String) - Method in class org.robolectric.shadows.httpclient.HttpResponseStub
- addHeader(Header) - Method in class org.robolectric.shadows.httpclient.HttpResponseStub
- addHeader(Header) - Method in class org.robolectric.shadows.httpclient.TestHttpResponse
- addHeldRole(String) - Method in class org.robolectric.shadows.ShadowRoleManager
-
Add a role that would be held by the calling app when invoking
RoleManager.isRoleHeld(String)
. - addHttpResponse(HttpResponse) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
-
As a consumer of the fake http call, you should never call this method.
- addHttpResponseContent(byte[]) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- addHttpResponseRule(String, String) - Static method in class org.robolectric.shadows.httpclient.FakeHttp
-
Adds an HTTP response rule.
- addHttpResponseRule(String, String) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- addHttpResponseRule(String, String, HttpResponse) - Static method in class org.robolectric.shadows.httpclient.FakeHttp
-
Adds an HTTP response rule.
- addHttpResponseRule(String, String, HttpResponse) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- addHttpResponseRule(String, HttpResponse) - Static method in class org.robolectric.shadows.httpclient.FakeHttp
-
Adds an HTTP response rule with a default method of GET.
- addHttpResponseRule(String, HttpResponse) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- addHttpResponseRule(HttpEntityStub.ResponseRule) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- addHttpResponseRule(RequestMatcher, List<? extends HttpResponse>) - Static method in class org.robolectric.shadows.httpclient.FakeHttp
-
Adds an HTTP response rule.
- addHttpResponseRule(RequestMatcher, List<? extends HttpResponse>) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
-
Add a response rule.
- addHttpResponseRule(RequestMatcher, HttpResponse) - Static method in class org.robolectric.shadows.httpclient.FakeHttp
-
Adds an HTTP response rule.
- addHttpResponseRule(RequestMatcher, HttpResponse) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- addInstalledProvider(AppWidgetProviderInfo) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
- addInstalledProvidersForProfile(UserHandle, AppWidgetProviderInfo) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
- addInstalledUser(int) - Method in class org.robolectric.shadows.PackageRollbackInfoBuilder
-
Adds installed user.
- addInstrumentedClass(String) - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- addInstrumentedPackage(String) - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- addIntentFilterForActivity(ComponentName, IntentFilter) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Add intent filter for given activity.
- addIntentFilterForProvider(ComponentName, IntentFilter) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Add intent filter for given provider.
- addIntentFilterForReceiver(ComponentName, IntentFilter) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Add intent filter for given receiver.
- addIntentFilterForService(ComponentName, IntentFilter) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Add intent filter for given service.
- addIntentOptions(int, int, int, ComponentName, Intent[], Intent, int, MenuItem[]) - Method in class org.robolectric.fakes.RoboMenu
- addInterceptedMethod(MethodRef) - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- addInterface(String) - Method in class org.robolectric.internal.bytecode.MutableClass
- addJavascriptInterface(Object, String) - Method in class org.robolectric.shadows.ShadowWebView
- addLanguageAvailability(Locale) - Static method in class org.robolectric.shadows.ShadowTextToSpeech
-
Makes
Locale
an available language returned byTextToSpeech.isLanguageAvailable(Locale)
. - addLikelySubtags(String) - Static method in class org.robolectric.shadows.ShadowICU
- addListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener) - Method in class org.robolectric.shadows.ShadowMagnificationController
- addListener(AccessibilityService.MagnificationController.OnMagnificationChangedListener, Handler) - Method in class org.robolectric.shadows.ShadowMagnificationController
- addMediaInfo(DataSource, ShadowMediaPlayer.MediaInfo) - Static method in class org.robolectric.shadows.ShadowMediaPlayer
-
Adds a
ShadowMediaPlayer.MediaInfo
for aDataSource
. - addMetadata(String, int, String) - Static method in class org.robolectric.shadows.ShadowMediaMetadataRetriever
-
Adds the given keyCode/value pair for the given data source.
- addMetadata(DataSource, int, String) - Static method in class org.robolectric.shadows.ShadowMediaMetadataRetriever
- addMethod(MethodNode) - Method in class org.robolectric.internal.bytecode.MutableClass
- addMimeType(String) - Method in class org.robolectric.manifest.IntentFilterData
- addMovement(MotionEvent) - Method in class org.robolectric.shadows.ShadowVelocityTracker
- addNanoApp(ContextHubInfo, int, long, int) - Method in class org.robolectric.shadows.ShadowContextHubManager
-
Adds a nanoApp to the list of nanoApps that are supported by the provided contexthubinfo.
- addNetwork(Network, NetworkInfo) - Method in class org.robolectric.shadows.ShadowConnectivityManager
-
Adds new
network
to the list of allNetwork
s. - addNetwork(WifiConfiguration) - Method in class org.robolectric.shadows.ShadowWifiManager
- addNewIncomingCall(PhoneAccountHandle, Bundle) - Method in class org.robolectric.shadows.ShadowTelecomManager
- addNewUnknownCall(PhoneAccountHandle, Bundle) - Method in class org.robolectric.shadows.ShadowTelecomManager
- addNmeaListener(OnNmeaMessageListener, Handler) - Method in class org.robolectric.shadows.ShadowLocationManager
- addNmeaListener(Executor, OnNmeaMessageListener) - Method in class org.robolectric.shadows.ShadowLocationManager
- addOnAccountsUpdatedListener(OnAccountsUpdateListener, Handler, boolean) - Method in class org.robolectric.shadows.ShadowAccountManager
- addOnAccountsUpdatedListener(OnAccountsUpdateListener, Handler, boolean, String[]) - Method in class org.robolectric.shadows.ShadowAccountManager
- addOnActiveSessionsChangedListener(MediaSessionManager.OnActiveSessionsChangedListener, ComponentName) - Method in class org.robolectric.shadows.ShadowMediaSessionManager
- addOnActiveSessionsChangedListener(MediaSessionManager.OnActiveSessionsChangedListener, ComponentName, Handler) - Method in class org.robolectric.shadows.ShadowMediaSessionManager
- addOnAttachStateChangeListener(View.OnAttachStateChangeListener) - Method in class org.robolectric.shadows.ShadowView
- addOnFrameMetricsAvailableListener(Window.OnFrameMetricsAvailableListener, Handler) - Method in class org.robolectric.shadows.ShadowWindow
- addOnLayoutChangeListener(View.OnLayoutChangeListener) - Method in class org.robolectric.shadows.ShadowView
- addOnPermissionsChangeListener(Object) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- addOnShowModeChangedListener(AccessibilityService.SoftKeyboardController.OnShowModeChangedListener) - Method in class org.robolectric.shadows.ShadowSoftKeyboardController
- addOnShowModeChangedListener(AccessibilityService.SoftKeyboardController.OnShowModeChangedListener, Handler) - Method in class org.robolectric.shadows.ShadowSoftKeyboardController
- addOnSubscriptionsChangedListener(SubscriptionManager.OnSubscriptionsChangedListener) - Method in class org.robolectric.shadows.ShadowSubscriptionManager
-
Adds a listener to a local list of listeners.
- addOnUidImportanceListener(Object, Object) - Method in class org.robolectric.shadows.ShadowActivityManager
- addOnWifiUsabilityStatsListener(Object, Object) - Method in class org.robolectric.shadows.ShadowWifiManager
- addOptionalUpdater(List<PackageSharedLibraryUpdater>, String, Supplier<PackageSharedLibraryUpdater>) - Static method in class org.robolectric.shadows.ShadowPackageBackwardCompatibility
-
Stubbing this out as if Android S+ is on the classpath, we'll get a ClassCastException instead of a ClassNotFoundException.
- addOrUpdateActivity(ActivityInfo) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Adds or updates given activity in the system.
- addOrUpdateProvider(ProviderInfo) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Adds or updates given content provider in the system.
- addOrUpdateReceiver(ActivityInfo) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Adds or updates given broadcast receiver in the system.
- addOrUpdateService(ServiceInfo) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Adds or updates given service in the system.
- addOrUpdateUsbDevice(UsbDevice, boolean) - Method in class org.robolectric.shadows.ShadowUsbManager
-
Adds a USB device into available USB devices map with permission value.
- addOutputSize(int, Size) - Method in class org.robolectric.shadows.StreamConfigurationMapBuilder
-
Adds an output size to be returned by
StreamConfigurationMap.getOutputSizes(java.lang.Class<T>)
for the provided format. - addOutputSize(Size) - Method in class org.robolectric.shadows.StreamConfigurationMapBuilder
-
Adds an output size to be returned by
StreamConfigurationMap.getOutputSizes(java.lang.Class<T>)
. - addOval(float, float, float, float, Path.Direction) - Method in class org.robolectric.shadows.ShadowPath
- addPackage(PackageInfo) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Deprecated.
- addPackage(PackageInfo, PackageStats) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Installs a package with its stats with the
PackageManager
. - addPackage(String) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Deprecated.Use
ShadowPackageManager.installPackage(PackageInfo)
instead. - addPackageInternal(PackageParser.Package) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Internal use only.
- addPackageNoDefaults(PackageInfo) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Adds a package to the
PackageManager
, but doesn't set any default values on it. - addPackageToPreferred(String) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- addPath(Path) - Method in class org.robolectric.shadows.ShadowPath
- addPath(Path, float, float) - Method in class org.robolectric.shadows.ShadowPath
- addPath(Path, Matrix) - Method in class org.robolectric.shadows.ShadowPath
- addPath(String) - Method in class org.robolectric.manifest.IntentFilterData
- addPathPattern(String) - Method in class org.robolectric.manifest.IntentFilterData
- addPathPrefix(String) - Method in class org.robolectric.manifest.IntentFilterData
- addPendingBackup(int) - Method in class org.robolectric.shadows.PackageRollbackInfoBuilder
-
Adds pending backup.
- addPendingHttpResponse(int, String, Header...) - Static method in class org.robolectric.shadows.httpclient.FakeHttp
-
Sets up an HTTP response to be returned by calls to Apache's
HttpClient
implementers. - addPendingHttpResponse(int, String, Header...) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- addPendingHttpResponse(HttpResponse) - Static method in class org.robolectric.shadows.httpclient.FakeHttp
-
Sets up an HTTP response to be returned by calls to Apache's
HttpClient
implementers. - addPendingHttpResponse(HttpResponse) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- addPendingHttpResponse(HttpResponseGenerator) - Static method in class org.robolectric.shadows.httpclient.FakeHttp
-
Sets up an HTTP response to be returned by calls to Apache's
HttpClient
implementers. - addPendingHttpResponse(HttpResponseGenerator) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- addPendingHttpResponseWithContentType(int, String, Header) - Static method in class org.robolectric.shadows.httpclient.FakeHttp
-
Deprecated.
- addPendingRestore(int, int, String) - Method in class org.robolectric.shadows.PackageRollbackInfoBuilder
-
Adds pending restores.
- addPeriodicSync(Account, String, Bundle, long) - Static method in class org.robolectric.shadows.ShadowContentResolver
- addPermission(PermissionInfo) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- addPermissionAsync(PermissionInfo) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- addPermissionGroupInfo(PermissionGroupInfo) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Allows overriding or adding permission-group elements.
- addPermissionInfo(PermissionInfo) - Method in class org.robolectric.shadows.ShadowPackageManager
- addPermissions(String...) - Method in class org.robolectric.android.internal.LocalPermissionGranter
- addPersistentPreferredActivity(ComponentName, IntentFilter, ComponentName) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- addPlatformVersion(String, int) - Static method in class org.robolectric.res.Qualifiers
-
Deprecated.Figure something else out.
- addPort(String) - Method in class org.robolectric.shadows.ShadowUsbManager
-
Adds a USB port with given ID to UsbManager.
- addPort(String, int, int, int, int) - Method in class org.robolectric.shadows.ShadowUsbManager
-
Adds a USB port with given ID and
UsbPortStatus
parameters to UsbManager for Q+. - addPreferredActivity(IntentFilter, int, ComponentName[], ComponentName) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- addPreferredActivityInternal(IntentFilter, ComponentName, SortedMap<ComponentName, List<IntentFilter>>) - Static method in class org.robolectric.shadows.ShadowPackageManager
- addPrimaryClipChangedListener(ClipboardManager.OnPrimaryClipChangedListener) - Method in class org.robolectric.shadows.ShadowClipboardManager
- addPrivateFlags(int) - Method in class org.robolectric.shadows.ShadowWindow
- addProfile(int, int, String, int) - Method in class org.robolectric.shadows.ShadowUserManager
-
Add a profile to be returned by
ShadowUserManager.getProfiles(int)
.* - addProviderIfNotPresent(ComponentName) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Makes sure that given provider exists.
- addReceiverIfNotPresent(ComponentName) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Makes sure that given receiver exists.
- addRecentlyCommittedRollbacks(RollbackInfo) - Method in class org.robolectric.shadows.ShadowRollbackManager
- addRect(float, float, float, float, Path.Direction) - Method in class org.robolectric.shadows.ShadowPath
- addRect(RectF, Path.Direction) - Method in class org.robolectric.shadows.ShadowPath
- addRemoteAddress(InetSocketAddress) - Method in class org.robolectric.shadows.EpsBearerQosSessionAttributesBuilder
- addRemoteAddress(InetSocketAddress) - Method in class org.robolectric.shadows.NrQosSessionAttributesBuilder
- addRequestInfo(HttpRequestInfo) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
-
This method is not supposed to be consumed by tests.
- addResetter(TypeElement, ExecutableElement) - Method in class org.robolectric.annotation.processing.RobolectricModel.Builder
- addResolveInfoForIntent(Intent, ResolveInfo) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Deprecated.use
ShadowPackageManager.addIntentFilterForComponent(android.content.ComponentName, android.content.IntentFilter, java.util.Map<android.content.ComponentName, java.util.List<android.content.IntentFilter>>)
instead and if the component doesn't exist add it using any ofShadowPackageManager.installPackage(android.content.pm.PackageInfo)
,ShadowPackageManager.addOrUpdateActivity(android.content.pm.ActivityInfo)
,ShadowPackageManager.addActivityIfNotPresent(android.content.ComponentName)
or their counterparts for other types of components. - addResolveInfoForIntent(Intent, List<ResolveInfo>) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Deprecated.
- addResolveInfoForIntentNoDefaults(Intent, ResolveInfo) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Deprecated.see the note on
ShadowPackageManager.addResolveInfoForIntent(Intent, ResolveInfo)
. - address - Variable in class org.robolectric.shadows.ShadowTelecomManager.OutgoingCallRecord
- addressOf(Object) - Method in class org.robolectric.shadows.ShadowVMRuntime
-
Returns a unique identifier of the object instead of a 'native' address.
- addRoundRect(float, float, float, float, float[], Path.Direction) - Method in class org.robolectric.shadows.ShadowPath
- addRoundRect(float, float, float, float, float, float, Path.Direction) - Method in class org.robolectric.shadows.ShadowPath
- addRoundRect(RectF, float[], Path.Direction) - Method in class org.robolectric.shadows.ShadowPath
- addRoundRect(RectF, float, float, Path.Direction) - Method in class org.robolectric.shadows.ShadowPath
- addSatellite(GnssStatusBuilder.GnssSatelliteInfo) - Method in class org.robolectric.shadows.GnssStatusBuilder
-
Deprecated.Adds a satellite to the
GnssStatus
being built. - addScaledFrame(DataSource, long, int, int, Bitmap) - Static method in class org.robolectric.shadows.ShadowMediaMetadataRetriever
- addScheme(String) - Method in class org.robolectric.manifest.IntentFilterData
- addScreenWidth(String, int) - Static method in class org.robolectric.res.Qualifiers
-
Deprecated.Use
Configuration.screenWidthDp
instead. - addSensor(int, Sensor) - Method in class org.robolectric.shadows.ShadowSensorManager
-
Deprecated.Use
ShadowSensor.newInstance(int)
to construct yourSensor
and add to theSensorManager
usingShadowSensorManager.addSensor(Sensor)
instead. This method will be removed at some point allowing us to use more of the realSensorManager
code. - addSensor(Sensor) - Method in class org.robolectric.shadows.ShadowSensorManager
-
Adds a
Sensor
to theSensorManager
- addService(String, IBinder) - Static method in class org.robolectric.shadows.ShadowServiceManager
- addServiceIfNotPresent(ComponentName) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Makes sure that given service exists.
- addShadowClasses(Class<?>...) - Method in class org.robolectric.internal.bytecode.ShadowMap.Builder
- addShadowType(TypeElement, TypeElement, TypeElement) - Method in class org.robolectric.annotation.processing.RobolectricModel.Builder
- addShortcutConfigActivity(UserHandle, LauncherActivityInfo) - Method in class org.robolectric.shadows.ShadowLauncherApps
-
Adds a
LauncherActivityInfo
to be retrieved byShadowLauncherApps.getShortcutConfigActivityList(String, UserHandle)
. - addSmallestScreenWidth(String, int) - Static method in class org.robolectric.res.Qualifiers
-
Deprecated.Use
Configuration.smallestScreenWidthDp
instead. - addSnapshottedUser(int) - Method in class org.robolectric.shadows.PackageRollbackInfoBuilder
-
Adds snapshotted user.
- addState(int[], Drawable) - Method in class org.robolectric.shadows.ShadowStateListDrawable
- addState(int, int) - Method in class org.robolectric.shadows.ShadowStateListDrawable
- addStorageStats(UUID, String, UserHandle, StorageStats) - Method in class org.robolectric.shadows.ShadowStorageStatsManager
- addStorageVolume(StorageVolume) - Method in class org.robolectric.shadows.ShadowStorageManager
-
Adds a
StorageVolume
to the list returned byShadowStorageManager.getStorageVolumes()
. - addStringResource(String, int, String) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Adds a String resource with
resId
corresponding topackageName
. - addSubMenu(int) - Method in class org.robolectric.fakes.RoboMenu
- addSubMenu(int, int, int, int) - Method in class org.robolectric.fakes.RoboMenu
- addSubMenu(int, int, int, CharSequence) - Method in class org.robolectric.fakes.RoboMenu
- addSubMenu(CharSequence) - Method in class org.robolectric.fakes.RoboMenu
- addSupportedPreviewSize(int, int) - Method in class org.robolectric.shadows.ShadowCamera.ShadowParameters
-
Add custom preview sizes to supportedPreviewSizes.
- addSystemAvailableFeature(FeatureInfo) - Method in class org.robolectric.shadows.ShadowPackageManager
- addSystemFlags(int) - Method in class org.robolectric.shadows.ShadowWindow
- addSystemSharedLibraryName(String) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Adds a value to be returned by
PackageManager.getSystemSharedLibraryNames()
. - addTab(TabHost.TabSpec) - Method in class org.robolectric.shadows.ShadowTabHost
- addTargetUserProfile(UserHandle) - Method in class org.robolectric.shadows.ShadowCrossProfileApps
-
Adds
userHandle
to the list of accessible handles. - addText(String, String) - Method in class org.robolectric.shadows.ShadowDropBoxManager
-
Adds a text entry to dropbox with the current timestamp using UTF-8 encoding.
- addTextChangedListener(TextWatcher) - Method in class org.robolectric.shadows.ShadowTextView
- addThermalStatusListener(Object) - Method in class org.robolectric.shadows.ShadowPowerManager
-
This function adds a listener for thermal status change.
- addTimeZoneDetectorListener(Executor, TimeManager.TimeZoneDetectorListener) - Method in class org.robolectric.shadows.ShadowTimeManager
- addTrack(DataSource, MediaFormat, byte[]) - Static method in class org.robolectric.shadows.ShadowMediaExtractor
-
Adds a track of data to an associated
DataSource
. - addTransportType(int) - Method in class org.robolectric.shadows.ShadowNetworkCapabilities
-
Updates the transport types for this network capablities to include
transportType
. - addUsageStats(int, UsageStats) - Method in class org.robolectric.shadows.ShadowUsageStatsManager
-
Adds an aggregated
UsageStats
object, to be returned byShadowUsageStatsManager.queryUsageStats(int, long, long)
. - addUser(int, String, int) - Method in class org.robolectric.shadows.ShadowUserManager
-
Creates a user with the specified name, userId and flags.
- addUserProfile(UserHandle) - Method in class org.robolectric.shadows.ShadowUserManager
-
Deprecated.use either addUser() or addProfile()
- addUserRestriction(ComponentName, String) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- addView(View, int, ViewGroup.LayoutParams) - Method in class org.robolectric.shadows.ShadowViewGroup
- addView(View, ViewGroup.LayoutParams) - Method in class org.robolectric.shadows.ShadowWindowManagerImpl
- addVoice(Voice) - Static method in class org.robolectric.shadows.ShadowTextToSpeech
-
Makes
Voice
an available voice returned byTextToSpeech.getVoices()
. - addWakeLock(PowerManager.WakeLock) - Method in class org.robolectric.shadows.ShadowApplication
-
Deprecated.use PowerManager APIs instead
- addWindow(PhoneWindow) - Method in class org.robolectric.shadows.ShadowRotationWatcher
- addWindow(Object) - Method in class org.robolectric.shadows.ShadowRotationWatcherFor22
- adjustStreamVolume(int, int, int) - Method in class org.robolectric.shadows.ShadowAudioManager
-
Implements
AudioManager.adjustStreamVolume(int, int, int)
. - advance() - Method in class org.robolectric.shadows.ShadowMediaExtractor
- advanceBy(long) - Method in class org.robolectric.util.Scheduler
-
Deprecated.
- advanceBy(long, TimeUnit) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
- advanceBy(long, TimeUnit) - Static method in class org.robolectric.shadows.ShadowSystemClock
-
An alternate to
ShadowSystemClock.advanceBy(Duration)
for older Android code bases where Duration is not available. - advanceBy(long, TimeUnit) - Method in class org.robolectric.util.Scheduler
-
Run all runnables that are scheduled to run in the next time interval.
- advanceBy(Duration) - Static method in class org.robolectric.shadows.ShadowSystemClock
-
A convenience method for advancing the clock via
SystemClock.setCurrentTimeMillis(long)
- advanceTo(long) - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
- advanceTo(long) - Method in class org.robolectric.util.Scheduler
-
Run all runnables that are scheduled before the endTime.
- advanceToLastPostedRunnable() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
- 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.android.internal.LooperDelegatingScheduler
- advanceToNextPostedRunnable() - Method in class org.robolectric.util.Scheduler
-
Run the next runnable in the queue.
- after(Time) - Method in class org.robolectric.shadows.ShadowTime
- afterClass() - Method in class org.robolectric.internal.SandboxTestRunner
- afterClass() - Method in class org.robolectric.RobolectricTestRunner
- afterTest(Method) - Method in class org.robolectric.DefaultTestLifecycle
-
Called after each test method is run.
- afterTest(Method) - Method in interface org.robolectric.TestLifecycle
-
Called after each test method is run.
- afterTest(Method) - Method in interface org.robolectric.TestLifecycleApplication
- afterTest(FrameworkMethod, Method) - Method in class org.robolectric.internal.SandboxTestRunner
- afterTest(FrameworkMethod, Method) - Method in class org.robolectric.RobolectricTestRunner
- all() - Static method in class org.robolectric.interceptors.AndroidInterceptors
- ALL_SDKS - Static variable in annotation type org.robolectric.annotation.Config
- ALL_STREAMS - Static variable in class org.robolectric.shadows.ShadowAudioManager
- allocateAppWidgetId() - Method in class org.robolectric.shadows.ShadowAppWidgetHost
- ALLOW_ALL - org.robolectric.shadows.ShadowTelecomManager.CallRequestMode
-
Automatically allows all call requests.
- allowFileSchemeCookiesImpl() - Method in class android.webkit.RoboCookieManager
- allowIncomingCall(ShadowTelecomManager.IncomingCallRecord) - Method in class org.robolectric.shadows.ShadowTelecomManager
- allowOutgoingCall(ShadowTelecomManager.OutgoingCallRecord) - Method in class org.robolectric.shadows.ShadowTelecomManager
- allowWhileIdle - Variable in class org.robolectric.shadows.ShadowAlarmManager.ScheduledAlarm
- ALOGI(String, Object...) - Static method in class org.robolectric.res.android.Util
- ALOGV(String, Object...) - Static method in class org.robolectric.res.android.Util
- ANDROID_NS - Static variable in class org.robolectric.res.android.ResourceTypes
- ANDROID_NS - Static variable in class org.robolectric.res.AttributeResource
- ANDROID_RES_NS_PREFIX - Static variable in class org.robolectric.res.AttributeResource
- android.media - package android.media
- android.webkit - package android.webkit
- AndroidConfigurer - Class in org.robolectric.config
-
Instruments the Android jars
- AndroidConfigurer(ShadowProviders) - Constructor for class org.robolectric.config.AndroidConfigurer
- AndroidInterceptors - Class in org.robolectric.interceptors
- AndroidInterceptors() - Constructor for class org.robolectric.interceptors.AndroidInterceptors
- AndroidInterceptors.CleanerInterceptor - Class in org.robolectric.interceptors
-
Maps calls to Cleaner, which moved between Java 8 and 9:
sun.misc.Cleaner.create()
->new java.lang.ref.Cleaner().register()
sun.misc.Cleaner.clean()
->java.lang.ref.Cleaner.Cleanable().clean()
- AndroidInterceptors.FileDescriptorInterceptor - Class in org.robolectric.interceptors
-
Intercepts calls to libcore-extensions to
FileDescriptor
. - AndroidInterceptors.LinkedHashMapEldestInterceptor - Class in org.robolectric.interceptors
- AndroidInterceptors.LocaleAdjustLanguageCodeInterceptor - Class in org.robolectric.interceptors
- AndroidInterceptors.NoOpInterceptor - Class in org.robolectric.interceptors
- AndroidInterceptors.ReferenceRefersToInterceptor - Class in org.robolectric.interceptors
-
AndroidInterceptor for Reference.refersTo which is not available until JDK 16.
- AndroidInterceptors.SocketInterceptor - Class in org.robolectric.interceptors
-
Intercepts calls to methods in
Socket
not present in the OpenJDK. - AndroidInterceptors.SystemArrayCopyInterceptor - Class in org.robolectric.interceptors
- AndroidInterceptors.SystemLogInterceptor - Class in org.robolectric.interceptors
-
AndroidInterceptor for System.logE and System.logW.
- AndroidInterceptors.SystemTimeInterceptor - Class in org.robolectric.interceptors
- AndroidManifest - Class in org.robolectric.manifest
-
A wrapper for an Android App Manifest, which represents information about one's App to an Android system.
- AndroidManifest(Path, Path, Path) - Constructor for class org.robolectric.manifest.AndroidManifest
-
Creates a Robolectric configuration using specified locations.
- AndroidManifest(Path, Path, Path, String) - Constructor for class org.robolectric.manifest.AndroidManifest
-
Creates a Robolectric configuration using specified values.
- AndroidManifest(Path, Path, Path, List<AndroidManifest>, String) - Constructor for class org.robolectric.manifest.AndroidManifest
-
Creates a Robolectric configuration using specified values.
- AndroidManifest(Path, Path, Path, List<AndroidManifest>, String, Path) - Constructor for class org.robolectric.manifest.AndroidManifest
- AndroidMetadata - Class in org.robolectric
-
Data related to Android tests.
- AndroidMetadata(Map<String, String>, String) - Constructor for class org.robolectric.AndroidMetadata
- AndroidSandbox - Class in org.robolectric.internal
-
Sandbox simulating an Android device.
- AndroidSandbox(Sdk, Sdk, ResourcesMode, ApkLoader, AndroidSandbox.TestEnvironmentSpec, AndroidSandbox.SdkSandboxClassLoader, ShadowProviders) - Constructor for class org.robolectric.internal.AndroidSandbox
- AndroidSandbox.SdkSandboxClassLoader - Class in org.robolectric.internal
-
Adapter from Sdk to ResourceLoader.
- AndroidSandbox.TestEnvironmentSpec - Class in org.robolectric.internal
-
Provides a mechanism for tests to inject a different AndroidTestEnvironment.
- AndroidSdkShadowMatcher - Class in org.robolectric.android
-
Android-specific rules for matching shadow classes and methods by SDK level.
- AndroidSdkShadowMatcher(int) - Constructor for class org.robolectric.android.AndroidSdkShadowMatcher
- AndroidTestEnvironment - Class in org.robolectric.android.internal
- AndroidTestEnvironment(Sdk, Sdk, ResourcesMode, ApkLoader, ShadowProvider[], TestEnvironmentLifecyclePlugin[]) - Constructor for class org.robolectric.android.internal.AndroidTestEnvironment
- andThen(Consumer<? super T>) - Method in interface org.robolectric.util.Consumer
-
Returns a composed
Consumer
that performs, in sequence, this operation followed by theafter
operation. - annotationType - Variable in class org.robolectric.annotation.processing.validator.Validator
- annotationType() - Method in class org.robolectric.annotation.Config.Implementation
- ApkAssetsCookie - Class in org.robolectric.res.android
- ApkLoader - Class in org.robolectric
-
Mediates loading of "APKs" in legacy mode.
- ApkLoader() - Constructor for class org.robolectric.ApkLoader
- append(String) - Method in class org.robolectric.res.android.String8
- appendDescription(String) - Method in class org.robolectric.shadows.ShadowBitmap
- appendDescription(String) - Method in class org.robolectric.shadows.ShadowCanvas
- appendParameterList(StringBuilder, List<? extends TypeParameterElement>) - Method in class org.robolectric.annotation.processing.Helpers
- appendPath(String) - Method in class org.robolectric.res.android.String8
- appHeight - Variable in class org.robolectric.android.internal.DisplayConfig
-
The height of the portion of the display that is available to applications, in pixels.
- application - Variable in class org.robolectric.annotation.Config.Builder
- application - Static variable in class org.robolectric.RuntimeEnvironment
-
Deprecated.Please use {#getApplication} instead. Accessing this field directly is inherently incompatible with
LazyApplication
and Robolectric makes no guarantees if a test *modifies* this field during execution. - 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
- apply() - Method in class org.robolectric.shadows.ShadowSharedPreferences.ShadowSharedPreferencesEditorImpl
- apply(Type, VisitorState) - Method in class org.robolectric.errorprone.bugpatterns.Helpers.CastableTo
- apply(String, byte) - Method in interface org.robolectric.res.android.CppAssetManager2.PackageFunc
- apply(Statement, Description) - Method in class org.robolectric.junit.rules.BackgroundTestRule
- apply(Statement, Description) - Method in class org.robolectric.junit.rules.ExpectedLogMessagesRule
- apply(Style, boolean) - Method in class org.robolectric.res.ThemeStyleSet
- applyBatch(String, ArrayList<ContentProviderOperation>) - Method in class org.robolectric.shadows.ShadowContentResolver
- applyBatch(ArrayList<ContentProviderOperation>) - Method in class org.robolectric.shadows.ShadowContentProviderClient
- applyQualifiers(String, int, Configuration, DisplayMetrics) - Static method in class org.robolectric.android.Bootstrap
- applyStyle(int, boolean) - Method in class org.robolectric.res.android.ResTableTheme
- applyStyle(int, int, int, int, int[], int[], int[]) - Static method in class org.robolectric.shadows.ShadowArscAssetManager
- applyStyle(int, int, int, int, int[], int[], int[]) - Static method in class org.robolectric.shadows.ShadowLegacyAssetManager
- applyStyle(long, int, int, long, int[], int[], int[]) - Static method in class org.robolectric.shadows.ShadowArscAssetManager
- applyStyle(long, int, int, long, int[], int[], int[]) - Static method in class org.robolectric.shadows.ShadowLegacyAssetManager
- applyStyle(long, int, int, long, int[], int, long, long) - Static method in class org.robolectric.shadows.ShadowArscAssetManager
- applyStyle(long, int, int, long, int[], int, long, long) - Static method in class org.robolectric.shadows.ShadowLegacyAssetManager
- ApplyStyle(int, boolean) - Method in class org.robolectric.res.android.CppAssetManager2.Theme
- ApplyStyle(CppAssetManager2.Theme, ResXMLParser, int, int, int[], int, int[], int[]) - Static method in class org.robolectric.res.android.AttributeResolution10
- ApplyStyle(CppAssetManager2.Theme, ResXMLParser, int, int, int[], int, int[], int[]) - Static method in class org.robolectric.res.android.AttributeResolution9
- ApplyStyle(ResTableTheme, ResXMLParser, int, int, int[], int, int[], int[]) - Static method in class org.robolectric.res.android.AttributeResolution
- applyStyleToTheme(long, int, boolean) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- applyThemeStyle(int, int, boolean) - Static method in class org.robolectric.shadows.ShadowArscAssetManager
- applyThemeStyle(int, int, boolean) - Static method in class org.robolectric.shadows.ShadowLegacyAssetManager
- applyThemeStyle(long, int, boolean) - Static method in class org.robolectric.shadows.ShadowArscAssetManager
- applyThemeStyle(long, int, boolean) - Static method in class org.robolectric.shadows.ShadowLegacyAssetManager
- applyTransformation(float, Transformation) - Method in class org.robolectric.shadows.ShadowAnimationBridge
- approximate(float) - Method in class org.robolectric.shadows.ShadowPath
- AppUsageLimitObserver(int, List<String>, Duration, Duration, PendingIntent) - Constructor for class org.robolectric.shadows.ShadowUsageStatsManager.AppUsageLimitObserver
- AppUsageObserver() - Constructor for class org.robolectric.shadows.ShadowUsageStatsManager.AppUsageObserver
- appVsyncOffsetNanos - Variable in class org.robolectric.android.internal.DisplayConfig
-
This is a positive value indicating the phase offset of the VSYNC events provided by Choreographer relative to the display refresh.
- AppWidgetProviderInfoBuilder - Class in org.robolectric.shadows
-
Class to build
AppWidgetProviderInfo
- appWidth - Variable in class org.robolectric.android.internal.DisplayConfig
-
The width of the portion of the display that is available to applications, in pixels.
- ArcPaintHistoryEvent(RectF, float, float, boolean, Paint) - Constructor for class org.robolectric.shadows.ShadowCanvas.ArcPaintHistoryEvent
- arcTo(float, float, float, float, float, float, boolean) - Method in class org.robolectric.shadows.ShadowPath
- arcTo(RectF, float, float) - Method in class org.robolectric.shadows.ShadowPath
- arcTo(RectF, float, float, boolean) - Method in class org.robolectric.shadows.ShadowPath
- areAllPrimitivesSupported(int...) - Method in class org.robolectric.shadows.ShadowVibrator
- areAnyRunnable() - Method in class org.robolectric.android.internal.LooperDelegatingScheduler
- areAnyRunnable() - Method in class org.robolectric.util.Scheduler
-
Determine if any enqueued runnables are enqueued before the current time.
- areNotificationsEnabled() - Method in class org.robolectric.shadows.ShadowNotificationManager
- areThereUnrecycledNodes(boolean) - Static method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
-
Check for leaked objects that were
obtain
ed but neverrecycle
d. - areThereUnrecycledWindows(boolean) - Static method in class org.robolectric.shadows.ShadowAccessibilityWindowInfo
-
Check for leaked objects that were
obtain
ed but neverrecycle
d. - ArscBase() - Constructor for class org.robolectric.shadows.ShadowAssetManager.ArscBase
- ArscResourceResolver(Context) - Constructor for class org.robolectric.android.AttributeSetBuilderImpl.ArscResourceResolver
- asCharSequence(TypedResource) - Method in class org.robolectric.shadows.Converter
- asCharSequence(TypedResource) - Method in class org.robolectric.shadows.Converter.FromAttrData
- asCharSequence(TypedResource) - Method in class org.robolectric.shadows.Converter.FromCharSequence
- asElement(TypeMirror) - Method in class org.robolectric.annotation.processing.Helpers
- asIdmap_header() - Method in class org.robolectric.res.android.StringPiece
- asInt(TypedResource) - Method in class org.robolectric.shadows.Converter
- asInt(TypedResource) - Method in class org.robolectric.shadows.Converter.FromCharSequence
- asInt(TypedResource) - Method in class org.robolectric.shadows.Converter.FromColor
- asInterface(IBinder) - Static method in class org.robolectric.shadows.ShadowIAppOpsService.ShadowStub
- ASSERT - org.robolectric.shadows.ShadowMediaPlayer.InvalidStateBehavior
- assertLooperMode(LooperMode.Mode) - Static method in class org.robolectric.shadows.ShadowLooper
- assertNoBroadcastListenersOfActionRegistered(ContextWrapper, String) - Method in class org.robolectric.shadows.ShadowApplication
- Asset - Class in org.robolectric.res.android
- Asset.AccessMode - Enum in org.robolectric.res.android
- 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
- AssetDir - Class in org.robolectric.res.android
- AssetPath - Class in org.robolectric.res.android
- AssetPath(Path, boolean) - Constructor for class org.robolectric.res.android.AssetPath
- asShared() - Method in class org.robolectric.shadows.ShadowBitmap
- associate(AssociationRequest, CompanionDeviceManager.Callback, Handler) - Method in class org.robolectric.shadows.ShadowCompanionDeviceManager
- asString() - Method in class org.robolectric.res.TypedResource
- AsyncTraceSection() - Constructor for class org.robolectric.shadows.ShadowTrace.AsyncTraceSection
- atomId() - Method in class org.robolectric.shadows.ShadowStatsLog.StatsLogItem
- ATRACE_NAME(String) - Static method in class org.robolectric.res.android.Util
- attach(Context, ActivityThread, Instrumentation, IBinder, int, Application, Intent, ActivityInfo, CharSequence, Activity, String, Object, Configuration) - Method in interface org.robolectric.shadows._Activity_
- attach(Context, ActivityThread, Instrumentation, IBinder, int, Application, Intent, ActivityInfo, CharSequence, Activity, String, Object, Configuration, Object) - Method in interface org.robolectric.shadows._Activity_
- attach(Context, ActivityThread, Instrumentation, IBinder, int, Application, Intent, ActivityInfo, CharSequence, Activity, String, Object, Configuration, String, Object) - Method in interface org.robolectric.shadows._Activity_
- attach(Context, ActivityThread, Instrumentation, IBinder, int, Application, Intent, ActivityInfo, CharSequence, Activity, String, Object, Configuration, String, Object, Window) - Method in interface org.robolectric.shadows._Activity_
- attach(Context, ActivityThread, Instrumentation, IBinder, int, Application, Intent, ActivityInfo, CharSequence, Activity, String, Object, Configuration, String, Object, Window, Object) - Method in interface org.robolectric.shadows._Activity_
- attach(Context, ActivityThread, Instrumentation, IBinder, int, Application, Intent, ActivityInfo, CharSequence, Activity, String, Object, Configuration, String, Object, Window, Object, IBinder) - Method in interface org.robolectric.shadows._Activity_
- attach(Context, ActivityThread, Instrumentation, IBinder, int, Application, Intent, ActivityInfo, CharSequence, Activity, String, Object, Configuration, String, Object, Window, Object, IBinder, IBinder) - Method in interface org.robolectric.shadows._Activity_
- attach(AttachCallback, Handler) - Method in class org.robolectric.shadows.ShadowWifiAwareManager
- attachAuxEffect(int) - Method in class org.robolectric.shadows.ShadowMediaPlayer
- attachController(ActivityController) - Method in class org.robolectric.shadows.ShadowActivity
-
For internal use only.
- attached - Variable in class org.robolectric.android.controller.ComponentController
- AttestedKeyPairFactory - Class in org.robolectric.shadows
-
Factory to create AttestedKeyPair.
- AttestedKeyPairFactory() - Constructor for class org.robolectric.shadows.AttestedKeyPairFactory
- attr(int, int, int, ResourceTypes.Res_value, String) - Method in class org.robolectric.res.android.ResourceTypes.ResXMLTree_attrExt.Writer
- ATTR_DATA - org.robolectric.res.ResType
- ATTR_FEW - Static variable in class org.robolectric.res.android.ResourceTypes.ResTable_map
- ATTR_L10N - Static variable in class org.robolectric.res.android.ResourceTypes.ResTable_map
- ATTR_MANY - Static variable in class org.robolectric.res.android.ResourceTypes.ResTable_map
- ATTR_MAX - Static variable in class org.robolectric.res.android.ResourceTypes.ResTable_map
- ATTR_MIN - Static variable in class org.robolectric.res.android.ResourceTypes.ResTable_map
- ATTR_ONE - Static variable in class org.robolectric.res.android.ResourceTypes.ResTable_map
- ATTR_OTHER - Static variable in class org.robolectric.res.android.ResourceTypes.ResTable_map
- ATTR_TWO - Static variable in class org.robolectric.res.android.ResourceTypes.ResTable_map
- ATTR_TYPE - Static variable in class org.robolectric.res.android.ResourceTypes.ResTable_map
- ATTR_ZERO - Static variable in class org.robolectric.res.android.ResourceTypes.ResTable_map
- AttrData - Class in org.robolectric.res
- AttrData(String, String, List<AttrData.Pair>) - Constructor for class org.robolectric.res.AttrData
- AttrData.Pair - Class in org.robolectric.res
- ATTRIBUTE - org.robolectric.res.android.DataType
-
data
holds an attribute resource identifier. - ATTRIBUTE_TYPE_PRECIDENCE - Static variable in class org.robolectric.shadows.ShadowLegacyAssetManager
- AttributeResolution - Class in org.robolectric.res.android
- AttributeResolution() - Constructor for class org.robolectric.res.android.AttributeResolution
- AttributeResolution.BagAttributeFinder - Class in org.robolectric.res.android
- AttributeResolution.XmlAttributeFinder - Class in org.robolectric.res.android
- AttributeResolution10 - Class in org.robolectric.res.android
- AttributeResolution10() - Constructor for class org.robolectric.res.android.AttributeResolution10
- AttributeResolution10.BagAttributeFinder - Class in org.robolectric.res.android
- AttributeResolution10.XmlAttributeFinder - Class in org.robolectric.res.android
- AttributeResolution9 - Class in org.robolectric.res.android
- AttributeResolution9() - Constructor for class org.robolectric.res.android.AttributeResolution9
- AttributeResolution9.BagAttributeFinder - Class in org.robolectric.res.android
- AttributeResolution9.XmlAttributeFinder - Class in org.robolectric.res.android
- AttributeResource - Class in org.robolectric.res
- AttributeResource(ResName, String, String) - Constructor for class org.robolectric.res.AttributeResource
- AttributeResource(ResName, String, String, Integer) - Constructor for class org.robolectric.res.AttributeResource
- attributeSet - Variable in class org.robolectric.shadows.ShadowView
- AttributeSetBuilder - Interface in org.robolectric.android
-
Builder of
AttributeSet
s. - AttributeSetBuilderImpl - Class in org.robolectric.android
- AttributeSetBuilderImpl(AttributeSetBuilderImpl.ResourceResolver) - Constructor for class org.robolectric.android.AttributeSetBuilderImpl
- AttributeSetBuilderImpl.ArscResourceResolver - Class in org.robolectric.android
- AttributeSetBuilderImpl.LegacyResourceResolver - Class in org.robolectric.android
- AttributeSetBuilderImpl.ResourceResolver - Interface in org.robolectric.android
- attrType - Variable in class org.robolectric.res.StaxLoader
- audioFocusRequest - Variable in class org.robolectric.shadows.ShadowAudioManager.AudioFocusRequest
- authenticate(FingerprintManager.CryptoObject, CancellationSignal, int, FingerprintManager.AuthenticationCallback, Handler) - Method in class org.robolectric.shadows.ShadowFingerprintManager
-
Success or failure can be simulated with a subsequent call to
ShadowFingerprintManager.authenticationSucceeds()
orShadowFingerprintManager.authenticationFails()
. - authenticationFails() - Method in class org.robolectric.shadows.ShadowFingerprintManager
-
Simulates a failed fingerprint authentication.
- authenticationSucceeds() - Method in class org.robolectric.shadows.ShadowFingerprintManager
-
Simulates a successful fingerprint authentication.
- AUTO_NS - Static variable in class org.robolectric.res.android.ResourceTypes
- AutoFactory - Annotation Type in org.robolectric.util.inject
-
Indicates that the annotated type will be used as a factory.
- autoFocus(Camera.AutoFocusCallback) - Method in class org.robolectric.shadows.ShadowCamera
- available() - Method in class org.robolectric.shadows.ShadowLegacyAssetInputStream
- AVAILABLE_FEATURES - Static variable in class org.robolectric.android.XmlResourceParserImpl
-
All the parser features currently supported by Android.
- awaitTermination(long, TimeUnit) - Method in class org.robolectric.android.util.concurrent.InlineExecutorService
- awaitTermination(long, TimeUnit) - Method in class org.robolectric.android.util.concurrent.PausedExecutorService
- awaitTermination(long, TimeUnit) - Method in class org.robolectric.android.util.concurrent.RoboExecutorService
-
Deprecated.
B
- backgroundDrawable - Variable in class org.robolectric.shadows.ShadowWindow
- BackgroundExecutor - Class in org.robolectric.android.util.concurrent
-
Utility class for running code off the main looper thread aka Robolectric test thread.
- BackgroundTestRule - Class in org.robolectric.junit.rules
-
Let tests to run on background thread, if it has annotation
BackgroundTestRule.BackgroundTest
. - BackgroundTestRule() - Constructor for class org.robolectric.junit.rules.BackgroundTestRule
- BackgroundTestRule.BackgroundTest - Annotation Type in org.robolectric.junit.rules
-
Annotation for test methods that need to be executed in a background thread.
- BackupAgentController<T extends BackupAgent> - Class in org.robolectric.android.controller
- BAD_DOCUMENT - Static variable in class org.robolectric.res.android.ResXMLParser.event_code_t
- BAD_INDEX - Static variable in class org.robolectric.res.android.Errors
- BAD_TYPE - Static variable in class org.robolectric.res.android.Errors
- BAD_VALUE - Static variable in class org.robolectric.res.android.Errors
- bag_entry() - Constructor for class org.robolectric.res.android.ResTable.bag_entry
- BagAttributeFinder(ResTable.bag_entry[], int) - Constructor for class org.robolectric.res.android.AttributeResolution.BagAttributeFinder
- BaseCursor - Class in org.robolectric.fakes
-
Deprecated.Use
MatrixCursor
instead. - BaseCursor() - Constructor for class org.robolectric.fakes.BaseCursor
-
Deprecated.
- baseUrl - Variable in class org.robolectric.shadows.ShadowWebView.LoadDataWithBaseURL
- before(Time) - Method in class org.robolectric.shadows.ShadowTime
- beforeTest(Method) - Method in class org.robolectric.DefaultTestLifecycle
-
Called before each test method is run.
- beforeTest(Method) - Method in interface org.robolectric.TestLifecycle
-
Called before each test method is run.
- beforeTest(Method) - Method in interface org.robolectric.TestLifecycleApplication
- beforeTest(Sandbox, FrameworkMethod, Method) - Method in class org.robolectric.internal.SandboxTestRunner
- beforeTest(Sandbox, FrameworkMethod, Method) - Method in class org.robolectric.RobolectricTestRunner
- beginAsyncSection(String, int) - Static method in class org.robolectric.shadows.ShadowTrace
-
Starts a new async trace section with given name.
- beginBroadcast() - Method in class org.robolectric.shadows.ShadowRemoteCallbackList
- beginRecording(int, int) - Method in class org.robolectric.shadows.ShadowPicture
- beginRestoreSession() - Method in class org.robolectric.shadows.ShadowBackupManager
- beginSection(String) - Static method in class org.robolectric.shadows.ShadowTrace
-
Starts a new trace section with given name.
- bidi(int, char[], byte[], int, boolean) - Static method in class org.robolectric.shadows.ShadowAndroidBidi
- bigEndianIterator() - Method in class org.robolectric.shadows.ShadowMemoryMappedFile
- bigEndianIterator() - Method in class org.robolectric.shadows.ShadowMemoryMappedFileS
- BINARY - org.robolectric.internal.ResourcesMode
- bind() - Method in class org.robolectric.android.controller.IntentServiceController
- bind() - Method in class org.robolectric.android.controller.ServiceController
- 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.
- bindAppWidgetId(int, ComponentName) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
- bindAppWidgetId(int, ComponentName, Bundle) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
- bindAppWidgetIdIfAllowed(int, ComponentName) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
-
Create an internal presentation of the widget and cache it locally.
- bindAppWidgetIdIfAllowed(int, ComponentName, Bundle) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
-
Create an internal presentation of the widget locally and store the options
Bundle
with it. - 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.
- bindDeviceAdminServiceAsUser(ComponentName, Intent, ServiceConnection, int, UserHandle) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
-
Bind to the same package in another user.
- bindProcessToNetwork(Network) - Method in class org.robolectric.shadows.ShadowConnectivityManager
- bindService(Intent, int, Executor, ServiceConnection) - Method in class org.robolectric.shadows.ShadowContextImpl
- bindService(Intent, int, Executor, ServiceConnection) - Method in class org.robolectric.shadows.ShadowInstrumentation
- bindService(Intent, ServiceConnection, int) - Method in class org.robolectric.shadows.ShadowContextImpl
- bindService(Intent, ServiceConnection, int) - Method in class org.robolectric.shadows.ShadowInstrumentation
- bindServiceAsUser(Intent, ServiceConnection, int, UserHandle) - Method in class org.robolectric.shadows.ShadowContextImpl
-
Binds to a service but ignores the given UserHandle.
- bindSocket(FileDescriptor) - Method in class org.robolectric.shadows.ShadowNetwork
-
Simulates a socket bind.
- bindSocket(DatagramSocket) - Method in class org.robolectric.shadows.ShadowNetwork
-
Simulates a socket bind.
- bindSocket(Socket) - Method in class org.robolectric.shadows.ShadowNetwork
-
Simulates a socket bind.
- biometricServiceConnected - Variable in class org.robolectric.shadows.ShadowBiometricManager
- BLOCK_SIZE - Static variable in class org.robolectric.shadows.ShadowStatFs
- blockingGetAuthToken(Account, String, boolean) - Method in class org.robolectric.shadows.ShadowAccountManager
- BLUETOOTH_DEVICE_NAME - Static variable in class org.robolectric.shadows.ShadowMediaRouter
- BOOLEAN - org.robolectric.res.ResType
- bootstrap(MethodHandles.Lookup, String, MethodType, MethodHandle) - Static method in class org.robolectric.internal.bytecode.InvokeDynamicSupport
- Bootstrap - Class in org.robolectric.android
- Bootstrap() - Constructor for class org.robolectric.android.Bootstrap
- bootstrapAuthenticationRequest(Object, Object, Object, Object, Object, Object) - Method in class org.robolectric.shadows.ShadowTelephonyManager
- bootstrapInit(MethodHandles.Lookup, String, MethodType) - Static method in class org.robolectric.internal.bytecode.InvokeDynamicSupport
- bootstrapIntrinsic(MethodHandles.Lookup, String, MethodType, String) - Static method in class org.robolectric.internal.bytecode.InvokeDynamicSupport
- bootstrappedClass(Class<?>) - Method in class org.robolectric.internal.bytecode.Sandbox
- bootstrapStatic(MethodHandles.Lookup, String, MethodType, MethodHandle) - Static method in class org.robolectric.internal.bytecode.InvokeDynamicSupport
- bottom - Variable in class org.robolectric.shadows.ShadowCanvas.RectPaintHistoryEvent
- bottom - Variable in class org.robolectric.shadows.ShadowCanvas.RoundRectPaintHistoryEvent
- boundSocketCount() - Method in class org.robolectric.shadows.ShadowNetwork
-
Returns the total number of sockets bound to this network interface.
- BrightnessChangeEventBuilder - Class in org.robolectric.shadows
-
Builder for
BrightnessChangeEvent
. - BrightnessChangeEventBuilder() - Constructor for class org.robolectric.shadows.BrightnessChangeEventBuilder
- broadcastPermission - Variable in class org.robolectric.shadows.ShadowApplication.Wrapper
- broadcastReceiver - Variable in class org.robolectric.shadows.ShadowApplication.Wrapper
- BroadcastReceiverData - Class in org.robolectric.manifest
- BroadcastReceiverData(String, MetaData) - Constructor for class org.robolectric.manifest.BroadcastReceiverData
- BroadcastReceiverData(Map<String, String>, MetaData, List<IntentFilterData>) - Constructor for class org.robolectric.manifest.BroadcastReceiverData
- BuckManifestFactory - Class in org.robolectric.internal
- BuckManifestFactory() - Constructor for class org.robolectric.internal.BuckManifestFactory
- buffer - Variable in class org.robolectric.shadows.ShadowMemoryMappedFile.RoboBufferIterator
- buffer - Variable in class org.robolectric.shadows.ShadowMemoryMappedFileS.RoboBufferIterator
- build() - Method in interface org.robolectric.android.AttributeSetBuilder
-
Build an
AttributeSet
with the antecedent attributes. - build() - Method in class org.robolectric.android.AttributeSetBuilderImpl
- build() - Method in class org.robolectric.annotation.Config.Builder
- build() - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- build() - Method in class org.robolectric.internal.bytecode.ShadowMap.Builder
- build() - Method in interface org.robolectric.Robolectric.AttributeSetBuilder
-
Deprecated.Build an
AttributeSet
with the antecedent attributes. - build() - Method in class org.robolectric.shadows.AppWidgetProviderInfoBuilder
- build() - Method in class org.robolectric.shadows.BrightnessChangeEventBuilder
- build() - Method in class org.robolectric.shadows.DragEventBuilder
- build() - Method in class org.robolectric.shadows.EpsBearerQosSessionAttributesBuilder
- build() - Method in class org.robolectric.shadows.FrameMetricsBuilder
- build() - Method in class org.robolectric.shadows.GnssStatusBuilder
-
Deprecated.Builds the
GnssStatus
from the satellites previously added. - build() - Method in class org.robolectric.shadows.GnssStatusBuilder.GnssSatelliteInfo.Builder
-
Deprecated.Builds the
GnssStatusBuilder.GnssSatelliteInfo
. - build() - Method in class org.robolectric.shadows.MediaCodecInfoBuilder
- build() - Method in class org.robolectric.shadows.MediaCodecInfoBuilder.CodecCapabilitiesBuilder
- build() - Method in class org.robolectric.shadows.ModuleInfoBuilder
-
Returns a
ModuleInfo
with the data that was given. - build() - Method in class org.robolectric.shadows.NrQosSessionAttributesBuilder
- build() - Method in class org.robolectric.shadows.PackageRollbackInfoBuilder
-
Returns a
PackageRollbackInfo
with the data that was given. - build() - Method in class org.robolectric.shadows.PlaybackInfoBuilder
- build() - Method in class org.robolectric.shadows.PreciseDataConnectionStateBuilder
- build() - Method in class org.robolectric.shadows.RangingSessionBuilder
- build() - Method in class org.robolectric.shadows.RollbackInfoBuilder
-
Returns a
RollbackInfo
with the data that was given. - build() - Method in class org.robolectric.shadows.RunningTaskInfoBuilder
- build() - Method in class org.robolectric.shadows.ShadowActivityManager.ApplicationExitInfoBuilder
- build() - Method in class org.robolectric.shadows.ShadowEventLog.EventBuilder
- build() - Method in class org.robolectric.shadows.ShadowRangingResult.Builder
- build() - Method in class org.robolectric.shadows.ShadowTrace.AsyncTraceSection.Builder
- build() - Method in class org.robolectric.shadows.ShadowTrace.Counter.Builder
- build() - Method in class org.robolectric.shadows.ShadowTypeface.ShadowBuilder
- build() - Method in class org.robolectric.shadows.ShadowUsageStatsManager.EventBuilder
- build() - Method in class org.robolectric.shadows.ShadowUsageStatsManager.UsageStatsBuilder
- build() - Method in class org.robolectric.shadows.StorageVolumeBuilder
- build() - Method in class org.robolectric.shadows.StreamConfigurationMapBuilder
-
Builds a StreamConfigurationMap based on data previously added to this builder.
- build() - Method in class org.robolectric.shadows.VibrationAttributesBuilder
- build() - Method in class org.robolectric.shadows.WifiUsabilityStatsEntryBuilder
- build() - Method in class org.robolectric.util.inject.Injector.Builder
-
Builds an injector as previously configured.
- build(int, Collection<String>, long, TimeUnit, PendingIntent) - Static method in class org.robolectric.shadows.ShadowUsageStatsManager.AppUsageObserver
- build(int, List<String>, Duration, Duration, PendingIntent, PendingIntent) - Static method in class org.robolectric.shadows.ShadowUsageStatsManager.UsageSessionObserver
- build(InstrumentationConfiguration, Sdk, Sdk, ResourcesMode, LooperMode.Mode) - Method in interface org.robolectric.internal.SandboxManager.SandboxBuilder
- build(ShadowMap, ShadowMatcher, Interceptors) - Method in interface org.robolectric.internal.bytecode.ClassHandlerBuilder
-
Builds a
instance
. - buildActivity(Class<T>) - Static method in class org.robolectric.Robolectric
-
Creates a ActivityController for the given activity class.
- buildActivity(Class<T>, Intent) - Static method in class org.robolectric.Robolectric
-
Creates a ActivityController for the given activity class with the intent.
- buildActivity(Class<T>, Intent, Bundle) - Static method in class org.robolectric.Robolectric
-
Creates a ActivityController for the given activity class with the intent and activity options.
- buildAttributeSet() - Static method in class org.robolectric.Robolectric
-
Allows for the programmatic creation of an
AttributeSet
. - buildBackupAgent(Class<T>) - Static method in class org.robolectric.Robolectric
- buildContentProvider(Class<T>) - Static method in class org.robolectric.Robolectric
- builder() - Static method in class org.robolectric.shadows.GnssStatusBuilder.GnssSatelliteInfo
-
Deprecated.
- Builder() - Constructor for class org.robolectric.annotation.Config.Builder
- Builder() - Constructor for class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- Builder() - Constructor for class org.robolectric.internal.bytecode.ShadowMap.Builder
- Builder() - Constructor for class org.robolectric.shadows.GnssStatusBuilder.GnssSatelliteInfo.Builder
-
Deprecated.
- Builder() - Constructor for class org.robolectric.shadows.ShadowTrace.AsyncTraceSection.Builder
- Builder() - Constructor for class org.robolectric.shadows.ShadowTrace.Counter.Builder
- Builder() - Constructor for class org.robolectric.util.inject.Injector.Builder
-
Creates a new builder.
- Builder(int, MacAddress, long, int) - Constructor for class org.robolectric.shadows.ShadowRangingResult.Builder
- Builder(ClassLoader) - Constructor for class org.robolectric.util.inject.Injector.Builder
-
Creates a new builder using the specified ClassLoader for plugin loading.
- Builder(Config) - Constructor for class org.robolectric.annotation.Config.Builder
- Builder(InstrumentationConfiguration) - Constructor for class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- Builder(ShadowMap) - Constructor for class org.robolectric.internal.bytecode.ShadowMap.Builder
- 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.
- buildEvent() - Static method in class org.robolectric.shadows.ShadowUsageStatsManager.EventBuilder
- buildExternalStorageAppCacheDirs(String) - Static method in class org.robolectric.shadows.ShadowEnvironment
- buildFragment(Class<T>) - Static method in class org.robolectric.Robolectric
-
Deprecated.Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
- buildFragment(Class<T>, Intent) - Static method in class org.robolectric.Robolectric
-
Deprecated.Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
- buildFragment(Class<T>, Intent, Bundle) - Static method in class org.robolectric.Robolectric
-
Deprecated.Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
- buildFragment(Class<T>, Bundle) - Static method in class org.robolectric.Robolectric
-
Deprecated.Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
- buildFragment(Class<T>, Class<? extends Activity>) - Static method in class org.robolectric.Robolectric
-
Deprecated.Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
- buildFragment(Class<T>, Class<? extends Activity>, Intent) - Static method in class org.robolectric.Robolectric
-
Deprecated.Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
- buildFragment(Class<T>, Class<? extends Activity>, Intent, Bundle) - Static method in class org.robolectric.Robolectric
-
Deprecated.Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
- buildFragment(Class<T>, Class<? extends Activity>, Bundle) - Static method in class org.robolectric.Robolectric
-
Deprecated.Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
- buildFrom(GnssStatusBuilder.GnssSatelliteInfo...) - Static method in class org.robolectric.shadows.GnssStatusBuilder
-
Deprecated.Convenience method to create a
GnssStatus
directly from known satellite info. - buildGlobalConfig() - Method in class org.robolectric.RobolectricTestRunner
-
Deprecated.Provide a service implementation of
GlobalConfigProvider
instead. This method will be removed in Robolectric 4.3. - buildIntentService(Class<T>) - Static method in class org.robolectric.Robolectric
- buildIntentService(Class<T>, Intent) - Static method in class org.robolectric.Robolectric
- buildResourceTable(AndroidManifest) - Method in class org.robolectric.res.ResourceMerger
- buildService(Class<T>) - Static method in class org.robolectric.Robolectric
- buildService(Class<T>, Intent) - Static method in class org.robolectric.Robolectric
- buildString(char[]) - Static method in class org.robolectric.res.android.ResourceString
-
Builds a string from a null-terminated char data.
- buildSubscriptionInfo() - Method in class org.robolectric.shadows.ShadowSubscriptionManager.SubscriptionInfoBuilder
- buildSystemFallback(String, String, FontCustomizationParser.Result, ArrayMap<String, FontFamily[]>, ArrayList<Font>) - Static method in class org.robolectric.shadows.ShadowSystemFonts
- buildSystemFallback(String, String, ArrayMap<String, Typeface>, ArrayMap<String, FontFamily[]>) - Static method in class org.robolectric.shadows.ShadowTypeface
- bulkInsert(Uri, ContentValues[]) - Method in class org.robolectric.shadows.ShadowContentProviderClient
- bulkInsert(Uri, ContentValues[]) - Method in class org.robolectric.shadows.ShadowContentResolver
-
If a
ContentProvider
is registered for the givenUri
, itsContentProvider.bulkInsert(Uri, ContentValues[])
method will be invoked. - bundle - Variable in class org.robolectric.shadows.ShadowTelecomManager.CallRecord
-
Deprecated.Use
ShadowTelecomManager.CallRecord.extras
instead. - ByteBucketArray<T> - Class in org.robolectric.res.android
-
Stores a sparsely populated array.
- ByteBucketArray(T) - Constructor for class org.robolectric.res.android.ByteBucketArray
- bytes - Variable in class org.robolectric.shadows.ShadowMemoryMappedFile
- bytes - Variable in class org.robolectric.shadows.ShadowMemoryMappedFileS
- bytes() - Method in class org.robolectric.shadows.ShadowStatsLog.StatsLogItem
C
- CACHE - org.robolectric.fakes.RoboResponseSource
-
Return the response from the cache immediately.
- CachedPathIteratorFactory - Class in org.robolectric.shadows
-
Class that returns iterators for a given path.
- CachedPathIteratorFactory(PathIterator) - Constructor for class org.robolectric.shadows.CachedPathIteratorFactory
- CachedPathIteratorFactory.CachedPathIterator - Class in org.robolectric.shadows
-
Class that allows us to iterate over a path multiple times
- calculateSignalLevel(int, int) - Static method in class org.robolectric.shadows.ShadowWifiManager
- call() - Method in interface org.robolectric.shadows.ShadowArscApkAssets9.ApkAssetMaker
- call(Uri, String, String, Bundle) - Method in class org.robolectric.shadows.ShadowContentResolver
- call(Class<?>, T, Object[]) - Method in interface org.robolectric.util.Function
- call(String, String, Bundle) - Method in class org.robolectric.shadows.ShadowContentProviderClient
- CALL_REAL_CODE - Static variable in class org.robolectric.internal.bytecode.ShadowWrangler
- CALL_REAL_CODE_PLAN - Static variable in class org.robolectric.internal.bytecode.ShadowWrangler
- callActivityOnCreate(Activity, Bundle) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
- callActivityOnDestroy(Activity) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
- callActivityOnPause(Activity) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
- callActivityOnRestart(Activity) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
- callActivityOnResume(Activity) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
- callActivityOnStart(Activity) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
- callActivityOnStop(Activity) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
- callApplicationOnCreate(Application) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
- callApplyConfigurationToResourcesLocked(Configuration, CompatibilityInfo) - Method in class org.robolectric.shadows.ShadowResourcesManager
-
Exposes
ResourcesManager#applyCompatConfigurationLocked(int, Configuration)
. - callAttach(Activity, Context, ActivityThread, Instrumentation, Application, Intent, ActivityInfo, CharSequence, Object) - Method in interface org.robolectric.shadows._Activity_
- callAttach(Context) - Method in class org.robolectric.shadows.ShadowApplication
-
Attaches an application to a base context.
- callAttach(Intent) - Method in class org.robolectric.shadows.ShadowActivity
- callAttach(Intent, Bundle) - Method in class org.robolectric.shadows.ShadowActivity
- callAttach(Intent, Bundle, Object) - Method in class org.robolectric.shadows.ShadowActivity
- callback() - Method in class org.robolectric.shadows.ShadowAccessibilityService.GestureDispatch
-
The callback that is to be invoked once the gesture has finished dispatching.
- callConstructor(Class<? extends R>, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively call the constructor of an object.
- callDispatchResized() - Method in class org.robolectric.shadows.ShadowViewRootImpl
- callGetThemeResId() - Method in class org.robolectric.shadows.ShadowContextThemeWrapper
- callInstanceMethod(Class<?>, Object, String, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively call an instance method on an object on a specific class.
- callInstanceMethod(Object, String, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively call an instance method on an object.
- callLastOnFinished(Intent, int, String, Bundle) - Method in class org.robolectric.shadows.ShadowPendingIntent
- callOnActivityResult(int, int, Intent) - Method in class org.robolectric.shadows.ShadowActivity
-
Deprecated.
- callOnAttachedToHierarchy(PreferenceManager) - Method in class org.robolectric.shadows.ShadowPreference
- callOnAttachedToWindow() - Method in class org.robolectric.shadows.ShadowView
- callOnCreate(Bundle) - Method in class org.robolectric.shadows.ShadowDialog
- callOnDetachedFromWindow() - Method in class org.robolectric.shadows.ShadowView
- callOnGetDirectActions(CancellationSignal, Consumer<List<DirectAction>>) - Method in class org.robolectric.shadows.ShadowActivity
-
Calls Activity#onGetDirectActions with the given parameters.
- callParsePackage(Path) - Static method in class org.robolectric.shadows.ShadowPackageParser
-
Parses an AndroidManifest.xml file using the framework PackageParser.
- CallRecord(PhoneAccountHandle, Bundle) - Constructor for class org.robolectric.shadows.ShadowTelecomManager.CallRecord
-
Deprecated.
- callStaticMethod(Class<?>, String, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively call a static method on a class.
- callStaticMethod(ClassLoader, String, String, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Helper method for calling a static method using a class from a custom class loader
- callThroughByDefault - Variable in class org.robolectric.internal.bytecode.ShadowInfo
- 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.
- canAddCall() - Method in class org.robolectric.shadows.ShadowInCallService
- canAuthenticate() - Method in class org.robolectric.shadows.ShadowBiometricManager
- canAuthenticate(int, int) - Method in class org.robolectric.shadows.ShadowBiometricManager
- cancel() - Method in class org.robolectric.shadows.ShadowCountDownTimer
- cancel() - Method in class org.robolectric.shadows.ShadowJsResult
- cancel() - Method in class org.robolectric.shadows.ShadowPendingIntent
- cancel() - Method in class org.robolectric.shadows.ShadowRenderNodeAnimator
- cancel() - Method in class org.robolectric.shadows.ShadowRenderNodeAnimatorR
- cancel() - Method in class org.robolectric.shadows.ShadowSslErrorHandler
- cancel() - Method in class org.robolectric.shadows.ShadowSystemVibrator
- cancel() - Method in class org.robolectric.shadows.ShadowToast
- cancel(boolean) - Method in class org.robolectric.shadows.ShadowLegacyAsyncTask
- cancel(boolean) - Method in class org.robolectric.util.SimpleFuture
-
Deprecated.
- cancel(int) - Method in class org.robolectric.shadows.ShadowJobScheduler
- cancel(int) - Method in class org.robolectric.shadows.ShadowJobScheduler.ShadowJobSchedulerImpl
- cancel(int) - Method in class org.robolectric.shadows.ShadowNotificationManager
- cancel(AlarmManager.OnAlarmListener) - Method in class org.robolectric.shadows.ShadowAlarmManager
- cancel(PendingIntent) - Method in class org.robolectric.shadows.ShadowAlarmManager
- cancel(String, int) - Method in class org.robolectric.shadows.ShadowNotificationManager
- cancelAll() - Method in class org.robolectric.shadows.ShadowJobScheduler
- cancelAll() - Method in class org.robolectric.shadows.ShadowJobScheduler.ShadowJobSchedulerImpl
- cancelAll() - Method in class org.robolectric.shadows.ShadowNotificationManager
- cancelAllNotifications() - Method in class org.robolectric.shadows.ShadowNotificationListenerService
- cancelAutoFocus() - Method in class org.robolectric.shadows.ShadowCamera
- cancelBugreport() - Method in class org.robolectric.shadows.ShadowBugreportManager
-
Cancels bugreport in progress and executes
BugreportManager.BugreportCallback.onError(int)
. - cancelDiscovery() - Method in class org.robolectric.shadows.ShadowBluetoothAdapter
- cancelMissedCallsNotification() - Method in class org.robolectric.shadows.ShadowTelecomManager
- cancelNotification(String) - Method in class org.robolectric.shadows.ShadowNotificationListenerService
- cancelOperation(int) - Method in class org.robolectric.shadows.ShadowAsyncQueryHandler
- cancelSync(Account, String) - Static method in class org.robolectric.shadows.ShadowContentResolver
- canConfigureInteractAcrossProfiles(String) - Method in class org.robolectric.shadows.ShadowCrossProfileApps
-
Unlike the real system, we will assume a package can always configure its own cross profile interaction.
- canDrawOverlays(Context) - Static method in class org.robolectric.shadows.ShadowSettings
- canGoBack() - Method in class org.robolectric.shadows.ShadowWebView
- canGoForward() - Method in class org.robolectric.shadows.ShadowWebView
- canInteractAcrossProfiles() - Method in class org.robolectric.shadows.ShadowCrossProfileApps
-
Checks if the current application can interact across profile.
- canNotifyAsPackage(String) - Method in class org.robolectric.shadows.ShadowNotificationManager
- canonicalToCurrentPackageNames(String[]) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- canOpenPopup() - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- canPause() - Method in class org.robolectric.shadows.ShadowVideoView
- canRequestInteractAcrossProfiles() - Method in class org.robolectric.shadows.ShadowCrossProfileApps
-
Returns whether the calling package can request to navigate the user to the relevant settings page to request user consent to interact across profiles.
- canRequestPackageInstalls() - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- canScheduleExactAlarms() - Method in class org.robolectric.shadows.ShadowAlarmManager
-
Returns the schedule exact alarm state set by
ShadowAlarmManager.setCanScheduleExactAlarms(boolean)
. - canSwitchUsers() - Method in class org.robolectric.shadows.ShadowUserManager
-
Returns
true
by default, or the value specified viaShadowUserManager.setCanSwitchUser(boolean)
. - canvasReflector - Variable in class org.robolectric.shadows.ShadowCanvas
- CapabilityFailureInfo() - Constructor for class org.robolectric.shadows.ShadowRcsUceAdapter.CapabilityFailureInfo
- capture(CaptureRequest, CameraCaptureSession.CaptureCallback, Handler) - Method in class org.robolectric.shadows.ShadowCameraCaptureSessionImpl
- captureSingleRequest(CaptureRequest, Executor, CameraCaptureSession.CaptureCallback) - Method in class org.robolectric.shadows.ShadowCameraCaptureSessionImpl
- CastableTo(Supplier<Type>) - Constructor for class org.robolectric.errorprone.bugpatterns.Helpers.CastableTo
- castNativePtr(long) - Static method in class org.robolectric.RuntimeEnvironment
- ceil(float) - Static method in class org.robolectric.shadows.ShadowFloatMath
- centerX - Variable in class org.robolectric.shadows.ShadowCanvas.CirclePaintHistoryEvent
- centerY - Variable in class org.robolectric.shadows.ShadowCanvas.CirclePaintHistoryEvent
- CESU8 - org.robolectric.res.android.ResourceString.Type
- changeDisplay(int, String) - Static method in class org.robolectric.shadows.ShadowDisplayManager
-
Changes properties of a simulated display.
- CHAR_SEQUENCE - org.robolectric.res.ResType
- CHAR_SEQUENCE_ARRAY - org.robolectric.res.ResType
- charset() - Method in enum org.robolectric.res.android.ResourceString.Type
- CHECK(boolean) - Static method in class org.robolectric.res.android.Util
- checkActivities(boolean) - Method in class org.robolectric.shadows.ShadowApplication
-
Set to true if you'd like Robolectric to strictly simulate the real Android behavior when calling
Context.startActivity(android.content.Intent)
. - checkBluetoothAddress(String) - Static method in class org.robolectric.shadows.ShadowBluetoothAdapter
-
Validate a Bluetooth address, such as "00:43:A8:23:10:F0" Alphabetic characters must be uppercase to be valid.
- checkCallingOrSelfPermission(String) - Method in class org.robolectric.shadows.ShadowContextImpl
- checkCallingPermission(String) - Method in class org.robolectric.shadows.ShadowContextImpl
- checkChar(String, int, char) - Method in class org.robolectric.shadows.ShadowTime
- checkedPerformClick() - Method in class org.robolectric.shadows.ShadowView
-
Deprecated.- Please use Espresso for View interactions.
- checkIfCameraClosedOrInError() - Method in class org.robolectric.shadows.ShadowCameraDeviceImpl
- checkMainThread() - Method in class org.robolectric.android.internal.NoOpThreadChecker
- checkNotMainThread() - Method in class org.robolectric.android.internal.NoOpThreadChecker
- checkOp(String, int, String) - Method in class org.robolectric.shadows.ShadowAppOpsManager
-
Checks whether op was previously set using
ShadowAppOpsManager.setMode(java.lang.String, int, java.lang.String, int)
- checkOpNoThrow(int, int, String) - Method in class org.robolectric.shadows.ShadowAppOpsManager
-
Like
AppOpsManager.checkOp(java.lang.String, int, java.lang.String)
but instead of throwing aSecurityException
it returnsAppOpsManager.MODE_ERRORED
. - checkOpNoThrow(String, int, String) - Method in class org.robolectric.shadows.ShadowAppOpsManager
-
Deprecated.
- checkPackage(int, String) - Method in class org.robolectric.shadows.ShadowAppOpsManager
- checkPermission(String, int, int) - Method in class org.robolectric.shadows.ShadowContextImpl
- checkPermission(String, String) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- checkService(String) - Static method in class org.robolectric.shadows.ShadowServiceManager
- checkSignatures(int, int) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- checkSignatures(String, String) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- checkSlicePermission(Uri, int, int) - Method in class org.robolectric.shadows.ShadowSliceManager
- checkStateAfterTestFailure(Throwable) - Method in class org.robolectric.android.internal.AndroidTestEnvironment
- checkStateAfterTestFailure(Throwable) - Method in interface org.robolectric.internal.TestEnvironment
- CLASS_HANDLER_DATA_FIELD_NAME - Static variable in class org.robolectric.internal.bytecode.ShadowConstants
- CLASS_NAME - Static variable in class org.robolectric.shadows.ShadowContextImpl
- classBlock(RunNotifier) - Method in class org.robolectric.internal.SandboxTestRunner
- ClassDetails - Class in org.robolectric.internal.bytecode
-
A more lightweight variant of
MutableClass
. - ClassDetails(byte[]) - Constructor for class org.robolectric.internal.bytecode.ClassDetails
- classesToNotAcquire - Variable in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- classesToNotInstrument - Variable in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- classesToNotInstrumentRegex - Variable in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- classHandler - Variable in class org.robolectric.internal.bytecode.Sandbox
- ClassHandler - Interface in org.robolectric.internal.bytecode
-
This interface is used by Robolectric when instrumented classes are created and interacted with.
- ClassHandler.Plan - Interface in org.robolectric.internal.bytecode
-
An execution plan, which can be invoked to satisfy a requested method call.
- classHandlerBuilder - Variable in class org.robolectric.internal.SandboxTestRunner
- ClassHandlerBuilder - Interface in org.robolectric.internal.bytecode
-
Factory interface for
ClassHandler
. - classInitializing(Class) - Method in interface org.robolectric.internal.bytecode.ClassHandler
-
Called by Robolectric when an instrumented class is first loaded into a sandbox and is ready to be statically initialized.
- classInitializing(Class) - Static method in class org.robolectric.internal.bytecode.RobolectricInternals
- classInitializing(Class) - Method in class org.robolectric.internal.bytecode.ShadowWrangler
- ClassInstrumentor - Class in org.robolectric.internal.bytecode
-
Instruments (i.e.
- ClassInstrumentor() - Constructor for class org.robolectric.internal.bytecode.ClassInstrumentor
- ClassInstrumentor(ClassInstrumentor.Decorator) - Constructor for class org.robolectric.internal.bytecode.ClassInstrumentor
- ClassInstrumentor.Decorator - Interface in org.robolectric.internal.bytecode
- className - Variable in class org.robolectric.internal.bytecode.MethodRef
- className - Variable in class org.robolectric.internal.bytecode.MethodSignature
- className - Variable in class org.robolectric.util.ReflectionHelpers.StringParameter
- className() - Method in annotation type org.robolectric.annotation.Implements
-
Android class name (if the Class object is not accessible).
- className() - Method in annotation type org.robolectric.util.reflector.ForType
- ClassNameResolver<T> - Class in org.robolectric.shadows
- ClassNameResolver() - Constructor for class org.robolectric.shadows.ClassNameResolver
- classNameTranslations - Variable in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- classNameTranslations() - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration
-
Map from a requested class to an alternate stand-in, or not.
- classNode - Variable in class org.robolectric.internal.bytecode.MutableClass
- ClassNodeProvider - Class in org.robolectric.internal.bytecode
- ClassNodeProvider() - Constructor for class org.robolectric.internal.bytecode.ClassNodeProvider
- ClassParameter(Class<? extends V>, V) - Constructor for class org.robolectric.util.ReflectionHelpers.ClassParameter
- clazz - Variable in class org.robolectric.internal.bytecode.InvocationProfile
- clazz - Variable in class org.robolectric.util.ReflectionHelpers.ClassParameter
- clean(Object) - Static method in class org.robolectric.fakes.CleanerCompat
- CleanerCompat - Class in org.robolectric.fakes
-
Wrapper for
Cleaner
, used byAndroidInterceptors.CleanerInterceptor
when running on Java 9+. - CleanerCompat() - Constructor for class org.robolectric.fakes.CleanerCompat
- CleanerInterceptor() - Constructor for class org.robolectric.interceptors.AndroidInterceptors.CleanerInterceptor
- cleanStackTrace(Throwable) - Static method in class org.robolectric.internal.bytecode.RobolectricInternals
- clear() - Method in class org.robolectric.fakes.RoboMenu
- clear() - Method in class org.robolectric.res.android.NativeObjRegistry
-
WARNING -- dangerous! Call
NativeObjRegistry.unregister(long)
instead! - clear() - Static method in class org.robolectric.shadows.ShadowLog
-
Clear all accumulated logs.
- clear() - Method in class org.robolectric.shadows.ShadowVelocityTracker
- clear(String) - Method in class org.robolectric.shadows.ShadowTime
- Clear() - Method in class org.robolectric.res.android.CppAssetManager2.Theme
- clearAccounts() - Method in class org.robolectric.shadows.ShadowTelecomManager
-
Deprecated.
- clearAccountsForPackage(String) - Method in class org.robolectric.shadows.ShadowTelecomManager
- clearAll() - Static method in class org.robolectric.shadows.ShadowEventLog
- clearAllNetworks() - Method in class org.robolectric.shadows.ShadowConnectivityManager
-
Clears the list of all
Network
s. - clearAnimation() - Method in class org.robolectric.shadows.ShadowView
- clearApplicationUserData(String, IPackageDataObserver) - Method in class org.robolectric.shadows.ShadowActivityManager
- clearApplicationUserData(String, IPackageDataObserver) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- clearBroadcastIntents() - Method in class org.robolectric.shadows.ShadowContextWrapper
-
Clears the broadcast intents sent during the tests (for all users).
- clearCache(boolean) - Method in class org.robolectric.shadows.ShadowWebView
- clearCameraInfo() - Static method in class org.robolectric.shadows.ShadowCamera
- clearCodecs() - Static method in class org.robolectric.shadows.ShadowMediaCodec
-
Clears any previously added encoders and decoders.
- clearControllers() - Method in class org.robolectric.shadows.ShadowMediaSessionManager
-
Clears all controllers such that
ShadowMediaSessionManager.getActiveSessions(ComponentName)
will return the empty list. - clearCorruptStreamSources() - Static method in class org.robolectric.shadows.ShadowDrawable
- clearCrossProfileIntentFilters(int) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- clearExistingInstances() - Static method in class org.robolectric.shadows.ShadowImsMmTelManager
- clearFormData() - Method in class org.robolectric.shadows.ShadowWebView
- clearHasSentRttRequest() - Method in class org.robolectric.shadows.ShadowCall
-
"Forgets" that sendRttRequest() was called.
- clearHeader() - Method in class org.robolectric.fakes.RoboSubMenu
- clearHistory() - Method in class org.robolectric.shadows.ShadowWebView
- clearHttpResponseRules() - Static method in class org.robolectric.shadows.httpclient.FakeHttp
- clearHttpResponseRules() - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- clearHttpResponses() - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
-
Call this method if you want to ensure that there's no http responses logged from this point until the next response arrives.
- clearIntentFilterForActivity(ComponentName) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Clears intent filters for given activity.
- clearIntentFilterForProvider(ComponentName) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Clears intent filters for given provider.
- clearIntentFilterForReceiver(ComponentName) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Clears intent filters for given receiver.
- clearIntentFilterForService(ComponentName) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Clears intent filters for given service.
- clearKilledProcesses() - Static method in class org.robolectric.shadows.ShadowProcess
- clearLastDownloadedMultimediaMessageParams() - Method in class org.robolectric.shadows.ShadowSmsManager
- clearLastDragClipData() - Static method in class org.robolectric.shadows.ShadowWindowManagerGlobal
-
Clears the data returned by
ShadowWindowManagerGlobal.getLastDragClipData()
. - clearLastSentDataMessageParams() - Method in class org.robolectric.shadows.ShadowSmsManager
-
Clear last recorded parameters for
ShadowSmsManager.sendDataMessage(java.lang.String, java.lang.String, short, byte[], android.app.PendingIntent, android.app.PendingIntent)
. - clearLastSentMultimediaMessageParams() - Method in class org.robolectric.shadows.ShadowSmsManager
-
Clear last recorded parameters for
ShadowSmsManager.sendMultimediaMessage(android.content.Context, android.net.Uri, java.lang.String, android.os.Bundle, android.app.PendingIntent)
. - clearLastSentMultipartTextMessageParams() - Method in class org.robolectric.shadows.ShadowSmsManager
- clearLastSentTextMessageParams() - Method in class org.robolectric.shadows.ShadowSmsManager
-
Clear last recorded parameters for
ShadowSmsManager.sendTextMessage(java.lang.String, java.lang.String, java.lang.String, android.app.PendingIntent, android.app.PendingIntent)
. - clearLastSpokenText() - Method in class org.robolectric.shadows.ShadowTextToSpeech
- clearLooperMode() - Static method in class org.robolectric.shadows.ShadowLooper
- clearMappings() - Method in class org.robolectric.shadows.ShadowMimeTypeMap
- clearNetworkRoamingStatus() - Method in class org.robolectric.shadows.ShadowSubscriptionManager
-
Clears the local cache of roaming subscription Ids used by
ShadowSubscriptionManager.isNetworkRoaming(int)
. - clearNextStartedActivities() - Method in class org.robolectric.shadows.ShadowContextWrapper
-
Clears all
Intent
s started byContextWrapper.startActivity(android.content.Intent)
. - clearNextStartedActivities() - Method in class org.robolectric.shadows.ShadowCrossProfileApps
-
Clears all records of
ShadowCrossProfileApps.StartedActivity
s from calls toCrossProfileApps.startActivity(ComponentName, UserHandle)
orCrossProfileApps.startMainActivity(ComponentName, UserHandle)
,ShadowCrossProfileApps.startActivity(Intent, UserHandle, Activity)
,ShadowCrossProfileApps.startActivity(Intent, UserHandle, Activity, Bundle)
. - clearOnExitAnimationListener() - Method in class org.robolectric.fakes.RoboSplashScreen
- clearPackagePersistentPreferredActivities(ComponentName, String) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- clearPackagePreferredActivities(String) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- clearPackagePreferredActivitiesInternal(String, SortedMap<ComponentName, List<IntentFilter>>) - Static method in class org.robolectric.shadows.ShadowPackageManager
- clearPendingHttpResponses() - Static method in class org.robolectric.shadows.httpclient.FakeHttp
- clearPendingHttpResponses() - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- clearPhoneIds() - Static method in class org.robolectric.shadows.ShadowSubscriptionManager
-
Removes all mappings between subscription IDs and phone IDs from the map used by
ShadowSubscriptionManager.getPhoneId(int)
. - clearPhoneTypes() - Method in class org.robolectric.shadows.ShadowTelephonyManager
-
Removes all
subId
tophoneType
mappings. - clearPlayed() - Method in class org.robolectric.shadows.ShadowSoundPool
-
Clears the sounds played by this SoundPool.
- clearPorts() - Method in class org.robolectric.shadows.ShadowUsbManager
-
Remove all added ports from UsbManager.
- clearProfileOwner(ComponentName) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- clearRegisterContentProviderException(Uri) - Method in class org.robolectric.shadows.ShadowContentResolver
-
Clears an exception previously set with
ShadowContentResolver.setRegisterContentProviderException(Uri, RuntimeException)
. - clearRegisteredReceivers() - Method in class org.robolectric.shadows.ShadowApplication
-
Clears the list of
ShadowApplication.Wrapper
s for registered receivers - clearRequestInfos() - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- clearSeedAccountData() - Method in class org.robolectric.shadows.ShadowUserManager
- clearSource() - Static method in class org.robolectric.shadows.ShadowAudioRecord
-
Resets
ShadowAudioRecord.AudioRecordSource
to be used for providing data toAudioRecord
, so that all requests are fulfilled for audio data by completely filling any requested buffers. - clearStartedServices() - Method in class org.robolectric.shadows.ShadowContextWrapper
-
Clears all
Intent
started byContext.startService(android.content.Intent)
. - clearStorageStats() - Method in class org.robolectric.shadows.ShadowStorageStatsManager
- clearSystemAvailableFeatures() - Method in class org.robolectric.shadows.ShadowPackageManager
- clearSystemSharedLibraryNames() - Method in class org.robolectric.shadows.ShadowPackageManager
-
Clears the values returned by
PackageManager.getSystemSharedLibraryNames()
. - clearTargetUserProfiles() - Method in class org.robolectric.shadows.ShadowCrossProfileApps
-
Clears the list of accessible handles.
- clearThreadStatsTag() - Static method in class org.robolectric.shadows.ShadowTrafficStats
- clearToken(Context, String) - Static method in class org.robolectric.shadows.gms.ShadowGoogleAuthUtil
- clearToken(Context, String) - Method in class org.robolectric.shadows.gms.ShadowGoogleAuthUtil.GoogleAuthUtilImpl
- clearUsabilityScores() - Method in class org.robolectric.shadows.ShadowWifiManager
-
Clears wifi usability scores previous passed to
WifiManager.updateWifiUsabilityScore(int, int, int)
- clearUserRestriction(ComponentName, String) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- clearUserRestrictions(UserHandle) - Method in class org.robolectric.shadows.ShadowUserManager
-
Removes all user restrictions set of a user identified by
userHandle
. - clearVcnConfig(ParcelUuid) - Method in class org.robolectric.shadows.ShadowVcnManager
- clearView() - Method in class org.robolectric.shadows.ShadowWebView
- clearWakeLocks() - Method in class org.robolectric.shadows.ShadowApplication
-
Deprecated.use ShadowPowerManager.clearWakeLocks
- clearWakeLocks() - Static method in class org.robolectric.shadows.ShadowPowerManager
-
Clears most recent recorded wakelock.
- clearWasDataSetChangedCalledFlag() - Method in class org.robolectric.shadows.ShadowBaseAdapter
- clearWasInvalidated() - Method in class org.robolectric.shadows.ShadowView
-
Clears the wasInvalidated flag
- click() - Method in class org.robolectric.fakes.RoboMenuItem
- click() - Method in class org.robolectric.shadows.ShadowPreference
- clickFirstItemContainingText(String) - Method in class org.robolectric.shadows.ShadowAdapterView
- clickMenuItem(int) - Method in class org.robolectric.shadows.ShadowActivity
-
Perform a click on a menu item.
- clickOn(int) - Method in class org.robolectric.shadows.ShadowDialog
- clickOn(View) - Static method in class org.robolectric.shadows.ShadowView
-
Deprecated.Please use Espresso for view interactions
- clickOnItem(int) - Method in class org.robolectric.shadows.ShadowAlertDialog
-
Simulates a click on the
Dialog
item indicated byindex
. - clickOnText(int) - Method in class org.robolectric.shadows.ShadowDialog
- clickOnText(String) - Method in class org.robolectric.shadows.ShadowDialog
- close() - Method in class org.robolectric.android.controller.ActivityController
-
Transitions the underlying Activity to the 'destroyed' state by progressing through the appropriate lifecycle events.
- close() - Method in class org.robolectric.android.XmlResourceParserImpl
- close() - Method in class org.robolectric.fakes.BaseCursor
-
Deprecated.
- close() - Method in class org.robolectric.fakes.RoboCursor
-
Deprecated.
- close() - Method in class org.robolectric.fakes.RoboMenu
- close() - Method in class org.robolectric.fakes.RoboWebMessagePort
- close() - Method in class org.robolectric.res.android.Asset
- close() - Method in class org.robolectric.shadows.ShadowArscApkAssets9
- close() - Method in class org.robolectric.shadows.ShadowBasicTagTechnology
- close() - Method in class org.robolectric.shadows.ShadowBluetoothServerSocket
- close() - Method in class org.robolectric.shadows.ShadowBluetoothSocket
- close() - Method in class org.robolectric.shadows.ShadowCameraCaptureSessionImpl
- close() - Method in class org.robolectric.shadows.ShadowCameraDeviceImpl
- close() - Method in class org.robolectric.shadows.ShadowCloseGuard
- close() - Method in class org.robolectric.shadows.ShadowContextHubClient
- close() - Method in class org.robolectric.shadows.ShadowCursorWrapper
- close() - Method in class org.robolectric.shadows.ShadowHttpResponseCache
- close() - Method in class org.robolectric.shadows.ShadowImageReader
- close() - Method in class org.robolectric.shadows.ShadowLegacyAssetInputStream
- close() - Method in class org.robolectric.shadows.ShadowMemoryMappedFile
- close() - Method in class org.robolectric.shadows.ShadowMemoryMappedFileS
- close() - Method in class org.robolectric.shadows.ShadowPackageInstaller.ShadowSession
- close() - Method in class org.robolectric.shadows.ShadowParcelFileDescriptor
- close() - Method in class org.robolectric.shadows.ShadowPath
- close() - Method in class org.robolectric.shadows.ShadowRangingSession
-
Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call.
- close(FileDescriptor) - Method in class org.robolectric.shadows.ShadowBlockGuardOs
- closeCurrentInput() - Method in class org.robolectric.shadows.ShadowInputMethodManager
-
The framework implementation does a blocking call to system server.
- CloseGuardRule - Class in org.robolectric.junit.rules
-
Rule for failing tests that leave any CloseGuards open.
- CloseGuardRule() - Constructor for class org.robolectric.junit.rules.CloseGuardRule
- closeProfileProxy(int, BluetoothProfile) - Method in class org.robolectric.shadows.ShadowBluetoothAdapter
-
Overrides behavior of
ShadowBluetoothAdapter.closeProfileProxy(int,android.bluetooth.BluetoothProfile)
ifShadowBluetoothAdapter.setProfileProxy(int, android.bluetooth.BluetoothProfile)
has been previously called. - code() - Method in enum org.robolectric.res.android.DataType
- CodecConfig(int, int, ShadowMediaCodec.CodecConfig.Codec) - Constructor for class org.robolectric.shadows.ShadowMediaCodec.CodecConfig
- collapseActionView() - Method in class org.robolectric.fakes.RoboMenuItem
- COLOR - org.robolectric.res.ResType
- COLOR_MODE_HDR - org.robolectric.res.android.ResTable_config.Type
- COLOR_MODE_WIDE_COLOR_GAMUT - org.robolectric.res.android.ResTable_config.Type
- COLOR_STATE_LIST - org.robolectric.res.ResType
- colorMode - Variable in class org.robolectric.android.internal.DisplayConfig
-
The active color mode.
- colorMode - Variable in class org.robolectric.res.android.ResTable_config
- colorModeHdr() - Method in class org.robolectric.res.android.ResTable_config
-
Returns the HDR section of
ResTable_config.colorMode
. - colorModeWideColorGamut() - Method in class org.robolectric.res.android.ResTable_config
-
Returns the wide color gamut section of
ResTable_config.colorMode
. - columnNames - Variable in class org.robolectric.fakes.RoboCursor
-
Deprecated.
- commit() - Method in class org.robolectric.shadows.ShadowSharedPreferences.ShadowSharedPreferencesEditorImpl
- commit(IntentSender) - Method in class org.robolectric.shadows.ShadowPackageInstaller.ShadowSession
- compare(Intent, Intent) - Method in class org.robolectric.shadows.ShadowPackageManager.IntentComparator
- compare(Time, Time) - Static method in class org.robolectric.shadows.ShadowTime
- compareTo(Sdk) - Method in class org.robolectric.pluginapi.Sdk
-
Instances of
Sdk
are ordered by the API level they implement. - compareTo(ShadowAlarmManager.ScheduledAlarm) - Method in class org.robolectric.shadows.ShadowAlarmManager.ScheduledAlarm
- compareTo(JavaVersion) - Method in class org.robolectric.util.JavaVersion
- compileTimeSystemResourcesFile - Static variable in class org.robolectric.RuntimeEnvironment
- CompletedDownload(String, String, boolean, String, String, long, boolean) - Constructor for class org.robolectric.shadows.ShadowDownloadManager.CompletedDownload
- CompletedDownload(String, String, boolean, String, String, long, boolean, Uri, Uri) - Constructor for class org.robolectric.shadows.ShadowDownloadManager.CompletedDownload
- COMPLEX_MANTISSA_MASK - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_MANTISSA_SHIFT - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_RADIX_0p23 - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_RADIX_16p7 - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_RADIX_23p0 - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_RADIX_8p15 - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_RADIX_MASK - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_RADIX_SHIFT - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_UNIT_DIP - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_UNIT_FRACTION - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_UNIT_FRACTION_PARENT - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_UNIT_IN - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_UNIT_MASK - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_UNIT_MM - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_UNIT_PT - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_UNIT_PX - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_UNIT_SHIFT - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- COMPLEX_UNIT_SP - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- component - Variable in class org.robolectric.android.controller.ComponentController
- ComponentController<C extends ComponentController<C,T>,T> - Class in org.robolectric.android.controller
- ComponentController(T) - Constructor for class org.robolectric.android.controller.ComponentController
- ComponentController(T, Intent) - Constructor for class org.robolectric.android.controller.ComponentController
- ComponentState(int, int) - Constructor for class org.robolectric.shadows.ShadowPackageManager.ComponentState
- compress(Bitmap.CompressFormat, int, OutputStream) - Method in class org.robolectric.shadows.ShadowBitmap
- computeBounds(RectF, boolean) - Method in class org.robolectric.shadows.ShadowPath
- computeCurrentVelocity(int) - Method in class org.robolectric.shadows.ShadowVelocityTracker
- computeCurrentVelocity(int, float) - Method in class org.robolectric.shadows.ShadowVelocityTracker
- CONDITIONAL_CACHE - org.robolectric.fakes.RoboResponseSource
-
Make a conditional request to the host, returning the cache response if the cache is valid and the network response otherwise.
- Config - Annotation Type in org.robolectric.annotation
-
Configuration settings that can be used on a per-class or per-test basis.
- CONFIG_PROPERTIES - Static variable in class org.robolectric.RobolectricTestRunner
- Config.Builder - Class in org.robolectric.annotation
- Config.Implementation - Class in org.robolectric.annotation
- ConfigConfigurer - Class in org.robolectric.plugins
-
Provides configuration to Robolectric for its @
Config
annotation. - ConfigConfigurer(PackagePropertiesLoader) - Constructor for class org.robolectric.plugins.ConfigConfigurer
- ConfigConfigurer(PackagePropertiesLoader, GlobalConfigProvider) - Constructor for class org.robolectric.plugins.ConfigConfigurer
- ConfigDescription - Class in org.robolectric.res.android
-
transliterated from https://android.googlesource.com/platform/frameworks/base/+/android-9.0.0_r12/tools/aapt2/ConfigDescription.cpp
- ConfigDescription() - Constructor for class org.robolectric.res.android.ConfigDescription
- ConfigDescription.LocaleValue - Class in org.robolectric.res.android
- ConfigMerger - Class in org.robolectric
-
Deprecated.Provide an implementation of
Provider
. This class will be removed in Robolectric 4.3. - ConfigMerger() - Constructor for class org.robolectric.ConfigMerger
-
Deprecated.
- configs - Variable in class org.robolectric.res.android.ResTable.Type
- configurationChange() - Method in class org.robolectric.android.controller.ActivityController
-
Applies the current system configuration to the Activity.
- configurationChange(Configuration) - Method in class org.robolectric.android.controller.ActivityController
-
Performs a configuration change on the Activity.
- ConfigurationImpl() - Constructor for class org.robolectric.plugins.HierarchicalConfigurationStrategy.ConfigurationImpl
- ConfigurationRegistry - Class in org.robolectric.config
-
Holds configuration objects for the current test, computed using
Configurer
. - ConfigurationRegistry(Map<Class<?>, Object>) - Constructor for class org.robolectric.config.ConfigurationRegistry
- ConfigurationStrategy - Interface in org.robolectric.pluginapi.config
-
Strategy for configuring individual tests.
- ConfigurationStrategy.Configuration - Interface in org.robolectric.pluginapi.config
-
Heterogeneous typesafe collection of configuration objects managed by their
Configurer
. - ConfigurationV25 - Class in org.robolectric.android
- ConfigurationV25() - Constructor for class org.robolectric.android.ConfigurationV25
- configure(ClassHandler, Interceptors) - Method in class org.robolectric.internal.bytecode.Sandbox
- configure(InstrumentationConfiguration.Builder, Interceptors) - Method in class org.robolectric.config.AndroidConfigurer
- CONFIGURE_GEO_DETECTION_CAPABILITY - Static variable in class org.robolectric.shadows.ShadowTimeManager
- configureDefaultDisplay(Configuration, DisplayMetrics) - Static method in class org.robolectric.shadows.ShadowDisplayManager
-
internal only
- configureDefaultDisplayForJBOnly(Configuration, DisplayMetrics) - Static method in class org.robolectric.shadows.ShadowWindowManagerImpl
-
internal only
- configuredSdks(Config, UsesSdk) - Method in class org.robolectric.plugins.DefaultSdkPicker
- Configurer<T> - Interface in org.robolectric.pluginapi.config
-
Provides configuration data for tests.
- configureSandbox(Sandbox, FrameworkMethod) - Method in class org.robolectric.internal.SandboxTestRunner
- ConfigUtils - Class in org.robolectric.annotation.internal
- connect() - Method in class org.robolectric.shadows.ShadowBasicTagTechnology
- connect() - Method in class org.robolectric.shadows.ShadowBluetoothGatt
-
Overrides behavior of
BluetoothGatt.connect()
to always return true. - connect() - Method in class org.robolectric.shadows.ShadowBluetoothSocket
-
This method doesn't perform an actual connection and returns immediately
- connect(int, WifiManager.ActionListener) - Method in class org.robolectric.shadows.ShadowWifiManager
- connect(WifiConfiguration, WifiManager.ActionListener) - Method in class org.robolectric.shadows.ShadowWifiManager
- connectGatt(Context, boolean, BluetoothGattCallback) - Method in class org.robolectric.shadows.ShadowBluetoothDevice
- connectGatt(Context, boolean, BluetoothGattCallback, int) - Method in class org.robolectric.shadows.ShadowBluetoothDevice
- connectGatt(Context, boolean, BluetoothGattCallback, int, int, Handler) - Method in class org.robolectric.shadows.ShadowBluetoothDevice
- connectionKeepAliveStrategy - Variable in class org.robolectric.shadows.httpclient.ShadowDefaultRequestDirector
- connectionManager - Variable in class org.robolectric.shadows.httpclient.ShadowDefaultRequestDirector
- connectionReuseStrategy - Variable in class org.robolectric.shadows.httpclient.ShadowDefaultRequestDirector
- connManager - Variable in class org.robolectric.shadows.httpclient.DefaultRequestDirector
-
The connection manager.
- CONSTANT_IDLE - 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. - CONSTRUCTOR_METHOD_NAME - Static variable in class org.robolectric.annotation.processing.validator.ImplementsValidator
- CONSTRUCTOR_METHOD_NAME - Static variable in class org.robolectric.internal.bytecode.ShadowConstants
- consumeBatchedInputEvents(long) - Method in class org.robolectric.shadows.ShadowInputEventReceiver
- consumeContent() - Method in class org.robolectric.shadows.httpclient.HttpEntityStub
- consumeContent() - Method in class org.robolectric.shadows.httpclient.TestHttpResponse.TestHttpEntity
- Consumer<T> - Interface in org.robolectric.util
-
Represents an operation that accepts a single input argument and returns no result.
- contains(double, double) - Method in class org.robolectric.shadows.RoundRectangle
- contains(double, double, double, double) - Method in class org.robolectric.shadows.RoundRectangle
- containsHeader(String) - Method in class org.robolectric.shadows.httpclient.HttpResponseStub
- containsHeader(String) - Method in class org.robolectric.shadows.httpclient.TestHttpResponse
- ContentProviderController<T extends ContentProvider> - Class in org.robolectric.android.controller
- ContentProviderData - Class in org.robolectric.manifest
- ContentProviderData(String, MetaData, String, Map<String, String>, List<PathPermissionData>) - Constructor for class org.robolectric.manifest.ContentProviderData
- context - Variable in class org.robolectric.shadows.ShadowApplication.Wrapper
- contextPackageName - Variable in class org.robolectric.res.AttributeResource
- Converter<T> - Class in org.robolectric.shadows
- Converter() - Constructor for class org.robolectric.shadows.Converter
- Converter.FromArray - Class in org.robolectric.shadows
- Converter.FromAttrData - Class in org.robolectric.shadows
- Converter.FromCharSequence - Class in org.robolectric.shadows
- Converter.FromColor - Class in org.robolectric.shadows
- Converter.FromFilePath - Class in org.robolectric.shadows
- Converter2<T> - Class in org.robolectric.shadows
- Converter2() - Constructor for class org.robolectric.shadows.Converter2
- Converter2.FromCharSequence - Class in org.robolectric.shadows
- Converter2.FromColor - Class in org.robolectric.shadows
- convertRawValue(String) - Method in interface org.robolectric.res.ResourceValueConverter
- convertToShadowName(String) - Static method in class org.robolectric.internal.bytecode.ShadowMap
-
Deprecated.do not use
- cookie - Variable in class org.robolectric.res.android.CppAssetManager2.ResolvedBag.Entry
- copy() - Method in class org.robolectric.res.android.CppAssetManager2.ResolvedBag.Entry
- copy() - Method in class org.robolectric.res.android.ResourceTypes.Res_value
- copy() - Method in class org.robolectric.res.ThemeStyleSet
- copy() - Method in class org.robolectric.shadows.ShadowWifiConfiguration
- copy(Bitmap.Config, boolean) - Method in class org.robolectric.shadows.ShadowBitmap
- copy(FileDescriptor, FileDescriptor, long, CancellationSignal, Executor, FileUtils.ProgressListener) - Static method in class org.robolectric.shadows.ShadowFileUtils
- copy(FileDescriptor, FileDescriptor, FileUtils.ProgressListener, CancellationSignal, long) - Static method in class org.robolectric.shadows.ShadowFileUtils
- copy(InputStream, OutputStream) - Static method in class org.robolectric.util.Util
- copyBackForwardList() - Method in class org.robolectric.shadows.ShadowWebView
- copyFrom(DisplayConfig) - Method in class org.robolectric.android.internal.DisplayConfig
- copyPixelsFromBuffer(Buffer) - Method in class org.robolectric.shadows.ShadowBitmap
- copyPixelsToBuffer(Buffer) - Method in class org.robolectric.shadows.ShadowBitmap
- copyStringToBuffer(int, CharArrayBuffer) - Method in class org.robolectric.fakes.BaseCursor
-
Deprecated.
- copyStringToBuffer(int, CharArrayBuffer) - Method in class org.robolectric.shadows.ShadowCursorWrapper
- copyTheme(int, int) - Static method in class org.robolectric.shadows.ShadowArscAssetManager
- copyTheme(int, int) - Static method in class org.robolectric.shadows.ShadowLegacyAssetManager
- copyTheme(long, long) - Static method in class org.robolectric.shadows.ShadowArscAssetManager
- copyTheme(long, long) - Static method in class org.robolectric.shadows.ShadowLegacyAssetManager
- copyTo(DisplayInfo) - Method in class org.robolectric.android.internal.DisplayConfig
- cos(float) - Static method in class org.robolectric.shadows.ShadowFloatMath
- Counter() - Constructor for class org.robolectric.shadows.ShadowTrace.Counter
- country - Variable in class org.robolectric.res.android.ResTable_config
-
Returns a packed 2-byte country code.
- CppApkAssets - Class in org.robolectric.res.android
- CppApkAssets(ZipArchiveHandle, String) - Constructor for class org.robolectric.res.android.CppApkAssets
- CppAssetManager - Class in org.robolectric.res.android
- CppAssetManager() - Constructor for class org.robolectric.res.android.CppAssetManager
- CppAssetManager2 - Class in org.robolectric.res.android
- CppAssetManager2() - Constructor for class org.robolectric.res.android.CppAssetManager2
- CppAssetManager2.PackageFunc - Interface in org.robolectric.res.android
- CppAssetManager2.ResolvedBag - Class in org.robolectric.res.android
- CppAssetManager2.ResolvedBag.Entry - Class in org.robolectric.res.android
- CppAssetManager2.ResourceName - Class in org.robolectric.res.android
- CppAssetManager2.Theme - Class in org.robolectric.res.android
- create() - Method in class org.robolectric.android.controller.ActivityController
- create() - Method in class org.robolectric.android.controller.BackupAgentController
- create() - Method in class org.robolectric.android.controller.ComponentController
- create() - Method in class org.robolectric.android.controller.ContentProviderController
-
Create and register
ContentProvider
usingProviderInfo
found from manifest. - create() - Method in class org.robolectric.android.controller.FragmentController
-
Deprecated.
- create() - Method in class org.robolectric.android.controller.IntentServiceController
- create() - Method in class org.robolectric.android.controller.ServiceController
- create() - Static method in class org.robolectric.shadows.GnssStatusBuilder
-
Deprecated.Creates a new
GnssStatusBuilder
. - create() - Method in class org.robolectric.shadows.ShadowVoiceInteractionSession
-
Simulates the creation of the
VoiceInteractionSession
, as if it was being created by the framework. - create() - Method in class org.robolectric.shadows.support.v4.SupportFragmentController
-
Deprecated.
- create() - Method in class org.robolectric.util.SoftThreadLocal
- create(int, int, byte[]) - Static method in class org.robolectric.shadows.ShadowStatsLog.StatsLogItem
- create(int, long) - Static method in class org.robolectric.shadows.ShadowRcsUceAdapter.CapabilityFailureInfo
- create(int, Bundle) - Method in class org.robolectric.android.controller.FragmentController
-
Deprecated.Creates the activity with
Bundle
and adds the fragment to the view with IDcontentViewId
. - create(int, Bundle) - Method in class org.robolectric.shadows.support.v4.SupportFragmentController
-
Deprecated.Creates the activity with
Bundle
and adds the fragment to the view with IDcontentViewId
. - create(Context) - Static method in class org.robolectric.shadows.ShadowWindow
- create(Context, int) - Static method in class org.robolectric.shadows.ShadowMediaPlayer
- create(Context, Uri) - Static method in class org.robolectric.shadows.ShadowMediaPlayer
- create(ProviderInfo) - Method in class org.robolectric.android.controller.ContentProviderController
-
Create and register
ContentProvider
using the givenProviderInfo
. - create(Resources, int[], int[], int[], int, CharSequence[]) - Static method in class org.robolectric.shadows.ShadowTypedArray
- create(Typeface, int) - Static method in class org.robolectric.shadows.ShadowTypeface
- create(Typeface, int, boolean) - Static method in class org.robolectric.shadows.ShadowTypeface
- create(Bundle) - Method in class org.robolectric.android.controller.ActivityController
- create(Bundle) - Method in class org.robolectric.android.controller.FragmentController
-
Deprecated.Creates the activity with
Bundle
and adds the fragment to it. - create(Bundle) - Method in class org.robolectric.shadows.support.v4.SupportFragmentController
-
Deprecated.Creates the activity with
Bundle
and adds the fragment to it. - create(String) - Method in class org.robolectric.android.controller.ContentProviderController
-
Create and register
ContentProvider
usingProviderInfo
found from manifest. - create(String) - Method in class org.robolectric.util.TempDirectory
- create(String, int) - Static method in class org.robolectric.shadows.ShadowTypeface
- create(String, BitmapFactory.Options) - Static method in class org.robolectric.shadows.ShadowBitmapFactory
-
Deprecated.Use
Bitmap.createBitmap(int, int, Config)
to create a simple Bitmap or any of the BitmapFactory.decode methods with real image data. - create(String, BitmapFactory.Options, Point) - Static method in class org.robolectric.shadows.ShadowBitmapFactory
-
Deprecated.Use
Bitmap.createBitmap(int, int, Config)
to create a simple Bitmap or any of the BitmapFactory.decode methods with real image data. - create(Path, String) - Static method in class org.robolectric.res.builder.XmlBlock
- create(KeyPair, Certificate[]) - Static method in class org.robolectric.shadows.AttestedKeyPairFactory
-
Create AttestedKeyPair.
- createActiveRecordingConfiguration(int, int, String) - Method in class org.robolectric.shadows.ShadowAudioManager
-
Creates simple active recording configuration.
- createActivityContext(ActivityThread, LoadedApk, ActivityInfo, IBinder, int, Configuration) - Method in interface org.robolectric.shadows.ShadowContextImpl._ContextImpl_
- createAndroidManifest(ManifestIdentifier) - Static method in class org.robolectric.RobolectricTestRunner
-
Deprecated.Do not use.
- createAppContext(ActivityThread, LoadedApk) - Method in interface org.robolectric.shadows.ShadowContextImpl._ContextImpl_
- createAshmemBitmap() - Method in class org.robolectric.shadows.ShadowBitmap
- createAudioPlaybackConfiguration(AudioAttributes) - Method in class org.robolectric.shadows.ShadowAudioManager
- createAuthenticationResult() - Method in class org.robolectric.shadows.ShadowFingerprintManager
- createBitmap(int[], int, int, int, int, Bitmap.Config) - Static method in class org.robolectric.shadows.ShadowBitmap
- createBitmap(int, int, Bitmap.Config) - Static method in class org.robolectric.shadows.ShadowBitmap
- createBitmap(int, int, Bitmap.Config, boolean, ColorSpace) - Static method in class org.robolectric.shadows.ShadowBitmap
- createBitmap(Bitmap, int, int, int, int, Matrix, boolean) - Static method in class org.robolectric.shadows.ShadowBitmap
- createBitmap(DisplayMetrics, int[], int, int, int, int, Bitmap.Config) - Static method in class org.robolectric.shadows.ShadowBitmap
- createBitmap(DisplayMetrics, int, int, Bitmap.Config) - Static method in class org.robolectric.shadows.ShadowBitmap
- createBitmap(DisplayMetrics, int, int, Bitmap.Config, boolean) - Static method in class org.robolectric.shadows.ShadowBitmap
- createBond() - Method in class org.robolectric.shadows.ShadowBluetoothDevice
-
Returns whether this device has been bonded with.
- createBuffer(AssetManager, String, boolean, int) - Static method in class org.robolectric.shadows.ShadowFontBuilder
-
Re-implement to avoid call to DirectByteBuffer#array, which is not supported on JDK
- createCaptureRequest(int) - Method in class org.robolectric.shadows.ShadowCameraDeviceImpl
- createCaptureSession(SessionConfiguration) - Method in class org.robolectric.shadows.ShadowCameraDeviceImpl
- createCaptureSession(List<Surface>, CameraCaptureSession.StateCallback, Handler) - Method in class org.robolectric.shadows.ShadowCameraDeviceImpl
- createClassHandler(ShadowMap, Sandbox) - Method in class org.robolectric.internal.SandboxTestRunner
- createClassHandler(ShadowMap, Sandbox) - Method in class org.robolectric.RobolectricTestRunner
-
Create a
ClassHandler
appropriate for the given arguments. - createClassLoaderConfig(FrameworkMethod) - Method in class org.robolectric.internal.SandboxTestRunner
-
Create an
InstrumentationConfiguration
suitable for the providedFrameworkMethod
. - createClassLoaderConfig(FrameworkMethod) - Method in class org.robolectric.RobolectricTestRunner
-
Create an
InstrumentationConfiguration
suitable for the providedFrameworkMethod
. - createClient(Context, ContextHubInfo, PendingIntent, long) - Method in class org.robolectric.shadows.ShadowContextHubManager
- createClient(Object, Object) - Method in class org.robolectric.shadows.ShadowContextHubManager
- createClient(Object, Object, Object) - Method in class org.robolectric.shadows.ShadowContextHubManager
- createClient(Object, Object, Object, Object) - Method in class org.robolectric.shadows.ShadowContextHubManager
- createConfirmFactoryResetCredentialIntent(CharSequence, CharSequence, CharSequence) - Method in class org.robolectric.shadows.ShadowKeyguardManager
-
Returns the intent set via
ShadowKeyguardManager.setConfirmFactoryResetCredentialIntent(Intent)
, otherwise null. - createConnectRequest(HttpRoute, HttpContext) - Method in class org.robolectric.shadows.httpclient.DefaultRequestDirector
-
Creates the CONNECT request for tunnelling.
- createDateIntervalFormat(String, String, String) - Static method in class org.robolectric.shadows.ShadowDateIntervalFormat
- createdCameras - Static variable in class org.robolectric.shadows.ShadowCameraManager
- createDeepProxy(Class<T>) - Static method in class org.robolectric.util.ReflectionHelpers
-
Create a proxy for the given class which returns other deep proxies from all it's methods.
- createDelegatingProxy(Class<T>, Object) - Static method in class org.robolectric.util.ReflectionHelpers
- createDirectChannel(MemoryFile) - Method in class org.robolectric.shadows.ShadowSensorManager
- createExecutorService() - Method in class org.robolectric.internal.dependency.MavenDependencyResolver
- createFetchToFileTask(URL, File) - Method in class org.robolectric.internal.dependency.MavenArtifactFetcher
- createFile(String, String) - Method in class org.robolectric.util.TempDirectory
- createForCardId(int) - Method in class org.robolectric.shadows.ShadowEuiccManager
- createForPhoneAccountHandle(PhoneAccountHandle) - Method in class org.robolectric.shadows.ShadowTelephonyManager
-
Returns
null
by default or the value specified viaShadowTelephonyManager.setTelephonyManagerForHandle(PhoneAccountHandle, TelephonyManager)
. - createForSubscriptionId(int) - Static method in class org.robolectric.shadows.ShadowImsMmTelManager
-
Returns only one instance per subscription id.
- createForSubscriptionId(int) - Method in class org.robolectric.shadows.ShadowTelephonyManager
-
Returns
null
by default or the value specified viaShadowTelephonyManager.setTelephonyManagerForSubscriptionId(int, TelephonyManager)
- createFromAsset(AssetManager, String) - Static method in class org.robolectric.shadows.ShadowTypeface
- createFromFamilies(Object) - Static method in class org.robolectric.shadows.ShadowTypeface
- createFromFamiliesWithDefault(Object) - Static method in class org.robolectric.shadows.ShadowTypeface
- createFromFamiliesWithDefault(Object, Object, Object) - Static method in class org.robolectric.shadows.ShadowTypeface
- createFromFamiliesWithDefault(Object, Object, Object, Object) - Static method in class org.robolectric.shadows.ShadowTypeface
- createFromFile(File) - Static method in class org.robolectric.shadows.ShadowTypeface
- createFromFile(String) - Static method in class org.robolectric.shadows.ShadowTypeface
- createFromPath(String) - Static method in class org.robolectric.shadows.ShadowDrawable
- createFromResourceId(int) - Static method in class org.robolectric.shadows.ShadowDrawable
- createFromResources(AssetManager, String, int) - Static method in class org.robolectric.shadows.ShadowTypeface
- createFromResources(Object, Object, Object) - Static method in class org.robolectric.shadows.ShadowTypeface
- createFromResourceStream(Resources, TypedValue, InputStream, String, BitmapFactory.Options) - Static method in class org.robolectric.shadows.ShadowDrawable
- createFromShadowProviders(List<ShadowProvider>) - Static method in class org.robolectric.internal.bytecode.ShadowMap
- createFromStream(InputStream, String) - Static method in class org.robolectric.shadows.ShadowDrawable
- createFuture(Callable<Result>) - Method in class org.robolectric.shadows.ShadowLegacyAsyncTask
- createGroup(WifiP2pManager.Channel, WifiP2pManager.ActionListener) - Method in class org.robolectric.shadows.ShadowWifiP2pManager
- createHardwareBitmap(Object, Object, Object) - Static method in class org.robolectric.shadows.ShadowHardwareRenderer
- createHardwareBitmap(Object, Object, Object) - Static method in class org.robolectric.shadows.ShadowThreadedRenderer
- createHitTestResult(int, String) - Static method in class org.robolectric.shadows.ShadowWebView
-
Creates an instance of
WebView.HitTestResult
. - createIfNotExists(String) - Method in class org.robolectric.util.TempDirectory
- createImmutableFrameworkIdmapsInZygote() - Method in class org.robolectric.shadows.ShadowOverlayConfig
- createInsecureL2capChannel(int) - Method in class org.robolectric.shadows.ShadowBluetoothDevice
- createInstance(Context) - Static method in class org.robolectric.shadows.ShadowCookieSyncManager
- createInstanceInfo(ContextHubInfo, int, long, int) - Method in class org.robolectric.shadows.ShadowContextHubManager
-
Creates and returns a
NanoAppInstanceInfo
. - createL2capChannel(int) - Method in class org.robolectric.shadows.ShadowBluetoothDevice
- createLaunchEmergencyDialerIntent(String) - Method in class org.robolectric.shadows.ShadowTelecomManager
- createListener - Static variable in class org.robolectric.shadows.ShadowMediaPlayer
-
Listener that is called when a new MediaPlayer is constructed.
- createLockFile() - Method in class org.robolectric.internal.dependency.MavenDependencyResolver
- createManageBlockedNumbersIntent() - Method in class org.robolectric.shadows.ShadowTelecomManager
-
Returns the intent set by
ShadowTelecomManager.setManageBlockNumbersIntent(Intent)
()} - createMavenFetcher(String, String, String, File, ExecutorService) - Method in class org.robolectric.internal.dependency.MavenDependencyResolver
- createMulticastLock(String) - Method in class org.robolectric.shadows.ShadowWifiManager
- createNodesFromPathData(String) - Static method in class org.robolectric.shadows.ShadowPathParser
- createNotificationChannel(Object) - Method in class org.robolectric.shadows.ShadowNotificationManager
- createNotificationChannelGroup(Object) - Method in class org.robolectric.shadows.ShadowNotificationManager
- createNotificationChannelGroups(List<Object>) - Method in class org.robolectric.shadows.ShadowNotificationManager
- createNotificationChannels(List<Object>) - Method in class org.robolectric.shadows.ShadowNotificationManager
- createNullProxy(Class<T>) - Static method in class org.robolectric.util.ReflectionHelpers
- createPackage(AndroidManifest) - Static method in class org.robolectric.shadows.LegacyManifestParser
- createPair() - Static method in class org.robolectric.fakes.RoboWebMessagePort
- createPathFromPathData(String) - Static method in class org.robolectric.shadows.ShadowPathParser
- createPipe() - Static method in class org.robolectric.shadows.ShadowParcelFileDescriptor
- createProfile(String, String, Set<String>) - Method in class org.robolectric.shadows.ShadowUserManager
- createProxy(Class<T>, T) - Method in class org.robolectric.internal.bytecode.ProxyMaker
-
Deprecated.
- createReliablePipe() - Static method in class org.robolectric.shadows.ShadowParcelFileDescriptor
- createRequestInteractAcrossProfilesIntent() - Method in class org.robolectric.shadows.ShadowCrossProfileApps
-
Returns an intent with the same action as the one returned by system when requesting the same.
- createRfcommSocketToServiceRecord(UUID) - Method in class org.robolectric.shadows.ShadowBluetoothDevice
- createScaledBitmap(Bitmap, int, int, boolean) - Static method in class org.robolectric.shadows.ShadowBitmap
- createSensorEvent() - Method in class org.robolectric.shadows.ShadowSensorManager
- createSensorEvent(int) - Static method in class org.robolectric.shadows.ShadowSensorManager
-
Creates a
SensorEvent
with the given value array size, which the caller should set based on the type ofSensor
which is being emulated. - createSensorEvent(int, int) - Static method in class org.robolectric.shadows.ShadowSensorManager
-
Creates a
SensorEvent
for the givenSensor
type with the given value array size, which the caller should set based on the type of sensor which is being emulated. - createSession(PackageInstaller.SessionParams) - Method in class org.robolectric.shadows.ShadowPackageInstaller
- createShortcutResultIntent(ShortcutInfo) - Method in class org.robolectric.shadows.ShadowShortcutManager
- createSpeechRecognizer(Context, ComponentName) - Static method in class org.robolectric.shadows.ShadowSpeechRecognizer
- createSystemAssetsInZygoteLocked() - Static method in class org.robolectric.shadows.ShadowArscAssetManager10
- createSystemAssetsInZygoteLocked() - Static method in class org.robolectric.shadows.ShadowArscAssetManager9
- createSystemContext(ActivityThread) - Method in interface org.robolectric.shadows.ShadowContextImpl._ContextImpl_
- createTelephonyDisplayInfo(int, int) - Static method in class org.robolectric.shadows.ShadowTelephonyManager
-
Creates a
TelephonyDisplayInfo
. - createTest() - Method in class org.robolectric.RobolectricTestRunner
- createTest() - Method in class org.robolectric.RobolectricTestRunner.HelperTestRunner
- createTheme() - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- createTunnelToProxy(HttpRoute, int, HttpContext) - Method in class org.robolectric.shadows.httpclient.DefaultRequestDirector
-
Creates a tunnel to an intermediate proxy.
- createTunnelToTarget(HttpRoute, HttpContext) - Method in class org.robolectric.shadows.httpclient.DefaultRequestDirector
-
Creates a tunnel to the target server.
- createUnderlyingTypeface(String, int) - Static method in class org.robolectric.shadows.ShadowTypeface
- createView(Context, int, AppWidgetProviderInfo) - Method in class org.robolectric.shadows.ShadowAppWidgetHost
- createWebMessageChannel() - Method in class org.robolectric.shadows.ShadowWebView
- createWidget(Class<? extends AppWidgetProvider>, int) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
-
Creates a widget by inflating its layout.
- createWidgets(Class<? extends AppWidgetProvider>, int, int) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
-
Creates a bunch of widgets by inflating the same layout multiple times.
- createWifiLock(int, String) - Method in class org.robolectric.shadows.ShadowWifiManager
- createWifiLock(String) - Method in class org.robolectric.shadows.ShadowWifiManager
- CREATOR - Static variable in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- CREATOR - Static variable in class org.robolectric.shadows.ShadowSigningInfo
- CREATOR - Static variable in class org.robolectric.shadows.ShadowVisualVoicemailSms
- cubicTo(float, float, float, float, float, float) - Method in class org.robolectric.shadows.ShadowPath
- currentActivityThread() - Static method in class org.robolectric.shadows.ShadowActivityThread
- currentAnnotation - Variable in class org.robolectric.annotation.processing.validator.Validator
- currentApplication() - Static method in class org.robolectric.shadows.ShadowActivityThread
- currentElement - Variable in class org.robolectric.annotation.processing.validator.Validator
- currentGnssTimeClock() - Static method in class org.robolectric.shadows.ShadowSystemClock
- currentModeType - Variable in class org.robolectric.shadows.ShadowUIModeManager
- currentNetworkTimeMillis() - Static method in class org.robolectric.shadows.ShadowLegacySystemClock
- currentNetworkTimeMillis() - Static method in class org.robolectric.shadows.ShadowPausedSystemClock
- currentNightMode - Variable in class org.robolectric.shadows.ShadowUIModeManager
- currentSegment(double[]) - Method in class org.robolectric.shadows.CachedPathIteratorFactory.CachedPathIterator
- currentSegment(float[]) - Method in class org.robolectric.shadows.CachedPathIteratorFactory.CachedPathIterator
- currentSegment(float[], float) - Method in class org.robolectric.shadows.CachedPathIteratorFactory.CachedPathIterator
-
Returns the current segment up to certain length.
- currentThreadTimeMicro() - Static method in class org.robolectric.shadows.ShadowLegacySystemClock
- currentThreadTimeMicro() - Static method in class org.robolectric.shadows.ShadowPausedSystemClock
- currentThreadTimeMillis() - Static method in class org.robolectric.shadows.ShadowLegacySystemClock
- currentThreadTimeMillis() - Static method in class org.robolectric.shadows.ShadowPausedSystemClock
- currentTimeMicro() - Static method in class org.robolectric.shadows.ShadowLegacySystemClock
- currentTimeMicro() - Static method in class org.robolectric.shadows.ShadowPausedSystemClock
- currentTimeMillis() - Static method in class org.robolectric.shadows.ShadowLegacySystemClock
-
Implements
System.currentTimeMillis()
through ShadowWrangler. - currentTimeMillis() - Static method in class org.robolectric.shadows.ShadowSystem
-
Implements
System.currentTimeMillis()
through ShadowWrangler. - currentTimeMillis() - Static method in class org.robolectric.shadows.ShadowSystemClock
-
Implements
System.currentTimeMillis()
through ShadowWrangler. - currentToCanonicalPackageNames(String[]) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- CursorWindowNatives - Class in org.robolectric.nativeruntime
-
Native methods for CursorWindow JNI registration.
D
- d(String, String) - Static method in class org.robolectric.shadows.ShadowLog
- d(String, String, Throwable) - Static method in class org.robolectric.shadows.ShadowLog
- data - Variable in class org.robolectric.res.android.ResourceTypes.Res_value
- data - Variable in class org.robolectric.shadows.ShadowWebView.LoadData
- data - Variable in class org.robolectric.shadows.ShadowWebView.LoadDataWithBaseURL
- DATA_NULL_EMPTY - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- DATA_NULL_UNDEFINED - Static variable in class org.robolectric.res.android.ResourceTypes.Res_value
- DataAuthority(String, String) - Constructor for class org.robolectric.manifest.IntentFilterData.DataAuthority
- dataChanged() - Method in class org.robolectric.shadows.ShadowBackupManager
- DataMessageParams(String, String, short, byte[], PendingIntent, PendingIntent) - Constructor for class org.robolectric.shadows.ShadowSmsManager.DataMessageParams
- DataSource - Class in org.robolectric.shadows.util
-
Opaque class for uniquely identifying a media data source, as used by
ShadowMediaPlayer
,ShadowMediaMetadataRetriever
, andShadowMediaExtractor
- DataSource.FileDescriptorTransform - Interface in org.robolectric.shadows.util
-
Transform a
FileDescriptor
to a string. - dataType - Variable in class org.robolectric.res.android.ResourceTypes.Res_value
- DataType - Enum in org.robolectric.res.android
-
Resource type codes.
- deactivate() - Method in class org.robolectric.fakes.BaseCursor
-
Deprecated.
- deactivate() - Method in class org.robolectric.shadows.ShadowCursorWrapper
- debug(String, Object...) - Static method in class org.robolectric.util.Logger
-
Log a debug message.
- declareActionUnbindable(String) - Method in class org.robolectric.shadows.ShadowApplication
- declareComponentUnbindable(ComponentName) - Method in class org.robolectric.shadows.ShadowApplication
-
Configures the ShadowApplication so that bindService calls for the given ComponentName return false and do not call onServiceConnected.
- decodeByteArray(byte[], int, int) - Static method in class org.robolectric.shadows.ShadowBitmapFactory
- decodeByteArray(byte[], int, int, BitmapFactory.Options) - Static method in class org.robolectric.shadows.ShadowBitmapFactory
- decodeFile(String) - Static method in class org.robolectric.shadows.ShadowBitmapFactory
- decodeFile(String, BitmapFactory.Options) - Static method in class org.robolectric.shadows.ShadowBitmapFactory
- decodeFileDescriptor(FileDescriptor, Rect, BitmapFactory.Options) - Static method in class org.robolectric.shadows.ShadowBitmapFactory
- decoder() - Method in enum org.robolectric.res.android.ResourceString.Type
- decodeRegion(Rect, BitmapFactory.Options) - Method in class org.robolectric.shadows.ShadowBitmapRegionDecoder
- decodeResource(Resources, int, BitmapFactory.Options) - Static method in class org.robolectric.shadows.ShadowBitmapFactory
- decodeResourceStream(Resources, TypedValue, InputStream, Rect, BitmapFactory.Options) - Static method in class org.robolectric.shadows.ShadowBitmapFactory
- decodeSdk(int, int, int, int, int) - Method in class org.robolectric.plugins.DefaultSdkPicker
- decodeStream(InputStream) - Static method in class org.robolectric.shadows.ShadowBitmapFactory
- decodeStream(InputStream, Rect, BitmapFactory.Options) - Static method in class org.robolectric.shadows.ShadowBitmapFactory
- decodeString(ByteBuffer, int, ResourceString.Type) - Static method in class org.robolectric.res.android.ResourceString
-
Given a buffer and an offset into the buffer, returns a String.
- decorate(MutableClass) - Method in interface org.robolectric.internal.bytecode.ClassInstrumentor.Decorator
- decorate(MutableClass) - Method in class org.robolectric.internal.bytecode.ShadowDecorator
- deepEquals(Object) - Method in class org.robolectric.shadows.ShadowAccessibilityWindowInfo
- DEFAULT_APPLICATION - Static variable in annotation type org.robolectric.annotation.Config
- DEFAULT_ASSET_FOLDER - Static variable in annotation type org.robolectric.annotation.Config
- DEFAULT_DENSITY - Static variable in class org.robolectric.android.DeviceConfig
- DEFAULT_DISABLE_MASK - Static variable in class org.robolectric.shadows.ShadowStatusBarManager
- DEFAULT_DISABLE2_MASK - Static variable in class org.robolectric.shadows.ShadowStatusBarManager
- DEFAULT_MANIFEST_NAME - Static variable in annotation type org.robolectric.annotation.Config
- DEFAULT_MAX_VOLUME - Static variable in class org.robolectric.shadows.ShadowAudioManager
- DEFAULT_MIN_BUFFER_SIZE - Static variable in class org.robolectric.shadows.ShadowAudioTrack
- 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_SCREEN_SIZE - Static variable in class org.robolectric.android.DeviceConfig
- DEFAULT_SDK - Static variable in annotation type org.robolectric.annotation.Implementation
- DEFAULT_SECONDARY_USER_ID - Static variable in class org.robolectric.shadows.ShadowUserManager
-
The default user ID user for secondary user testing, when the ID is not otherwise specified.
- DEFAULT_STORAGE_FREE_BYTES - Static variable in class org.robolectric.shadows.ShadowStorageStatsManager
- DEFAULT_STORAGE_TOTAL_BYTES - Static variable in class org.robolectric.shadows.ShadowStorageStatsManager
- DEFAULT_VALUE_INT - Static variable in annotation type org.robolectric.annotation.Config
- DEFAULT_VALUE_STRING - Static variable in annotation type org.robolectric.annotation.Config
- DEFAULT_VOLUME - Static variable in class org.robolectric.shadows.ShadowAudioManager
- defaultConfig() - Method in interface org.robolectric.pluginapi.config.Configurer
-
Returns the default configuration for tests that do not specify a configuration of this type.
- defaultConfig() - Method in class org.robolectric.plugins.ConfigConfigurer
- defaultConfig() - Method in class org.robolectric.plugins.GetInstallerPackageNameModeConfigurer
- defaultConfig() - Method in class org.robolectric.plugins.LazyApplicationConfigurer
- defaultConfig() - Method in class org.robolectric.plugins.LooperModeConfigurer
- defaultConfig() - Method in class org.robolectric.plugins.SQLiteModeConfigurer
- defaultConfig() - Method in class org.robolectric.plugins.TextLayoutModeConfigurer
- defaultInjector() - Static method in class org.robolectric.internal.SandboxTestRunner
- defaultInjector() - Static method in class org.robolectric.RobolectricTestRunner
- DefaultManifestFactory - Class in org.robolectric.internal
- DefaultManifestFactory(Properties) - Constructor for class org.robolectric.internal.DefaultManifestFactory
- defaultModeId - Variable in class org.robolectric.android.internal.DisplayConfig
-
The default display mode.
- DefaultNativeRuntimeLoader - Class in org.robolectric.nativeruntime
-
Loads the Robolectric native runtime.
- DefaultNativeRuntimeLoader() - Constructor for class org.robolectric.nativeruntime.DefaultNativeRuntimeLoader
- DefaultRequestDirector - Class in org.robolectric.shadows.httpclient
-
Default implementation of
RequestDirector
. - DefaultRequestDirector(Log, HttpRequestExecutor, ClientConnectionManager, ConnectionReuseStrategy, ConnectionKeepAliveStrategy, HttpRoutePlanner, HttpProcessor, HttpRequestRetryHandler, RedirectHandler, AuthenticationHandler, AuthenticationHandler, UserTokenHandler, HttpParams) - Constructor for class org.robolectric.shadows.httpclient.DefaultRequestDirector
- DefaultRequestDirector(HttpRequestExecutor, ClientConnectionManager, ConnectionReuseStrategy, ConnectionKeepAliveStrategy, HttpRoutePlanner, HttpProcessor, HttpRequestRetryHandler, RedirectHandler, AuthenticationHandler, AuthenticationHandler, UserTokenHandler, HttpParams) - Constructor for class org.robolectric.shadows.httpclient.DefaultRequestDirector
- DefaultRequestMatcher(String, String) - Constructor for class org.robolectric.shadows.httpclient.FakeHttpLayer.DefaultRequestMatcher
- 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
. - DefaultSdk(int, String, String, String, int) - Constructor for class org.robolectric.plugins.DefaultSdkProvider.DefaultSdk
- DefaultSdkPicker - Class in org.robolectric.plugins
-
Robolectric's default
SdkPicker
. - DefaultSdkPicker(SdkCollection, String) - Constructor for class org.robolectric.plugins.DefaultSdkPicker
- DefaultSdkPicker(SdkCollection, Properties) - Constructor for class org.robolectric.plugins.DefaultSdkPicker
- DefaultSdkProvider - Class in org.robolectric.plugins
-
Robolectric's default
SdkProvider
. - DefaultSdkProvider(DependencyResolver) - Constructor for class org.robolectric.plugins.DefaultSdkProvider
- DefaultSdkProvider.DefaultSdk - Class in org.robolectric.plugins
-
Represents an Android SDK stored at Maven Central.
- defaultsFor(Class<A>) - Static method in class org.robolectric.util.ReflectionHelpers
- DefaultTestLifecycle - Class in org.robolectric
-
The default
TestLifecycle
used by Robolectric. - DefaultTestLifecycle() - Constructor for class org.robolectric.DefaultTestLifecycle
- defaultValueForType(String) - Static method in class org.robolectric.util.ReflectionHelpers
- defineEntityReplacementText(String, String) - Method in class org.robolectric.android.XmlResourceParserImpl
- delete() - Method in class org.robolectric.shadows.ShadowHttpResponseCache
- delete(Uri, String, String[]) - Method in class org.robolectric.shadows.ShadowContentProviderClient
- delete(Uri, String, String[]) - Method in class org.robolectric.shadows.ShadowContentResolver
-
If a
ContentProvider
is registered for the givenUri
, itsContentProvider.delete(Uri, String, String[])
method will be invoked. - deleteApplicationCacheFiles(String, IPackageDataObserver) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- deleteApplicationCacheFilesAsUser(String, int, IPackageDataObserver) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- deleteModule(String) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Deletes a module when given the module's package name
ModuleInfo
be sure to give the correct name as this method does not ensure existence of the module before deletion. - deleteNotificationChannel(String) - Method in class org.robolectric.shadows.ShadowNotificationManager
- deleteNotificationChannelGroup(String) - Method in class org.robolectric.shadows.ShadowNotificationManager
-
Delete a notification channel group and all notification channels associated with the group.
- deletePackage(String) - Method in class org.robolectric.shadows.ShadowPackageManager
-
Uninstalls the package from the system in a way, that will allow its discovery through
PackageManager.MATCH_UNINSTALLED_PACKAGES
. - deletePackage(String, IPackageDeleteObserver, int) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- deletePackage(String, IPackageDeleteObserver, int) - Method in class org.robolectric.shadows.ShadowPackageManager
- deletePackageAsUser(String, IPackageDeleteObserver, int, int) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- deleteTheme(int) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- deleteTheme(int) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- deleteTheme(long) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- deleteTheme(long) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- density - Variable in class org.robolectric.res.android.ResTable_config
- DENSITY_ANY - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_DEFAULT - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_DPI - org.robolectric.res.android.ResTable_config.Type
- DENSITY_DPI_ANY - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_DPI_MDPI - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_DPI_NONE - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_DPI_UNDEFINED - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_HIGH - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_LOW - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_MEDIUM - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_NONE - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_TV - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_XHIGH - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_XXHIGH - Static variable in class org.robolectric.res.android.ResTable_config
- DENSITY_XXXHIGH - Static variable in class org.robolectric.res.android.ResTable_config
- DENY_ALL - org.robolectric.shadows.ShadowTelecomManager.CallRequestMode
-
Automatically denies all call requests.
- denyIncomingCall(ShadowTelecomManager.IncomingCallRecord) - Method in class org.robolectric.shadows.ShadowTelecomManager
- denyOutgoingCall(ShadowTelecomManager.OutgoingCallRecord) - Method in class org.robolectric.shadows.ShadowTelecomManager
- denyPermissions(int, int, String...) - Method in class org.robolectric.shadows.ShadowContextWrapper
-
Revoke the given permissions for the given process and user.
- denyPermissions(String...) - Method in class org.robolectric.shadows.ShadowContextWrapper
-
Revoke the given permissions for the current process and user.
- DependencyJar - Class in org.robolectric.internal.dependency
- DependencyJar(String, String, String) - Constructor for class org.robolectric.internal.dependency.DependencyJar
- DependencyJar(String, String, String, String) - Constructor for class org.robolectric.internal.dependency.DependencyJar
- DependencyResolver - Interface in org.robolectric.internal.dependency
-
Provides mapping between a Maven coordinate (e.g.
- DeprecatedMethodMarkerException - Exception in org.robolectric.internal
- DeprecatedMethodMarkerException() - Constructor for exception org.robolectric.internal.DeprecatedMethodMarkerException
- DeprecatedMethodsCheck - Class in org.robolectric.errorprone.bugpatterns
- DeprecatedMethodsCheck() - Constructor for class org.robolectric.errorprone.bugpatterns.DeprecatedMethodsCheck
- DeprecatedTestRunnerDefaultConfigProvider() - Constructor for class org.robolectric.RobolectricTestRunner.DeprecatedTestRunnerDefaultConfigProvider
-
Deprecated.
- describe() - Method in interface org.robolectric.internal.bytecode.ClassHandler.Plan
- describeContents() - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- describeContents() - Method in class org.robolectric.shadows.ShadowVisualVoicemailSms
- description - Variable in class org.robolectric.res.android.ResourceTable.flag_entry
- description() - Method in class org.robolectric.shadows.ShadowAccessibilityService.GestureDispatch
-
The description of the gesture to be dispatched.
- destroy() - Method in class org.robolectric.android.controller.ActivityController
- destroy() - Method in class org.robolectric.android.controller.BackupAgentController
- destroy() - Method in class org.robolectric.android.controller.ComponentController
- destroy() - Method in class org.robolectric.android.controller.FragmentController
-
Deprecated.
- destroy() - Method in class org.robolectric.android.controller.IntentServiceController
- destroy() - Method in class org.robolectric.android.controller.ServiceController
- destroy() - Method in class org.robolectric.shadows.ShadowWebView
- destroy() - Method in class org.robolectric.shadows.support.v4.SupportFragmentController
-
Deprecated.
- destroy() - Method in class org.robolectric.util.TempDirectory
- destroyAsset(int) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- destroyAsset(int) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- destroyAsset(long) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- destroyAsset(long) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- destroyDateIntervalFormat(long) - Static method in class org.robolectric.shadows.ShadowDateIntervalFormat
- determineRoute(HttpHost, HttpRequest, HttpContext) - Method in class org.robolectric.shadows.httpclient.DefaultRequestDirector
-
Determines the route for a request.
- device - Variable in class org.robolectric.shadows.ShadowInputEvent
- DeviceConfig - Class in org.robolectric.android
-
Supports device configuration for Robolectric tests.
- DeviceConfig.ScreenSize - Enum in org.robolectric.android
-
Standard sizes for the screen size qualifier.
- deviceConnected(BluetoothDevice) - Method in class org.robolectric.shadows.ShadowBluetoothServerSocket
-
Creates
BluetoothSocket
for the given device and makes this socket available immediately in theShadowBluetoothServerSocket.accept(int)
method. - deviceHasKeys(int, int[]) - Method in class org.robolectric.shadows.ShadowInputManager
- didClearCacheIncludeDiskFiles() - Method in class org.robolectric.shadows.ShadowWebView
- didRequestLayout() - Method in class org.robolectric.shadows.ShadowView
- DIMEN - org.robolectric.res.ResType
- DIMENSION - org.robolectric.res.android.DataType
-
data
holds a complex number encoding a dimension value, such as "100in". - direct() - Method in annotation type org.robolectric.util.reflector.ForType
- Direct - Annotation Type in org.robolectric.util.reflector
-
Indicates that the annotated method should use the original $$robo$$-prefixed implementation so that it can be invoked in the shadow for the method.
- directInitialize(Class<?>) - Method in class org.robolectric.internal.bytecode.ShadowImpl
- directInitialize(Class<?>) - Method in interface org.robolectric.internal.IShadow
- directInitialize(Class<?>) - Static method in class org.robolectric.shadow.api.Shadow
- directlyOn(Class<T>, String, ReflectionHelpers.ClassParameter...) - Method in class org.robolectric.internal.bytecode.ShadowImpl
- directlyOn(Class<T>, String, ReflectionHelpers.ClassParameter...) - Method in interface org.robolectric.internal.IShadow
- directlyOn(Class<T>, String, ReflectionHelpers.ClassParameter...) - Static method in class org.robolectric.shadow.api.Shadow
- directlyOn(Object, String, String, ReflectionHelpers.ClassParameter...) - Method in class org.robolectric.internal.bytecode.ShadowImpl
- directlyOn(Object, String, String, ReflectionHelpers.ClassParameter...) - Method in interface org.robolectric.internal.IShadow
- directlyOn(Object, String, String, ReflectionHelpers.ClassParameter...) - Static method in class org.robolectric.shadow.api.Shadow
- directlyOn(T, Class<T>) - Method in class org.robolectric.internal.bytecode.ShadowImpl
- directlyOn(T, Class<T>) - Method in interface org.robolectric.internal.IShadow
- directlyOn(T, Class<T>) - Static method in class org.robolectric.shadow.api.Shadow
- directlyOn(T, Class<T>, String, ReflectionHelpers.ClassParameter...) - Method in class org.robolectric.internal.bytecode.ShadowImpl
- directlyOn(T, Class<T>, String, ReflectionHelpers.ClassParameter...) - Method in interface org.robolectric.internal.IShadow
- directlyOn(T, Class<T>, String, ReflectionHelpers.ClassParameter...) - Static method in class org.robolectric.shadow.api.Shadow
- directMethodName(String, String) - Method in class org.robolectric.internal.bytecode.ShadowImpl
- directMethodName(String, String) - Method in interface org.robolectric.internal.IShadow
- directMethodName(String, String) - Static method in class org.robolectric.shadow.api.Shadow
- directMethodName(MutableClass, String) - Static method in class org.robolectric.internal.bytecode.ClassInstrumentor
- DirectObjectMarker - Class in org.robolectric.internal.bytecode
- disable() - Method in class org.robolectric.shadows.ShadowBluetoothAdapter
- disable() - Method in class org.robolectric.shadows.ShadowNfcAdapter
- disable(int) - Method in class org.robolectric.shadows.ShadowStatusBarManager
- DISABLE_CLOCK - Static variable in class org.robolectric.shadows.ShadowStatusBarManager
- DISABLE_EXPAND - Static variable in class org.robolectric.shadows.ShadowStatusBarManager
- DISABLE_HOME - Static variable in class org.robolectric.shadows.ShadowStatusBarManager
- DISABLE_NONE - Static variable in class org.robolectric.shadows.ShadowStatusBarManager
- DISABLE_NOTIFICATION_ALERTS - Static variable in class org.robolectric.shadows.ShadowStatusBarManager
- DISABLE_RECENT - Static variable in class org.robolectric.shadows.ShadowStatusBarManager
- DISABLE_SEARCH - Static variable in class org.robolectric.shadows.ShadowStatusBarManager
- disable2(int) - Method in class org.robolectric.shadows.ShadowStatusBarManager
- DISABLE2_NONE - Static variable in class org.robolectric.shadows.ShadowStatusBarManager
- DISABLE2_ROTATE_SUGGESTIONS - Static variable in class org.robolectric.shadows.ShadowStatusBarManager
- disableCarMode(int) - Method in class org.robolectric.shadows.ShadowUIModeManager
- disableForegroundDispatch(Activity) - Method in class org.robolectric.shadows.ShadowNfcAdapter
- disableKeyguard() - Method in class org.robolectric.shadows.ShadowKeyguardManager.ShadowKeyguardLock
-
Sets the value to be returned by
ShadowKeyguardManager.ShadowKeyguardLock.isEnabled()
to false. - disableNetwork(int) - Method in class org.robolectric.shadows.ShadowWifiManager
- disableReaderMode(Activity) - Method in class org.robolectric.shadows.ShadowNfcAdapter
- disableScoring() - Method in class org.robolectric.shadows.ShadowNetworkScoreManager
- disableShortcuts(List<String>) - Method in class org.robolectric.shadows.ShadowShortcutManager
- disableShortcuts(List<String>, CharSequence) - Method in class org.robolectric.shadows.ShadowShortcutManager
- disassociate(String) - Method in class org.robolectric.shadows.ShadowCompanionDeviceManager
- dismiss() - Method in class org.robolectric.shadows.ShadowDialog
- dismiss() - Method in class org.robolectric.shadows.ShadowPopupMenu
- dismissDialog(int) - Method in class org.robolectric.shadows.ShadowActivity
- dispatchActivityResult(String, int, int, Intent) - Method in interface org.robolectric.shadows._Activity_
- dispatchActivityResult(String, int, int, Intent, String) - Method in interface org.robolectric.shadows._Activity_
- dispatchGesture(GestureDescription, AccessibilityService.GestureResultCallback, Handler) - Method in class org.robolectric.shadows.ShadowAccessibilityService
- dispatchResized(int, int, Rect, Rect, boolean, Configuration) - Method in interface org.robolectric.shadows.ShadowViewRootImpl.ViewRootImplReflector
- dispatchResized(Rect) - Method in interface org.robolectric.shadows.ShadowViewRootImpl.ViewRootImplReflector
- dispatchResized(Rect, Rect, Rect, boolean, Configuration) - Method in interface org.robolectric.shadows.ShadowViewRootImpl.ViewRootImplReflector
- dispatchResized(Rect, Rect, Rect, Rect, boolean, Configuration) - Method in interface org.robolectric.shadows.ShadowViewRootImpl.ViewRootImplReflector
- dispatchResized(Rect, Rect, Rect, Rect, Rect, boolean, Configuration) - Method in interface org.robolectric.shadows.ShadowViewRootImpl.ViewRootImplReflector
- dispatchResized(Rect, Rect, Rect, Rect, Rect, Rect, boolean, Configuration) - Method in interface org.robolectric.shadows.ShadowViewRootImpl.ViewRootImplReflector
- dispatchResized(Rect, Rect, Rect, Rect, Rect, Rect, boolean, Configuration, Rect, boolean, boolean) - Method in interface org.robolectric.shadows.ShadowViewRootImpl.ViewRootImplReflector
- dispatchResized(Rect, Rect, Rect, Rect, Rect, Rect, boolean, Object, Rect, boolean, boolean, int) - Method in interface org.robolectric.shadows.ShadowViewRootImpl.ViewRootImplReflector
- dispatchResized(Rect, Rect, Rect, Rect, Rect, Rect, boolean, Object, Rect, boolean, boolean, int, Object) - Method in interface org.robolectric.shadows.ShadowViewRootImpl.ViewRootImplReflector
- dispatchTagDiscovered(Tag) - Method in class org.robolectric.shadows.ShadowNfcAdapter
-
Dispatches the tag onto any registered readers.
- displayCompletions(View, CompletionInfo[]) - Method in class org.robolectric.shadows.ShadowInputMethodManager
- DisplayConfig - Class in org.robolectric.android.internal
-
Describes the characteristics of a particular logical display.
- DisplayConfig() - Constructor for class org.robolectric.android.internal.DisplayConfig
- DisplayConfig(DisplayInfo) - Constructor for class org.robolectric.android.internal.DisplayConfig
- DisplayConfig(DisplayConfig) - Constructor for class org.robolectric.android.internal.DisplayConfig
- displayCutout - Variable in class org.robolectric.android.internal.DisplayConfig
-
The area of the display that is not functional for displaying content
- displaySet - Static variable in class org.robolectric.android.Bootstrap
-
internal only
- dispose(boolean) - Method in interface org.robolectric.shadows.ShadowDisplayEventReceiver.DisplayEventReceiverReflector
- dispose(boolean) - Method in class org.robolectric.shadows.ShadowDisplayEventReceiver
- dispose(boolean) - Method in class org.robolectric.shadows.ShadowInputEventReceiver
- DO_NOTHING - Static variable in class org.robolectric.internal.bytecode.ShadowWrangler
- DO_NOTHING_HANDLER - Static variable in class org.robolectric.internal.bytecode.ShadowWrangler
- DO_NOTHING_METHOD - Static variable in class org.robolectric.internal.bytecode.ShadowWrangler
- DO_NOTHING_PLAN - Static variable in class org.robolectric.internal.bytecode.ShadowWrangler
- DocumentedElement - Class in org.robolectric.annotation.processing
- DocumentedElement(String) - Constructor for class org.robolectric.annotation.processing.DocumentedElement
- DocumentedMethod - Class in org.robolectric.annotation.processing
- DocumentedMethod(String) - Constructor for class org.robolectric.annotation.processing.DocumentedMethod
- DocumentedPackage - Class in org.robolectric.annotation.processing
- DocumentedType - Class in org.robolectric.annotation.processing
- DocumentLoader - Class in org.robolectric.res
- DocumentLoader(String, Path) - Constructor for class org.robolectric.res.DocumentLoader
- documentMethod(TypeElement, DocumentedMethod) - Method in class org.robolectric.annotation.processing.RobolectricModel.Builder
- documentPackage(String, String) - Method in class org.robolectric.annotation.processing.RobolectricModel.Builder
- documentType(TypeElement, String, List<String>) - Method in class org.robolectric.annotation.processing.RobolectricModel.Builder
- doFrame(long, int) - Method in interface org.robolectric.shadows.ShadowChoreographer.ChoreographerReflector
- doFrame(long, int) - Method in class org.robolectric.shadows.ShadowChoreographer
- doLoad() - Method in class org.robolectric.shadows.util.SQLiteLibraryLoader
- done() - Method in class org.robolectric.util.SimpleFuture
-
Deprecated.
- doNotAcquireClass(Class<?>) - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- doNotAcquireClass(String) - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- doNotAcquirePackage(String) - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- DoNotInstrument - Annotation Type in org.robolectric.annotation.internal
-
Indicates that a class should not be stripped/instrumented under any circumstances.
- doNotInstrumentClass(String) - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- doNotInstrumentPackage(String) - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
- doNotUseSetCrashOnIncorrectUsage(boolean) - Static method in class org.robolectric.shadows.ShadowTrace
-
Do not use this method unless absolutely necessary.
- doParse(XMLStreamReader, XmlContext) - Method in class org.robolectric.res.StaxDocumentLoader
- doPendingUninstallCallbacks() - Method in class org.robolectric.shadows.ShadowPackageManager
-
Runs the callbacks pending from calls to
PackageManager.deletePackage(String, IPackageDeleteObserver, int)
- doSetDataSource(DataSource) - Method in class org.robolectric.shadows.ShadowMediaPlayer
-
Sets the data source without doing any other emulation.
- doStart() - Method in class org.robolectric.shadows.ShadowMediaPlayer
-
Starts simulated playback.
- doStart() - Method in class org.robolectric.shadows.ShadowRenderNodeAnimator
- doStart() - Method in class org.robolectric.shadows.ShadowRenderNodeAnimatorR
- doStop() - Method in class org.robolectric.shadows.ShadowMediaPlayer
-
Pauses simulated playback.
- downloadMultimediaMessage(Context, String, Uri, Bundle, PendingIntent) - Method in class org.robolectric.shadows.ShadowSmsManager
- downloadMultimediaMessage(Context, String, Uri, Bundle, PendingIntent, long) - Method in class org.robolectric.shadows.ShadowSmsManager
- DownloadMultimediaMessageParams(Uri, String, Bundle, PendingIntent, long) - Constructor for class org.robolectric.shadows.ShadowSmsManager.DownloadMultimediaMessageParams
- DragEventBuilder - Class in org.robolectric.shadows
-
Builder for
DragEvent
. - drainMainThreadUntilIdle() - Method in class org.robolectric.android.internal.LocalControlledLooper
- draw(Canvas) - Method in class org.robolectric.shadows.ShadowBitmapDrawable
-
Draws the contained bitmap onto the canvas at 0,0 with a default
Paint
- draw(Canvas) - Method in class org.robolectric.shadows.ShadowView
- DRAWABLE - org.robolectric.res.ResType
- DrawableResourceLoader - Class in org.robolectric.res
-
DrawableResourceLoader
- drawArc(RectF, float, float, boolean, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawBitmap(Bitmap, float, float, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawBitmap(Bitmap, Matrix, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawBitmap(Bitmap, Rect, RectF, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawBitmap(Bitmap, Rect, Rect, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawCircle(float, float, float, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawColor(int) - Method in class org.robolectric.shadows.ShadowCanvas
- drawLine(float, float, float, float, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawOval(RectF, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawPaint(Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawPath(Path, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawRect(float, float, float, float, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawRect(Rect, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawRoundRect(RectF, float, float, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawText(char[], int, int, float, float, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawText(CharSequence, int, int, float, float, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawText(String, float, float, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- drawText(String, int, int, float, float, Paint) - Method in class org.robolectric.shadows.ShadowCanvas
- dump() - Method in class org.robolectric.shadows.ShadowView
-
Deprecated.- Please use
androidx.test.espresso.util.HumanReadables#describe(View)
- dump(TypedArray) - Static method in class org.robolectric.shadows.ShadowTypedArray
- dump(View) - Static method in class org.robolectric.shadows.ShadowView
-
Deprecated.- Please use
androidx.test.espresso.util.HumanReadables#describe(View)
- dump(PrintStream, int) - Method in class org.robolectric.shadows.ShadowView
-
Deprecated.- Please use
androidx.test.espresso.util.HumanReadables#describe(View)
- dump(PrintStream, int) - Method in class org.robolectric.shadows.ShadowViewGroup
-
Deprecated.- Please use
androidx.test.espresso.util.HumanReadables#describe(View)
- dumpAttribute(PrintStream, String, String) - Method in class org.robolectric.shadows.ShadowView
-
Deprecated.
- dumpAttributes(PrintStream) - Method in class org.robolectric.shadows.ShadowTextView
- dumpAttributes(PrintStream) - Method in class org.robolectric.shadows.ShadowView
-
Deprecated.
- dumpFirstPart(PrintStream, int) - Method in class org.robolectric.shadows.ShadowView
-
Deprecated.
- dumpIndent(PrintStream, int) - Method in class org.robolectric.shadows.ShadowView
-
Deprecated.
- dumpTheme(long, int, String, String) - Static method in class org.robolectric.shadows.ShadowArscAssetManager
- dumpTheme(long, int, String, String) - Static method in class org.robolectric.shadows.ShadowLegacyAssetManager
- duration - Variable in class org.robolectric.shadows.ShadowMediaPlayer.MediaInfo
- duration() - Method in class org.robolectric.shadows.ShadowToneGenerator.Tone
- DURATION - Static variable in class org.robolectric.shadows.ShadowAppOpsManager
- durationHint - Variable in class org.robolectric.shadows.ShadowAudioManager.AudioFocusRequest
- DYNAMIC_ATTRIBUTE - org.robolectric.res.android.DataType
-
data
holds an attribute resource identifier, which needs to be resolved before it can be used like a TYPE_ATTRIBUTE. - DYNAMIC_REFERENCE - org.robolectric.res.android.DataType
-
data
holds a dynamicResourceTableChunk
entry reference. - DynamicRefTable - Class in org.robolectric.res.android
-
Holds the shared library ID table.
E
- e(String, String) - Static method in class org.robolectric.shadows.ShadowLog
- e(String, String, Throwable) - Static method in class org.robolectric.shadows.ShadowLog
- eglChooseConfig(EGLDisplay, int[], int, EGLConfig[], int, int, int[], int) - Static method in class org.robolectric.shadows.ShadowEGL14
- eglCreateContext(EGLDisplay, EGLConfig, EGLContext, int[], int) - Static method in class org.robolectric.shadows.ShadowEGL14
- eglCreatePbufferSurface(EGLDisplay, EGLConfig, int[], int) - Static method in class org.robolectric.shadows.ShadowEGL14
- eglCreateWindowSurface(EGLDisplay, EGLConfig, Object, int[], int) - Static method in class org.robolectric.shadows.ShadowEGL14
- eglGetDisplay(int) - Static method in class org.robolectric.shadows.ShadowEGL14
- eglGetError() - Static method in class org.robolectric.shadows.ShadowEGL14
- eglInitialize(EGLDisplay, int[], int, int[], int) - Static method in class org.robolectric.shadows.ShadowEGL14
- eglMakeCurrent(EGLDisplay, EGLSurface, EGLSurface, EGLContext) - Static method in class org.robolectric.shadows.ShadowEGL14
- eglQueryContext(EGLDisplay, EGLContext, int, int[], int) - Static method in class org.robolectric.shadows.ShadowEGL14
- eglSwapBuffers(EGLDisplay, EGLSurface) - Static method in class org.robolectric.shadows.ShadowEGL14
- elapsedRealtime() - Static method in class org.robolectric.shadows.ShadowLegacySystemClock
- elapsedRealtime() - Static method in class org.robolectric.shadows.ShadowPausedSystemClock
- elapsedRealtimeNanos() - Static method in class org.robolectric.shadows.ShadowLegacySystemClock
- elapsedRealtimeNanos() - Static method in class org.robolectric.shadows.ShadowPausedSystemClock
- elements - Variable in class org.robolectric.annotation.processing.validator.Validator
- ellipsize(CharSequence, TextPaint, float, TextUtils.TruncateAt) - Static method in class org.robolectric.shadows.ShadowTextUtils
- EMPTY_VALUE - Static variable in class org.robolectric.res.AttributeResource
- EmptyStyle - Class in org.robolectric.res
- EmptyStyle() - Constructor for class org.robolectric.res.EmptyStyle
- EMULATE - org.robolectric.shadows.ShadowMediaPlayer.InvalidStateBehavior
- emulateRequest(HttpHost, HttpRequest, HttpContext, RequestDirector) - Method in class org.robolectric.shadows.httpclient.FakeHttpLayer
- enable() - Method in class org.robolectric.shadows.ShadowBluetoothAdapter
- enable() - Method in class org.robolectric.shadows.ShadowNfcAdapter
- enableCarMode(int) - Method in class org.robolectric.shadows.ShadowUIModeManager
- enableCarMode(int, int) - Method in class org.robolectric.shadows.ShadowUIModeManager
- enableForegroundDispatch(Activity, PendingIntent, IntentFilter[], String[][]) - Method in class org.robolectric.shadows.ShadowNfcAdapter
- enableNetwork(int, boolean) - Method in class org.robolectric.shadows.ShadowWifiManager
- enablePhoneAccount(PhoneAccountHandle, boolean) - Method in class org.robolectric.shadows.ShadowTelecomManager
- enableReaderMode(Activity, NfcAdapter.ReaderCallback, int, Bundle) - Method in class org.robolectric.shadows.ShadowNfcAdapter
- enableShortcuts(List<String>) - Method in class org.robolectric.shadows.ShadowShortcutManager
- enableShutterSound(boolean) - Method in class org.robolectric.shadows.ShadowCamera
- enableSmoothTransition() - Method in class org.robolectric.fakes.RoboWebSettings
- enableSystemApp(ComponentName, String) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- encodeString(String, ResourceString.Type) - Static method in class org.robolectric.res.android.ResourceString
-
Encodes a string in either UTF-8 or UTF-16 and returns the bytes of the encoded string.
- encoding - Variable in class org.robolectric.shadows.ShadowWebView.LoadData
- encoding - Variable in class org.robolectric.shadows.ShadowWebView.LoadDataWithBaseURL
- end() - Method in class org.robolectric.shadows.ShadowRenderNodeAnimator
- end() - Method in class org.robolectric.shadows.ShadowRenderNodeAnimatorR
- END - org.robolectric.shadows.ShadowMediaPlayer.State
- END - Static variable in class org.robolectric.res.android.ResourceTypes.ResStringPool_span
- END_DOCUMENT - Static variable in class org.robolectric.res.android.ResXMLParser.event_code_t
- END_NAMESPACE - Static variable in class org.robolectric.res.android.ResXMLParser.event_code_t
- END_TAG - Static variable in class org.robolectric.res.android.ResXMLParser.event_code_t
- endAsyncSection(String, int) - Static method in class org.robolectric.shadows.ShadowTrace
-
Ends async trace trace section.
- endCall() - Method in class org.robolectric.shadows.ShadowTelecomManager
- endSection() - Static method in class org.robolectric.shadows.ShadowTrace
-
Ends the most recent active trace section.
- enforcePermissionChecks(boolean) - Method in class org.robolectric.shadows.ShadowUserManager
- enqueue(DownloadManager.Request) - Method in class org.robolectric.shadows.ShadowDownloadManager
- enqueue(JobInfo, JobWorkItem) - Method in class org.robolectric.shadows.ShadowJobScheduler
- enqueue(JobInfo, JobWorkItem) - Method in class org.robolectric.shadows.ShadowJobScheduler.ShadowJobSchedulerImpl
- enqueueMessage(Message, long) - Method in class org.robolectric.shadows.ShadowLegacyMessageQueue
- ensureLoaded() - Method in class org.robolectric.nativeruntime.DefaultNativeRuntimeLoader
- ensureLoaded() - Method in interface org.robolectric.pluginapi.NativeRuntimeLoader
- ensureProviderCreated() - Method in class org.robolectric.shadows.ShadowWebView
- ensureStringBlocks() - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- enterPictureInPictureMode() - Method in class org.robolectric.shadows.ShadowActivity
- enterPictureInPictureMode(PictureInPictureParams) - Method in class org.robolectric.shadows.ShadowActivity
- entityContentStreamsHaveBeenClosed() - Method in class org.robolectric.shadows.httpclient.TestHttpResponse
- entries - Variable in class org.robolectric.res.android.CppAssetManager2.ResolvedBag
- entries() - Method in class org.robolectric.res.android.DynamicRefTable
- entry - Variable in class org.robolectric.res.android.CppAssetManager2.ResourceName
- Entry() - Constructor for class org.robolectric.res.android.CppAssetManager2.ResolvedBag.Entry
- Entry() - Constructor for class org.robolectric.res.android.ResTable.Entry
- entry_count - Variable in class org.robolectric.res.android.CppAssetManager2.ResolvedBag
- entryCount - Variable in class org.robolectric.res.android.ResTable.Type
- enumerateEnabledSdks(SdkCollection, String) - Static method in class org.robolectric.plugins.DefaultSdkPicker
- EpsBearerQosSessionAttributesBuilder - Class in org.robolectric.shadows
-
Class to build
EpsBearerQosSessionAttributes
. - equals(Object) - Method in class org.robolectric.android.internal.DisplayConfig
- equals(Object) - Method in class org.robolectric.fakes.RoboIntentSender
- equals(Object) - Method in class org.robolectric.internal.bytecode.InstrumentationConfiguration
- equals(Object) - Method in class org.robolectric.internal.bytecode.InvocationProfile
- equals(Object) - Method in class org.robolectric.internal.bytecode.MethodRef
- equals(Object) - Method in class org.robolectric.internal.bytecode.ShadowInfo
- equals(Object) - Method in class org.robolectric.internal.bytecode.ShadowMap
- equals(Object) - Method in class org.robolectric.internal.ManifestIdentifier
- equals(Object) - Method in class org.robolectric.manifest.AndroidManifest
- equals(Object) - Method in class org.robolectric.pluginapi.perf.Metric
- equals(Object) - Method in class org.robolectric.pluginapi.Sdk
- equals(Object) - Method in class org.robolectric.res.android.String8
- equals(Object) - Method in class org.robolectric.res.ResName
- equals(Object) - Method in class org.robolectric.res.ResourcePath
- equals(Object) - Method in class org.robolectric.res.StyleData
- equals(Object) - Method in class org.robolectric.res.StyleResolver
- equals(Object) - Method in class org.robolectric.RobolectricTestRunner.RobolectricFrameworkMethod
- equals(Object) - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
-
Equality check based on reference equality of the Views from which these instances were created, or the equality of their assigned IDs.
- equals(Object) - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo.ShadowAccessibilityAction
- equals(Object) - Method in class org.robolectric.shadows.ShadowArscApkAssets9.Key
- equals(Object) - Method in class org.robolectric.shadows.ShadowCrossProfileApps.StartedActivity
- equals(Object) - Method in class org.robolectric.shadows.ShadowCrossProfileApps.StartedMainActivity
-
Deprecated.
- equals(Object) - Method in class org.robolectric.shadows.ShadowDownloadManager.CompletedDownload
- equals(Object) - Method in class org.robolectric.shadows.ShadowLocationManager.RoboLocationRequest
- equals(Object) - Method in class org.robolectric.shadows.ShadowLog.LogItem
- equals(Object) - Method in class org.robolectric.shadows.ShadowMatrix
- equals(Object) - Method in class org.robolectric.shadows.ShadowPath.Point
- equals(Object) - Method in class org.robolectric.shadows.ShadowPendingIntent
- equals(Object) - Method in class org.robolectric.shadows.ShadowSoundPool.Playback
- equals(Object) - Method in class org.robolectric.shadows.ShadowTypeface
- equals(Object) - Method in class org.robolectric.shadows.ShadowTypeface.FontDesc
- equals(Object) - Method in class org.robolectric.shadows.ShadowUsageStatsManager.AppUsageLimitObserver
- equals(Object) - Method in class org.robolectric.shadows.util.DataSource
- equals(Object) - Method in class org.robolectric.util.inject.Injector.Key
- equals(DisplayConfig) - Method in class org.robolectric.android.internal.DisplayConfig
- eraseColor(int) - Method in class org.robolectric.shadows.ShadowBitmap
- error(String) - Method in class org.robolectric.annotation.processing.validator.Validator
- 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.
- error(String, AnnotationValue) - Method in class org.robolectric.annotation.processing.validator.Validator
- ERROR - org.robolectric.annotation.processing.validator.ImplementsValidator.SdkCheckMode
- ERROR - org.robolectric.shadows.ShadowMediaPlayer.State
- errorCode() - Method in class org.robolectric.shadows.ShadowRcsUceAdapter.CapabilityFailureInfo
- Errors - Class in org.robolectric.res.android
- Errors() - Constructor for class org.robolectric.res.android.Errors
- establishRoute(HttpRoute, HttpContext) - Method in class org.robolectric.shadows.httpclient.DefaultRequestDirector
-
Establishes the target route.
- evaluateJavascript(String, ValueCallback<String>) - Method in class org.robolectric.shadows.ShadowWebView
- event_code_t() - Constructor for class org.robolectric.res.android.ResXMLParser.event_code_t
- EventBuilder(int, Object) - Constructor for class org.robolectric.shadows.ShadowEventLog.EventBuilder
- events - Variable in class org.robolectric.shadows.ShadowMediaPlayer.MediaInfo
-
Map that maps time offsets to media events.
- exception - Variable in class org.robolectric.shadows.ShadowApplication.Wrapper
- exceptionArray(MethodNode) - Method in class org.robolectric.internal.bytecode.ClassInstrumentor
- exceptionPackages - Variable in class org.robolectric.shadows.ShadowAppOpsManager.ModeAndException
- exceptions - Variable in class org.robolectric.annotation.processing.DocumentedMethod
- EXCLUDED_ASSET - Static variable in class org.robolectric.res.android.Asset
- execStartActivities(Context, IBinder, IBinder, Activity, Intent[], Bundle) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
- execStartActivities(Context, IBinder, IBinder, Activity, Intent[], Bundle) - Method in class org.robolectric.shadows.ShadowInstrumentation
- execStartActivity(Context, IBinder, IBinder, Activity, Intent, int, Bundle) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
- execStartActivity(Context, IBinder, IBinder, Activity, Intent, int, Bundle) - Method in interface org.robolectric.shadows.ShadowInstrumentation._Instrumentation_
- execStartActivity(Context, IBinder, IBinder, Activity, Intent, int, Bundle) - Method in class org.robolectric.shadows.ShadowInstrumentation
- execStartActivity(Context, IBinder, IBinder, Activity, Intent, int, Bundle, UserHandle) - Method in class org.robolectric.shadows.ShadowInstrumentation
-
Behaves as {@link #execStartActivity(Context, IBinder, IBinder, Activity, Intent, int, Bundle).
- execStartActivity(Context, IBinder, IBinder, Fragment, Intent, int, Bundle) - Method in class org.robolectric.shadows.ShadowInstrumentation
- execStartActivity(Context, IBinder, IBinder, String, Intent, int, Bundle) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
-
This API was added in Android API 23 (M)
- execStartActivity(Context, IBinder, IBinder, String, Intent, int, Bundle) - Method in interface org.robolectric.shadows.ShadowInstrumentation._Instrumentation_
- execStartActivity(Context, IBinder, IBinder, String, Intent, int, Bundle) - Method in class org.robolectric.shadows.ShadowInstrumentation
- execStartActivity(Context, IBinder, IBinder, String, Intent, int, Bundle, UserHandle) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
-
This API was added in Android API 17 (JELLY_BEAN_MR1)
- execStartActivity(Context, IBinder, IBinder, String, Intent, int, Bundle, UserHandle) - Method in class org.robolectric.shadows.ShadowInstrumentation
-
Behaves as {@link #execStartActivity(Context, IBinder, IBinder, String, Intent, int, Bundle).
- execStartActivityFromAppTask(Context, IBinder, Object, Intent, Bundle) - Method in class org.robolectric.shadows.ShadowInstrumentation
- execute(Runnable) - Method in class org.robolectric.android.util.concurrent.InlineExecutorService
- execute(Runnable) - Method in class org.robolectric.android.util.concurrent.PausedExecutorService
- execute(Runnable) - Method in class org.robolectric.android.util.concurrent.RoboExecutorService
-
Deprecated.
- execute(HttpUriRequest) - Method in class org.robolectric.shadows.ShadowAndroidHttpClient
- execute(HttpUriRequest, ResponseHandler<? extends T>) - Method in class org.robolectric.shadows.ShadowAndroidHttpClient
- execute(HttpUriRequest, ResponseHandler<? extends T>, HttpContext) - Method in class org.robolectric.shadows.ShadowAndroidHttpClient
- execute(HttpUriRequest, HttpContext) - Method in class org.robolectric.shadows.ShadowAndroidHttpClient
- execute(HttpHost, HttpRequest) - Method in class org.robolectric.shadows.ShadowAndroidHttpClient
- execute(HttpHost, HttpRequest, ResponseHandler<? extends T>) - Method in class org.robolectric.shadows.ShadowAndroidHttpClient
- execute(HttpHost, HttpRequest, ResponseHandler<? extends T>, HttpContext) - Method in class org.robolectric.shadows.ShadowAndroidHttpClient
- execute(HttpHost, HttpRequest, HttpContext) - Method in class org.robolectric.shadows.httpclient.DefaultRequestDirector
- execute(HttpHost, HttpRequest, HttpContext) - Method in class org.robolectric.shadows.httpclient.ShadowDefaultRequestDirector
- execute(HttpHost, HttpRequest, HttpContext) - Method in class org.robolectric.shadows.ShadowAndroidHttpClient
- execute(Params...) - Method in class org.robolectric.shadows.ShadowLegacyAsyncTask
- executeOnError(int) - Method in class org.robolectric.shadows.ShadowBugreportManager
-
Executes
BugreportManager.BugreportCallback.onError(int)
on the provided Executor. - executeOnExecutor(Executor, Params...) - Method in class org.robolectric.shadows.ShadowLegacyAsyncTask
- executeOnExecutor(Executor, Params...) - Method in class org.robolectric.shadows.ShadowPausedAsyncTask
- executeOnFinished() - Method in class org.robolectric.shadows.ShadowBugreportManager
-
Executes
BugreportManager.BugreportCallback.onFinished()
on the provided Executor. - executeOnMetadataChanged(MediaMetadata) - Method in class org.robolectric.shadows.ShadowMediaController
-
Executes all registered onMetadataChanged callbacks.
- executeOnPlaybackStateChanged(PlaybackState) - Method in class org.robolectric.shadows.ShadowMediaController
-
Executes all registered onPlaybackStateChanged callbacks.
- executeOnProgress(float) - Method in class org.robolectric.shadows.ShadowBugreportManager
-
Executes
BugreportManager.BugreportCallback.onProgress(float)
on the provided Executor. - existingInstances - Static variable in class org.robolectric.shadows.ShadowImsMmTelManager
- expandActionView() - Method in class org.robolectric.fakes.RoboMenuItem
- expected - Variable in class org.robolectric.errorprone.bugpatterns.Helpers.CastableTo
- ExpectedLogMessagesRule - Class in org.robolectric.junit.rules
-
Allows tests to assert about the presence of log messages, and turns logged errors that are not explicitly expected into test failures.
- ExpectedLogMessagesRule() - Constructor for class org.robolectric.junit.rules.ExpectedLogMessagesRule
- expectErrorsForTag(String) - Method in class org.robolectric.junit.rules.ExpectedLogMessagesRule
-
Blanket suppress test failures due to errors from a tag.
- expectLogMessage(int, String, String) - Method in class org.robolectric.junit.rules.ExpectedLogMessagesRule
-
Adds an expected log statement.
- expectLogMessagePattern(int, String, Pattern) - Method in class org.robolectric.junit.rules.ExpectedLogMessagesRule
-
Adds an expected log statement using a regular expression.
- expectLogMessagePatternWithThrowableMatcher(int, String, Pattern, Matcher<Throwable>) - Method in class org.robolectric.junit.rules.ExpectedLogMessagesRule
-
Adds an expected log statement using a regular expression, with an extra check of
Matcher
. - expectLogMessageWithThrowable(int, String, String, Throwable) - Method in class org.robolectric.junit.rules.ExpectedLogMessagesRule
-
Adds an expected log statement with extra check of
Throwable
. - expectLogMessageWithThrowableMatcher(int, String, String, Matcher<Throwable>) - Method in class org.robolectric.junit.rules.ExpectedLogMessagesRule
-
Adds an expected log statement with extra check of
Matcher
. - extendVerificationTimeout(int, int, long) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- ExtensionPoint - Annotation Type in org.robolectric.pluginapi
-
Marks a component of Robolectric that may be replaced with a custom implementation.
- externalize(Path) - Static method in class org.robolectric.res.Fs
- extract(Object) - Method in class org.robolectric.internal.bytecode.ShadowImpl
- extract(Object) - Method in interface org.robolectric.internal.IShadow
- extract(Object) - Static method in class org.robolectric.shadow.api.Shadow
-
Retrieve corresponding Shadow of the object.
- extractAlpha() - Method in class org.robolectric.shadows.ShadowBitmap
- extractAlpha(Paint, int[]) - Method in class org.robolectric.shadows.ShadowBitmap
-
This shadow implementation ignores the given paint and offsetXY and simply calls
ShadowBitmap.extractAlpha()
. - extractMetadata(int) - Method in class org.robolectric.shadows.ShadowMediaMetadataRetriever
- extraFlags - Variable in class org.robolectric.shadows.ShadowActivity.IntentSenderRequest
- extras - Variable in class org.robolectric.shadows.ShadowTelecomManager.CallRecord
-
Deprecated.
- extras - Variable in class org.robolectric.shadows.ShadowTelecomManager.OutgoingCallRecord
- extras - Variable in class org.robolectric.shadows.ShadowWallpaperManager.WallpaperCommandRecord
F
- failOnJob(int) - Method in class org.robolectric.shadows.ShadowJobScheduler
- failOnJob(int) - Method in class org.robolectric.shadows.ShadowJobScheduler.ShadowJobSchedulerImpl
- failSetApplicationHiddenFor(Collection<String>) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
-
Set package names for witch
DevicePolicyManager.setApplicationHidden(android.content.ComponentName, java.lang.String, boolean)
should fail. - FakeHttp - Class in org.robolectric.shadows.httpclient
-
Collection of static methods used interact with HTTP requests / responses.
- FakeHttp() - Constructor for class org.robolectric.shadows.httpclient.FakeHttp
- FakeHttpLayer - Class in org.robolectric.shadows.httpclient
- FakeHttpLayer() - Constructor for class org.robolectric.shadows.httpclient.FakeHttpLayer
- FakeHttpLayer.DefaultRequestMatcher - Class in org.robolectric.shadows.httpclient
- FakeHttpLayer.RequestMatcherBuilder - Class in org.robolectric.shadows.httpclient
- FakeHttpLayer.RequestMatcherBuilder.PostBodyMatcher - Interface in org.robolectric.shadows.httpclient
- FakeHttpLayer.RequestMatcherResponseRule - Class in org.robolectric.shadows.httpclient
- FakeHttpLayer.UriRegexMatcher - Class in org.robolectric.shadows.httpclient
- FakeHttpLayer.UriRequestMatcher - Class in org.robolectric.shadows.httpclient
- FakeSurfaceHolder() - Constructor for class org.robolectric.shadows.ShadowSurfaceView.FakeSurfaceHolder
- familyName - Variable in class org.robolectric.shadows.ShadowTypeface.FontDesc
- fetchArtifact(MavenJarArtifact) - Method in class org.robolectric.internal.dependency.MavenArtifactFetcher
- fetchUuidsWithSdp() - Method in class org.robolectric.shadows.ShadowBluetoothDevice
-
Overrides behavior of
BluetoothDevice.fetchUuidsWithSdp()
. - file - Variable in class org.robolectric.res.android.AssetPath
- file(File, String...) - Static method in class org.robolectric.util.Util
- file(String...) - Static method in class org.robolectric.util.Util
- FILE - org.robolectric.res.ResType
- FileDescriptorInterceptor() - Constructor for class org.robolectric.interceptors.AndroidInterceptors.FileDescriptorInterceptor
- fileFromPath(String) - Static method in class org.robolectric.res.Fs
-
Deprecated.Use
Fs.fromUrl(String)
instead. - FileMap - Class in org.robolectric.res.android
- FileMap() - Constructor for class org.robolectric.res.android.FileMap
- FileTypedResource - Class in org.robolectric.res
- FileTypedResource.Image - Class in org.robolectric.res
- fillBounds(RectF) - Method in class org.robolectric.shadows.ShadowPath
-
Fills the given
RectF
with the path bounds. - fillInIntent - Variable in class org.robolectric.shadows.ShadowActivity.IntentSenderRequest
- fillTypedValue(String, TypedValue) - Method in class org.robolectric.shadows.Converter.FromCharSequence
- fillTypedValue(String, TypedValue) - Method in class org.robolectric.shadows.Converter.FromColor
- fillTypedValue(String, TypedValue) - Method in class org.robolectric.shadows.Converter.FromFilePath
- fillTypedValue(String, TypedValue, boolean) - Method in class org.robolectric.shadows.Converter2.FromCharSequence
- fillTypedValue(String, TypedValue, boolean) - Method in class org.robolectric.shadows.Converter2.FromColor
- fillTypedValue(AttrData, TypedValue) - Method in class org.robolectric.shadows.Converter.FromAttrData
- fillTypedValue(T, TypedValue) - Method in class org.robolectric.shadows.Converter
- fillTypedValue(T, TypedValue, boolean) - Method in class org.robolectric.shadows.Converter2
- filter(CharSequence, Filter.FilterListener) - Method in class org.robolectric.shadows.ShadowFilter
- finalize() - Method in class org.robolectric.android.XmlResourceParserImpl
- finalize() - Method in class org.robolectric.res.android.ResStringPool
- finalize() - Method in class org.robolectric.res.android.ResXMLTree
- finalize() - Method in class org.robolectric.res.android.ZipFileRO
- finalize() - Method in class org.robolectric.RobolectricTestRunner.RobolectricFrameworkMethod
- finalize() - Method in class org.robolectric.shadows.ShadowFileObserver
- finalize() - Method in class org.robolectric.shadows.ShadowPathParser.ShadowPathData
- finalize() - Method in class org.robolectric.shadows.ShadowSurface
- finalize() - Method in class org.robolectric.shadows.ShadowSurfaceControl
- finallyAfterTest(FrameworkMethod) - Method in class org.robolectric.internal.SandboxTestRunner
- finallyAfterTest(FrameworkMethod) - Method in class org.robolectric.RobolectricTestRunner
- find(int) - Method in class org.robolectric.res.android.AttributeResolution.BagAttributeFinder
- find(int) - Method in class org.robolectric.res.android.AttributeResolution.XmlAttributeFinder
- find(int) - Method in class org.robolectric.res.PluralRules
- Find(int) - Method in class org.robolectric.res.android.AttributeResolution10.XmlAttributeFinder
- Find(int) - Method in class org.robolectric.res.android.AttributeResolution9.XmlAttributeFinder
- findAddress(String) - Static method in class org.robolectric.shadows.ShadowWebView
- findIndexOfItemContainingText(String) - Method in class org.robolectric.shadows.ShadowAdapterView
- findInterceptor(String, String) - Method in class org.robolectric.internal.bytecode.Interceptors
- findInterceptors() - Method in class org.robolectric.internal.SandboxTestRunner
- findInterceptors() - Method in class org.robolectric.RobolectricTestRunner
- findItem(int) - Method in class org.robolectric.fakes.RoboMenu
- findItemContainingText(String) - Method in class org.robolectric.shadows.ShadowAdapterView
- findMenuItem(CharSequence) - Method in class org.robolectric.fakes.RoboMenu
- findMenuItemContaining(CharSequence) - Method in class org.robolectric.fakes.RoboMenu
- findShadowMethodHandle(Class<?>, String, MethodType, boolean) - Method in interface org.robolectric.internal.bytecode.ClassHandler
-
Called by Robolectric when an instrumented method is invoked.
- findShadowMethodHandle(Class<?>, String, MethodType, boolean) - Static method in class org.robolectric.internal.bytecode.RobolectricInternals
- findShadowMethodHandle(Class<?>, String, MethodType, boolean) - Method in class org.robolectric.internal.bytecode.ShadowWrangler
- findViewById(int) - Method in class org.robolectric.shadows.ShadowActivity
-
Checks to ensure that the
contentView
has been set - finish() - Method in class org.robolectric.shadows.ShadowActivity
- finish() - Method in class org.robolectric.shadows.ShadowBroadcastPendingResult
- finish(int, Bundle) - Method in class org.robolectric.android.internal.RoboMonitoringInstrumentation
- finishActivity(Activity) - Method in class org.robolectric.android.internal.LocalActivityInvoker
- finishAffinity() - Method in class org.robolectric.shadows.ShadowActivity
- finishAndRemoveTask() - Method in class org.robolectric.shadows.ShadowActivity
- finishAndRemoveTask() - Method in class org.robolectric.shadows.ShadowAppTask
-
For tests, marks the task as finished.
- finishBroadcast() - Method in class org.robolectric.shadows.ShadowRemoteCallbackList
- finished() - Method in class org.robolectric.util.PerfStatsCollector.Event
- finished(boolean) - Method in class org.robolectric.util.PerfStatsCollector.Event
- finishOp(int, int, String) - Method in class org.robolectric.shadows.ShadowAppOpsManager
-
Removes a fake long-running operation from the set.
- finishOp(String, int, String, String) - Method in class org.robolectric.shadows.ShadowAppOpsManager
-
Removes a fake long-running operation from the set.
- finishSession(Bundle, Activity, AccountManagerCallback<Bundle>, Handler) - Method in class org.robolectric.shadows.ShadowAccountManager
-
Returns sessionBundle as the result of finishSession.
- FIRST_CHUNK_CODE - Static variable in class org.robolectric.res.android.ResXMLParser.event_code_t
- fixTracePath(String) - Static method in class org.robolectric.shadows.ShadowDebug
- FLAG_ADMIN - Static variable in class org.robolectric.shadows.ShadowUserManager
- FLAG_DEMO - Static variable in class org.robolectric.shadows.ShadowUserManager
- flag_entry(String, int, String) - Constructor for class org.robolectric.res.android.ResourceTable.flag_entry
- FLAG_FULL - Static variable in class org.robolectric.shadows.ShadowUserManager
- FLAG_GUEST - Static variable in class org.robolectric.shadows.ShadowUserManager
- FLAG_MANAGED_PROFILE - Static variable in class org.robolectric.shadows.ShadowUserManager
- FLAG_NO_ACTION - Static variable in class org.robolectric.shadows.ShadowAudioManager
- FLAG_PRIMARY - Static variable in class org.robolectric.shadows.ShadowUserManager
- FLAG_PROFILE - Static variable in class org.robolectric.shadows.ShadowUserManager
- FLAG_RESTRICTED - Static variable in class org.robolectric.shadows.ShadowUserManager
- FLAG_SYSTEM - Static variable in class org.robolectric.shadows.ShadowUserManager
- flags - Variable in class org.robolectric.android.internal.DisplayConfig
-
Display flags.
- flags - Variable in class org.robolectric.shadows.ShadowApplication.Wrapper
- flags - Variable in class org.robolectric.shadows.ShadowPackageManager.ComponentState
- flagsMask - Variable in class org.robolectric.shadows.ShadowActivity.IntentSenderRequest
- flagsValues - Variable in class org.robolectric.shadows.ShadowActivity.IntentSenderRequest
- FLOAT - org.robolectric.res.android.DataType
-
data
holds a single-precision floating point number. - FLOAT - org.robolectric.res.ResType
- floor(float) - Static method in class org.robolectric.shadows.ShadowFloatMath
- flush() - Method in class android.webkit.RoboCookieManager
- flush() - Method in class org.robolectric.shadows.ShadowAudioTrack
- flushBackgroundThreadScheduler() - Static method in class org.robolectric.Robolectric
-
Execute all runnables that have been enqueued on the background scheduler.
- flushForegroundThreadScheduler() - Static method in class org.robolectric.Robolectric
-
Execute all runnables that have been enqueued on the foreground scheduler.
- flushPackageRestrictionsAsUser(int) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- focusIn(View) - Method in class org.robolectric.shadows.ShadowInputMethodManager
- FontDesc(String, int) - Constructor for class org.robolectric.shadows.ShadowTypeface.FontDesc
- forceListenersToFail - Variable in class org.robolectric.shadows.ShadowSensorManager
- ForEachPackage(CppAssetManager2.PackageFunc) - Method in class org.robolectric.res.android.CppAssetManager2
- forInt(int) - Static method in class org.robolectric.res.android.ApkAssetsCookie
- forJar(URL) - Static method in class org.robolectric.res.Fs
- forJar(Path) - Static method in class org.robolectric.res.Fs
- format(String) - Method in class org.robolectric.shadows.ShadowTime
- format(String, Date, Locale, TimeZone) - Static method in class org.robolectric.util.Strftime
-
Format a date string.
- format2445() - Method in class org.robolectric.shadows.ShadowTime
- format3339(boolean) - Method in class org.robolectric.shadows.ShadowTime
- formatDateInterval(long, long, long) - Static method in class org.robolectric.shadows.ShadowDateIntervalFormat
- Formatter - Class in org.robolectric.res.android
- Formatter() - Constructor for class org.robolectric.res.android.Formatter
- ForType - Annotation Type in org.robolectric.util.reflector
-
Indicates that the annotated interface is an accessor object for use by
Reflector
. - FoundOnImplementsValidator - Class in org.robolectric.annotation.processing.validator
-
Validator that checks usages of
Implements
. - FoundOnImplementsValidator(RobolectricModel.Builder, ProcessingEnvironment, String) - Constructor for class org.robolectric.annotation.processing.validator.FoundOnImplementsValidator
- FRACTION - org.robolectric.res.android.DataType
-
data
holds a complex number encoding a fraction of a container. - FRACTION - org.robolectric.res.ResType
- FragmentController<F extends Fragment> - Class in org.robolectric.android.controller
-
Deprecated.Native Fragments have been deprecated in Android P. Android encourages developers to use androidx fragments, to test these use FragmentScenario.
- FragmentTestUtil - Class in org.robolectric.util
-
Deprecated.Please use
Robolectric.buildFragment(Class)
instead. This will be removed in a forthcoming release, - FragmentTestUtil() - Constructor for class org.robolectric.util.FragmentTestUtil
-
Deprecated.
- FrameMetricsBuilder - Class in org.robolectric.shadows
-
Class to build
FrameMetrics
- FrameMetricsBuilder() - Constructor for class org.robolectric.shadows.FrameMetricsBuilder
- FRAMEWORK_APK_PATH - Static variable in class org.robolectric.shadows.ShadowArscApkAssets9
- frameworkMethod - Variable in class org.robolectric.internal.SandboxTestRunner.HelperTestRunner
- free() - Method in class org.robolectric.shadows.ShadowMediaCodec.ShadowCodecBuffer
-
Prevents attempting to free non-direct ByteBuffer objects.
- freeByteBuffer(ByteBuffer) - Method in class org.robolectric.shadows.ShadowMediaCodec
-
Prevents attempting to free non-direct ByteBuffer objects.
- freeStorage(long, IntentSender) - Method in class org.robolectric.shadows.ShadowPackageManager
- freeStorage(String, long, IntentSender) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- freeStorageAndNotify(long, IPackageDataObserver) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- freeStorageAndNotify(long, IPackageDataObserver) - Method in class org.robolectric.shadows.ShadowPackageManager
- freeStorageAndNotify(String, long, IPackageDataObserver) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- freeze() - Method in class org.robolectric.res.android.ResourceTypes.ResStringPool_header.Writer
- freeze() - Method in class org.robolectric.shadows.ShadowFontFamily
- from(Class<? extends V>, V) - Static method in class org.robolectric.util.ReflectionHelpers.ClassParameter
- from(String, V) - Static method in class org.robolectric.util.ReflectionHelpers.StringParameter
- FromArray() - Constructor for class org.robolectric.shadows.Converter.FromArray
- FromAttrData() - Constructor for class org.robolectric.shadows.Converter.FromAttrData
- FromCharSequence() - Constructor for class org.robolectric.shadows.Converter.FromCharSequence
- FromCharSequence() - Constructor for class org.robolectric.shadows.Converter2.FromCharSequence
- fromCode(byte) - Static method in enum org.robolectric.res.android.DataType
- fromCode(int) - Static method in enum org.robolectric.res.android.DataType
- FromColor() - Constructor for class org.robolectric.shadows.Converter.FromColor
- FromColor() - Constructor for class org.robolectric.shadows.Converter2.FromColor
- fromComponentLists(Class<?>[], Object[]) - Static method in class org.robolectric.util.ReflectionHelpers.ClassParameter
- fromEvent(UsageEvents.Event) - Static method in class org.robolectric.shadows.ShadowUsageStatsManager.EventBuilder
- FromFilePath() - Constructor for class org.robolectric.shadows.Converter.FromFilePath
- fromInt(int) - Static method in enum org.robolectric.res.android.Asset.AccessMode
- fromParentDir(Path) - Static method in class org.robolectric.res.Qualifiers
- fromProperties(Properties) - Static method in class org.robolectric.annotation.Config.Implementation
- fromUrl(String) - Static method in class org.robolectric.res.Fs
-
Use this method instead of
Paths.get(String, String...)
orPaths.get(URI)
. - fromUrl(URL) - Static method in class org.robolectric.res.Fs
-
Isn't this what
Paths.get(URI)
should do? - Fs - Class in org.robolectric.res
- Fs() - Constructor for class org.robolectric.res.Fs
- FsFile - Interface in org.robolectric.res
-
Deprecated.Use
Path
instead. - fstat(FileDescriptor) - Method in class org.robolectric.shadows.ShadowLinux
- fstat(FileDescriptor) - Static method in class org.robolectric.shadows.ShadowPosix
- fstat(String) - Method in class org.robolectric.shadows.ShadowLinux
- fsync(OutputStream) - Method in class org.robolectric.shadows.ShadowPackageInstaller.ShadowSession
- Function<R,T> - Interface in org.robolectric.util
-
Interface defining a function object.
G
- GEN_CLASS - Static variable in class org.robolectric.annotation.processing.generator.Generator
- generate() - Method in class org.robolectric.annotation.processing.generator.Generator
- generate() - Method in class org.robolectric.annotation.processing.generator.JavadocJsonGenerator
- generate() - Method in class org.robolectric.annotation.processing.generator.ServiceLoaderGenerator
- generate() - Method in class org.robolectric.annotation.processing.generator.ShadowProviderGenerator
- generate(String, String) - Method in class org.robolectric.res.ResourceIdGenerator
- generateAudioSessionId() - Method in class org.robolectric.shadows.ShadowAudioManager
-
Provides a mock like interface for the
AudioManager.generateAudioSessionId()
method by returning positive distinct values, orAudioManager.ERROR
if all possible values have already been returned. - generateClassHandlerCall(MutableClass, MethodNode, String, RobolectricGeneratorAdapter) - Method in class org.robolectric.internal.bytecode.ClassInstrumentor
- generatePackageInfo(PackageParser.Package, int) - Method in class org.robolectric.shadows.ShadowPackageManager
- Generator - Class in org.robolectric.annotation.processing.generator
-
Base class for code generators.
- Generator() - Constructor for class org.robolectric.annotation.processing.generator.Generator
- GestureDispatch(GestureDescription, AccessibilityService.GestureResultCallback) - Constructor for class org.robolectric.shadows.ShadowAccessibilityService.GestureDispatch
- get() - Method in class org.robolectric.android.controller.ComponentController
- get() - Method in class org.robolectric.android.controller.ContentProviderController
- get() - Method in interface org.robolectric.pluginapi.config.GlobalConfigProvider
- get() - Method in class org.robolectric.res.android.Ref
- get() - Method in class org.robolectric.RobolectricTestRunner.DeprecatedTestRunnerDefaultConfigProvider
-
Deprecated.
- get() - Method in interface org.robolectric.shadows.Provider
- get() - Method in class org.robolectric.shadows.ShadowLegacyAsyncTask
- 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(int, int) - Method in class org.robolectric.shadows.ShadowKeyCharacterMap
- get(long, Class<T>) - Static method in class org.robolectric.shadows.ShadowVirtualRefBasePtr
- get(long, TimeUnit) - Method in class org.robolectric.shadows.ShadowLegacyAsyncTask
- get(long, TimeUnit) - Method in class org.robolectric.util.SimpleFuture
-
Deprecated.
- get(Context) - Static method in class org.robolectric.shadows.ShadowAccountManager
-
Deprecated.This method will be removed in Robolectric 3.4 Use
AccountManager.get(Context)
instead. - get(Context) - Static method in class org.robolectric.shadows.ShadowViewConfiguration
- get(CameraCharacteristics.Key<T>) - Method in class org.robolectric.shadows.ShadowCameraCharacteristics
- get(CaptureRequest.Key<T>) - Method in class org.robolectric.shadows.ShadowCaptureRequestBuilder
-
Original implementation would store its state in a local CameraMetadataNative object.
- get(CaptureResult.Key<T>) - Method in class org.robolectric.shadows.ShadowCaptureResult
-
Obtain a property of the CaptureResult.
- get(AudioRecord) - Method in interface org.robolectric.shadows.ShadowAudioRecord.AudioRecordSourceProvider
- get(Class<T>) - Static method in class org.robolectric.config.ConfigurationRegistry
-
Returns the configuration object of the specified class, computed using
Configurer
. - get(Class<T>) - Method in interface org.robolectric.pluginapi.config.ConfigurationStrategy.Configuration
-
Returns the configuration instance of the specified class for the current test.
- get(Class<T>) - Method in class org.robolectric.pluginapi.perf.Metadata
- get(Class<T>) - Method in class org.robolectric.plugins.HierarchicalConfigurationStrategy.ConfigurationImpl
- get(String) - Method in class org.robolectric.shadows.ShadowCamera.ShadowParameters
- get(URI, String, Map<String, List<String>>) - Method in class org.robolectric.shadows.ShadowHttpResponseCache
- get(Locale) - Static method in class org.robolectric.shadows.ShadowLocaleData
- get(ConfigurationStrategy.Configuration) - Static method in class org.robolectric.plugins.ConfigConfigurer
- get(ResName, ResTable_config) - Method in class org.robolectric.res.ResBunch
- get(ResName, ResTable_config) - Method in class org.robolectric.res.ResBundle
- get(DataSource) - Method in interface org.robolectric.shadows.ShadowMediaPlayer.MediaInfoProvider
- GET_ROBO_DATA_METHOD_NAME - Static variable in class org.robolectric.internal.bytecode.ShadowConstants
- getAcceptThirdPartyCookies() - Method in class org.robolectric.fakes.RoboWebSettings
- getAccessibilityServiceList() - Method in class org.robolectric.shadows.ShadowAccessibilityManager
- getAccessoryList() - Method in class org.robolectric.shadows.ShadowUsbManager
- getAccountChangeEvents(Context, int, String) - Static method in class org.robolectric.shadows.gms.ShadowGoogleAuthUtil
- getAccountChangeEvents(Context, int, String) - Method in class org.robolectric.shadows.gms.ShadowGoogleAuthUtil.GoogleAuthUtilImpl
- getAccountId(Context, String) - Static method in class org.robolectric.shadows.gms.ShadowGoogleAuthUtil
- getAccountId(Context, String) - Method in class org.robolectric.shadows.gms.ShadowGoogleAuthUtil.GoogleAuthUtilImpl
- getAccounts() - Method in class org.robolectric.shadows.ShadowAccountManager
- getAccountsByType(String) - Method in class org.robolectric.shadows.ShadowAccountManager
- getAccountsByTypeAndFeatures(String, String[], AccountManagerCallback<Account[]>, Handler) - Method in class org.robolectric.shadows.ShadowAccountManager
- getAccountsByTypeForPackage(String, String) - Method in class org.robolectric.shadows.ShadowAccountManager
- getAccountTypesWithManagementDisabled() - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- getAccuracy() - Method in class org.robolectric.shadows.ShadowLocationManager.ProviderProperties
- getActionList() - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- getActionProvider() - Method in class org.robolectric.fakes.RoboMenuItem
- getActions() - Method in class org.robolectric.manifest.BroadcastReceiverData
- getActions() - Method in class org.robolectric.manifest.IntentFilterData
- getActions() - Method in class org.robolectric.manifest.ServiceData
- getActions() - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
-
Obtain flags for actions supported.
- getActionView() - Method in class org.robolectric.fakes.RoboMenuItem
- getActiveAdmins() - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- getActiveLockCount() - Method in class org.robolectric.shadows.ShadowWifiManager
-
Returns the number of WifiLocks and MulticastLocks that are currently acquired.
- getActiveNetwork() - Method in class org.robolectric.shadows.ShadowConnectivityManager
- getActiveNetworkInfo() - Method in class org.robolectric.shadows.ShadowConnectivityManager
- getActiveNotifications() - Method in class org.robolectric.shadows.ShadowNotificationManager
- getActiveNotifications(String[], int) - Method in class org.robolectric.shadows.ShadowNotificationListenerService
-
Returns zero or more notifications, added by
ShadowNotificationListenerService.addActiveNotification(java.lang.String, int, android.app.Notification)
, that match one of the provided keys. - getActivePlaybackConfigurations() - Method in class org.robolectric.shadows.ShadowAudioManager
- getActiveProjectionTypes() - Method in class org.robolectric.shadows.ShadowUIModeManager
- getActiveRecordingConfigurations() - Method in class org.robolectric.shadows.ShadowAudioManager
-
Returns list of active recording configurations that was set by
ShadowAudioManager.setActiveRecordingConfigurations(java.util.List<android.media.AudioRecordingConfiguration>, boolean)
or empty list otherwise. - getActiveScans() - Method in class org.robolectric.shadows.ShadowBluetoothLeScanner
-
Returns all
ShadowBluetoothLeScanner.ScanParams
s representing active scans. - getActiveScorerPackage() - Method in class org.robolectric.shadows.ShadowNetworkScoreManager
- getActiveSessions(ComponentName) - Method in class org.robolectric.shadows.ShadowMediaSessionManager
- getActiveSubscriptionIdList() - Method in class org.robolectric.shadows.ShadowSubscriptionManager
-
Returns subscription Ids that were set via
ShadowSubscriptionManager.setActiveSubscriptionInfoList(java.util.List<android.telephony.SubscriptionInfo>)
. - getActiveSubscriptionInfo(int) - Method in class org.robolectric.shadows.ShadowSubscriptionManager
-
Returns subscription that were set via
ShadowSubscriptionManager.setActiveSubscriptionInfoList(java.util.List<android.telephony.SubscriptionInfo>)
if it can find one with the specified id or null if none found. - getActiveSubscriptionInfoCount() - Method in class org.robolectric.shadows.ShadowSubscriptionManager
-
Returns the size of the list of
SubscriptionInfo
that were set viaShadowSubscriptionManager.setActiveSubscriptionInfoList(java.util.List<android.telephony.SubscriptionInfo>)
. - getActiveSubscriptionInfoCountMax() - Method in class org.robolectric.shadows.ShadowSubscriptionManager
- getActiveSubscriptionInfoForSimSlotIndex(int) - Method in class org.robolectric.shadows.ShadowSubscriptionManager
-
Returns subscription that were set via
ShadowSubscriptionManager.setActiveSubscriptionInfoList(java.util.List<android.telephony.SubscriptionInfo>)
if it can find one with the specified slot index or null if none found. - getActiveSubscriptionInfoList() - Method in class org.robolectric.shadows.ShadowSubscriptionManager
-
Returns the active list of
SubscriptionInfo
that were set viaShadowSubscriptionManager.setActiveSubscriptionInfoList(java.util.List<android.telephony.SubscriptionInfo>)
. - getActivities() - Method in interface org.robolectric.shadows.ShadowActivityThread._ActivityThread_
- getActivities(Context, int, Intent[], int) - Static method in class org.robolectric.shadows.ShadowPendingIntent
- getActivities(Context, int, Intent[], int, Bundle) - Static method in class org.robolectric.shadows.ShadowPendingIntent
- getActivity() - Method in class org.robolectric.shadows.ShadowCrossProfileApps.StartedActivity
- getActivity(Context, int, Intent, int) - Static method in class org.robolectric.shadows.ShadowPendingIntent
- getActivity(Context, int, Intent, int, Bundle) - Static method in class org.robolectric.shadows.ShadowPendingIntent
- getActivityData(String) - Method in class org.robolectric.manifest.AndroidManifest
- getActivityDatas() - Method in class org.robolectric.manifest.AndroidManifest
- getActivityIcon(ComponentName) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- getActivityInfo(ComponentName, int) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- getActivityLabel(String) - Method in class org.robolectric.manifest.AndroidManifest
- getActivityList(String, UserHandle) - Method in class org.robolectric.shadows.ShadowLauncherApps
- getActivityResult() - Method in class org.robolectric.android.internal.LocalActivityInvoker
- getActivityThread() - Static method in class org.robolectric.RuntimeEnvironment
- getActivityToken() - Method in interface org.robolectric.shadows.ShadowContextImpl._ContextImpl_
- getActualBinaryName() - Method in class org.robolectric.annotation.processing.RobolectricModel.ShadowInfo
- getActualName() - Method in class org.robolectric.annotation.processing.RobolectricModel.ShadowInfo
- getActualRepeatCount() - Method in class org.robolectric.shadows.ShadowValueAnimator
-
Returns the value that was set as the repeat count.
- getActualTypeWithParams() - Method in class org.robolectric.annotation.processing.RobolectricModel.ShadowInfo
- getAdapter() - Method in class org.robolectric.shadows.ShadowAlertController
- getAdapter() - Method in class org.robolectric.shadows.ShadowAlertDialog
- getAdapter() - Method in class org.robolectric.shadows.ShadowBluetoothManager
- getAdaptivePowerSaveEnabled() - Method in class org.robolectric.shadows.ShadowPowerManager
-
Gets the value set by
ShadowPowerManager.setAdaptivePowerSaveEnabled(boolean)
. - getAddedCallbackBuffers() - Method in class org.robolectric.shadows.ShadowCamera
- getAddress() - Method in class org.robolectric.shadows.ShadowBluetoothAdapter
- getAdnUriForPhoneAccount(PhoneAccountHandle) - Method in class org.robolectric.shadows.ShadowTelecomManager
- getAffiliationIds(ComponentName) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- getAffineTransform() - Method in class org.robolectric.shadows.ShadowMatrix
- getAlarmClockInfo() - Method in class org.robolectric.shadows.ShadowAlarmManager.ScheduledAlarm
- getAlias() - Method in class org.robolectric.shadows.ShadowBluetoothDevice
- getAliasName() - Method in class org.robolectric.shadows.ShadowBluetoothDevice
- getAllAttributes() - Method in class org.robolectric.manifest.ActivityData
-
Get the map for all attributes defined for the activity XML.
- getAllAttributes() - Method in class org.robolectric.manifest.BroadcastReceiverData
-
Get the map for all attributes defined for the broadcast receiver.
- getAllAttributes() - Method in class org.robolectric.manifest.ServiceData
-
Get the map for all attributes defined for the service.
- getAllCellInfo() - Method in class org.robolectric.shadows.ShadowTelephonyManager
- getAllHeaders() - Method in class org.robolectric.shadows.httpclient.HttpResponseStub
- getAllHeaders() - Method in class org.robolectric.shadows.httpclient.TestHttpResponse
- getAllIncomingCalls() - Method in class org.robolectric.shadows.ShadowTelecomManager
- getAllIntentFilters(String) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- getAllLoopers() - Static method in class org.robolectric.shadows.ShadowLooper
-
Return all created loopers.
- getAllManifests() - Method in class org.robolectric.manifest.AndroidManifest
-
Returns all transitively reachable manifests, including this one, in order and without duplicates.
- getAllMethodRefs() - Method in class org.robolectric.internal.bytecode.Interceptors
- getAllNetworkInfo() - Method in class org.robolectric.shadows.ShadowConnectivityManager
- getAllNetworks() - Method in class org.robolectric.shadows.ShadowConnectivityManager
- getAllNotifications() - Method in class org.robolectric.shadows.ShadowNotificationManager
- getAllocationByteCount() - Method in class org.robolectric.shadows.ShadowBitmap
- getAllOutgoingCalls() - Method in class org.robolectric.shadows.ShadowTelecomManager
- getAllowContentAccess() - Method in class org.robolectric.fakes.RoboWebSettings
- getAllowedNetworkTypes() - Method in class org.robolectric.shadows.ShadowDownloadManager.ShadowRequest
- getAllowedOverMetered() - Method in class org.robolectric.shadows.ShadowDownloadManager.ShadowRequest
- getAllowedOverRoaming() - Method in class org.robolectric.shadows.ShadowDownloadManager.ShadowRequest
- getAllowFileAccess() - Method in class org.robolectric.fakes.RoboWebSettings
- getAllowFileAccessFromFileURLs() - Method in class org.robolectric.fakes.RoboWebSettings
- getAllowUniversalAccessFromFileURLs() - Method in class org.robolectric.fakes.RoboWebSettings
- getAllPackageInstallerSessions() - Method in class org.robolectric.shadows.ShadowLauncherApps
- getAllPendingJobs() - Method in class org.robolectric.shadows.ShadowJobScheduler
- getAllPendingJobs() - Method in class org.robolectric.shadows.ShadowJobScheduler.ShadowJobSchedulerImpl
- getAllPermissionGroups(int) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- getAllPhoneAccountHandles() - Method in class org.robolectric.shadows.ShadowTelecomManager
- getAllPhoneAccounts() - Method in class org.robolectric.shadows.ShadowTelecomManager
- getAllPhoneAccountsCount() - Method in class org.robolectric.shadows.ShadowTelecomManager
- getAllProfiles() - Method in class org.robolectric.shadows.ShadowUserManager
- getAllProviders() - Method in class org.robolectric.shadows.ShadowLocationManager
- getAllSessions() - Method in class org.robolectric.shadows.ShadowPackageInstaller
- getAllShadowTypes() - Method in class org.robolectric.annotation.processing.RobolectricModel
- getAllStartedServices() - Method in class org.robolectric.shadows.ShadowContextWrapper
-
Returns all
Intent
started by#startService(android.content.Intent)
without consuming them. - getAllUnknownCalls() - Method in class org.robolectric.shadows.ShadowTelecomManager
- getAlpha() - Method in class org.robolectric.shadows.ShadowDrawable
- getAlpha() - Method in class org.robolectric.shadows.ShadowPaint
- getAlpha() - Method in class org.robolectric.shadows.ShadowRenderNode
- getAlpha() - Method in class org.robolectric.shadows.ShadowRenderNodeQ
- getAlphabeticShortcut() - Method in class org.robolectric.fakes.RoboMenuItem
- getAlwaysRecreateViewsDuringUpdate() - Method in class org.robolectric.shadows.ShadowAppWidgetManager
- getAnchor() - Method in class org.robolectric.shadows.ShadowAccessibilityWindowInfo
- getAndroidCodeName() - Method in class org.robolectric.pluginapi.Sdk
-
Returns the Android codename for this SDK.
- getAndroidCodeName() - Method in class org.robolectric.plugins.DefaultSdkProvider.DefaultSdk
- getAndroidFrameworkJarPath() - Static method in class org.robolectric.RuntimeEnvironment
- getAndroidManifestFile() - Method in class org.robolectric.manifest.AndroidManifest
- getAndroidSandbox(InstrumentationConfiguration, Sdk, ResourcesMode, LooperMode.Mode) - Method in class org.robolectric.internal.SandboxManager
- getAndroidVersion() - Method in class org.robolectric.pluginapi.Sdk
-
Returns the Android Version for this SDK.
- getAndroidVersion() - Method in class org.robolectric.plugins.DefaultSdkProvider.DefaultSdk
- getAnnotationIntValue(AnnotationValue) - Static method in class org.robolectric.annotation.processing.Helpers
- getAnnotationMirror(Types, Element, TypeElement) - Static method in class org.robolectric.annotation.processing.Helpers
- getAnnotationStringValue(AnnotationValue) - Static method in class org.robolectric.annotation.processing.Helpers
- getAnnotationType() - Method in class org.robolectric.annotation.processing.validator.Validator
- getAnnotationTypeMirrorValue(AnnotationMirror, String) - Static method in class org.robolectric.annotation.processing.Helpers
- getAnnotationTypeMirrorValue(AnnotationValue) - Static method in class org.robolectric.annotation.processing.Helpers
- getAnnotationTypeMirrorValue(Element) - Static method in class org.robolectric.annotation.processing.Helpers
- getApiLevel() - Method in class org.robolectric.pluginapi.Sdk
-
Returns the Android API level for this SDK.
- getApiLevel() - Static method in class org.robolectric.RuntimeEnvironment
- GetApkAssets() - Method in class org.robolectric.res.android.CppAssetManager2
- getApkContentsSigners() - Method in class org.robolectric.shadows.ShadowSigningInfo
- getApkFile() - Method in class org.robolectric.internal.ManifestIdentifier
- getApkFile() - Method in class org.robolectric.manifest.AndroidManifest
- getAppCacheEnabled() - Method in class org.robolectric.fakes.RoboWebSettings
- getAppCacheMaxSize() - Method in class org.robolectric.fakes.RoboWebSettings
- getAppCachePath() - Method in class org.robolectric.fakes.RoboWebSettings
- getApplication() - Static method in class org.robolectric.RuntimeEnvironment
-
Get a reference to the
Application
under test. - getApplication() - Method in class org.robolectric.shadows.ShadowActivityThread
- getApplicationAttributes() - Method in class org.robolectric.manifest.AndroidManifest
- getApplicationEnabledSetting(String) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- getApplicationHiddenSettingAsUser(String, UserHandle) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- getApplicationIcon(ApplicationInfo) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- getApplicationIcon(String) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- getApplicationInfo(String, int) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- getApplicationMetaData() - Method in class org.robolectric.manifest.AndroidManifest
- getApplicationName() - Method in class org.robolectric.manifest.AndroidManifest
- getApplicationNightMode() - Method in class org.robolectric.shadows.ShadowUIModeManager
- getApplicationRestrictions() - Method in class org.robolectric.shadows.ShadowRestrictionsManager
- getApplicationRestrictions(ComponentName, String) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- getApplicationRestrictions(String) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
-
Returns all application restrictions of the
packageName
in aBundle
. - getApplicationRestrictions(String) - Method in class org.robolectric.shadows.ShadowUserManager
-
Compared to real Android, there is no check that the package name matches the application package name and the method returns instantly.
- getAppResourceTable() - Static method in class org.robolectric.RuntimeEnvironment
- getAppResourceTable(AndroidManifest) - Method in class org.robolectric.ApkLoader
- getAppSaturationLevel(String) - Method in class org.robolectric.shadows.ShadowColorDisplayManager
-
Returns the current display saturation level for the
packageName
. - getAppStandbyBucket() - Method in class org.robolectric.shadows.ShadowUsageStatsManager
-
Returns the current app's standby bucket that is set by
setCurrentAppStandbyBucket
. - getAppStandbyBucket(String) - Method in class org.robolectric.shadows.ShadowUsageStatsManager
-
Returns the current standby bucket of the specified app that is set by
setAppStandbyBucket
. - getAppStandbyBuckets() - Method in class org.robolectric.shadows.ShadowUsageStatsManager
- getAppTasks() - Method in class org.robolectric.shadows.ShadowActivityManager
-
For tests, returns the list of
ActivityManager.AppTask
set usingShadowActivityManager.setAppTasks(List)
. - getAppWidgetId() - Method in class org.robolectric.shadows.ShadowAppWidgetHostView
- getAppWidgetIds(ComponentName) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
- getAppWidgetInfo() - Method in class org.robolectric.shadows.ShadowAppWidgetHostView
- getAppWidgetInfo(int) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
- getAppWidgetManager() - Method in class org.robolectric.shadows.ShadowApplication
-
Deprecated.Please use
Context#getSystemService(Context.APPWIDGET_SERVICE)
intstead. - getAppWidgetOptions(int) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
-
Gets the appWidgetOptions Bundle stored in a local cache.
- getAppWidgetProviderFor(int) - Method in class org.robolectric.shadows.ShadowAppWidgetManager
- getArcPaintHistoryCount() - Method in class org.robolectric.shadows.ShadowCanvas
- getArrayIntResource(int) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- getArrayIntResource(int) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- getArraySize(int) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- getArraySize(int) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- getArrayStringInfo(int) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- getArrayStringInfo(int) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- getArrayStringResource(int) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- getArrayStringResource(int) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- getArtifactId() - Method in class org.robolectric.internal.dependency.DependencyJar
- getAssetAllocations() - Static method in class org.robolectric.res.android.Asset
- getAssetAllocations() - Static method in class org.robolectric.shadows.ShadowArscAssetManager10
- getAssetAllocations() - Static method in class org.robolectric.shadows.ShadowArscAssetManager9
- getAssetDir() - Method in class org.robolectric.internal.ManifestIdentifier
- getAssetLength(int) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- getAssetLength(int) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- getAssetLength(long) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- getAssetLength(long) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- GetAssetManager() - Method in class org.robolectric.res.android.CppAssetManager2.Theme
- getAssetPath() - Method in class org.robolectric.shadows.ShadowLegacyApkAssets
- getAssetPaths() - Method in class org.robolectric.res.android.CppAssetManager
- getAssetPaths() - Method in class org.robolectric.res.android.CppAssetManager2
- getAssetRemainingLength(int) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- getAssetRemainingLength(int) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- getAssetRemainingLength(long) - Method in class org.robolectric.shadows.ShadowArscAssetManager
- getAssetRemainingLength(long) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- getAssetsDir() - Method in class org.robolectric.res.ResourcePath
- getAssetsDirectory() - Method in class org.robolectric.manifest.AndroidManifest
- getAssignedPackageIdentifiers() - Method in class org.robolectric.shadows.ShadowArscAssetManager
- getAssignedPackageIdentifiers() - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- getAssistantActivityIntents() - Method in class org.robolectric.shadows.ShadowVoiceInteractionSession
-
Returns the list of
Intent
instances passed intoVoiceInteractionSession.startAssistantActivity(Intent)
in invocation order. - getAssociations() - Method in class org.robolectric.shadows.ShadowCompanionDeviceManager
- getAttribute(String, String) - Method in class org.robolectric.android.XmlResourceParserImpl
- GetAttribute(int, Ref<ResourceTypes.Res_value>, Ref<Integer>) - Method in class org.robolectric.res.android.CppAssetManager2.Theme
- GetAttribute(int, Ref<ResourceTypes.Res_value>, Ref<Integer>) - Method in class org.robolectric.res.android.ResTableTheme
- getAttributeBooleanValue(int, boolean) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeBooleanValue(String, String, boolean) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeCount() - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeCount() - Method in class org.robolectric.res.android.ResXMLParser
- getAttributeData(int) - Method in class org.robolectric.res.android.ResXMLParser
- getAttributeDataType(int) - Method in class org.robolectric.res.android.ResXMLParser
- getAttributeFloatValue(int, float) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeFloatValue(String, String, float) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeIntValue(int, int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeIntValue(String, String, int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeListValue(int, String[], int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeListValue(String, String, String[], int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeName(int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeNameID(int) - Method in class org.robolectric.res.android.ResXMLParser
- getAttributeNameResID(int) - Method in class org.robolectric.res.android.ResXMLParser
- getAttributeNameResource(int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeNamespace(int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeNamespaceID(int) - Method in class org.robolectric.res.android.ResXMLParser
- getAttributePrefix(int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeResourceValue(int, int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeResourceValue(String, String, int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeSetSourceResId(AttributeSet) - Static method in class org.robolectric.shadows.ShadowResources
-
Returns the layout resource id the attribute set was inflated from.
- getAttributeType(int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeUnsignedIntValue(int, int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeUnsignedIntValue(String, String, int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeValue(int) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeValue(int, Ref<ResourceTypes.Res_value>) - Method in class org.robolectric.res.android.ResXMLParser
- getAttributeValue(String, String) - Method in class org.robolectric.android.XmlResourceParserImpl
- getAttributeValueStringID(int) - Method in class org.robolectric.res.android.ResXMLParser
- getAttrTypeData(ResName) - Method in class org.robolectric.shadows.ShadowLegacyAssetManager
- getAttrValue(ResName) - Method in class org.robolectric.res.EmptyStyle
- getAttrValue(ResName) - Method in interface org.robolectric.res.Style
- getAttrValue(ResName) - Method in class org.robolectric.res.StyleData
- getAttrValue(ResName) - Method in class org.robolectric.res.StyleResolver
- getAttrValue(ResName) - Method in class org.robolectric.res.ThemeStyleSet
- getAudioChannels() - Method in class org.robolectric.shadows.ShadowMediaRecorder
- getAudioEffects() - Static method in class org.robolectric.shadows.ShadowAudioEffect
-
Returns all effects created with an
AudioEffect
constructor. - getAudioEncoder() - Method in class org.robolectric.shadows.ShadowMediaRecorder
- getAudioEncodingBitRate() - Method in class org.robolectric.shadows.ShadowMediaRecorder
- getAudioRoute() - Method in class org.robolectric.shadows.ShadowInCallAdapter
-
Returns audioRoute set by setAudioRoute.
- getAudioSamplingRate() - Method in class org.robolectric.shadows.ShadowMediaRecorder
- getAudioSession() - Method in class org.robolectric.shadows.ShadowAudioEffect
-
Returns the audio session set in the
AudioEffect
ctor. - getAudioSessionId() - Method in class org.robolectric.shadows.ShadowMediaPlayer
- getAudioSource() - Method in class org.robolectric.shadows.ShadowMediaRecorder
- getAuthenticatorTypes() - Method in class org.robolectric.shadows.ShadowAccountManager
- getAuthorities() - Method in class org.robolectric.manifest.ContentProviderData
- getAuthorities() - Method in class org.robolectric.manifest.IntentFilterData
- getAuthToken(Account, String, Bundle, boolean, AccountManagerCallback<Bundle>, Handler) - Method in class org.robolectric.shadows.ShadowAccountManager
- getAuthToken(Account, String, Bundle, Activity, AccountManagerCallback<Bundle>, Handler) - Method in class org.robolectric.shadows.ShadowAccountManager
- getAutofillServiceComponentName() - Method in class org.robolectric.shadows.ShadowAutofillManager
-
Returns the overridden value set by
ShadowAutofillManager.setAutofillServiceComponentName(ComponentName)
. - getAutomaticZenRule(String) - Method in class org.robolectric.shadows.ShadowNotificationManager
- getAutomaticZenRules() - Method in class org.robolectric.shadows.ShadowNotificationManager
- getAutoTimeRequired() - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- getAuxEffect() - Method in class org.robolectric.shadows.ShadowMediaPlayer
-
Useful for assertions.
- getAvailableBlocks() - Method in class org.robolectric.shadows.ShadowStatFs
- getAvailableBlocksLong() - Method in class org.robolectric.shadows.ShadowStatFs
- getAvailableBytes() - Method in class org.robolectric.shadows.ShadowStatFs
- getAvailableRestoreToken(String) - Method in class org.robolectric.shadows.ShadowBackupManager
- getAvailableRollbacks() - Method in class org.robolectric.shadows.ShadowRollbackManager
- getAvailableSubscriptionInfoList() - Method in class org.robolectric.shadows.ShadowSubscriptionManager
-
Returns the available list of
SubscriptionInfo
that were set viaShadowSubscriptionManager.setAvailableSubscriptionInfoList(java.util.List<android.telephony.SubscriptionInfo>)
. - getAzimuth() - Method in class org.robolectric.shadows.GnssStatusBuilder.GnssSatelliteInfo
-
Deprecated.Gets the
azimuth
of the satellite, in degrees. - getBackgroundColor() - Method in class org.robolectric.shadows.ShadowWebView
-
Returns the
Color
int that has been set byShadowWebView.setBackgroundColor(int)
. - getBackgroundDataSetting() - Method in class org.robolectric.shadows.ShadowConnectivityManager
- getBackgroundDrawable() - Method in class org.robolectric.shadows.ShadowWindow
- getBackgroundPackage() - Method in class org.robolectric.shadows.ShadowActivityManager
- getBackgroundThreadScheduler() - Static method in class org.robolectric.Robolectric
-
Return the background scheduler.
- getBackgroundThreadScheduler() - Method in class org.robolectric.shadows.ShadowApplication
-
Deprecated.
- GetBag(int) - Method in class org.robolectric.res.android.CppAssetManager2
- getBagLocked(int, Ref<ResTable.bag_entry[]>, Ref<Integer>) - Method in class org.robolectric.res.android.ResTable
- getBasePackageCount() - Method in class org.robolectric.res.android.ResTable
- getBasePackageId(int) - Method in class org.robolectric.res.android.ResTable
- getBasePackageName(int) - Method in class org.robolectric.res.android.ResTable
- getBaseShadowMap() - Method in class org.robolectric.internal.bytecode.ShadowProviders
- getBatteryDischargePrediction() - Method in class org.robolectric.shadows.ShadowPowerManager
-
Returns the current battery life remaining estimate.
- getBestDateTimePattern(String, String) - Static method in class org.robolectric.shadows.ShadowICU
- getBestDateTimePattern(String, Locale) - Static method in class org.robolectric.shadows.ShadowICU
- getBestProvider(Criteria, boolean) - Method in class org.robolectric.shadows.ShadowLocationManager
- getBigContentText() - Method in class org.robolectric.shadows.ShadowNotification
- getBigContentTitle() - Method in class org.robolectric.shadows.ShadowNotification
- getBigPicture() - Method in class org.robolectric.shadows.ShadowNotification
- getBigText() - Method in class org.robolectric.shadows.ShadowNotification
- getBindDeviceAdminTargetUsers(ComponentName) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
-
Returns the list of target users that the calling device or profile owner can use when calling
ShadowDevicePolicyManager.bindDeviceAdminServiceAsUser(android.content.ComponentName, android.content.Intent, android.content.ServiceConnection, int, android.os.UserHandle)
. - getBitmap() - Method in class org.robolectric.shadows.ShadowIcon
- getBitmap(int) - Method in class org.robolectric.shadows.ShadowWallpaperManager
-
Returns the memory cached
Bitmap
associated withwhich
. - getBitmap(ContentResolver, Uri) - Static method in class org.robolectric.shadows.ShadowMediaStore.ShadowImages.ShadowMedia
- getBlob(int) - Method in class org.robolectric.fakes.BaseCursor
-
Deprecated.
- getBlob(int) - Method in class org.robolectric.fakes.RoboCursor
-
Deprecated.
- getBlob(int) - Method in class org.robolectric.shadows.ShadowCursorWrapper
- getBlockCount() - Method in class org.robolectric.shadows.ShadowStatFs
- getBlockCountLong() - Method in class org.robolectric.shadows.ShadowStatFs
- getBlockNetworkImage() - Method in class org.robolectric.fakes.RoboWebSettings
- getBlockNetworkLoads() - Method in class org.robolectric.fakes.RoboWebSettings
- getBlockSize() - Method in class org.robolectric.shadows.ShadowStatFs
- getBlockSizeLong() - Method in class org.robolectric.shadows.ShadowStatFs
-
Robolectric always uses a block size of 4096.
- getBluetoothAdapter() - Method in class org.robolectric.shadows.ShadowApplication
-
Deprecated.Use
BluetoothAdapter.getDefaultAdapter()
()} instead. - getBluetoothAudio() - Method in class org.robolectric.shadows.ShadowInCallService
- getBluetoothClass() - Method in class org.robolectric.shadows.ShadowBluetoothDevice
-
Overrides behavior of
BluetoothDevice.getBluetoothClass()
to return pre-set result. - getBluetoothGatts() - Method in class org.robolectric.shadows.ShadowBluetoothDevice
-
Returns all
BluetoothGatt
objects created by callingShadowBluetoothDevice.connectGatt(android.content.Context, boolean, android.bluetooth.BluetoothGattCallback)
. - getBondedDevices() - Method in class org.robolectric.shadows.ShadowBluetoothAdapter
- getBondState() - Method in class org.robolectric.shadows.ShadowBluetoothDevice
-
Overrides behavior of
BluetoothDevice.getBondState()
to return pre-set result. - getBootstrapAuthenticationCallback() - Method in class org.robolectric.shadows.ShadowTelephonyManager
- getBottom() - Method in class org.robolectric.shadows.ShadowRenderNode
- getBottom() - Method in class org.robolectric.shadows.ShadowRenderNodeQ
- getBoundApplication() - Method in interface org.robolectric.shadows.ShadowActivityThread._ActivityThread_
- getBoundNetworkForProcess() - Method in class org.robolectric.shadows.ShadowConnectivityManager
- getBounds() - Method in class org.robolectric.shadows.ShadowTouchDelegate
- getBounds2D() - Method in class org.robolectric.shadows.RoundRectangle
- getBoundServiceConnections() - Method in class org.robolectric.shadows.ShadowApplication
- getBoundServiceConnections() - Method in class org.robolectric.shadows.ShadowInstrumentation
- getBoundsInParent(Rect) - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- getBoundsInScreen(Rect) - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- getBoundsInScreen(Rect) - Method in class org.robolectric.shadows.ShadowAccessibilityWindowInfo
- getBrightnessConfigurationForUser(int) - Method in class org.robolectric.shadows.ShadowDisplayManagerGlobal
- getBrightnessEvents(String) - Method in class org.robolectric.shadows.ShadowDisplayManagerGlobal
- getBroadcast(Context, int, Intent, int) - Static method in class org.robolectric.shadows.ShadowPendingIntent
- getBroadcastCookie(int) - Method in class org.robolectric.shadows.ShadowRemoteCallbackList
- getBroadcastIntents() - Method in class org.robolectric.shadows.ShadowContextWrapper
-
Returns the broadcast intents sent during the tests (for all users).
- getBroadcastIntentsForUser(UserHandle) - Method in class org.robolectric.shadows.ShadowContextWrapper
-
Returns the broadcast intents sent to the given user.
- getBroadcastItem(int) - Method in class org.robolectric.shadows.ShadowRemoteCallbackList
- getBroadcastOptions(Intent) - Method in class org.robolectric.shadows.ShadowContextWrapper
-
Returns the broadcast options when the intent was last sent.
- getBroadcastReceiver() - Method in class org.robolectric.shadows.ShadowApplication.Wrapper
- getBroadcastReceiver(String) - Method in class org.robolectric.manifest.AndroidManifest
-
Returns data for the broadcast receiver with the provided name from this manifest.
- getBroadcastReceivers() - Method in class org.robolectric.manifest.AndroidManifest
- getBuffer(boolean) - Method in class org.robolectric.res.android.Asset
- getBuffer(boolean, int) - Method in class org.robolectric.shadows.ShadowMediaCodec
-
Returns the input or output buffer corresponding to the given index, or null if invalid.
- getBufferLengthMillis(int) - Method in class org.robolectric.shadows.ShadowBluetoothA2dp
- getBuffers(boolean) - Method in class org.robolectric.shadows.ShadowMediaCodec
-
Returns the shadow buffers used for input or output.
- getBuildSystemApiProperties() - Method in class org.robolectric.RobolectricTestRunner
- getBuiltInZoomControls() - Method in class org.robolectric.fakes.RoboWebSettings
- getBulkContentValues() - Method in class org.robolectric.shadows.ShadowContentResolver.InsertStatement
- getButtonDrawable() - Method in class org.robolectric.shadows.ShadowCompoundButton
- getButtonDrawableId() - Method in class org.robolectric.shadows.ShadowCompoundButton
- getByte(int) - Method in class org.robolectric.res.android.ResourceTypes.ResStringPool_header
- getByteCode(String) - Method in class org.robolectric.internal.bytecode.SandboxClassLoader
- getByteCount() - Method in class org.robolectric.shadows.ShadowBitmap
- getBytes(Path) - Static method in class org.robolectric.res.Fs
- getBytesPerPixel(Bitmap.Config) - Static method in class org.robolectric.shadows.ShadowBitmap
- getBytesSoFar() - Method in class org.robolectric.shadows.ShadowDownloadManager.ShadowRequest
- getCacheMode() - Method in class org.robolectric.fakes.RoboWebSettings
- getCalendar() - Method in class org.robolectric.shadows.ShadowDatePickerDialog
- getCallAudioState() - Method in class org.robolectric.shadows.ShadowInCallService
- getCallAudioState() - Method in class org.robolectric.shadows.ShadowPhone
- getCallbackForListener(Class<T>) - Method in class org.robolectric.shadows.ShadowTelephonyManager
-
Returns a view of
telephonyCallbackRegistrations
containing all elements that are of the typeclazz
. - getCallbackIntent() - Method in class org.robolectric.shadows.ShadowUsageStatsManager.AppUsageLimitObserver
- getCallbackIntent() - Method in class org.robolectric.shadows.ShadowUsageStatsManager.AppUsageObserver
- getCallbacks() - Method in class org.robolectric.shadows.ShadowMediaController
-
Gets the callbacks registered to MediaController.
- getCallbacks() - Method in class org.robolectric.shadows.ShadowSurfaceView.FakeSurfaceHolder
- getCallCapablePhoneAccounts() - Method in class org.robolectric.shadows.ShadowTelecomManager
- getCallCapablePhoneAccounts(boolean) - Method in class org.robolectric.shadows.ShadowTelecomManager
- getCallComposerStatus() - Method in class org.robolectric.shadows.ShadowTelephonyManager
- getCallDetails() - Method in class org.robolectric.shadows.ShadowCallScreeningService.RespondToCallInput
- getCallingActivity() - Method in class org.robolectric.shadows.ShadowActivity
- getCallingPackage() - Method in class org.robolectric.shadows.ShadowActivity
- getCallingPackage() - Method in class org.robolectric.shadows.ShadowContentProvider
- getCallingPid() - Static method in class org.robolectric.shadows.ShadowBinder
- getCallingUid() - Static method in class org.robolectric.shadows.ShadowBinder
- getCallingUserHandle() - Static method in class org.robolectric.shadows.ShadowBinder
- getCallRequestMode() - Method in class org.robolectric.shadows.ShadowTelecomManager
- getCallResponse() - Method in class org.robolectric.shadows.ShadowCallScreeningService.RespondToCallInput
- getCalls() - Method in class org.robolectric.shadows.ShadowPhone
- getCallState() - Method in class org.robolectric.shadows.ShadowTelecomManager
- getCallState() - Method in class org.robolectric.shadows.ShadowTelephonyManager
-
Call state may be specified via
ShadowTelephonyManager.setCallState(int)
. - getCamera() - Method in class org.robolectric.shadows.ShadowMediaRecorder
- getCameraCharacteristics(String) - Method in class org.robolectric.shadows.ShadowCameraManager
- getCameraDisabled(ComponentName) - Method in class org.robolectric.shadows.ShadowDevicePolicyManager
- getCameraDistance() - Method in class org.robolectric.shadows.ShadowRenderNode
- getCameraDistance() - Method in class org.robolectric.shadows.ShadowRenderNodeQ
- getCameraIdList() - Method in class org.robolectric.shadows.ShadowCameraManager
- getCameraInfo(int, Camera.CameraInfo) - Static method in class org.robolectric.shadows.ShadowCamera
- getCap() - Method in class org.robolectric.shadows.ShadowPaint
- getCaptivePortalServerUrl() - Method in class org.robolectric.shadows.ShadowConnectivityManager
-
Returns the captive portal URL previously set with
ShadowConnectivityManager.setCaptivePortalServerUrl(java.lang.String)
. - getCarrierConfig() - Method in class org.robolectric.shadows.ShadowTelephonyManager
-
Returns a new empty
PersistableBundle
by default, or the value specified viaShadowTelephonyManager.setCarrierConfig(PersistableBundle)
. - getCarrierFrequencyHz() - Method in class org.robolectric.shadows.GnssStatusBuilder.GnssSatelliteInfo
-
Deprecated.Gets the
carrier frequency
of the satellite, in Hz, if present; ifnull
, indicates that the carrier frequencyis not available
. - getCarrierIdFromSimMccMnc() - Method in class org.robolectric.shadows.ShadowTelephonyManager
- getCarrierPackageNamesForIntent(Intent) - Method in class org.robolectric.shadows.ShadowTelephonyManager
- getCarrierPackageNamesForIntentAndPhone(Intent, int) - Method in class org.robolectric.shadows.ShadowTelephonyManager
- getCategories() - Method in class org.robolectric.manifest.IntentFilterData
- getCellLocation() - Method in class org.robolectric.shadows.ShadowTelephonyManager
- getCenterX() - Method in class org.robolectric.shadows.ShadowMagnificationController
- getCenterY() - Method in class org.robolectric.shadows.ShadowMagnificationController
- getChangedPackages(int) - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
- GetChangingConfigurations() - Method in class org.robolectric.res.android.CppAssetManager2.Theme
- getChar(String, int, int) - Static method in class org.robolectric.shadows.ShadowTime
- getChild(int) - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- getChild(int) - Method in class org.robolectric.shadows.ShadowAccessibilityWindowInfo
- getChildCount() - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- getChildCount() - Method in class org.robolectric.shadows.ShadowAccessibilityWindowInfo
- getChildren() - Method in class org.robolectric.ParameterizedRobolectricTestRunner
- getChildren() - Method in class org.robolectric.RobolectricTestRunner
- getCirclePaintHistoryCount() - Method in class org.robolectric.shadows.ShadowCanvas
- getClassAttribute() - Method in class org.robolectric.android.XmlResourceParserImpl
- getClassBytes() - Method in class org.robolectric.internal.bytecode.ClassDetails
- getClassBytes(String) - Method in class org.robolectric.internal.bytecode.ClassNodeProvider
- getClasses(ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers.ClassParameter
- getClassifier() - Method in class org.robolectric.internal.dependency.DependencyJar
- getClassLoader() - Static method in class org.robolectric.internal.bytecode.RobolectricInternals
- getClassLoader() - Method in class org.robolectric.shadows.ShadowContextImpl
- getClassLoader() - Method in class org.robolectric.shadows.ShadowLoadedApk
- getClassName() - Method in class org.robolectric.manifest.PackageItemData
-
Deprecated.- Use
PackageItemData.getName()
instead. - getClassName() - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- getClazz() - Method in class org.robolectric.internal.AndroidSandbox.TestEnvironmentSpec
- getClearedApplicationUserDataPackages() - Method in class org.robolectric.shadows.ShadowApplicationPackageManager
-
Returns the list of package names that were requested to be cleared.
- getClientsWithAttributionTag(String) - Method in class org.robolectric.shadows.ShadowContextHubManager
- getClipToOutline() - Method in class org.robolectric.shadows.ShadowRenderNode
- getClipToOutline() - Method in class org.robolectric.shadows.ShadowRenderNodeQ
- getCloseGuard() - Method in interface org.robolectric.shadows.ShadowDisplayEventReceiver.DisplayEventReceiverReflector
- getCloseWasCalled() - Method in class org.robolectric.fakes.RoboCursor
-
Deprecated.
- getCn0DbHz() - Method in class org.robolectric.shadows.GnssStatusBuilder.GnssSatelliteInfo
-
Deprecated.Gets the
carrier-to-noise density
of the satellite. - getCollectionInfo() - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- getCollectionItemInfo() - Method in class org.robolectric.shadows.ShadowAccessibilityNodeInfo
- getColor() - Method in class org.robolectric.shadows.ShadowPaint
- getColor() - Method in class org.robolectric.shadows.ShadowPorterDuffColorFilter
- getColor(String) - Static method in class org.robolectric.manifest.MetaData
-
Returns the color value represented by the given string value
- getColor(String) - Static method in class org.robolectric.shadows.ResourceHelper
-
Returns the color value represented by the given string value
- getColor0() - Method in class org.robolectric.shadows.ShadowLinearGradient
- getColor1() - Method in class org.robolectric.shadows.ShadowLinearGradient
- getColorFilter() - Method in class org.robolectric.shadows.ShadowPaint
- getColorSpace() - Method in class org.robolectric.shadows.ShadowBitmap
- getColorType(String) - Static method in