{ "methods": { "callAttach(android.content.Intent)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "intent" ], "returnType": "void", "exceptions": [], "name": "callAttach(android.content.Intent)" }, "callOnActivityResult(int,int,android.content.Intent)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "requestCode", "resultCode", "resultData" ], "returnType": "void", "exceptions": [], "name": "callOnActivityResult(int,int,android.content.Intent)", "documentation": "For internal use only. Not for public use. " }, "clickMenuItem(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "menuItemResId" ], "returnType": "boolean", "exceptions": [], "name": "clickMenuItem(int)", "documentation": "Perform a click on a menu item.\n\n@param menuItemResId Menu item resource ID.\n@return True if the click was handled, false otherwise.\n" }, "dismissDialog(int)": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [ "id" ], "returnType": "void", "exceptions": [], "name": "dismissDialog(int)" }, "findViewById(int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "id" ], "returnType": "android.view.View", "exceptions": [], "name": "findViewById(int)", "documentation": "Checks to ensure that the{@code contentView} has been set\n\n@param id ID of the view to find\n@return the view\n@throws RuntimeException if the {@code contentView} has not been called first\n" }, "finish()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "name": "finish()" }, "finishAffinity()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "minSdk": 16, "name": "finishAffinity()" }, "finishAndRemoveTask()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "finishAndRemoveTask()" }, "getActivityManager()": { "isImplementation": false, "modifiers": [ "private" ], "params": [], "returnType": "android.app.ActivityManager", "exceptions": [], "name": "getActivityManager()" }, "getCallingActivity()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.content.ComponentName", "exceptions": [], "name": "getCallingActivity()" }, "getCallingPackage()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.lang.String", "exceptions": [], "name": "getCallingPackage()" }, "getContentView()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "android.view.View", "exceptions": [], "name": "getContentView()", "documentation": "@return the {@code contentView} set by one of the {@code setContentView()} methods\n" }, "getCurrentFocus()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.view.View", "exceptions": [], "name": "getCurrentFocus()" }, "getDefaultKeymode()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "int", "exceptions": [], "name": "getDefaultKeymode()" }, "getDialogById(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "dialogId" ], "returnType": "android.app.Dialog", "exceptions": [], "name": "getDialogById(int)" }, "getLastNonConfigurationInstance()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.lang.Object", "exceptions": [], "name": "getLastNonConfigurationInstance()" }, "getLastRequestedPermission()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "org.robolectric.shadows.ShadowActivity.PermissionsRequest", "exceptions": [], "name": "getLastRequestedPermission()", "documentation": "Gets the last permission request submitted to this activity.\n\n@return The permission request details.\n" }, "getLastShownDialogId()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "java.lang.Integer", "exceptions": [], "name": "getLastShownDialogId()", "documentation": "@return the dialog resource id passed into\n {@code Activity.showDialog(int, Bundle)} or {@code Activity.showDialog(int)}\n" }, "getLayoutInflater()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.view.LayoutInflater", "exceptions": [], "name": "getLayoutInflater()" }, "getManagedCursors()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "java.util.List\u003candroid.database.Cursor\u003e", "exceptions": [], "name": "getManagedCursors()" }, "getMenuInflater()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.view.MenuInflater", "exceptions": [], "name": "getMenuInflater()" }, "getNextStartedActivityForResult()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "org.robolectric.shadows.ShadowActivity.IntentForResult", "exceptions": [], "name": "getNextStartedActivityForResult()", "documentation": "Consumes and returns the next {@code Intent} on the\nstarted activities for results stack.\n\n@return the next started {@code Intent} for an activity, wrapped in\n an {@link ShadowActivity.IntentForResult} object\n" }, "getNonConfigurationClass()": { "isImplementation": false, "modifiers": [ "private" ], "params": [], "returnType": "java.lang.Class\u003c?\u003e", "exceptions": [], "name": "getNonConfigurationClass()" }, "getOptionsMenu()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "android.view.Menu", "exceptions": [], "name": "getOptionsMenu()", "documentation": "Return the options menu.\n\n@return Options menu.\n" }, "getParent()": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [], "returnType": "android.app.Activity", "exceptions": [], "name": "getParent()" }, "getPendingTransitionEnterAnimationResourceId()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "int", "exceptions": [], "name": "getPendingTransitionEnterAnimationResourceId()" }, "getPendingTransitionExitAnimationResourceId()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "int", "exceptions": [], "name": "getPendingTransitionExitAnimationResourceId()" }, "getRequestedOrientation()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "int", "exceptions": [], "name": "getRequestedOrientation()" }, "getResultCode()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "int", "exceptions": [], "name": "getResultCode()", "documentation": "@return the {@code resultCode} set by one of the {@code setResult()} methods\n" }, "getResultIntent()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "android.content.Intent", "exceptions": [], "name": "getResultIntent()", "documentation": "@return the {@code Intent} set by {@link #setResult(int, android.content.Intent)}\n" }, "getTaskId()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "int", "exceptions": [], "name": "getTaskId()" }, "getVolumeControlStream()": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [], "returnType": "int", "exceptions": [], "name": "getVolumeControlStream()" }, "getWindow()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.view.Window", "exceptions": [], "name": "getWindow()", "documentation": "Constructs a new Window (a {@link com.android.internal.policy.impl.PhoneWindow}) if no window\nhas previously been set.\n\n@return the window associated with this Activity\n" }, "hasCancelledPendingTransitions()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "hasCancelledPendingTransitions()" }, "isFinishing()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isFinishing()", "documentation": "Returns whether {@link #finish()} was called.\n\n@deprecated Use {@link Activity#isFinishing()} instead.\n" }, "isLockTask()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isLockTask()", "documentation": "Returns if the activity is in the lock task mode.\n\n@deprecated Use {@link ActivityManager#getLockTaskModeState} instead.\n" }, "isTaskRoot()": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isTaskRoot()" }, "onBackPressed()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "name": "onBackPressed()" }, "onCreateOptionsMenu(android.view.Menu)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "menu" ], "returnType": "boolean", "exceptions": [], "name": "onCreateOptionsMenu(android.view.Menu)" }, "overridePendingTransition(int,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "enterAnim", "exitAnim" ], "returnType": "void", "exceptions": [], "name": "overridePendingTransition(int,int)" }, "peekNextStartedActivityForResult()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "org.robolectric.shadows.ShadowActivity.IntentForResult", "exceptions": [], "name": "peekNextStartedActivityForResult()", "documentation": "Returns the most recent {@code Intent} started by\n{@link Activity#startActivityForResult(Intent, int)} without consuming it.\n\n@return the most recently started {@code Intent}, wrapped in\n an {@link ShadowActivity.IntentForResult} object\n" }, "receiveResult(android.content.Intent,int,android.content.Intent)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "requestIntent", "resultCode", "resultIntent" ], "returnType": "void", "exceptions": [], "name": "receiveResult(android.content.Intent,int,android.content.Intent)" }, "recreate()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "name": "recreate()" }, "removeDialog(int)": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [ "id" ], "returnType": "void", "exceptions": [], "name": "removeDialog(int)" }, "requestPermissions(java.lang.String[],int)": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [ "permissions", "requestCode" ], "returnType": "void", "exceptions": [], "minSdk": 23, "name": "requestPermissions(java.lang.String[],int)" }, "resetIsFinishing()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "void", "exceptions": [], "name": "resetIsFinishing()" }, "runOnUiThread(java.lang.Runnable)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "action" ], "returnType": "void", "exceptions": [], "name": "runOnUiThread(java.lang.Runnable)" }, "setApplication(android.app.Application)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "application" ], "returnType": "void", "exceptions": [], "name": "setApplication(android.app.Application)" }, "setCallingActivity(android.content.ComponentName)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "activityName" ], "returnType": "void", "exceptions": [], "name": "setCallingActivity(android.content.ComponentName)" }, "setCallingPackage(java.lang.String)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "packageName" ], "returnType": "void", "exceptions": [], "name": "setCallingPackage(java.lang.String)" }, "setCurrentFocus(android.view.View)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "view" ], "returnType": "void", "exceptions": [], "name": "setCurrentFocus(android.view.View)", "documentation": "@param view View to focus.\n" }, "setDefaultKeyMode(int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "keyMode" ], "returnType": "void", "exceptions": [], "name": "setDefaultKeyMode(int)" }, "setIsTaskRoot(boolean)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "isRoot" ], "returnType": "void", "exceptions": [], "name": "setIsTaskRoot(boolean)" }, "setLastNonConfigurationInstance(java.lang.Object)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "lastNonConfigurationInstance" ], "returnType": "void", "exceptions": [], "name": "setLastNonConfigurationInstance(java.lang.Object)" }, "setParent(android.app.Activity)": { "isImplementation": true, "modifiers": [ "public" ], "params": [ "parent" ], "returnType": "void", "exceptions": [], "name": "setParent(android.app.Activity)", "documentation": "Allow setting of Parent fragmentActivity (for unit testing purposes only)\n\n@param parent Parent fragmentActivity to set on this fragmentActivity\n" }, "setRequestedOrientation(int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "requestedOrientation" ], "returnType": "void", "exceptions": [], "name": "setRequestedOrientation(int)" }, "setResult(int)": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [ "resultCode" ], "returnType": "void", "exceptions": [], "name": "setResult(int)" }, "setResult(int,android.content.Intent)": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [ "resultCode", "data" ], "returnType": "void", "exceptions": [], "name": "setResult(int,android.content.Intent)" }, "setVolumeControlStream(int)": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [ "streamType" ], "returnType": "void", "exceptions": [], "name": "setVolumeControlStream(int)" }, "setWindow(android.view.Window)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "window" ], "returnType": "void", "exceptions": [], "name": "setWindow(android.view.Window)" }, "showDialog(int)": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [ "id" ], "returnType": "void", "exceptions": [], "name": "showDialog(int)" }, "showDialog(int,android.os.Bundle)": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [ "id", "bundle" ], "returnType": "boolean", "exceptions": [], "name": "showDialog(int,android.os.Bundle)" }, "startLockTask()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "startLockTask()", "documentation": "Starts a lock task.\n\n\u003cp\u003eThe status of the lock task can be verified using {@link #isLockTask} method. Otherwise this\nimplementation has no effect.\n" }, "startManagingCursor(android.database.Cursor)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "c" ], "returnType": "void", "exceptions": [], "name": "startManagingCursor(android.database.Cursor)" }, "stopLockTask()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "stopLockTask()", "documentation": "Stops a lock task.\n\n\u003cp\u003eThe status of the lock task can be verified using {@link #isLockTask} method. Otherwise this\nimplementation has no effect.\n" }, "stopManagingCursor(android.database.Cursor)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "c" ], "returnType": "void", "exceptions": [], "name": "stopManagingCursor(android.database.Cursor)" } }, "imports": [ "android.os.Build.VERSION_CODES.JELLY_BEAN", "android.os.Build.VERSION_CODES.LOLLIPOP", "android.os.Build.VERSION_CODES.M", "org.robolectric.shadow.api.Shadow.directlyOn", "android.R", "android.app.Activity", "android.app.ActivityManager", "android.app.ActivityThread", "android.app.Application", "android.app.Dialog", "android.app.Instrumentation", "android.content.ComponentName", "android.content.Context", "android.content.Intent", "android.content.pm.ActivityInfo", "android.content.pm.PackageManager", "android.content.pm.PackageManager.NameNotFoundException", "android.content.res.Configuration", "android.database.Cursor", "android.os.Build", "android.os.Bundle", "android.os.IBinder", "android.text.Selection", "android.text.SpannableStringBuilder", "android.view.LayoutInflater", "android.view.Menu", "android.view.MenuInflater", "android.view.View", "android.view.ViewGroup", "android.view.ViewRootImpl", "android.view.Window", "com.android.internal.app.IVoiceInteractor", "java.lang.reflect.InvocationTargetException", "java.lang.reflect.Method", "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map", "org.robolectric.RuntimeEnvironment", "org.robolectric.annotation.HiddenApi", "org.robolectric.annotation.Implementation", "org.robolectric.annotation.Implements", "org.robolectric.annotation.RealObject", "org.robolectric.fakes.RoboMenuItem", "org.robolectric.shadow.api.Shadow", "org.robolectric.util.ReflectionHelpers", "org.robolectric.shadows.ShadowActivity.IntentForResult", "org.robolectric.shadows.ShadowActivity.ActivityInvoker", "org.robolectric.shadows.ShadowActivity.PermissionsRequest" ], "name": "org.robolectric.shadows.ShadowActivity" }