Commit Graph

11100 Commits

Author SHA1 Message Date
Yifan Hong
ab6de249ec removed unused line.
Test: builds
Change-Id: I6df9338de150e35147c191a551b1e5eb538db32e
2018-10-16 12:00:25 -07:00
Yifan Hong
9cfddb6282 Merge "compatibility matrices: move to soong" 2018-10-16 17:20:50 +00:00
Treehugger Robot
4dce57e459 Merge "Avoid segfaults if disconnect USB camera while preview." 2018-10-16 17:05:08 +00:00
Treehugger Robot
bcb0c1b49a Merge "Restored 'maxConnsTime' and 'maxConns' in data profile" 2018-10-16 00:54:19 +00:00
Yifan Hong
0cd10dd03e compatibility matrices: move to soong
* Kernel config requirements are built as
separate rules in kernel/configs. All kernel requirements
(including minlts and configs) are represented there.

* device framework compatibility matrix and final
framework compatibility matrix need special environment
variables, so they are not generic enough to be written
in the soong rule.

See compatibility_matrices/Android.bp for sample usages.

Test: builds and compare output before change
Change-Id: I53bf88362314f96487ca243c9292570b7931f24b
2018-10-15 15:42:11 -07:00
Chih-Hung Hsieh
40b77ef6b5 Fix implicit fallthrough warnings.
Test: make checkbuild
Bug: 112564944
Change-Id: Iaaa0e2c325e860572d058ae27a7ad7dc00134564
2018-10-15 10:30:38 -07:00
Jack Yu
4b5371de99 Restored 'maxConnsTime' and 'maxConns' in data profile
These two fields are still needed for some carriers. Should
not be removed in 1.3. Reverted back to what we have in 1.0.

Test: Telephony sanity tests
Bug: 73659459
Change-Id: I33e7b9b0cb26b56fc3c0e011557657136cb38a6c
2018-10-15 09:55:12 -07:00
chenhg
06ced051d9 Avoid segfaults if disconnect USB camera while preview.
BUG: 117575807
Test: manual test by disconnect USB camera while preview.

Change-Id: Ia74b03e7f2a672efd9e9dfd651b5894529daeeee
2018-10-12 14:17:04 -07:00
Treehugger Robot
f06fb17cd7 Merge "Audio: Do not sanitize android.hardware.audio@2.0-service" 2018-10-12 00:56:46 +00:00
Treehugger Robot
ef84854472 Merge "audio: Add a missing break to EffectsFactory::getAllDescriptors" 2018-10-11 22:18:22 +00:00
Steven Moreland
17c437eac1 Merge "Add monostate to optional safe unions." 2018-10-11 21:23:27 +00:00
Mikhail Naganov
15eb7a6fa9 audio: Add a missing break to EffectsFactory::getAllDescriptors
Would the legacy HAL return -ENOENT while retrieving an effect,
the enumeration has to be aborted, and the effects queried so far
need to be returned. A missing 'break' was causing returning
no effects at all.

Bug: 117567478
Test: make
Change-Id: I7cc05004f88b39272d06d2ed33a0693f8e1e3d04
Merged-In: I7cc05004f88b39272d06d2ed33a0693f8e1e3d04
2018-10-11 12:21:27 -07:00
Steven Moreland
dec5272582 Add monostate to optional safe unions.
Bug: 116156870
Test: hidl_test, hidl_test_java
Change-Id: Ie17a80dee982775e267a39086016071ac2361fb5
2018-10-11 11:02:25 -07:00
Przemyslaw Szczepaniak
76c45692bf Merge "Divide BBOX_TRANSFORM into 2 ops." 2018-10-11 16:17:46 +00:00
Andreas Gampe
34e4fb2a84 Audio: Do not sanitize android.hardware.audio@2.0-service
Until the underlying bug is fixed, do not produce a sanitized
binary.

Bug: 117506164
Bug: 117580200
Test: m && SANITIZE_TARGET=address m
Change-Id: I4e6d1206512513c687f7ae065d2974c55c617b61
2018-10-10 20:26:39 -07:00
Steven Moreland
da1d79bf07 Merge "tests IFoo: WithFmq is more complicated." 2018-10-10 19:03:51 +00:00
Xusong Wang
d4b00fc332 Divide BBOX_TRANSFORM into 2 ops.
Divide BBOX_TRANSFORM op into 2 ops
- AXIS_ALIGNED_BBOX_TRANSFORM
- ROTATED_BBOX_TRANSFORM

Rotated bounding boxes use different tensor format than axis-aligned
bounding boxes, and it would be less confusing if they were represented
by a separate operator code.

Bug: 113562630

Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksV1_xTargetTest with sample driver
Change-Id: Ie08f2e0d0da77f6750766a394969653478d054d5
Merged-In: Ie08f2e0d0da77f6750766a394969653478d054d5
(cherry picked from commit d2bae1c268)
2018-10-10 17:00:48 +00:00
Przemyslaw Szczepaniak
f59720c6b8 Merge changes from topic "nnapi-cherrypick-from-master-and-pi-dev-to-aosp"
* changes:
  Update OWNERS
  Fix indexing bug in NNAPI
  Attach a bug to syncing docs
  Reserve enums for new NNAPI ops.
  Add new op PAD_V2
  Add new ops ARGMAX and ARGMIN
2018-10-10 13:27:42 +00:00
Treehugger Robot
3a5649ddd5 Merge "Clarifying GnssMeasurement and Clock commments" 2018-10-10 05:13:22 +00:00
Steven Moreland
bd5b4dc9b3 tests IFoo: WithFmq is more complicated.
When an interface is in the struct, scatter gather isn't used.

Bug: 117239572
Test: hidl_test
Change-Id: I749dd7cce85d220c1908ad583b1744c799a105cc
2018-10-09 15:50:31 -07:00
Treehugger Robot
b035e3a246 Merge "tests: IBaz, nasty nesting struct" 2018-10-09 20:36:36 +00:00
Steven Moreland
7daf2659ea Merge "IFoo: send struct with fmq." 2018-10-09 19:51:30 +00:00
Steven Moreland
a20d00ba60 tests: IBaz, nasty nesting struct
toString is broken in some cases because of recursive definitions. This
exercises that case.

Bug: 117342189
Test: hidl_test
Test: m android.hardware.tests.baz@1.0 android.hardware.tests.baz-V1.0-java
    (this runs hidl-gen on this for both Java and C++ output)
Test: manually inspected output

Change-Id: Ic09ac133345f2d83d6f83d3d0af1f63e7e3250ee
2018-10-09 10:13:10 -07:00
Treehugger Robot
5956e27299 Merge "VTS: Check return status of initialize and close" 2018-10-09 13:29:02 +00:00
Miao Wang
a57eb5bcd8 Update OWNERS
Test: none
Change-Id: I96db4de3f34837c9f3174fd01e7d06d3355617f3
Merged-In: I96db4de3f34837c9f3174fd01e7d06d3355617f3
(cherry picked from commit 6653e69dc6)
2018-10-09 13:10:11 +00:00
Slava Shklyaev
1079815872 Fix indexing bug in NNAPI
Bug: 114365802
Test: n/a
Change-Id: I87173528b58f66175c99e7c7e2e66daa307b04da
Merged-In: I87173528b58f66175c99e7c7e2e66daa307b04da
(cherry picked from commit 4a211d8364)
2018-10-09 13:10:02 +00:00
Slava Shklyaev
26204621d9 Attach a bug to syncing docs
Bug: 116445845
Test: none
Change-Id: I841b1dc503d70efddb8175b75d9d3efe8078eeb1
Merged-In: I841b1dc503d70efddb8175b75d9d3efe8078eeb1
(cherry picked from commit 7f9f461591)
2018-10-09 13:09:50 +00:00
Przemyslaw Szczepaniak
e9814a9890 Reserve enums for new NNAPI ops.
Test: NeuralNetworksTest_static
Bug: 114365802

Change-Id: I3b379fe3f0336b92ef602bbb12a4bd4a150c573c
Merged-In: I3b379fe3f0336b92ef602bbb12a4bd4a150c573c
(cherry picked from commit 5a9362eb2d)
2018-10-09 13:09:41 +00:00
Slava Shklyaev
48ac2fbc8a Add new op PAD_V2
Bug: 113561890
Test: NeuralNetworksTest_static
Change-Id: I34351d6ff5fae0a13e3e883ca42210c534418ff3
Merged-In: I34351d6ff5fae0a13e3e883ca42210c534418ff3
(cherry picked from commit ffe467e6d8)
2018-10-09 13:09:34 +00:00
Slava Shklyaev
1ba0f52432 Add new ops ARGMAX and ARGMIN
Bug: 113558658
Test: NeuralNetworksTest_static
Change-Id: I8862d4062181689ce69ab65aa07c1b6af07ba567
Merged-In: I8862d4062181689ce69ab65aa07c1b6af07ba567
(cherry picked from commit cc31bd6622)
2018-10-09 13:07:55 +00:00
Jack He
4b50fcda51 VTS: Check return status of initialize and close
Test: atest VtsHalBluetoothV1_0TargetTest
Change-Id: I579c4d5f4c6e24b358c67c3dc8a8a8ceb1f936e2
2018-10-08 17:06:06 -07:00
Steven Moreland
2b01956dac IFoo: send struct with fmq.
Bug: 117239572
Test: hidl_test
Change-Id: I968916a9d62e1c8f7a237bd24e6b4267dd013366
2018-10-08 20:11:34 +00:00
Steven Moreland
999693e4e8 Merge "IFoo: remove pointer from u." 2018-10-08 15:54:11 +00:00
Treehugger Robot
b99e695e91 Merge "Add a command to get the minimum battery voltage required for flashing" 2018-10-07 17:53:45 +00:00
Hridya Valsaraju
4839e9f8d8 Add a command to get the minimum battery voltage required for flashing
Bug: 79480454
Test: fastboot getvar battery-soc-ok

Change-Id: I6141993972a3084fe3620d81f707999e1264b997
Merged-In: I6141993972a3084fe3620d81f707999e1264b997
(cherry picked from commit 83f5631deb)
2018-10-05 16:15:31 -07:00
Jack Yu
e7de00c5f5 Added 1.3 DataProfileInfo
1. Deprecated the fields 'mvnoType', 'mvnoMatchData', 'maxConnsTime',
   and 'maxConns'.
2. Added a new flag 'preferred' indicating if this data profile
   is preferred for default data connection setup.
3. Move modemCognative flag from setupDataCall and setInitialAttachApn
   into the struct DataProfileInfo and rename it to 'persistent'.
4. Removed isRoaming flag in setupDataCall, setInitialAttachApn, and
   setDataProfile.

Test: Telephony sanity tests
Bug: 73659459
Change-Id: Ia28715e85755b47a1ee870b5c90e5505a7fd8c4a
2018-10-05 14:49:08 -07:00
Steven Moreland
dad22198be IFoo: remove pointer from u.
pointer needs a fixup (to abort) since they can't be used in remote
transactions, so removing it from the union here.

Bug: 117322722
Test: hidl_test
Change-Id: Ie582f6b79a8176ca1585bf4b1f43ae9d5d97fa92
2018-10-05 11:16:20 -07:00
WyattRiley
76ba504677 Clarifying GnssMeasurement and Clock commments
Change-Id: Ia51b16a2904ab43f67464fc91321fad99a2bb614
Fixes: 77812939
Test: Comments only, verified builds
2018-10-04 09:12:15 -07:00
Kevin Rocard
5596e985d4 Audio VTS: Do not constrain implementation frameCount
am: 069bc45044

Change-Id: I3ec1df7f581e5b11e0d394139c1421109c16fc19
2018-10-03 16:15:32 -07:00
Treehugger Robot
9ba23d0c78 Merge "Reland "Set vendor: true for boot control HAL"" 2018-10-03 21:47:14 +00:00
Hridya Valsaraju
cac42c19eb Reland "Set vendor: true for boot control HAL"
This reverts commit f8169cc2bc.

Bug: 117072247
Change-Id: Ib80966e31ed92d316217844d0399e6f6ba5fdd2c
2018-10-03 17:51:58 +00:00
Shuo Qian
f461463b39 Merge "Emergency Function HAL (continued)" 2018-10-03 01:36:17 +00:00
Yifan Hong
f8a8873ee6 Merge "health VTS: split Properties test" 2018-10-02 23:37:43 +00:00
Kevin Rocard
069bc45044 Audio VTS: Do not constrain implementation frameCount
The test was assuming Stream::getFrameCount() would return the
AudioConfig::frameCount used to create the stream, similarly
to the sampleRate or the channelMask.

Nevertheless this is not the case as the AudioConfig::frameCount
field is not to used by Stream::openOutputStream (nor Input) as
the buffer size is chosen by the HAL, not the framework.

Thus the test can not assume the frameCount chosen by the HAL and
must not test for a particular value.

Test: atest VtsHalAudioV4_0TargetTest
Bug: 116169974
Change-Id: Ibbf0825f540957e01e7c512d851cb9628991f4c4
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-10-02 22:07:39 +00:00
Yifan Hong
26c1200e54 health VTS: split Properties test
... into multiple test cases.
Test: run test

Change-Id: I2a03a7ab01d2918b746e06f55c2ee6d733ab4021
2018-10-02 14:54:28 -07:00
Yifan Hong
e9fc235eb4 health: registerCallback() and getHealthInfo() does not notify all callbacks
registerCallback() and getHealthInfo() unintentionally broadcast
health info to all callbacks, which has a performance impact.

* registerCallback() still invokes the new callback immediately
* getHealthInfo() does not call any callbacks at all.

Test: VTS test call getHealthInfo does not invoke update()
Bug: 117167903
Change-Id: Ida99fdd73831e747fbf2d65089c7c0e7661fe7c4
2018-10-02 14:30:03 -07:00
Yifan Hong
a46c0dae81 health: use recursive_mutex.
Need to use an reentrant lock.

Bug: 117167903
Test: vts
Change-Id: I25a366e06ed9d983823f7276668b7f45ddcf1c2b
2018-10-02 14:30:03 -07:00
Ng Zhi An
2f5884c94c Skip hal v1 check after p on low ram devices
am: a0eb7e415c

Change-Id: I7e60e9faf24be23bf08ef65c5f0c074d4e7da2a4
2018-10-02 14:02:09 -07:00
Hridya Valsaraju
04ba91ef05 Merge "Revert "Set vendor: true for boot control HAL"" 2018-10-02 20:43:12 +00:00
Hridya Valsaraju
f8169cc2bc Revert "Set vendor: true for boot control HAL"
This reverts commit f009da1bf5.

Reason for revert: Breaking presubmit boot test on walleye

Change-Id: Ibeebb94b22cf81087b2ee60407a33e9d7e8a4d18
2018-10-02 20:09:17 +00:00