Class DmiCtrl


  • public class DmiCtrl
    extends java.lang.Object
    The type Dmi ctrl.
    • Constructor Detail

      • DmiCtrl

        public DmiCtrl​(android.content.Context context)
        Instantiates a new Dmi ctrl.
        Parameters:
        context - the context
    • Method Detail

      • DCMO_Get

        public android.os.Bundle DCMO_Get​(java.lang.String cmdData)
        DMI get bundle.
        Parameters:
        cmdData - the target DMI items. Supported the following items:
        "Touch"
        "Keyboard" (PhysicalKeyboard)
        "Usb"
        "UsbMtpMode"
        "Gps"
        "WWAN"
        "Scanner"
        "Camera"
        "Ime" (VirtualKeyboard)
        "WLAN"
        "Bluetooth"
        "Flash" (Flashlight)
        "DozeMode"
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
        Boolean result = bundle.getBoolean("Result");
        Result = 1 -> True
        Result = 0 -> False
        Result = 2 -> Not Support
        int status = bundle.getInt("Status");
      • DCMO_Set

        public android.os.Bundle DCMO_Set​(java.lang.String cmdData,
                                          int enable)
        DMI set bundle.
        Parameters:
        cmdData - the target DMI item. Supported the following items:
        "Touch"
        "Keyboard" (PhysicalKeyboard)
        "Usb"
        "UsbMtpMode"
        "Gps"
        "WWAN"
        "Scanner"
        "Camera"
        "Ime" (VirtualKeyboard)
        "WLAN"
        "Bluetooth"
        "Flash" (Flashlight)
        "DozeMode"
        enable - Turn on / off the target item. true: Enable, false: Disable
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
        Boolean result = bundle.getBoolean("Result");
        Result = 1 -> True
        Result = 0 -> False
        Result = 2 -> Not Support
        int status = bundle.getInt("Status");