OSDN Git Service

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

7 years agoExtract logic of storing values to separate class
Pavel Maltsev [Fri, 31 Mar 2017 20:45:54 +0000 (13:45 -0700)]
Extract logic of storing values to separate class

Also rename DefaultVehicleHal to EmulatedVehicleHal and
extract emulator related code to VehicleEmulator class

Test: mm -j32 ; verified Car Service worked

Change-Id: I34361fdec6f94629cf7ef6c35ff56ef9ce78b855

7 years agoFix an issue where Vehicle HAL would crash when trying to update a continuous propert...
Enrico Granata [Mon, 3 Apr 2017 19:59:00 +0000 (12:59 -0700)]
Fix an issue where Vehicle HAL would crash when trying to update a continuous property without an initial floating-point value

Bug: 36858992
Test: build, flash and boot

(cherry picked from commit 945d0bbc866ce21f262a1715c5a2560898c8aca1)

Merged-In: I9906abbf386cf75e838102299e3e97de3475db63
Change-Id: I19ef534fde190a3a1adaca377e8f09760c0ccf4e

7 years agoRefactor default values in VHAL
Pavel Maltsev [Wed, 29 Mar 2017 19:09:54 +0000 (12:09 -0700)]
Refactor default values in VHAL

Move default values closer to config declration to add properties
with less pain in future.

Test: mm -j32; verified if Car Service works

(cherry picked from commit 24ade1751811742948b8ce5177f57f873a4b1b96)
Merged-In: I2f18837658149eb657f44d81e34eb8e6e497a25c
Change-Id: Ie4285581fa9d871b366b0ed2f08fa8073739a0a9

7 years agoAdds default keymaster service to the early_hal class
Janis Danisevskis [Fri, 17 Mar 2017 14:40:11 +0000 (07:40 -0700)]
Adds default keymaster service to the early_hal class

The keymaster service is required by vold which starts very early
during boot up. This leads to the dependency loop:
init->installkey->vdc->vold->keymaster-service->init

This patch resolves this issue by adding service keymaster to the class
early-hal which will get started right after hwservicemanager on devices
that get treble.

Bug: 35764921
Test: Device boots. And lshal shows that service keymaster has two
      clients, keystore and vold.

Change-Id: Id0b6722de900b5513d46adb81d76b02fa6e155df

7 years agoAdded protections for RenderScript VTS tests.
Michael Butler [Fri, 31 Mar 2017 00:20:12 +0000 (17:20 -0700)]
Added protections for RenderScript VTS tests.

Changed many EXPECT_NE to ASSERT_NE for objects that are required later
in the test which would potentially cause a segfault. Additionally updated
a few descriptions.

Bug: 35915961

Test: mm and run on angler
Change-Id: I17c85b2c774688d82b59be2f0b383447e03349e0
(cherry picked from commit b2039ad7643d024a5541af33da574068f194ee81)

7 years agoFix hidl_string copy in boot VTS test
Connor O'Brien [Wed, 5 Apr 2017 21:41:34 +0000 (14:41 -0700)]
Fix hidl_string copy in boot VTS test

hidl_strings returned through a callback need to be copied; the
current approach just saves a pointer to the underlying buffer, which
is incorrect and sometimes causes the test to fail.

Test: the GetSuffix test now passes reliably
Change-Id: I4bb143be98b00b20f9da4aebef3b5ab4980b7690
Signed-off-by: Connor O'Brien <connoro@google.com>
7 years agoMerge "CameraProvider: Refactor legacy name regex code" into oc-dev
Greg Hartman [Wed, 5 Apr 2017 22:20:21 +0000 (22:20 +0000)]
Merge "CameraProvider: Refactor legacy name regex code" into oc-dev

7 years agoCorrect comment on getProvisionRequest
Jeff Tinker [Wed, 29 Mar 2017 21:59:32 +0000 (14:59 -0700)]
Correct comment on getProvisionRequest

There is no session ID in the parameter list.

Test: Compiles, it's a comment change

bug: 36735099
Change-Id: I0eccfcb3aa312a694b391c0b5a76e3b8425a7d36

7 years agoMerge "USB: HIDL: check the status of registerAsService" into oc-dev
Badhri Jagan Sridharan [Wed, 5 Apr 2017 21:16:05 +0000 (21:16 +0000)]
Merge "USB: HIDL: check the status of registerAsService" into oc-dev

7 years agoMerge "wifi(implementation): Print out the cb object on failure" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 19:54:13 +0000 (19:54 +0000)]
Merge "wifi(implementation): Print out the cb object on failure" into oc-dev

7 years agoMerge "Fix DRM prebuilt vendor module handling" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 18:31:01 +0000 (18:31 +0000)]
Merge "Fix DRM prebuilt vendor module handling" into oc-dev

7 years agowifi(implementation): Print out the cb object on failure
Roshan Pius [Fri, 31 Mar 2017 01:01:54 +0000 (18:01 -0700)]
wifi(implementation): Print out the cb object on failure

This should help us figure out if there are multiple callback objects in
wifi_chip when we see the IPC storm from
onDebugRingBufferDataAvailable().

Bug: 36599054
Test:  ACTS wifi tests.
Change-Id: I8c67032c59ecdd45824e131b59d890ce6c94fe25

7 years agowifi(implementation): Ignore IE parsing error
Roshan Pius [Mon, 3 Apr 2017 17:09:43 +0000 (10:09 -0700)]
wifi(implementation): Ignore IE parsing error

The IE blob may not always be fully formed in gscan full scan results.
So, log errors when we hit a parsing error and return the IE elements we
could parse so far.

Bug: 36455164
Test: ACTS wifi gscan tests.
Change-Id: I804937ea5e69f51696aaabf3fe3f53850c145ad3

7 years agowifi(implementation): Return const-ref for callback set
Roshan Pius [Fri, 31 Mar 2017 01:04:04 +0000 (18:04 -0700)]
wifi(implementation): Return const-ref for callback set

Bug: 36792787
Test: Compiles
Change-Id: Ibd19c6f41801d0fa1ea7dc9c3334213865d649ec

7 years agoCameraProvider: Refactor legacy name regex code
Andreas Gampe [Wed, 5 Apr 2017 03:02:25 +0000 (20:02 -0700)]
CameraProvider: Refactor legacy name regex code

The match will use iterators that will be invalidated when the
used string input goes out of scope. Refactor the API to return
the two components of the match.

Bug: 36871785
Test: m && m SANITIZE_TARGET=address
Change-Id: I2418541234a09e53856ea61e0fbc4b67d8036308

7 years agoBluetooth HAL: Add to foreground schedtune group
Joel Fernandes [Tue, 4 Apr 2017 02:19:30 +0000 (19:19 -0700)]
Bluetooth HAL: Add to foreground schedtune group

EAS (Energy-Aware Scheduler) tends to cluster tasks together unless
they're marked to prefer an idle CPU (prefer-idle) during placement.
This is to save energy however it increases latencies. This is
noticeable when the Binder driver demotes the RT task to CFS and when
we try to do load balance in this path, the selection path still selects
a busy CPU. Add Bluetooth HAL service to the foreground schedtune group
to fix this as its critical for tasks like bluetooth audio playback.

Test: Boot and verify bluetooth HAL is in the foreground stune group
Bug: 36867985

Change-Id: Ib3c43cca4a2049af3700978b58a05989cc20b6ac
Signed-off-by: Joel Fernandes <joelaf@google.com>
(cherry picked from commit 1b8f6f7c771a7ff04790833674705972009a3c7d)

7 years agoFix DRM prebuilt vendor module handling
Jeff Tinker [Fri, 31 Mar 2017 23:34:17 +0000 (16:34 -0700)]
Fix DRM prebuilt vendor module handling

bug:36817233
Change-Id: I93659a9901198d05fd43bf95804067a244533808

7 years agoremoved log print statements for configstore from SurfaceFlingerConfigs.cpp
Jaesoo Lee [Fri, 24 Mar 2017 05:08:24 +0000 (14:08 +0900)]
removed log print statements for configstore from SurfaceFlingerConfigs.cpp

Log messages for the retrieved values from configstore will be
automatically printed at the client side (by configstore-utils).

Bug: 36275627
Test: Built and check the log messages
Change-Id: Id5033a74ef58778e93e39be6ac5b9e10ee28c5cf

7 years agoprint log message for values retrieved from configstore
Jaesoo Lee [Fri, 24 Mar 2017 05:08:24 +0000 (14:08 +0900)]
print log message for values retrieved from configstore

This CL adds a code for printing log messages in clients-side utility
library functions (getXXX) for configstore so that the developer can
figure out which configuration values are actually retrieved from the configstore.

Bug: 36275627
Test: Built and check the log message appears

Change-Id: I2c0895f8afbbb2947b62164acaf62a491c451dc0

7 years agoMerge "Add DeleteKey and DeleteAllKeys test to Keymaster VTS tests" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 01:18:49 +0000 (01:18 +0000)]
Merge "Add DeleteKey and DeleteAllKeys test to Keymaster VTS tests" into oc-dev

7 years agoMerge "Revert "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages...
Yin-Chia Yeh [Tue, 4 Apr 2017 22:22:02 +0000 (22:22 +0000)]
Merge "Revert "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages"" into oc-dev

7 years agoEmpty interface IQuux which is completely unrelated to IBase and IBaz.
Andreas Huber [Tue, 4 Apr 2017 21:39:58 +0000 (14:39 -0700)]
Empty interface IQuux which is completely unrelated to IBase and IBaz.

Used to verify that it's not possible to obtain an IQuux interface from an
IBase/IBaz binder, i.e. IHwBinder.asInterface(...) properly respects the
interfaceChain.

Bug: 36749201
Test: hidl_test_java
Change-Id: I84419e78db22acdfcc7d9972d22d139641469bde

7 years agoUSB: HIDL: check the status of registerAsService
Badhri Jagan Sridharan [Wed, 29 Mar 2017 17:51:17 +0000 (10:51 -0700)]
USB: HIDL: check the status of registerAsService

registerAsService call could fail. Hence check the return value.

Bug: 36704362
Test: Manually checked to see if usb hal service is running.
Change-Id: I46dcd74dbee6aba72cf344f10854e5d4b1b6de18

7 years agoRevert "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages"
Yin-Chia Yeh [Tue, 4 Apr 2017 20:00:35 +0000 (13:00 -0700)]
Revert "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages"

This reverts commit 2d80c0d66f9ca869d6102f07bd236b7c4c94c205.

Test: fix b/36876770
Bug: b/36876770
Change-Id: Ia251ec97273d71fd5bc759aa1161960f6266358a

7 years agoMerge "[AWARE] Create true translations between legacy and hidl enums" into oc-dev
Etan Cohen [Tue, 4 Apr 2017 19:42:00 +0000 (19:42 +0000)]
Merge "[AWARE] Create true translations between legacy and hidl enums" into oc-dev

7 years agoMerge "Camera: HAL1: remove libbinder usage" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:24:26 +0000 (19:24 +0000)]
Merge "Camera: HAL1: remove libbinder usage" into oc-dev

7 years agoMerge "Enable the clang-format pre-submit hook" into oc-dev
Steven Moreland [Tue, 4 Apr 2017 17:58:00 +0000 (17:58 +0000)]
Merge "Enable the clang-format pre-submit hook" into oc-dev

7 years agoMerge "Clarifying broadcast vs. predicted orbits" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 17:55:53 +0000 (17:55 +0000)]
Merge "Clarifying broadcast vs. predicted orbits" into oc-dev