-
public class DeviceConfigClass holding device configuration.
Consists mainly of convenience methods for converting DST2 parameters to device configuration related properties.
-
-
Field Summary
Fields Modifier and Type Field Description public final static booleanIS_SID_CONSTRUCTIONpublic final static booleanIS_SID_INTEGRATIONpublic final static booleanIS_SID_EMULATORpublic final static booleanIS_SIDpublic final static booleanIS_ZBpublic final static booleanIS_COPILOT2_EMULATORpublic final static booleanIS_COPILOT2public final static booleanIS_HYDRA_INTEGRATIONpublic final static booleanIS_HERCULESpublic final static booleanIS_BULLDOGpublic final static booleanIS_HYDRAprivate booleanisEmulator
-
Constructor Summary
Constructors Constructor Description DeviceConfig(Diagnostics diag)
-
Method Summary
Modifier and Type Method Description booleanisEmulator()Check if device is an emulator, i.e. EcuIdDatagetEcuIdData()HW and embedded CEA2+ SW identifiers/part numbers according to Volvo format. booleandebugModeEnabled()Reads debug mode parameter in dataset and returns accordingly. booleandemoModeEnabled()Is demo mode enabled or not. booleanfeatureCheckEnabled()Is feature check enabled or not. booleansensorCheckEnabled()Is sensor check enabled or not. booleanfactoryModeActive()Device set to factory mode. booleandataset2Updated()Check if DST2 have been updated from Android static booleanisGenericDevice()-
-
Constructor Detail
-
DeviceConfig
DeviceConfig(Diagnostics diag)
-
-
Method Detail
-
isEmulator
boolean isEmulator()
Check if device is an emulator, i.e. most preferred supported ABI is x86 or x86_64
-
getEcuIdData
@NonNull() EcuIdData getEcuIdData()
HW and embedded CEA2+ SW identifiers/part numbers according to Volvo format.
-
debugModeEnabled
boolean debugModeEnabled()
Reads debug mode parameter in dataset and returns accordingly.
-
demoModeEnabled
boolean demoModeEnabled()
Is demo mode enabled or not.
Demo mode is encoded in feature enable parameter bit 19.
-
featureCheckEnabled
boolean featureCheckEnabled()
Is feature check enabled or not.
Feature check enabled is encoded in feature enable parameter bit 17.
-
sensorCheckEnabled
boolean sensorCheckEnabled()
Is sensor check enabled or not.
Sensor check enabled is encoded in feature enable parameter bit 18.
-
factoryModeActive
boolean factoryModeActive()
Device set to factory mode.
Used mainly in Volvo production. This can be used to enable/disable functionality accordingto the production needs.
-
dataset2Updated
boolean dataset2Updated()
Check if DST2 have been updated from Android
-
isGenericDevice
static boolean isGenericDevice()
-
-
-
-