OSDN Git Service

android-x86/hardware-interfaces.git
7 years agoMerge "Skip tests when the drm scheme is not installed" into oc-dev
Jeff Tinker [Fri, 14 Apr 2017 23:41:48 +0000 (23:41 +0000)]
Merge "Skip tests when the drm scheme is not installed" into oc-dev

7 years agoMerge "setActiveGroup null, 0 length, unwritable dir should fail" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 23:10:32 +0000 (23:10 +0000)]
Merge "setActiveGroup null, 0 length, unwritable dir should fail" into oc-dev

7 years agoMerge "Add testcases for restoreKeys API." into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 21:38:30 +0000 (21:38 +0000)]
Merge "Add testcases for restoreKeys API." into oc-dev

7 years agosetActiveGroup null, 0 length, unwritable dir should fail
Kevin Chyn [Fri, 7 Apr 2017 21:39:50 +0000 (14:39 -0700)]
setActiveGroup null, 0 length, unwritable dir should fail

with this change, VTS test needs to run in /data/system/
due to SELinux policy + Linux directory permissions

Test: run VTS tests and make sure they all pass
Fixes 37153318

Change-Id: Ib1f19ce7fc0d08ae2941aec5c08c5857c7a9f2fd

7 years agoSkip tests when the drm scheme is not installed
Jeff Tinker [Fri, 14 Apr 2017 01:27:25 +0000 (18:27 -0700)]
Skip tests when the drm scheme is not installed

Not all drm hal implmentations will be present on every device,
but the vendor modules will be. This change allows tests to be skipped
when a drm hal implementation isn't present.

Test: drm vts tests pass with widevine on a gms
device (tests executed) and tests pass on an aosp
device (tests skipped).

Change-Id: I0b87f501a45103960193279eb5b4b2cd1c113acd

7 years agoMerge "soundtrigger: Use "default" instance name for HAL service" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 18:24:14 +0000 (18:24 +0000)]
Merge "soundtrigger: Use "default" instance name for HAL service" into oc-dev

7 years agoMerge "Route DRM HAL libbinder traffic to /dev/vndbinder" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 18:20:01 +0000 (18:20 +0000)]
Merge "Route DRM HAL libbinder traffic to /dev/vndbinder" into oc-dev

7 years agoRoute GNSS HAL libbinder traffic to /dev/vndbinder
Iliyan Malchev [Fri, 14 Apr 2017 07:17:50 +0000 (00:17 -0700)]
Route GNSS HAL libbinder traffic to /dev/vndbinder

Bug: 36565056
Test: no more gnss crash at boot

Change-Id: Ib3935beeb521dc655c5d7e1b6d7680a190b3fd4e
Signed-off-by: Iliyan Malchev <malchev@google.com>
7 years agosoundtrigger: Use "default" instance name for HAL service
Mikhail Naganov [Thu, 13 Apr 2017 18:00:11 +0000 (11:00 -0700)]
soundtrigger: Use "default" instance name for HAL service

"default" implies using "primary" legacy device module.
This doesn't change anything for binderized mode, because
the server was only registering itself as "sound_trigger.primary",
so it was the only possibility anyways.

Usage of "stub" (debugging) module is still possible
if audioflinger and corresponding services are built with
USE_LEGACY_LOCAL_AUDIO_HAL=true (added makefile check to ensure
that).

Test: "Ok Google" from screen off state on sailfish
Bug: 36570720
Change-Id: I88f1ebd4c1efd0f91e37458746c336a4beef33ae

7 years agoMerge "Added missing RenderScript HIDL API call to VTS test." into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 15:45:42 +0000 (15:45 +0000)]
Merge "Added missing RenderScript HIDL API call to VTS test." into oc-dev

7 years agoRoute DRM HAL libbinder traffic to /dev/vndbinder
Iliyan Malchev [Fri, 14 Apr 2017 07:15:09 +0000 (00:15 -0700)]
Route DRM HAL libbinder traffic to /dev/vndbinder

b/37309712
Test: marlin

Change-Id: I72c2304842bd21b5393c17be5beeeb90a74d5345
Signed-off-by: Iliyan Malchev <malchev@google.com>
7 years agoRequire attestation app ID.
Shawn Willden [Wed, 12 Apr 2017 12:36:08 +0000 (06:36 -0600)]
Require attestation app ID.

Bug: 37318025
Test: Manually tested
Change-Id: Iaa992c8d22e0c88c2a2570355199befa484adc19

7 years agoFix handling of KM3 attestations.
Shawn Willden [Mon, 10 Apr 2017 23:19:15 +0000 (17:19 -0600)]
Fix handling of KM3 attestations.

Test: Manually tested
Bug: 37318025
Change-Id: I91c0c0fe6d36fb4a02d6b58a3b0836a6f8996012

7 years agoAdd testcases for restoreKeys API.
Ryan Campbell [Wed, 12 Apr 2017 23:38:52 +0000 (16:38 -0700)]
Add testcases for restoreKeys API.

Add a positive and two negative test cases for the restoreKeys
function in DRM vendor plugin.

Test: vts-tradefed run commandAndExit vts -m VtsHalDrmV1_0Target
--primary-abi-only --skip-all-system-status-check
Bug: 34178477
Change-Id: Ia7f323dbd92e7281efa96b9b7d07b85123e819f4

7 years agoMerge "audio.common@2.0-util: vendor_available + in Soong" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 04:00:09 +0000 (04:00 +0000)]
Merge "audio.common@2.0-util: vendor_available + in Soong" into oc-dev

7 years agoMerge "Move bluetooth test to vendor." into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 03:59:45 +0000 (03:59 +0000)]
Merge "Move bluetooth test to vendor." into oc-dev

7 years agoMerge "Changed the naming scheme for Treble java libraries (both static and dynamic...
TreeHugger Robot [Fri, 14 Apr 2017 02:13:21 +0000 (02:13 +0000)]
Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" into oc-dev

7 years agoMerge "Use fmq for camera capture request." into oc-dev
Yifan Hong [Fri, 14 Apr 2017 02:10:15 +0000 (02:10 +0000)]
Merge "Use fmq for camera capture request." into oc-dev

7 years agoMerge "fingerprint: clean up includes" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 01:14:21 +0000 (01:14 +0000)]
Merge "fingerprint: clean up includes" into oc-dev

7 years agoAdded missing RenderScript HIDL API call to VTS test.
Michael Butler [Fri, 14 Apr 2017 00:42:07 +0000 (17:42 -0700)]
Added missing RenderScript HIDL API call to VTS test.

ScriptGroupSetInput was never called, so it was added to the
ScriptGroupTest. After this CL gets merged, all RenderScript HIDL API
calls will be tested.

Bug: 35915961

Test: mm on oc-dev, runs and passes on oc-dev
Change-Id: I9153895ac55be757eef59e81837a9518fa9e85ab

7 years agoMerge changes I52c156ed,I9fb9a924 into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 00:13:17 +0000 (00:13 +0000)]
Merge changes I52c156ed,I9fb9a924 into oc-dev

* changes:
  Add VTS tests for Wfd
  Add VTS tests for Bonjour and Upnp service

7 years agofingerprint: clean up includes
Steven Moreland [Thu, 13 Apr 2017 23:12:15 +0000 (16:12 -0700)]
fingerprint: clean up includes

Bug: 33241851
Test: links
Test: works with BOARD_VNDK_VERSION := current
Change-Id: I7cfec2b8459964edf9a180d01cfdd90dae376fb9

7 years agoChanged the naming scheme for Treble java libraries (both static and dynamic)
Andreas Huber [Thu, 13 Apr 2017 16:53:54 +0000 (09:53 -0700)]
Changed the naming scheme for Treble java libraries (both static and dynamic)

android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java

Bug: 37207894
Test: make
Change-Id: I177f4cfd42f635aaf096107af8309d1a82ed41c0
Merged-In: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34

7 years agoMerge "wifi(interface): Add links to APF docs" into oc-dev
Ningyuan Wang [Thu, 13 Apr 2017 22:15:43 +0000 (22:15 +0000)]
Merge "wifi(interface): Add links to APF docs" into oc-dev

7 years agoMove bluetooth test to vendor.
Steven Moreland [Thu, 13 Apr 2017 21:19:19 +0000 (14:19 -0700)]
Move bluetooth test to vendor.

The test is still built in data/nativetest64, but it must be marked as
vendor since it depends on vendor modules.

Also proprietary -> vendor.

Test: build with BOARD_VNDK_VERSION := current
Test: run test on internal marlin, passes
Bug: 33241851
Change-Id: I856838fe208a4cd038ea16d47f03f6278224b2ee

7 years agoUse fmq for camera capture request.
Yifan Hong [Tue, 11 Apr 2017 21:45:00 +0000 (14:45 -0700)]
Use fmq for camera capture request.

Test: camera works.

Bug: 35788245 [Treble] Pass camera metadata using shared memory
Change-Id: I4a1585315bf448c8c57def2964237cae21bdbe03

7 years agoAdd VTS tests for Wfd
Ningyuan Wang [Thu, 13 Apr 2017 01:44:40 +0000 (18:44 -0700)]
Add VTS tests for Wfd

This covers the following APIs by adding tests to
ISupplicantP2pIface:
ISupplicantP2pIface::enableWfd(),
ISupplicantP2pIface::setWfdDeviceInfo()

Bug: 33457575
Test: VTS tests pass

Change-Id: I52c156edf32c58b6fb6248d1b396d0437feebbfe

7 years agoAdd VTS tests for Bonjour and Upnp service
Ningyuan Wang [Wed, 12 Apr 2017 17:18:32 +0000 (10:18 -0700)]
Add VTS tests for Bonjour and Upnp service

This covers the following APIs by adding tests to
ISupplicantP2pIface:
ISupplicantP2pIface::addBonjourService(),
ISupplicantP2pIface::removeBonjourService(),
ISupplicantP2pIface::addUpnpService(),
ISupplicantP2pIface::removeUpnpService()

Bug: 33457575
Test: VTS tests pass

Change-Id: I9fb9a9243a40c2309e549775acabbf90ac9b31da

7 years agoMerge "Add VTS tests for wps related APIs in ISupplicantIface" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:47:14 +0000 (19:47 +0000)]
Merge "Add VTS tests for wps related APIs in ISupplicantIface" into oc-dev

7 years agoMerge "media.omx VTS test baseline" into oc-dev
Zhuoyao Zhang [Thu, 13 Apr 2017 19:24:28 +0000 (19:24 +0000)]
Merge "media.omx VTS test baseline" into oc-dev

7 years agoAdd VTS tests for wps related APIs in ISupplicantIface
Ningyuan Wang [Wed, 12 Apr 2017 02:26:02 +0000 (19:26 -0700)]
Add VTS tests for wps related APIs in ISupplicantIface

This covers the following APIs by adding tests to
ISupplicantStaIface and ISupplicantP2pIface:
ISupplicantIface::setWpsDeviceName(),
ISupplicantIface::setWpsDeviceType(),
ISupplicantIface::setWpsManufacturer(),
ISupplicantIface::setWpsModelName(),
ISupplicantIface::setWpsModelNumber(),
ISupplicantIface::setWpsSerialNumber(),
ISupplicantIface::setWpsConfigMethods()

Bug: 33457575
Test: VTS tests pass

Change-Id: I0adf6b81ed6da8b1dead9dfa09c778acf4f03a8c

7 years agoMerge "Add VTS test for ISupplicantP2pIface::removeGroup()" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 18:17:04 +0000 (18:17 +0000)]
Merge "Add VTS test for ISupplicantP2pIface::removeGroup()" into oc-dev

7 years agoMerge "Add more VTS tests for SupplicantStaIface" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 18:16:27 +0000 (18:16 +0000)]
Merge "Add more VTS tests for SupplicantStaIface" into oc-dev

7 years agoMerge "DRM vts test bug fixes" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 17:53:05 +0000 (17:53 +0000)]
Merge "DRM vts test bug fixes" into oc-dev

7 years agowifi(interface): Add links to APF docs
Roshan Pius [Mon, 27 Mar 2017 17:03:38 +0000 (10:03 -0700)]
wifi(interface): Add links to APF docs

Bug: 32119512
Test: Compiles
Change-Id: Iadb68a2a649b120b607735e4d88617b11740832f

7 years agomedia.omx VTS test baseline
Ram Mohan M [Wed, 29 Mar 2017 09:22:20 +0000 (14:52 +0530)]
media.omx VTS test baseline

Change-Id: I0cb1997e9cc0427fdfe8091de84e8cb75c7bab14

Test GetPortIndices

Tests support for omx index type: OMX_IndexParamAudioInit,
OMX_IndexParamImageInit, OMX_IndexParamVideoInit, OMX_IndexParamOtherInit.

Change-Id: I50c7c70c8e000684ef02a6e372be32f9c178e74d

Test Port Enabling/Disabling

Enumerate the list of ports available on the component.
Test if they can be disabled and enabled. This test is carried
when the component is in Loaded state. Also, omx-il specification
allows enabling and disabling all ports at once by passing the
argument OMX_ALL. The behavior of the component on this argument
is tested. Disable and enable a port index that is not supported
by the component is also tested.

Change-Id: I1ab3cc3652a63d05bd0c3ceae92e01ebd4aae12d

Test State Transitions

Change the states of the component from loaded->idle->execute->idle->loaded
While the component is switching states, make sure the below dependencies are met.
1. When the component is switching from Loaded to Idle,
ensure this transition does not take place until the supplier has provided
the ports their necessary buffers
2. When the component is switching from Idle to execute,
change the buffer owner from Client to Component.
3. When the component is switching from execute to Idle,
ensure the client got all the buffers it supplied to the component back.
4. When the component is switching from Idle to loaded,
ensure this transition takes place only after freeing all the buffers

Change-Id: I7c3f6f65adf3afda4e54ca7cafb5bb7799a5b2d6

Test for Flush

When the component is in execute state and as buffers are being
exchanged between client and component, call a flush. Test that all
the unprocessed buffers are returned to the client

Change-Id: I00f4c356df0e832aecc457a53163532e82ead9a3

Fix object labels for master and component

This changes maintains consistency across Vts test folders

Change-Id: I0f3e40db04876a3dab170936037c42f994d67c18

Audio_enc/Audio_dec folders are removed.

The current folders needs work. We will revisit this again

Change-Id: Ic8287288d0727f1384e096b846e0066b2ec9f95f

Fix Object labels for common

Change-Id: I8f19a339983aa81d581ed3d55780180f8d976382

Test Port Definition structures

Tests support for omx index type OMX_IndexParamPortDefinition

Change-Id: I45d82199c6cf20f24aa42d9fea69bd1c88a51757

Bug fix : Pass i/o buffer structure information while dequeueing messages

Also fixed sending false port id during freeBuffer call.

Change-Id: Id5c4f67cccea6b577880e42ee0d294cc55d534ad

Test port reconfiguration and buffer flow in audio decoder

In the current commit we have added tests for audio decoder
components. The selected component decodes an elementary stream
and in this process port reconfiguration, buffer flow and flush
are tested.

Test: mma
Change-Id: I42c8397f704f5fa69878efe91932c477ac66d1b2

7 years agoaudio.common@2.0-util: vendor_available + in Soong
Steven Moreland [Thu, 13 Apr 2017 05:45:01 +0000 (22:45 -0700)]
audio.common@2.0-util: vendor_available + in Soong

vendor_available: separate copy built on the vendor partition for
BOARD_VNDK_VERSION := current devices.

**************************************************
See full implications + warning on:
https://android-review.googlesource.com/#/c/369995/

(Ia4eb5378d941033b07673daf682e66051cd3c075)
***************************************************

Test: (sanity) audio works on internal marlin
Test: (sanity) hangouts call on internal marlin
Test: warnings don't show up on BOARD_VNDK_VERSION := current devices.
Bug: 33241851

Change-Id: I2de1b789a44d238e31108312b4ec0dd5d404b1e6

7 years agoDRM vts test bug fixes
Jeff Tinker [Thu, 13 Apr 2017 07:56:34 +0000 (00:56 -0700)]
DRM vts test bug fixes

A session wasn't being closed in the ListenerKeysChange
test, that was causing erratic behavior on subsequent tests.
The expected return code was incorrect in the test
AttemptDecryptWithKeysRemoved.

bug:37272108
Change-Id: I11590b85c81548622359d91ebc9af75276a7b58c

7 years agoMerge "Connecting to BufferQueue before setting surface." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 04:49:58 +0000 (04:49 +0000)]
Merge "Connecting to BufferQueue before setting surface." into oc-dev

7 years agoMerge "libhwcomposer-client: mark as vendor_available" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 04:12:19 +0000 (04:12 +0000)]
Merge "libhwcomposer-client: mark as vendor_available" into oc-dev

7 years agoMerge "Mark as vendor_available" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 04:12:15 +0000 (04:12 +0000)]
Merge "Mark as vendor_available" into oc-dev

7 years agoMerge "android.hardware.camera.common@1.0-helper: vendor" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 04:12:11 +0000 (04:12 +0000)]
Merge "android.hardware.camera.common@1.0-helper: vendor" into oc-dev

7 years agoMerge changes from topic 'libACRONYM' into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 03:55:27 +0000 (03:55 +0000)]
Merge changes from topic 'libACRONYM' into oc-dev

* changes:
  composer: route binder traffic over vndbinder
  android.hardware.camera.provider@2.4: set up /dev/vndbinder

7 years agoMerge "bluetooth: include what you use" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 03:35:45 +0000 (03:35 +0000)]
Merge "bluetooth: include what you use" into oc-dev

7 years agoAdd VTS test for ISupplicantP2pIface::removeGroup()
Ningyuan Wang [Thu, 13 Apr 2017 02:48:30 +0000 (19:48 -0700)]
Add VTS test for ISupplicantP2pIface::removeGroup()

Bug: 33457575
Test: VTS tests pass
Change-Id: Ibb752d92ba1ba35475e1aec9d82c27c6b4b0c84e

7 years agoMerge "Change drm/crypto service names to "default"" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 02:25:23 +0000 (02:25 +0000)]
Merge "Change drm/crypto service names to "default"" into oc-dev

7 years agoConnecting to BufferQueue before setting surface.
Michael Butler [Thu, 13 Apr 2017 01:55:48 +0000 (18:55 -0700)]
Connecting to BufferQueue before setting surface.

Bug: 37172220

Test: mma, runs on sailfish
Change-Id: I2ed8e55ed9e6149245ca0d605441eff74eac45e2

7 years agoMark as vendor_available
Steven Moreland [Wed, 12 Apr 2017 00:33:54 +0000 (17:33 -0700)]
Mark as vendor_available

By setting vendor_available, the following may become true:

* a prebuilt library from this release may be used at runtime by
  in a later releasse (by vendor code compiled against this release).
  so this library shouldn't depend on runtime state that may change
  in the future.
* this library may be loaded twice into a single process (potentially
  an old version and a newer version). The symbols will be isolated
  using linker namespaces, but this may break assumptions about 1
  library in 1 process (your singletons will run twice).

Background:

This means that these modules may be built and installed twice --
once for the system partition and once for the vendor partition. The
system version will build just like today, and will be used by the
framework components on /system. The vendor version will build
against a reduced set of exports and libraries -- similar to, but
separate from, the NDK. This means that all your dependencies must
also mark vendor_available.

At runtime, /system binaries will load libraries from /system/lib*,
while /vendor binaries will load libraries from /vendor/lib*. There
are some exceptions in both directions -- bionic(libc,etc) and liblog
are always loaded from /system. And SP-HALs (OpenGL, etc) may load
/vendor code into /system processes, but the dependencies of those
libraries will load from /vendor until it reaches a library that's
always on /system. In the SP-HAL case, if both framework and vendor
libraries depend on a library of the same name, both versions will be
loaded, but they will be isolated from each other.

It's possible to compile differently -- reducing your source files,
exporting different include directories, etc. For details see:

https://android-review.googlesource.com/368372

None of this is enabled unless the device opts into the system/vendor
split with BOARD_VNDK_VERSION := current.

Bug: 36426473
Bug: 36079834
Test: m -j android.hardware.sensors@1.0-convert
Test: attempt to compile with BOARD_VNDK_VERSION := current
Change-Id: I0a4e8a658b5b33bd7a6668242f98a4f6cda2a94f

7 years agoMerge "configstore: add startGraphicsAllocatorService" into oc-dev
Iliyan Malchev [Thu, 13 Apr 2017 00:42:12 +0000 (00:42 +0000)]
Merge "configstore: add startGraphicsAllocatorService" into oc-dev

7 years agocomposer: route binder traffic over vndbinder
Iliyan Malchev [Wed, 5 Apr 2017 20:13:09 +0000 (13:13 -0700)]
composer: route binder traffic over vndbinder

b/36683636 Hwcomposer is starting binder threads

Test: sailfish

Change-Id: I28ad19b5036c6fbf514770369888ca11892bf212
Signed-off-by: Iliyan Malchev <malchev@google.com>
7 years agoandroid.hardware.camera.provider@2.4: set up /dev/vndbinder
Iliyan Malchev [Wed, 5 Apr 2017 20:26:30 +0000 (13:26 -0700)]
android.hardware.camera.provider@2.4: set up /dev/vndbinder

The camera-HAL implementation may need to communicate with other vendor
components over /dev/vndbinder.  Route all libbinder traffic to that
node.

b/36651814
b/36651237
b/35870313
b/36683636

Test: sailfish

Change-Id: I9b80fefbcdf5ce18a2d788e8582ea8791a604435
Signed-off-by: Iliyan Malchev <malchev@google.com>
7 years agoMerge changes from topic 'hidl-vendor-available' into oc-dev
Steven Moreland [Wed, 12 Apr 2017 22:13:57 +0000 (22:13 +0000)]
Merge changes from topic 'hidl-vendor-available' into oc-dev

* changes:
  Update makefiles (2/2).
  Update makefiles.

7 years agoMerge "Add p2 option in OpenLogicalChannel" into oc-dev
Amit Mahajan [Wed, 12 Apr 2017 22:02:34 +0000 (22:02 +0000)]
Merge "Add p2 option in OpenLogicalChannel" into oc-dev

7 years agoMerge "Add PRESENT_FENCE_IS_NOT_RELIABLE" into oc-dev
Brian C. Anderson [Wed, 12 Apr 2017 21:26:22 +0000 (21:26 +0000)]
Merge "Add PRESENT_FENCE_IS_NOT_RELIABLE" into oc-dev

7 years agoMerge "Mark hidl test libs as vendor." into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 20:07:47 +0000 (20:07 +0000)]
Merge "Mark hidl test libs as vendor." into oc-dev

7 years agoMerge "libgrallocmapperincludes: as header lib and vendor" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 20:04:24 +0000 (20:04 +0000)]
Merge "libgrallocmapperincludes: as header lib and vendor" into oc-dev

7 years agoMerge "Add IOmxStore and remove IOmxNode::setQuirks." into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 18:55:05 +0000 (18:55 +0000)]
Merge "Add IOmxStore and remove IOmxNode::setQuirks." into oc-dev

7 years agoMerge "Add more VTS tests for ISupplicantP2pIface" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 18:52:17 +0000 (18:52 +0000)]
Merge "Add more VTS tests for ISupplicantP2pIface" into oc-dev

7 years agoAdd PRESENT_FENCE_IS_NOT_RELIABLE
Brian Anderson [Tue, 4 Apr 2017 23:16:41 +0000 (16:16 -0700)]
Add PRESENT_FENCE_IS_NOT_RELIABLE

Test: adb shell /data/nativetest/libgui_test/libgui_test
  --gtest_filter=*GetFrameTimestamps*
Bug: 3673084936887025

Change-Id: Ide992e4dda7840f7982237943256ea3019eda434

7 years agoMerge "Fix failure to load power HAL implementation" into oc-dev
Connor O'Brien [Wed, 12 Apr 2017 17:57:32 +0000 (17:57 +0000)]
Merge "Fix failure to load power HAL implementation" into oc-dev

7 years agoAdd p2 option in OpenLogicalChannel
Wileen Chiu [Fri, 3 Mar 2017 19:57:48 +0000 (11:57 -0800)]
Add p2 option in OpenLogicalChannel

- Adding support for P2 parameter
- Needed to support OMAPI 3.0 defined
  by SIM Alliance

Test: Basic telephony sanity
Bug: 27360148
Merged-In: I6a274195065ab1ef8406849228f60859ee826e53
Change-Id: I88134eded001e14c12e1f2a18efd0a2b51bc22fe

7 years agobluetooth: include what you use
Steven Moreland [Tue, 11 Apr 2017 19:22:27 +0000 (12:22 -0700)]
bluetooth: include what you use

Helper libraries also now on vendor partition.

Test: links
Test: bluetooth works on internal Marlin
Bug: 33241851

(cherry picked from commit 96510c80f84e192f106678d269e793ade8510b1c)
Merged-In: Ie99faf9146ce2ce3df83a2b46acfaa36a54c16c2
Change-Id: Ie99faf9146ce2ce3df83a2b46acfaa36a54c16c2

7 years agoMerge "Add more VTS tests for ISupplicantNetwork" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 17:04:25 +0000 (17:04 +0000)]
Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev

7 years agolibgrallocmapperincludes: as header lib and vendor
Steven Moreland [Wed, 12 Apr 2017 16:39:54 +0000 (09:39 -0700)]
libgrallocmapperincludes: as header lib and vendor

Bug: 33241851
Test: links
Test: try build with BOARD_VNDK_VERSION current, no errors related to
  this module
Test: (sanity) YouTube

Change-Id: Ia2c3922bf8bf1ab51396a8c8c5fa8d909c442994

7 years agoMerge "sound trigger HAL: remove dummy Union" into oc-dev
Eric Laurent [Wed, 12 Apr 2017 15:57:48 +0000 (15:57 +0000)]
Merge "sound trigger HAL: remove dummy Union" into oc-dev

7 years agoMerge "Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 09:17:07 +0000 (09:17 +0000)]
Merge "Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()" into oc-dev

7 years agoMerge "Add VTS tests for ISupplicantIface" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 09:14:29 +0000 (09:14 +0000)]
Merge "Add VTS tests for ISupplicantIface" into oc-dev

7 years agoMerge "Add more VTS tests for ISupplicantNetwork" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 04:45:48 +0000 (04:45 +0000)]
Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev

7 years agolibhwcomposer-client: mark as vendor_available
Steven Moreland [Wed, 12 Apr 2017 04:25:13 +0000 (21:25 -0700)]
libhwcomposer-client: mark as vendor_available

By setting vendor_available, the following may become true:

* a prebuilt library from this release may be used at runtime by
  in a later releasse (by vendor code compiled against this release).
  so this library shouldn't depend on runtime state that may change
  in the future.
* this library may be loaded twice into a single process (potentially
  an old version and a newer version). The symbols will be isolated
  using linker namespaces, but this may break assumptions about 1
  library in 1 process (your singletons will run twice).

Background:

This means that these modules may be built and installed twice --
once for the system partition and once for the vendor partition. The
system version will build just like today, and will be used by the
framework components on /system. The vendor version will build
against a reduced set of exports and libraries -- similar to, but
separate from, the NDK. This means that all your dependencies must
also mark vendor_available.

At runtime, /system binaries will load libraries from /system/lib*,
while /vendor binaries will load libraries from /vendor/lib*. There
are some exceptions in both directions -- bionic(libc,etc) and liblog
are always loaded from /system. And SP-HALs (OpenGL, etc) may load
/vendor code into /system processes, but the dependencies of those
libraries will load from /vendor until it reaches a library that's
always on /system. In the SP-HAL case, if both framework and vendor
libraries depend on a library of the same name, both versions will be
loaded, but they will be isolated from each other.

It's possible to compile differently -- reducing your source files,
exporting different include directories, etc. For details see:

https://android-review.googlesource.com/368372

None of this is enabled unless the device opts into the system/vendor
split with BOARD_VNDK_VERSION := current.

Bug: 36426473
Bug: 36079834
Test: m -j libhwcomposer-client
Test: attempt to compile with BOARD_VNDK_VERSION := current
Change-Id: I735b861fcc25bc1048ce0ce3ad48432980248b06

7 years agoandroid.hardware.camera.common@1.0-helper: vendor
Steven Moreland [Wed, 12 Apr 2017 03:57:45 +0000 (20:57 -0700)]
android.hardware.camera.common@1.0-helper: vendor

Test: links/camera works
Bug: 33241851
Change-Id: I5bb846fabca29b789692fe8c253383fd821b8ba6

7 years agoconfigstore: add startGraphicsAllocatorService
Chia-I Wu [Tue, 11 Apr 2017 22:17:24 +0000 (15:17 -0700)]
configstore: add startGraphicsAllocatorService

Add ISurfaceFlingerConfigs::startGraphicsAllocatorService to control
whether SurfaceFlinger should start IAllocator service.

Bug: 36462585
Test: boots
Change-Id: I421413673246cc7c552bc9eeeb7a9ce2783faf9e

7 years agoMark hidl test libs as vendor.
Steven Moreland [Wed, 12 Apr 2017 00:56:47 +0000 (17:56 -0700)]
Mark hidl test libs as vendor.

They must be on the vendor partition for hidl_test to be able to link to
them when the VNDK is in place.

Test: hidl_test
Bug: 33241851
Change-Id: I23c9e0674aaf33602bc9fde0515eb2f87ce5c60c

7 years agoMerge "Added protections for RenderScript VTS tests." into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 23:52:33 +0000 (23:52 +0000)]
Merge "Added protections for RenderScript VTS tests." into oc-dev

7 years agoAdd more VTS tests for ISupplicantNetwork
Ningyuan Wang [Tue, 11 Apr 2017 01:03:22 +0000 (18:03 -0700)]
Add more VTS tests for ISupplicantNetwork

This covers the following APIs by adding tests to
ISupplicantStaNetwork:
ISupplicantStaNetwork::setPsk(),
ISupplicantStaNetwork::getPsk(),
ISupplicantStaNetwork::setEapSubjectMatch(),
ISupplicantStaNetwork::getEapSubjectMatch(),
ISupplicantStaNetwork::setUpdateIdentifier,
ISupplicantStaNetwork::SetProactiveKeyCaching
ISupplicantStaNetwork::SendNetworkEapSimUmtsAutsResponse,
ISupplicantStaNetwork::SendNetworkEapSimGsmAuthFailure,
ISupplicantStaNetwork::SendNetworkEapSimUmtsAuthFailure,
ISupplicantStaNetwork::GetWpsNfcConfigurationToken

Bug: 33457575
Test: VTS tests pass

Change-Id: I7d990471aadc46e7d553f2179d6d234530cb1df6

7 years agoAdd more VTS tests for SupplicantStaIface
Ningyuan Wang [Tue, 11 Apr 2017 17:32:05 +0000 (10:32 -0700)]
Add more VTS tests for SupplicantStaIface

This covers the following APIs by adding tests to
ISupplicantStaIface:
ISupplicantStaIface::setExternalSim(),
ISupplicantStaIface::addExtRadioWork(),
ISupplicantStaIface::removeExtRadioWork()

Bug: 33457575
Test: VTS tests pass
Change-Id: Ie252ecf8e6e0cdc9d669a5fec18e076dc2d03eba

7 years agoChange drm/crypto service names to "default"
Jeff Tinker [Wed, 5 Apr 2017 15:05:28 +0000 (08:05 -0700)]
Change drm/crypto service names to "default"

bug: 36371166

Test: vts drm hidl test

Change-Id: Iae98708c4f9b58dc697fb54c9f9b67d99e7ed0cf

7 years agoMerge "Fix VTS test for SupplicantP2pIface::stopFind()" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 23:16:54 +0000 (23:16 +0000)]
Merge "Fix VTS test for SupplicantP2pIface::stopFind()" into oc-dev

7 years agoAdd more VTS tests for ISupplicantP2pIface
Ningyuan Wang [Tue, 11 Apr 2017 16:40:08 +0000 (09:40 -0700)]
Add more VTS tests for ISupplicantP2pIface

This covers the following APIs by adding tests to
ISupplicantP2pIface:
ISupplicantP2pIface::SetGroupIdle(),
ISupplicantP2pIface::SetPowerSave()

Bug: 33457575
Test: VTS tests pass
Change-Id: I8291735e74cf88c0e1ee4b5297b39aa37c33d17c

7 years agoFix failure to load power HAL implementation
Connor O'Brien [Tue, 11 Apr 2017 22:33:04 +0000 (15:33 -0700)]
Fix failure to load power HAL implementation

Some working implementations of the libhardware power HAL do not
implement an open method. Change the HIDL implementation to not rely
on that method being available.

Test: Flashed marlin with modified power.marlin that omits an open()
implementation; power HAL loads successfully and passes VTS
Bug: 37245218
Signed-off-by: Connor O'Brien <connoro@google.com>
Change-Id: Icc77b3011a0e44330062aa51ae49e39ad349a2a5

7 years agoMerge "Copy wifi_hidl_call_util.h for supplicant VTS test" into oc-dev
Ningyuan Wang [Tue, 11 Apr 2017 21:20:15 +0000 (21:20 +0000)]
Merge "Copy wifi_hidl_call_util.h for supplicant VTS test" into oc-dev

7 years agoAdd more VTS tests for ISupplicantNetwork
Ningyuan Wang [Mon, 10 Apr 2017 23:36:09 +0000 (16:36 -0700)]
Add more VTS tests for ISupplicantNetwork

This covers the following APIs by adding tests to
ISupplicantStaNetwork:
ISupplicantNetwork::getInterfaceName(),
ISupplicantNetwork::getType()

Bug: 33457575
Test: VTS tests pass
Change-Id: I9a24195cefefcc23b7603ff33b66a497eba07148

7 years agoAdd VTS tests for ISupplicantIface
Ningyuan Wang [Mon, 10 Apr 2017 23:36:09 +0000 (16:36 -0700)]
Add VTS tests for ISupplicantIface

This covers the following APIs by adding tests to both
ISupplicantStaIface and ISupplicantP2pIface:
ISupplicantIface::getName(),
ISupplicantIface::getType()

Bug: 33457575
Test: VTS tests pass

Change-Id: Ibbc4be2e367fc6f179005696724cccbcca58d10f

7 years agoCopy wifi_hidl_call_util.h for supplicant VTS test
Ningyuan Wang [Tue, 11 Apr 2017 18:11:46 +0000 (11:11 -0700)]
Copy wifi_hidl_call_util.h for supplicant VTS test

This copies wifi_hidl_call_util.h to supplicant cts directory
so supplicant vts tests can use this to simplify code.

Bug: 33457575
Test: compile, manual test
Change-Id: I696475062d04d54fafae5c3323818ce1d1ff7d9d

7 years agosound trigger HAL: remove dummy Union
Eric Laurent [Tue, 11 Apr 2017 17:52:42 +0000 (10:52 -0700)]
sound trigger HAL: remove dummy Union

Remove dummy Union definition added as work around for JAVA build
problem.

Bug: 34109137
Test: make
Change-Id: I5a8107de2deab1f4f62c3e0ae654dd768cf0e307

7 years agoMerge "Update Radio and Sap service name in VTS." into oc-dev
Sanket Padawe [Tue, 11 Apr 2017 17:49:09 +0000 (17:49 +0000)]
Merge "Update Radio and Sap service name in VTS." into oc-dev

7 years agoUpdate makefiles (2/2).
Steven Moreland [Tue, 11 Apr 2017 16:58:03 +0000 (09:58 -0700)]
Update makefiles (2/2).

Test: pass
Change-Id: Ic7e6289c7b69785491708ce0acbb657f4c704229

7 years agoUpdate makefiles.
Steven Moreland [Tue, 11 Apr 2017 16:57:11 +0000 (09:57 -0700)]
Update makefiles.

Test: pass
Change-Id: I5cf42c8ff1e11207394e4852ba0bd03e4e3b7d2e

7 years agoFix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()
Ningyuan Wang [Tue, 11 Apr 2017 03:44:18 +0000 (20:44 -0700)]
Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()

EAP method needs to be set to construct the eap phase 2 method string.

Bug: 37220169
Test: vts tests pass
Change-Id: Ie69aaac0826d4bde784f864631a718242dd5af2a

7 years agoFix VTS test for SupplicantP2pIface::stopFind()
Ningyuan Wang [Tue, 11 Apr 2017 03:13:21 +0000 (20:13 -0700)]
Fix VTS test for SupplicantP2pIface::stopFind()

stopFind() returns SUCCESS even when there is no ongoing
find() operation.

Bug: 37220169
Test: vts tests pass
Change-Id: Ia3f3b4e0c4e7fb7263c1bcbfda1a40b6e5f1cba2

7 years agoMerge "graphics: revise gralloc interfaces" into oc-dev
Chia-I Wu [Tue, 11 Apr 2017 01:08:37 +0000 (01:08 +0000)]
Merge "graphics: revise gralloc interfaces" into oc-dev

7 years agowifi: add VTS tests for IWifiApIface
Peter Qiu [Thu, 6 Apr 2017 21:41:01 +0000 (14:41 -0700)]
wifi: add VTS tests for IWifiApIface

Bug: 32022435
Bug: 36813739
Test: run VtsHalWifiV1_0Target test
Change-Id: I31db3b1bfe5deed5691e0d342762298b4b0d3620

7 years agoMerge "Support binderized and passthrough vendor services" into oc-dev
TreeHugger Robot [Mon, 10 Apr 2017 22:14:19 +0000 (22:14 +0000)]
Merge "Support binderized and passthrough vendor services" into oc-dev

7 years agoMerge "wifi: add VTS tests for IWifiStaIface" into oc-dev
TreeHugger Robot [Mon, 10 Apr 2017 20:20:33 +0000 (20:20 +0000)]
Merge "wifi: add VTS tests for IWifiStaIface" into oc-dev

7 years agowifi: add VTS tests for IWifiStaIface
Peter Qiu [Wed, 5 Apr 2017 23:16:56 +0000 (16:16 -0700)]
wifi: add VTS tests for IWifiStaIface

This will cover all APIs except:
- startBackgroundScan
- stopBackgroundScan
- startSendingKeepAlivePackets
- stopSendingKeepAlivePackets

Bug: 32022435
Bug: 36813739
Test: run VtsHalWifiV1_0Target test
Change-Id: I71a1a97e4b0f1145657b249f3eb20305f810962b

7 years agographics: revise gralloc interfaces
Chia-I Wu [Fri, 31 Mar 2017 19:48:11 +0000 (12:48 -0700)]
graphics: revise gralloc interfaces

Revise IAllocator and IMapper to reduce IPC and to support gralloc0
devices.

Specifically, IAllocator is trimmed down to have essentially only

    allocate(BufferDescriptor descriptor, uint32_t count)
        generates (Error error,
                   uint32_t stride,
                   vec<handle> buffers);

The ability to allocate buffers with shared backing store is
removed.  ProducerUsage and ConsumerUsage are moved to the
graphics.common package and are merged and renamed to BufferUsage.
BufferUsage's bits follow gralloc0.

IMapper gains

    typedef vec<uint32_t> BufferDescriptor;
    createDescriptor(BufferDescriptorInfo descriptorInfo)
          generates (Error error,
                     BufferDescriptor descriptor);

where BufferDescriptor is an implementation-defined blob.  lockFlex
is replaced by lockYCbCr.  All getters are removed.

Reference counting with retain/release is replaced by
importBuffer/freeBuffer.

Most if not all gralloc1 features are not used by the runtime yet.
There is also not too much test written for them.  As such, they
tend to behave differently between implementations and cannot be
used reliably.

Bug: 36481301
Test: builds and boots on Pixel
Change-Id: I1d31105120517ea2c128c7a19297acf3bfd312bb

7 years agoMerge "Fix event listener timeout issues" into oc-dev
TreeHugger Robot [Mon, 10 Apr 2017 18:10:15 +0000 (18:10 +0000)]
Merge "Fix event listener timeout issues" into oc-dev

7 years agoUpdate Radio and Sap service name in VTS.
Sanket Padawe [Mon, 10 Apr 2017 17:34:58 +0000 (10:34 -0700)]
Update Radio and Sap service name in VTS.

Bug: 37164398
Test: VTS tests pass.
Change-Id: I71562e5b9709166695d08a96a04928027dcb4ee7

7 years agoMerge "audiohal: init and send all offloadinfo related element" into oc-dev
Mikhail Naganov [Mon, 10 Apr 2017 16:21:33 +0000 (16:21 +0000)]
Merge "audiohal: init and send all offloadinfo related element" into oc-dev

7 years agographics: Update RAW16 format comments
Emilian Peev [Wed, 15 Mar 2017 17:46:52 +0000 (17:46 +0000)]
graphics: Update RAW16 format comments

RAW16 format could be used together with depth dataspace.
The buffer contents in this case will be phase detection
statistics data.

Bug: 36015382
Test: testPDStats
Change-Id: Ied1c179193abef62a87fcec6f0906528ed58ea2b
(cherry picked from commit 23699d63143fd9d47f8584c6627e5c38838b333f)

7 years agoAdd IOmxStore and remove IOmxNode::setQuirks.
Lajos Molnar [Thu, 23 Mar 2017 03:13:20 +0000 (20:13 -0700)]
Add IOmxStore and remove IOmxNode::setQuirks.

IOmxStore is used for passing results from parsing media_codecs.xml and
related XML files to the framework. Once XML parsing is moved to the HAL
side, IOmxNode::setQuirks will not be needed anymore.

Test: Media post-submit tests on Pixel phone.
Test: Manual use of Camera, Photos, Play Movies and YouTube apps.
Bug: 36952714
Change-Id: I6b24c486c6f8afcbef6ee88a13b2b5bb08d3e656