Merge "resolve merge conflicts of b9cf2528d9 to marshmallow-cts-dev" into marshmallow-cts-dev am: aaefcf8af5
am: c35fa04e69

* commit 'c35fa04e69f33372df23031a0bf492d2798be349':
  collect available_processors in device info
diff --git a/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/DeviceInfoConstants.java b/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/DeviceInfoConstants.java
index c336d3c..24cff32 100644
--- a/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/DeviceInfoConstants.java
+++ b/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/DeviceInfoConstants.java
@@ -78,4 +78,5 @@
     public static final String TOTAL_MEMORY = "total_memory";
     public static final String REFERENCE_BUILD_FINGERPRINT =
             "reference_build_fingerprint";
+    public static final String AVAILABLE_PROCESSORS = "available_processors";
 }
diff --git a/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/DeviceInfoInstrument.java b/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/DeviceInfoInstrument.java
index 37f8558..b752c91 100644
--- a/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/DeviceInfoInstrument.java
+++ b/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/DeviceInfoInstrument.java
@@ -169,6 +169,9 @@
         addResult(LARGE_MEMORY_CLASS, getLargeMemoryClass());
         addResult(TOTAL_MEMORY, getTotalMemory());
 
+        // CPU Info
+        addResult(AVAILABLE_PROCESSORS, Runtime.getRuntime().availableProcessors());
+
         finish(Activity.RESULT_OK, mResults);
     }