Commit graph

6178 commits

Author SHA1 Message Date
TreeHugger Robot
cf0ee37180 Merge "Fix HALs to not have transitive depends." into oc-mr1-dev 2017-08-30 16:10:37 +00:00
TreeHugger Robot
67be3e2f64 Merge "Setting clock flags for GPS clock" into oc-mr1-dev 2017-08-29 23:31:22 +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
Brian Duddie
a2d49d1007 contexthub: Pass target API version in new fields
Update default implementation to use the new fields defined explicitly
for passing in target CHRE API version information, rather than adding
this data into the reserved area.

Bug: 64852297
Test: run CHQTS on Nanohub, rebuild test app targeting 1.2 and confirm
      it's interpreted correctly
Change-Id: Id11f9b510a2d239d285436e119b7b8dbece4c5df
2017-08-23 00:26:23 +00:00
Tri Vo
78e8902160 Drm test static links to HAL def libs.
Bug: 64040096
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check 
--skip-preconditions --module VtsHalDrmV1_0Target
Change-Id: If23f1fda06e9188b84fc94ada0e22ca7e5b45aa9
2017-08-22 16:10:27 +00:00
TreeHugger Robot
1f789fc39c Merge "Camera test statically links to dependencies." into oc-mr1-dev 2017-08-21 18:34:31 +00:00
Ram Mohan M
abd363e852 Merge "bug fix: close file pointer" into oc-dev am: 8735fb45a5
am: 51f04884ba  -s ours

Change-Id: Iaa1a97e0771874b65adf0eab0a48de7eed78be6d
2017-08-19 01:48:16 +00:00
Ram Mohan M
5586d35c12 Merge "bug fix: configure input port buffer size" into oc-dev am: bc769a7e5a
am: 2eedb46745  -s ours

Change-Id: Ic49186056e830ac1edbe299fc35ced4105f2690c
2017-08-19 01:47:54 +00:00
Ram Mohan M
51f04884ba Merge "bug fix: close file pointer" into oc-dev
am: 8735fb45a5

Change-Id: I7ca0f4992804da30eaac7ca24b2dbe9004a5ac55
2017-08-19 01:45:20 +00:00
Ram Mohan M
2eedb46745 Merge "bug fix: configure input port buffer size" into oc-dev
am: bc769a7e5a

Change-Id: I3a9b89f4c64d1129ea59a0144937832d93ed81fd
2017-08-19 01:44:50 +00:00
Peng Xu
f75f596289 Sensor VTS testBatchingOperation flakiness fix
Bug: 64732324
Bug: 63529148
Test: testBatchingOperation passes consistently
Change-Id: Id4e8075e249f3658f5683d53d6dc8403ee32bc4a
2017-08-18 18:12:20 -07:00
TreeHugger Robot
8735fb45a5 Merge "bug fix: close file pointer" into oc-dev 2017-08-19 00:30:10 +00:00
TreeHugger Robot
bc769a7e5a Merge "bug fix: configure input port buffer size" into oc-dev 2017-08-19 00:30:05 +00:00
Nick Desaulniers
e637aa32b8 biometrics: fingerprint: add locking to default impl
There exists the following race condition:
a). thread A receives setNotify and sets the callback to some object
b). thread B of the wrapped implementation calls
BiometricsFingerprint::notify which it was given a handle to. Thread B
executes past the nullptr check:
c). thread A receives setNotify and sets the callback to some other
object (or nullptr)
d). thread B resumes in notify with unknown state

Add mutex to protect access to mClientCallback.

Change-Id: I9163204ff5802e9246056caeb2a7857e6138531c
Fixes: 64802340
Test: VtsHalBiometricsFingerprintV2_1IfaceFuzzer
2017-08-18 17:14:53 +00:00
TreeHugger Robot
b96a339f5a Merge "Increase thread pool for VHAL 2.1" into oc-mr1-dev 2017-08-18 16:54:14 +00:00
Pavel Maltsev
d4ffeb71bc Increase thread pool for VHAL 2.1
Fixes: 36510399

Test: runtest -x
packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/E2ePerformanceTest.java

Change-Id: Id5638f63c6ff23bb78675fa07a2f3922bb7e3d73
2017-08-18 16:54:01 +00:00