Commit graph

6130 commits

Author SHA1 Message Date
Dan Willemsen
6e975b1840 Merge "Convert to Android.bp; rename libminijail_vendor"
am: cb47aaf493

Change-Id: I9a17fbb1693111074eb93519f5468020627776ba
2017-10-03 22:12:53 +00:00
Treehugger Robot
31fba8cd40 Merge "Update inheritance test implementation." 2017-10-03 21:49:34 +00:00
Treehugger Robot
cb47aaf493 Merge "Convert to Android.bp; rename libminijail_vendor" 2017-10-03 21:40:55 +00:00
Janis Danisevskis
1ff3510d29 Add OWNERS files to keymaster resources
am: e6014f69ea

Change-Id: I71c2388fd278869daa652ae10fb8b7848b6e5443
2017-10-03 21:22:58 +00:00
Janis Danisevskis
e6014f69ea Add OWNERS files to keymaster resources
This patch adds swillden@ and jdanis@ as owners of keymaster/3.0/vts
and keymaster/3.0/default.

Test: No code changed
Change-Id: I04bc0f741e8fafd53aee7c9dd62954548b81263d
2017-10-03 13:37:19 -07:00
Steven Moreland
9d320e3fbe Update inheritance test implementation.
HIDL_FETCH_IParent returns a child object
when the "child" instance name is requested.

Bug: 67104214
Test: hidl's run_all_device_tests.sh
Change-Id: Ie4b85d657e5d066fb77832e188062af29bc2e7c6
2017-10-03 12:52:51 -07:00
Steven Moreland
f07e364ce3 Merge "Fix typo in update makefiles."
am: 9960148420

Change-Id: I949634e72f817f3a5411130e968acd8efd1d7725
2017-09-26 23:51:07 +00:00
Treehugger Robot
9960148420 Merge "Fix typo in update makefiles." 2017-09-26 23:48:27 +00:00
Steven Moreland
4d2b22c781 Merge "Update base files script works anywhere."
am: 7d54744e87

Change-Id: I80dde3f30fad77e3e465c92fbe24143363df0ef4
2017-09-26 22:22:18 +00:00
Treehugger Robot
7d54744e87 Merge "Update base files script works anywhere." 2017-09-26 22:10:12 +00:00
Steven Moreland
a5299ee739 Fix typo in update makefiles.
Bug: 37518178
Test: pass
Change-Id: Ic401b3a473f15ca4c01e58b3072e19db7c31b653
2017-09-26 21:59:43 +00:00
Jeff Vander Stoep
b56c45e0f3 Add libhwminijail for sandboxing with seccomp filters
am: 42b9254f23

Change-Id: I827daafadbd632a78b1f0adc7f86599c9d58d512
2017-09-26 16:32:53 +00:00
Steven Moreland
34af50a7a5 Update base files script works anywhere.
Test: update-base-files.sh
Change-Id: I8a7e935cc685c8d389a46b28e33ea20c61bcc1ac
2017-09-25 18:43:27 -07:00
Dan Willemsen
4ca9f1cebc Convert to Android.bp; rename libminijail_vendor
libminijail_vendor is now just libminijail, now that it's been converted
to Soong.

See build/soong/README.md for more information about Soong.

Test: mmma hardware/interfaces/minijail
Change-Id: Iefa49fbbd96c1ae18c5da4367e2c9135d8c25a5c
2017-09-25 17:10:13 -07:00
Jeff Vander Stoep
42b9254f23 Add libhwminijail for sandboxing with seccomp filters
This is a partial cherry-pick of the internal change, including just
libhwminijail. The user does not exist in AOSP yet.

Bug: 36453956
Test: mmma hardware/interface/minijail
Merged-In: Iab014ff357b7329085a5e18a92f51838d2c72371
Change-Id: I46b030efba25aac3c09cef9bfb782ecdc7187e70
2017-09-25 17:04:11 -07:00
Steven Moreland
73949c1d7e Update makefiles for hidl adapter.
am: 26a0bb2762

Change-Id: I3a811f5cd49bd4e81e8fcd5c8e88922115812539
2017-09-25 23:14:44 +00:00
Peng Xu
11aefd9e74 Skip direct report test if sensor is not available
am: 7728f0ce5c  -s ours

Change-Id: Iae6e06802af14ed98e09e1f745996d992132682a
2017-09-25 23:04:16 +00:00
Peng Xu
b657a3d98d Relax accelerometer events norm check
am: 5b036a21a4  -s ours

Change-Id: I8b39e202da0196a19b9130e2fb761ea133723c74
2017-09-25 23:04:02 +00:00
Peng Xu
0ec52ab4b0 Only convert valid SharedMemInfo
am: ce6e742eb6  -s ours

Change-Id: I347c3c9996ef93488b9217ca8cb0a8d5efc28244
2017-09-25 23:03:49 +00:00
Peng Xu
9c0f6da04d Augment HotSwitchOperation to test slow to fast case
am: 44256a7fbd

Change-Id: Ieef5a22c97b06735f73a3d4534ad1418491c3cbd
2017-09-25 23:03:35 +00:00
Peng Xu
a17021b069 Sensor VTS testBatchingOperation flakiness fix
am: 2aef4b48f0

Change-Id: I90a13d698c69768d8e52e3f48e18b5e29f3f080e
2017-09-25 23:01:27 +00:00
Steven Moreland
26a0bb2762 Update makefiles for hidl adapter.
Bug: 37518178
Test: manual
Change-Id: I50e999907d3c64d2b039272b823971998da64d1b
2017-09-25 18:35:56 +00: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
Yifan Hong
eed76d6fc9 Merge "hidl_test: update expression test"
am: 9dc1284388

Change-Id: I042ea91d758d170c1508d0856887d1c5bc56a08b
2017-09-18 20:09:27 +00:00
Yifan Hong
9dc1284388 Merge "hidl_test: update expression test" 2017-09-18 19:52:10 +00:00
Peng Xu
b3698f066c Merge "Add capability for sensor hal to use wakelock"
am: 2adf343f57

Change-Id: I67c4c90fcba7d2f6a4ee5ea293aabc19b696e484
2017-09-18 18:18:10 +00:00
Peng Xu
2adf343f57 Merge "Add capability for sensor hal to use wakelock" 2017-09-18 18:11:58 +00:00
Jiyong Park
f78db71dae Merge changes from topic "hidl_for_test_aosp"
am: a7603c38ac

Change-Id: I92acd703df3ed100255e63c9ec511eec3c0a97a3
2017-09-16 01:09:06 +00:00
Jiyong Park
0a6419040f HAL interface libs for testing are built w/o VNDK.
am: b5e9a6bdc3

Change-Id: Ia41d7362652a8aed5054d99dbaba79f2760a8b23
2017-09-16 01:08:58 +00:00
Treehugger Robot
a7603c38ac Merge changes from topic "hidl_for_test_aosp"
* changes:
  Mark android.hardware.tests.trie as a test HAL interface
  HAL interface libs for testing are built w/o VNDK.
2017-09-16 01:02:31 +00:00
Yifan Hong
07dd1bbcc6 hidl_test: update expression test
Add more tests to constant expressions in HIDL.
Test: m hidl_test -j
Bug: 64613737

Change-Id: I9cd2bf7bbd8b911f49784f376a0cd834561cd0c8
2017-09-15 17:46:45 -07:00
Steven Moreland
3c8833d79f Merge "Add test for fq reference to local type."
am: d8d0ba281f

Change-Id: I154aba182e6939463123b5745b98ce93c410c96e
2017-09-16 00:19:31 +00:00
Treehugger Robot
d8d0ba281f Merge "Add test for fq reference to local type." 2017-09-16 00:15:56 +00:00
Peng Xu
9717286cde Merge "Add OWNERS file for sensors"
am: 9887905762

Change-Id: I487595f1b9eade05bc8bbcb2591db2f1d2d4c0a6
2017-09-15 18:08:13 +00:00
Peng Xu
9887905762 Merge "Add OWNERS file for sensors" 2017-09-15 18:04:34 +00:00
Ashutosh Joshi
45f8871796 Add OWNERS file for sensors
Add owners file for default sensors HAL implementation and the
functional VTS tests.

Test: Build compiles
Change-Id: I54f28cb131f344d779ca34cdce027881bab5f59d
Merged-In: I54f28cb131f344d779ca34cdce027881bab5f59d
2017-09-15 18:04:12 +00:00
Jiyong Park
d005c3ea41 Mark android.hardware.tests.trie as a test HAL interface
Bug: 64776708
Test: no android.hardware.tests.*.so file in
/system/lib[64]/vndk on 2017 pixel devices

Change-Id: I896798a77be2ee0295fbdc39ae0834492d29e3b9
2017-09-15 14:23:09 +09:00
Jiyong Park
b5e9a6bdc3 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

Merged-In: I6167da8572081adfb53f432b248ac3bbee39dc42
Change-Id: I6167da8572081adfb53f432b248ac3bbee39dc42
(cherry picked from commit 526a36ca24)
2017-09-15 13:33:41 +09:00
nharold
9866c81a20 Merge "Fix docstrings for RIL_CellIdentity"
am: e4d5502c72  -s ours

Change-Id: Ica2db1dacd3c5a0dc9c5f7f5aff98bd79baff08a
2017-09-15 00:57:57 +00:00
nharold
e4d5502c72 Merge "Fix docstrings for RIL_CellIdentity" 2017-09-14 23:47:46 +00:00
Peng Xu
f923c8230a 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
Merged-In: I2a5c2e29ecb66869a408f53998b6074ed07b493a
2017-09-14 23:15:34 +00:00
Yin-Chia Yeh
623ddbb528 Merge "Camera: synchronize access to mMemoryMap"
am: 2b888b349f

Change-Id: If68840c461ce96a8ff3749ae3d6628e9f548505d
2017-09-14 22:02:48 +00:00
Treehugger Robot
2b888b349f Merge "Camera: synchronize access to mMemoryMap" 2017-09-14 21:52:26 +00:00
Yin-Chia Yeh
308f5b6e15 Camera: synchronize access to mMemoryMap
Test: stress test on partner device
Bug: 64831570
Change-Id: Ib9ece2f876ccb309c4f1bb8f90242a3e91081f47
Merged-In: Ib9ece2f876ccb309c4f1bb8f90242a3e91081f47
2017-09-14 12:18:05 -07:00
Steven Moreland
0cf302463a Add test for fq reference to local type.
Test: m hidl_test (checks are done statically)
Bug: 65597200
Change-Id: I6e73414dab00c3bf5a4684c5f839333e582e7cd7
2017-09-14 12:00:59 -07:00
Nathan Harold
fc802418bf Merge "Fix docstrings for RIL_CellIdentity" into stage-aosp-master 2017-09-14 17:34:56 +00:00