timezonedetector

package
v0.0.6 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: 5 Imported by: 0

Documentation

Index

Constants

View Source
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
)
View Source
const (
	MethodITimeZoneDetectorServiceGetCapabilitiesAndConfig = "getCapabilitiesAndConfig"
	MethodITimeZoneDetectorServiceAddListener              = "addListener"
	MethodITimeZoneDetectorServiceRemoveListener           = "removeListener"
	MethodITimeZoneDetectorServiceUpdateConfiguration      = "updateConfiguration"
	MethodITimeZoneDetectorServiceGetTimeZoneState         = "getTimeZoneState"
	MethodITimeZoneDetectorServiceConfirmTimeZone          = "confirmTimeZone"
	MethodITimeZoneDetectorServiceSetManualTimeZone        = "setManualTimeZone"
	MethodITimeZoneDetectorServiceSuggestManualTimeZone    = "suggestManualTimeZone"
	MethodITimeZoneDetectorServiceSuggestTelephonyTimeZone = "suggestTelephonyTimeZone"
)
View Source
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

type TimeZoneDetectorServiceProxy struct {
	Remote binder.IBinder
}

func NewTimeZoneDetectorServiceProxy

func NewTimeZoneDetectorServiceProxy(
	remote binder.IBinder,
) *TimeZoneDetectorServiceProxy

func (*TimeZoneDetectorServiceProxy) AddListener

func (*TimeZoneDetectorServiceProxy) AsBinder

func (*TimeZoneDetectorServiceProxy) ConfirmTimeZone

func (p *TimeZoneDetectorServiceProxy) ConfirmTimeZone(
	ctx context.Context,
	timeZoneId string,
) (bool, error)

func (*TimeZoneDetectorServiceProxy) GetCapabilitiesAndConfig

func (*TimeZoneDetectorServiceProxy) GetTimeZoneState

func (p *TimeZoneDetectorServiceProxy) GetTimeZoneState(
	ctx context.Context,
) (time.TimeZoneState, error)

func (*TimeZoneDetectorServiceProxy) RemoveListener

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)

Jump to

Keyboard shortcuts

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