commit | a0824950cbf4d2fcd3ffb2b0f3a29cf957fcc23d | [log] [tgz] |
---|---|---|
author | Stuart Scott <stuartscott@google.com> | Tue Feb 16 22:28:47 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Tue Feb 16 22:28:47 2016 +0000 |
tree | 93cd6eed739a7fcd9a7e1202dbb0a52efeb6748e | |
parent | d45b3c6779751087dd30718871fcce1eb1944883 [diff] | |
parent | c35fa04e69f33372df23031a0bf492d2798be349 [diff] |
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); }