Documentation
¶
Index ¶
- type Client
- func (c *Client) AddThermalHeadroomListener1(ctx context.Context, arg0 int64) error
- func (c *Client) AddThermalHeadroomListener2_1(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) AddThermalStatusListener1(ctx context.Context, arg0 int64) error
- func (c *Client) AddThermalStatusListener2_1(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) GetBatteryDischargePrediction(ctx context.Context) (int64, error)
- func (c *Client) GetCurrentThermalStatus(ctx context.Context) (int32, error)
- func (c *Client) GetLocationPowerSaveMode(ctx context.Context) (int32, error)
- func (c *Client) GetThermalHeadroom(ctx context.Context, arg0 int32) (float32, error)
- func (c *Client) IsAllowedInLowPowerStandby1(ctx context.Context, arg0 int32) (bool, error)
- func (c *Client) IsAllowedInLowPowerStandby1_1(ctx context.Context, arg0 string) (bool, error)
- func (c *Client) IsBatteryDischargePredictionPersonalized(ctx context.Context) (bool, error)
- func (c *Client) IsDeviceIdleMode(ctx context.Context) (bool, error)
- func (c *Client) IsDeviceLightIdleMode(ctx context.Context) (bool, error)
- func (c *Client) IsExemptFromLowPowerStandby(ctx context.Context) (bool, error)
- func (c *Client) IsIgnoringBatteryOptimizations(ctx context.Context, arg0 string) (bool, error)
- func (c *Client) IsInteractive(ctx context.Context) (bool, error)
- func (c *Client) IsLowPowerStandbyEnabled(ctx context.Context) (bool, error)
- func (c *Client) IsPowerSaveMode(ctx context.Context) (bool, error)
- func (c *Client) IsRebootingUserspaceSupported(ctx context.Context) (bool, error)
- func (c *Client) IsScreenOn(ctx context.Context) (bool, error)
- func (c *Client) IsSustainedPerformanceModeSupported(ctx context.Context) (bool, error)
- func (c *Client) IsWakeLockLevelSupported(ctx context.Context, arg0 int32) (bool, error)
- func (c *Client) NewWakeLock(ctx context.Context, arg0 int32, arg1 string) (int64, error)
- func (c *Client) Reboot(ctx context.Context, arg0 string) error
- func (c *Client) RemoveThermalHeadroomListener(ctx context.Context, arg0 int64) error
- func (c *Client) RemoveThermalStatusListener(ctx context.Context, arg0 int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the gRPC ManagerService client.
func NewClient ¶
func NewClient(cc grpc.ClientConnInterface) *Client
NewClient creates a new power client.
func (*Client) AddThermalHeadroomListener1 ¶
AddThermalHeadroomListener1 calls the AddThermalHeadroomListener1 RPC.
func (*Client) AddThermalHeadroomListener2_1 ¶
AddThermalHeadroomListener2_1 calls the AddThermalHeadroomListener2_1 RPC.
func (*Client) AddThermalStatusListener1 ¶
AddThermalStatusListener1 calls the AddThermalStatusListener1 RPC.
func (*Client) AddThermalStatusListener2_1 ¶
AddThermalStatusListener2_1 calls the AddThermalStatusListener2_1 RPC.
func (*Client) GetBatteryDischargePrediction ¶
GetBatteryDischargePrediction calls the GetBatteryDischargePrediction RPC.
func (*Client) GetCurrentThermalStatus ¶
GetCurrentThermalStatus calls the GetCurrentThermalStatus RPC.
func (*Client) GetLocationPowerSaveMode ¶
GetLocationPowerSaveMode calls the GetLocationPowerSaveMode RPC.
func (*Client) GetThermalHeadroom ¶
GetThermalHeadroom calls the GetThermalHeadroom RPC.
func (*Client) IsAllowedInLowPowerStandby1 ¶
IsAllowedInLowPowerStandby1 calls the IsAllowedInLowPowerStandby1 RPC.
func (*Client) IsAllowedInLowPowerStandby1_1 ¶
IsAllowedInLowPowerStandby1_1 calls the IsAllowedInLowPowerStandby1_1 RPC.
func (*Client) IsBatteryDischargePredictionPersonalized ¶
IsBatteryDischargePredictionPersonalized calls the IsBatteryDischargePredictionPersonalized RPC.
func (*Client) IsDeviceIdleMode ¶
IsDeviceIdleMode calls the IsDeviceIdleMode RPC.
func (*Client) IsDeviceLightIdleMode ¶
IsDeviceLightIdleMode calls the IsDeviceLightIdleMode RPC.
func (*Client) IsExemptFromLowPowerStandby ¶
IsExemptFromLowPowerStandby calls the IsExemptFromLowPowerStandby RPC.
func (*Client) IsIgnoringBatteryOptimizations ¶
IsIgnoringBatteryOptimizations calls the IsIgnoringBatteryOptimizations RPC.
func (*Client) IsInteractive ¶
IsInteractive calls the IsInteractive RPC.
func (*Client) IsLowPowerStandbyEnabled ¶
IsLowPowerStandbyEnabled calls the IsLowPowerStandbyEnabled RPC.
func (*Client) IsPowerSaveMode ¶
IsPowerSaveMode calls the IsPowerSaveMode RPC.
func (*Client) IsRebootingUserspaceSupported ¶
IsRebootingUserspaceSupported calls the IsRebootingUserspaceSupported RPC.
func (*Client) IsScreenOn ¶
IsScreenOn calls the IsScreenOn RPC.
func (*Client) IsSustainedPerformanceModeSupported ¶
IsSustainedPerformanceModeSupported calls the IsSustainedPerformanceModeSupported RPC.
func (*Client) IsWakeLockLevelSupported ¶
IsWakeLockLevelSupported calls the IsWakeLockLevelSupported RPC.
func (*Client) NewWakeLock ¶
NewWakeLock calls the NewWakeLock RPC.
func (*Client) RemoveThermalHeadroomListener ¶
RemoveThermalHeadroomListener calls the RemoveThermalHeadroomListener RPC.