Documentation
¶
Index ¶
- Constants
- type ITimeZoneDetectorService
- type ITimeZoneDetectorServiceServer
- type ManualTimeZoneSuggestion
- type TelephonyTimeZoneSuggestion
- type TimeZoneDetectorServiceProxy
- func (p *TimeZoneDetectorServiceProxy) AddListener(ctx context.Context, listener time.ITimeZoneDetectorListener) error
- func (p *TimeZoneDetectorServiceProxy) AsBinder() binder.IBinder
- func (p *TimeZoneDetectorServiceProxy) ConfirmTimeZone(ctx context.Context, timeZoneId string) (bool, error)
- func (p *TimeZoneDetectorServiceProxy) GetCapabilitiesAndConfig(ctx context.Context) (time.TimeZoneCapabilitiesAndConfig, error)
- func (p *TimeZoneDetectorServiceProxy) GetTimeZoneState(ctx context.Context) (time.TimeZoneState, error)
- func (p *TimeZoneDetectorServiceProxy) RemoveListener(ctx context.Context, listener time.ITimeZoneDetectorListener) error
- func (p *TimeZoneDetectorServiceProxy) SetManualTimeZone(ctx context.Context, timeZoneSuggestion ManualTimeZoneSuggestion) (bool, error)
- func (p *TimeZoneDetectorServiceProxy) SuggestManualTimeZone(ctx context.Context, timeZoneSuggestion ManualTimeZoneSuggestion) (bool, error)
- func (p *TimeZoneDetectorServiceProxy) SuggestTelephonyTimeZone(ctx context.Context, timeZoneSuggestion TelephonyTimeZoneSuggestion) error
- func (p *TimeZoneDetectorServiceProxy) UpdateConfiguration(ctx context.Context, configuration time.TimeZoneConfiguration) (bool, error)
- type TimeZoneDetectorServiceStub
Constants ¶
const ( TransactionITimeZoneDetectorServiceGetCapabilitiesAndConfig = binder.FirstCallTransaction + 0 TransactionITimeZoneDetectorServiceAddListener = binder.FirstCallTransaction + 1 TransactionITimeZoneDetectorServiceRemoveListener = binder.FirstCallTransaction + 2 TransactionITimeZoneDetectorServiceUpdateConfiguration = binder.FirstCallTransaction + 3 TransactionITimeZoneDetectorServiceGetTimeZoneState = binder.FirstCallTransaction + 4 TransactionITimeZoneDetectorServiceConfirmTimeZone = binder.FirstCallTransaction + 5 TransactionITimeZoneDetectorServiceSetManualTimeZone = binder.FirstCallTransaction + 6 TransactionITimeZoneDetectorServiceSuggestManualTimeZone = binder.FirstCallTransaction + 7 TransactionITimeZoneDetectorServiceSuggestTelephonyTimeZone = binder.FirstCallTransaction + 8 )
const ( MethodITimeZoneDetectorServiceGetCapabilitiesAndConfig = "getCapabilitiesAndConfig" MethodITimeZoneDetectorServiceAddListener = "addListener" MethodITimeZoneDetectorServiceRemoveListener = "removeListener" MethodITimeZoneDetectorServiceUpdateConfiguration = "updateConfiguration" MethodITimeZoneDetectorServiceGetTimeZoneState = "getTimeZoneState" MethodITimeZoneDetectorServiceConfirmTimeZone = "confirmTimeZone" MethodITimeZoneDetectorServiceSetManualTimeZone = "setManualTimeZone" MethodITimeZoneDetectorServiceSuggestManualTimeZone = "suggestManualTimeZone" MethodITimeZoneDetectorServiceSuggestTelephonyTimeZone = "suggestTelephonyTimeZone" )
const DescriptorITimeZoneDetectorService = "android.app.timezonedetector.ITimeZoneDetectorService"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITimeZoneDetectorService ¶
type ITimeZoneDetectorService interface {
AsBinder() binder.IBinder
GetCapabilitiesAndConfig(ctx context.Context) (time.TimeZoneCapabilitiesAndConfig, error)
AddListener(ctx context.Context, listener time.ITimeZoneDetectorListener) error
RemoveListener(ctx context.Context, listener time.ITimeZoneDetectorListener) error
UpdateConfiguration(ctx context.Context, configuration time.TimeZoneConfiguration) (bool, error)
GetTimeZoneState(ctx context.Context) (time.TimeZoneState, error)
ConfirmTimeZone(ctx context.Context, timeZoneId string) (bool, error)
SetManualTimeZone(ctx context.Context, timeZoneSuggestion ManualTimeZoneSuggestion) (bool, error)
SuggestManualTimeZone(ctx context.Context, timeZoneSuggestion ManualTimeZoneSuggestion) (bool, error)
SuggestTelephonyTimeZone(ctx context.Context, timeZoneSuggestion TelephonyTimeZoneSuggestion) error
}
func NewTimeZoneDetectorServiceStub ¶
func NewTimeZoneDetectorServiceStub( impl ITimeZoneDetectorServiceServer, ) ITimeZoneDetectorService
NewTimeZoneDetectorServiceStub creates a server-side ITimeZoneDetectorService wrapping the given server implementation. The returned value satisfies ITimeZoneDetectorService and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type ITimeZoneDetectorServiceServer ¶
type ITimeZoneDetectorServiceServer interface {
GetCapabilitiesAndConfig(ctx context.Context) (time.TimeZoneCapabilitiesAndConfig, error)
AddListener(ctx context.Context, listener time.ITimeZoneDetectorListener) error
RemoveListener(ctx context.Context, listener time.ITimeZoneDetectorListener) error
UpdateConfiguration(ctx context.Context, configuration time.TimeZoneConfiguration) (bool, error)
GetTimeZoneState(ctx context.Context) (time.TimeZoneState, error)
ConfirmTimeZone(ctx context.Context, timeZoneId string) (bool, error)
SetManualTimeZone(ctx context.Context, timeZoneSuggestion ManualTimeZoneSuggestion) (bool, error)
SuggestManualTimeZone(ctx context.Context, timeZoneSuggestion ManualTimeZoneSuggestion) (bool, error)
SuggestTelephonyTimeZone(ctx context.Context, timeZoneSuggestion TelephonyTimeZoneSuggestion) error
}
ITimeZoneDetectorServiceServer is the server-side interface that user implementations provide to NewTimeZoneDetectorServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type ManualTimeZoneSuggestion ¶
type ManualTimeZoneSuggestion struct {
ZoneId string
}
func (*ManualTimeZoneSuggestion) MarshalParcel ¶
func (s *ManualTimeZoneSuggestion) MarshalParcel( p *parcel.Parcel, ) error
func (*ManualTimeZoneSuggestion) UnmarshalParcel ¶
func (s *ManualTimeZoneSuggestion) UnmarshalParcel( p *parcel.Parcel, ) error
type TelephonyTimeZoneSuggestion ¶
type TelephonyTimeZoneSuggestion struct {
SlotIndex int32
ZoneId string
MatchType int32
Quality int32
}
func (*TelephonyTimeZoneSuggestion) MarshalParcel ¶
func (s *TelephonyTimeZoneSuggestion) MarshalParcel( p *parcel.Parcel, ) error
func (*TelephonyTimeZoneSuggestion) UnmarshalParcel ¶
func (s *TelephonyTimeZoneSuggestion) UnmarshalParcel( p *parcel.Parcel, ) error
type TimeZoneDetectorServiceProxy ¶
func NewTimeZoneDetectorServiceProxy ¶
func NewTimeZoneDetectorServiceProxy( remote binder.IBinder, ) *TimeZoneDetectorServiceProxy
func (*TimeZoneDetectorServiceProxy) AddListener ¶
func (p *TimeZoneDetectorServiceProxy) AddListener( ctx context.Context, listener time.ITimeZoneDetectorListener, ) error
func (*TimeZoneDetectorServiceProxy) AsBinder ¶
func (p *TimeZoneDetectorServiceProxy) AsBinder() binder.IBinder
func (*TimeZoneDetectorServiceProxy) ConfirmTimeZone ¶
func (*TimeZoneDetectorServiceProxy) GetCapabilitiesAndConfig ¶
func (p *TimeZoneDetectorServiceProxy) GetCapabilitiesAndConfig( ctx context.Context, ) (time.TimeZoneCapabilitiesAndConfig, error)
func (*TimeZoneDetectorServiceProxy) GetTimeZoneState ¶
func (p *TimeZoneDetectorServiceProxy) GetTimeZoneState( ctx context.Context, ) (time.TimeZoneState, error)
func (*TimeZoneDetectorServiceProxy) RemoveListener ¶
func (p *TimeZoneDetectorServiceProxy) RemoveListener( ctx context.Context, listener time.ITimeZoneDetectorListener, ) error
func (*TimeZoneDetectorServiceProxy) SetManualTimeZone ¶
func (p *TimeZoneDetectorServiceProxy) SetManualTimeZone( ctx context.Context, timeZoneSuggestion ManualTimeZoneSuggestion, ) (bool, error)
func (*TimeZoneDetectorServiceProxy) SuggestManualTimeZone ¶
func (p *TimeZoneDetectorServiceProxy) SuggestManualTimeZone( ctx context.Context, timeZoneSuggestion ManualTimeZoneSuggestion, ) (bool, error)
func (*TimeZoneDetectorServiceProxy) SuggestTelephonyTimeZone ¶
func (p *TimeZoneDetectorServiceProxy) SuggestTelephonyTimeZone( ctx context.Context, timeZoneSuggestion TelephonyTimeZoneSuggestion, ) error
func (*TimeZoneDetectorServiceProxy) UpdateConfiguration ¶
func (p *TimeZoneDetectorServiceProxy) UpdateConfiguration( ctx context.Context, configuration time.TimeZoneConfiguration, ) (bool, error)
type TimeZoneDetectorServiceStub ¶
type TimeZoneDetectorServiceStub struct {
Impl ITimeZoneDetectorService
Transport binder.VersionAwareTransport
}
TimeZoneDetectorServiceStub dispatches incoming binder transactions to a typed ITimeZoneDetectorService implementation.
func (*TimeZoneDetectorServiceStub) Descriptor ¶
func (s *TimeZoneDetectorServiceStub) Descriptor() string
func (*TimeZoneDetectorServiceStub) OnTransaction ¶
func (s *TimeZoneDetectorServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)