com.intel.bluetooth.emu
Class DeviceManagerServiceImpl

java.lang.Object
  extended by com.intel.bluetooth.emu.DeviceManagerServiceImpl
All Implemented Interfaces:
DeviceManagerService

public class DeviceManagerServiceImpl
extends java.lang.Object
implements DeviceManagerService


Field Summary
static int MAJOR_COMPUTER
           
 
Constructor Summary
DeviceManagerServiceImpl()
           
 
Method Summary
 void closeConnection(long localAddress, long connectionId)
           
 void connectionAccepted(long localAddress, long connectionId)
           
 DeviceDescriptor createNewDevice(java.lang.String deviceID, java.lang.String deviceAddress)
           
 boolean encrypt(long localAddress, long connectionId, long remoteAddress, boolean on)
           
 DeviceDescriptor getDeviceDescriptor(long address)
           
 DeviceDescriptor[] getDiscoveredDevices(long address)
           
 EmulatorConfiguration getEmulatorConfiguration(long localAddress)
           
 int getLocalDeviceDiscoverable(long localAddress)
           
static java.util.List<MonitorDevice> getMonitorDevices()
           
 long getRemoteAddress(long localAddress, long connectionId)
           
 java.lang.String getRemoteDeviceFriendlyName(long address)
           
 int getSecurityOpt(long localAddress, long connectionId, int expected)
           
 byte[] getServicesRecordBinary(long address, long handle)
           
 boolean isLocalDevicePowerOn(long localAddress)
           
 long l2Accept(long localAddress, int channel, boolean authenticate, boolean encrypt, int receiveMTU)
           
 void l2CloseService(long address, int channel)
           
 long l2Connect(long localAddress, long remoteAddress, int channel, boolean authenticate, boolean encrypt, int receiveMTU, int timeout)
           
 void l2OpenService(long localAddress, int pcm)
           
 boolean l2Ready(long localAddress, long connectionId)
           
 byte[] l2Receive(long localAddress, long connectionId, int len)
           
 int l2RemoteDeviceReceiveMTU(long localAddress, long connectionId)
           
 void l2Send(long localAddress, long connectionId, byte[] data)
           
 DeviceCommand pollCommand(long address)
           
 void releaseDevice(long address)
           
 void removeServiceRecord(long address, long handle)
           
 long rfAccept(long localAddress, int channel, boolean authenticate, boolean encrypt)
           
 int rfAvailable(long localAddress, long connectionId)
           
 void rfCloseService(long address, int pcm)
           
 long rfConnect(long localAddress, long remoteAddress, int channel, boolean authenticate, boolean encrypt, int timeout)
           
 void rfFlush(long localAddress, long connectionId)
           
 void rfOpenService(long localAddress, int channel)
           
 byte[] rfRead(long localAddress, long connectionId, int len)
           
 void rfWrite(long localAddress, long connectionId, byte[] b)
           
 long[] searchServices(long address, java.lang.String[] uuidSet)
           
 boolean setLocalDeviceDiscoverable(long localAddress, int mode)
           
 void setLocalDevicePower(long localAddress, boolean on)
           
 void setLocalDeviceServiceClasses(long localAddress, int classOfDevice)
           
 void shutdown()
           
 void updateServiceRecord(long address, long handle, ServicesDescriptor sdpData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAJOR_COMPUTER

public static final int MAJOR_COMPUTER
See Also:
Constant Field Values
Constructor Detail

DeviceManagerServiceImpl

public DeviceManagerServiceImpl()
Method Detail

shutdown

public void shutdown()
Specified by:
shutdown in interface DeviceManagerService

createNewDevice

public DeviceDescriptor createNewDevice(java.lang.String deviceID,
                                        java.lang.String deviceAddress)
                                 throws BluetoothStateException
Specified by:
createNewDevice in interface DeviceManagerService
Throws:
BluetoothStateException

getEmulatorConfiguration

public EmulatorConfiguration getEmulatorConfiguration(long localAddress)
Specified by:
getEmulatorConfiguration in interface DeviceManagerService

releaseDevice

public void releaseDevice(long address)
Specified by:
releaseDevice in interface DeviceManagerService

pollCommand

public DeviceCommand pollCommand(long address)
Specified by:
pollCommand in interface DeviceManagerService

getDeviceDescriptor

public DeviceDescriptor getDeviceDescriptor(long address)
Specified by:
getDeviceDescriptor in interface DeviceManagerService

getMonitorDevices

public static java.util.List<MonitorDevice> getMonitorDevices()

getDiscoveredDevices

public DeviceDescriptor[] getDiscoveredDevices(long address)
Specified by:
getDiscoveredDevices in interface DeviceManagerService

isLocalDevicePowerOn

public boolean isLocalDevicePowerOn(long localAddress)
Specified by:
isLocalDevicePowerOn in interface DeviceManagerService

setLocalDevicePower

public void setLocalDevicePower(long localAddress,
                                boolean on)
Specified by:
setLocalDevicePower in interface DeviceManagerService

getLocalDeviceDiscoverable

public int getLocalDeviceDiscoverable(long localAddress)
Specified by:
getLocalDeviceDiscoverable in interface DeviceManagerService

setLocalDeviceDiscoverable

public boolean setLocalDeviceDiscoverable(long localAddress,
                                          int mode)
                                   throws BluetoothStateException
Specified by:
setLocalDeviceDiscoverable in interface DeviceManagerService
Throws:
BluetoothStateException

setLocalDeviceServiceClasses

public void setLocalDeviceServiceClasses(long localAddress,
                                         int classOfDevice)
Specified by:
setLocalDeviceServiceClasses in interface DeviceManagerService

getRemoteDeviceFriendlyName

public java.lang.String getRemoteDeviceFriendlyName(long address)
                                             throws java.io.IOException
Specified by:
getRemoteDeviceFriendlyName in interface DeviceManagerService
Throws:
java.io.IOException

updateServiceRecord

public void updateServiceRecord(long address,
                                long handle,
                                ServicesDescriptor sdpData)
                         throws ServiceRegistrationException
Specified by:
updateServiceRecord in interface DeviceManagerService
Throws:
ServiceRegistrationException

removeServiceRecord

public void removeServiceRecord(long address,
                                long handle)
                         throws java.io.IOException
Specified by:
removeServiceRecord in interface DeviceManagerService
Throws:
java.io.IOException

searchServices

public long[] searchServices(long address,
                             java.lang.String[] uuidSet)
Specified by:
searchServices in interface DeviceManagerService

getServicesRecordBinary

public byte[] getServicesRecordBinary(long address,
                                      long handle)
                               throws java.io.IOException
Specified by:
getServicesRecordBinary in interface DeviceManagerService
Throws:
java.io.IOException

rfOpenService

public void rfOpenService(long localAddress,
                          int channel)
                   throws java.io.IOException
Specified by:
rfOpenService in interface DeviceManagerService
Throws:
java.io.IOException

rfAccept

public long rfAccept(long localAddress,
                     int channel,
                     boolean authenticate,
                     boolean encrypt)
              throws java.io.IOException
Specified by:
rfAccept in interface DeviceManagerService
Throws:
java.io.IOException

rfConnect

public long rfConnect(long localAddress,
                      long remoteAddress,
                      int channel,
                      boolean authenticate,
                      boolean encrypt,
                      int timeout)
               throws java.io.IOException
Specified by:
rfConnect in interface DeviceManagerService
Throws:
java.io.IOException

rfCloseService

public void rfCloseService(long address,
                           int pcm)
Specified by:
rfCloseService in interface DeviceManagerService

l2OpenService

public void l2OpenService(long localAddress,
                          int pcm)
                   throws java.io.IOException
Specified by:
l2OpenService in interface DeviceManagerService
Throws:
java.io.IOException

l2Accept

public long l2Accept(long localAddress,
                     int channel,
                     boolean authenticate,
                     boolean encrypt,
                     int receiveMTU)
              throws java.io.IOException
Specified by:
l2Accept in interface DeviceManagerService
Throws:
java.io.IOException

l2Connect

public long l2Connect(long localAddress,
                      long remoteAddress,
                      int channel,
                      boolean authenticate,
                      boolean encrypt,
                      int receiveMTU,
                      int timeout)
               throws java.io.IOException
Specified by:
l2Connect in interface DeviceManagerService
Throws:
java.io.IOException

l2CloseService

public void l2CloseService(long address,
                           int channel)
Specified by:
l2CloseService in interface DeviceManagerService

connectionAccepted

public void connectionAccepted(long localAddress,
                               long connectionId)
                        throws java.io.IOException
Specified by:
connectionAccepted in interface DeviceManagerService
Throws:
java.io.IOException

getRemoteAddress

public long getRemoteAddress(long localAddress,
                             long connectionId)
                      throws java.io.IOException
Specified by:
getRemoteAddress in interface DeviceManagerService
Throws:
java.io.IOException

rfWrite

public void rfWrite(long localAddress,
                    long connectionId,
                    byte[] b)
             throws java.io.IOException
Specified by:
rfWrite in interface DeviceManagerService
Throws:
java.io.IOException

rfFlush

public void rfFlush(long localAddress,
                    long connectionId)
             throws java.io.IOException
Specified by:
rfFlush in interface DeviceManagerService
Throws:
java.io.IOException

rfAvailable

public int rfAvailable(long localAddress,
                       long connectionId)
                throws java.io.IOException
Specified by:
rfAvailable in interface DeviceManagerService
Throws:
java.io.IOException

rfRead

public byte[] rfRead(long localAddress,
                     long connectionId,
                     int len)
              throws java.io.IOException
Specified by:
rfRead in interface DeviceManagerService
Throws:
java.io.IOException

closeConnection

public void closeConnection(long localAddress,
                            long connectionId)
                     throws java.io.IOException
Specified by:
closeConnection in interface DeviceManagerService
Throws:
java.io.IOException

getSecurityOpt

public int getSecurityOpt(long localAddress,
                          long connectionId,
                          int expected)
                   throws java.io.IOException
Specified by:
getSecurityOpt in interface DeviceManagerService
Throws:
java.io.IOException

encrypt

public boolean encrypt(long localAddress,
                       long connectionId,
                       long remoteAddress,
                       boolean on)
                throws java.io.IOException
Specified by:
encrypt in interface DeviceManagerService
Throws:
java.io.IOException

l2RemoteDeviceReceiveMTU

public int l2RemoteDeviceReceiveMTU(long localAddress,
                                    long connectionId)
                             throws java.io.IOException
Specified by:
l2RemoteDeviceReceiveMTU in interface DeviceManagerService
Throws:
java.io.IOException

l2Ready

public boolean l2Ready(long localAddress,
                       long connectionId)
                throws java.io.IOException
Specified by:
l2Ready in interface DeviceManagerService
Throws:
java.io.IOException

l2Receive

public byte[] l2Receive(long localAddress,
                        long connectionId,
                        int len)
                 throws java.io.IOException
Specified by:
l2Receive in interface DeviceManagerService
Throws:
java.io.IOException

l2Send

public void l2Send(long localAddress,
                   long connectionId,
                   byte[] data)
            throws java.io.IOException
Specified by:
l2Send in interface DeviceManagerService
Throws:
java.io.IOException


Copyright © 2004-2008 BlueCove Team. All Rights Reserved.