Commit graph

7520 commits

Author SHA1 Message Date
Michael Butler
d970a9edcf Merge "Removed WIP tag from Neuralnetworks HAL" into oc-mr1-dev
am: e9a134b868

Change-Id: I1f69c9efc02421d40e5d2ef7de97f5ebfb1542d2
2017-09-23 03:44:44 +00:00
Michael Butler
e9a134b868 Merge "Removed WIP tag from Neuralnetworks HAL" into oc-mr1-dev 2017-09-23 03:38:47 +00:00
Michael Butler
d2d60c6b0d Merge "Add negative tests to the Neuralnetworks HAL" into oc-mr1-dev am: ee3906793c
am: 4684ab0ca3

Change-Id: Ic99fadf2fc6f5cdedc0dd9968f5eba7e5d9c0f0c
2017-09-23 01:20:22 +00:00
Michael Butler
4684ab0ca3 Merge "Add negative tests to the Neuralnetworks HAL" into oc-mr1-dev
am: ee3906793c

Change-Id: I7f39841c20883b340d0f3368c14d025f26fdac40
2017-09-23 01:15:51 +00:00
Michael Butler
f608c54838 Merge "Downgrade generated test harness for NDK libc++" into oc-mr1-dev am: 61e7b96aa2
am: d5902d6472

Change-Id: I0fd4ea8e598bf3dc5a8cf9c4bf749ba9b6043c99
2017-09-23 01:08:24 +00:00
Michael Butler
ee3906793c Merge "Add negative tests to the Neuralnetworks HAL" into oc-mr1-dev 2017-09-23 01:07:43 +00:00
Michael Butler
d5902d6472 Merge "Downgrade generated test harness for NDK libc++" into oc-mr1-dev
am: 61e7b96aa2

Change-Id: Ia88c4e4c4c36ac0511f85e7580ee47ff04b8db49
2017-09-23 01:04:20 +00:00
Ram Mohan M
fa0d7a3b89 Port mode configuration test - II
Change port modes randomly before the start of test and see if it
effects the end behavior

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: I28c923b8e6cdc0f7bf6dd394ef6d088ff489e2e0
2017-09-23 01:04:08 +00:00
Michael Butler
61e7b96aa2 Merge "Downgrade generated test harness for NDK libc++" into oc-mr1-dev 2017-09-23 00:57:48 +00:00
Michael Butler
926df1e182 Removed WIP tag from Neuralnetworks HAL
Additionally cleaned up some comments and formatting.

Bug: 63905942
Test: not needed
Change-Id: I0306f6d37f3c9ce9b365b5f838c27e81fa001ccd
2017-09-22 15:53:03 -07:00
Suresh Sivaraman
9bd69497f8 Merge "Added VTS tests for MediaCas" into oc-mr1-dev am: 6b3d1649bc
am: 71a9489ae1

Change-Id: I61b45281473ca4d10be7152e0d852a74f8099824
2017-09-21 23:36:57 +00:00
Suresh Sivaraman
71a9489ae1 Merge "Added VTS tests for MediaCas" into oc-mr1-dev
am: 6b3d1649bc

Change-Id: I83f1918ee6d08c46e053db9a22859f4b8f099643
2017-09-21 23:34:33 +00:00
TreeHugger Robot
6b3d1649bc Merge "Added VTS tests for MediaCas" into oc-mr1-dev 2017-09-21 23:26:52 +00:00
I-Jui (Ray) Sung
f6b85506fe 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
2017-09-21 12:46:13 -07:00
Suresh Sivaraman
f1fbb442dc Added VTS tests for MediaCas
Bug: 63914034
Bug: 65593293
Change-Id: I1064ac14513508d2f821a1a27dafcc7389b1a691
2017-09-21 11:44:39 -07:00
Ram Mohan M
63fbc04833 Merge "Add flush test" into oc-mr1-dev am: f213eca917
am: c363ff0bb9

Change-Id: I2d0567f03144b269379e85e96286ad4e0d6b86e3
2017-09-21 03:55:18 +00:00
Ram Mohan M
e0a06fd651 Merge "Enable EOSTest_M test" into oc-mr1-dev am: f11a1ef8b5
am: 26748d514d

Change-Id: Iae66a8d960487cdb712e0d8d2f53736391f5763f
2017-09-21 03:54:58 +00:00
Ram Mohan M
25c4474179 Merge "Signal eof flag for each input buffer" into oc-mr1-dev am: 98d4fd9ed6
am: e27badbfc8

Change-Id: I8fab6195868dc8aa499584a4677d2d109d8121a2
2017-09-21 03:54:40 +00:00
Ram Mohan M
3abd1eb75e Merge "Add support for preset ANW buffer mode" into oc-mr1-dev am: 5f03369e25
am: c0424d71c0

Change-Id: Ief7ec70c50fa2b64a423df2cdf2522d4ad288bb4
2017-09-21 03:54:21 +00:00
Ram Mohan M
3ff297e585 Merge changes I4a4aad3a,I40b94919 into oc-mr1-dev am: 97d9efb4e0
am: 089b8813c2

Change-Id: Ia483bc7bc7988792b28826958fd759c9d27276bf
2017-09-21 03:54:01 +00:00
Ram Mohan M
e7d8061b04 Merge "Add vts audio dec test for flac decoder" into oc-mr1-dev am: 404a1c69c1
am: 30b429b58d

Change-Id: I622794406ce94b19dde51ce87aa95207d3d60b00
2017-09-21 03:53:17 +00:00
Ram Mohan M
6a0ead68a8 Merge "Add adaptive playback test" into oc-mr1-dev am: f4570eb0d0
am: 7e8396f309

Change-Id: I5689acd7e2aec820ad4052846b2f204cdae05731
2017-09-21 03:52:34 +00:00
Ram Mohan M
c363ff0bb9 Merge "Add flush test" into oc-mr1-dev
am: f213eca917

Change-Id: I3dd0c6afa135d5624bbb86b0c651a2eed22bb276
2017-09-21 01:07:56 +00:00
Ram Mohan M
26748d514d Merge "Enable EOSTest_M test" into oc-mr1-dev
am: f11a1ef8b5

Change-Id: I0baada52e4b45620d9b77fc40d8255d1d928f5d4
2017-09-21 01:07:38 +00:00
Ram Mohan M
e27badbfc8 Merge "Signal eof flag for each input buffer" into oc-mr1-dev
am: 98d4fd9ed6

Change-Id: I6183bde5851f4dbb03608808e0c7a666a444511e
2017-09-21 01:04:20 +00:00
Ram Mohan M
c0424d71c0 Merge "Add support for preset ANW buffer mode" into oc-mr1-dev
am: 5f03369e25

Change-Id: I05f800f7c941b20e99557c33272c05eda20e6b7f
2017-09-21 01:03:38 +00:00
Ram Mohan M
089b8813c2 Merge changes I4a4aad3a,I40b94919 into oc-mr1-dev
am: 97d9efb4e0

Change-Id: I66aa71f1cb883d91c082946f52f930c6a31de989
2017-09-21 01:03:13 +00:00
TreeHugger Robot
f213eca917 Merge "Add flush test" into oc-mr1-dev 2017-09-21 01:01:13 +00:00
TreeHugger Robot
f11a1ef8b5 Merge "Enable EOSTest_M test" into oc-mr1-dev 2017-09-21 01:00:47 +00:00
Ram Mohan M
30b429b58d Merge "Add vts audio dec test for flac decoder" into oc-mr1-dev
am: 404a1c69c1

Change-Id: I1e2fa920b6fe9fbca84894912b375e9f7a75278b
2017-09-21 01:00:44 +00:00
TreeHugger Robot
98d4fd9ed6 Merge "Signal eof flag for each input buffer" into oc-mr1-dev 2017-09-21 01:00:22 +00:00
TreeHugger Robot
5f03369e25 Merge "Add support for preset ANW buffer mode" into oc-mr1-dev 2017-09-21 00:59:59 +00:00
TreeHugger Robot
97d9efb4e0 Merge changes I4a4aad3a,I40b94919 into oc-mr1-dev
* changes:
  Extend adaptive playback test for graphic buffer modes
  Move graphic buffer allocation to common
2017-09-21 00:59:35 +00:00
TreeHugger Robot
404a1c69c1 Merge "Add vts audio dec test for flac decoder" into oc-mr1-dev 2017-09-21 00:59:09 +00:00
Michael Butler
2f499a9ba8 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
2017-09-20 16:18:55 -07:00
Ram Mohan M
7e8396f309 Merge "Add adaptive playback test" into oc-mr1-dev
am: f4570eb0d0

Change-Id: Ia8cc58809c774752172846a5897b7b71489892e7
2017-09-20 10:17:08 +00:00
TreeHugger Robot
f4570eb0d0 Merge "Add adaptive playback test" into oc-mr1-dev 2017-09-20 10:14:12 +00:00
TreeHugger Robot
ffc151ca2a Merge "Register mock EVS driver as EvsEnumeratorHw" 2017-09-19 21:34:45 +00:00
Scott Randolph
34daf2ff7c Register mock EVS driver as EvsEnumeratorHw
This makes the mock driver (when loaded and running) serve as THE evs
driver for the system.  Facilitates VTS tests running, etc.
This driver should not run on a production system as it should have a
"real" driver registered instead.

Change-Id: I716f8f8226e7152521375b94013828a3aa2bb9f0
BUg: 65376941
Test: boot mojave, then 'ps -lef | grep evs'
2017-09-19 14:29:21 -07:00
Peng Xu
7728f0ce5c Skip direct report test if sensor is not available
Skip SensorsHidlTest.*AshmemDirectReportOperation* tests if sensor
is not available on device.

Bug: 64230704
Test: compiles and test pass for a pixel device with mag sensor
      masked in hal.

Change-Id: I9bfbea6301891eaa2b272bd3d15b0e237799b5d6
Merged-In: I9bfbea6301891eaa2b272bd3d15b0e237799b5d6
2017-09-19 12:26:35 -07:00
Peng Xu
5b036a21a4 Relax accelerometer events norm check
Current accelerometer norm check threshold is tight and cause
unnecessary test flakiness in test environment with small
inevitable vibration (e.g. from people walking by testing
lab).

This CL relax the threshold from 0.5m/s^2 to 1m/s^2.

Test: vts pass
Bug: 62811045
Change-Id: I5d7e736623c892b6e6c9b8ddc5d0f53fa8aaba77
Merged-In: I5d7e736623c892b6e6c9b8ddc5d0f53fa8aaba77
2017-09-19 12:20:45 -07:00
Peng Xu
ce6e742eb6 Only convert valid SharedMemInfo
This CL avoids passing nullptr to underlying HAL and cause
SEGFAULT.

Bug: 37589989
Test: compiles and VTS passing
Change-Id: Ic44409e64466e54a3a3027721897c0755ba34fc7
Merged-In: Ic44409e64466e54a3a3027721897c0755ba34fc7
2017-09-19 12:16:26 -07:00
Peng Xu
44256a7fbd Augment HotSwitchOperation to test slow to fast case
Originally, SamplingRateHotSwitchOperation only tests the case
in which requested sensor sampling rate goes from fast to slow.
Recent regression demonstrates that it is also worthwhile to test
transition in the other direction, i.e. from slow to fast. This
CL add the slow to fast transition test.

Bug: 65138983
Test: sailfish failed the test before being patched.
Test: sailfish passed after being patched (ag/2824590)
Change-Id: If02509c75f74145544f0a2ce5d2aaec24e7326b8
Merged-In: If02509c75f74145544f0a2ce5d2aaec24e7326b8
2017-09-19 12:12:42 -07:00
Peng Xu
2aef4b48f0 Sensor VTS testBatchingOperation flakiness fix
This CL is cherry-picked from internal branch oc-dev.

Bug: 64732324
Bug: 63529148
Test: testBatchingOperation passes consistently
Merged-In: Id4e8075e249f3658f5683d53d6dc8403ee32bc4a
Change-Id: Id4e8075e249f3658f5683d53d6dc8403ee32bc4a
2017-09-19 12:08:48 -07:00
Eino-Ville Talvala
7fccf50db2 Merge "Camera: Add default implementation of camera.device@3.3" into oc-mr1-dev am: 3f55d8735e
am: d69e27a115

Change-Id: If3fe372f0574c318fb194dcab0ea2cee4fc827ff
2017-09-19 16:01:04 +00:00
Eino-Ville Talvala
d69e27a115 Merge "Camera: Add default implementation of camera.device@3.3" into oc-mr1-dev
am: 3f55d8735e

Change-Id: Ib621684a43181bfbf8fdf020128215d326fc4fbd
2017-09-19 15:57:03 +00:00
Eino-Ville Talvala
3f55d8735e Merge "Camera: Add default implementation of camera.device@3.3" into oc-mr1-dev 2017-09-19 15:53:43 +00:00
Pawin Vongmasa
7e3570f08e Merge "Fix typos in IOmxStore.hal" into oc-mr1-dev am: 941b614064
am: 87165bb092

Change-Id: I4724699054648351683d3b139f45dab7799a30aa
2017-09-19 01:30:07 +00:00
Pawin Vongmasa
87165bb092 Merge "Fix typos in IOmxStore.hal" into oc-mr1-dev
am: 941b614064

Change-Id: I6a33f4b153859013484d4eb25b702ae4cb9c3ff2
2017-09-19 01:22:43 +00:00
TreeHugger Robot
941b614064 Merge "Fix typos in IOmxStore.hal" into oc-mr1-dev 2017-09-19 01:14:00 +00:00