Help us shape the future of Go! Take the 2026 Go Developer Survey

time

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DescriptorITimeDetectorListener = "android.app.time.ITimeDetectorListener"
View Source
const DescriptorITimeZoneDetectorListener = "android.app.time.ITimeZoneDetectorListener"
View Source
const (
	MethodITimeDetectorListenerOnChange = "onChange"
)
View Source
const (
	MethodITimeZoneDetectorListenerOnChange = "onChange"
)
View Source
const (
	TransactionITimeDetectorListenerOnChange = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionITimeZoneDetectorListenerOnChange = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalTimeSuggestion

type ExternalTimeSuggestion struct {
}

func (*ExternalTimeSuggestion) MarshalParcel

func (s *ExternalTimeSuggestion) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ExternalTimeSuggestion) UnmarshalParcel

func (s *ExternalTimeSuggestion) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ITimeDetectorListener

type ITimeDetectorListener interface {
	AsBinder() binder.IBinder
	OnChange(ctx context.Context) error
}

func NewTimeDetectorListenerStub

func NewTimeDetectorListenerStub(
	impl ITimeDetectorListenerServer,
) ITimeDetectorListener

NewTimeDetectorListenerStub creates a server-side ITimeDetectorListener wrapping the given server implementation. The returned value satisfies ITimeDetectorListener 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 ITimeDetectorListenerServer

type ITimeDetectorListenerServer interface {
	OnChange(ctx context.Context) error
}

ITimeDetectorListenerServer is the server-side interface that user implementations provide to NewTimeDetectorListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type ITimeZoneDetectorListener

type ITimeZoneDetectorListener interface {
	AsBinder() binder.IBinder
	OnChange(ctx context.Context) error
}

func NewTimeZoneDetectorListenerStub

func NewTimeZoneDetectorListenerStub(
	impl ITimeZoneDetectorListenerServer,
) ITimeZoneDetectorListener

NewTimeZoneDetectorListenerStub creates a server-side ITimeZoneDetectorListener wrapping the given server implementation. The returned value satisfies ITimeZoneDetectorListener 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 ITimeZoneDetectorListenerServer

type ITimeZoneDetectorListenerServer interface {
	OnChange(ctx context.Context) error
}

ITimeZoneDetectorListenerServer is the server-side interface that user implementations provide to NewTimeZoneDetectorListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type LocationTimeZoneAlgorithmStatus

type LocationTimeZoneAlgorithmStatus struct {
	Status                  int32
	PrimaryProviderStatus   int32
	SecondaryProviderStatus int32
}

func (*LocationTimeZoneAlgorithmStatus) MarshalParcel

func (s *LocationTimeZoneAlgorithmStatus) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LocationTimeZoneAlgorithmStatus) UnmarshalParcel

func (s *LocationTimeZoneAlgorithmStatus) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TelephonyTimeZoneAlgorithmStatus

type TelephonyTimeZoneAlgorithmStatus struct {
	AlgorithmStatus int32
}

func (*TelephonyTimeZoneAlgorithmStatus) MarshalParcel

func (s *TelephonyTimeZoneAlgorithmStatus) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TelephonyTimeZoneAlgorithmStatus) UnmarshalParcel

func (s *TelephonyTimeZoneAlgorithmStatus) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TimeCapabilities

type TimeCapabilities struct {
	ConfigureAutoDetectionEnabledCapability int32
	SetManualTimeCapability                 int32
	UserHandle                              os.UserHandle
}

func (*TimeCapabilities) MarshalParcel

func (s *TimeCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TimeCapabilities) UnmarshalParcel

func (s *TimeCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TimeCapabilitiesAndConfig

type TimeCapabilitiesAndConfig struct {
	Capabilities  *neuralnetworks.Capabilities
	Configuration *res.Configuration
}

func (*TimeCapabilitiesAndConfig) MarshalParcel

func (s *TimeCapabilitiesAndConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TimeCapabilitiesAndConfig) UnmarshalParcel

func (s *TimeCapabilitiesAndConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TimeConfiguration

type TimeConfiguration struct {
}

func (*TimeConfiguration) MarshalParcel

func (s *TimeConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TimeConfiguration) UnmarshalParcel

func (s *TimeConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TimeDetectorListenerProxy

type TimeDetectorListenerProxy struct {
	Remote binder.IBinder
}

func NewTimeDetectorListenerProxy

func NewTimeDetectorListenerProxy(
	remote binder.IBinder,
) *TimeDetectorListenerProxy

func (*TimeDetectorListenerProxy) AsBinder

func (*TimeDetectorListenerProxy) OnChange

func (p *TimeDetectorListenerProxy) OnChange(
	ctx context.Context,
) error

type TimeDetectorListenerStub

type TimeDetectorListenerStub struct {
	Impl      ITimeDetectorListener
	Transport binder.VersionAwareTransport
}

TimeDetectorListenerStub dispatches incoming binder transactions to a typed ITimeDetectorListener implementation.

func (*TimeDetectorListenerStub) Descriptor

func (s *TimeDetectorListenerStub) Descriptor() string

func (*TimeDetectorListenerStub) OnTransaction

func (s *TimeDetectorListenerStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type TimeState

type TimeState struct {
	UserShouldConfirmTime bool
	UnixEpochTime         *UnixEpochTime
}

func (*TimeState) MarshalParcel

func (s *TimeState) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TimeState) UnmarshalParcel

func (s *TimeState) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TimeZoneCapabilities

type TimeZoneCapabilities struct {
	ConfigureAutoDetectionEnabledCapability int32
	UseLocationEnabled                      bool
	ConfigureGeoDetectionEnabledCapability  int32
	SetManualTimeZoneCapability             int32
	UserHandle                              os.UserHandle
}

func (*TimeZoneCapabilities) MarshalParcel

func (s *TimeZoneCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TimeZoneCapabilities) UnmarshalParcel

func (s *TimeZoneCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TimeZoneCapabilitiesAndConfig

type TimeZoneCapabilitiesAndConfig struct {
	Capabilities  *neuralnetworks.Capabilities
	Configuration *res.Configuration
}

func (*TimeZoneCapabilitiesAndConfig) MarshalParcel

func (s *TimeZoneCapabilitiesAndConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TimeZoneCapabilitiesAndConfig) UnmarshalParcel

func (s *TimeZoneCapabilitiesAndConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TimeZoneConfiguration

type TimeZoneConfiguration struct {
}

func (*TimeZoneConfiguration) MarshalParcel

func (s *TimeZoneConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TimeZoneConfiguration) UnmarshalParcel

func (s *TimeZoneConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TimeZoneDetectorListenerProxy

type TimeZoneDetectorListenerProxy struct {
	Remote binder.IBinder
}

func NewTimeZoneDetectorListenerProxy

func NewTimeZoneDetectorListenerProxy(
	remote binder.IBinder,
) *TimeZoneDetectorListenerProxy

func (*TimeZoneDetectorListenerProxy) AsBinder

func (*TimeZoneDetectorListenerProxy) OnChange

func (p *TimeZoneDetectorListenerProxy) OnChange(
	ctx context.Context,
) error

type TimeZoneDetectorListenerStub

type TimeZoneDetectorListenerStub struct {
	Impl      ITimeZoneDetectorListener
	Transport binder.VersionAwareTransport
}

TimeZoneDetectorListenerStub dispatches incoming binder transactions to a typed ITimeZoneDetectorListener implementation.

func (*TimeZoneDetectorListenerStub) Descriptor

func (s *TimeZoneDetectorListenerStub) Descriptor() string

func (*TimeZoneDetectorListenerStub) OnTransaction

type TimeZoneDetectorStatus

type TimeZoneDetectorStatus struct {
	DetectorStatus                   int32
	TelephonyTimeZoneAlgorithmStatus *TelephonyTimeZoneAlgorithmStatus
	LocationTimeZoneAlgorithmStatus  *LocationTimeZoneAlgorithmStatus
}

func (*TimeZoneDetectorStatus) MarshalParcel

func (s *TimeZoneDetectorStatus) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TimeZoneDetectorStatus) UnmarshalParcel

func (s *TimeZoneDetectorStatus) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TimeZoneState

type TimeZoneState struct {
	Id                  string
	UserShouldConfirmId bool
}

func (*TimeZoneState) MarshalParcel

func (s *TimeZoneState) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TimeZoneState) UnmarshalParcel

func (s *TimeZoneState) UnmarshalParcel(
	p *parcel.Parcel,
) error

type UnixEpochTime

type UnixEpochTime struct {
	ElapsedRealtimeMillis int64
	UnixEpochTimeMillis   int64
}

func (*UnixEpochTime) MarshalParcel

func (s *UnixEpochTime) MarshalParcel(
	p *parcel.Parcel,
) error

func (*UnixEpochTime) UnmarshalParcel

func (s *UnixEpochTime) UnmarshalParcel(
	p *parcel.Parcel,
) error

Jump to

Keyboard shortcuts

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