Package ej.util

Class DeviceNatives


  • public class DeviceNatives
    extends Object
    Not in API.
    • Method Detail

      • getArchitecture

        public static boolean getArchitecture​(byte[] buffer,
                                              int bufferLength)
        Fills the given buffer with the name of the architecture as a null-terminated string.
        Parameters:
        buffer - the buffer to fill with the name of the architecture.
        bufferLength - the size of the buffer.
        Returns:
        true on success or false on error.
      • getId

        public static int getId​(byte[] buffer,
                                int bufferLength)
        Fills the given buffer with the ID of the device.
        Parameters:
        buffer - the buffer to fill with the ID.
        bufferLength - the size of the buffer.
        Returns:
        the number of bytes filled or 0 on error.
      • getVersion

        public static void getVersion​(byte[] buffer)
        Fills the given buffer with the Version of the device as a null-terminated string.
        Parameters:
        buffer - the buffer to fill with the Version.
      • reboot

        public static void reboot()
        Reboots the device.
      • shutdown

        public static void shutdown()
        Shutdowns the device.