wakeupreason

package
v0.0.0-...-d2356ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package wakeupreason provides helper functions to identify the subsystem which caused the APSS to wakeup from suspend.

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrDeviceNotFound indicates that the given device does not have a wakeup reason mapping.
	ErrDeviceNotFound = errors.New("device not found")
)

Functions

func FindSubsystem

func FindSubsystem(device string, input string) (string, []string, error)

FindSubsystem parses the "input" string against the device specific mapping table. Example: FindSubsystem("hammerhead", "200:qcom,smd-rpm:203:fc4281d0.qcom,mpm:304:qpnp_adc_tm_interrupt:338:bq24192_irq")

func IsSupportedDevice

func IsSupportedDevice(device string) bool

IsSupportedDevice identifies whether the given device has a wakeup reason mapping or not. The input should be device name (eg. hammerhead) and not model name (eg. Nexus 5).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL