Package org.robolectric.shadows
package org.robolectric.shadows
Package containing shadow classes for the Android SDK.
-
ClassDescriptionAccessor interface for
Activity
's internals.Class to buildAppWidgetProviderInfo
Builder forAssociationInfo
.Factory to create AttestedKeyPair.Builder forAudioDeviceInfo
.Builder forAudioProfile
.Represents a key value pair inShadowBackupDataInput
andShadowBackupDataOutput
.Builder for aBackupDataInput
object.Factory for instances ofBackupDataOutput
.Builder forBarringInfo
.Builder forBarringInfo.BarringServiceInfo
.Builder forBrightnessChangeEvent
.Class that returns iterators for a given path.Builder forCellIdentityLte
.Builder forCellIdentityNr
.Builder forCellInfoLte
.Builder forCellInfoNr
.Builder forCellSignalStrengthLte
Builder forCellSignalStrengthNr
Converter<T>Converter2<T>Factory forDevicePolicyState
Builder forDeviceStateSensorOrientationMap
which was introduced in Android T.Builder forDragEvent
.Builder forEmergencyNumber
.Factory forEnforcingAdmin
Class to buildEpsBearerQosSessionAttributes
.Class to buildFrameMetrics
Deprecated.UseGnssStatus.Builder
instead where possible.Information about a single satellite in aGnssStatus
.Builder forGnssStatusBuilder.GnssSatelliteInfo
.AShadowPicker
that selects between shadows given the Graphics mode.Helper class to provide hardware rendering-based screenshot toShadowPixelCopy
andShadowUiAutomation
.Image information descriptor.Builder forScanResult.InformationElement
.Builder forInputDevice
.Builder forMediaCodecInfo
.Builder forMediaCodecInfo.CodecCapabilities
.Builder forModuleInfo
as ModuleInfo has hidden constructors, this builder class has been added as a way to make custom ModuleInfo objects when needed.Java representation of framework native system headers Transliterated from oreo-mr1 (SDK 27) frameworks/native/include/android/Input.hTransliteration of native BitSet64.Java representation of framework native input Transliterated from oreo-mr1 (SDK 27) frameworks/native/include/input/Input.h and libs/input/Input.cppBuilder class to create instance ofNetworkRegistrationInfo
.Factory to createNetworkSpecifier
types that are hidden on certain SDK levels.Class to buildNrQosSessionAttributes
.Builder forPackageRollbackInfo
as PackageRollbackInfo has hidden constructors, this builder class has been added as a way to make custom PackageRollbackInfo objects when needed.A more advanced builder forPhoneAccount
that gives access to some hidden methods onPhoneAccount.Builder
.Factory to create PhoneCapability.Builder forMediaController.PlaybackInfo
Factory forPolicyKey
Builder forPolicyState
A Factory class representingStringPolicyValue
Builder forPreciseDataConnectionState
Provider<T>A builder for creating ShadowRangingResults.Class to buildRangingSession
Helper class to provide various conversion method used in handling android resources.Helper class to provide various conversion method used in handling android resources.Builder forResponderLocation
Builder forRollbackInfo
as RollbackInfo has hidden constructors, this builder class has been added as a way to make custom RollbackInfo objects when needed.Defines a rectangle with rounded corners, where the sizes of the corners are potentially different.Builder forActivityManager.RunningTaskInfo
.Builder forSensorEvent
.Builder class to create instance ofServiceState
.Shadow forAccessibilityButtonController
.Properties ofAccessibilityNodeInfo
that are normally locked may be changed using test APIs.Shadow ofAccessibilityRecord
.Shadow of AccessibilityService that tracks global actions and provides a mechanism to simulate the window list.Represents a gesture that has been dispatched through the accessibility service.Shadow ofAccessibilityWindowInfo
that allows a test to set properties that are locked in the original class.Container object to hold an Intent, together with the requestCode used in a call toActivity.startActivityForResult(Intent, int)
Class to holds details of a startIntentSenderForResult request.Class to hold overridden activity transition details after callingActivity.overrideActivityTransition(int, int, int, int)
Class to hold a permissions request, including its request code.Shadow forActivityManager
Builder class forApplicationExitInfo
Shadow forActivityThread
.Accessor interface forActivityThread
's internals.Accessor interface forActivityThread.AppBindData
's internals.ShadowAdapterView<T extends Adapter>Shadow forAlarmManager
.Represents a set alarm.Shadow implementation ofAlwaysOnHotwordDetector
.ShadowAlwaysOnHotwordDetector.ShadowRefreshAvailabilityTask<Params,Progress, Result> Shadow for AsyncTask kicked off in the constructor of AlwaysOnHotwordDetector.Shadow ofAmbientContextManager
Shadow forAmbientDisplayConfiguration
class.Bridge between shadows andAnimation
.Shadow ofAppIntegrityManager
Shadow forApplicationExitInfo
Shadow forApplicationPackageManager
.Shadow forAppOpsManager
.Class holding usage mode and exception packages.Shadow forApkAssets
for Android P+Shadow ofAsyncQueryHandler
, which calls methods synchronously.ShadowAsyncTask<Params,Progress, Result> The shadow API forAsyncTask
.The shadow API forAsyncTaskLoader
.ImplementsAudioEffect
by shadowing its native methods.ShadowAudioRecord
which by default will fulfil any requests for audio data by completely filling any requested buffers.Provides underlying data for theShadowAudioRecord
.ProvidesShadowAudioRecord.AudioRecordSource
for the givenAudioRecord
.Shadow forAudioSystem
.Implementation of a couple methods inAudioTrack
.Listeners to be notified when data is written to anAudioTrack
viaAudioTrack.write(ByteBuffer, int, int)
Robolectric implementation ofandroid.os.AutofillManager
.Shadow forBackdropFrameRenderer
Shadow for BackupDataInput.Shadow for BackupDataOutput.A stub implementation ofBackupManager
that instead of connecting to a real backup transport and performing restores, stores which packages are restored from which backup set, what the final result should be and can be verified using methods on the shadow likeShadowBackupManager.getPackageRestoreToken(String)
andShadowBackupManager.getPackageRestoreCount(String)
.Extends BasicTagTechnology to allow for testing.Bridge between shadow andBinder
.Provides testing APIs forBiometricManager
Base class forBitmap
shadows.Reflector forBitmap
.Shadow picker forBitmap
.Shadow ofBluetoothA2dp
.Shadow forBluetoothDevice
.Interceptor interface forBluetoothGatt
objects.Shadow for BluetoothFrameworkInitializer.Shadow implementation ofBluetoothGatt
.Shadow ofBluetoothGattServer
.Shadow forBluetoothHeadset
Shadow implementation ofBluetoothLeAdvertiser
.Shadow ofBluetoothLeBroadcast
.Adds Robolectric support for BLE scanning.Encapsulates scan params passed toBluetoothAdapter
startScan methods.Shadow ofBluetoothManager
that makes the testing possible.Shadow ofBroadcastResponseStats
for accessing hidden APIs.Implementation ofBugreportManager
.Robolectric test forCall
.Robolectric test forCall.RttCall
.Shadow for the system's CallLog.Call class that allows tests to configure the most recent call.Shadow forCallScreeningService
.Contains the parameters used to callCallScreeningService.respondToCall(android.telecom.Call.Details, android.telecom.CallScreeningService.CallResponse)
.Shadow of the CamcorderProfile that allows the caller to add custom profile settings.Shadows the AndroidCamera.Parameters
class.Shadow class forCameraCaptureSessionImpl
Shadow class forCameraDeviceImpl
Shadow class forCameraManager
Shadow class for internal class CameraManager$CameraManagerGlobalShadow class forCameraMetadataNative
Shadow class forCameraMetadataNative
Base class forCanvas
shadow classes.Shadow picker forCanvas
.Captures round rectangle drawing eventsShadow ofCaptioningManager
.Shadow class forCaptureRequest.Builder
.Shadow ofCaptureResult
.Shadow implementation ofCardEmulation
.The shadow API forChoreographer
.Accessor interface forChoreographer
's CallbackQueue internalsAccessor interface forChoreographer
's internalsShadow forCloseGuard
.Shadow forColorDisplayManager
.Shadow forColorSpace.Rgb
.Shadow for CompanionDeviceManager.Shadow forCompatability
.Shadow forConnection
that represents a phone call or connection to a remote endpoint that carries voice and/or video traffic.A Shadow for android.view.contentcapture.ContentCaptureManager added in Android R.Shadow forContentProvider
.A statement used to delete content in aContentProvider
.A statement used to insert content into aContentProvider
.A statement used to modify content in aContentProvider
.A statement used to update content in aContentProvider
.Shadow forContextHubClient
.Shadow forContextHubManager
.Reflector interface forContextImpl
's internals.Robolectric implementation ofCrossProfileApps
.Container object to hold parameters passed toShadowCrossProfileApps.startMainActivity(ComponentName, UserHandle)
orShadowCrossProfileApps.startActivity(ComponentName, UserHandle)
,ShadowCrossProfileApps.startActivity(Intent, UserHandle, Activity)
,ShadowCrossProfileApps.startActivity(Intent, UserHandle, Activity, Bundle)
.Deprecated.The base shadow class forCursorWindow
.ShadowShadowCursorWindow.Picker
forShadowCursorWindow
Shadow forDateUtils
.Shadow forDevicePolicyManager
.Shadow forDevicePolicyResourcesManager
.Shadow implementation of dalvik.system.Dexfile.It is possible to override some display properties using setters onShadowDisplay
.Shadow ofDisplayEventReceiver
.Reflector interface forDisplayEventReceiver
's internals.Shadow ofDisplayHashManager
.Shadow forandroid.view.DisplayListCanvas
from API versions M to RFor tests, display properties may be changed and devices may be added or removed programmatically.Builder class forDisplay.Mode
Shadow forDisplayManagerGlobal
.Shadow implementation ofDistanceMeasurementManager
.Value class to represent a "completed download" sent toDownloadManager
using the addCompletedDownload APIs.Fake dropbox manager that starts with no entries.ImplementsDynamicsProcessing
by relying onShadowAudioEffect
.Shadow forEdgeEffect
Shadow for EGL14.Class to buildEventLog.Event
Shadow forFileIntegrityManager
.A shadow implementation of FileObserver that uses java.nio.file.WatchService.Provides testing APIs forFingerprintManager
Shadow forFloatMath
.Shadow forFont
for Android SShadow forFont.Builder
Shadow forFontFamily
.Shadow forFontFamily.Builder
.Fake implementation for Gainmap class.Fake implementation ofGLES20
Fake implementation of GLSurfaceViewShadow of android.hardware.HardwareBuffer.No-op shadow forHardwareRenderer
.Activates Hidl supportShadow forImageReader
Shadow forImage
Supports IMS by default.Shadow forInCallAdapter
.Shadow forInCallService
.Shadow class forIncidentManager
.Shadow InetAddressUtils class that doesn't use native Libcore function.Deprecated.useInputDeviceBuilder
.Shadow forInputManager
Shadow for new InputManagerGlobal introduced in android U.Shadow for InputMethodManager.Handler for receiving PrivateCommands.Handler for receiving soft input visibility changed event.Intercepts calls to [InsetsController] to monitor system bars functionality (hide/show).Reflector interface forInstrumentation
's internals.Extends IsoDep to allow for testing.Shadow forKeyEvent
.An implementation ofKeyguardManager.KeyguardLock
, for use in tests.Shadow ofLauncherApps
.ShadowLegacyAsyncTask<Params,Progress, Result> AAsyncTask
shadow forLooperMode.Mode.LEGACY
.The shadowAsyncTaskLoader
forLooperMode.Mode.LEGACY
.Broken.TheChoreographer
shadow forLooperMode.Mode.PAUSED
.Legacy shadow forCursowWindow
.The shadow Looper implementation forLooperMode.Mode.LEGACY
.The shadowMessage
forLooperMode.Mode.LEGACY
.The shadowMessageQueue
forLooperMode.Mode.LEGACY
.The shadow only supports straight-line paths.Shadow forSQLiteConnection
that is backed by sqlite4java.A shadow SystemClock forLooperMode.Mode.LEGACY
Shadow forTypeface
.Shadow forTypeface.Builder
Shadow for android.graphics.text.LineBreakerAccessor interface forLoadedApk
's internals.Robolectric only supports en_US regardless of the default locale set in the JVM.Shadow forLocaleList
Shadow ofLocaleManager
Shadow forLocationManager
.ProviderProperties is not public prior to S, so a new class is required to represent it prior to that platform.LocationRequest is not public prior to S, so a new class is required to represent it prior to those platforms.Controls the behavior ofLog
and provides access to log messages.A single log item.The base shadow API class for controlling Loopers.Shadow of MagnificationController.Shadow picker forMatrix
.A shadow implementation ofMediaActionSound
.Implementation ofMediaCodec
which supports both asynchronous and synchronous modes.Configuration that can be supplied toShadowMediaCodec
to simulate actual encoding/decoding.A codec is implemented as part of the configuration to allow theShadowMediaCodec
to simulate actual encoding/decoding.Shadows CodecBuffer to prevent attempting to free non-direct ByteBuffer objects.Implementation ofMediaCodecList
.Implementation ofMediaController
.A shadow for the MediaExtractor class.Implementation ofMediaMuxer
which directly passes input bytes to the specified file, with no modification.Automated testing of media playback can be a difficult thing - especially testing that your code properly handles asynchronous errors and events.Callback interface for clients that wish to be informed when a newMediaPlayer
instance is constructed.Possible behavior modes for the media player when a method is invoked in an invalid state.Class specifying information for an emulated media object.Provides aShadowMediaPlayer.MediaInfo
for a givenDataSource
.Possible states for the media player to be in.Shadow class forMediaRouter
.Shadow ofMediaScannerConnection
Shadow forMediaSessionManager
.Shadow forMediaStore
.Event info forMediaStore.notifyCloudMediaChangedEvent(android.content.ContentResolver, java.lang.String, java.lang.String)
notify events.Shadow forMediaStore.Images
.Shadow forMediaStore.Images.Media
.Shadow forMediaStore.Images.Thumbnails
.Shadow forMediaStore.Video
.Shadow forMediaStore.Video.Thumbnails
.This is used by Android to load and inferFromValue time zone information.Fork of ShadowMemoryMappedFile to adjust to changed package names of MemoryMappedFile in S.The shadow API forMessage
.The shadow Picker for this classThe shadow API forMessageQueue
.The shadow Picker for this class.Shadow of MotionEvent.Shadow forNativeAllocationRegistry
that is backed by native codeShadow picker forNativeAllocationRegistry
.Shadow forAnimatedImageDrawable
that is backed by native codeShadow picker forAnimatedImageDrawable
.Shadow forAnimatedVectorDrawable
that is backed by native codeShadow picker forAnimatedVectorDrawable
.Shadow forBaseCanvas
that is backed by native codeShadow picker forBaseCanvas
.Shadow forBaseRecordingCanvas
that is backed by native codeShadow picker forBaseRecordingCanvas
.Shadow forBitmap
that is backed by native codeDisable the legacy ShadowBitmapDrawable as it fakes the draw logic.Shadow picker forBitmapDrawable
.Shadow forBitmapFactory
that is backed by native codeShadow picker forBitmapFactory
.Shadow forBitmapShader
that is backed by native codeShadow picker forBitmapShader
.Shadow forBlendModeColorFilter
that is backed by native codeShadow picker forBlendModeColorFilter
.Shadow forBlurMaskFilter
that is backed by native codeShadow picker forBlurMaskFilter
.Shadow forCanvas
that is backed by native codeShadow forCanvasProperty
that is backed by native codeShadow picker forCanvasProperty
.Shadow forColor
that is backed by native codeShadow picker forColor
.Shadow forColorFilter
that is backed by native codeShadow picker forColorFilter
.Shadow forColorMatrixColorFilter
that is backed by native codeShadow picker forColorMatrixColorFilter
.Shadow forColorSpace.Rgb
that is backed by native codeShadow picker forColorSpace.Rgb
.Shadow forColorSpace$Rgb$Native
that contains native functions.Shadow picker forColorSpace.Native
.Shadow forComposePathEffect
that is backed by native codeShadow picker forComposePathEffect
.Shadow forComposeShader
that is backed by native codeShadow picker forComposeShader
.Shadow forCornerPathEffect
that is backed by native codeShadow picker forCornerPathEffect
.Shadow forCursorWindow
that is backed by native codeShadow forDashPathEffect
that is backed by native codeShadow picker forDashPathEffect
.Shadow forDiscretePathEffect
that is backed by native codeShadow picker forDiscretePathEffect
.Shadow forandroid.view.DisplayListCanvas
that is backed by native codeShadow picker forandroid.view.DisplayListCanvas
.Shadow forEmbossMaskFilter
that is backed by native codeShadow picker forEmbossMaskFilter
.Shadow forFont
that is backed by native codeShadow picker forFont
.Shadow forFont.Builder
that is backed by native codeShadow picker forFont.Builder
.Shadow forFontFamily
that is backed by native codeShadow picker forFontFamily
.Shadow forFontFileUtil
that is backed by native codeShadow picker forFontFileUtil
.Shadow forFontFamily
that is backed by native codeShadow picker forFontFamily
.Shadow forFontFamily.Builder
that is backed by native codeShadow picker forFontFamily.Builder
.Shadow forHardwareRenderer
that is backed by native codeShadow picker forHardwareRenderer
.Shadow forHardwareRendererObserver
that is backed by native codeShadow picker forHardwareRendererObserver
.Shadow forImageDecoder
that is backed by native codeShadow picker forImageDecoder
.Shadow forImageReader
that is backed by native codeShadow picker forImageReader
.Shadow forImageReader.SurfaceImage
that is backed by native code.Shadow picker forImageReader.SurfaceImage
.Shadow forInterpolator
that is backed by native codeShadow picker forInterpolator
.Shadow forLightingColorFilter
that is backed by native codeShadow picker forLightingColorFilter
.Shadow forLinearGradient
that is backed by native codeShadow picker forLinearGradient
.Shadow forLineBreaker
that is backed by native codeShadow picker forLineBreaker
.Shadow forMaskFilter
that is backed by native codeShadow picker forMaskFilter
.Shadow forMatrix
that is backed by native codeShadow forMatrix$ExtraNatives
that contains native functions.Shadow picker forMatrix.ExtraNatives
.Shadow forMeasuredParagraph
that is backed by native codeShadow picker forMeasuredParagraph
.Shadow forMeasuredText
that is backed by native codeShadow picker forMeasuredText
.Shadow forMeasuredText.Builder
that is backed by native codeShadow picker forMeasuredText.Builder
.Shadow forNativeInterpolatorFactory
that is backed by native codeShadow picker forNativeInterpolatorFactory
.Shadow forNinePatch
that is backed by native codeShadow picker forNinePatch
.Shadow forPaint
that is backed by native codeShadow picker forPaint
.Shadow forPath
that is backed by native codeShadow forPathDashPathEffect
that is backed by native codeShadow picker forPathDashPathEffect
.Shadow forPathEffect
that is backed by native codeShadow picker forPathEffect
.Shadow forPathIterator
that is backed by native code.Shadow picker forPathIterator
.Shadow forPathMeasure
that is backed by native codeShadow picker forPathMeasure
.Shadow forPathParser
that is backed by native codeShadow picker forPathParser
.Shadow forPicture
that is backed by native codeShadow picker forPicture
.Shadow forPorterDuffColorFilter
that is backed by native codeShadow picker forPorterDuffColorFilter
.Shadow forPositionedGlyphs
that is backed by native codeShadow picker forPositionedGlyphs
.Shadow forPropertyValuesHolder
that is backed by native codeShadow picker forPropertyValuesHolder
.Shadow forRadialGradient
that is backed by native codeShadow picker forRadialGradient
.Shadow forRecordingCanvas
that is backed by native codeShadow picker forRecordingCanvas
.Shadow for android.view.RecordingCanvas.Shadow picker for android.view.RecordingCanvasOP.Shadow forRegion
that is backed by native codeShadow picker forRegion
.Shadow forRegionIterator
that is backed by native codeShadow picker forRegionIterator
.Shadow forRenderEffect
that is backed by native codeShadow picker forRenderEffect
.Shadow forRenderNode
that is backed by native codeShadow picker forRenderNode
.Shadow forRenderNodeAnimator
that is backed by native codeShadow picker forRenderNodeAnimator
.Shadow forRenderNodeAnimator
for Android Q and below that is backed by native codeShadow picker forRenderNodeAnimator
.Shadow forRenderNode
that is backed by native codeShadow picker forRenderNode
.Shadow forRuntimeShader
that is backed by native codeShadow picker forRuntimeShader
.Shadow forShader
that is backed by native codeShadow picker forShader
.Shadow forSQLiteConnection
that is backed by native codeShadow forSQLiteRawStatement
.Shadow forStaticLayout
that is backed by native code for Android O-P.Shadow picker forStaticLayout
.Shadow forSumPathEffect
that is backed by native codeShadow picker forSumPathEffect
.Shadow forSurface
that is backed by native codeShadow picker forSurface
.Shadow forSweepGradient
that is backed by native codeShadow picker forSweepGradient
.Shadow forSystemFonts
for the Robolectric native runtime.Shadow picker forSystemFonts
.Shadow forTableMaskFilter
that is backed by native codeShadow picker forTableMaskFilter
.Shadow forTextRunShaper
that is backed by native codeShadow picker forMeasuredText
.Shadow forThreadedRenderer
that is backed by native codeShadow picker forThreadedRenderer
.Shadow forTypeface
that is backed by native codeShadow forTypeface.Builder
.Shadow picker forTypeface.Builder
.Shadow forVectorDrawable
that is backed by native codeShadow picker forVectorDrawable
.Shadow forVirtualRefBasePtr
that is backed by native codeShadow picker forVirtualRefBasePtr
.Robolectric provides overrides for fetching and updating transport.Provides testing APIs forNetworkScoreManager
.Shadow implementation ofNfcAdapter
.Shadow for new NfcFrameworkInitializer class in U.Shadow forNativeAllocationRegistry
that is a no-op.Shadow implementation ofNotificationListenerService
.Shadows for NotificationManager.A Shadow for android.system.OsShadow forOverlayConfig
.Basic shadow implementation for theOverlayManager
.Shadow ofPackageBackwardCompatibility
to handle a scenario that can come up when multiple Android versions end up on the classpath.Shadow for PackageInstaller.Shadow for PackageInstaller.Session.Shadow for PackageInstaller.SessionInfo.Settings for a particular package.Accessor interface forPackageParser.Package
's internals.Shadow forPaintDrawable
.Base class forShadowPath
classes.Shadow picker forPath
.Shadow forPathIterator
in LEGACY graphics.ShadowPausedAsyncTask<Params,Progress, Result> AAsyncTask
shadow forLooperMode.Mode.PAUSED
The shadowAsyncTaskLoader
forLooperMode.Mode.PAUSED
.AChoreographer
shadow forLooperMode.Mode.PAUSED
.The shadow Looper forand @link LooperMode.Mode.INSTRUMENTATION_TEST
.The shadowMessage
forLooperMode.Mode.PAUSED
.The shadow MessageQueue} forLooperMode.Mode.PAUSED
A shadow SystemClock used whenLooperMode.Mode#PAUSED
is active.Shadow forPermissionControllerManager
.Shadow forPhone
.Shadow for PhoneWindow for APIs 23+Shadow for the API 16-22 PhoneWindow.Shadow for PixelCopy that uses View.draw to create screenshots.Shadow forPosix
Shadow of PowerManagerShadow ofPowerManager.LowPowerStandbyPortsLock
to allow testing state.Shadow for ThreadedRenderer.ProcessInitializer.Shadow forPropertyValuesHolder
that works around the ART/JVM differences of accessing methods.Shadow for private class PublicFormatUtils.Shadow ofQuickAccessWalletService
Deprecated.Use {link RangingResultBuilder} instead.Deprecated.Use {link RangingResultBuilder} instead.Adds Robolectric support for UWB ranging.Adapter interface for state change events, provided by the tester to dictate ranging results.Shadow forNotificationListenerService.Ranking
.A shadow forRcsUceAdapter
.A data class holding the info for a failed capabilities exchangeShadowRemoteCallbackList<E extends IInterface>Shadow forRenderNodeAnimator
.Copy of ShadowRenderNodeAnimator that reflects move of RenderNodeAnimator to android.graphics in RUtilities forResolveInfo
.Shadow ofResources
.Listener callback that's called when the configuration is updated for a resources.Shadow forResources.NotFoundException
.Shadow ofRestrictionsManager
.A shadow implementation ofRingtoneManager
.Shadow forRoleControllerManager
A shadow implementation ofRoleManager
.A Shadow for android.content.rollback.RollbackManager added in Android Q.Shadow for RotationWatcher for API 23+Shadow for RotationWatcher for API 16-22Shadow forSafetyCenterManager
.Shadow ofShadowSecureElementService.SecureElementService
Provide fake SE applet behaviorShadow forSensorManager
.Shadow forServiceManager
.Shadow forSettings.Config
.ASharedMemory
fake that uses a private temporary disk file for storage and Java'sMappedByteBuffer
for the memory mappings.Placeholder container class for nested shadow classShadow ofSliceManager
.Base class for testable parameters from calls to eitherShadowSmsManager.downloadMultimediaMessage(android.content.Context, java.lang.String, android.net.Uri, android.os.Bundle, android.app.PendingIntent)
orShadowSmsManager.downloadMultimediaMessage(android.content.Context, java.lang.String, android.net.Uri, android.os.Bundle, android.app.PendingIntent)
.Shadow of SoftKeyboardController.Record of a single call toSoundPool.play(int, float, float, int, int, float)
.A Shadow SoundTriggerManager in Android O+.Robolectric shadow for SpeechRecognizer.An interface to access direct functions/variables of an instance ofSpeechRecognizer
.The state of a specific instance ofShadowSpeechRecognizer
.Robolectric shadow for SpeechRecognizerImpl.Robolectric shadow for SpeechRecognizerProxy.The base shadow class forSQLiteConnection
shadow APIs.Avoid calls to setIdleConnectionTimeout.Robolectic doesn't provide actual filesystem stats; rather, it provides the ability to specify stats values in advance.Shadow for android.text.StaticLayoutShadow forStatsLog
Single atom log item for write api.Shadow forStatsManager
.Robolectric implementation ofStatusBarManager
.Fake implementation ofStorageManager
Fake implementation ofStorageStatsManager
that provides a fake implementation of query forStorageStats
of a package.Builder class to create instance ofSubscriptionInfo
.Shadow forSurface
Shadow forSurfaceControl
Shadow for new SurfaceSyncGroup introduced in android U.Shadow forSurfaceTexture
Robolectric implementation ofSurfaceHolder
.Shadow ofSuspendDialogInfo
to expose hidden methods.The shadow API forSystemClock
.Shadow forSystemHealthManager
Accessor interface forandroid.app.SystemServiceRegistry.StaticOuterContextServiceFetcher
's internals (for M).Accessor interface forandroid.app.SystemServiceRegistry.StaticApplicationContextServiceFetcher
's internals (for N+).Accessor interface forandroid.app.SystemServiceRegistry.StaticServiceFetcher<T extends Object>
's internals.Shadow forSystemVibrator
.Deprecated.Mode describing how the shadow handles incoming (TelecomManager.addNewIncomingCall(android.telecom.PhoneAccountHandle, android.os.Bundle)
) and outgoing (TelecomManager.placeCall(android.net.Uri, android.os.Bundle)
) call requests.Details about an incoming call request made viaTelecomManager.addNewIncomingCall(android.telecom.PhoneAccountHandle, android.os.Bundle)
.Details about an outgoing call request made viaTelecomManager.placeCall(android.net.Uri, android.os.Bundle)
.Details about an unknown call request made viaTelecomManager.addNewUnknownCall(android.telecom.PhoneAccountHandle, android.os.Bundle)
.Shadow forTelephonyFrameworkInitializer
Shadow forTelephonyManager
.Testable parameters from calls toShadowTelephonyManager.sendVisualVoicemailSms(java.lang.String, int, java.lang.String, android.app.PendingIntent)
.ImplementTextUtils.ellipsize(java.lang.CharSequence, android.text.TextPaint, float, android.text.TextUtils.TruncateAt)
by truncating the text.Shadow for internal AndroidTimeManager
class introduced in S.Shadow of TimeZoneFinder for Android O and P.Shadow for TimeZoneFinder on Q after Developer Preview 1.Shadow for TimeZoneFinder on S or above.Shadow of ToneGenerator.Stores data about a tone played by the ToneGeneratorShadow ofTotalCaptureResult
.Shadow implementation forTrace
, which stores the traces locally in arrays (unlike the real implementation) and allows reading them.AutoValue representation of a trace triggered by one of the async apisBuilder for traces triggered by one of the async apisCounters emitted with the setCounter APIBuilder for counters emitted with the setCounter APIShadow forTranslationManager
.Shadow class for usingMediaController.TransportControls
in tests.Base class forShadowTypeface
classes.Contains data about a font.Shadow picker forTypeface
.Shadow forUiAutomation
.Shadow forUiModeManager
.Shadow ofUsageStatsManager
.App usage limit observer registered viaUsageStatsManager.registerAppUsageLimitObserver(int, String[], Duration, Duration, PendingIntent)
.App usage observer registered viaUsageStatsManager.registerAppUsageObserver(int, String[], long, TimeUnit, PendingIntent)
.Builder for constructingUsageEvents.Event
objects.Usage session observer registered viaUsageStatsManager#registerUsageSessionObserver(int, String[], long, TimeUnit, long, TimeUnit, PendingIntent, PendingIntent)
.Builder for constructingUsageStats
objects.Robolectric implementation ofUsbDeviceConnection
.Robolectric implementation ofUsbManager
.Accessor interface forUsbManager
's internals.Accessor interface forUsbManager
's internals (Q+).Robolectric implementation ofUsbRequest
.Robolectric implementation ofUserManager
.Describes the current state of the user.Adds Robolectric support for UWB adapter state listener methods.Adds Robolectric support for UWB ranging.A Shadow for android.net.vcn.VcnManager added in Android S.A data class for exposingVibrationEffect.Composition$PrimitiveEffect
, which is a hidden non TestApi class introduced in Android R.Reflector interface forViewRootImpl
's internals.Shadow for VirtualDeviceManager.Shadow for inner class VirtualDeviceManager.VirtualDevice.Shadow for VirtualInputDevice.Shadow for VirtualKeyboard.Shadow for VirtualMouse.Shadow for VirtualSensor.Shadow for VirtualTouchscreen.Shadow for theVisualizer
class.Provides underlying data for theShadowVisualizer
.Shadow ofVisualVoicemailService.VisualVoicemailTask
.Shadow implementation ofVoiceInteractionService
.Shadow implementation ofVoiceInteractionSession
.Shadow implementation ofVoiceInteractor
.Shadow forVpnManager
.Represents an invocation record ofWallpaperManager.sendWallpaperCommand(android.os.IBinder, java.lang.String, int, int, int, android.os.Bundle)
Shadow for VirtualDeviceManager.Shadow ofWebSettings
which returns a dummy user a stub instance rather than the User-Agent used by a WebView.Shadow ofWebStorage
which constructs a stub instance rather than attempting to create a full Chromium-backed instance.Shadow Implementation ofWifiAwareManager
Shadow Implementation ofWifiConfiguration
Shadow forWifiManager
.Class to record scores passed to WifiManager#updateWifiUsabilityScoreShadow forWifiRttManager
.Shadow forWifiScanner
.Shadow forWindowManagerGlobal
.Ongoing predictive back gesture.Shadow forWindowOnBackInvokedDispatcher
.Shadow of XmlBlock.Parser.Builder forSharedLibraryInfo
.AShadowPicker
that selects between shadows given the SQLite modeClass to buildStorageVolume
Builder for StreamConfigurationMapBuilder forUiccCardInfo
which includes modifications made in Android T to support MEP.Builder forUiccPortInfo
which was introduced in Android T.Builder forUiccSlotInfo
which was introduced in Android P.Class to buildVibrationAttributes
Builder forWifiUsabilityStatsEntry
.