{ "methods": { "acquire()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "name": "acquire()" }, "acquire(long)": { "isImplementation": true, "modifiers": [ "protected", "synchronized" ], "params": [ "timeout" ], "returnType": "void", "exceptions": [], "name": "acquire(long)" }, "getWorkSource()": { "isImplementation": false, "modifiers": [ "public", "synchronized" ], "params": [], "returnType": "android.os.WorkSource", "exceptions": [], "name": "getWorkSource()" }, "isHeld()": { "isImplementation": true, "modifiers": [ "protected", "synchronized" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isHeld()" }, "isReferenceCounted()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isReferenceCounted()", "documentation": "Retrieves if the wake lock is reference counted or not\n\n@return Is the wake lock reference counted?\n" }, "release()": { "isImplementation": true, "modifiers": [ "protected", "synchronized" ], "params": [], "returnType": "void", "exceptions": [], "name": "release()" }, "setReferenceCounted(boolean)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "value" ], "returnType": "void", "exceptions": [], "name": "setReferenceCounted(boolean)" }, "setWorkSource(android.os.WorkSource)": { "isImplementation": true, "modifiers": [ "protected", "synchronized" ], "params": [ "ws" ], "returnType": "void", "exceptions": [], "name": "setWorkSource(android.os.WorkSource)" } }, "imports": [ "android.os.Build.VERSION_CODES.KITKAT_WATCH", "android.os.Build.VERSION_CODES.LOLLIPOP", "android.os.Build.VERSION_CODES.M", "org.robolectric.shadows.ShadowApplication.getInstance", "android.Manifest.permission", "android.content.Context", "android.content.pm.PackageManager", "android.os.PowerManager", "android.os.WorkSource", "com.google.common.collect.ImmutableList", "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.Resetter", "org.robolectric.shadow.api.Shadow" ], "name": "org.robolectric.shadows.ShadowPowerManager.ShadowWakeLock" }