OSDN Git Service
TreeHugger Robot [Tue, 3 Oct 2017 23:42:36 +0000 (23:42 +0000)]
Merge "wifi(implementation): Increase stop timeout" into oc-mr1-dev
Eino-Ville Talvala [Fri, 29 Sep 2017 23:37:59 +0000 (16:37 -0700)]
Camera: Update VTS for new camera@3.3 interfaces
- Cross check device version in name with ICameraDeviceSession version
- Switch all calls to configureStreams to configureStreams_3_3 when
a v3.3 ICameraDeviceSession is available
Test: Test passes on v3.3 devices, doesn't regress on v3.2
Bug:
62358514
Change-Id: I7450e5d5119c5ec1fe9f1360bfc99fc8a47d0936
Emilian Peev [Thu, 28 Sep 2017 10:10:08 +0000 (11:10 +0100)]
Camera: Enable VTS tests for 3.3 camera devices
A new 3.3 Camera device API is available and devices supporting it
need to be tested as well.
Bug:
67028051
Test: run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --primary-abi-only --module
VtsHalCameraProviderV2_4Target -l INFO
For passthrough devices: run commandAndExit vts
--skip-all-system-status-check --skip-preconditions --abi armeabi-v7a
--module VtsHalCameraProviderV2_4Target -l INFO
Change-Id: I91adb3c1867cdd8f8f810a2bd5b0a8ba2b0c1fcf
TreeHugger Robot [Sun, 1 Oct 2017 23:09:21 +0000 (23:09 +0000)]
Merge "omxvts: fix binary for 64bit platforms" into oc-mr1-dev
TreeHugger Robot [Sun, 1 Oct 2017 23:09:00 +0000 (23:09 +0000)]
Merge "omxvts: misplaced lock can cause race condition" into oc-mr1-dev
Roshan Pius [Fri, 29 Sep 2017 22:04:33 +0000 (15:04 -0700)]
wifi(implementation): Increase stop timeout
The current timeout of 50ms seems to be insufficient on some devices.
So, changing it to a higher value.
Bug:
66334487
Test: Ran the VTS tests continously in a loop for 30 minutes
without failure. Previously, failure occurence was about once every
5-10 minutes.
`while adb shell /data/VtsHalWifiSupplicantV1_0TargetTest; do :;
done; adb bugreport`
Change-Id: I884de64d748b46b9710a702f3c72cc30dd51627e
Ram Mohan M [Wed, 27 Sep 2017 15:23:22 +0000 (20:53 +0530)]
omxvts: fix binary for 64bit platforms
Bug:
63796949
Change-Id: Ieddae0bd9fc45a88c6e1579bdd588b77b4174a1f
Ram Mohan M [Tue, 26 Sep 2017 10:06:16 +0000 (15:36 +0530)]
omxvts: misplaced lock can cause race condition
upon unsuccessful return during timed wait, relock the mutex before
accessing message list.
Bug:
63796949
Change-Id: I84a43e148a6415e629cb39a6b9dfe27259f8f2fd
Erik Kline [Tue, 26 Sep 2017 09:56:35 +0000 (18:56 +0900)]
More tetheroffload VTS fixes for over-specified tests.
[1] Call addDownstream before removeDownstream in affirmative tests
In order to properly test removeDownstream() where the HAL might
reasonably reject downstreams not previously added we now call
addDownstream() first (for affirmative tests).
[2] Clarify when stopOffload() return values can be safely ignored.
Test: as follows
- make vts -j30 BUILD_GOOGLE_VTS=true && \
vts-tradefed run commandAndExit vts \
--skip-all-system-status-check \
--primary-abi-only \
--skip-preconditions \
--module VtsHalTetherOffloadControlV1_0Target \
-l DEBUG
still doesn't pass but it's better than before :)
Bug:
65270149
Change-Id: I27a574bd2110e3a1626de343f6b57b9efb8cdf83
Erik Kline [Tue, 12 Sep 2017 07:21:55 +0000 (16:21 +0900)]
Tweaks to tetheroffload VTS: fixes and fd leaks
Specifically:
- always use hidl_handle::setTo(..., true) to force fd ownership
(and thereby cleanup in hidl_handle destructor)
- initialize config HAL multiple times to try to trigger fd leaking bugs
Test: as follows
- make vts -j30 BUILD_GOOGLE_VTS=true && \
vts-tradefed run commandAndExit vts \
--skip-all-system-status-check \
--primary-abi-only \
--skip-preconditions \
--module VtsHalTetherOffloadConfigV1_0Target -l INFO
I/ResultReporter: Invocation finished in 48s. PASSED: 4, FAILED: 0, MODULES: 1 of 1
- make vts -j30 BUILD_GOOGLE_VTS=true && \
vts-tradefed run commandAndExit vts \
--skip-all-system-status-check \
--primary-abi-only \
--skip-preconditions \
--module VtsHalTetherOffloadControlV1_0Target -l INFO
Bug:
29337859
Bug:
32163131
Bug:
64976634
Bug:
65270149
Bug:
65529504
Change-Id: Ib47b35a01092bb2052d241f7bba951bbf7691b66
Jean-Luc Brouillet [Sat, 23 Sep 2017 22:15:58 +0000 (15:15 -0700)]
Remove operationTuple.
Removed operationTuple from Model in the HAL, as the data type was
redundant information.
Removed supportedOperationTuples from Capabilities, as real drivers need
more complex restrictions than this provided. For the OC-MR1, we'll just
rely on getSupportedNodes.
Also removed the unused cachesCompilation.
Bug:
63905942
Test: Compiled and ran tests.
Change-Id: I15f33d14634f2e1c8d726b1bd01d5b9e123b47ea
Michael Butler [Sat, 23 Sep 2017 03:38:47 +0000 (03:38 +0000)]
Merge "Removed WIP tag from Neuralnetworks HAL" into oc-mr1-dev
Michael Butler [Sat, 23 Sep 2017 01:07:43 +0000 (01:07 +0000)]
Merge "Add negative tests to the Neuralnetworks HAL" into oc-mr1-dev
Michael Butler [Sat, 23 Sep 2017 00:57:48 +0000 (00:57 +0000)]
Merge "Downgrade generated test harness for NDK libc++" into oc-mr1-dev
Michael Butler [Tue, 19 Sep 2017 23:26:47 +0000 (16:26 -0700)]
Removed WIP tag from Neuralnetworks HAL
Additionally cleaned up some comments and formatting.
Bug:
63905942
Test: not needed
Change-Id: I0306f6d37f3c9ce9b365b5f838c27e81fa001ccd
TreeHugger Robot [Thu, 21 Sep 2017 23:26:52 +0000 (23:26 +0000)]
Merge "Added VTS tests for MediaCas" into oc-mr1-dev
I-Jui (Ray) Sung [Wed, 20 Sep 2017 20:45:50 +0000 (13:45 -0700)]
Downgrade generated test harness for NDK libc++
NDK libc++ does not yet support full C++14. This CL replaced use of
std::get with type as well as auto lambda arguments with equivalent
C++11 constructs in the VTS test harness for NNAPI.
Test: VtsHalNeuralnetworksV1_0TargetTest
Bug:
63905942
Change-Id: If75e7c088e9221a70bcc47bc647e0dd7b045bfa1
Suresh Sivaraman [Fri, 15 Sep 2017 06:21:15 +0000 (11:51 +0530)]
Added VTS tests for MediaCas
Bug:
63914034
Bug:
65593293
Change-Id: I1064ac14513508d2f821a1a27dafcc7389b1a691
TreeHugger Robot [Thu, 21 Sep 2017 01:01:13 +0000 (01:01 +0000)]
Merge "Add flush test" into oc-mr1-dev
TreeHugger Robot [Thu, 21 Sep 2017 01:00:47 +0000 (01:00 +0000)]
Merge "Enable EOSTest_M test" into oc-mr1-dev
TreeHugger Robot [Thu, 21 Sep 2017 01:00:22 +0000 (01:00 +0000)]
Merge "Signal eof flag for each input buffer" into oc-mr1-dev
TreeHugger Robot [Thu, 21 Sep 2017 00:59:59 +0000 (00:59 +0000)]
Merge "Add support for preset ANW buffer mode" into oc-mr1-dev
TreeHugger Robot [Thu, 21 Sep 2017 00:59:35 +0000 (00:59 +0000)]
Merge changes I4a4aad3a,I40b94919 into oc-mr1-dev
* changes:
Extend adaptive playback test for graphic buffer modes
Move graphic buffer allocation to common
TreeHugger Robot [Thu, 21 Sep 2017 00:59:09 +0000 (00:59 +0000)]
Merge "Add vts audio dec test for flac decoder" into oc-mr1-dev
Michael Butler [Wed, 20 Sep 2017 02:59:45 +0000 (19:59 -0700)]
Add negative tests to the Neuralnetworks HAL
This CL adds negative tests to:
* IDevice::getSupportedOperations
* IDevice::prepareModel
* IPreparedModel::execute
It does not make sense to have negative tests for the remaining HAL
entries:
* IDevice::getStatus (all returned values are valid)
* IDevice::getCapabilities (no input or state)
* IEvent::notify (synchronization callback primitive)
Bug:
63905942
Test: mm, running on sample driver has expected output
Change-Id: Ia3cf5ce05dd07ff3f688395b8d0e581851909028
TreeHugger Robot [Wed, 20 Sep 2017 10:14:12 +0000 (10:14 +0000)]
Merge "Add adaptive playback test" into oc-mr1-dev
Eino-Ville Talvala [Tue, 19 Sep 2017 15:53:43 +0000 (15:53 +0000)]
Merge "Camera: Add default implementation of camera.device@3.3" into oc-mr1-dev
TreeHugger Robot [Tue, 19 Sep 2017 01:14:00 +0000 (01:14 +0000)]
Merge "Fix typos in IOmxStore.hal" into oc-mr1-dev
Peng Xu [Mon, 18 Sep 2017 19:07:09 +0000 (19:07 +0000)]
Merge "Add capability for sensor hal to use wakelock" into oc-mr1-dev
Ram Mohan M [Fri, 15 Sep 2017 14:18:17 +0000 (19:48 +0530)]
Add vts audio dec test for flac decoder
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO
Bug:
63796949
Change-Id: Ie504de96007c1c0ec6dc9c8b7da78f6c1da45631
Ram Mohan M [Thu, 14 Sep 2017 08:12:12 +0000 (13:42 +0530)]
Add support for preset ANW buffer mode
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO
Bug:
63796949
Change-Id: I17452d9f83cf9749cd654eaf55735563f0c5f82f
Ram Mohan M [Thu, 14 Sep 2017 06:57:44 +0000 (12:27 +0530)]
Extend adaptive playback test for graphic buffer modes
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO
Bug:
63796949
Change-Id: I4a4aad3a0dd4f528c8e855164cbb2998b33be1cd
Ram Mohan M [Thu, 14 Sep 2017 06:34:48 +0000 (12:04 +0530)]
Move graphic buffer allocation to common
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO
Bug:
63796949
Change-Id: I40b949199856beab73933a083045ed2e4e018c75
Ram Mohan M [Wed, 13 Sep 2017 09:58:46 +0000 (15:28 +0530)]
Enable EOSTest_M test
eostest_m was disabled during the time of o-release. This is
enabled now. Also improved logging
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO
Bug:
63796949
Change-Id: I4797fce4f5911d9f37f5c91f179d9ab9263177f0
Ram Mohan M [Wed, 28 Jun 2017 12:50:03 +0000 (18:20 +0530)]
Add adaptive playback test
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO
Bug:
63796949
Change-Id: I96f19946edb9a333776a60fa2c159dad67801b27
Ram Mohan M [Wed, 23 Aug 2017 12:38:27 +0000 (18:08 +0530)]
Add flush test
1. omx api allows flushing all ports at once by passing the
argument OMX_ALL. This fixture tests the flush call with the
arg OMX_ALL and expects behavior to be same as when the ports
are individually flushed.
2. Flush a port that is not listed and the api call shall
return with error code OMX_ErrorBadPortIndex
3. Test the behavior of flush API call when the component is
not in Execute State (expects OMX_ErrorIncorrectStateOperation)
Note: 2, 3 tests are disabled as of now
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO
Bug:
63796949
Change-Id: I6f0cccea0c923116f7e41ed0ef7d8d584631256b
Ram Mohan M [Thu, 24 Aug 2017 11:33:56 +0000 (17:03 +0530)]
Signal eof flag for each input buffer
As the client sends single frame worth of data for processing all
the time, at the time of dispatch, signal eof flag for each buffer.
Also code that was repititive and doesnt serve any need is removed.
Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Host \
-l INFO
Bug:
63796949
Change-Id: I530cbe69c27f5e4b1fae56ab808ef63107586275
Pawin Vongmasa [Sat, 16 Sep 2017 13:44:58 +0000 (06:44 -0700)]
Fix typos in IOmxStore.hal
Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice
Bug:
65719609
Bug:
65769027
Change-Id: I44d62cd5a8aa21d9fa816d5f0bf663e943a21bb5
Eino-Ville Talvala [Tue, 22 Aug 2017 23:15:09 +0000 (16:15 -0700)]
Camera: Add default implementation of camera.device@3.3
Inherit as much as possible from camera.device@3.2
- Refactor CameraDeviceSession@3.2 implementation to separate out the
HIDL session interface from the main implementation object. This
avoids multiple inheritance issues
- Create CameraDeviceSession@3.3 with support for the new
overrideDataspace field
- Add virtual factory method for CameraDevice to create the right version
of Session.
- Create CameraDevice@3.3, which overrides createSession to return a
CameraDeviceSession@3.3.
- Add system property to override selection of which minor HIDL
version is used for legal HAL version 3.x; set the default to the
newest available minor version.
Test: Camera CTS passes on device using @3.3.
Bug:
62358514
Change-Id: I497e4bc0de798b56ecdb2ea6467b79afccaf89f7
TreeHugger Robot [Fri, 15 Sep 2017 04:11:30 +0000 (04:11 +0000)]
Merge "HAL interface libs for testing are built w/o VNDK." into oc-mr1-dev
TreeHugger Robot [Fri, 15 Sep 2017 01:08:27 +0000 (01:08 +0000)]
Merge "[AWARE] Developer documentation on HAL usage" into oc-mr1-dev
Jiyong Park [Tue, 29 Aug 2017 05:20:59 +0000 (14:20 +0900)]
HAL interface libs for testing are built w/o VNDK.
The HAL interfaces for testing were copied to /system/lib[64]/vndk
directory since they are built as cc_library and thus falsely recognized
as members of VNDK, which isn't true.
Build them as non-VNDK so that they are filtered out. To do so,
.hidl_for_test files are added for the test HALs and update-makefiles.sh
were ran.
Bug:
64776708
Test: no android.hardware.tests.*.so file in /system/lib[64]/vndk on
2017 pixel devices
Change-Id: I6167da8572081adfb53f432b248ac3bbee39dc42
TreeHugger Robot [Thu, 14 Sep 2017 22:49:53 +0000 (22:49 +0000)]
Merge "Revert "HAL interface libs for testing are now built as test lib"" into oc-mr1-dev
Etan Cohen [Wed, 13 Sep 2017 23:40:49 +0000 (16:40 -0700)]
[AWARE] Developer documentation on HAL usage
Add documentation specifying which HAL APIs are used by the
framework.
Bug:
65646388
Test: N/A
Change-Id: Id1407a2d206b8eab47f5753a7cc6713b9581aeff
TreeHugger Robot [Thu, 14 Sep 2017 21:50:21 +0000 (21:50 +0000)]
Merge "Camera: synchronize access to mMemoryMap" into oc-mr1-dev
Peng Xu [Tue, 12 Sep 2017 21:52:22 +0000 (14:52 -0700)]
Add capability for sensor hal to use wakelock
Bug:
63995095
Test: no more wake lock acquire failures in QCOM and nanohub sensor
hal
Change-Id: I2a5c2e29ecb66869a408f53998b6074ed07b493a
Yifan Hong [Wed, 13 Sep 2017 00:53:29 +0000 (00:53 +0000)]
Revert "HAL interface libs for testing are now built as test lib"
This reverts commit
9a4b17e3e1ecb0dc0cd515d7445b7f200fc4b11b.
Reason of revert: this breaks hidl_test / lshal_test
Bug:
65603915
Change-Id: I73427657615ab9c7e3c0c7d336f03510d9a53fe6
Kevin Rocard [Thu, 14 Sep 2017 16:52:54 +0000 (16:52 +0000)]
Audio VTS: do not test duplicate policy configuration file am:
ff7dcd7e4d
am:
ecf7848f67
Change-Id: I79f97fb002e036c17b7ab42f1af00ed2b17e60fd
Kevin Rocard [Thu, 14 Sep 2017 16:48:56 +0000 (16:48 +0000)]
Audio VTS: do not test duplicate policy configuration file
am:
ff7dcd7e4d
Change-Id: Ice54f75c307f9f25e210b1382554dc24162b9ace
Kevin Rocard [Thu, 14 Sep 2017 01:11:14 +0000 (18:11 -0700)]
Audio VTS: do not test duplicate policy configuration file
This patch only modifies the VTS tests.
O generic policy configuration fallback is incorrect
(see I2a39606cd820b5cd27a640248bf692204ec2cd71 for the fix).
Nevertheless, has no impact on products because this fallback
is only used in aosp builds and GSI.
Unfortunatly, this break the VTS test when run agains GSI.
Because it is too late to change GSI for Oc and DR,
relax the test to support current O GSI.
For P, ihis patch will not be part of VTS
and the fallback config will be fixed.
Bug:
65535343
Merged-In: I2a39606cd820b5cd27a640248bf692204ec2cd71
Test:Â Following script:
setup() {
BUILD_ID=$1
TARGET_PRODUCT=$2
TARGET_BUILD_TYPE=${3:-userdebug}
TARGET_ARCH=${4:-arm64}
set +x
echo "The following three variables can be overridden" \
"by setting the corresponding environment variable"
set -x
TEST_SUITES_TARGET=${VTS_TEST_SUITES_TARGET:-test_suites_${TARGET_ARCH}}
BASE_TARGET=${VTS_BASE_TARGET:-${TARGET_PRODUCT}-${TARGET_BUILD_TYPE}}
AOSP_TARGET=${VTS_AOSP_TARGET:-aosp_${TARGET_ARCH}_ab-${TARGET_BUILD_TYPE}}
set +x
download() {
local target=$1
local file=$2
test -f $file ||
/google/data/ro/projects/android/fetch_artifact --bid $BUILD_ID --target $target $file ||
{ local r=$?; rm $file; return $r; }
}
echo "Downloading"
download $TEST_SUITES_TARGET 'android-vts.zip'
download $BASE_TARGET "${TARGET_PRODUCT}-img-${BUILD_ID}.zip"
download $AOSP_TARGET "aosp_${TARGET_ARCH}_ab-img-${BUILD_ID}.zip"
echo "Unzipping"
rm -r system.img android-vts
unzip aosp_${TARGET_ARCH}_ab-img-$BUILD_ID.zip system.img
unzip android-vts.zip
echo "Building vbmeta without verity"
avbtool make_vbmeta_image --flag 2 --output vbmeta.img
set -x
adb reboot bootloader
fastboot update ${TARGET_PRODUCT}-img-$BUILD_ID.zip --skip-reboot
fastboot flash vbmeta vbmeta.img || echo "Warning: Device does not support vbmeta"
fastboot erase system
fastboot flash system system.img
fastboot erase metadata
fastboot -w
fastboot reboot
echo "Board setup"
echo "You may now start vts-tradefed with:"
echo '$ ANDROID_BUILD_TOP= PATH="$PWD:$PATH" vts-tradefed'
}
VTS_TEST_SUITES_TARGET=test_suites_arm64_fastbuild3d_linux setup
4327646 sailfish
vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
Change-Id: Ibe1feed41325a3e4fb25e959bd254156348aa584
Signed-off-by: Kevin Rocard <krocard@google.com>
I-Jui (Ray) Sung [Thu, 14 Sep 2017 01:47:12 +0000 (18:47 -0700)]
Support ignored output in test harness
Filtered out outputs that are not needed for correctness verification
during result validation.
Bug:
63905942
Test: VtsHalNeuralnetworksV1_0TargetTest on Angler
Change-Id: Ic967a821c2a60194c9d9f386601a865f5c409a4f
Miao Wang [Thu, 14 Sep 2017 02:26:37 +0000 (02:26 +0000)]
Merge "Add documentation to the Neuralnetworks HIDL HAL." into oc-mr1-dev
Michael Butler [Mon, 11 Sep 2017 23:03:36 +0000 (16:03 -0700)]
Add documentation to the Neuralnetworks HIDL HAL.
Bug:
63905942
Test: not needed
Change-Id: I1582d20e66ef939581d82f21088f0db0bc0f5eb7
Ray Sung [Thu, 14 Sep 2017 00:53:27 +0000 (00:53 +0000)]
Merge "Relax tolerance for FP comparison in test harness" into oc-mr1-dev
I-Jui (Ray) Sung [Wed, 13 Sep 2017 23:47:50 +0000 (16:47 -0700)]
Relax tolerance for FP comparison in test harness
Tests like RNN needs slightly more relaxed tolerance than 4ULP.
Use 1e-5 from corresponding TFLite tests.
Bug:
63905942
Test: VtsHalNeuralnetworksV1_0TargetTest on Angler
Change-Id: I721711e13575f56e956d87e3ad537467f85e93f4
Miao Wang [Wed, 13 Sep 2017 22:51:54 +0000 (15:51 -0700)]
Make the enums signed int, remove unused info.
Bug:
63905942
Test: NeuralNetworksTest pass
Change-Id: I40ca1120d05ea8900f4f4e49409d3096f46ec0e1
David Gross [Wed, 13 Sep 2017 22:41:28 +0000 (22:41 +0000)]
Merge "Move OEM codes out of NeuralNetworks.h to new file NeuralNetworksOEM.h." into oc-mr1-dev
TreeHugger Robot [Wed, 13 Sep 2017 22:12:19 +0000 (22:12 +0000)]
Merge "bug fix: add missing color formats to the check for valid formats" into oc-mr1-dev
TreeHugger Robot [Wed, 13 Sep 2017 20:32:21 +0000 (20:32 +0000)]
Merge "Allow clock_gettime syscall for logging" into oc-mr1-dev
David Gross [Wed, 13 Sep 2017 19:31:33 +0000 (12:31 -0700)]
Move OEM codes out of NeuralNetworks.h to new file NeuralNetworksOEM.h.
Also remove FAKE_QUANT operation.
Bug:
63905942
Test: nn/runtime/tests, vts
Change-Id: Icfb5e7dbb9c2cca6e719ec2ab6344dbe5d95c86b
Tomasz Wasilczyk [Wed, 13 Sep 2017 15:36:09 +0000 (15:36 +0000)]
Merge "Adjust AM/FM region ranges." into oc-mr1-dev
Jeff Vander Stoep [Wed, 13 Sep 2017 14:54:45 +0000 (07:54 -0700)]
Allow clock_gettime syscall for logging
Addresses:
__kernel_clock_gettime" access failed.
The call flow is as follow:
"configstore -> hidltransport.tryShortenProcessName -> ALOGI ->
__android_log_print -> logdOpen -> netdClientConnect -> clock_gettime".
Bug:
65611466
Test: build and boot sailfish
Change-Id: I9e12c3a0969a7fe67c017d70f39a85792cf10bae
I-Jui (Ray) Sung [Wed, 6 Sep 2017 09:15:54 +0000 (02:15 -0700)]
Test harness for generated tests
Created initial test harness for test models and examples from
NNAPI test generator in VtsHalNeuralnetworksV1_0TargetTest. As
an example, also added a test generated from test spec at
frameworks/ml/nn/tools/test_generator/tests/P_vts_full/.
Generated model setup code and examples are from:
frameworks/ml/nn/runtime/test/generated/examples and
frameworks/ml/nn/runtime/test/generated/vts_models respectively.
Bug:
63905942
Bug:
63525563
Test: VtsHalNeuralnetworksV1_0TargetTest with sample driver enabled
by cherry-pick
Change-Id: Ief029eed9718c8724ef0b64fc6a7f6b9a7bc7b7b
Michael Butler [Wed, 13 Sep 2017 07:29:43 +0000 (07:29 +0000)]
Merge "Neuralnetworks HAL cleanup -- hardware/interfaces" into oc-mr1-dev
Michael Butler [Tue, 12 Sep 2017 03:27:50 +0000 (20:27 -0700)]
Neuralnetworks HAL cleanup -- hardware/interfaces
Does three primary cleanups:
1) Removes unused OperandTypes, creates OEM types
2) Creates explicit ErrorStatus; functions return status
3) IDevice::initialize renamed to getCapabilities,
IDevice::getSupportedSubgraph renamed to getSupportedOperations
Additionally fixes the corresponding VTS tests.
Bug:
63905942
Test: mm, vts
Change-Id: Ib4c61b9b13963ac2367f21dc3c20e5946eb955a9
Yin-Chia Yeh [Tue, 12 Sep 2017 23:35:29 +0000 (16:35 -0700)]
Camera: synchronize access to mMemoryMap
Test: stress test on partner device
Bug:
64831570
Change-Id: Ib9ece2f876ccb309c4f1bb8f90242a3e91081f47
Nathan Harold [Tue, 12 Sep 2017 22:51:10 +0000 (22:51 +0000)]
Merge "Fix docstrings for RIL_CellIdentity" into oc-mr1-dev
Tomasz Wasilczyk [Tue, 12 Sep 2017 18:36:06 +0000 (11:36 -0700)]
Adjust AM/FM region ranges.
Bug:
64541927
Test: instrumentation
Change-Id: I34ea5b0b426f0c0c73d1cbc2d64cb67e2d4b7bd6
Michael Butler [Tue, 12 Sep 2017 18:41:00 +0000 (18:41 +0000)]
Merge "Make prepareModel asynchronous." into oc-mr1-dev
Nathan Harold [Wed, 30 Aug 2017 03:41:36 +0000 (20:41 -0700)]
Fix docstrings for RIL_CellIdentity
Update the documentation to match the current
CTS requirements for Cell Identity reporting
-For LTE, WCDMA, and GSM require that the channel
number be reported.
-For LTE and WCDMA, require that the correct
physical channel identifier be reported. Note that
due to b/
32774471 we still cannot require BSIC
to be reported.
Bug:
65174915
Test: none, comment-only change
Change-Id: I93fcce3b39401e8965f724722361c2cadc4a88cc
TreeHugger Robot [Tue, 12 Sep 2017 16:51:33 +0000 (16:51 +0000)]
Merge "Remove default implementation for PowerHal 1.1" into oc-mr1-dev
Shawn Willden [Tue, 12 Sep 2017 16:34:52 +0000 (16:34 +0000)]
Merge "Don't send more than 2K to addRngEntropy" into oc-dev am:
7eeb6b5079
am:
35e1be70b4
Change-Id: I626faecd254e3e543308143cfe69d1393e1f9267
Shawn Willden [Tue, 12 Sep 2017 16:31:32 +0000 (16:31 +0000)]
Merge "Don't send more than 2K to addRngEntropy" into oc-dev
am:
7eeb6b5079
Change-Id: Id0ee0e3f22ee4f2d2b730054043d28c01ac19c6f
TreeHugger Robot [Tue, 12 Sep 2017 16:28:44 +0000 (16:28 +0000)]
Merge "Don't send more than 2K to addRngEntropy" into oc-dev
Ahmed ElArabawy [Fri, 8 Sep 2017 16:11:48 +0000 (09:11 -0700)]
Remove default implementation for PowerHal 1.1
Default implementation in powerHAL 1.1 is not used by any device
Devices using powerHal 1.1 have their own implementation in their
device/<vendor>/<devicename> while older devices don't use 1.1 at all.
This CL removes the default implementation for the PowerHAL 1.1
Bug:
65453628
Test: Build successfully (code not used anyway)
Merged-In: I695348683c6e2e504a523897082543274dc239aa
Change-Id: I695348683c6e2e504a523897082543274dc239aa
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
Shawn Willden [Tue, 12 Sep 2017 06:53:16 +0000 (06:53 +0000)]
Merge "Reduce max keymaster message size to 2K" into oc-dev am:
42d61ce03a
am:
ac06f7576e
Change-Id: I219c56653ec9051d35a4c7c8f012c9c06e555881
Shawn Willden [Tue, 12 Sep 2017 06:50:47 +0000 (06:50 +0000)]
Merge "Reduce max keymaster message size to 2K" into oc-dev
am:
42d61ce03a
Change-Id: Ia2915bb4305268e5048689ef3e4cf6cf9793d483
TreeHugger Robot [Tue, 12 Sep 2017 06:46:22 +0000 (06:46 +0000)]
Merge "Reduce max keymaster message size to 2K" into oc-dev
Michael Butler [Mon, 11 Sep 2017 20:53:19 +0000 (13:53 -0700)]
Make prepareModel asynchronous.
Updated the corresponding VTS tests.
Bug:
63905942
Test: mm, vts
Change-Id: Ie520af845f491dbdd93ea66fd643d77cfb4703f7
David Gross [Tue, 12 Sep 2017 04:02:53 +0000 (04:02 +0000)]
Merge "Fix bug in the way an Event handles a bound thread." into oc-mr1-dev
TreeHugger Robot [Tue, 12 Sep 2017 02:21:17 +0000 (02:21 +0000)]
Merge "Add portMode configuration test" into oc-mr1-dev
David Gross [Mon, 11 Sep 2017 23:23:17 +0000 (16:23 -0700)]
Fix bug in the way an Event handles a bound thread.
This just keeps the (test) Event representation in sync with
the runtime Event representation, which is modified by
https://googleplex-android-review.git.corp.google.com/#/c/platform/frameworks/ml/+/
2880348/
Bug:
63905942
Test: vts
Change-Id: I2a6de4397c5e31e35cb3d02e241dd21452c21ca6
Enrico Granata [Mon, 11 Sep 2017 22:06:40 +0000 (15:06 -0700)]
Do not write initial empty values for the diagnostic properties.
There is a separate step that initializes them with meaningful values.
Change-Id: I2480a029773b62b0e77b8c52c73f2ee465caf17c
Fixes: b/
65125128
Test: runtest -x packages/services/Car/tests/android_car_api_test/src/android/car/apitest/CarDiagnosticManagerTest.java
Jean-Luc Brouillet [Sun, 10 Sep 2017 03:45:55 +0000 (20:45 -0700)]
Refactor how arguments are tracked.
Use an explicit description of the lifetime of an operand
rather than relying on poolIndex to do the job.
Bug:
63905942
Test: Ran unit tests
Change-Id: I53c4c10b40fd3312232b0689b43d0f72a2818490
TreeHugger Robot [Sat, 9 Sep 2017 21:58:32 +0000 (21:58 +0000)]
Merge "Add FusedActivationFunc enum and renamed certain operations." into oc-mr1-dev
Miao Wang [Fri, 8 Sep 2017 23:57:49 +0000 (16:57 -0700)]
Add FusedActivationFunc enum and renamed certain operations.
- Add "_2D" to CONV, DEPTHWISE_CONV, AVG_POOL, MAX_POOL, and L2_POOL,
since they are only supposed to do 2D computation.
- Remove CAST, GATHER, SPLIT.
- Also update the tests to reflect the changes.
Bug:
63905942
Test: mm
Test: NeuralNetworksTests pass for both CPU path and sample hidl driver.
Change-Id: I5bcf219c4c6cd4f866c1023d1f35cdc83ca69a85
Chia-I Wu [Fri, 8 Sep 2017 22:31:31 +0000 (22:31 +0000)]
Merge "graphics: discard stale data from message queue" into oc-mr1-dev
Kevin Rocard [Fri, 8 Sep 2017 22:14:14 +0000 (22:14 +0000)]
Audio VTS: remove expectation of policy configuration unicity am:
76efe01bbd
am:
6b51d9a855
Change-Id: I59bb70fbc000f424beeb938a08c1fcb24dc08037
Kevin Rocard [Fri, 8 Sep 2017 22:12:14 +0000 (22:12 +0000)]
Audio VTS: remove expectation of policy configuration unicity
am:
76efe01bbd
Change-Id: I23948718eaed0a687cc7dbd6b4940fc8514fbe1b
Chia-I Wu [Fri, 8 Sep 2017 18:24:32 +0000 (11:24 -0700)]
graphics: discard stale data from message queue
Our use of message queues is synchronous. If there are already data
in the queue when writeQueue is called, we know they are stale and
can be discarded.
Bug:
65449888
Test: manual
Change-Id: Ie29b8a7386c9733c183a6c3569e3572efa62cbc2
Kevin Rocard [Fri, 8 Sep 2017 18:29:32 +0000 (11:29 -0700)]
Audio VTS: remove expectation of policy configuration unicity
The XML audio policy configuration is expected to be located in /vendor.
Additionally for AOSP builds (no vendor) and as a fallback in case of
missing vendor configuration, the system supports loading the XML from
/system.
This fallback config is not guaranty to be compatible with the phone HAL,
but probably does for a wide range of android phones
(at least for basic use cases).
In each of those cases, there is only one configuration file, either in
/vendor or /system.
As a result, the audio policy configuration VTS test was asserting that
only one audio_policy_configuration.xml could be found.
If multiple were found, one was useless and the platform integrator
should remove it.
But VTS are now run on phone with a /system partition from an AOSP
build and a /vendor partition from a device build.
In such scenario two audio policy config are now present on the device,
thus breaking the VTS expectation.
This is not a problem for the framework because it does not look for a /system
config if one was found in /vendor.
In the future, the /system XML might be removed as boards
specific config should be found in /vendor only as per treble
requirements.
Test: Compile
Bug:
65482614
Change-Id: I7cd7eb7284c0aa52782aa591411f8a9bf2a87a76
Signed-off-by: Kevin Rocard <krocard@google.com>
Sanket Padawe [Fri, 8 Sep 2017 18:14:16 +0000 (18:14 +0000)]
Merge "Fix VTS test which turns off radio." into oc-mr1-dev
Ram Mohan M [Thu, 7 Sep 2017 23:45:42 +0000 (23:45 +0000)]
Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev am:
f8677dcfdb
am:
37b490df35
Change-Id: I028c248ebef366eb439b369adad87047086aa07b
Ram Mohan M [Thu, 7 Sep 2017 23:40:43 +0000 (23:40 +0000)]
Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev
am:
f8677dcfdb
Change-Id: If65c243e72e890660fc4481b375b23ba109ae577
TreeHugger Robot [Thu, 7 Sep 2017 23:30:17 +0000 (23:30 +0000)]
Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev
TreeHugger Robot [Thu, 7 Sep 2017 17:39:27 +0000 (17:39 +0000)]
Merge "Bluetooth: Remove credit check from Loopback tests" into oc-mr1-dev
Chia-I Wu [Thu, 7 Sep 2017 17:38:17 +0000 (17:38 +0000)]
Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev am:
ef3389add5 -s ours
am:
b2f558e267
Change-Id: Ie634e5172b1e4ebeb98f11a43f8462db67230de0
Chia-I Wu [Thu, 7 Sep 2017 17:36:15 +0000 (17:36 +0000)]
Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev
am:
ef3389add5 -s ours
Change-Id: I9cee260396d3f24e86443afe36780894397638e1
Chia-I Wu [Thu, 7 Sep 2017 17:18:25 +0000 (17:18 +0000)]
Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev
Myles Watson [Wed, 6 Sep 2017 23:26:49 +0000 (16:26 -0700)]
Bluetooth: Remove credit check from Loopback tests
The Bluetooth specification doesn't require data credits
to come back within a specific timeframe, so the VTS test
can not require it.
Bug:
65269854
Test: VtsHalBlueoothV1_0TargetTest with simulated chip (no credits)
Change-Id: If2fc052d3b5236f6a3097f3d5403882226561404
(cherry picked from commit
0e06a63c76f4c02ac307c6294f3d6f61ae6406e7)