Commit graph

6418 commits

Author SHA1 Message Date
Michael Butler
7f750943fe Merge "Neuralnetworks HAL cleanup -- hardware/interfaces" into oc-mr1-dev 2017-09-13 07:29:43 +00:00
Michael Butler
61ae6edbe6 Neuralnetworks HAL cleanup -- hardware/interfaces
Does three primary cleanups:
1) Removes unused OperandTypes, creates OEM types
2) Creates explicit ErrorStatus; functions return status
3) IDevice::initialize renamed to getCapabilities,
   IDevice::getSupportedSubgraph renamed to getSupportedOperations

Additionally fixes the corresponding VTS tests.

Bug: 63905942
Test: mm, vts
Change-Id: Ib4c61b9b13963ac2367f21dc3c20e5946eb955a9
2017-09-12 22:32:25 -07:00
Yin-Chia Yeh
6550022dba Camera: synchronize access to mMemoryMap
Test: stress test on partner device
Bug: 64831570
Change-Id: Ib9ece2f876ccb309c4f1bb8f90242a3e91081f47
2017-09-12 16:35:29 -07:00
Nathan Harold
2de5e5d01a Merge "Fix docstrings for RIL_CellIdentity" into oc-mr1-dev 2017-09-12 22:51:10 +00:00
Tomasz Wasilczyk
ab70ddf2eb Adjust AM/FM region ranges.
Bug: 64541927
Test: instrumentation
Change-Id: I34ea5b0b426f0c0c73d1cbc2d64cb67e2d4b7bd6
2017-09-12 11:57:09 -07:00
Michael Butler
7621f6f5ed Merge "Make prepareModel asynchronous." into oc-mr1-dev 2017-09-12 18:41:00 +00:00
Nathan Harold
8d2d747e9e Fix docstrings for RIL_CellIdentity
Update the documentation to match the current
CTS requirements for Cell Identity reporting
-For LTE, WCDMA, and GSM require that the channel
 number be reported.
-For LTE and WCDMA, require that the correct
 physical channel identifier be reported. Note that
 due to b/32774471 we still cannot require BSIC
 to be reported.

Bug: 65174915
Test: none, comment-only change
Change-Id: I93fcce3b39401e8965f724722361c2cadc4a88cc
2017-09-12 10:17:53 -07:00
TreeHugger Robot
3822ffb138 Merge "Remove default implementation for PowerHal 1.1" into oc-mr1-dev 2017-09-12 16:51:33 +00:00
Shawn Willden
cb6c717104 Merge "Don't send more than 2K to addRngEntropy" into oc-dev am: 7eeb6b5079
am: 35e1be70b4

Change-Id: I626faecd254e3e543308143cfe69d1393e1f9267
2017-09-12 16:34:52 +00:00
Shawn Willden
35e1be70b4 Merge "Don't send more than 2K to addRngEntropy" into oc-dev
am: 7eeb6b5079

Change-Id: Id0ee0e3f22ee4f2d2b730054043d28c01ac19c6f
2017-09-12 16:31:32 +00:00
TreeHugger Robot
7eeb6b5079 Merge "Don't send more than 2K to addRngEntropy" into oc-dev 2017-09-12 16:28:44 +00:00
Ahmed ElArabawy
4497a5fe33 Remove default implementation for PowerHal 1.1
Default implementation in powerHAL 1.1 is not used by any device
Devices using powerHal 1.1 have their own implementation in their
device/<vendor>/<devicename> while older devices don't use 1.1 at all.
This CL removes the default implementation for the PowerHAL 1.1

Bug: 65453628
Test: Build successfully (code not used anyway)
Merged-In: I695348683c6e2e504a523897082543274dc239aa

Change-Id: I695348683c6e2e504a523897082543274dc239aa
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-09-12 16:05:50 +00:00
Shawn Willden
859db2ba9e Merge "Reduce max keymaster message size to 2K" into oc-dev am: 42d61ce03a
am: ac06f7576e

Change-Id: I219c56653ec9051d35a4c7c8f012c9c06e555881
2017-09-12 06:53:16 +00:00
Shawn Willden
ac06f7576e Merge "Reduce max keymaster message size to 2K" into oc-dev
am: 42d61ce03a

Change-Id: Ia2915bb4305268e5048689ef3e4cf6cf9793d483
2017-09-12 06:50:47 +00:00
TreeHugger Robot
42d61ce03a Merge "Reduce max keymaster message size to 2K" into oc-dev 2017-09-12 06:46:22 +00:00
Michael Butler
e9dc1674f0 Make prepareModel asynchronous.
Updated the corresponding VTS tests.

Bug: 63905942
Test: mm, vts
Change-Id: Ie520af845f491dbdd93ea66fd643d77cfb4703f7
2017-09-11 23:17:21 -07:00
David Gross
2b395216c3 Merge "Fix bug in the way an Event handles a bound thread." into oc-mr1-dev 2017-09-12 04:02:53 +00:00
TreeHugger Robot
a5a5586dd1 Merge "Add portMode configuration test" into oc-mr1-dev 2017-09-12 02:21:17 +00:00
David Gross
0380d7f60a Fix bug in the way an Event handles a bound thread.
This just keeps the (test) Event representation in sync with
the runtime Event representation, which is modified by

  https://googleplex-android-review.git.corp.google.com/#/c/platform/frameworks/ml/+/2880348/

Bug: 63905942
Test: vts
Change-Id: I2a6de4397c5e31e35cb3d02e241dd21452c21ca6
2017-09-11 16:23:17 -07:00
Enrico Granata
ad2baebb3b Do not write initial empty values for the diagnostic properties.
There is a separate step that initializes them with meaningful values.

Change-Id: I2480a029773b62b0e77b8c52c73f2ee465caf17c
Fixes: b/65125128
Test: runtest -x packages/services/Car/tests/android_car_api_test/src/android/car/apitest/CarDiagnosticManagerTest.java
2017-09-11 15:06:40 -07:00
Jean-Luc Brouillet
62cc79bdf0 Refactor how arguments are tracked.
Use an explicit description of the lifetime of an operand
rather than relying on poolIndex to do the job.

Bug: 63905942
Test: Ran unit tests

Change-Id: I53c4c10b40fd3312232b0689b43d0f72a2818490
2017-09-10 14:39:19 -07:00
TreeHugger Robot
9e5c908810 Merge "Add FusedActivationFunc enum and renamed certain operations." into oc-mr1-dev 2017-09-09 21:58:32 +00:00
Miao Wang
199aa86411 Add FusedActivationFunc enum and renamed certain operations.
- Add "_2D" to CONV, DEPTHWISE_CONV, AVG_POOL, MAX_POOL, and L2_POOL,
    since they are only supposed to do 2D computation.
  - Remove CAST, GATHER, SPLIT.
  - Also update the tests to reflect the changes.

Bug: 63905942
Test: mm
Test: NeuralNetworksTests pass for both CPU path and sample hidl driver.
Change-Id: I5bcf219c4c6cd4f866c1023d1f35cdc83ca69a85
2017-09-08 23:00:23 -07:00
Chia-I Wu
710b7085f9 Merge "graphics: discard stale data from message queue" into oc-mr1-dev 2017-09-08 22:31:31 +00:00
Kevin Rocard
81c04d9510 Audio VTS: remove expectation of policy configuration unicity am: 76efe01bbd
am: 6b51d9a855

Change-Id: I59bb70fbc000f424beeb938a08c1fcb24dc08037
2017-09-08 22:14:14 +00:00
Kevin Rocard
6b51d9a855 Audio VTS: remove expectation of policy configuration unicity
am: 76efe01bbd

Change-Id: I23948718eaed0a687cc7dbd6b4940fc8514fbe1b
2017-09-08 22:12:14 +00:00
Chia-I Wu
48ffe289b0 graphics: discard stale data from message queue
Our use of message queues is synchronous.  If there are already data
in the queue when writeQueue is called, we know they are stale and
can be discarded.

Bug: 65449888
Test: manual
Change-Id: Ie29b8a7386c9733c183a6c3569e3572efa62cbc2
2017-09-08 11:51:57 -07:00
Kevin Rocard
76efe01bbd Audio VTS: remove expectation of policy configuration unicity
The XML audio policy configuration is expected to be located in /vendor.
Additionally for AOSP builds (no vendor) and as a fallback in case of
missing vendor configuration, the system supports loading the XML from
/system.
This fallback config is not guaranty to be compatible with the phone HAL,
but probably does for a wide range of android phones
(at least for basic use cases).

In each of those cases, there is only one configuration file, either in
/vendor or /system.
As a result, the audio policy configuration VTS test was asserting that
only one audio_policy_configuration.xml could be found.
If multiple were found, one was useless and the platform integrator
should remove it.

But VTS are now run on phone with a /system partition from an AOSP
build and a /vendor partition from a device build.
In such scenario two audio policy config are now present on the device,
thus breaking the VTS expectation.

This is not a problem for the framework because it does not look for a /system
config if one was found in /vendor.

In the future, the /system XML might be removed as boards
specific config should be found in /vendor only as per treble
requirements.

Test: Compile
Bug: 65482614
Change-Id: I7cd7eb7284c0aa52782aa591411f8a9bf2a87a76
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-09-08 11:29:32 -07:00
Sanket Padawe
6fb8b93bb4 Merge "Fix VTS test which turns off radio." into oc-mr1-dev 2017-09-08 18:14:16 +00:00
Ram Mohan M
a24f85f9b9 Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev am: f8677dcfdb
am: 37b490df35

Change-Id: I028c248ebef366eb439b369adad87047086aa07b
2017-09-07 23:45:42 +00:00
Ram Mohan M
37b490df35 Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev
am: f8677dcfdb

Change-Id: If65c243e72e890660fc4481b375b23ba109ae577
2017-09-07 23:40:43 +00:00
TreeHugger Robot
f8677dcfdb Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev 2017-09-07 23:30:17 +00:00
TreeHugger Robot
e1b1788b4d Merge "Bluetooth: Remove credit check from Loopback tests" into oc-mr1-dev 2017-09-07 17:39:27 +00:00
Chia-I Wu
884cb32225 Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev am: ef3389add5 -s ours
am: b2f558e267

Change-Id: Ie634e5172b1e4ebeb98f11a43f8462db67230de0
2017-09-07 17:38:17 +00:00
Chia-I Wu
b2f558e267 Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev
am: ef3389add5  -s ours

Change-Id: I9cee260396d3f24e86443afe36780894397638e1
2017-09-07 17:36:15 +00:00
Chia-I Wu
ef3389add5 Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev 2017-09-07 17:18:25 +00:00
Myles Watson
c7c333931c Bluetooth: Remove credit check from Loopback tests
The Bluetooth specification doesn't require data credits
to come back within a specific timeframe, so the VTS test
can not require it.

Bug: 65269854
Test: VtsHalBlueoothV1_0TargetTest with simulated chip (no credits)
Change-Id: If2fc052d3b5236f6a3097f3d5403882226561404
(cherry picked from commit 0e06a63c76)
2017-09-07 13:41:58 +00:00
TreeHugger Robot
b0977150b0 Merge "HAL interface libs for testing are now built as test lib" into oc-mr1-dev 2017-09-07 12:16:20 +00:00
Kevin Rocard
97cba2d295 Allow partially dynamic profile in the audio policy config am: 3092b31b14
am: 0aaff8bead  -s ours

Change-Id: I04b522582d2861af37ae68729254105e701fd666
2017-09-06 23:44:17 +00:00
Kevin Rocard
0aaff8bead Allow partially dynamic profile in the audio policy config
am: 3092b31b14

Change-Id: Ibafc8f571bdc32353bd974a7fce6e3fd84238711
2017-09-06 23:35:24 +00:00
TreeHugger Robot
ecc01b9c36 Merge "Additonal usage note updates for Audio properties" into oc-mr1-dev 2017-09-06 21:32:30 +00:00
Kevin Rocard
3092b31b14 Allow partially dynamic profile in the audio policy config
The audio policy configuration deserializer supports fully dynamic
profiles by not setting a profile in a port.
It also supports partially dynamic profile by
not setting @format, @samplingRates or @channelMasks

Nevertheless this last feature of partial dynamic profile
was mistakenly not allowed by the configuration xsd.

Bug: 63541622
Change-Id: I78f77a77a3c62bba28a7da5a0e3c8c608b5a01d9
Merged-In: I78f77a77a3c62bba28a7da5a0e3c8c608b5a01d9
Signed-off-by: Kevin Rocard <krocard@google.com>
(cherry picked from commit 43d25f2f26)
2017-09-06 21:16:51 +00:00
Sanket Padawe
9a721b8087 Fix VTS test which turns off radio.
Since the purpose of most of the test cases in current VTS is to check
if proper errors are returned and there is no crash seen in vendor code,
updating setRadioPower test case to turn on the radio instead of
turning off. We want to avoid test cases which turn off
radio or leads to modem shut down as those test cases affect other tests.

Test: VTS
Change-Id: I4fb9f18884f7ef21162015a0032c4431444f7025
Bug: 65230472
2017-09-06 06:46:49 +00:00
TreeHugger Robot
05143cf85e Merge "Remove media.cas requirement." into oc-mr1-dev 2017-09-06 04:24:35 +00:00
TreeHugger Robot
a9082750f4 Merge "Allow partially dynamic profile in the audio policy config" into oc-mr1-dev 2017-09-06 01:27:51 +00:00
Scott Randolph
66339cfc3a Additonal usage note updates for Audio properties
Mostly comment updates for clarification.
Updates the names of a few constants (but not their value nor usage).

Test: build for Mojave
Change-Id: Ic9021f82fa4bd960189e005f074f2b407be13ae7
bug: 65384336
2017-09-05 16:49:00 -07:00
Steven Moreland
cd8d92d06e Remove media.cas requirement.
This is a requirement on android phones and tv but
not on watches. Owner will handle putting that requirement
in place, but removing requirement from this file
specifically only in order to have O-MR1 interfaces
frozen.

Bug: 63603463
Test: m system_compatibility_matrix.xml compatibility_matrix.xml manifest.xml system_manifest.xml -j
Change-Id: Iefdc231c2928dfdb8e04a5de8a08ab9b23bae73d
2017-09-05 22:59:21 +00:00
Roshan Pius
12d6df4a2a Merge "wifi(implementation): Remove unnecessary local variable" into oc-mr1-dev 2017-09-05 22:35:58 +00:00
TreeHugger Robot
ac2cd9e8ea Merge "wifi(implementation): Make WifiLegacyHal.stop() blocking" into oc-mr1-dev 2017-09-05 22:33:07 +00:00
Scott Randolph
b58c3ccdde Merge "Add RINGTONE to Vehicle HAL AUDIO_FOCUS" into oc-mr1-dev 2017-09-05 21:51:35 +00:00