Constants source code for MF tools

Many constants called in the MF project are defined in the Constants tool class, and the Constants source code is directly placed below (some constants are defined, but not used in the project)

package com.maxus.mifa.vehiclesetting.util;

/**
 * @author luhaojie
 * @date 2020/10/19
 */
public class Constants {
    
    
    public static final int INDEX_UNKNOWN = -1;
    public static final int INDEX_ASSIST_DRIVING = 0;
    public static final int INDEX_COMMON_USE = 1;
    public static final int INDEX_DRIVING_PREFERENCE = 2;
    public static final int INDEX_VEHICLE_SETTING = 3;
    public static final String PERCENT = "%";
    public static final String TOAST_KEEP_THE_ENGINE_RUNNING = "请保持发动机运行";
    public static final int ButtonColorWhite = 1;
    public static final int ButtonColorBlue = -1;

    public static final String DEVICE_MODE_KEY = "device_mode_ket";
    public static final String BRIGHTNESS_KEY = "brightness_ket";
    public static final String EPB_RELEASE_KEY = "epb_release_ket";
    // Gear
    public static final int GEAR_ERR = 0;
    public static final int GEAR_P = 1;
    public static final int GEAR_R = 2;
    public static final int GEAR_N = 3;
    public static final int GEAR_D = 4;
    // Power
    // 0: Off
    //1: Acc
    //2: Run
    //3: Crank
    public static final int POWER_OFF = 0;
    public static final int POWER_ACC = 1;
    public static final int POWER_RUN = 2;
    public static final int POWER_CRANK = 3;
}

Guess you like

Origin blog.csdn.net/ambitionLlll/article/details/113249584