{ "methods": { "bindService(android.content.Intent,android.content.ServiceConnection,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "intent", "serviceConnection", "i" ], "returnType": "boolean", "exceptions": [], "name": "bindService(android.content.Intent,android.content.ServiceConnection,int)" }, "bindServiceAsUser(android.content.Intent,android.content.ServiceConnection,int,android.os.UserHandle)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "intent", "serviceConnection", "i", "userHandle" ], "returnType": "boolean", "exceptions": [], "minSdk": 21, "name": "bindServiceAsUser(android.content.Intent,android.content.ServiceConnection,int,android.os.UserHandle)", "documentation": "Binds to a service but ignores the given UserHandle. " }, "checkCallingOrSelfPermission(java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "permission" ], "returnType": "int", "exceptions": [], "name": "checkCallingOrSelfPermission(java.lang.String)" }, "checkCallingPermission(java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "permission" ], "returnType": "int", "exceptions": [], "name": "checkCallingPermission(java.lang.String)" }, "checkPermission(java.lang.String,int,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "permission", "pid", "uid" ], "returnType": "int", "exceptions": [], "name": "checkPermission(java.lang.String,int,int)" }, "getClassLoader()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.lang.ClassLoader", "exceptions": [], "name": "getClassLoader()" }, "getContentResolver()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.content.ContentResolver", "exceptions": [], "name": "getContentResolver()" }, "getExternalCacheDir()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.io.File", "exceptions": [], "name": "getExternalCacheDir()" }, "getExternalFilesDir(java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "type" ], "returnType": "java.io.File", "exceptions": [], "maxSdk": 18, "name": "getExternalFilesDir(java.lang.String)" }, "getExternalFilesDirs(java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "type" ], "returnType": "java.io.File[]", "exceptions": [], "minSdk": 19, "name": "getExternalFilesDirs(java.lang.String)" }, "getShadowInstrumentation()": { "isImplementation": false, "modifiers": [ "private" ], "params": [], "returnType": "org.robolectric.shadows.ShadowInstrumentation", "exceptions": [], "name": "getShadowInstrumentation()" }, "getSystemService(java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "name" ], "returnType": "java.lang.Object", "exceptions": [], "name": "getSystemService(java.lang.String)", "documentation": "Returns the handle to a system-level service by name. If the service is not available in\nRoboletric, or it is set to unavailable in {@link ShadowServiceManager#setServiceAvailability},\n{@code null} will be returned.\n" }, "getUserId()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "int", "exceptions": [], "minSdk": 17, "name": "getUserId()" }, "registerReceiver(android.content.BroadcastReceiver,android.content.IntentFilter)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "receiver", "filter" ], "returnType": "android.content.Intent", "exceptions": [], "name": "registerReceiver(android.content.BroadcastReceiver,android.content.IntentFilter)" }, "registerReceiver(android.content.BroadcastReceiver,android.content.IntentFilter,java.lang.String,android.os.Handler)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "receiver", "filter", "broadcastPermission", "scheduler" ], "returnType": "android.content.Intent", "exceptions": [], "name": "registerReceiver(android.content.BroadcastReceiver,android.content.IntentFilter,java.lang.String,android.os.Handler)" }, "registerReceiver(android.content.BroadcastReceiver,android.content.IntentFilter,java.lang.String,android.os.Handler,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "receiver", "filter", "broadcastPermission", "scheduler", "flags" ], "returnType": "android.content.Intent", "exceptions": [], "name": "registerReceiver(android.content.BroadcastReceiver,android.content.IntentFilter,java.lang.String,android.os.Handler,int)" }, "registerReceiverAsUser(android.content.BroadcastReceiver,android.os.UserHandle,android.content.IntentFilter,java.lang.String,android.os.Handler)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "receiver", "user", "filter", "broadcastPermission", "scheduler" ], "returnType": "android.content.Intent", "exceptions": [], "minSdk": 17, "name": "registerReceiverAsUser(android.content.BroadcastReceiver,android.os.UserHandle,android.content.IntentFilter,java.lang.String,android.os.Handler)" }, "removeSystemService(java.lang.String)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "name" ], "returnType": "void", "exceptions": [], "name": "removeSystemService(java.lang.String)", "documentation": "Makes {@link #getSystemService(String)} return {@code null} for the given system service name,\nmimicking a device that doesn\u0027t have that system service.\n" }, "reset()": { "isImplementation": false, "modifiers": [ "public", "static" ], "params": [], "returnType": "void", "exceptions": [], "name": "reset()" }, "sendBroadcast(android.content.Intent)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "intent" ], "returnType": "void", "exceptions": [], "name": "sendBroadcast(android.content.Intent)" }, "sendBroadcast(android.content.Intent,java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "intent", "receiverPermission" ], "returnType": "void", "exceptions": [], "name": "sendBroadcast(android.content.Intent,java.lang.String)" }, "sendOrderedBroadcast(android.content.Intent,java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "intent", "receiverPermission" ], "returnType": "void", "exceptions": [], "name": "sendOrderedBroadcast(android.content.Intent,java.lang.String)" }, "sendOrderedBroadcast(android.content.Intent,java.lang.String,android.content.BroadcastReceiver,android.os.Handler,int,java.lang.String,android.os.Bundle)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "intent", "receiverPermission", "resultReceiver", "scheduler", "initialCode", "initialData", "initialExtras" ], "returnType": "void", "exceptions": [], "name": "sendOrderedBroadcast(android.content.Intent,java.lang.String,android.content.BroadcastReceiver,android.os.Handler,int,java.lang.String,android.os.Bundle)" }, "sendOrderedBroadcastAsUser(android.content.Intent,android.os.UserHandle,java.lang.String,android.content.BroadcastReceiver,android.os.Handler,int,java.lang.String,android.os.Bundle)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "intent", "userHandle", "receiverPermission", "resultReceiver", "scheduler", "initialCode", "initialData", "initialExtras" ], "returnType": "void", "exceptions": [], "minSdk": 19, "name": "sendOrderedBroadcastAsUser(android.content.Intent,android.os.UserHandle,java.lang.String,android.content.BroadcastReceiver,android.os.Handler,int,java.lang.String,android.os.Bundle)", "documentation": "Behaves as {@link #sendOrderedBroadcast} and currently ignores userHandle. " }, "sendOrderedBroadcastAsUser(android.content.Intent,android.os.UserHandle,java.lang.String,int,android.os.Bundle,android.content.BroadcastReceiver,android.os.Handler,int,java.lang.String,android.os.Bundle)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "intent", "userHandle", "receiverPermission", "appOp", "options", "resultReceiver", "scheduler", "initialCode", "initialData", "initialExtras" ], "returnType": "void", "exceptions": [], "minSdk": 23, "name": "sendOrderedBroadcastAsUser(android.content.Intent,android.os.UserHandle,java.lang.String,int,android.os.Bundle,android.content.BroadcastReceiver,android.os.Handler,int,java.lang.String,android.os.Bundle)", "documentation": "Behaves as {@link #sendOrderedBroadcast}. Currently ignores userHandle, appOp, and options. " }, "sendStickyBroadcast(android.content.Intent)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "intent" ], "returnType": "void", "exceptions": [], "name": "sendStickyBroadcast(android.content.Intent)" }, "setSystemService(java.lang.String,java.lang.Object)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "key", "service" ], "returnType": "void", "exceptions": [], "name": "setSystemService(java.lang.String,java.lang.Object)" }, "startActivityAsUser(android.content.Intent,android.os.Bundle,android.os.UserHandle)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "intent", "options", "user" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "startActivityAsUser(android.content.Intent,android.os.Bundle,android.os.UserHandle)", "documentation": "Behaves as {@link #startActivity}. The user parameter is ignored.\n" }, "startForegroundService(android.content.Intent)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "service" ], "returnType": "android.content.ComponentName", "exceptions": [], "minSdk": 26, "name": "startForegroundService(android.content.Intent)" }, "startIntentSender(android.content.IntentSender,android.content.Intent,int,int,int,android.os.Bundle)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "intent", "fillInIntent", "flagsMask", "flagsValues", "extraFlags", "options" ], "returnType": "void", "exceptions": [ "android.content.IntentSender.SendIntentException" ], "name": "startIntentSender(android.content.IntentSender,android.content.Intent,int,int,int,android.os.Bundle)" }, "startService(android.content.Intent)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "service" ], "returnType": "android.content.ComponentName", "exceptions": [], "name": "startService(android.content.Intent)" }, "stopService(android.content.Intent)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "name" ], "returnType": "boolean", "exceptions": [], "name": "stopService(android.content.Intent)" }, "unbindService(android.content.ServiceConnection)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "serviceConnection" ], "returnType": "void", "exceptions": [], "name": "unbindService(android.content.ServiceConnection)" }, "unregisterReceiver(android.content.BroadcastReceiver)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "broadcastReceiver" ], "returnType": "void", "exceptions": [], "name": "unregisterReceiver(android.content.BroadcastReceiver)" } }, "imports": [ "android.os.Build.VERSION_CODES.JELLY_BEAN_MR1", "android.os.Build.VERSION_CODES.JELLY_BEAN_MR2", "android.os.Build.VERSION_CODES.KITKAT", "android.os.Build.VERSION_CODES.LOLLIPOP", "android.os.Build.VERSION_CODES.M", "android.os.Build.VERSION_CODES.N", "android.os.Build.VERSION_CODES.O", "org.robolectric.shadow.api.Shadow.directlyOn", "android.annotation.Nullable", "android.app.ActivityThread", "android.content.BroadcastReceiver", "android.content.ComponentName", "android.content.ContentResolver", "android.content.Context", "android.content.IContentProvider", "android.content.Intent", "android.content.IntentFilter", "android.content.IntentSender", "android.content.ServiceConnection", "android.os.Build.VERSION_CODES", "android.os.Bundle", "android.os.Environment", "android.os.Handler", "android.os.UserHandle", "java.io.File", "java.util.HashMap", "java.util.HashSet", "java.util.Map", "java.util.Set", "org.robolectric.RuntimeEnvironment", "org.robolectric.annotation.Implementation", "org.robolectric.annotation.Implements", "org.robolectric.annotation.RealObject", "org.robolectric.annotation.Resetter", "org.robolectric.shadow.api.Shadow", "org.robolectric.util.ReflectionHelpers", "org.robolectric.util.ReflectionHelpers.ClassParameter" ], "name": "org.robolectric.shadows.ShadowContextImpl" }