类 DeviceConstants


  • public class DeviceConstants
    extends java.lang.Object
    • 字段详细资料

      • 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
    • 构造器详细资料

      • DeviceConstants

        public DeviceConstants()
    • 方法详细资料

      • 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)