Documentation
¶
Index ¶
- type ManagerClient
- func (c *ManagerClient) AddThermalHeadroomListener1(ctx context.Context, arg0 int64) error
- func (c *ManagerClient) AddThermalHeadroomListener2_1(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *ManagerClient) AddThermalStatusListener1(ctx context.Context, arg0 int64) error
- func (c *ManagerClient) AddThermalStatusListener2_1(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *ManagerClient) GetBatteryDischargePrediction(ctx context.Context) (int64, error)
- func (c *ManagerClient) GetCurrentThermalStatus(ctx context.Context) (int32, error)
- func (c *ManagerClient) GetLocationPowerSaveMode(ctx context.Context) (int32, error)
- func (c *ManagerClient) GetThermalHeadroom(ctx context.Context, arg0 int32) (float32, error)
- func (c *ManagerClient) IsAllowedInLowPowerStandby1(ctx context.Context, arg0 int32) (bool, error)
- func (c *ManagerClient) IsAllowedInLowPowerStandby1_1(ctx context.Context, arg0 string) (bool, error)
- func (c *ManagerClient) IsBatteryDischargePredictionPersonalized(ctx context.Context) (bool, error)
- func (c *ManagerClient) IsDeviceIdleMode(ctx context.Context) (bool, error)
- func (c *ManagerClient) IsDeviceLightIdleMode(ctx context.Context) (bool, error)
- func (c *ManagerClient) IsExemptFromLowPowerStandby(ctx context.Context) (bool, error)
- func (c *ManagerClient) IsIgnoringBatteryOptimizations(ctx context.Context, arg0 string) (bool, error)
- func (c *ManagerClient) IsInteractive(ctx context.Context) (bool, error)
- func (c *ManagerClient) IsLowPowerStandbyEnabled(ctx context.Context) (bool, error)
- func (c *ManagerClient) IsPowerSaveMode(ctx context.Context) (bool, error)
- func (c *ManagerClient) IsRebootingUserspaceSupported(ctx context.Context) (bool, error)
- func (c *ManagerClient) IsScreenOn(ctx context.Context) (bool, error)
- func (c *ManagerClient) IsSustainedPerformanceModeSupported(ctx context.Context) (bool, error)
- func (c *ManagerClient) IsWakeLockLevelSupported(ctx context.Context, arg0 int32) (bool, error)
- func (c *ManagerClient) NewWakeLock(ctx context.Context, arg0 int32, arg1 string) (int64, error)
- func (c *ManagerClient) Reboot(ctx context.Context, arg0 string) error
- func (c *ManagerClient) RemoveThermalHeadroomListener(ctx context.Context, arg0 int64) error
- func (c *ManagerClient) RemoveThermalStatusListener(ctx context.Context, arg0 int64) error
- type ManagerOnThermalStatusChangedListenerClient
- type ManagerWakeLockClient
- func (c *ManagerWakeLockClient) Acquire0(ctx context.Context) error
- func (c *ManagerWakeLockClient) Acquire1_1(ctx context.Context, arg0 int64) error
- func (c *ManagerWakeLockClient) IsHeld(ctx context.Context) (bool, error)
- func (c *ManagerWakeLockClient) Release0(ctx context.Context) error
- func (c *ManagerWakeLockClient) Release1_1(ctx context.Context, arg0 int32) error
- func (c *ManagerWakeLockClient) SetReferenceCounted(ctx context.Context, arg0 bool) error
- func (c *ManagerWakeLockClient) SetStateListener(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *ManagerWakeLockClient) SetWorkSource(ctx context.Context, arg0 int64) error
- func (c *ManagerWakeLockClient) ToString(ctx context.Context) (string, error)
- type ManagerWakeLockStateListenerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagerClient ¶ added in v0.0.6
type ManagerClient struct {
// contains filtered or unexported fields
}
ManagerClient wraps the gRPC ManagerService client.
func NewManagerClient ¶ added in v0.0.6
func NewManagerClient(cc grpc.ClientConnInterface) *ManagerClient
NewManagerClient creates a new Manager client.
func (*ManagerClient) AddThermalHeadroomListener1 ¶ added in v0.0.6
func (c *ManagerClient) AddThermalHeadroomListener1(ctx context.Context, arg0 int64) error
AddThermalHeadroomListener1 calls the AddThermalHeadroomListener1 RPC.
func (*ManagerClient) AddThermalHeadroomListener2_1 ¶ added in v0.0.6
func (c *ManagerClient) AddThermalHeadroomListener2_1(ctx context.Context, arg0 int64, arg1 int64) error
AddThermalHeadroomListener2_1 calls the AddThermalHeadroomListener2_1 RPC.
func (*ManagerClient) AddThermalStatusListener1 ¶ added in v0.0.6
func (c *ManagerClient) AddThermalStatusListener1(ctx context.Context, arg0 int64) error
AddThermalStatusListener1 calls the AddThermalStatusListener1 RPC.
func (*ManagerClient) AddThermalStatusListener2_1 ¶ added in v0.0.6
func (c *ManagerClient) AddThermalStatusListener2_1(ctx context.Context, arg0 int64, arg1 int64) error
AddThermalStatusListener2_1 calls the AddThermalStatusListener2_1 RPC.
func (*ManagerClient) GetBatteryDischargePrediction ¶ added in v0.0.6
func (c *ManagerClient) GetBatteryDischargePrediction(ctx context.Context) (int64, error)
GetBatteryDischargePrediction calls the GetBatteryDischargePrediction RPC.
func (*ManagerClient) GetCurrentThermalStatus ¶ added in v0.0.6
func (c *ManagerClient) GetCurrentThermalStatus(ctx context.Context) (int32, error)
GetCurrentThermalStatus calls the GetCurrentThermalStatus RPC.
func (*ManagerClient) GetLocationPowerSaveMode ¶ added in v0.0.6
func (c *ManagerClient) GetLocationPowerSaveMode(ctx context.Context) (int32, error)
GetLocationPowerSaveMode calls the GetLocationPowerSaveMode RPC.
func (*ManagerClient) GetThermalHeadroom ¶ added in v0.0.6
GetThermalHeadroom calls the GetThermalHeadroom RPC.
func (*ManagerClient) IsAllowedInLowPowerStandby1 ¶ added in v0.0.6
IsAllowedInLowPowerStandby1 calls the IsAllowedInLowPowerStandby1 RPC.
func (*ManagerClient) IsAllowedInLowPowerStandby1_1 ¶ added in v0.0.6
func (c *ManagerClient) IsAllowedInLowPowerStandby1_1(ctx context.Context, arg0 string) (bool, error)
IsAllowedInLowPowerStandby1_1 calls the IsAllowedInLowPowerStandby1_1 RPC.
func (*ManagerClient) IsBatteryDischargePredictionPersonalized ¶ added in v0.0.6
func (c *ManagerClient) IsBatteryDischargePredictionPersonalized(ctx context.Context) (bool, error)
IsBatteryDischargePredictionPersonalized calls the IsBatteryDischargePredictionPersonalized RPC.
func (*ManagerClient) IsDeviceIdleMode ¶ added in v0.0.6
func (c *ManagerClient) IsDeviceIdleMode(ctx context.Context) (bool, error)
IsDeviceIdleMode calls the IsDeviceIdleMode RPC.
func (*ManagerClient) IsDeviceLightIdleMode ¶ added in v0.0.6
func (c *ManagerClient) IsDeviceLightIdleMode(ctx context.Context) (bool, error)
IsDeviceLightIdleMode calls the IsDeviceLightIdleMode RPC.
func (*ManagerClient) IsExemptFromLowPowerStandby ¶ added in v0.0.6
func (c *ManagerClient) IsExemptFromLowPowerStandby(ctx context.Context) (bool, error)
IsExemptFromLowPowerStandby calls the IsExemptFromLowPowerStandby RPC.
func (*ManagerClient) IsIgnoringBatteryOptimizations ¶ added in v0.0.6
func (c *ManagerClient) IsIgnoringBatteryOptimizations(ctx context.Context, arg0 string) (bool, error)
IsIgnoringBatteryOptimizations calls the IsIgnoringBatteryOptimizations RPC.
func (*ManagerClient) IsInteractive ¶ added in v0.0.6
func (c *ManagerClient) IsInteractive(ctx context.Context) (bool, error)
IsInteractive calls the IsInteractive RPC.
func (*ManagerClient) IsLowPowerStandbyEnabled ¶ added in v0.0.6
func (c *ManagerClient) IsLowPowerStandbyEnabled(ctx context.Context) (bool, error)
IsLowPowerStandbyEnabled calls the IsLowPowerStandbyEnabled RPC.
func (*ManagerClient) IsPowerSaveMode ¶ added in v0.0.6
func (c *ManagerClient) IsPowerSaveMode(ctx context.Context) (bool, error)
IsPowerSaveMode calls the IsPowerSaveMode RPC.
func (*ManagerClient) IsRebootingUserspaceSupported ¶ added in v0.0.6
func (c *ManagerClient) IsRebootingUserspaceSupported(ctx context.Context) (bool, error)
IsRebootingUserspaceSupported calls the IsRebootingUserspaceSupported RPC.
func (*ManagerClient) IsScreenOn ¶ added in v0.0.6
func (c *ManagerClient) IsScreenOn(ctx context.Context) (bool, error)
IsScreenOn calls the IsScreenOn RPC.
func (*ManagerClient) IsSustainedPerformanceModeSupported ¶ added in v0.0.6
func (c *ManagerClient) IsSustainedPerformanceModeSupported(ctx context.Context) (bool, error)
IsSustainedPerformanceModeSupported calls the IsSustainedPerformanceModeSupported RPC.
func (*ManagerClient) IsWakeLockLevelSupported ¶ added in v0.0.6
IsWakeLockLevelSupported calls the IsWakeLockLevelSupported RPC.
func (*ManagerClient) NewWakeLock ¶ added in v0.0.6
NewWakeLock calls the NewWakeLock RPC.
func (*ManagerClient) Reboot ¶ added in v0.0.6
func (c *ManagerClient) Reboot(ctx context.Context, arg0 string) error
Reboot calls the Reboot RPC.
func (*ManagerClient) RemoveThermalHeadroomListener ¶ added in v0.0.6
func (c *ManagerClient) RemoveThermalHeadroomListener(ctx context.Context, arg0 int64) error
RemoveThermalHeadroomListener calls the RemoveThermalHeadroomListener RPC.
func (*ManagerClient) RemoveThermalStatusListener ¶ added in v0.0.6
func (c *ManagerClient) RemoveThermalStatusListener(ctx context.Context, arg0 int64) error
RemoveThermalStatusListener calls the RemoveThermalStatusListener RPC.
type ManagerOnThermalStatusChangedListenerClient ¶ added in v0.0.6
type ManagerOnThermalStatusChangedListenerClient struct {
// contains filtered or unexported fields
}
ManagerOnThermalStatusChangedListenerClient wraps the gRPC ManagerOnThermalStatusChangedListenerService client.
func NewManagerOnThermalStatusChangedListenerClient ¶ added in v0.0.6
func NewManagerOnThermalStatusChangedListenerClient(cc grpc.ClientConnInterface) *ManagerOnThermalStatusChangedListenerClient
NewManagerOnThermalStatusChangedListenerClient creates a new ManagerOnThermalStatusChangedListener client.
func (*ManagerOnThermalStatusChangedListenerClient) OnThermalStatusChanged ¶ added in v0.0.6
func (c *ManagerOnThermalStatusChangedListenerClient) OnThermalStatusChanged(ctx context.Context, arg0 int32) error
OnThermalStatusChanged calls the OnThermalStatusChanged RPC.
type ManagerWakeLockClient ¶ added in v0.0.6
type ManagerWakeLockClient struct {
// contains filtered or unexported fields
}
ManagerWakeLockClient wraps the gRPC ManagerWakeLockService client.
func NewManagerWakeLockClient ¶ added in v0.0.6
func NewManagerWakeLockClient(cc grpc.ClientConnInterface) *ManagerWakeLockClient
NewManagerWakeLockClient creates a new ManagerWakeLock client.
func (*ManagerWakeLockClient) Acquire0 ¶ added in v0.0.6
func (c *ManagerWakeLockClient) Acquire0(ctx context.Context) error
Acquire0 calls the Acquire0 RPC.
func (*ManagerWakeLockClient) Acquire1_1 ¶ added in v0.0.6
func (c *ManagerWakeLockClient) Acquire1_1(ctx context.Context, arg0 int64) error
Acquire1_1 calls the Acquire1_1 RPC.
func (*ManagerWakeLockClient) IsHeld ¶ added in v0.0.6
func (c *ManagerWakeLockClient) IsHeld(ctx context.Context) (bool, error)
IsHeld calls the IsHeld RPC.
func (*ManagerWakeLockClient) Release0 ¶ added in v0.0.6
func (c *ManagerWakeLockClient) Release0(ctx context.Context) error
Release0 calls the Release0 RPC.
func (*ManagerWakeLockClient) Release1_1 ¶ added in v0.0.6
func (c *ManagerWakeLockClient) Release1_1(ctx context.Context, arg0 int32) error
Release1_1 calls the Release1_1 RPC.
func (*ManagerWakeLockClient) SetReferenceCounted ¶ added in v0.0.6
func (c *ManagerWakeLockClient) SetReferenceCounted(ctx context.Context, arg0 bool) error
SetReferenceCounted calls the SetReferenceCounted RPC.
func (*ManagerWakeLockClient) SetStateListener ¶ added in v0.0.6
SetStateListener calls the SetStateListener RPC.
func (*ManagerWakeLockClient) SetWorkSource ¶ added in v0.0.6
func (c *ManagerWakeLockClient) SetWorkSource(ctx context.Context, arg0 int64) error
SetWorkSource calls the SetWorkSource RPC.
type ManagerWakeLockStateListenerClient ¶ added in v0.0.6
type ManagerWakeLockStateListenerClient struct {
// contains filtered or unexported fields
}
ManagerWakeLockStateListenerClient wraps the gRPC ManagerWakeLockStateListenerService client.
func NewManagerWakeLockStateListenerClient ¶ added in v0.0.6
func NewManagerWakeLockStateListenerClient(cc grpc.ClientConnInterface) *ManagerWakeLockStateListenerClient
NewManagerWakeLockStateListenerClient creates a new ManagerWakeLockStateListener client.
func (*ManagerWakeLockStateListenerClient) OnStateChanged ¶ added in v0.0.6
func (c *ManagerWakeLockStateListenerClient) OnStateChanged(ctx context.Context, arg0 bool) error
OnStateChanged calls the OnStateChanged RPC.