本文整理汇总了Java中com.intel.bluetooth.BlueCoveImpl类的典型用法代码示例。如果您正苦于以下问题:Java BlueCoveImpl类的具体用法?Java BlueCoveImpl怎么用?Java BlueCoveImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BlueCoveImpl类属于com.intel.bluetooth包,在下文中一共展示了BlueCoveImpl类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: OBEXServerSessionImpl
import com.intel.bluetooth.BlueCoveImpl; //导入依赖的package包/类
OBEXServerSessionImpl(StreamConnection connection, ServerRequestHandler handler, Authenticator authenticator,
OBEXConnectionParams obexConnectionParams) throws IOException {
super(connection, obexConnectionParams);
this.requestSent = true;
this.handler = handler;
this.authenticator = authenticator;
stackID = BlueCoveImpl.getCurrentThreadBluetoothStackID();
handlerThread = new Thread(this, "OBEXServerSessionThread-" + nextThreadNum());
UtilsJavaSE.threadSetDaemon(handlerThread);
}
示例2: getLocalDeviceInstance
import com.intel.bluetooth.BlueCoveImpl; //导入依赖的package包/类
private static synchronized LocalDevice getLocalDeviceInstance() throws BluetoothStateException {
BluetoothStack stack = BlueCoveImpl.instance().getBluetoothStack();
LocalDevice localDevice = (LocalDevice) localDevices.get(stack);
if (localDevice == null) {
localDevice = new LocalDevice(stack);
localDevices.put(stack, localDevice);
}
return localDevice;
}
示例3: isPowerOn
import com.intel.bluetooth.BlueCoveImpl; //导入依赖的package包/类
/**
* Retrieves the power state of the local Bluetooth device.
*
* @since 1.1
* @return <code>true</code> if the local Bluetooth device is powered on,
* <code>false</code> if the local Bluetooth device is off.
*/
public static boolean isPowerOn() {
try {
return BlueCoveImpl.instance().getBluetoothStack().isLocalDevicePowerOn();
} catch (BluetoothStateException e) {
return false;
}
}
示例4: shutdown
import com.intel.bluetooth.BlueCoveImpl; //导入依赖的package包/类
public void shutdown() {
if (bluetoothSupported) {
logger.debug("Shutting down");
thread.setStopped(true);
thread.interrupt();
}
BlueCoveImpl.shutdown();
}