OSDN Git Service

android-x86/hardware-interfaces.git
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 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 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 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 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

7 years agoMerge "[WIFI][VTS] Don't call RequestDriverDebugDump API if not supported" into oc-dev
Etan Cohen [Sat, 8 Apr 2017 04:15:44 +0000 (04:15 +0000)]
Merge "[WIFI][VTS] Don't call RequestDriverDebugDump API if not supported" into oc-dev

7 years agoMerge "[AWARE][VTS] Update WifiChipHidlTest NAN tests" into oc-dev
TreeHugger Robot [Sat, 8 Apr 2017 04:15:05 +0000 (04:15 +0000)]
Merge "[AWARE][VTS] Update WifiChipHidlTest NAN tests" into oc-dev

7 years agoMerge "Log errno" into oc-dev
TreeHugger Robot [Sat, 8 Apr 2017 00:51:25 +0000 (00:51 +0000)]
Merge "Log errno" into oc-dev

7 years agoSupport binderized and passthrough vendor services
Jeff Tinker [Sat, 8 Apr 2017 00:41:49 +0000 (17:41 -0700)]
Support binderized and passthrough vendor services

Previously only the vendor service name was used
to get the drm and crypto services, which would work
either for binderized or passthrough devices, but not
both. With this change, the vendor service name is
tried first, and failing that the default passthrough
service is used.

Change-Id: I05e9552da992e8d9dbba0f8dde485406262410a9
related-to-bug:34178477
Test: drm vts test

7 years ago[WIFI][VTS] Don't call RequestDriverDebugDump API if not supported
Etan Cohen [Fri, 7 Apr 2017 20:17:06 +0000 (13:17 -0700)]
[WIFI][VTS] Don't call RequestDriverDebugDump API if not supported

The RequestDriverDebugDump API has a capability bit indicating if
supported on device. Calling if not supported should additionally
return ERROR_NOT_SUPPORTED - but does not today. This is arguably
not a valid issue - should not call API if already known not to be
supported.

Remove test for this (questionable) condition until decide on proper
semantics.

Bug: 36562856
Test: test passes
Change-Id: Ic8a1c8b5f77a1b1767c0efc9735731084dfde7cc

7 years agoaudiohal: init and send all offloadinfo related element
vivek mehta [Fri, 7 Apr 2017 01:27:34 +0000 (18:27 -0700)]
audiohal: init and send all offloadinfo related element

- init all offloadInfo element in audioOffloadInfoFromHal

Bug: 37158321
Test: make
Change-Id: I59d2f6dcd63f95a44465ee8ce8767351fae80521

7 years ago[AWARE][VTS] Update WifiChipHidlTest NAN tests
Etan Cohen [Fri, 7 Apr 2017 17:41:52 +0000 (10:41 -0700)]
[AWARE][VTS] Update WifiChipHidlTest NAN tests

NAN is not enabled on O - update all WifiChip NAN tests to expect
failure.

These tests will start failing again on any platforms/code where
NAN is enabled. Will fix more comprehensively at that point.

Bug: 36562856
Test: build + run vts
Change-Id: I0eaf7934d327fb91bff59dd33bd4a8069888c967

7 years agoMerge "Add command line strictness to VTS" into oc-dev
Wyatt Riley [Fri, 7 Apr 2017 15:03:50 +0000 (15:03 +0000)]
Merge "Add command line strictness to VTS" into oc-dev

7 years agoMerge "Adds default keymaster service to the early_hal class" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 06:08:07 +0000 (06:08 +0000)]
Merge "Adds default keymaster service to the early_hal class" into oc-dev

7 years agoMerge "Fix transitive includes." into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 03:31:27 +0000 (03:31 +0000)]
Merge "Fix transitive includes." into oc-dev

7 years agoLog errno
Jim Miller [Fri, 7 Apr 2017 00:07:48 +0000 (17:07 -0700)]
Log errno

Bug 36790737

Test: ensure errno is logged
Change-Id: Ifa9a0b6ee0baebfdfce894622ef40888dd83dddf

7 years agoMerge "Empty interface IQuux which is completely unrelated to IBase and IBaz." into...
TreeHugger Robot [Fri, 7 Apr 2017 00:02:25 +0000 (00:02 +0000)]
Merge "Empty interface IQuux which is completely unrelated to IBase and IBaz." into oc-dev

7 years agoFix event listener timeout issues
Jeff Tinker [Thu, 6 Apr 2017 22:50:47 +0000 (15:50 -0700)]
Fix event listener timeout issues

The drm vts event listener tests would hang if event
callouts failed to work as expected. Use the vts test
callback template instead.

Change-Id: I5234f5760d90c1e884badc25cd251da27c2c672d
related-to-bug:34178477

7 years agoFix transitive includes.
Steven Moreland [Thu, 6 Apr 2017 19:15:23 +0000 (12:15 -0700)]
Fix transitive includes.

Files relying on transitive include of utils/Log.h (and things that it
includes) from MQDescriptor.h

Test: pass
Merged-In: Iff316b21bef556bb026378b7f89e97ded3febef4
Change-Id: Iff316b21bef556bb026378b7f89e97ded3febef4

7 years agoMerge "Fix hidl_string copy in boot VTS test" into oc-dev
Connor O'Brien [Thu, 6 Apr 2017 20:39:43 +0000 (20:39 +0000)]
Merge "Fix hidl_string copy in boot VTS test" into oc-dev

7 years agoMerge "Add additional drm hal tests" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 18:20:58 +0000 (18:20 +0000)]
Merge "Add additional drm hal tests" into oc-dev

7 years agoMerge "Use explicit .c_str() for hidl_string" into oc-dev
Scott Randolph [Thu, 6 Apr 2017 18:01:41 +0000 (18:01 +0000)]
Merge "Use explicit .c_str() for hidl_string" into oc-dev

7 years agoAdd command line strictness to VTS
Wyatt Riley [Tue, 4 Apr 2017 19:34:53 +0000 (12:34 -0700)]
Add command line strictness to VTS

Was compile time, making command line for
easier test team usage of the stronger
test you can do with GNSS signal available.

Also ensuring location calculated correctly after
a delete all (when -agps present), and faster tests.

Bug: 36356863
Test: Verified command line switches work as expected
  on a Pixel

Change-Id: I4aa92ff2ca664b1c93bbc9ac154d27063160acf2

7 years agoMerge "Correct comment on getProvisionRequest" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 15:37:50 +0000 (15:37 +0000)]
Merge "Correct comment on getProvisionRequest" into oc-dev

7 years agoAdd Flag for Enabling 64-bit Legacy DRM Plugins
John W. Bruce [Fri, 24 Mar 2017 05:40:17 +0000 (22:40 -0700)]
Add Flag for Enabling 64-bit Legacy DRM Plugins

We are ready for devices to begin migrating to a 64-bit Legacy DRM
Loader. However, not all devices are ready to make this jump yet. A
device needs to have all of its Legacy DRM Plugins ready to run as
64-bit before it can do this. This includes having 64-bit hardware
integrations.

So that devices can turn on 64-bit support as they get ready, I am
adding flags that can be set in a device's device.mk file. There are two
parts:

* ENABLE_MEDIADRM_64 enables building the Legacy DRM Plugin HAL as
  64-bit.

* Setting drm.64bit.enabled=true in PRODUCT_PROPERTY_OVERRIDES switches
  the Legacy DRM Plugin HAL to searching for DRM Plugins in the 64-bit
  directory.

Test: Validated that turning on these flags enables a 64-bit Legacy DRM
      Plugin HAL that loads 64-bit Legacy DRM Plugins from the lib64
      directory.
Bug: 36076017
Change-Id: I8d21fc7e7c0357eb6755839d41caa0f37ca20aff

7 years agoMerge changes from topic 'vhal-def-refactor' into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 06:58:57 +0000 (06:58 +0000)]
Merge changes from topic 'vhal-def-refactor' into oc-dev

* changes:
  Extract logic of storing values to separate class
  Fix an issue where Vehicle HAL would crash when trying to update a continuous property without an initial floating-point value
  Refactor default values in VHAL

7 years agoAdd additional drm hal tests
Jeff Tinker [Fri, 31 Mar 2017 22:32:12 +0000 (15:32 -0700)]
Add additional drm hal tests

Test: VTS tests passing

bug:34178477
Change-Id: Ie8fa5f2ad193b717b0564bb3046de8a64ccd8d85

7 years agoMerge "Bluetooth HAL: Add to foreground schedtune group" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 05:34:28 +0000 (05:34 +0000)]
Merge "Bluetooth HAL: Add to foreground schedtune group" into oc-dev