亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? deviceclass.java

?? java se平臺藍牙開發的插件 ,包括源碼 根據readme 生成包很多東西可以自己DIY很實用
?? JAVA
字號:
/* Copyright 2004 Intel Corporation This file is part of Blue Cove. Blue Cove is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. Blue Cove is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Blue Cove; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package javax.bluetooth;import com.intel.bluetooth.DebugLog;public class DeviceClass {	/*	 * service classes	 */	public static final int LIMITED_DISCOVERY_SERVICE = 0x002000;	public static final int RESERVED1_SERVICE = 0x004000;	public static final int RESERVED2_SERVICE = 0x008000;	public static final int POSITIONING_SERVICE = 0x010000;	public static final int NETWORKING_SERVICE = 0x020000;	public static final int RENDERING_SERVICE = 0x040000;	public static final int CAPTURING_SERVICE = 0x080000;	public static final int OBJECT_TRANSFER_SERVICE = 0x100000;	public static final int AUDIO_SERVICE = 0x200000;	public static final int TELEPHONY_SERVICE = 0x400000;	public static final int INFORMATION_SERVICE = 0x800000;	/*	 * major class codes	 */	public static final int MAJOR_MISCELLANEOUS = 0x0000;	public static final int MAJOR_COMPUTER = 0x0100;	public static final int MAJOR_PHONE = 0x0200;	public static final int MAJOR_LAN_ACCESS = 0x0300;	public static final int MAJOR_AUDIO = 0x0400;	public static final int MAJOR_PERIPHERAL = 0x0500;	public static final int MAJOR_IMAGING = 0x0600;	public static final int MAJOR_UNCLASSIFIED = 0x1F00;	/*	 * minor class codes	 */	public static final int COMPUTER_MINOR_UNCLASSIFIED = 0x00;	public static final int COMPUTER_MINOR_DESKTOP = 0x04;	public static final int COMPUTER_MINOR_SERVER = 0x08;	public static final int COMPUTER_MINOR_LAPTOP = 0x0c;	public static final int COMPUTER_MINOR_HANDHELD = 0x10;	public static final int COMPUTER_MINOR_PALM = 0x14;	public static final int COMPUTER_MINOR_WEARABLE = 0x18;	public static final int PHONE_MINOR_UNCLASSIFIED = 0x00;	public static final int PHONE_MINOR_CELLULAR = 0x04;	public static final int PHONE_MINOR_CORDLESS = 0x08;	public static final int PHONE_MINOR_SMARTPHONE = 0x0c;	public static final int PHONE_MINOR_WIRED_MODEM = 0x10;	public static final int PHONE_MINOR_ISDN = 0x14;	public static final int PHONE_MINOR_BANANA = 0x18;	public static final int LAN_MINOR_TYPE_MASK = 0x1c;	public static final int LAN_MINOR_ACCESS_MASK = 0xe0;	public static final int LAN_MINOR_UNCLASSIFIED = 0x00;	public static final int LAN_MINOR_ACCESS_0_USED = 0x00;	public static final int LAN_MINOR_ACCESS_17_USED = 0x20;	public static final int LAN_MINOR_ACCESS_33_USED = 0x40;	public static final int LAN_MINOR_ACCESS_50_USED = 0x60;	public static final int LAN_MINOR_ACCESS_67_USED = 0x80;	public static final int LAN_MINOR_ACCESS_83_USED = 0xa0;	public static final int LAN_MINOR_ACCESS_99_USED = 0xc0;	public static final int LAN_MINOR_ACCESS_FULL = 0xe0;	public static final int AUDIO_MINOR_UNCLASSIFIED = 0x00;	public static final int AUDIO_MINOR_HEADSET = 0x04;	public static final int AUDIO_MINOR_HANDS_FREE = 0x08;	// public static final int AUDIO_MINOR_RESERVED = 0x0c;	public static final int AUDIO_MINOR_MICROPHONE = 0x10;	public static final int AUDIO_MINOR_LOUDSPEAKER = 0x14;	public static final int AUDIO_MINOR_HEADPHONES = 0x18;	public static final int AUDIO_MINOR_PORTABLE_AUDIO = 0x1c;	public static final int AUDIO_MINOR_CAR_AUDIO = 0x20;	public static final int AUDIO_MINOR_SET_TOP_BOX = 0x24;	public static final int AUDIO_MINOR_HIFI_AUDIO = 0x28;	public static final int AUDIO_MINOR_VCR = 0x2c;	public static final int AUDIO_MINOR_VIDEO_CAMERA = 0x30;	public static final int AUDIO_MINOR_CAMCORDER = 0x34;	public static final int AUDIO_MINOR_VIDEO_MONITOR = 0x38;	public static final int AUDIO_MINOR_VIDEO_DISPLAY_LOUDSPEAKER = 0x3c;	public static final int AUDIO_MINOR_VIDEO_DISPLAY_CONFERENCING = 0x40;	// public static final int AUDIO_MINOR_RESERVED = 0x44;	public static final int AUDIO_MINOR_GAMING_TOY = 0x48;	public static final int PERIPHERAL_MINOR_TYPE_MASK = 0x3c;	public static final int PERIPHERAL_MINOR_KEYBOARD_MASK = 0x40;	public static final int PERIPHERAL_MINOR_POINTER_MASK = 0x80;	public static final int PERIPHERAL_MINOR_UNCLASSIFIED = 0x00;	public static final int PERIPHERAL_MINOR_JOYSTICK = 0x04;	public static final int PERIPHERAL_MINOR_GAMEPAD = 0x08;	public static final int PERIPHERAL_MINOR_REMOTE_CONTROL = 0x0c;	public static final int PERIPHERAL_MINOR_SENSING = 0x10;	public static final int PERIPHERAL_MINOR_DIGITIZER = 0x14;	public static final int PERIPHERAL_MINOR_CARD_READER = 0x18;	public static final int IMAGING_MINOR_DISPLAY_MASK = 0x10;	public static final int IMAGING_MINOR_CAMERA_MASK = 0x20;	public static final int IMAGING_MINOR_SCANNER_MASK = 0x40;	public static final int IMAGING_MINOR_PRINTER_MASK = 0x80;	private static final int SERVICE_MASK = 0xffe000;	private static final int MAJOR_MASK = 0x001f00;	private static final int MINOR_MASK = 0x0000fc;	private int record;	/*	 * Creates a DeviceClass from the class of device record provided. record	 * must follow the format of the class of device record in the Bluetooth	 * specification. Parameters: record - describes the classes of a device	 * Throws: IllegalArgumentException - if record has any bits between 24 and	 * 31 set	 */	public DeviceClass(int record) {				DebugLog.debug("new DeviceClass", record);				this.record = record;		if ((record & 0xff000000) != 0)			throw new IllegalArgumentException();	}	/*	 * Retrieves the major service classes. A device may have multiple major	 * service classes. When this occurs, the major service classes are bitwise	 * OR'ed together. Returns: the major service classes	 */	public int getServiceClasses() {		return record & SERVICE_MASK;	}	/*	 * Retrieves the major device class. A device may have only a single major	 * device class. Returns: the major device class	 */	public int getMajorDeviceClass() {		return record & MAJOR_MASK;	}	/*	 * Retrieves the minor device class. Returns: the minor device class	 */	public int getMinorDeviceClass() {		return record & MINOR_MASK;	}	private boolean append(StringBuffer buf, String str, boolean comma) {		if (comma)			buf.append(',');		buf.append(str);		return true;	}	public String toString() {		StringBuffer buf = new StringBuffer();		switch (getMajorDeviceClass()) {		case MAJOR_MISCELLANEOUS:			buf.append("Miscellaneous");			break;		case MAJOR_COMPUTER:			buf.append("Computer");			switch (getMinorDeviceClass()) {			case COMPUTER_MINOR_UNCLASSIFIED:				buf.append("/Unclassified");				break;			case COMPUTER_MINOR_DESKTOP:				buf.append("/Desktop");				break;			case COMPUTER_MINOR_SERVER:				buf.append("/Server");				break;			case COMPUTER_MINOR_LAPTOP:				buf.append("/Laptop");				break;			case COMPUTER_MINOR_HANDHELD:				buf.append("/Handheld");				break;			case COMPUTER_MINOR_PALM:				buf.append("/Palm");				break;			case COMPUTER_MINOR_WEARABLE:				buf.append("/Wearable");				break;			default:				buf.append("/Unknown");				break;			}			break;		case MAJOR_PHONE:			buf.append("Phone");			switch (getMinorDeviceClass()) {			case PHONE_MINOR_UNCLASSIFIED:				buf.append("/Unclassified");				break;			case PHONE_MINOR_CELLULAR:				buf.append("/Cellular");				break;			case PHONE_MINOR_CORDLESS:				buf.append("/Cordless");				break;			case PHONE_MINOR_SMARTPHONE:				buf.append("/Smartphone");				break;			case PHONE_MINOR_WIRED_MODEM:				buf.append("/Wired Modem");				break;			case PHONE_MINOR_ISDN:				buf.append("/ISDN");				break;			case PHONE_MINOR_BANANA:				buf.append("/Ring ring ring ring ring ring ring");				break;			default:				buf.append("/Unknown");				break;			}			break;		case MAJOR_LAN_ACCESS: {			buf.append("LAN Access");			int minor = getMinorDeviceClass();			switch (minor & LAN_MINOR_TYPE_MASK) {			case LAN_MINOR_UNCLASSIFIED:				buf.append("/Unclassified");				break;			default:				buf.append("/Unknown");				break;			}			switch (minor & LAN_MINOR_ACCESS_MASK) {			case LAN_MINOR_ACCESS_0_USED:				buf.append("/0% used");				break;			case LAN_MINOR_ACCESS_17_USED:				buf.append("/1-17% used");				break;			case LAN_MINOR_ACCESS_33_USED:				buf.append("/18-33% used");				break;			case LAN_MINOR_ACCESS_50_USED:				buf.append("/34-50% used");				break;			case LAN_MINOR_ACCESS_67_USED:				buf.append("/51-67% used");				break;			case LAN_MINOR_ACCESS_83_USED:				buf.append("/68-83% used");				break;			case LAN_MINOR_ACCESS_99_USED:				buf.append("/84-99% used");				break;			case LAN_MINOR_ACCESS_FULL:				buf.append("/100% used");				break;			}			break;		}		case MAJOR_AUDIO:			buf.append("Audio");			switch (getMinorDeviceClass()) {			case AUDIO_MINOR_UNCLASSIFIED:				buf.append("/Unclassified");				break;			case AUDIO_MINOR_HEADSET:				buf.append("/Headset");				break;			case AUDIO_MINOR_HANDS_FREE:				buf.append("/Hands-free");				break;			case AUDIO_MINOR_MICROPHONE:				buf.append("/Microphone");				break;			case AUDIO_MINOR_LOUDSPEAKER:				buf.append("/Loudspeaker");				break;			case AUDIO_MINOR_HEADPHONES:				buf.append("/Headphones");				break;			case AUDIO_MINOR_PORTABLE_AUDIO:				buf.append("/Portable");				break;			case AUDIO_MINOR_CAR_AUDIO:				buf.append("/Car");				break;			case AUDIO_MINOR_SET_TOP_BOX:				buf.append("/Set-top Box");				break;			case AUDIO_MINOR_HIFI_AUDIO:				buf.append("/HiFi");				break;			case AUDIO_MINOR_VCR:				buf.append("/VCR");				break;			case AUDIO_MINOR_VIDEO_CAMERA:				buf.append("/Video Camera");				break;			case AUDIO_MINOR_CAMCORDER:				buf.append("/Camcorder");				break;			case AUDIO_MINOR_VIDEO_MONITOR:				buf.append("/Video Monitor");				break;			case AUDIO_MINOR_VIDEO_DISPLAY_LOUDSPEAKER:				buf.append("/Video Display Loudspeaker");				break;			case AUDIO_MINOR_VIDEO_DISPLAY_CONFERENCING:				buf.append("/Video Display Conferencing");				break;			case AUDIO_MINOR_GAMING_TOY:				buf.append("/Gaming Toy");				break;			default:				buf.append("/Unknown");				break;			}			break;		case MAJOR_PERIPHERAL: {			buf.append("Peripheral");			int minor = getMinorDeviceClass();			switch (minor					& (PERIPHERAL_MINOR_KEYBOARD_MASK | PERIPHERAL_MINOR_POINTER_MASK)) {			case 0:				buf.append("/()");				break;			case PERIPHERAL_MINOR_KEYBOARD_MASK:				buf.append("/(Keyboard)");				break;			case PERIPHERAL_MINOR_POINTER_MASK:				buf.append("/(Pointer)");				break;			case PERIPHERAL_MINOR_KEYBOARD_MASK | PERIPHERAL_MINOR_POINTER_MASK:				buf.append("/(Keyboard,Pointer)");				break;			}			switch (minor & PERIPHERAL_MINOR_TYPE_MASK) {			case PERIPHERAL_MINOR_UNCLASSIFIED:				buf.append("/Unclassified");				break;			case PERIPHERAL_MINOR_JOYSTICK:				buf.append("/Joystick");				break;			case PERIPHERAL_MINOR_GAMEPAD:				buf.append("/Gamepad");				break;			case PERIPHERAL_MINOR_REMOTE_CONTROL:				buf.append("/Remote Control");				break;			case PERIPHERAL_MINOR_SENSING:				buf.append("/Sensing");				break;			case PERIPHERAL_MINOR_DIGITIZER:				buf.append("/Digitizer");				break;			case PERIPHERAL_MINOR_CARD_READER:				buf.append("/Card Reader");				break;			default:				buf.append("/Unknown");				break;			}			break;		}		case MAJOR_IMAGING: {			buf.append("Peripheral/(");			int minor = getMinorDeviceClass();			boolean comma = false;			if ((minor & IMAGING_MINOR_DISPLAY_MASK) != 0)				comma = append(buf, "Display", comma);			if ((minor & IMAGING_MINOR_CAMERA_MASK) != 0)				comma = append(buf, "Camera", comma);			if ((minor & IMAGING_MINOR_SCANNER_MASK) != 0)				comma = append(buf, "Scanner", comma);			if ((minor & IMAGING_MINOR_PRINTER_MASK) != 0)				comma = append(buf, "Printer", comma);			buf.append(')');			break;		}		case MAJOR_UNCLASSIFIED:			buf.append("Unclassified");			break;		default:			buf.append("Unknown");			break;		}		buf.append("/(");		boolean comma = false;		if ((record & LIMITED_DISCOVERY_SERVICE) != 0)			comma = append(buf, "Limited Discovery", comma);		if ((record & POSITIONING_SERVICE) != 0)			comma = append(buf, "Positioning", comma);		if ((record & NETWORKING_SERVICE) != 0)			comma = append(buf, "Networking", comma);		if ((record & RENDERING_SERVICE) != 0)			comma = append(buf, "Rendering", comma);		if ((record & CAPTURING_SERVICE) != 0)			comma = append(buf, "Capturing", comma);		if ((record & OBJECT_TRANSFER_SERVICE) != 0)			comma = append(buf, "Object Transfer", comma);		if ((record & AUDIO_SERVICE) != 0)			comma = append(buf, "Audio", comma);		if ((record & TELEPHONY_SERVICE) != 0)			comma = append(buf, "Telephony", comma);		if ((record & INFORMATION_SERVICE) != 0)			comma = append(buf, "Information", comma);		buf.append(')');		return buf.toString();	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产激情一区二区三区| 秋霞影院一区二区| 久久久久国产成人精品亚洲午夜| 精品1区2区3区| 欧美性高清videossexo| 欧美亚州韩日在线看免费版国语版 | 日本久久电影网| www.av亚洲| 色又黄又爽网站www久久| 色噜噜夜夜夜综合网| 色拍拍在线精品视频8848| 色先锋aa成人| 9191国产精品| 国产亚洲综合色| 国产精品久久久久三级| 亚洲天堂2016| 日韩av一区二区三区四区| 久久成人综合网| 国产丶欧美丶日本不卡视频| 欧美久久免费观看| 91麻豆精品国产自产在线观看一区 | 国产精品一区二区在线观看网站| 国产一区久久久| 丁香网亚洲国际| 色狠狠一区二区三区香蕉| 91精品国产综合久久小美女 | 国产福利一区二区| 9l国产精品久久久久麻豆| 色先锋资源久久综合| 欧美日本在线一区| 国产性做久久久久久| 亚洲在线成人精品| 老司机精品视频一区二区三区| 国产黄色精品视频| 欧美日韩一区小说| 中文字幕国产精品一区二区| 亚洲一区二区在线免费观看视频 | 久久人人爽人人爽| 亚洲国产日韩av| 成人精品免费网站| 91精品国产色综合久久不卡电影| 日本一区二区视频在线| 午夜精品久久久久久久久| 成人国产精品免费观看动漫| 精品视频全国免费看| 国产精品久久免费看| 麻豆国产欧美一区二区三区| 99国产精品久久久久| 日韩一区和二区| 亚洲黄色av一区| 风流少妇一区二区| 欧美一级视频精品观看| 亚洲自拍偷拍麻豆| 成人av网站免费| 久久天堂av综合合色蜜桃网| 亚洲第一久久影院| 色天天综合色天天久久| 亚洲国产精华液网站w| 激情文学综合插| 欧美一区二区大片| 亚洲第一福利一区| 日本韩国视频一区二区| 国产精品美女久久久久aⅴ| 捆绑调教美女网站视频一区| 欧美喷潮久久久xxxxx| 亚洲精品中文在线观看| 成人福利视频网站| 国产欧美日韩中文久久| 国产精品乡下勾搭老头1| 26uuu久久天堂性欧美| 久久er精品视频| 欧美一区二区久久| 大白屁股一区二区视频| 日韩精品专区在线影院观看| 天堂一区二区在线| 7777精品伊人久久久大香线蕉超级流畅 | 在线综合+亚洲+欧美中文字幕| 亚洲成年人网站在线观看| 欧美吞精做爰啪啪高潮| 亚洲一区视频在线| 欧美一卡二卡三卡| 精品一区二区三区在线播放视频| 欧美另类一区二区三区| 久久www免费人成看片高清| 欧美成人女星排名| 国产一区二区三区四区在线观看| 国产亚洲女人久久久久毛片| 成人深夜福利app| 1024国产精品| 欧美狂野另类xxxxoooo| 精品一区二区三区日韩| 中文一区在线播放| 一本色道亚洲精品aⅴ| 日韩av二区在线播放| 精品久久久久久久久久久久包黑料| 国内精品第一页| 最近日韩中文字幕| 欧美日本免费一区二区三区| 蜜桃久久久久久| 国产精品视频在线看| 色综合中文字幕| 免费视频最近日韩| 国产精品久久国产精麻豆99网站| 色妞www精品视频| 久久成人免费网站| 亚洲欧洲性图库| 在线播放欧美女士性生活| 欧美中文字幕一区| 蜜乳av一区二区| 中文字幕欧美日韩一区| 欧美日韩国产首页| 丁香桃色午夜亚洲一区二区三区| 亚洲美腿欧美偷拍| 久久影音资源网| 在线观看欧美精品| 国产精品一卡二卡在线观看| 有码一区二区三区| 久久久99精品久久| 欧美视频三区在线播放| 大桥未久av一区二区三区中文| 亚洲成在人线在线播放| 国产嫩草影院久久久久| 日韩午夜在线播放| 在线视频国产一区| 国产精品影视天天线| 日韩国产欧美在线观看| 亚洲欧洲中文日韩久久av乱码| 日韩一区二区高清| 欧美日韩一区二区三区免费看| 国产福利一区二区三区在线视频| 日韩av电影天堂| 一区二区日韩电影| 亚洲天堂成人在线观看| 国产三级一区二区| 日韩一区国产二区欧美三区| 91麻豆免费看| 91网站视频在线观看| 国产乱人伦偷精品视频不卡 | 欧美成va人片在线观看| 欧美色精品在线视频| jlzzjlzz亚洲女人18| 成人高清视频在线观看| 激情综合色播五月| 久久www免费人成看片高清| 日韩精品91亚洲二区在线观看 | 免费在线成人网| 婷婷综合久久一区二区三区| 亚洲一区二区三区中文字幕在线| 国产色一区二区| 国产精品亲子乱子伦xxxx裸| 337p粉嫩大胆噜噜噜噜噜91av| 日韩欧美亚洲国产精品字幕久久久| 欧美日韩在线播放三区| 欧美日韩亚洲国产综合| 欧美日韩一区二区三区免费看| 欧美日韩午夜精品| 欧美一区二区三区视频免费 | 成人蜜臀av电影| 国产黄色91视频| www..com久久爱| 94-欧美-setu| 欧美性一级生活| 欧美日韩免费电影| 欧美一区二区三区视频免费| 精品福利一区二区三区免费视频| 精品国产免费视频| 欧美高清在线一区二区| 中文字幕一区二区三区在线播放| 国产精品乱码久久久久久 | 欧美三级电影在线看| 欧美片网站yy| 99精品桃花视频在线观看| 在线一区二区观看| 日韩精品一区二区三区蜜臀| 国产日韩视频一区二区三区| 亚洲色图色小说| 五月天视频一区| 韩国女主播成人在线| 成人小视频在线| 欧美日韩三级一区| 欧美精品一区二区三区蜜桃| 国产精品传媒在线| 男人的j进女人的j一区| 国产精品系列在线播放| 一本色道久久加勒比精品| 欧美夫妻性生活| 国产日韩欧美一区二区三区乱码| 亚洲精品成人天堂一二三| 免费观看日韩av| 日韩avvvv在线播放| 久久精品国产99| 99久久久久久| 欧美性猛片xxxx免费看久爱| 91在线码无精品| 久久精品日产第一区二区三区高清版| 亚洲精品在线三区| 亚洲成人免费视频| 蜜桃一区二区三区四区| 粉嫩在线一区二区三区视频| 国产精品久久午夜|