Enum Tool

    • Enum Constant Detail

      • ADB

        public static final Tool ADB
      • ANDROID_LEGACY

        public static final Tool ANDROID_LEGACY
      • EMULATOR

        public static final Tool EMULATOR
      • EMULATOR_ARM

        public static final Tool EMULATOR_ARM
      • EMULATOR_MIPS

        public static final Tool EMULATOR_MIPS
      • EMULATOR_X86

        public static final Tool EMULATOR_X86
      • EMULATOR64_ARM

        public static final Tool EMULATOR64_ARM
      • EMULATOR64_MIPS

        public static final Tool EMULATOR64_MIPS
      • EMULATOR64_X86

        public static final Tool EMULATOR64_X86
      • AVDMANAGER

        public static final Tool AVDMANAGER
      • SDKMANAGER

        public static final Tool SDKMANAGER
      • MKSDCARD

        public static final Tool MKSDCARD
    • Field Detail

      • EMULATORS

        public static Tool[] EMULATORS
      • executable

        public final String executable
      • windowsExtension

        public final String windowsExtension
    • Method Detail

      • values

        public static Tool[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Tool c : Tool.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Tool valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getExecutable

        public String getExecutable​(boolean isUnix)
      • getPathInSdk

        public String getPathInSdk​(AndroidSdk androidSdk,
                                   boolean isUnix)
      • getRequiredToolsRelativePaths

        public static String[] getRequiredToolsRelativePaths​(boolean isUnix)
        Retrieve a list of relative paths to the SDK root directory for all necessary tools needed for a SDK installations using the new structure (tools/bin, emulator dir).
        Parameters:
        isUnix - if false the windows suffix is appended
        Returns:
        a list of relative paths (including the executable name) expected to exist
      • getRequiredCmdLineToolsPaths

        public static String[] getRequiredCmdLineToolsPaths​(boolean isUnix)
      • getRequiredToolsLegacyRelativePaths

        public static String[] getRequiredToolsLegacyRelativePaths​(boolean isUnix)
        Retrieve a list of relative paths to the SDK root directory for all necessary tools needed for a SDK installations using the legacy structure (tools/android, ...).
        Parameters:
        isUnix - if false the windows suffix is appended
        Returns:
        a list of relative paths (including the executable name) expected to exist