Whether the CPU is allowed to sleep.
Whether the key light is enabled.
The brightness of the screen.
Whether the screen is enabled.
Adds a listener for wake lock events.
The listener to add.
Resets the device to factory settings.
Optionalreason: FactoryResetReasonThe reason for the factory reset.
Removes a listener for wake lock events.
The listener to remove.
Permissions
power Provides access to the device's power management features.