gsm

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Overview

Package gsm provides Go bindings for android.telephony.gsm.

Index

Constants

View Source
const (
	Encoding16bit                = consts.Encoding16bit
	Encoding7bit                 = consts.Encoding7bit
	Encoding8bit                 = consts.Encoding8bit
	EncodingUnknown              = consts.EncodingUnknown
	MaxUserDataBytes             = consts.MaxUserDataBytes
	MaxUserDataSeptets           = consts.MaxUserDataSeptets
	MaxUserDataSeptetsWithHeader = consts.MaxUserDataSeptetsWithHeader
	Class0                       = consts.Class0
	Class1                       = consts.Class1
	Class2                       = consts.Class2
	Class3                       = consts.Class3
	Unknown                      = consts.Unknown
	ResultErrorGenericFailure    = consts.ResultErrorGenericFailure
	ResultErrorNoService         = consts.ResultErrorNoService
	ResultErrorNullPdu           = consts.ResultErrorNullPdu
	ResultErrorRadioOff          = consts.ResultErrorRadioOff
	StatusOnSimFree              = consts.StatusOnSimFree
	StatusOnSimRead              = consts.StatusOnSimRead
	StatusOnSimSent              = consts.StatusOnSimSent
	StatusOnSimUnread            = consts.StatusOnSimUnread
	StatusOnSimUnsent            = consts.StatusOnSimUnsent
)

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 CellLocation

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

CellLocation wraps android.telephony.gsm.GsmCellLocation.

func NewCellLocation

func NewCellLocation(vm *jni.VM) (*CellLocation, error)

NewCellLocation creates a new android.telephony.gsm.GsmCellLocation instance.

func (*CellLocation) Equals

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

Equals calls android.telephony.gsm.GsmCellLocation.equals.

func (*CellLocation) FillInNotifierBundle

func (m *CellLocation) FillInNotifierBundle(arg0 *jni.Object) error

FillInNotifierBundle calls android.telephony.gsm.GsmCellLocation.fillInNotifierBundle.

func (*CellLocation) GetCid

func (m *CellLocation) GetCid() (int32, error)

GetCid calls android.telephony.gsm.GsmCellLocation.getCid.

func (*CellLocation) GetLac

func (m *CellLocation) GetLac() (int32, error)

GetLac calls android.telephony.gsm.GsmCellLocation.getLac.

func (*CellLocation) GetPsc

func (m *CellLocation) GetPsc() (int32, error)

GetPsc calls android.telephony.gsm.GsmCellLocation.getPsc.

func (*CellLocation) HashCode

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

HashCode calls android.telephony.gsm.GsmCellLocation.hashCode.

func (*CellLocation) SetLacAndCid

func (m *CellLocation) SetLacAndCid(arg0 int32, arg1 int32) error

SetLacAndCid calls android.telephony.gsm.GsmCellLocation.setLacAndCid.

func (*CellLocation) SetStateInvalid

func (m *CellLocation) SetStateInvalid() error

SetStateInvalid calls android.telephony.gsm.GsmCellLocation.setStateInvalid.

func (*CellLocation) ToString

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

ToString calls android.telephony.gsm.GsmCellLocation.toString.

type SmsManager

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

SmsManager wraps android.telephony.gsm.SmsManager.

func (*SmsManager) GetDefault

func (m *SmsManager) GetDefault() (*jni.Object, error)

GetDefault calls android.telephony.gsm.SmsManager.getDefault.

func (*SmsManager) SendDataMessage

func (m *SmsManager) SendDataMessage(
	arg0 string,
	arg1 string,
	arg2 int16,
	arg3 *jni.Object,
	arg4 *jni.Object,
	arg5 *jni.Object,
) error

SendDataMessage calls android.telephony.gsm.SmsManager.sendDataMessage.

func (*SmsManager) SendTextMessage

func (m *SmsManager) SendTextMessage(
	arg0 string,
	arg1 string,
	arg2 string,
	arg3 *jni.Object,
	arg4 *jni.Object,
) error

SendTextMessage calls android.telephony.gsm.SmsManager.sendTextMessage.

type SmsMessage

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

SmsMessage wraps android.telephony.gsm.SmsMessage.

func NewSmsMessage

func NewSmsMessage(vm *jni.VM) (*SmsMessage, error)

NewSmsMessage creates a new android.telephony.gsm.SmsMessage instance.

func (*SmsMessage) CalculateLength2

func (m *SmsMessage) CalculateLength2(arg0 string, arg1 bool) (*jni.Object, error)

CalculateLength2 calls android.telephony.gsm.SmsMessage.calculateLength.

func (*SmsMessage) CalculateLength2_1

func (m *SmsMessage) CalculateLength2_1(arg0 string, arg1 bool) (*jni.Object, error)

CalculateLength2_1 calls android.telephony.gsm.SmsMessage.calculateLength.

func (*SmsMessage) CreateFromPdu

func (m *SmsMessage) CreateFromPdu(arg0 *jni.Object) (*jni.Object, error)

CreateFromPdu calls android.telephony.gsm.SmsMessage.createFromPdu.

func (*SmsMessage) GetDisplayMessageBody

func (m *SmsMessage) GetDisplayMessageBody() (string, error)

GetDisplayMessageBody calls android.telephony.gsm.SmsMessage.getDisplayMessageBody.

func (*SmsMessage) GetDisplayOriginatingAddress

func (m *SmsMessage) GetDisplayOriginatingAddress() (string, error)

GetDisplayOriginatingAddress calls android.telephony.gsm.SmsMessage.getDisplayOriginatingAddress.

func (*SmsMessage) GetEmailBody

func (m *SmsMessage) GetEmailBody() (string, error)

GetEmailBody calls android.telephony.gsm.SmsMessage.getEmailBody.

func (*SmsMessage) GetEmailFrom

func (m *SmsMessage) GetEmailFrom() (string, error)

GetEmailFrom calls android.telephony.gsm.SmsMessage.getEmailFrom.

func (*SmsMessage) GetIndexOnSim

func (m *SmsMessage) GetIndexOnSim() (int32, error)

GetIndexOnSim calls android.telephony.gsm.SmsMessage.getIndexOnSim.

func (*SmsMessage) GetMessageBody

func (m *SmsMessage) GetMessageBody() (string, error)

GetMessageBody calls android.telephony.gsm.SmsMessage.getMessageBody.

func (*SmsMessage) GetMessageClass

func (m *SmsMessage) GetMessageClass() (*jni.Object, error)

GetMessageClass calls android.telephony.gsm.SmsMessage.getMessageClass.

func (*SmsMessage) GetOriginatingAddress

func (m *SmsMessage) GetOriginatingAddress() (string, error)

GetOriginatingAddress calls android.telephony.gsm.SmsMessage.getOriginatingAddress.

func (*SmsMessage) GetPdu

func (m *SmsMessage) GetPdu() (*jni.Object, error)

GetPdu calls android.telephony.gsm.SmsMessage.getPdu.

func (*SmsMessage) GetProtocolIdentifier

func (m *SmsMessage) GetProtocolIdentifier() (int32, error)

GetProtocolIdentifier calls android.telephony.gsm.SmsMessage.getProtocolIdentifier.

func (*SmsMessage) GetPseudoSubject

func (m *SmsMessage) GetPseudoSubject() (string, error)

GetPseudoSubject calls android.telephony.gsm.SmsMessage.getPseudoSubject.

func (*SmsMessage) GetServiceCenterAddress

func (m *SmsMessage) GetServiceCenterAddress() (string, error)

GetServiceCenterAddress calls android.telephony.gsm.SmsMessage.getServiceCenterAddress.

func (*SmsMessage) GetStatus

func (m *SmsMessage) GetStatus() (int32, error)

GetStatus calls android.telephony.gsm.SmsMessage.getStatus.

func (*SmsMessage) GetStatusOnSim

func (m *SmsMessage) GetStatusOnSim() (int32, error)

GetStatusOnSim calls android.telephony.gsm.SmsMessage.getStatusOnSim.

func (*SmsMessage) GetSubmitPdu4

func (m *SmsMessage) GetSubmitPdu4(
	arg0 string,
	arg1 string,
	arg2 string,
	arg3 bool,
) (*jni.Object, error)

GetSubmitPdu4 calls android.telephony.gsm.SmsMessage.getSubmitPdu.

func (*SmsMessage) GetSubmitPdu5_1

func (m *SmsMessage) GetSubmitPdu5_1(
	arg0 string,
	arg1 string,
	arg2 int16,
	arg3 *jni.Object,
	arg4 bool,
) (*jni.Object, error)

GetSubmitPdu5_1 calls android.telephony.gsm.SmsMessage.getSubmitPdu.

func (*SmsMessage) GetTPLayerLengthForPDU

func (m *SmsMessage) GetTPLayerLengthForPDU(arg0 string) (int32, error)

GetTPLayerLengthForPDU calls android.telephony.gsm.SmsMessage.getTPLayerLengthForPDU.

func (*SmsMessage) GetTimestampMillis

func (m *SmsMessage) GetTimestampMillis() (int64, error)

GetTimestampMillis calls android.telephony.gsm.SmsMessage.getTimestampMillis.

func (*SmsMessage) GetUserData

func (m *SmsMessage) GetUserData() (*jni.Object, error)

GetUserData calls android.telephony.gsm.SmsMessage.getUserData.

func (*SmsMessage) IsCphsMwiMessage

func (m *SmsMessage) IsCphsMwiMessage() (bool, error)

IsCphsMwiMessage calls android.telephony.gsm.SmsMessage.isCphsMwiMessage.

func (*SmsMessage) IsEmail

func (m *SmsMessage) IsEmail() (bool, error)

IsEmail calls android.telephony.gsm.SmsMessage.isEmail.

func (*SmsMessage) IsMWIClearMessage

func (m *SmsMessage) IsMWIClearMessage() (bool, error)

IsMWIClearMessage calls android.telephony.gsm.SmsMessage.isMWIClearMessage.

func (*SmsMessage) IsMWISetMessage

func (m *SmsMessage) IsMWISetMessage() (bool, error)

IsMWISetMessage calls android.telephony.gsm.SmsMessage.isMWISetMessage.

func (*SmsMessage) IsMwiDontStore

func (m *SmsMessage) IsMwiDontStore() (bool, error)

IsMwiDontStore calls android.telephony.gsm.SmsMessage.isMwiDontStore.

func (*SmsMessage) IsReplace

func (m *SmsMessage) IsReplace() (bool, error)

IsReplace calls android.telephony.gsm.SmsMessage.isReplace.

func (*SmsMessage) IsReplyPathPresent

func (m *SmsMessage) IsReplyPathPresent() (bool, error)

IsReplyPathPresent calls android.telephony.gsm.SmsMessage.isReplyPathPresent.

func (*SmsMessage) IsStatusReportMessage

func (m *SmsMessage) IsStatusReportMessage() (bool, error)

IsStatusReportMessage calls android.telephony.gsm.SmsMessage.isStatusReportMessage.

type SmsMessageMessageClass

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

SmsMessageMessageClass wraps android.telephony.gsm.SmsMessage$MessageClass.

func (*SmsMessageMessageClass) ValueOf

func (m *SmsMessageMessageClass) ValueOf(arg0 string) (*jni.Object, error)

ValueOf calls android.telephony.gsm.SmsMessage$MessageClass.valueOf.

func (*SmsMessageMessageClass) Values

func (m *SmsMessageMessageClass) Values() (*jni.Object, error)

Values calls android.telephony.gsm.SmsMessage$MessageClass.values.

type SmsMessageSubmitPdu

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

SmsMessageSubmitPdu wraps android.telephony.gsm.SmsMessage$SubmitPdu.

func (*SmsMessageSubmitPdu) ToString

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

ToString calls android.telephony.gsm.SmsMessage$SubmitPdu.toString.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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