power

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

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

func (c *Client) AddThermalHeadroomListener1(ctx context.Context, arg0 int64) error

AddThermalHeadroomListener1 calls the AddThermalHeadroomListener1 RPC.

func (*Client) AddThermalHeadroomListener2_1

func (c *Client) AddThermalHeadroomListener2_1(ctx context.Context, arg0 int64, arg1 int64) error

AddThermalHeadroomListener2_1 calls the AddThermalHeadroomListener2_1 RPC.

func (*Client) AddThermalStatusListener1

func (c *Client) AddThermalStatusListener1(ctx context.Context, arg0 int64) error

AddThermalStatusListener1 calls the AddThermalStatusListener1 RPC.

func (*Client) AddThermalStatusListener2_1

func (c *Client) AddThermalStatusListener2_1(ctx context.Context, arg0 int64, arg1 int64) error

AddThermalStatusListener2_1 calls the AddThermalStatusListener2_1 RPC.

func (*Client) GetBatteryDischargePrediction

func (c *Client) GetBatteryDischargePrediction(ctx context.Context) (int64, error)

GetBatteryDischargePrediction calls the GetBatteryDischargePrediction RPC.

func (*Client) GetCurrentThermalStatus

func (c *Client) GetCurrentThermalStatus(ctx context.Context) (int32, error)

GetCurrentThermalStatus calls the GetCurrentThermalStatus RPC.

func (*Client) GetLocationPowerSaveMode

func (c *Client) GetLocationPowerSaveMode(ctx context.Context) (int32, error)

GetLocationPowerSaveMode calls the GetLocationPowerSaveMode RPC.

func (*Client) GetThermalHeadroom

func (c *Client) GetThermalHeadroom(ctx context.Context, arg0 int32) (float32, error)

GetThermalHeadroom calls the GetThermalHeadroom RPC.

func (*Client) IsAllowedInLowPowerStandby1

func (c *Client) IsAllowedInLowPowerStandby1(ctx context.Context, arg0 int32) (bool, error)

IsAllowedInLowPowerStandby1 calls the IsAllowedInLowPowerStandby1 RPC.

func (*Client) IsAllowedInLowPowerStandby1_1

func (c *Client) IsAllowedInLowPowerStandby1_1(ctx context.Context, arg0 string) (bool, error)

IsAllowedInLowPowerStandby1_1 calls the IsAllowedInLowPowerStandby1_1 RPC.

func (*Client) IsBatteryDischargePredictionPersonalized

func (c *Client) IsBatteryDischargePredictionPersonalized(ctx context.Context) (bool, error)

IsBatteryDischargePredictionPersonalized calls the IsBatteryDischargePredictionPersonalized RPC.

func (*Client) IsDeviceIdleMode

func (c *Client) IsDeviceIdleMode(ctx context.Context) (bool, error)

IsDeviceIdleMode calls the IsDeviceIdleMode RPC.

func (*Client) IsDeviceLightIdleMode

func (c *Client) IsDeviceLightIdleMode(ctx context.Context) (bool, error)

IsDeviceLightIdleMode calls the IsDeviceLightIdleMode RPC.

func (*Client) IsExemptFromLowPowerStandby

func (c *Client) IsExemptFromLowPowerStandby(ctx context.Context) (bool, error)

IsExemptFromLowPowerStandby calls the IsExemptFromLowPowerStandby RPC.

func (*Client) IsIgnoringBatteryOptimizations

func (c *Client) IsIgnoringBatteryOptimizations(ctx context.Context, arg0 string) (bool, error)

IsIgnoringBatteryOptimizations calls the IsIgnoringBatteryOptimizations RPC.

func (*Client) IsInteractive

func (c *Client) IsInteractive(ctx context.Context) (bool, error)

IsInteractive calls the IsInteractive RPC.

func (*Client) IsLowPowerStandbyEnabled

func (c *Client) IsLowPowerStandbyEnabled(ctx context.Context) (bool, error)

IsLowPowerStandbyEnabled calls the IsLowPowerStandbyEnabled RPC.

func (*Client) IsPowerSaveMode

func (c *Client) IsPowerSaveMode(ctx context.Context) (bool, error)

IsPowerSaveMode calls the IsPowerSaveMode RPC.

func (*Client) IsRebootingUserspaceSupported

func (c *Client) IsRebootingUserspaceSupported(ctx context.Context) (bool, error)

IsRebootingUserspaceSupported calls the IsRebootingUserspaceSupported RPC.

func (*Client) IsScreenOn

func (c *Client) IsScreenOn(ctx context.Context) (bool, error)

IsScreenOn calls the IsScreenOn RPC.

func (*Client) IsSustainedPerformanceModeSupported

func (c *Client) IsSustainedPerformanceModeSupported(ctx context.Context) (bool, error)

IsSustainedPerformanceModeSupported calls the IsSustainedPerformanceModeSupported RPC.

func (*Client) IsWakeLockLevelSupported

func (c *Client) IsWakeLockLevelSupported(ctx context.Context, arg0 int32) (bool, error)

IsWakeLockLevelSupported calls the IsWakeLockLevelSupported RPC.

func (*Client) NewWakeLock

func (c *Client) NewWakeLock(ctx context.Context, arg0 int32, arg1 string) (int64, error)

NewWakeLock calls the NewWakeLock RPC.

func (*Client) Reboot

func (c *Client) Reboot(ctx context.Context, arg0 string) error

Reboot calls the Reboot RPC.

func (*Client) RemoveThermalHeadroomListener

func (c *Client) RemoveThermalHeadroomListener(ctx context.Context, arg0 int64) error

RemoveThermalHeadroomListener calls the RemoveThermalHeadroomListener RPC.

func (*Client) RemoveThermalStatusListener

func (c *Client) RemoveThermalStatusListener(ctx context.Context, arg0 int64) error

RemoveThermalStatusListener calls the RemoveThermalStatusListener RPC.

Jump to

Keyboard shortcuts

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