类 DeviceConstants
- java.lang.Object
-
- com.ltdigital.sdk.android.ble_protocol.constants.DeviceConstants
-
public class DeviceConstants extends java.lang.Object
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.String[]
DEVICE_NAMES_MEDIC_TEC_WA001
static java.lang.String[]
DEVICE_NAMES_MEDIC_TEC_WA002
static java.lang.String[]
DEVICE_NAMES_MEDIC_TEC_WA003
static java.lang.String[]
DEVICE_NAMES_MEDIC_TEC_WA005
static java.lang.String[]
DEVICE_NAMES_ROPE_JCSKIP
static java.lang.String
DEVICE_TYPE_JIELI
static java.lang.String
DEVICE_TYPE_ROPE_JC_SKIP
static java.lang.String
DEVICE_TYPE_WA001
static java.lang.String
DEVICE_TYPE_WA002
static java.lang.String
DEVICE_TYPE_WA003
static java.lang.String
DEVICE_TYPE_WA005
static java.util.Map<java.lang.String,java.util.List<java.lang.String>>
deviceSupportNameMap
-
构造器概要
构造器 构造器 说明 DeviceConstants()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static java.util.List<android.bluetooth.le.ScanFilter>
getBOMonitorScanFilter()
static java.lang.String[]
getDeviceNamesMedicTecWa001()
static java.lang.String[]
getDeviceNamesMedicTecWa002()
static java.lang.String[]
getDeviceNamesMedicTecWa003()
static java.lang.String[]
getDeviceNamesMedicTecWa005()
static java.lang.String[]
getDeviceNamesRopeJcskip()
static java.lang.String[]
getDeviceSupportNameWithNetCombine(java.lang.String[] names, java.lang.String deviceType)
static java.lang.String
getDeviceType(java.lang.String deviceName)
static java.lang.String[]
getDeviceTypeWithOutMainDevice()
返回除主设备以外的所有设备类型static java.lang.String[]
getDialogDeviceScanFilterNames()
static java.util.List<android.bluetooth.le.ScanFilter>
getRopeScanFilter()
static java.util.List<android.bluetooth.le.ScanFilter>
getWA001ScanFilter()
static java.util.List<android.bluetooth.le.ScanFilter>
getWA002ScanFilter()
static java.util.List<android.bluetooth.le.ScanFilter>
getWA003ScanFilter()
static java.util.List<android.bluetooth.le.ScanFilter>
getWA005ScanFilter()
static boolean
isDeviceTypeJieli(java.lang.String deviceType)
static boolean
isDeviceTypeRopeJCSkip(java.lang.String deviceType)
static boolean
isDeviceTypeWA001(java.lang.String deviceType)
static boolean
isDeviceTypeWA002(java.lang.String deviceType)
static boolean
isDeviceTypeWA003(java.lang.String deviceType)
static boolean
isDeviceTypeWA005(java.lang.String deviceType)
static boolean
isDialogDeviceType(java.lang.String deviceType)
static boolean
isJCSkip(java.lang.String deviceName)
跳绳外界设备比较特殊名字为厂商定义包含了mac地址所以采用包含的形式判断static boolean
isMainDeviceType(java.lang.String deviceType)
static boolean
isNewWalkReminderSupport(java.lang.String deviceType, java.lang.String softVersion)
static boolean
isRealtekDeviceType(java.lang.String deviceType)
static boolean
isSupportBind4CodeDevice(java.lang.String deviceType)
static boolean
isSupportDevice(java.lang.String deviceType)
static boolean
isSupportDeviceContact(java.lang.String deviceType, java.lang.String softVersion)
判断设备是否支持设备联系人功能static boolean
isSupportDeviceMusic(java.lang.String deviceType, java.lang.String softVersion)
判断设备是否支持设备音乐功能static boolean
isSupportDeviceSpoz(java.lang.String deviceType, java.lang.String softVersion)
static boolean
isSupportDeviceTempReport(java.lang.String deviceType)
static boolean
isSupportDeviceUsageReport(java.lang.String deviceType)
static boolean
isSupportFemaleHealth(java.lang.String deviceType, java.lang.String softVersion)
判断设备是否支持女性健康功能static boolean
isSupportNapSleep(java.lang.String deviceType, java.lang.String softVersion)
判断设备是否支持午睡功能static boolean
isSupportSleepImprove(java.lang.String deviceType, java.lang.String softVersion)
是否支持睡眠改善功能static boolean
isSupportWatchDial(java.lang.String deviceType, java.lang.String softVersion)
判断设备是否支持设备表盘功能static boolean
isWA001(java.lang.String deviceName)
static boolean
isWA002(java.lang.String deviceName)
static boolean
isWA003(java.lang.String deviceName)
static boolean
isWA005(java.lang.String deviceName)
-
-
-
字段详细资料
-
DEVICE_NAMES_MEDIC_TEC_WA001
public static final java.lang.String[] DEVICE_NAMES_MEDIC_TEC_WA001
-
DEVICE_NAMES_MEDIC_TEC_WA002
public static final java.lang.String[] DEVICE_NAMES_MEDIC_TEC_WA002
-
DEVICE_NAMES_MEDIC_TEC_WA003
public static final java.lang.String[] DEVICE_NAMES_MEDIC_TEC_WA003
-
DEVICE_NAMES_MEDIC_TEC_WA005
public static final java.lang.String[] DEVICE_NAMES_MEDIC_TEC_WA005
-
DEVICE_NAMES_ROPE_JCSKIP
public static final java.lang.String[] DEVICE_NAMES_ROPE_JCSKIP
-
DEVICE_TYPE_WA001
public static final java.lang.String DEVICE_TYPE_WA001
- 另请参阅:
- 常量字段值
-
DEVICE_TYPE_WA002
public static final java.lang.String DEVICE_TYPE_WA002
- 另请参阅:
- 常量字段值
-
DEVICE_TYPE_WA003
public static final java.lang.String DEVICE_TYPE_WA003
- 另请参阅:
- 常量字段值
-
DEVICE_TYPE_WA005
public static final java.lang.String DEVICE_TYPE_WA005
- 另请参阅:
- 常量字段值
-
DEVICE_TYPE_JIELI
public static final java.lang.String DEVICE_TYPE_JIELI
- 另请参阅:
- 常量字段值
-
DEVICE_TYPE_ROPE_JC_SKIP
public static final java.lang.String DEVICE_TYPE_ROPE_JC_SKIP
- 另请参阅:
- 常量字段值
-
deviceSupportNameMap
public static final java.util.Map<java.lang.String,java.util.List<java.lang.String>> deviceSupportNameMap
-
-
方法详细资料
-
isDialogDeviceType
public static boolean isDialogDeviceType(java.lang.String deviceType)
-
isRealtekDeviceType
public static boolean isRealtekDeviceType(java.lang.String deviceType)
-
isMainDeviceType
public static boolean isMainDeviceType(java.lang.String deviceType)
-
getWA001ScanFilter
public static java.util.List<android.bluetooth.le.ScanFilter> getWA001ScanFilter()
-
getWA002ScanFilter
public static java.util.List<android.bluetooth.le.ScanFilter> getWA002ScanFilter()
-
getWA003ScanFilter
public static java.util.List<android.bluetooth.le.ScanFilter> getWA003ScanFilter()
-
getWA005ScanFilter
public static java.util.List<android.bluetooth.le.ScanFilter> getWA005ScanFilter()
-
getRopeScanFilter
public static java.util.List<android.bluetooth.le.ScanFilter> getRopeScanFilter()
-
getBOMonitorScanFilter
public static java.util.List<android.bluetooth.le.ScanFilter> getBOMonitorScanFilter()
-
isWA001
public static boolean isWA001(java.lang.String deviceName)
-
isWA002
public static boolean isWA002(java.lang.String deviceName)
-
isWA003
public static boolean isWA003(java.lang.String deviceName)
-
isWA005
public static boolean isWA005(java.lang.String deviceName)
-
isJCSkip
public static boolean isJCSkip(java.lang.String deviceName)
跳绳外界设备比较特殊名字为厂商定义包含了mac地址所以采用包含的形式判断- 参数:
deviceName
-- 返回:
-
getDialogDeviceScanFilterNames
public static java.lang.String[] getDialogDeviceScanFilterNames()
-
getDeviceType
public static java.lang.String getDeviceType(java.lang.String deviceName)
-
isDeviceTypeWA001
public static boolean isDeviceTypeWA001(java.lang.String deviceType)
-
isDeviceTypeWA002
public static boolean isDeviceTypeWA002(java.lang.String deviceType)
-
isDeviceTypeWA003
public static boolean isDeviceTypeWA003(java.lang.String deviceType)
-
isDeviceTypeWA005
public static boolean isDeviceTypeWA005(java.lang.String deviceType)
-
isDeviceTypeRopeJCSkip
public static boolean isDeviceTypeRopeJCSkip(java.lang.String deviceType)
-
isDeviceTypeJieli
public static boolean isDeviceTypeJieli(java.lang.String deviceType)
-
isSupportDeviceUsageReport
public static boolean isSupportDeviceUsageReport(java.lang.String deviceType)
-
isSupportDeviceTempReport
public static boolean isSupportDeviceTempReport(java.lang.String deviceType)
-
isSupportBind4CodeDevice
public static boolean isSupportBind4CodeDevice(java.lang.String deviceType)
-
isSupportDevice
public static boolean isSupportDevice(java.lang.String deviceType)
-
isNewWalkReminderSupport
public static boolean isNewWalkReminderSupport(java.lang.String deviceType, java.lang.String softVersion)
-
isSupportWatchDial
public static boolean isSupportWatchDial(java.lang.String deviceType, java.lang.String softVersion)
判断设备是否支持设备表盘功能- 参数:
deviceType
-- 返回:
-
isSupportDeviceMusic
public static boolean isSupportDeviceMusic(java.lang.String deviceType, java.lang.String softVersion)
判断设备是否支持设备音乐功能- 参数:
deviceType
-- 返回:
-
isSupportDeviceContact
public static boolean isSupportDeviceContact(java.lang.String deviceType, java.lang.String softVersion)
判断设备是否支持设备联系人功能- 参数:
deviceType
-- 返回:
-
isSupportDeviceSpoz
public static boolean isSupportDeviceSpoz(java.lang.String deviceType, java.lang.String softVersion)
-
isSupportSleepImprove
public static boolean isSupportSleepImprove(java.lang.String deviceType, java.lang.String softVersion)
是否支持睡眠改善功能- 参数:
deviceType
-softVersion
-- 返回:
-
isSupportFemaleHealth
public static boolean isSupportFemaleHealth(java.lang.String deviceType, java.lang.String softVersion)
判断设备是否支持女性健康功能- 参数:
deviceType
-softVersion
-- 返回:
-
isSupportNapSleep
public static boolean isSupportNapSleep(java.lang.String deviceType, java.lang.String softVersion)
判断设备是否支持午睡功能- 参数:
deviceType
-softVersion
-- 返回:
-
getDeviceTypeWithOutMainDevice
public static java.lang.String[] getDeviceTypeWithOutMainDevice()
返回除主设备以外的所有设备类型- 返回:
-
getDeviceNamesMedicTecWa001
public static java.lang.String[] getDeviceNamesMedicTecWa001()
-
getDeviceNamesMedicTecWa002
public static java.lang.String[] getDeviceNamesMedicTecWa002()
-
getDeviceNamesMedicTecWa003
public static java.lang.String[] getDeviceNamesMedicTecWa003()
-
getDeviceNamesMedicTecWa005
public static java.lang.String[] getDeviceNamesMedicTecWa005()
-
getDeviceNamesRopeJcskip
public static java.lang.String[] getDeviceNamesRopeJcskip()
-
getDeviceSupportNameWithNetCombine
public static java.lang.String[] getDeviceSupportNameWithNetCombine(java.lang.String[] names, java.lang.String deviceType)
-
-