Android Open Source - sdl_tester_android Sdl Constants






From Project

Back to project page sdl_tester_android.

License

The source code is released under:

Copyright (c) 2014, Ford Motor Company All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are m...

If you think the Android project sdl_tester_android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.livio.sdl;
/*from  w  w w  . j  a  v  a  2  s .c o  m*/
public final class SdlConstants {

  private SdlConstants() {}
  
  public static final class AddCommandConstants{
    private AddCommandConstants(){}
    
    public static final int INVALID_PARENT_ID = -1;
    public static final int ROOT_PARENT_ID = 0;
    public static final int DEFAULT_POSITION = 0;
    public static final int MINIMUM_COMMAND_ID = 0x00;
    public static final int MAXIMUM_COMMAND_ID = 2000000000;
  }
  
  public static final class AddSubmenuConstants{
    private AddSubmenuConstants(){}
    
    public static final int DEFAULT_POSITION = 0;
  }
  
  public static final class InteractionChoiceSetConstants{
    private InteractionChoiceSetConstants(){}
    
    public static final int MINIMUM_CHOICE_SET_ID = 0x00;
    public static final int MAXIMUM_CHOICE_SET_ID = 2000000000;
  }
  
  public static final class GetDtcsConstants{
    private GetDtcsConstants(){}
    
    public static final int MINIMUM_ECU_ID = 0x00;
    public static final int MAXIMUM_ECU_ID = 0xFFFF;
  }
  
  public static final class PerformInteractionConstants{
    private PerformInteractionConstants(){}
    
    public static final int MINIMUM_TIMEOUT = 5; // seconds
    public static final int MAXIMUM_TIMEOUT = 100; // seconds
    public static final int INVALID_TIMEOUT = -1; 
    
    public static final int EXPECTED_REPSONSE_TIME_OFFSET = 2000; // ms, or 2 s
  }
  
  public static final class ReadDidsConstants{
    private ReadDidsConstants(){}
    
    public static final int MINIMUM_ECU_ID = 0x00;
    public static final int MAXIMUM_ECU_ID = 0xFFFF;
    
    public static final int MINIMUM_DID_LOCATION = 0x00;
    public static final int MAXIMUM_DID_LOCATION = 0xFFFF;
  }
  
  public static final class ScrollableMessageConstants{
    private ScrollableMessageConstants(){}
    
    public static final int TIMEOUT_MINIMUM = 1; // seconds
    public static final int TIMEOUT_MAXIMUM = 65; // seconds
    
    public static final int MESSAGE_LENGTH_MAX = 500; // characters
    
    public static final int EXPECTED_REPSONSE_TIME_OFFSET = 2000; // ms, or 2 s
  }
  
  public static final class AlertConstants{
    private AlertConstants(){}
    
    public static final int ALERT_TIME_MINIMUM = 3; // seconds
    public static final int ALERT_TIME_MAXIMUM = 10; // seconds
    
    public static final int EXPECTED_REPSONSE_TIME_OFFSET = 2000; // ms, or 2 s
  }
  
  public static final class SetMediaClockTimerConstants{
    private SetMediaClockTimerConstants(){}

    public static final int HOURS_MINIMUM = 0; // hours
    public static final int HOURS_MAXIMUM = 59; // hours
    public static final int MINUTES_MINIMUM = 0; // minutes
    public static final int MINUTES_MAXIMUM = 59; // minutes
    public static final int SECONDS_MINIMUM = 0; // seconds
    public static final int SECONDS_MAXIMUM = 59; // seconds
  }
  
  public static final class SliderConstants{
    private SliderConstants(){}
    
    public static final int NUM_OF_TICKS_MIN = 2; // ticks
    public static final int NUM_OF_TICKS_MAX = 26; // ticks
    public static final int START_POSITION_MIN = 1;
    public static final int START_POSITION_MAX = NUM_OF_TICKS_MAX;
    public static final int TIMEOUT_MIN = 1; // second
    public static final int TIMEOUT_MAX = 65; // seconds
    
    public static final int EXPECTED_REPSONSE_TIME_OFFSET = 2000; // ms, or 2 s
  }

}




Java Source Code List

com.livio.sdl.IdGenerator.java
com.livio.sdl.IpAddress.java
com.livio.sdl.SdlConstants.java
com.livio.sdl.SdlImageItem.java
com.livio.sdl.SdlLogMessage.java
com.livio.sdl.SdlRequestFactory.java
com.livio.sdl.SdlResponseFactory.java
com.livio.sdl.SdlResponseTracker.java
com.livio.sdl.SdlService.java
com.livio.sdl.adapters.SdlImageAdapter.java
com.livio.sdl.adapters.SdlMessageAdapter.java
com.livio.sdl.dialogs.BaseAlertDialog.java
com.livio.sdl.dialogs.BaseImageListDialog.java
com.livio.sdl.dialogs.BaseMultipleListViewDialog.java
com.livio.sdl.dialogs.BaseOkCancelDialog.java
com.livio.sdl.dialogs.BaseSingleListViewDialog.java
com.livio.sdl.dialogs.ImageListDialog.java
com.livio.sdl.dialogs.IndeterminateProgressDialog.java
com.livio.sdl.dialogs.JsonFlipperDialog.java
com.livio.sdl.dialogs.ListViewDialog.java
com.livio.sdl.dialogs.MultipleListViewDialog.java
com.livio.sdl.dialogs.SingleJsonDialog.java
com.livio.sdl.dialogs.TextViewAlertDialog.java
com.livio.sdl.dialogs.TextViewOkCancelDialog.java
com.livio.sdl.enums.EnumClickListener.java
com.livio.sdl.enums.EnumComparator.java
com.livio.sdl.enums.SdlButton.java
com.livio.sdl.enums.SdlCommand.java
com.livio.sdl.enums.SdlImageType.java
com.livio.sdl.enums.SdlInteractionMode.java
com.livio.sdl.enums.SdlLanguage.java
com.livio.sdl.enums.SdlSpeechCapability.java
com.livio.sdl.enums.SdlSystemAction.java
com.livio.sdl.enums.SdlTextAlignment.java
com.livio.sdl.enums.SdlTransportType.java
com.livio.sdl.enums.SdlUpdateMode.java
com.livio.sdl.enums.SdlVehicleData.java
com.livio.sdl.menu.CommandButton.java
com.livio.sdl.menu.MenuItem.java
com.livio.sdl.menu.MenuManager.java
com.livio.sdl.menu.SubmenuButton.java
com.livio.sdl.utils.AndroidUtils.java
com.livio.sdl.utils.ApplicationPreferences.java
com.livio.sdl.utils.Counter.java
com.livio.sdl.utils.DownCounter.java
com.livio.sdl.utils.MathUtils.java
com.livio.sdl.utils.SdlUtils.java
com.livio.sdl.utils.StringUtils.java
com.livio.sdl.utils.Timeout.java
com.livio.sdl.utils.UpCounter.java
com.livio.sdl.utils.WifiUtils.java
com.livio.sdl.viewhelpers.MinMaxInputFilter.java
com.livio.sdl.viewhelpers.SeekBarCalculator.java
com.livio.sdltester.HelpActivity.java
com.livio.sdltester.LivioSdlTesterPreferences.java
com.livio.sdltester.MainActivity.java
com.livio.sdltester.SdlTesterImageResource.java
com.livio.sdltester.dialogs.AddCommandDialog.java
com.livio.sdltester.dialogs.AddSubMenuDialog.java
com.livio.sdltester.dialogs.ButtonSubscriptionDialog.java
com.livio.sdltester.dialogs.ButtonUnsubscriptionDialog.java
com.livio.sdltester.dialogs.ChangeRegistrationDialog.java
com.livio.sdltester.dialogs.ChoiceItemDialog.java
com.livio.sdltester.dialogs.CreateInteractionChoiceSetDialog.java
com.livio.sdltester.dialogs.DeleteCommandDialog.java
com.livio.sdltester.dialogs.DeleteFileDialog.java
com.livio.sdltester.dialogs.DeleteInteractionDialog.java
com.livio.sdltester.dialogs.DeleteSubmenuDialog.java
com.livio.sdltester.dialogs.GetDtcsDialog.java
com.livio.sdltester.dialogs.PerformInteractionDialog.java
com.livio.sdltester.dialogs.PutFileDialog.java
com.livio.sdltester.dialogs.ReadDidsDialog.java
com.livio.sdltester.dialogs.ScrollableMessageDialog.java
com.livio.sdltester.dialogs.SdlAlertDialog.java
com.livio.sdltester.dialogs.SdlConnectionDialog.java
com.livio.sdltester.dialogs.SetAppIconDialog.java
com.livio.sdltester.dialogs.SetMediaClockTimerDialog.java
com.livio.sdltester.dialogs.ShowDialog.java
com.livio.sdltester.dialogs.SliderDialog.java
com.livio.sdltester.dialogs.SoftButtonItemDialog.java
com.livio.sdltester.dialogs.SoftButtonListDialog.java
com.livio.sdltester.dialogs.SpeakDialog.java