当前位置: 首页>>代码示例>>Java>>正文


Java BlueCoveImpl类代码示例

本文整理汇总了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);
}
 
开发者ID:empeeoh,项目名称:bluecove-osx,代码行数:11,代码来源:OBEXServerSessionImpl.java

示例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;
}
 
开发者ID:empeeoh,项目名称:bluecove-osx,代码行数:10,代码来源:LocalDevice.java

示例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;
    }
}
 
开发者ID:empeeoh,项目名称:bluecove-osx,代码行数:15,代码来源:LocalDevice.java

示例4: shutdown

import com.intel.bluetooth.BlueCoveImpl; //导入依赖的package包/类
public void shutdown() {
    if (bluetoothSupported) {
        logger.debug("Shutting down");
        thread.setStopped(true);
        thread.interrupt();
    }
    BlueCoveImpl.shutdown();
}
 
开发者ID:devbury,项目名称:mkRemote,代码行数:9,代码来源:BluetoothMouseMoveServer.java


注:本文中的com.intel.bluetooth.BlueCoveImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。