carrier

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Overview

Package carrier provides Go bindings for android.service.carrier.

Index

Constants

View Source
const (
	CarrierServiceInterface = consts.CarrierServiceInterface
	ServiceInterface        = consts.ServiceInterface
)
View Source
const (
	DownloadStatusError                                               = consts.DownloadStatusError
	DownloadStatusMmsErrorConfigurationError                          = consts.DownloadStatusMmsErrorConfigurationError
	DownloadStatusMmsErrorDataDisabled                                = consts.DownloadStatusMmsErrorDataDisabled
	DownloadStatusMmsErrorHttpFailure                                 = consts.DownloadStatusMmsErrorHttpFailure
	DownloadStatusMmsErrorInactiveSubscription                        = consts.DownloadStatusMmsErrorInactiveSubscription
	DownloadStatusMmsErrorInvalidApn                                  = consts.DownloadStatusMmsErrorInvalidApn
	DownloadStatusMmsErrorInvalidSubscriptionId                       = consts.DownloadStatusMmsErrorInvalidSubscriptionId
	DownloadStatusMmsErrorIoError                                     = consts.DownloadStatusMmsErrorIoError
	DownloadStatusMmsErrorMmsDisabledByCarrier                        = consts.DownloadStatusMmsErrorMmsDisabledByCarrier
	DownloadStatusMmsErrorNoDataNetwork                               = consts.DownloadStatusMmsErrorNoDataNetwork
	DownloadStatusMmsErrorRetry                                       = consts.DownloadStatusMmsErrorRetry
	DownloadStatusMmsErrorUnableConnectMms                            = consts.DownloadStatusMmsErrorUnableConnectMms
	DownloadStatusMmsErrorUnspecified                                 = consts.DownloadStatusMmsErrorUnspecified
	DownloadStatusOk                                                  = consts.DownloadStatusOk
	DownloadStatusRetryOnCarrierNetwork                               = consts.DownloadStatusRetryOnCarrierNetwork
	ReceiveOptionsDefault                                             = consts.ReceiveOptionsDefault
	ReceiveOptionsDrop                                                = consts.ReceiveOptionsDrop
	ReceiveOptionsSkipNotifyWhenCredentialProtectedStorageUnavailable = consts.ReceiveOptionsSkipNotifyWhenCredentialProtectedStorageUnavailable
	SendFlagRequestDeliveryStatus                                     = consts.SendFlagRequestDeliveryStatus
	SendStatusError                                                   = consts.SendStatusError
	SendStatusMmsErrorConfigurationError                              = consts.SendStatusMmsErrorConfigurationError
	SendStatusMmsErrorDataDisabled                                    = consts.SendStatusMmsErrorDataDisabled
	SendStatusMmsErrorHttpFailure                                     = consts.SendStatusMmsErrorHttpFailure
	SendStatusMmsErrorInactiveSubscription                            = consts.SendStatusMmsErrorInactiveSubscription
	SendStatusMmsErrorInvalidApn                                      = consts.SendStatusMmsErrorInvalidApn
	SendStatusMmsErrorInvalidSubscriptionId                           = consts.SendStatusMmsErrorInvalidSubscriptionId
	SendStatusMmsErrorIoError                                         = consts.SendStatusMmsErrorIoError
	SendStatusMmsErrorMmsDisabledByCarrier                            = consts.SendStatusMmsErrorMmsDisabledByCarrier
	SendStatusMmsErrorNoDataNetwork                                   = consts.SendStatusMmsErrorNoDataNetwork
	SendStatusMmsErrorRetry                                           = consts.SendStatusMmsErrorRetry
	SendStatusMmsErrorUnableConnectMms                                = consts.SendStatusMmsErrorUnableConnectMms
	SendStatusMmsErrorUnspecified                                     = consts.SendStatusMmsErrorUnspecified
	SendStatusOk                                                      = consts.SendStatusOk
	SendStatusResultCancelled                                         = consts.SendStatusResultCancelled
	SendStatusResultEncodingError                                     = consts.SendStatusResultEncodingError
	SendStatusResultErrorFdnCheckFailure                              = consts.SendStatusResultErrorFdnCheckFailure
	SendStatusResultErrorGenericFailure                               = consts.SendStatusResultErrorGenericFailure
	SendStatusResultErrorLimitExceeded                                = consts.SendStatusResultErrorLimitExceeded
	SendStatusResultErrorNoService                                    = consts.SendStatusResultErrorNoService
	SendStatusResultErrorNullPdu                                      = consts.SendStatusResultErrorNullPdu
	SendStatusResultErrorShortCodeNeverAllowed                        = consts.SendStatusResultErrorShortCodeNeverAllowed
	SendStatusResultErrorShortCodeNotAllowed                          = consts.SendStatusResultErrorShortCodeNotAllowed
	SendStatusResultInvalidArguments                                  = consts.SendStatusResultInvalidArguments
	SendStatusResultInvalidSmscAddress                                = consts.SendStatusResultInvalidSmscAddress
	SendStatusResultInvalidSmsFormat                                  = consts.SendStatusResultInvalidSmsFormat
	SendStatusResultInvalidState                                      = consts.SendStatusResultInvalidState
	SendStatusResultNetworkError                                      = consts.SendStatusResultNetworkError
	SendStatusResultNetworkReject                                     = consts.SendStatusResultNetworkReject
	SendStatusResultOperationNotAllowed                               = consts.SendStatusResultOperationNotAllowed
	SendStatusResultRequestNotSupported                               = consts.SendStatusResultRequestNotSupported
	SendStatusResultSmsBlockedDuringEmergency                         = consts.SendStatusResultSmsBlockedDuringEmergency
	SendStatusResultSmsSendRetryFailed                                = consts.SendStatusResultSmsSendRetryFailed
	SendStatusRetryOnCarrierNetwork                                   = consts.SendStatusRetryOnCarrierNetwork
	Creator                                                           = consts.Creator
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type Identifier

type Identifier struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Identifier wraps android.service.carrier.CarrierIdentifier.

func NewIdentifier

func NewIdentifier(vm *jni.VM, arg0 *jni.Object, arg1 string, arg2 string) (*Identifier, error)

NewIdentifier creates a new android.service.carrier.CarrierIdentifier instance.

func (*Identifier) DescribeContents

func (m *Identifier) DescribeContents() (int32, error)

DescribeContents calls android.service.carrier.CarrierIdentifier.describeContents.

func (*Identifier) Equals

func (m *Identifier) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.service.carrier.CarrierIdentifier.equals.

func (*Identifier) GetCarrierId

func (m *Identifier) GetCarrierId() (int32, error)

GetCarrierId calls android.service.carrier.CarrierIdentifier.getCarrierId.

func (*Identifier) GetGid1

func (m *Identifier) GetGid1() (string, error)

GetGid1 calls android.service.carrier.CarrierIdentifier.getGid1.

func (*Identifier) GetGid2

func (m *Identifier) GetGid2() (string, error)

GetGid2 calls android.service.carrier.CarrierIdentifier.getGid2.

func (*Identifier) GetImsi

func (m *Identifier) GetImsi() (string, error)

GetImsi calls android.service.carrier.CarrierIdentifier.getImsi.

func (*Identifier) GetMcc

func (m *Identifier) GetMcc() (string, error)

GetMcc calls android.service.carrier.CarrierIdentifier.getMcc.

func (*Identifier) GetMnc

func (m *Identifier) GetMnc() (string, error)

GetMnc calls android.service.carrier.CarrierIdentifier.getMnc.

func (*Identifier) GetSpecificCarrierId

func (m *Identifier) GetSpecificCarrierId() (int32, error)

GetSpecificCarrierId calls android.service.carrier.CarrierIdentifier.getSpecificCarrierId.

func (*Identifier) GetSpn

func (m *Identifier) GetSpn() (string, error)

GetSpn calls android.service.carrier.CarrierIdentifier.getSpn.

func (*Identifier) HashCode

func (m *Identifier) HashCode() (int32, error)

HashCode calls android.service.carrier.CarrierIdentifier.hashCode.

func (*Identifier) ToString

func (m *Identifier) ToString() (string, error)

ToString calls android.service.carrier.CarrierIdentifier.toString.

func (*Identifier) WriteToParcel

func (m *Identifier) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.service.carrier.CarrierIdentifier.writeToParcel.

type MessagePdu

type MessagePdu struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

MessagePdu wraps android.service.carrier.MessagePdu.

func NewMessagePdu

func NewMessagePdu(vm *jni.VM, arg0 *jni.Object) (*MessagePdu, error)

NewMessagePdu creates a new android.service.carrier.MessagePdu instance.

func (*MessagePdu) DescribeContents

func (m *MessagePdu) DescribeContents() (int32, error)

DescribeContents calls android.service.carrier.MessagePdu.describeContents.

func (*MessagePdu) GetPdus added in v0.0.8

func (m *MessagePdu) GetPdus() (*jni.Object, error)

GetPdus calls android.service.carrier.MessagePdu.getPdus.

func (*MessagePdu) ToString added in v0.0.8

func (m *MessagePdu) ToString() (string, error)

ToString calls android.service.carrier.MessagePdu.toString.

func (*MessagePdu) WriteToParcel

func (m *MessagePdu) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.service.carrier.MessagePdu.writeToParcel.

type MessagingClientService

type MessagingClientService struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

MessagingClientService wraps android.service.carrier.CarrierMessagingClientService.

func NewMessagingClientService

func NewMessagingClientService(vm *jni.VM) (*MessagingClientService, error)

NewMessagingClientService creates a new android.service.carrier.CarrierMessagingClientService instance.

func (*MessagingClientService) OnBind

func (m *MessagingClientService) OnBind(arg0 *jni.Object) (*jni.Object, error)

OnBind calls android.service.carrier.CarrierMessagingClientService.onBind.

func (*MessagingClientService) ToString added in v0.0.8

func (m *MessagingClientService) ToString() (string, error)

ToString calls android.service.carrier.CarrierMessagingClientService.toString.

type MessagingService

type MessagingService struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

MessagingService wraps android.service.carrier.CarrierMessagingService.

func (*MessagingService) OnBind

func (m *MessagingService) OnBind(arg0 *jni.Object) (*jni.Object, error)

OnBind calls android.service.carrier.CarrierMessagingService.onBind.

func (*MessagingService) ToString added in v0.0.8

func (m *MessagingService) ToString() (string, error)

ToString calls android.service.carrier.CarrierMessagingService.toString.

type MessagingServiceResultCallback added in v0.0.8

type MessagingServiceResultCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

MessagingServiceResultCallback wraps android.service.carrier.CarrierMessagingService$ResultCallback.

func (*MessagingServiceResultCallback) ToString added in v0.0.8

func (m *MessagingServiceResultCallback) ToString() (string, error)

ToString calls android.service.carrier.CarrierMessagingService$ResultCallback.toString.

type MessagingServiceSendMmsResult

type MessagingServiceSendMmsResult struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

MessagingServiceSendMmsResult wraps android.service.carrier.CarrierMessagingService$SendMmsResult.

func (*MessagingServiceSendMmsResult) GetSendConfPdu

func (m *MessagingServiceSendMmsResult) GetSendConfPdu() (*jni.Object, error)

GetSendConfPdu calls android.service.carrier.CarrierMessagingService$SendMmsResult.getSendConfPdu.

func (*MessagingServiceSendMmsResult) GetSendStatus

func (m *MessagingServiceSendMmsResult) GetSendStatus() (int32, error)

GetSendStatus calls android.service.carrier.CarrierMessagingService$SendMmsResult.getSendStatus.

func (*MessagingServiceSendMmsResult) ToString added in v0.0.8

func (m *MessagingServiceSendMmsResult) ToString() (string, error)

ToString calls android.service.carrier.CarrierMessagingService$SendMmsResult.toString.

type MessagingServiceSendMultipartSmsResult

type MessagingServiceSendMultipartSmsResult struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

MessagingServiceSendMultipartSmsResult wraps android.service.carrier.CarrierMessagingService$SendMultipartSmsResult.

func (*MessagingServiceSendMultipartSmsResult) GetMessageRefs

func (m *MessagingServiceSendMultipartSmsResult) GetMessageRefs() (*jni.Object, error)

GetMessageRefs calls android.service.carrier.CarrierMessagingService$SendMultipartSmsResult.getMessageRefs.

func (*MessagingServiceSendMultipartSmsResult) GetSendStatus

func (m *MessagingServiceSendMultipartSmsResult) GetSendStatus() (int32, error)

GetSendStatus calls android.service.carrier.CarrierMessagingService$SendMultipartSmsResult.getSendStatus.

func (*MessagingServiceSendMultipartSmsResult) ToString added in v0.0.8

ToString calls android.service.carrier.CarrierMessagingService$SendMultipartSmsResult.toString.

type MessagingServiceSendSmsResult

type MessagingServiceSendSmsResult struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

MessagingServiceSendSmsResult wraps android.service.carrier.CarrierMessagingService$SendSmsResult.

func (*MessagingServiceSendSmsResult) GetMessageRef

func (m *MessagingServiceSendSmsResult) GetMessageRef() (int32, error)

GetMessageRef calls android.service.carrier.CarrierMessagingService$SendSmsResult.getMessageRef.

func (*MessagingServiceSendSmsResult) GetSendStatus

func (m *MessagingServiceSendSmsResult) GetSendStatus() (int32, error)

GetSendStatus calls android.service.carrier.CarrierMessagingService$SendSmsResult.getSendStatus.

func (*MessagingServiceSendSmsResult) ToString added in v0.0.8

func (m *MessagingServiceSendSmsResult) ToString() (string, error)

ToString calls android.service.carrier.CarrierMessagingService$SendSmsResult.toString.

type Service

type Service struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Service wraps android.service.carrier.CarrierService.

func (*Service) NotifyCarrierNetworkChange1

func (m *Service) NotifyCarrierNetworkChange1(arg0 bool) error

NotifyCarrierNetworkChange1 calls android.service.carrier.CarrierService.notifyCarrierNetworkChange.

func (*Service) NotifyCarrierNetworkChange2_1

func (m *Service) NotifyCarrierNetworkChange2_1(arg0 int32, arg1 bool) error

NotifyCarrierNetworkChange2_1 calls android.service.carrier.CarrierService.notifyCarrierNetworkChange.

func (*Service) OnBind

func (m *Service) OnBind(arg0 *jni.Object) (*jni.Object, error)

OnBind calls android.service.carrier.CarrierService.onBind.

func (*Service) OnLoadConfig1

func (m *Service) OnLoadConfig1(arg0 *jni.Object) (*jni.Object, error)

OnLoadConfig1 calls android.service.carrier.CarrierService.onLoadConfig.

func (*Service) OnLoadConfig2_1

func (m *Service) OnLoadConfig2_1(arg0 int32, arg1 *jni.Object) (*jni.Object, error)

OnLoadConfig2_1 calls android.service.carrier.CarrierService.onLoadConfig.

func (*Service) ToString added in v0.0.8

func (m *Service) ToString() (string, error)

ToString calls android.service.carrier.CarrierService.toString.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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