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 TypeMethodDescriptionvoid
addChannelId
(ChannelId channelId, int index, android.os.Bundle error) void
addDeathNotifier
(android.os.IBinder ref) void
assign
(ChannelType channelType, ExtendedAssignment extendedAssignment, android.os.Bundle error) void
burstTransfer
(byte[] data, android.os.Bundle error) void
void
void
close
(android.os.Bundle error) void
configIdList
(int listSize, boolean exclude, android.os.Bundle error) void
configureFrequencyAgility
(int freq1, int freq2, int freq3, android.os.Bundle error) int
void
This method is called when the channel dies.void
onRxAntMessage
(MessageFromAntType messageType, AntMessageParcel antParcel) void
open
(android.os.Bundle error) void
openRxScanMode
(android.os.Bundle error) void
void
removeDeathNotifier
(android.os.IBinder ref) requestMessage
(MessageFromAntType messageType, android.os.Bundle error) void
setAdapterEventHandler
(IAntAdapterEventHandler eventHandler) void
setBroadcastData
(byte[] data, android.os.Bundle error) void
setChannelEventHandler
(IAntChannelEventHandler eventHandler) void
setChannelTransmitPower
(int txPower, android.os.Bundle error) void
setEventBuffer
(EventBufferSettings eventBufferSettings, android.os.Bundle error) void
setHighPrioritySearchTimeout
(HighPrioritySearchTimeout timeout, android.os.Bundle error) void
void
setIdWithSerialNumber
(boolean pair, int deviceType, int transmissionType, android.os.Bundle error) void
setLibConfig
(LibConfig libConfig, android.os.Bundle error) void
setLowPrioritySearchTimeout
(LowPrioritySearchTimeout timeout, android.os.Bundle error) void
setPeriod
(int period, android.os.Bundle error) void
setProximityThreshold
(int threshold, android.os.Bundle error) void
setRfFrequency
(int frequency, android.os.Bundle error) void
setSearchPriority
(int searchPriority, android.os.Bundle error) void
startAcknowledgedTransfer
(byte[] data, android.os.Bundle error) void
unassign
(android.os.Bundle error) void
writeMessage
(AntMessageParcel antMessageParcel, android.os.Bundle error) void
writeToParcel
(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:
setChannelEventHandler
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
clearChannelEventHandler
public void clearChannelEventHandler() throws android.os.RemoteException- Specified by:
clearChannelEventHandler
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setAdapterEventHandler
public void setAdapterEventHandler(IAntAdapterEventHandler eventHandler) throws android.os.RemoteException - Specified by:
setAdapterEventHandler
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
clearAdapterEventHandler
public void clearAdapterEventHandler() throws android.os.RemoteException- Specified by:
clearAdapterEventHandler
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setLibConfig
public void setLibConfig(LibConfig libConfig, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setLibConfig
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setEventBuffer
public void setEventBuffer(EventBufferSettings eventBufferSettings, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setEventBuffer
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
getEventBufferSettings
- Specified by:
getEventBufferSettings
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
getBurstState
- Specified by:
getBurstState
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
getLibConfig
- Specified by:
getLibConfig
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
getBackgroundScanState
- Specified by:
getBackgroundScanState
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
writeMessage
public void writeMessage(AntMessageParcel antMessageParcel, android.os.Bundle error) throws android.os.RemoteException - Specified by:
writeMessage
in 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:
unassign
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
assign
public void assign(ChannelType channelType, ExtendedAssignment extendedAssignment, android.os.Bundle error) throws android.os.RemoteException - Specified by:
assign
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setId
- Specified by:
setId
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setPeriod
public void setPeriod(int period, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setPeriod
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setSearchPriority
public void setSearchPriority(int searchPriority, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setSearchPriority
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setRfFrequency
public void setRfFrequency(int frequency, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setRfFrequency
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
addChannelId
public void addChannelId(ChannelId channelId, int index, android.os.Bundle error) throws android.os.RemoteException - Specified by:
addChannelId
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
configIdList
public void configIdList(int listSize, boolean exclude, android.os.Bundle error) throws android.os.RemoteException - Specified by:
configIdList
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setLowPrioritySearchTimeout
public void setLowPrioritySearchTimeout(LowPrioritySearchTimeout timeout, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setLowPrioritySearchTimeout
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setHighPrioritySearchTimeout
public void setHighPrioritySearchTimeout(HighPrioritySearchTimeout timeout, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setHighPrioritySearchTimeout
in 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:
setIdWithSerialNumber
in 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:
configureFrequencyAgility
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setProximityThreshold
public void setProximityThreshold(int threshold, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setProximityThreshold
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setChannelTransmitPower
public void setChannelTransmitPower(int txPower, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setChannelTransmitPower
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
open
public void open(android.os.Bundle error) throws android.os.RemoteException - Specified by:
open
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
openRxScanMode
public void openRxScanMode(android.os.Bundle error) throws android.os.RemoteException - Specified by:
openRxScanMode
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
close
public void close(android.os.Bundle error) throws android.os.RemoteException - Specified by:
close
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
requestMessage
public AntMessageParcel requestMessage(MessageFromAntType messageType, android.os.Bundle error) throws android.os.RemoteException - Specified by:
requestMessage
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
setBroadcastData
public void setBroadcastData(byte[] data, android.os.Bundle error) throws android.os.RemoteException - Specified by:
setBroadcastData
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
startAcknowledgedTransfer
public void startAcknowledgedTransfer(byte[] data, android.os.Bundle error) throws android.os.RemoteException - Specified by:
startAcknowledgedTransfer
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
burstTransfer
public void burstTransfer(byte[] data, android.os.Bundle error) throws android.os.RemoteException - Specified by:
burstTransfer
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
getCapabilities
- Specified by:
getCapabilities
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
releaseChannel
public void releaseChannel() throws android.os.RemoteException- Specified by:
releaseChannel
in interfaceIAntChannelCommunicator
- Throws:
android.os.RemoteException
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-