Documentation
¶
Overview ¶
Package power provides Go bindings for .
Index ¶
Constants ¶
View Source
const ( AcquireCausesWakeup = consts.AcquireCausesWakeup FullWakeLock = consts.FullWakeLock LocationModeAllDisabledWhenScreenOff = consts.LocationModeAllDisabledWhenScreenOff LocationModeForegroundOnly = consts.LocationModeForegroundOnly LocationModeGpsDisabledWhenScreenOff = consts.LocationModeGpsDisabledWhenScreenOff LocationModeNoChange = consts.LocationModeNoChange LocationModeThrottleRequestsWhenScreenOff = consts.LocationModeThrottleRequestsWhenScreenOff LowPowerStandbyAllowedReasonOngoingCall = consts.LowPowerStandbyAllowedReasonOngoingCall LowPowerStandbyAllowedReasonTempPowerSaveAllowlist = consts.LowPowerStandbyAllowedReasonTempPowerSaveAllowlist LowPowerStandbyAllowedReasonVoiceInteraction = consts.LowPowerStandbyAllowedReasonVoiceInteraction OnAfterRelease = consts.OnAfterRelease PartialWakeLock = consts.PartialWakeLock ProximityScreenOffWakeLock = consts.ProximityScreenOffWakeLock ReleaseFlagWaitForNoProximity = consts.ReleaseFlagWaitForNoProximity ScreenBrightWakeLock = consts.ScreenBrightWakeLock ScreenDimWakeLock = consts.ScreenDimWakeLock ThermalStatusCritical = consts.ThermalStatusCritical ThermalStatusEmergency = consts.ThermalStatusEmergency ThermalStatusLight = consts.ThermalStatusLight ThermalStatusModerate = consts.ThermalStatusModerate ThermalStatusNone = consts.ThermalStatusNone ThermalStatusSevere = consts.ThermalStatusSevere ThermalStatusShutdown = consts.ThermalStatusShutdown )
View Source
const ( ActionDeviceIdleModeChanged = consts.ActionDeviceIdleModeChanged ActionDeviceLightIdleModeChanged = consts.ActionDeviceLightIdleModeChanged ActionLowPowerStandbyEnabledChanged = consts.ActionLowPowerStandbyEnabledChanged ActionLowPowerStandbyPolicyChanged = consts.ActionLowPowerStandbyPolicyChanged ActionPowerSaveModeChanged = consts.ActionPowerSaveModeChanged FeatureWakeOnLanInLowPowerStandby = consts.FeatureWakeOnLanInLowPowerStandby )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.
func NewpowerManager ¶
NewpowerManager obtains android.os.PowerManager from the Android system service manager.
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.