Documentation
¶
Index ¶
- type PowerManagerServer
- func (s *PowerManagerServer) AddThermalHeadroomListener1(_ context.Context, req *pb.AddThermalHeadroomListener1Request) (*pb.AddThermalHeadroomListener1Response, error)
- func (s *PowerManagerServer) AddThermalHeadroomListener2_1(_ context.Context, req *pb.AddThermalHeadroomListener2_1Request) (*pb.AddThermalHeadroomListener2_1Response, error)
- func (s *PowerManagerServer) AddThermalStatusListener1(_ context.Context, req *pb.AddThermalStatusListener1Request) (*pb.AddThermalStatusListener1Response, error)
- func (s *PowerManagerServer) AddThermalStatusListener2_1(_ context.Context, req *pb.AddThermalStatusListener2_1Request) (*pb.AddThermalStatusListener2_1Response, error)
- func (s *PowerManagerServer) GetBatteryDischargePrediction(_ context.Context, req *pb.GetBatteryDischargePredictionRequest) (*pb.GetBatteryDischargePredictionResponse, error)
- func (s *PowerManagerServer) GetCurrentThermalStatus(_ context.Context, req *pb.GetCurrentThermalStatusRequest) (*pb.GetCurrentThermalStatusResponse, error)
- func (s *PowerManagerServer) GetLocationPowerSaveMode(_ context.Context, req *pb.GetLocationPowerSaveModeRequest) (*pb.GetLocationPowerSaveModeResponse, error)
- func (s *PowerManagerServer) GetThermalHeadroom(_ context.Context, req *pb.GetThermalHeadroomRequest) (*pb.GetThermalHeadroomResponse, error)
- func (s *PowerManagerServer) IsAllowedInLowPowerStandby1(_ context.Context, req *pb.IsAllowedInLowPowerStandby1Request) (*pb.IsAllowedInLowPowerStandby1Response, error)
- func (s *PowerManagerServer) IsAllowedInLowPowerStandby1_1(_ context.Context, req *pb.IsAllowedInLowPowerStandby1_1Request) (*pb.IsAllowedInLowPowerStandby1_1Response, error)
- func (s *PowerManagerServer) IsBatteryDischargePredictionPersonalized(_ context.Context, req *pb.IsBatteryDischargePredictionPersonalizedRequest) (*pb.IsBatteryDischargePredictionPersonalizedResponse, error)
- func (s *PowerManagerServer) IsDeviceIdleMode(_ context.Context, req *pb.IsDeviceIdleModeRequest) (*pb.IsDeviceIdleModeResponse, error)
- func (s *PowerManagerServer) IsDeviceLightIdleMode(_ context.Context, req *pb.IsDeviceLightIdleModeRequest) (*pb.IsDeviceLightIdleModeResponse, error)
- func (s *PowerManagerServer) IsExemptFromLowPowerStandby(_ context.Context, req *pb.IsExemptFromLowPowerStandbyRequest) (*pb.IsExemptFromLowPowerStandbyResponse, error)
- func (s *PowerManagerServer) IsIgnoringBatteryOptimizations(_ context.Context, req *pb.IsIgnoringBatteryOptimizationsRequest) (*pb.IsIgnoringBatteryOptimizationsResponse, error)
- func (s *PowerManagerServer) IsInteractive(_ context.Context, req *pb.IsInteractiveRequest) (*pb.IsInteractiveResponse, error)
- func (s *PowerManagerServer) IsLowPowerStandbyEnabled(_ context.Context, req *pb.IsLowPowerStandbyEnabledRequest) (*pb.IsLowPowerStandbyEnabledResponse, error)
- func (s *PowerManagerServer) IsPowerSaveMode(_ context.Context, req *pb.IsPowerSaveModeRequest) (*pb.IsPowerSaveModeResponse, error)
- func (s *PowerManagerServer) IsRebootingUserspaceSupported(_ context.Context, req *pb.IsRebootingUserspaceSupportedRequest) (*pb.IsRebootingUserspaceSupportedResponse, error)
- func (s *PowerManagerServer) IsScreenOn(_ context.Context, req *pb.IsScreenOnRequest) (*pb.IsScreenOnResponse, error)
- func (s *PowerManagerServer) IsSustainedPerformanceModeSupported(_ context.Context, req *pb.IsSustainedPerformanceModeSupportedRequest) (*pb.IsSustainedPerformanceModeSupportedResponse, error)
- func (s *PowerManagerServer) IsWakeLockLevelSupported(_ context.Context, req *pb.IsWakeLockLevelSupportedRequest) (*pb.IsWakeLockLevelSupportedResponse, error)
- func (s *PowerManagerServer) NewWakeLock(_ context.Context, req *pb.NewWakeLockRequest) (*pb.NewWakeLockResponse, error)
- func (s *PowerManagerServer) Reboot(_ context.Context, req *pb.RebootRequest) (*pb.RebootResponse, error)
- func (s *PowerManagerServer) RemoveThermalHeadroomListener(_ context.Context, req *pb.RemoveThermalHeadroomListenerRequest) (*pb.RemoveThermalHeadroomListenerResponse, error)
- func (s *PowerManagerServer) RemoveThermalStatusListener(_ context.Context, req *pb.RemoveThermalStatusListenerRequest) (*pb.RemoveThermalStatusListenerResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PowerManagerServer ¶
type PowerManagerServer struct {
pb.UnimplementedPowerManagerServiceServer
Ctx *app.Context
Handles *handlestore.HandleStore
}
PowerManagerServer implements pb.PowerManagerServiceServer.
func (*PowerManagerServer) AddThermalHeadroomListener1 ¶
func (s *PowerManagerServer) AddThermalHeadroomListener1(_ context.Context, req *pb.AddThermalHeadroomListener1Request) (*pb.AddThermalHeadroomListener1Response, error)
func (*PowerManagerServer) AddThermalHeadroomListener2_1 ¶
func (s *PowerManagerServer) AddThermalHeadroomListener2_1(_ context.Context, req *pb.AddThermalHeadroomListener2_1Request) (*pb.AddThermalHeadroomListener2_1Response, error)
func (*PowerManagerServer) AddThermalStatusListener1 ¶
func (s *PowerManagerServer) AddThermalStatusListener1(_ context.Context, req *pb.AddThermalStatusListener1Request) (*pb.AddThermalStatusListener1Response, error)
func (*PowerManagerServer) AddThermalStatusListener2_1 ¶
func (s *PowerManagerServer) AddThermalStatusListener2_1(_ context.Context, req *pb.AddThermalStatusListener2_1Request) (*pb.AddThermalStatusListener2_1Response, error)
func (*PowerManagerServer) GetBatteryDischargePrediction ¶
func (s *PowerManagerServer) GetBatteryDischargePrediction(_ context.Context, req *pb.GetBatteryDischargePredictionRequest) (*pb.GetBatteryDischargePredictionResponse, error)
func (*PowerManagerServer) GetCurrentThermalStatus ¶
func (s *PowerManagerServer) GetCurrentThermalStatus(_ context.Context, req *pb.GetCurrentThermalStatusRequest) (*pb.GetCurrentThermalStatusResponse, error)
func (*PowerManagerServer) GetLocationPowerSaveMode ¶
func (s *PowerManagerServer) GetLocationPowerSaveMode(_ context.Context, req *pb.GetLocationPowerSaveModeRequest) (*pb.GetLocationPowerSaveModeResponse, error)
func (*PowerManagerServer) GetThermalHeadroom ¶
func (s *PowerManagerServer) GetThermalHeadroom(_ context.Context, req *pb.GetThermalHeadroomRequest) (*pb.GetThermalHeadroomResponse, error)
func (*PowerManagerServer) IsAllowedInLowPowerStandby1 ¶
func (s *PowerManagerServer) IsAllowedInLowPowerStandby1(_ context.Context, req *pb.IsAllowedInLowPowerStandby1Request) (*pb.IsAllowedInLowPowerStandby1Response, error)
func (*PowerManagerServer) IsAllowedInLowPowerStandby1_1 ¶
func (s *PowerManagerServer) IsAllowedInLowPowerStandby1_1(_ context.Context, req *pb.IsAllowedInLowPowerStandby1_1Request) (*pb.IsAllowedInLowPowerStandby1_1Response, error)
func (*PowerManagerServer) IsBatteryDischargePredictionPersonalized ¶
func (s *PowerManagerServer) IsBatteryDischargePredictionPersonalized(_ context.Context, req *pb.IsBatteryDischargePredictionPersonalizedRequest) (*pb.IsBatteryDischargePredictionPersonalizedResponse, error)
func (*PowerManagerServer) IsDeviceIdleMode ¶
func (s *PowerManagerServer) IsDeviceIdleMode(_ context.Context, req *pb.IsDeviceIdleModeRequest) (*pb.IsDeviceIdleModeResponse, error)
func (*PowerManagerServer) IsDeviceLightIdleMode ¶
func (s *PowerManagerServer) IsDeviceLightIdleMode(_ context.Context, req *pb.IsDeviceLightIdleModeRequest) (*pb.IsDeviceLightIdleModeResponse, error)
func (*PowerManagerServer) IsExemptFromLowPowerStandby ¶
func (s *PowerManagerServer) IsExemptFromLowPowerStandby(_ context.Context, req *pb.IsExemptFromLowPowerStandbyRequest) (*pb.IsExemptFromLowPowerStandbyResponse, error)
func (*PowerManagerServer) IsIgnoringBatteryOptimizations ¶
func (s *PowerManagerServer) IsIgnoringBatteryOptimizations(_ context.Context, req *pb.IsIgnoringBatteryOptimizationsRequest) (*pb.IsIgnoringBatteryOptimizationsResponse, error)
func (*PowerManagerServer) IsInteractive ¶
func (s *PowerManagerServer) IsInteractive(_ context.Context, req *pb.IsInteractiveRequest) (*pb.IsInteractiveResponse, error)
func (*PowerManagerServer) IsLowPowerStandbyEnabled ¶
func (s *PowerManagerServer) IsLowPowerStandbyEnabled(_ context.Context, req *pb.IsLowPowerStandbyEnabledRequest) (*pb.IsLowPowerStandbyEnabledResponse, error)
func (*PowerManagerServer) IsPowerSaveMode ¶
func (s *PowerManagerServer) IsPowerSaveMode(_ context.Context, req *pb.IsPowerSaveModeRequest) (*pb.IsPowerSaveModeResponse, error)
func (*PowerManagerServer) IsRebootingUserspaceSupported ¶
func (s *PowerManagerServer) IsRebootingUserspaceSupported(_ context.Context, req *pb.IsRebootingUserspaceSupportedRequest) (*pb.IsRebootingUserspaceSupportedResponse, error)
func (*PowerManagerServer) IsScreenOn ¶
func (s *PowerManagerServer) IsScreenOn(_ context.Context, req *pb.IsScreenOnRequest) (*pb.IsScreenOnResponse, error)
func (*PowerManagerServer) IsSustainedPerformanceModeSupported ¶
func (s *PowerManagerServer) IsSustainedPerformanceModeSupported(_ context.Context, req *pb.IsSustainedPerformanceModeSupportedRequest) (*pb.IsSustainedPerformanceModeSupportedResponse, error)
func (*PowerManagerServer) IsWakeLockLevelSupported ¶
func (s *PowerManagerServer) IsWakeLockLevelSupported(_ context.Context, req *pb.IsWakeLockLevelSupportedRequest) (*pb.IsWakeLockLevelSupportedResponse, error)
func (*PowerManagerServer) NewWakeLock ¶
func (s *PowerManagerServer) NewWakeLock(_ context.Context, req *pb.NewWakeLockRequest) (*pb.NewWakeLockResponse, error)
func (*PowerManagerServer) Reboot ¶
func (s *PowerManagerServer) Reboot(_ context.Context, req *pb.RebootRequest) (*pb.RebootResponse, error)
func (*PowerManagerServer) RemoveThermalHeadroomListener ¶
func (s *PowerManagerServer) RemoveThermalHeadroomListener(_ context.Context, req *pb.RemoveThermalHeadroomListenerRequest) (*pb.RemoveThermalHeadroomListenerResponse, error)
func (*PowerManagerServer) RemoveThermalStatusListener ¶
func (s *PowerManagerServer) RemoveThermalStatusListener(_ context.Context, req *pb.RemoveThermalStatusListenerRequest) (*pb.RemoveThermalStatusListenerResponse, error)
Click to show internal directories.
Click to hide internal directories.