public class CarFunctionHelper
extends java.lang.Object
Constructor and Description |
---|
CarFunctionHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
filterWithDriveMode(int driveMode,
int cachedWakeUpDoa,
int wakeupChannelMask,
java.lang.String retString)
主驾模式,不响应副驾唤醒
副驾模式,不响应主驾唤醒
自由组合模式,根据doa与传入的mask 决定是否唤醒
全车模式和定位模式未定位时可以全局响应唤醒
新增全车模式也需要根据mask 进行判定是否唤醒
|
static boolean |
isCombinationEnable(int wakeupChannelMask,
int doa)
根据传入的音区,判断唤醒的doa是否可以抛出唤醒
目前支持全车模式(音区锁定功能)和 自由组合模式
|
static boolean |
isDoaInCoPilot(int doa)
副驾唤醒
|
static boolean |
isDoaInMain(int doa)
主驾唤醒
|
static int |
transformDoa(int doa)
依照唤醒角度自动设置主副驾模式
|
public static boolean isCombinationEnable(int wakeupChannelMask, int doa)
doa
- public static boolean filterWithDriveMode(int driveMode, int cachedWakeUpDoa, int wakeupChannelMask, java.lang.String retString)
driveMode
- 驾驶模式cachedWakeUpDoa
- 缓存的唤醒角度retString
- public static int transformDoa(int doa)
doa
- 唤醒角度public static boolean isDoaInMain(int doa)
public static boolean isDoaInCoPilot(int doa)