com.android.sdklib.devices.Abi Java Examples
The following examples show how to use
com.android.sdklib.devices.Abi.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AvdInfo.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
/** Convenience function to return a more user friendly name of the abi type. */ @NonNull public static String getPrettyAbiType(@NonNull IdDisplay tag, @NonNull String rawAbi) { String s = ""; // $NON-NLS-1$ if (!SystemImage.DEFAULT_TAG.equals(tag)) { s = tag.getDisplay() + ' '; } Abi abi = Abi.getEnum(rawAbi); s += (abi == null ? rawAbi : abi.getDisplayName()) + " (" + rawAbi + ')'; return s; }
Example #2
Source File: AvdHwProfile.java From NBANDROID-V2 with Apache License 2.0 | 4 votes |
public Hardware buildHardware() { Hardware hardware = new Hardware(); hardware.addNetwork(Network.BLUETOOTH); hardware.addNetwork(Network.WIFI); hardware.addNetwork(Network.NFC); hardware.addSensor(Sensor.BAROMETER); hardware.addSensor(Sensor.COMPASS); hardware.addSensor(Sensor.LIGHT_SENSOR); hardware.setHasMic(true); hardware.addInternalStorage(new Storage(4, Storage.Unit.GiB)); hardware.setCpu("Generic CPU"); hardware.setGpu("Generic GPU"); hardware.addAllSupportedAbis(EnumSet.allOf(Abi.class)); hardware.setChargeType(PowerType.BATTERY); if (accelerometer.isSelected()) { hardware.addSensor(Sensor.ACCELEROMETER); } if (gyroscope.isSelected()) { hardware.addSensor(Sensor.GYROSCOPE); } if (gps.isSelected()) { hardware.addSensor(Sensor.GPS); } if (proximity.isSelected()) { hardware.addSensor(Sensor.PROXIMITY_SENSOR); } if (cameraBack.isSelected()) { hardware.addCamera(new Camera(CameraLocation.BACK, true, true)); } if (cameraFront.isSelected()) { hardware.addCamera(new Camera(CameraLocation.FRONT, true, true)); } if (hwKeyb.isSelected()) { hardware.setKeyboard(Keyboard.QWERTY); } else { hardware.setKeyboard(Keyboard.NOKEY); } if (hwButt.isSelected()) { hardware.setButtonType(ButtonType.HARD); } else { hardware.setButtonType(ButtonType.SOFT); } switch (navigationStyle.getSelectedIndex()) { default: hardware.setNav(Navigation.NONAV); break; case 1: hardware.setNav(Navigation.DPAD); break; case 2: hardware.setNav(Navigation.TRACKBALL); break; case 3: hardware.setNav(Navigation.WHEEL); break; } if (skin.getSelectedItem() != null) { hardware.setSkinFile((File) skin.getSelectedItem()); } hardware.setRam(new Storage((long) ram.getValue(), Storage.Unit.MiB)); hardware.setScreen(createScreen()); return hardware; }
Example #3
Source File: BlazeApkBuildStepMobileInstallIntegrationTest.java From intellij with Apache License 2.0 | 4 votes |
@Override public List<Abi> getAbis() { return null; }