Package com.dsi.ant.channel.ipc.aidl
Class AntChannelCommunicatorAidl
java.lang.Object
com.dsi.ant.channel.ipc.aidl.AntChannelCommunicatorAidl
- All Implemented Interfaces:
android.os.Parcelable,IAntChannelCommunicator
public class AntChannelCommunicatorAidl
extends Object
implements IAntChannelCommunicator, android.os.Parcelable
An implementation of an ANT Channel Communicator which uses AIDL as the communication
method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface android.os.Parcelable
android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<AntChannelCommunicatorAidl>Creates an AntChannelCommunicatorAidl from a parcel.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChannelId(ChannelId channelId, int index, android.os.Bundle error) voidaddDeathNotifier(android.os.IBinder ref) voidassign(ChannelType channelType, ExtendedAssignment extendedAssignment, android.os.Bundle error) voidburstTransfer(byte[] data, android.os.Bundle error) voidvoidvoidclose(android.os.Bundle error) voidconfigIdList(int listSize, boolean exclude, android.os.Bundle error) voidconfigureFrequencyAgility(int freq1, int freq2, int freq3, android.os.Bundle error) intvoidThis method is called when the channel dies.voidonRxAntMessage(MessageFromAntType messageType, AntMessageParcel antParcel) voidopen(android.os.Bundle error) voidopenRxScanMode(android.os.Bundle error) voidvoidremoveDeathNotifier(android.os.IBinder ref) requestMessage(MessageFromAntType messageType, android.os.Bundle error) voidsetAdapterEventHandler(IAntAdapterEventHandler eventHandler) voidsetBroadcastData(byte[] data, android.os.Bundle error) voidsetChannelEventHandler(IAntChannelEventHandler eventHandler) voidsetChannelTransmitPower(int txPower, android.os.Bundle error) voidsetEventBuffer(EventBufferSettings eventBufferSettings, android.os.Bundle error) voidsetHighPrioritySearchTimeout(HighPrioritySearchTimeout timeout, android.os.Bundle error) voidvoidsetIdWithSerialNumber(boolean pair, int deviceType, int transmissionType, android.os.Bundle error) voidsetLibConfig(LibConfig libConfig, android.os.Bundle error) voidsetLowPrioritySearchTimeout(LowPrioritySearchTimeout timeout, android.os.Bundle error) voidsetPeriod(int period, android.os.Bundle error) voidsetProximityThreshold(int threshold, android.os.Bundle error) voidsetRfFrequency(int frequency, android.os.Bundle error) voidsetSearchPriority(int searchPriority, android.os.Bundle error) voidstartAcknowledgedTransfer(byte[] data, android.os.Bundle error) voidunassign(android.os.Bundle error) voidwriteMessage(AntMessageParcel antMessageParcel, android.os.Bundle error) voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
Creates an AntChannelCommunicatorAidl from a parcel.
-
-
Method Details
-
onRxAntMessage
-
onChannelDeathMessage
public void onChannelDeathMessage()This method is called when the channel dies. -
setChannelEventHandler
public void setChannelEventHandler(IAntChannelEventHandler eventHandler) throws android.os.RemoteException - Specified by:
setChannelEventHandlerin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
clearChannelEventHandler
public void clearChannelEventHandler() throws android.os.RemoteException- Specified by:
clearChannelEventHandlerin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setAdapterEventHandler
public void setAdapterEventHandler(IAntAdapterEventHandler eventHandler) throws android.os.RemoteException - Specified by:
setAdapterEventHandlerin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
clearAdapterEventHandler
public void clearAdapterEventHandler() throws android.os.RemoteException- Specified by:
clearAdapterEventHandlerin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setLibConfig
public void setLibConfig(LibConfig libConfig, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setLibConfigin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setEventBuffer
public void setEventBuffer(EventBufferSettings eventBufferSettings, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setEventBufferin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
getEventBufferSettings
- Specified by:
getEventBufferSettingsin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
getBurstState
- Specified by:
getBurstStatein interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
getLibConfig
- Specified by:
getLibConfigin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
getBackgroundScanState
- Specified by:
getBackgroundScanStatein interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
writeMessage
public void writeMessage(AntMessageParcel antMessageParcel, android.os.Bundle error) throws android.os.RemoteException - Specified by:
writeMessagein interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
addDeathNotifier
public void addDeathNotifier(android.os.IBinder ref) throws android.os.RemoteException - Throws:
android.os.RemoteException
-
removeDeathNotifier
public void removeDeathNotifier(android.os.IBinder ref) throws android.os.RemoteException - Throws:
android.os.RemoteException
-
unassign
public void unassign(android.os.Bundle error) throws android.os.RemoteException - Specified by:
unassignin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
assign
public void assign(ChannelType channelType, ExtendedAssignment extendedAssignment, android.os.Bundle error) throws android.os.RemoteException - Specified by:
assignin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setId
- Specified by:
setIdin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setPeriod
public void setPeriod(int period, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setPeriodin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setSearchPriority
public void setSearchPriority(int searchPriority, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setSearchPriorityin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setRfFrequency
public void setRfFrequency(int frequency, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setRfFrequencyin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
addChannelId
public void addChannelId(ChannelId channelId, int index, android.os.Bundle error) throws android.os.RemoteException - Specified by:
addChannelIdin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
configIdList
public void configIdList(int listSize, boolean exclude, android.os.Bundle error) throws android.os.RemoteException - Specified by:
configIdListin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setLowPrioritySearchTimeout
public void setLowPrioritySearchTimeout(LowPrioritySearchTimeout timeout, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setLowPrioritySearchTimeoutin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setHighPrioritySearchTimeout
public void setHighPrioritySearchTimeout(HighPrioritySearchTimeout timeout, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setHighPrioritySearchTimeoutin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setIdWithSerialNumber
public void setIdWithSerialNumber(boolean pair, int deviceType, int transmissionType, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setIdWithSerialNumberin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
configureFrequencyAgility
public void configureFrequencyAgility(int freq1, int freq2, int freq3, android.os.Bundle error) throws android.os.RemoteException - Specified by:
configureFrequencyAgilityin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setProximityThreshold
public void setProximityThreshold(int threshold, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setProximityThresholdin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setChannelTransmitPower
public void setChannelTransmitPower(int txPower, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setChannelTransmitPowerin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
open
public void open(android.os.Bundle error) throws android.os.RemoteException - Specified by:
openin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
openRxScanMode
public void openRxScanMode(android.os.Bundle error) throws android.os.RemoteException - Specified by:
openRxScanModein interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
close
public void close(android.os.Bundle error) throws android.os.RemoteException - Specified by:
closein interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
requestMessage
public AntMessageParcel requestMessage(MessageFromAntType messageType, android.os.Bundle error) throws android.os.RemoteException - Specified by:
requestMessagein interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
setBroadcastData
public void setBroadcastData(byte[] data, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setBroadcastDatain interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
startAcknowledgedTransfer
public void startAcknowledgedTransfer(byte[] data, android.os.Bundle error) throws android.os.RemoteException - Specified by:
startAcknowledgedTransferin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
burstTransfer
public void burstTransfer(byte[] data, android.os.Bundle error) throws android.os.RemoteException - Specified by:
burstTransferin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
getCapabilities
- Specified by:
getCapabilitiesin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
releaseChannel
public void releaseChannel() throws android.os.RemoteException- Specified by:
releaseChannelin interfaceIAntChannelCommunicator- Throws:
android.os.RemoteException
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-