{ "methods": { "fillInProcessInfo(android.app.ActivityManager.RunningAppProcessInfo)": { "isImplementation": false, "modifiers": [ "private", "static" ], "params": [ "processInfo" ], "returnType": "void", "exceptions": [], "name": "fillInProcessInfo(android.app.ActivityManager.RunningAppProcessInfo)" }, "getAppTasks()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.util.List\u003candroid.app.ActivityManager.AppTask\u003e", "exceptions": [], "minSdk": 21, "name": "getAppTasks()", "documentation": "For tests, returns the list of {@link android.app.ActivityManager.AppTask} set using {@link\n#setAppTasks(List)}. Returns empty list if nothing is set.\n\n@see #setAppTasks(List)\n@return List of current AppTask.\n" }, "getBackgroundPackage()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "java.lang.String", "exceptions": [], "name": "getBackgroundPackage()", "documentation": "@return Get the package name of the last background processes killed.\n" }, "getDeviceConfigurationInfo()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.content.pm.ConfigurationInfo", "exceptions": [], "name": "getDeviceConfigurationInfo()" }, "getLockTaskModeState()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "int", "exceptions": [], "minSdk": 23, "name": "getLockTaskModeState()" }, "getMemoryClass()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "int", "exceptions": [], "name": "getMemoryClass()" }, "getMemoryInfo(android.app.ActivityManager.MemoryInfo)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "outInfo" ], "returnType": "void", "exceptions": [], "name": "getMemoryInfo(android.app.ActivityManager.MemoryInfo)" }, "getMyMemoryState(android.app.ActivityManager.RunningAppProcessInfo)": { "isImplementation": true, "modifiers": [ "protected", "static" ], "params": [ "inState" ], "returnType": "void", "exceptions": [], "name": "getMyMemoryState(android.app.ActivityManager.RunningAppProcessInfo)", "documentation": "Returns information seeded by {@link #setProcesses}. " }, "getRunningAppProcesses()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.util.List\u003candroid.app.ActivityManager.RunningAppProcessInfo\u003e", "exceptions": [], "name": "getRunningAppProcesses()" }, "getRunningServices(int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "maxNum" ], "returnType": "java.util.List\u003candroid.app.ActivityManager.RunningServiceInfo\u003e", "exceptions": [], "name": "getRunningServices(int)" }, "getRunningTasks(int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "maxNum" ], "returnType": "java.util.List\u003candroid.app.ActivityManager.RunningTaskInfo\u003e", "exceptions": [], "name": "getRunningTasks(int)" }, "getService()": { "isImplementation": true, "modifiers": [ "protected", "static" ], "params": [], "returnType": "android.app.IActivityManager", "exceptions": [], "minSdk": 26, "name": "getService()" }, "isInLockTaskMode()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "boolean", "exceptions": [], "minSdk": 21, "name": "isInLockTaskMode()" }, "isLowRamDevice()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "boolean", "exceptions": [], "minSdk": 19, "name": "isLowRamDevice()" }, "isUserAMonkey()": { "isImplementation": true, "modifiers": [ "protected", "static" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isUserAMonkey()" }, "killBackgroundProcesses(java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "packageName" ], "returnType": "void", "exceptions": [], "name": "killBackgroundProcesses(java.lang.String)" }, "reset()": { "isImplementation": false, "modifiers": [ "public", "static" ], "params": [], "returnType": "void", "exceptions": [], "name": "reset()" }, "setAppTasks(java.util.List\u003candroid.app.ActivityManager.AppTask\u003e)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "appTasks" ], "returnType": "void", "exceptions": [], "name": "setAppTasks(java.util.List\u003candroid.app.ActivityManager.AppTask\u003e)", "documentation": "Sets the values to be returned by {@link #getAppTasks()}.\n\n@see #getAppTasks()\n@param tasks List of app tasks.\n" }, "setIsLowRamDevice(boolean)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "isLowRamDevice" ], "returnType": "void", "exceptions": [], "name": "setIsLowRamDevice(boolean)", "documentation": "Override the return value of isLowRamDevice().\n" }, "setLockTaskModeState(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "lockTaskModeState" ], "returnType": "void", "exceptions": [], "name": "setLockTaskModeState(int)", "documentation": "Sets lock task mode state to be reported by {@link ActivityManager#getLockTaskModeState}, but\nhas no effect otherwise.\n" }, "setMemoryClass(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "memoryClass" ], "returnType": "void", "exceptions": [], "name": "setMemoryClass(int)", "documentation": "@param memoryClass Set the application\u0027s memory class.\n" }, "setMemoryInfo(android.app.ActivityManager.MemoryInfo)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "memoryInfo" ], "returnType": "void", "exceptions": [], "name": "setMemoryInfo(android.app.ActivityManager.MemoryInfo)", "documentation": "@param memoryInfo Set the application\u0027s memory info.\n" }, "setProcesses(java.util.List\u003candroid.app.ActivityManager.RunningAppProcessInfo\u003e)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "processes" ], "returnType": "void", "exceptions": [], "name": "setProcesses(java.util.List\u003candroid.app.ActivityManager.RunningAppProcessInfo\u003e)", "documentation": "@param processes List of running processes.\n" }, "setServices(java.util.List\u003candroid.app.ActivityManager.RunningServiceInfo\u003e)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "services" ], "returnType": "void", "exceptions": [], "name": "setServices(java.util.List\u003candroid.app.ActivityManager.RunningServiceInfo\u003e)", "documentation": "@param services List of running services.\n" }, "setTasks(java.util.List\u003candroid.app.ActivityManager.RunningTaskInfo\u003e)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "tasks" ], "returnType": "void", "exceptions": [], "name": "setTasks(java.util.List\u003candroid.app.ActivityManager.RunningTaskInfo\u003e)", "documentation": "@param tasks List of running tasks.\n" }, "switchUser(int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "userid" ], "returnType": "boolean", "exceptions": [], "minSdk": 17, "name": "switchUser(int)" } }, "imports": [ "android.os.Build.VERSION_CODES.JELLY_BEAN_MR1", "android.os.Build.VERSION_CODES.KITKAT", "android.os.Build.VERSION_CODES.LOLLIPOP", "android.os.Build.VERSION_CODES.O", "org.robolectric.shadow.api.Shadow.directlyOn", "android.app.ActivityManager", "android.app.IActivityManager", "android.content.Context", "android.content.pm.ConfigurationInfo", "android.os.Build.VERSION_CODES", "android.os.Process", "java.util.List", "java.util.concurrent.CopyOnWriteArrayList", "org.robolectric.RuntimeEnvironment", "org.robolectric.annotation.HiddenApi", "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" ], "name": "org.robolectric.shadows.ShadowActivityManager" }