Commit graph

6192 commits

Author SHA1 Message Date
Ram Mohan M
f88227bd94 Merge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev am: febad058bd
am: a87079c3d4

Change-Id: Ied9396646a58ca9b3f123c7db25df418b040a478
2017-09-02 03:50:43 +00:00
Ram Mohan M
a87079c3d4 Merge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev
am: febad058bd

Change-Id: I09128311ab40316b17d99daeae375ff7535d0e63
2017-09-02 03:44:45 +00:00
TreeHugger Robot
febad058bd Merge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev 2017-09-02 03:40:15 +00:00
Ram Mohan M
eb9e25a3e2 bug fix: disable timestamp deviation test for audio 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_0Test -l INFO

Bug: 64128634
Bug: 65166112

Change-Id: I8a08a8da7dd203cd16cbfbfd3f15e27966db711f
2017-09-01 06:22:17 -07:00
Jean-Luc Brouillet
5d143d2a0f Cleanup the constants.
- Alphabetize the operations.
- Remove N_GRAM operation.
- Add TENSOR_INT32.

Test: Compiled and ran the tests.
Bug: 63905942
Change-Id: Ie7d9dec671a409256b686ef4665171492d1ac16a
2017-08-31 23:25:57 -07:00
Miao Wang
df5dd34d65 Add OEM_OPERATION to NN HAL.
Bug: 63905942
Test: mm
Test: All unit tests pass on Sailfish
Change-Id: I8c8068b248d682fbf1db37de78666c9cbca376b4
2017-08-31 10:57:29 -07:00
Yang Ni
9e06ee8c54 Merge "Replace LOOKUP with EMBEDDING and HASHTABLE_LOOKUP" into oc-mr1-dev 2017-08-31 15:11:04 +00:00
Wyatt Riley
f5c1dc8d31 Merge "Adding owners for gnss hardware interfaces" into oc-mr1-dev 2017-08-30 23:57:23 +00:00
TreeHugger Robot
e1333de647 Merge "cas: fix missing error code conversion" into oc-mr1-dev 2017-08-30 22:35:31 +00:00
Zhuoyao Zhang
69270ce30f Merge "Update vts test to use the updated test template." into oc-mr1-dev 2017-08-30 21:50:20 +00:00
TreeHugger Robot
cf0ee37180 Merge "Fix HALs to not have transitive depends." into oc-mr1-dev 2017-08-30 16:10:37 +00:00
Wyatt Riley
ad3ef076cf Adding owners for gnss hardware interfaces
Bug # is example where owners file would have
appropriate expedited the fix.

Bug: 64482271
Test: Treehugger (if relevant) - OWNERS file only
Change-Id: If82a2794ae40d48542006674c3c57a1e21c5124b
2017-08-30 16:04:01 +00:00
Chong Zhang
065f08d09b cas: fix missing error code conversion
bug: 22804304
Change-Id: Ia950e12f7feef3eeb16596c0939aaeb61bfdf5df
2017-08-29 18:38:38 -07:00
TreeHugger Robot
67be3e2f64 Merge "Setting clock flags for GPS clock" into oc-mr1-dev 2017-08-29 23:31:22 +00:00
Zhuoyao Zhang
6afb992759 Update vts test to use the updated test template.
* For registerTestService/getServiceName, no need to pass
  any hard coded string of HAL service FQName.
* Affect test: VtsHalCameraProviderV2_4TargetTest,
               VtsHalGraphicsComposerV2_1TargetTest,
               VtsHalNeuralnetworksV1_0TargetTest

Bug: 62946472
Bug: 64203181

Test: make vts
      vts-tradefed run vts -m VtsHalCameraProviderV2_4Target

Merged-In: If365ab2ed9a91eb4013d71769804b9d4bf089d66
Change-Id: Id0bddbc2949337147557f45cc60dbfaa114ce25e
(cherry picked from commit d71b654d6d)
2017-08-29 17:44:10 +00:00
Tomasz Wasilczyk
02537a6bcc Merge "Move Broadcast Radio HAL to a separate binary." into oc-mr1-dev 2017-08-29 14:03:01 +00:00
Kevin Rocard
ab19e162ec Merge "Audio VTS: Look for Audio policy config in all supported folders" into oc-dev am: 4f3c28ad7a
am: b06f544d22

Change-Id: Id525d075289896bb5cb708aa104eef0ee622d61c
2017-08-29 00:49:09 +00:00
Kevin Rocard
b06f544d22 Merge "Audio VTS: Look for Audio policy config in all supported folders" into oc-dev
am: 4f3c28ad7a

Change-Id: I43a48595607a1c38475aec81232008ac76cdd5b1
2017-08-29 00:34:29 +00:00
TreeHugger Robot
4f3c28ad7a Merge "Audio VTS: Look for Audio policy config in all supported folders" into oc-dev 2017-08-29 00:19:03 +00:00
Steven Moreland
218c6d8b2f Fix HALs to not have transitive depends.
Bug in hidl-gen allowed this to work.

Test: -Lcheck
Bug: 65055216
Change-Id: Ia0cbaac4c8bfd93be169f4fab5c9ce016ee6c473
2017-08-28 11:13:19 -07:00
Tomasz Wasilczyk
f4bae95eab Move Broadcast Radio HAL to a separate binary.
Bug: 63600413
Test: VTS, instrumentation
Change-Id: I34a779a6608f52bcadaca1dc159bcee02186b49f
2017-08-28 09:45:40 -07:00
TreeHugger Robot
ce8f5cec2d Merge changes from topic "o-mr1-hal-freeze" into oc-mr1-dev
* changes:
  O-MR1: HIDL freeze-commit
  Move auto hash to right location in current.txt.
2017-08-28 04:59:12 +00:00
TreeHugger Robot
e46ab1fdcc Merge "Configstore HAL is down-revisioned to 1.0" into oc-mr1-dev 2017-08-28 04:52:23 +00:00
David Gross
2f4f5bde68 Merge "Fix test that broke when number of ADD inputs increased from 2 to 3." into oc-mr1-dev 2017-08-26 17:46:35 +00:00
David Gross
8454fcd4dc Fix test that broke when number of ADD inputs increased from 2 to 3.
Test: vts: nn32, nn64

Bug: 63905942

Change-Id: Ie4b237d0c16247d7774a13384a59453da94c5d91
2017-08-25 16:27:38 -07:00
Peng Xu
089ada15f0 Merge "Sensor VTS testBatchingOperation flakiness fix" into oc-dev am: 751953859c
am: b8197386f9

Change-Id: Id6470f4a31469da02a8b3d4b4b258e863a9bb234
2017-08-25 22:23:40 +00:00
Peng Xu
b8197386f9 Merge "Sensor VTS testBatchingOperation flakiness fix" into oc-dev
am: 751953859c

Change-Id: I8800d11d6b137488674f3159941135bce374d3a6
2017-08-25 22:21:41 +00:00
TreeHugger Robot
751953859c Merge "Sensor VTS testBatchingOperation flakiness fix" into oc-dev 2017-08-25 22:12:24 +00:00
Steven Moreland
6f1de2968a O-MR1: HIDL freeze-commit
Freezing libraries which are being released in O-MR1.

Note the following remaining items:
- configstore@1.1 will be removed from O-MR1 (since it doesn't
  add anything)
- neuralnetworks@1.0 will be frozen later (as it has some
  remaining changes in progress)

Bug: 63603463
Test: -Lcheck
Change-Id: I888896a66e742613d0ce64c4ca6206972ac6aca8
2017-08-25 12:44:15 -07:00
Yifan Hong
2578b80f25 Merge "Remove hardcoded <kernel> version from fwk comp mat" into oc-mr1-dev 2017-08-25 19:29:46 +00:00
Yifan Hong
d338811d05 Remove hardcoded <kernel> version from fwk comp mat
They are injected via assemble_vintf by the build system
at build time. See build/make/target/board/Android.mk.

Test: m system_compatibility_matrix.xml, and manually
inspect $OUT/system/compatibility_matrix.xml; it contains
<kernel> versions.

Bug: 64124223

Change-Id: Ibf82efa0805233dedb6badce7e5a4ff62a9ff769
Merged-In: Ibf82efa0805233dedb6badce7e5a4ff62a9ff769
2017-08-25 18:33:28 +00:00
Steven Moreland
5d5c2ec5fc Move auto hash to right location in current.txt.
This doesn't actually matter in practice, but this
will help keep the file sane and make sure the wrong
hashes aren't modified in the future.

Test: pass
Bug: 63603463
Change-Id: I89e320d36c41b08ebbcee320ac37565bb1aa708c
2017-08-25 10:45:10 -07:00
TreeHugger Robot
300ebef0a3 Merge "Bluetooth: Return false when not shut down" into oc-mr1-dev 2017-08-25 17:38:18 +00:00
Sundong Ahn
169eeecb08 Configstore HAL is down-revisioned to 1.0
Configstore was up-revisioned from 1.0 to 1.1. However no new
APIs were added to 1.1. Therefore configstore in mr1 will be down
revisioned to 1.0.

Bug: 64999074
Test: lshal | grep configsotre
Test: "cat proc/<configstore pid>/status | grep Seccomp " return:
    Seccomp: 2
Change-Id: Ia2614439cd620fbe5fbd427571ab55a15089cc47
2017-08-25 17:05:29 +00:00
Myles Watson
6ebbc2cff7 Bluetooth: Return false when not shut down
Do not crash in the vendor layer.  The stack will crash
when it fails to initialize.

Bug: 64535243
Test: Bluetooth starts/stops
Change-Id: I69fdd2879c80fa2f006c50f0a42a85e9289b14fe
2017-08-25 15:02:32 +00:00
Myles Watson
d1ccbc1bac Bluetooth: Check H4 HCI packet types
An invalid type byte can cause an access outside
the bounds of the array.

Bug: 64565737
Test: Bluetooth On/Off
Change-Id: Ie11dd62942f66b9fc60ebce2e4339c37d597fdf0
2017-08-25 15:01:56 +00:00
Wyatt Riley
2525d9e579 Setting clock flags for GPS clock
Full bias nanosecond flag is now set correctly for
legacy GpsData (vs. modern GnssData) implementations
of gps.h measurements, going through default GNSS
HAL implementation.

Change-Id: Iec8f03994b6d9e509221e1323b54dc997319fccc
Fixes: 64482271
Test: Before/after on device with GnssLogger
2017-08-25 07:02:58 -07:00
Pavel Maltsev
426066118a Merge "Merge Vehicle HAL 2.1 iface to 2.0" into oc-mr1-dev 2017-08-25 06:57:31 +00:00
Ram Mohan M
3e1847394d Merge "bug fix: output colorformat configuration fixed" into oc-dev am: 1e15657ca1
am: 0e42ac3399  -s ours

Change-Id: Iee420fcb4df06d89f56966779cc4dd4d885321e7
2017-08-25 05:20:42 +00:00
Ram Mohan M
0e42ac3399 Merge "bug fix: output colorformat configuration fixed" into oc-dev
am: 1e15657ca1

Change-Id: I1bf3c443058ab57baba7c51e3f9f0ae662e61882
2017-08-25 05:16:14 +00:00
TreeHugger Robot
1e15657ca1 Merge "bug fix: output colorformat configuration fixed" into oc-dev 2017-08-25 05:09:25 +00:00
Pavel Maltsev
250139c8b0 Merge Vehicle HAL 2.1 iface to 2.0
Vehicle HAL is property based and all properties are considered
optional. It is quite a bit of pain to create new versions of VHAL only
to extend properties.

Bug: 64303350

Test: build and flash, verefied system works stable.
Change-Id: I8adb858f53a5d9d31f7444bf97ae09baf2fffafa
2017-08-24 21:59:18 -07:00
TreeHugger Robot
ed827b8210 Merge "Drm test static links to HAL def libs." into oc-mr1-dev 2017-08-24 21:54:47 +00:00
TreeHugger Robot
a2c5f9365c Merge "Camera: Add new minor revision camera.device@3.3" into oc-mr1-dev 2017-08-24 18:27:35 +00:00
TreeHugger Robot
1f88a5dce8 Merge "configstore: Allow syscalls needed by crash_dump" into oc-mr1-dev 2017-08-24 18:12:08 +00:00
Brian Duddie
814b6922c5 Merge "contexthub: Pass target API version in new fields" into oc-mr1-dev 2017-08-24 17:32:22 +00:00
TreeHugger Robot
51b64c30c7 Merge "Modify StateTransitions test" into oc-mr1-dev 2017-08-24 12:22:34 +00:00
Jeff Vander Stoep
f378b7ffe2 configstore: Allow syscalls needed by crash_dump
Information such as tombstones and callstack are important when
debugging why a process crashed. configstore's seccomp filter
and selinux policy are currently overly strict and are blocking
the collection of crash data.

In order to keep configstore's sandbox as strict as possible, use
Crash_dump's fallback mechanism to collect crash data. This uses a
local socket to send crash data to tombstoned.

Bug: 64768925
Test: killall -ABRT android.hardware.configstore@1.1-service
    Verify that configstore callstack gets dumped to logcat.
    Verify that a crash tombstone gets recorded to /data/tombstones
Test: proto_fuzzer runs without crashing

Change-Id: I3c3e13d6aa1c1e2dda2a619dfa815375ee7ebff6
(cherry picked from commit 60ced29112)
2017-08-23 21:22:07 -07:00
Eino-Ville Talvala
d09e5651ed Camera: Add new minor revision camera.device@3.3
This adds a single new member to the HalStream structure, used by
camera.device@3.2::ICameraDeviceSession.configureStreams, for
HALs to override the requested stream dataSpace.

This override may be used when the requested format is
IMPLEMENTATION_DEFINED.

Test: Builds
Bug: 62358514
Change-Id: Ie43e6cfd2ac52657c9366ff5297daa22c0bfa46c
2017-08-23 11:31:40 -07:00
Kevin Rocard
6dcc713281 Audio VTS: Look for Audio policy config in all supported folders
audio_policy_configuration.xml can be loaded from the following places:
 - /system/etc/
 - /vendor/etc
 - /odm/etc
Nevertheless the config validation test was expecting it to be in
/vendor/etc exclusively.

This patch changes the test logic to:
 - look for the config files in all 3 folders
 - make sure the config is unique

Test: run the following script to check for regressions and test that
      invalid config make the test fail.
  (
  set -xe
  runVTS() { vts-tradefed run commandAndExit vts \
        --skip-all-system-status-check --primary-abi-only \
        --skip-preconditions --module VtsHalAudioV2_0Target \
        -t CheckConfig.audioPolicyConfigurationValidation; }

  echo "# Test valid config"
  runVTS

  echo "# Test multiple invalid match"
  adb shell touch /system/etc/audio_policy_configuration.xml
  ! runVTS
  adb shell rm /system/etc/audio_policy_configuration.xml

  echo "# Test multiple valid match"
  adb shell cp /{vendor,system}/etc/audio_policy_configuration.xml
  ! runVTS
  adb shell rm /system/etc/audio_policy_configuration.xml

  echo "# Test invalid config"
  adb shell sed -i /defaultOutputDevice/p /vendor/etc/audio_policy_configuration.xml
  ! runVTS
  adb shell sed -i '"/defaultOutputDevice/{p;N;d}"' /vendor/etc/audio_policy_configuration.xml

  echo "# Test that the test did not break the config"
  runVTS
  )

Bug: 64881365
Change-Id: I9db5e6f727d19fd654a3cc543a2aaab196682001
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-08-23 01:24:44 +00:00