diff options
Diffstat (limited to 'SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums')
72 files changed, 1490 insertions, 0 deletions
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AmbientLightStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AmbientLightStatus.java new file mode 100644 index 000000000..ff1cf6246 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AmbientLightStatus.java @@ -0,0 +1,16 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum AmbientLightStatus { + NIGHT, + TWILIGHT_1, + TWILIGHT_2, + TWILIGHT_3, + TWILIGHT_4, + DAY, + UNKNOWN, + INVALID; + + public static AmbientLightStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AppHMIType.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AppHMIType.java new file mode 100644 index 000000000..f5676495e --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AppHMIType.java @@ -0,0 +1,18 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum AppHMIType { + DEFAULT, + COMMUNICATION, + MEDIA, + MESSAGING, + NAVIGATION, + INFORMATION, + SOCIAL, + BACKGROUND_PROCESS, + TESTING, + SYSTEM; + + public static AppHMIType valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AppInterfaceUnregisteredReason.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AppInterfaceUnregisteredReason.java new file mode 100644 index 000000000..5d43e37d8 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AppInterfaceUnregisteredReason.java @@ -0,0 +1,20 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+
+public enum AppInterfaceUnregisteredReason {
+ USER_EXIT,
+ IGNITION_OFF,
+ BLUETOOTH_OFF,
+ USB_DISCONNECTED,
+ REQUEST_WHILE_IN_NONE_HMI_LEVEL,
+ TOO_MANY_REQUESTS,
+ DRIVER_DISTRACTION_VIOLATION,
+ LANGUAGE_CHANGE,
+ MASTER_RESET,
+ FACTORY_DEFAULTS,
+ APP_UNAUTHORIZED;
+
+ public static AppInterfaceUnregisteredReason valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AudioStreamingState.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AudioStreamingState.java new file mode 100644 index 000000000..b54bb6399 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AudioStreamingState.java @@ -0,0 +1,11 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum AudioStreamingState {
+ AUDIBLE,
+ ATTENUATED,
+ NOT_AUDIBLE;
+
+ public static AudioStreamingState valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AudioType.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AudioType.java new file mode 100644 index 000000000..85f87d491 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/AudioType.java @@ -0,0 +1,9 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum AudioType { + PCM; + + public static AudioType valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/BitsPerSample.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/BitsPerSample.java new file mode 100644 index 000000000..8389bb32b --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/BitsPerSample.java @@ -0,0 +1,27 @@ +package com.ford.syncV4.proxy.rpc.enums; + +import java.util.EnumSet; + +public enum BitsPerSample { + _8_BIT("8_BIT"), + _16_BIT("16_BIT"); + + String internalName; + + private BitsPerSample(String internalName) { + this.internalName = internalName; + } + + public String toString() { + return this.internalName; + } + + public static BitsPerSample valueForString(String value) { + for (BitsPerSample anEnum : EnumSet.allOf(BitsPerSample.class)) { + if (anEnum.toString().equals(value)) { + return anEnum; + } + } + return null; + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ButtonEventMode.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ButtonEventMode.java new file mode 100644 index 000000000..4d0a096d0 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ButtonEventMode.java @@ -0,0 +1,10 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum ButtonEventMode {
+ BUTTONUP,
+ BUTTONDOWN;
+
+ public static ButtonEventMode valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ButtonName.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ButtonName.java new file mode 100644 index 000000000..a00359115 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ButtonName.java @@ -0,0 +1,78 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum ButtonName{
+ OK,
+ SEEKLEFT,
+ SEEKRIGHT,
+ TUNEUP,
+ TUNEDOWN,
+ PRESET_0,
+ PRESET_1,
+ PRESET_2,
+ PRESET_3,
+ PRESET_4,
+ PRESET_5,
+ PRESET_6,
+ PRESET_7,
+ PRESET_8,
+ PRESET_9,
+ CUSTOM_BUTTON,
+ SEARCH;
+
+ public static ButtonName valueForString(String value) {
+ try {
+ return valueOf(value);
+ } catch (IllegalArgumentException e) {
+ return null;
+ }
+ }
+
+ /**
+ * indexForPresetButton returns the integer index for preset buttons
+ * which match the preset order. E.G.: indexForPresetButton(PRESET_1)
+ * returns the value 1. If the buttonName given is not a preset button,
+ * the method will return null.
+ *
+ * @param buttonName
+ * @return Integer
+ */
+ public static Integer indexForPresetButton(ButtonName buttonName) {
+
+ Integer returnIndex = null;
+
+ switch(buttonName) {
+ case PRESET_0:
+ returnIndex = 0;
+ break;
+ case PRESET_1:
+ returnIndex = 1;
+ break;
+ case PRESET_2:
+ returnIndex = 2;
+ break;
+ case PRESET_3:
+ returnIndex = 3;
+ break;
+ case PRESET_4:
+ returnIndex = 4;
+ break;
+ case PRESET_5:
+ returnIndex = 5;
+ break;
+ case PRESET_6:
+ returnIndex = 6;
+ break;
+ case PRESET_7:
+ returnIndex = 7;
+ break;
+ case PRESET_8:
+ returnIndex = 8;
+ break;
+ case PRESET_9:
+ returnIndex = 9;
+ break;
+ }
+
+ return returnIndex;
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ButtonPressMode.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ButtonPressMode.java new file mode 100644 index 000000000..ca0d7c3d0 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ButtonPressMode.java @@ -0,0 +1,10 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum ButtonPressMode {
+ LONG,
+ SHORT;
+
+ public static ButtonPressMode valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/CarModeStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/CarModeStatus.java new file mode 100644 index 000000000..91a559d5b --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/CarModeStatus.java @@ -0,0 +1,12 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum CarModeStatus { + NORMAL, + FACTORY, + TRANSPORT, + CRASH; + + public static CarModeStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/CharacterSet.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/CharacterSet.java new file mode 100644 index 000000000..1f71211e3 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/CharacterSet.java @@ -0,0 +1,12 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum CharacterSet {
+ TYPE2SET,
+ TYPE5SET,
+ CID1SET,
+ CID2SET;
+
+ public static CharacterSet valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/CompassDirection.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/CompassDirection.java new file mode 100644 index 000000000..891e5188f --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/CompassDirection.java @@ -0,0 +1,16 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum CompassDirection { + NORTH, + NORTHWEST, + WEST, + SOUTHWEST, + SOUTH, + SOUTHEAST, + EAST, + NORTHEAST; + + public static CompassDirection valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ComponentVolumeStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ComponentVolumeStatus.java new file mode 100644 index 000000000..279e54b0d --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ComponentVolumeStatus.java @@ -0,0 +1,14 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum ComponentVolumeStatus { + UNKNOWN, + NORMAL, + LOW, + FAULT, + ALERT, + NOT_SUPPORTED; + + public static ComponentVolumeStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/DeviceLevelStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/DeviceLevelStatus.java new file mode 100644 index 000000000..82b663c94 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/DeviceLevelStatus.java @@ -0,0 +1,14 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum DeviceLevelStatus { + ZERO_LEVEL_BARS, + ONE_LEVEL_BARS, + TWO_LEVEL_BARS, + THREE_LEVEL_BARS, + FOUR_LEVEL_BARS, + NOT_PROVIDED; + + public static DeviceLevelStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/Dimension.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/Dimension.java new file mode 100644 index 000000000..2fb500e7d --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/Dimension.java @@ -0,0 +1,28 @@ +package com.ford.syncV4.proxy.rpc.enums; + +import java.util.EnumSet; + +public enum Dimension { + NO_FIX("NO_FIX"), + _2D("2D"), + _3D("3D"); + + String internalName; + + private Dimension(String internalName) { + this.internalName = internalName; + } + + public String toString() { + return this.internalName; + } + + public static Dimension valueForString(String value) { + for (Dimension anEnum : EnumSet.allOf(Dimension.class)) { + if (anEnum.toString().equals(value)) { + return anEnum; + } + } + return null; + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/DisplayType.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/DisplayType.java new file mode 100644 index 000000000..c40be746a --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/DisplayType.java @@ -0,0 +1,35 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum DisplayType {
+ CID("CID"),
+ TYPE2("TYPE2"),
+ TYPE5("TYPE5"),
+ NGN("NGN"),
+ GEN2_8_DMA("GEN2_8_DMA"),
+ GEN2_6_DMA("GEN2_6_DMA"),
+ MFD3("MFD3"),
+ MFD4("MFD4"),
+ MFD5("MFD5"),
+ GEN3_8_INCH("GEN3_8-INCH");
+
+ final String internalName;
+
+ private DisplayType(String internalName) {
+ this.internalName = internalName;
+ }
+
+ public static DisplayType valueForString(String value) {
+ for (DisplayType type : DisplayType.values()) {
+ if (type.toString().equals(value)) {
+ return type;
+ }
+ }
+
+ throw new IllegalArgumentException("Unknown value " + value);
+ }
+
+ @Override
+ public String toString() {
+ return internalName;
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/DriverDistractionState.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/DriverDistractionState.java new file mode 100644 index 000000000..e18ca3ca2 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/DriverDistractionState.java @@ -0,0 +1,17 @@ +/**
+ *
+ */
+package com.ford.syncV4.proxy.rpc.enums;
+
+/**
+ * @author skhare3
+ *Enumeration that describes possible states of driver distraction.
+ */
+public enum DriverDistractionState {
+ DD_ON,
+ DD_OFF;
+
+ public static DriverDistractionState valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ECallConfirmationStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ECallConfirmationStatus.java new file mode 100644 index 000000000..1c5a1dc84 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ECallConfirmationStatus.java @@ -0,0 +1,15 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum ECallConfirmationStatus { + NORMAL, + CALL_IN_PROGRESS, + CALL_CANCELLED, + CALL_COMPLETED, + CALL_UNSUCCESSFUL, + ECALL_CONFIGURED_OFF, + CALL_COMPLETE_DTMF_TIMEOUT; + + public static ECallConfirmationStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/EmergencyEventType.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/EmergencyEventType.java new file mode 100644 index 000000000..8468e2fcd --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/EmergencyEventType.java @@ -0,0 +1,15 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum EmergencyEventType { + NO_EVENT, + FRONTAL, + SIDE, + REAR, + ROLLOVER, + NOT_SUPPORTED, + FAULT; + + public static EmergencyEventType valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/FileType.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/FileType.java new file mode 100644 index 000000000..5c482fb4d --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/FileType.java @@ -0,0 +1,16 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum FileType { + GRAPHIC_BMP, + GRAPHIC_JPEG, + GRAPHIC_PNG, + AUDIO_WAVE, + AUDIO_MP3, + AUDIO_AAC, + BINARY, + JSON; + + public static FileType valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/FuelCutoffStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/FuelCutoffStatus.java new file mode 100644 index 000000000..462d76e78 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/FuelCutoffStatus.java @@ -0,0 +1,11 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum FuelCutoffStatus { + TERMINATE_FUEL, + NORMAL_OPERATION, + FAULT; + + public static FuelCutoffStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/GearShiftAdviceStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/GearShiftAdviceStatus.java new file mode 100644 index 000000000..4b847e2c1 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/GearShiftAdviceStatus.java @@ -0,0 +1,14 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum GearShiftAdviceStatus { + NO_INDICATION, + UPSHIFT_FUEL_ECONOMY, + UPSHIFT_PERFORMANCE, + UPSHIFT_WARNING, + DOWNSHIFT_RECOMMENDATION, + SHIFT_TO_NEUTRAL; + + public static GearShiftAdviceStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/GlobalProperty.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/GlobalProperty.java new file mode 100644 index 000000000..75dac2dbe --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/GlobalProperty.java @@ -0,0 +1,14 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum GlobalProperty{
+ HELPPROMPT,
+ TIMEOUTPROMPT,
+ VRHELPTITLE,
+ KEYBOARDPROPERTIES,
+ VRHELPITEMS,
+ MENUNAME, MENUICON;
+
+ public static GlobalProperty valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/HMILevel.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/HMILevel.java new file mode 100644 index 000000000..e13f485ac --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/HMILevel.java @@ -0,0 +1,29 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+import java.util.EnumSet;
+
+public enum HMILevel {
+ HMI_FULL("FULL"),
+ HMI_LIMITED("LIMITED"),
+ HMI_BACKGROUND("BACKGROUND"),
+ HMI_NONE("NONE");
+
+ String internalName;
+
+ private HMILevel(String internalName) {
+ this.internalName = internalName;
+ }
+
+ public String toString() {
+ return this.internalName;
+ }
+
+ public static HMILevel valueForString(String value) {
+ for (HMILevel anEnum : EnumSet.allOf(HMILevel.class)) {
+ if (anEnum.toString().equals(value)) {
+ return anEnum;
+ }
+ }
+ return null;
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/HmiZoneCapabilities.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/HmiZoneCapabilities.java new file mode 100644 index 000000000..87b74b5bd --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/HmiZoneCapabilities.java @@ -0,0 +1,10 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum HmiZoneCapabilities {
+ FRONT,
+ BACK;
+
+ public static HmiZoneCapabilities valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/IgnitionStableStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/IgnitionStableStatus.java new file mode 100644 index 000000000..eeb0f4bf3 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/IgnitionStableStatus.java @@ -0,0 +1,11 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum IgnitionStableStatus { + IGNITION_SWITCH_NOT_STABLE, + IGNITION_SWITCH_STABLE, + MISSING_FROM_TRANSMITTER; + + public static IgnitionStableStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/IgnitionStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/IgnitionStatus.java new file mode 100644 index 000000000..9485464a0 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/IgnitionStatus.java @@ -0,0 +1,14 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum IgnitionStatus { + UNKNOWN, + OFF, + ACCESSORY, + RUN, + START, + INVALID; + + public static IgnitionStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ImageFieldName.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ImageFieldName.java new file mode 100644 index 000000000..9a7dc39da --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ImageFieldName.java @@ -0,0 +1,19 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum ImageFieldName { + softButtonImage, + choiceImage, + choiceSecondaryImage, + vrHelpItem, + turnIcon, + menuIcon, + cmdIcon, + appIcon, + graphic, + showConstantTBTIcon, + showConstantTBTNextTurnIcon; + + public static ImageFieldName valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ImageType.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ImageType.java new file mode 100644 index 000000000..0a6fff66e --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/ImageType.java @@ -0,0 +1,10 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum ImageType { + STATIC, + DYNAMIC; + + public static ImageType valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/InteractionMode.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/InteractionMode.java new file mode 100644 index 000000000..9a39ac58e --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/InteractionMode.java @@ -0,0 +1,11 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum InteractionMode {
+ MANUAL_ONLY,
+ VR_ONLY,
+ BOTH;
+
+ public static InteractionMode valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/KeyboardEvent.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/KeyboardEvent.java new file mode 100644 index 000000000..b477ca49a --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/KeyboardEvent.java @@ -0,0 +1,17 @@ +package com.ford.syncV4.proxy.rpc.enums; + +/** + * Created by Andrew Batutin on 9/22/13. + */ +public enum KeyboardEvent { + + KEYPRESS, + ENTRY_SUBMITTED, + ENTRY_CANCELLED, + ENTRY_ABORTED; + + public static KeyboardEvent valueForString(String value) { + return valueOf(value); + } + +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/KeyboardLayout.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/KeyboardLayout.java new file mode 100644 index 000000000..4db678895 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/KeyboardLayout.java @@ -0,0 +1,11 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum KeyboardLayout { + QWERTY, + QWERTZ, + AZERTY; + + public static KeyboardLayout valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/KeypressMode.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/KeypressMode.java new file mode 100644 index 000000000..c68a1e999 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/KeypressMode.java @@ -0,0 +1,11 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum KeypressMode { + SINGLE_KEYPRESS, + QUEUE_KEYPRESSES, + RESEND_CURRENT_ENTRY; + + public static KeypressMode valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/Language.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/Language.java new file mode 100644 index 000000000..8e0daeccd --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/Language.java @@ -0,0 +1,49 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+import java.util.EnumSet;
+
+public enum Language {
+ EN_US("EN-US"),
+ ES_MX("ES-MX"),
+ FR_CA("FR-CA"),
+ DE_DE("DE-DE"),
+ ES_ES("ES-ES"),
+ EN_GB("EN-GB"),
+ RU_RU("RU-RU"),
+ TR_TR("TR-TR"),
+ PL_PL("PL-PL"),
+ FR_FR("FR-FR"),
+ IT_IT("IT-IT"),
+ SV_SE("SV-SE"),
+ PT_PT("PT-PT"),
+ NL_NL("NL-NL"),
+ EN_AU("EN-AU"),
+ ZH_CN("ZH-CN"),
+ ZH_TW("ZH-TW"),
+ JA_JP("JA-JP"),
+ AR_SA("AR-SA"),
+ KO_KR("KO-KR"),
+ PT_BR("PT-BR"),
+ CS_CZ("CS-CZ"),
+ DA_DK("DA-DK"),
+ NO_NO("NO-NO");
+
+ String internalName;
+
+ private Language(String internalName) {
+ this.internalName = internalName;
+ }
+
+ public String toString() {
+ return this.internalName;
+ }
+
+ public static Language valueForString(String value) {
+ for (Language anEnum : EnumSet.allOf(Language.class)) {
+ if (anEnum.toString().equals(value)) {
+ return anEnum;
+ }
+ }
+ return null;
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/LayoutMode.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/LayoutMode.java new file mode 100644 index 000000000..086880bd8 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/LayoutMode.java @@ -0,0 +1,13 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum LayoutMode { + ICON_ONLY, + ICON_WITH_SEARCH, + LIST_ONLY, + LIST_WITH_SEARCH, + KEYBOARD; + + public static LayoutMode valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/LightSwitchStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/LightSwitchStatus.java new file mode 100644 index 000000000..ff5f055cc --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/LightSwitchStatus.java @@ -0,0 +1,12 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum LightSwitchStatus { + OFF, + PARKLAMP, + HEADLAMP, + AUTOLAMP; + + public static LightSwitchStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/MaintenanceModeStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/MaintenanceModeStatus.java new file mode 100644 index 000000000..b5480a510 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/MaintenanceModeStatus.java @@ -0,0 +1,12 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum MaintenanceModeStatus { + NORMAL, + NEAR, + ACTIVE, + FEATURE_NOT_PRESENT; + + public static MaintenanceModeStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/MediaClockFormat.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/MediaClockFormat.java new file mode 100644 index 000000000..081b0a2ce --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/MediaClockFormat.java @@ -0,0 +1,13 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum MediaClockFormat {
+ CLOCK1,
+ CLOCK2,
+ CLOCKTEXT1,
+ CLOCKTEXT2,
+ CLOCKTEXT3;
+
+ public static MediaClockFormat valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/MessageType.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/MessageType.java new file mode 100644 index 000000000..c500b927d --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/MessageType.java @@ -0,0 +1,11 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum MessageType { + request, + response, + notification; + + public static MessageType valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PRNDL.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PRNDL.java new file mode 100644 index 000000000..cdb103186 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PRNDL.java @@ -0,0 +1,24 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum PRNDL { + PARK, + REVERSE, + NEUTRAL, + DRIVE, + SPORT, + LOWGEAR, + FIRST, + SECOND, + THIRD, + FOURTH, + FIFTH, + SIXTH, + SEVENTH, + EIGHTH, + UNKNOWN, + FAULT; + + public static PRNDL valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PermissionStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PermissionStatus.java new file mode 100644 index 000000000..cac3cab8a --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PermissionStatus.java @@ -0,0 +1,12 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum PermissionStatus {
+ ALLOWED,
+ DISALLOWED,
+ USER_DISALLOWED,
+ USER_CONSENT_PENDING;
+
+ public static PermissionStatus valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PowerModeQualificationStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PowerModeQualificationStatus.java new file mode 100644 index 000000000..8442514cc --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PowerModeQualificationStatus.java @@ -0,0 +1,12 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum PowerModeQualificationStatus { + POWER_MODE_UNDEFINED, + POWER_MODE_EVALUATION_IN_PROGRESS, + NOT_DEFINED, + POWER_MODE_OK; + + public static PowerModeQualificationStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PowerModeStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PowerModeStatus.java new file mode 100644 index 000000000..da6597619 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PowerModeStatus.java @@ -0,0 +1,17 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum PowerModeStatus { + KEY_OUT, + KEY_RECENTLY_OUT, + KEY_APPROVED_0, + POST_ACCESORY_0, + ACCESORY_1, + POST_IGNITION_1, + IGNITION_ON_2, + RUNNING_2, + CRANK_3; + + public static PowerModeStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PredefinedLayout.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PredefinedLayout.java new file mode 100644 index 000000000..e2c2ca9db --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PredefinedLayout.java @@ -0,0 +1,46 @@ +package com.ford.syncV4.proxy.rpc.enums; + +import java.util.EnumSet; + +public enum PredefinedLayout { + DEFAULT("DEFAULT"), + MEDIA("MEDIA"), + NON_MEDIA("NON-MEDIA"), + ONSCREEN_PRESETS("ONSCREEN_PRESETS"), + NAV_FULLSCREEN_MAP("NAV_FULLSCREEN_MAP"), + NAV_LIST("NAV_LIST"), + NAV_KEYBOARD("NAV_KEYBOARD"), + GRAPHIC_WITH_TEXT("GRAPHIC_WITH_TEXT"), + TEXT_WITH_GRAPHIC("TEXT_WITH_GRAPHIC"), + TILES_ONLY("TILES_ONLY"), + TEXTBUTTONS_ONLY("TEXTBUTTONS_ONLY"), + GRAPHIC_WITH_TILES("GRAPHIC_WITH_TILES"), + TILES_WITH_GRAPHIC("TILES_WITH_GRAPHIC"), + GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS("GRAPHIC_WITH_TEXT_AND_SOFTBUTTONS"), + TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC("TEXT_AND_SOFTBUTTONS_WITH_GRAPHIC"), + GRAPHIC_WITH_TEXTBUTTONS("GRAPHIC_WITH_TEXTBUTTONS"), + TEXTBUTTONS_WITH_GRAPHIC("TEXTBUTTONS_WITH_GRAPHIC"), + LARGE_GRAPHIC_WITH_SOFTBUTTONS("LARGE_GRAPHIC_WITH_SOFTBUTTONS"), + DOUBLE_GRAPHIC_WITH_SOFTBUTTONS("DOUBLE_GRAPHIC_WITH_SOFTBUTTONS"), + LARGE_GRAPHIC_ONLY("LARGE_GRAPHIC_ONLY"); + + String internalName; + + private PredefinedLayout(String internalName) { + this.internalName = internalName; + } + + public static PredefinedLayout valueForString(String value) { + for (PredefinedLayout anEnum : EnumSet.allOf(PredefinedLayout.class)) { + if (anEnum.toString().equals(value)) { + return anEnum; + } + } + + throw new IllegalArgumentException("Unknown value " + value); + } + + public String toString() { + return this.internalName; + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PrerecordedSpeech.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PrerecordedSpeech.java new file mode 100755 index 000000000..d449ad2d1 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PrerecordedSpeech.java @@ -0,0 +1,13 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum PrerecordedSpeech { + HELP_JINGLE, + INITIAL_JINGLE, + LISTEN_JINGLE, + POSITIVE_JINGLE, + NEGATIVE_JINGLE; + + public static PrerecordedSpeech valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PrimaryAudioSource.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PrimaryAudioSource.java new file mode 100644 index 000000000..9f5de9d9d --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/PrimaryAudioSource.java @@ -0,0 +1,15 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum PrimaryAudioSource { + NO_SOURCE_SELECTED, + USB, + USB2, + BLUETOOTH_STEREO_BTST, + LINE_IN, + IPOD, + MOBILE_APP; + + public static PrimaryAudioSource valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/RequestType.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/RequestType.java new file mode 100644 index 000000000..4f4503d1a --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/RequestType.java @@ -0,0 +1,13 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum RequestType { + HTTP, + FILE_RESUME, + AUTH_REQUEST, + AUTH_CHALLENGE, + AUTH_ACK; + + public static RequestType valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/Result.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/Result.java new file mode 100644 index 000000000..217161fdb --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/Result.java @@ -0,0 +1,173 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+/**
+ * A list of result codes
+ */
+public enum Result {
+ /**
+ * The request succeeded
+ */
+ SUCCESS,
+ /**
+ * The RPC (e.g. {@link com.ford.syncV4.proxy.rpc.Slider}) executed successfully and the user
+ * selected to save the current position / value
+ */
+ SAVED,
+ /**
+ * The data sent is invalid. For example:
+ * Invalid Json syntax
+ * Parameters out of bounds (number or enum range)
+ * Mandatory parameters not provided
+ * Parameter provided with wrong type
+ * Invalid characters
+ * Empty string
+ */
+ INVALID_DATA,
+ /**
+ * The request is not supported by Sync
+ */
+ UNSUPPORTED_REQUEST,
+ /**
+ * The system could not process the request because the necessary memory couldn't be allocated
+ */
+ OUT_OF_MEMORY,
+ /**
+ * There are too many requests pending (means, that the response has not been delivered, yet)
+ */
+ TOO_MANY_PENDING_REQUESTS,
+ /**
+ * One of the provided IDs is not valid. For example:
+ * this applies to CorrelationID, SubscriptionID, CommandID, MenuID, etc.
+ */
+ INVALID_ID,
+ /**
+ * There was a conflict with an registered name (application or menu item) or vr command
+ */
+ DUPLICATE_NAME,
+ /**
+ * There are already too many registered applications
+ */
+ TOO_MANY_APPLICATIONS,
+ /**
+ * RegisterApplication has been called again, after a RegisterApplication was successful before
+ */
+ APPLICATION_REGISTERED_ALREADY,
+ /**
+ * Sync doesn't support the protocol that is requested by the mobile application
+ */
+ UNSUPPORTED_VERSION,
+ /**
+ * The requested language is currently not supported. Might be because of a mismatch of the
+ * currently active language on Sync and the requested language
+ */
+ WRONG_LANGUAGE,
+ /**
+ * An command can not be executed because no application has been registered with
+ * RegisterApplication
+ */
+ APPLICATION_NOT_REGISTERED,
+ /**
+ * The data may not be changed, because it is currently in use. For example when trying to
+ * delete a command set that is currently involved in an interaction
+ */
+ IN_USE,
+ /**
+ * The user has turned off access to vehicle data, and it is globally unavailable to mobile
+ * applications
+ */
+ VEHICLE_DATA_NOT_ALLOWED,
+ /**
+ * The requested vehicle data is not available on this vehicle or is not published
+ */
+ VEHICLE_DATA_NOT_AVAILABLE,
+ /**
+ * The requested command was rejected, e.g. because mobile app is in background and cannot
+ * perform any HMI commands. Or an HMI command (e.g. {@link com.ford.syncV4.proxy.rpc.Speak})
+ * is rejected because a higher priority HMI command
+ * (e.g. {@link com.ford.syncV4.proxy.rpc.Alert}) is playing
+ */
+ REJECTED,
+ /**
+ * A command was aborted, for example due to user interaction (e.g. user pressed button).
+ * Or an HMI command (e.g. {@link com.ford.syncV4.proxy.rpc.Speak}) is aborted because a
+ * higher priority HMI command (e.g. {@link com.ford.syncV4.proxy.rpc.Alert}) was requested
+ */
+ ABORTED,
+ /**
+ * A command was ignored, because the intended result is already in effect. For example,
+ * SetMediaClockTimer was used to pause the media clock although the clock is paused already.
+ * NOTE: potentially replaces SUBSCRIBED_ALREADY
+ */
+ IGNORED,
+ /**
+ * A button that was requested for subscription is not supported under the current system.
+ * NOTE: could become a more generic
+ * {@link com.ford.syncV4.proxy.rpc.enums.Result#UNSUPPORTED_RESOURCE} by merging with
+ * {@link com.ford.syncV4.proxy.rpc.enums.Result#VEHICLE_DATA_NOT_AVAILABLE}
+ */
+ UNSUPPORTED_RESOURCE,
+ /**
+ * A specified file could not be found on Sync
+ */
+ FILE_NOT_FOUND,
+ /**
+ * Provided data is valid but something went wrong in the lower layers
+ */
+ GENERIC_ERROR,
+ /**
+ * RPC is not authorized in local policy table
+ */
+ DISALLOWED,
+ /**
+ * RPC is included in a functional group explicitly blocked by the user
+ */
+ USER_DISALLOWED,
+ /**
+ * Overlay reached the maximum timeout and closed
+ */
+ TIMED_OUT,
+ /**
+ * User selected to Cancel Route
+ */
+ CANCEL_ROUTE,
+ /**
+ * The RPC (e.g. {@link com.ford.syncV4.proxy.rpc.ReadDID}) executed successfully but the data
+ * exceeded the platform maximum threshold and thus, only part of the data is available
+ */
+ TRUNCATED_DATA,
+ /**
+ * The user interrupted the RPC (e.g. {@link com.ford.syncV4.proxy.rpc.PerformAudioPassThru})
+ * and indicated to start over.
+ * NOTE, the app must issue the new RPC
+ */
+ RETRY,
+ /**
+ * The RPC (e.g. {@link com.ford.syncV4.proxy.rpc.SubscribeVehicleData}) executed successfully
+ * but one or more items have a warning or failure
+ */
+ WARNINGS,
+ /**
+ * The provided hash ID does not match the hash of the current set of registered data or
+ * the core could not resume the previous data
+ */
+ RESUME_FAILED,
+ /**
+ * The certificate provided during authentication is invalid
+ */
+ INVALID_CERT,
+ /**
+ * The certificate provided during authentication is expired
+ */
+ EXPIRED_CERT;
+
+ /**
+ * Convert {@link java.lang.String} value to {@link com.ford.syncV4.proxy.rpc.enums.Result}
+ * object
+ *
+ * @param value {@link java.lang.String}
+ * @return {@link com.ford.syncV4.proxy.rpc.enums.Result} object
+ */
+ public static Result valueForString(String value) {
+ return valueOf(value);
+ }
+}
\ No newline at end of file diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SamplingRate.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SamplingRate.java new file mode 100644 index 000000000..8308f40fa --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SamplingRate.java @@ -0,0 +1,29 @@ +package com.ford.syncV4.proxy.rpc.enums; + +import java.util.EnumSet; + +public enum SamplingRate { + _8KHZ("8KHZ"), + _16KHZ("16KHZ"), + _22KHZ("22KHZ"), + _44KHZ("44KHZ"); + + String internalName; + + private SamplingRate(String internalName) { + this.internalName = internalName; + } + + public String toString() { + return this.internalName; + } + + public static SamplingRate valueForString(String value) { + for (SamplingRate anEnum : EnumSet.allOf(SamplingRate.class)) { + if (anEnum.toString().equals(value)) { + return anEnum; + } + } + return null; + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SingleTirePressureStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SingleTirePressureStatus.java new file mode 100644 index 000000000..48ed65a57 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SingleTirePressureStatus.java @@ -0,0 +1,13 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum SingleTirePressureStatus { + UNKNOWN, + NORMAL, + LOW, + FAULT, + NOT_SUPPORTED; + + public static SingleTirePressureStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SoftButtonType.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SoftButtonType.java new file mode 100644 index 000000000..ad7efefad --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SoftButtonType.java @@ -0,0 +1,28 @@ +package com.ford.syncV4.proxy.rpc.enums; + +import java.util.EnumSet; + +public enum SoftButtonType { + SBT_TEXT("TEXT"), + SBT_IMAGE("IMAGE"), + SBT_BOTH("BOTH"); + + String internalName; + + private SoftButtonType(String internalName) { + this.internalName = internalName; + } + + public String toString() { + return this.internalName; + } + + public static SoftButtonType valueForString(String value) { + for (SoftButtonType anEnum : EnumSet.allOf(SoftButtonType.class)) { + if (anEnum.toString().equals(value)) { + return anEnum; + } + } + return null; + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SpeechCapabilities.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SpeechCapabilities.java new file mode 100644 index 000000000..569de39a1 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SpeechCapabilities.java @@ -0,0 +1,13 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum SpeechCapabilities {
+ TEXT,
+ SAPI_PHONEMES,
+ LHPLUS_PHONEMES,
+ PRE_RECORDED,
+ SILENCE;
+
+ public static SpeechCapabilities valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SyncConnectionState.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SyncConnectionState.java new file mode 100644 index 000000000..b6d1f771a --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SyncConnectionState.java @@ -0,0 +1,6 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum SyncConnectionState {
+ SYNC_CONNECTED,
+ SYNC_DISCONNECTED;
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SyncDisconnectedReason.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SyncDisconnectedReason.java new file mode 100644 index 000000000..7a9abebff --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SyncDisconnectedReason.java @@ -0,0 +1,52 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum SyncDisconnectedReason {
+ USER_EXIT,
+ IGNITION_OFF,
+ BLUETOOTH_OFF,
+ USB_DISCONNECTED,
+ REQUEST_WHILE_IN_NONE_HMI_LEVEL,
+ TOO_MANY_REQUESTS,
+ DRIVER_DISTRACTION_VIOLATION,
+ LANGUAGE_CHANGE,
+ MASTER_RESET,
+ FACTORY_DEFAULTS,
+ HEARTBEAT_PAST_DUE,
+ TRANSPORT_ERROR,
+ APPLICATION_REQUESTED_DISCONNECT,
+ DEFAULT;
+
+ public static SyncDisconnectedReason valueForString(String value) {
+ return valueOf(value);
+ }
+
+ public static SyncDisconnectedReason convertAppInterfaceUnregisteredReason(AppInterfaceUnregisteredReason reason) {
+
+ SyncDisconnectedReason returnReason = SyncDisconnectedReason.DEFAULT;
+
+ switch(reason) {
+ case USER_EXIT:
+ returnReason = SyncDisconnectedReason.USER_EXIT;
+ case IGNITION_OFF:
+ returnReason = SyncDisconnectedReason.IGNITION_OFF;
+ case BLUETOOTH_OFF:
+ returnReason = SyncDisconnectedReason.BLUETOOTH_OFF;
+ case USB_DISCONNECTED:
+ returnReason = SyncDisconnectedReason.USB_DISCONNECTED;
+ case REQUEST_WHILE_IN_NONE_HMI_LEVEL:
+ returnReason = SyncDisconnectedReason.REQUEST_WHILE_IN_NONE_HMI_LEVEL;
+ case TOO_MANY_REQUESTS:
+ returnReason = SyncDisconnectedReason.TOO_MANY_REQUESTS;
+ case DRIVER_DISTRACTION_VIOLATION:
+ returnReason = SyncDisconnectedReason.DRIVER_DISTRACTION_VIOLATION;
+ case LANGUAGE_CHANGE:
+ returnReason = SyncDisconnectedReason.LANGUAGE_CHANGE;
+ case MASTER_RESET:
+ returnReason = SyncDisconnectedReason.MASTER_RESET;
+ case FACTORY_DEFAULTS:
+ returnReason = SyncDisconnectedReason.FACTORY_DEFAULTS;
+ }
+
+ return returnReason;
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SyncInterfaceAvailability.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SyncInterfaceAvailability.java new file mode 100644 index 000000000..5e6497a72 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SyncInterfaceAvailability.java @@ -0,0 +1,6 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum SyncInterfaceAvailability {
+ SYNC_INTERFACE_AVAILABLE,
+ SYNC_INTERFACE_UNAVAILABLE;
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SystemAction.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SystemAction.java new file mode 100644 index 000000000..54184bf97 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SystemAction.java @@ -0,0 +1,11 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum SystemAction { + DEFAULT_ACTION, + STEAL_FOCUS, + KEEP_CONTEXT; + + public static SystemAction valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SystemContext.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SystemContext.java new file mode 100644 index 000000000..1462bfa26 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/SystemContext.java @@ -0,0 +1,30 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+import java.util.EnumSet;
+
+public enum SystemContext {
+ SYSCTXT_MAIN("MAIN"),
+ SYSCTXT_VRSESSION("VRSESSION"),
+ SYSCTXT_MENU("MENU"),
+ SYSCTXT_HMI_OBSCURED("HMI_OBSCURED"),
+ SYSCTXT_ALERT("ALERT");
+
+ String internalName;
+
+ private SystemContext(String internalName) {
+ this.internalName = internalName;
+ }
+
+ public String toString() {
+ return this.internalName;
+ }
+
+ public static SystemContext valueForString(String value) {
+ for (SystemContext anEnum : EnumSet.allOf(SystemContext.class)) {
+ if (anEnum.toString().equals(value)) {
+ return anEnum;
+ }
+ }
+ return null;
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TBTState.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TBTState.java new file mode 100644 index 000000000..f9907cc28 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TBTState.java @@ -0,0 +1,18 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum TBTState {
+ ROUTE_UPDATE_REQUEST,
+ ROUTE_ACCEPTED,
+ ROUTE_REFUSED,
+ ROUTE_CANCELLED,
+ ETA_REQUEST,
+ NEXT_TURN_REQUEST,
+ ROUTE_STATUS_REQUEST,
+ ROUTE_SUMMARY_REQUEST,
+ TRIP_STATUS_REQUEST,
+ ROUTE_UPDATE_REQUEST_TIMEOUT; +
+ public static TBTState valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TextAlignment.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TextAlignment.java new file mode 100644 index 000000000..cc9dc4c3a --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TextAlignment.java @@ -0,0 +1,11 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum TextAlignment {
+ LEFT_ALIGNED,
+ RIGHT_ALIGNED,
+ CENTERED;
+
+ public static TextAlignment valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TextFieldName.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TextFieldName.java new file mode 100644 index 000000000..55771cb21 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TextFieldName.java @@ -0,0 +1,31 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum TextFieldName {
+ mainField1,
+ mainField2,
+ mainField3,
+ mainField4,
+ statusBar,
+ mediaClock,
+ mediaTrack,
+ alertText1,
+ alertText2,
+ alertText3,
+ scrollableMessageBody,
+ initialInteractionText,
+ navigationText1,
+ navigationText2,
+ ETA,
+ totalDistance,
+ audioPassThruDisplayText1,
+ audioPassThruDisplayText2,
+ sliderHeader,
+ sliderFooter,
+ menuName,
+ secondaryText,
+ tertiaryText;
+
+ public static TextFieldName valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TouchType.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TouchType.java new file mode 100755 index 000000000..bb42ff5be --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TouchType.java @@ -0,0 +1,11 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum TouchType { + BEGIN, + MOVE, + END; + + public static TouchType valueForString(String value) { + return valueOf(value); + } +}
\ No newline at end of file diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TriggerSource.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TriggerSource.java new file mode 100644 index 000000000..2f33699c5 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/TriggerSource.java @@ -0,0 +1,28 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+import java.util.EnumSet;
+
+public enum TriggerSource {
+ TS_MENU("MENU"),
+ TS_VR("VR"),
+ TS_KEYBOARD("KEYBOARD");
+
+ String internalName;
+
+ private TriggerSource(String internalName) {
+ this.internalName = internalName;
+ }
+
+ public String toString() {
+ return this.internalName;
+ }
+
+ public static TriggerSource valueForString(String value) {
+ for (TriggerSource anEnum : EnumSet.allOf(TriggerSource.class)) {
+ if (anEnum.toString().equals(value)) {
+ return anEnum;
+ }
+ }
+ return null;
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/UpdateMode.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/UpdateMode.java new file mode 100644 index 000000000..4f3e54a1a --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/UpdateMode.java @@ -0,0 +1,13 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum UpdateMode {
+ COUNTUP,
+ COUNTDOWN,
+ PAUSE,
+ RESUME,
+ CLEAR;
+
+ public static UpdateMode valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataActiveStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataActiveStatus.java new file mode 100644 index 000000000..08a98f523 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataActiveStatus.java @@ -0,0 +1,13 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum VehicleDataActiveStatus { + INACTIVE_NOT_CONFIRMED, + INACTIVE_CONFIRMED, + ACTIVE_NOT_CONFIRMED, + ACTIVE_CONFIRMED, + FAULT; + + public static VehicleDataActiveStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataEventStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataEventStatus.java new file mode 100644 index 000000000..329f562a0 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataEventStatus.java @@ -0,0 +1,13 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum VehicleDataEventStatus { + NO_EVENT, + NO, + YES, + NOT_SUPPORTED, + FAULT; + + public static VehicleDataEventStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataNotificationStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataNotificationStatus.java new file mode 100644 index 000000000..ec381d31e --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataNotificationStatus.java @@ -0,0 +1,30 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum VehicleDataNotificationStatus { + NOT_SUPPORTED("VDNS_NOT_SUPPORTED"), + NORMAL("VDNS_NORMAL"), + ACTIVE("VDNS_ACTIVE"), + NOT_USED("VDNS_NOT_USED"); + + final String internalName; + + private VehicleDataNotificationStatus(String internalName) { + this.internalName = internalName; + } + + public static VehicleDataNotificationStatus valueForString(String value) { + for (VehicleDataNotificationStatus status : VehicleDataNotificationStatus + .values()) { + if (status.toString().equals(value)) { + return status; + } + } + + throw new IllegalArgumentException("Unknown value " + value); + } + + @Override + public String toString() { + return internalName; + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataResultCode.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataResultCode.java new file mode 100644 index 000000000..2cb9f317f --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataResultCode.java @@ -0,0 +1,16 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum VehicleDataResultCode { + SUCCESS, + DISALLOWED, + USER_DISALLOWED, + INVALID_ID, + DATA_NOT_AVAILABLE, + DATA_ALREADY_SUBSCRIBED, + DATA_NOT_SUBSCRIBED, + IGNORED; + + public static VehicleDataResultCode valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataStatus.java new file mode 100644 index 000000000..b1a4f4865 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataStatus.java @@ -0,0 +1,11 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum VehicleDataStatus { + NO_DATA_EXISTS, + OFF, + ON; + + public static VehicleDataStatus valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataType.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataType.java new file mode 100644 index 000000000..856fe6331 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VehicleDataType.java @@ -0,0 +1,36 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum VehicleDataType { + VEHICLEDATA_GPS, + VEHICLEDATA_SPEED, + VEHICLEDATA_RPM, + VEHICLEDATA_FUELLEVEL, + VEHICLEDATA_FUELLEVEL_STATE, + VEHICLEDATA_FUELCONSUMPTION, + VEHICLEDATA_EXTERNTEMP, + VEHICLEDATA_VIN, + VEHICLEDATA_PRNDL, + VEHICLEDATA_TIREPRESSURE, + VEHICLEDATA_ODOMETER, + VEHICLEDATA_BELTSTATUS, + VEHICLEDATA_BODYINFO, + VEHICLEDATA_DEVICESTATUS, + VEHICLEDATA_BRAKING, + VEHICLEDATA_WIPERSTATUS, + VEHICLEDATA_HEADLAMPSTATUS, + VEHICLEDATA_BATTVOLTAGE, + VEHICLEDATA_ENGINETORQUE, + VEHICLEDATA_ACCPEDAL, + VEHICLEDATA_STEERINGWHEEL, + + // ford specific + VEHICLEDATA_ECALLINFO, + VEHICLEDATA_AIRBAGSTATUS, + VEHICLEDATA_EMERGENCYEVENT, + VEHICLEDATA_CLUSTERMODESTATUS, + VEHICLEDATA_MYKEY; + + public static VehicleDataType valueForString(String value) { + return valueOf(value); + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VrCapabilities.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VrCapabilities.java new file mode 100644 index 000000000..108f33ae2 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/VrCapabilities.java @@ -0,0 +1,9 @@ +package com.ford.syncV4.proxy.rpc.enums;
+
+public enum VrCapabilities {
+ Text,TEXT;
+
+ public static VrCapabilities valueForString(String value) {
+ return valueOf(value);
+ }
+}
diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/WarningLightStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/WarningLightStatus.java new file mode 100644 index 000000000..48c3b263c --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/WarningLightStatus.java @@ -0,0 +1,29 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum WarningLightStatus { + OFF("WLS_OFF"), + ON("WLS_ON"), + FLASH("WLS_FLASH"), + NOT_USED("WLS_NOT_USED"); + + final String internalName; + + private WarningLightStatus(String internalName) { + this.internalName = internalName; + } + + public static WarningLightStatus valueForString(String value) { + for (WarningLightStatus status : WarningLightStatus.values()) { + if (status.toString().equals(value)) { + return status; + } + } + + throw new IllegalArgumentException("Unknown value " + value); + } + + @Override + public String toString() { + return internalName; + } +} diff --git a/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/WiperStatus.java b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/WiperStatus.java new file mode 100644 index 000000000..4a4a387e9 --- /dev/null +++ b/SDL_Core/mobile/android/SyncProxyAndroid/src/com/ford/syncV4/proxy/rpc/enums/WiperStatus.java @@ -0,0 +1,23 @@ +package com.ford.syncV4.proxy.rpc.enums; + +public enum WiperStatus { + OFF, + AUTO_OFF, + OFF_MOVING, + MAN_INT_OFF, + MAN_INT_ON, + MAN_LOW, + MAN_HIGH, + MAN_FLICK, + WASH, + AUTO_LOW, + AUTO_HIGH, + COURTESYWIPE, + AUTO_ADJUST, + STALLED, + NO_DATA_EXISTS; + + public static WiperStatus valueForString(String value) { + return valueOf(value); + } +} |