OSDN Git Service

android-x86/hardware-interfaces.git
7 years agoMerge changes from topic 'hals-should-use-mapper' into oc-dev
Chia-I Wu [Tue, 25 Apr 2017 22:12:56 +0000 (22:12 +0000)]
Merge changes from topic 'hals-should-use-mapper' into oc-dev

* changes:
  graphics: use mapper from the composer
  graphics: clarify importBuffer and passthrough HALs

7 years agographics: use mapper from the composer
Chia-I Wu [Thu, 20 Apr 2017 18:01:18 +0000 (11:01 -0700)]
graphics: use mapper from the composer

We must use the mapper HAL instead of gralloc0/gralloc1 from the
composer.

Bug: 37540361
Test: boots on marlin, angler, and ryu
Change-Id: I5a3ff6a025bf51a3507a4f33fa77e9506a6f1ec9

7 years agographics: clarify importBuffer and passthrough HALs
Chia-I Wu [Fri, 21 Apr 2017 22:02:22 +0000 (15:02 -0700)]
graphics: clarify importBuffer and passthrough HALs

A buffer handle recieved from a HAL is by definition raw and needs
to be imported.  But because of passthrough HALs, such a raw handle
may have been imported already.  Explicitly specify that an
implementation must accept such a raw handle.

Bug: 37540361
Test: boots on angler, ryu and marlin
Change-Id: I5ecf526e59b27cc4a8f7f5d5ec27477da0946ece

7 years agoMerge "Fix VtsHalDrmV1_0Target test failure" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:53:59 +0000 (18:53 +0000)]
Merge "Fix VtsHalDrmV1_0Target test failure" into oc-dev

7 years agoMerge "Adding missing NI_TYPE for emergency SUPL" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 17:40:55 +0000 (17:40 +0000)]
Merge "Adding missing NI_TYPE for emergency SUPL" into oc-dev

7 years agoMerge changes from topic 'fuguWifi' into oc-dev
Randy Pan [Tue, 25 Apr 2017 16:59:37 +0000 (16:59 +0000)]
Merge changes from topic 'fuguWifi' into oc-dev

* changes:
  Improve logger feature set handling
  Add capabilities for wifi_hal_legacy

7 years agoMerge "Finish adding manufacturer and model to device ID attestation" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 10:43:18 +0000 (10:43 +0000)]
Merge "Finish adding manufacturer and model to device ID attestation" into oc-dev

7 years agoMerge changes from topic 'o-usage64-2' into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 04:12:26 +0000 (04:12 +0000)]
Merge changes from topic 'o-usage64-2' into oc-dev

* changes:
  automotive: Adjust tests for libui gralloc flags change
  camera: Adjust for libui gralloc flags change

7 years agoMerge "wifi(implementation): Turn on DFS flag for STA" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 03:08:51 +0000 (03:08 +0000)]
Merge "wifi(implementation): Turn on DFS flag for STA" into oc-dev

7 years agowifi(implementation): Turn on DFS flag for STA
Roshan Pius [Thu, 20 Apr 2017 06:11:07 +0000 (23:11 -0700)]
wifi(implementation): Turn on DFS flag for STA

DFS flag needs to be turned on in the legacy HAL for STA operations. So,
initialize this flag on creation of STA iface.
PS: Not adding an explicit HIDL API for this since there is no need to
toggle this from framework and since the HIDL API's are frozen now.

Bug: 36169790
Test: Verified the fix with regression tests: b/37528903.
Change-Id: I214097fcb399cef7fc0cbd2c278622fac259a3e3

7 years agoFix VtsHalDrmV1_0Target test failure
Jeff Tinker [Mon, 24 Apr 2017 23:29:01 +0000 (16:29 -0700)]
Fix VtsHalDrmV1_0Target test failure

DrmHalVendorFactoryTest.EmptyPluginUUIDNotSupported
was failing on 64 bit builds. The test was using
an uninitialized hidl_array as the empty UUID which
was incorrect. This change initializes the array
contents to null values.

Test: drm hal tests pass

bug: 37172151
Change-Id: I0acb86921f0daceba30fa7879980ce819db64a74

7 years agoChange bootHAL to early_hal class
Wei Wang [Mon, 24 Apr 2017 17:13:31 +0000 (10:13 -0700)]
Change bootHAL to early_hal class

Bug: 37579828
Bug: 37543411
Test: marlin boots with wipe data
Change-Id: Ifa508570455289efd58350562fadea5676c3bc67

7 years agoMerge "Fix failing VTS test cases" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 17:19:57 +0000 (17:19 +0000)]
Merge "Fix failing VTS test cases" into oc-dev

7 years agoAdding missing NI_TYPE for emergency SUPL
Wyatt Riley [Fri, 21 Apr 2017 13:52:42 +0000 (06:52 -0700)]
Adding missing NI_TYPE for emergency SUPL

Bug: 37409476
Test: Builds, and on Pixel, basic GPS & XTRA tests pass.
Partners & Pixel team running the SUPL emergency tests.

Change-Id: I6b23608e82dc1682d61a516ab5045d3b78b53cae

7 years agoautomotive: Adjust tests for libui gralloc flags change
Chris Forbes [Wed, 19 Apr 2017 23:09:51 +0000 (16:09 -0700)]
automotive: Adjust tests for libui gralloc flags change

Change-Id: Ia88d8fc664196eae7153ccfb755ea9c3d135fd0c
Bug: b/33350696
Test: Bullhead: booted to launcher, take photo, watch youtube

7 years agocamera: Adjust for libui gralloc flags change
Chris Forbes [Wed, 19 Apr 2017 23:09:26 +0000 (16:09 -0700)]
camera: Adjust for libui gralloc flags change

Change-Id: Ia09737c28a78a8a50a9f751ed2774299ecc3d58c
Bug: b/33350696
Test: Bullhead: booted to launcher, take photo, watch youtube

7 years agoFix failing VTS test cases
Pavel Maltsev [Thu, 20 Apr 2017 20:10:54 +0000 (13:10 -0700)]
Fix failing VTS test cases

Also, increase number of binder threads in VHAL for performance testing

Fix: b/37543801, b/36778517
Bug: b/36510399

Test: make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalAutomotiveVehicleV2_0Host -l INFO && adb shell /data/nativetest64/android.hardware.automotive.vehicle@2.0-manager-unit-tests/android.hardware.automotive.vehicle@2.0-manager-unit-tests
Change-Id: I850c6be328f1a07ae3fda898a18137c76afe3115

7 years agoMerge "Clarifying comments and todos, update current.txt." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 15:39:25 +0000 (15:39 +0000)]
Merge "Clarifying comments and todos, update current.txt." into oc-dev

7 years agoMerge "audio hal: initialize audio patch handle" into oc-dev
Steve Paik [Fri, 21 Apr 2017 15:03:59 +0000 (15:03 +0000)]
Merge "audio hal: initialize audio patch handle" into oc-dev

7 years agoMerge "Make setTimeLapseConfig take frequencies instead of periods." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 09:58:42 +0000 (09:58 +0000)]
Merge "Make setTimeLapseConfig take frequencies instead of periods." into oc-dev

7 years agoMerge "media: Add getStopTimeOffsetUs in GraphicBufferSource." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 04:46:44 +0000 (04:46 +0000)]
Merge "media: Add getStopTimeOffsetUs in GraphicBufferSource." into oc-dev

7 years agoMake setTimeLapseConfig take frequencies instead of periods.
Pawin Vongmasa [Thu, 20 Apr 2017 12:08:15 +0000 (05:08 -0700)]
Make setTimeLapseConfig take frequencies instead of periods.

Test: Manual use of Camera, Movies, Photos and YouTube apps.

Test: With CtsMediaTestCases.apk installed,
adb shell am instrument -e size small -w
'android.media.cts/android.support.test.runner.AndroidJUnitRunner'

Bug: 37302530
Change-Id: I63ba807955c2e2a7ec7f6ecc2d8a832f252c0c1b

7 years agomedia: Add getStopTimeOffsetUs in GraphicBufferSource.
Hangyu Kuang [Wed, 5 Apr 2017 18:32:31 +0000 (11:32 -0700)]
media: Add getStopTimeOffsetUs in GraphicBufferSource.

Test: Compiles
Bug: 35925528
Change-Id: Ie469e42c986211540880f04a5e47efc090817ba8

7 years agoaudio hal: initialize audio patch handle
Derek Chen [Mon, 3 Apr 2017 23:00:50 +0000 (19:00 -0400)]
audio hal: initialize audio patch handle

Initialize audio patch handle to avoid
uninitialized value causing validation
failure in vendor hal audio patch.

Bug: 36994757
Test: Initiate voice call, no audio heard from other end

Change-Id: I4cf57210432430af89109f605813645ff332bfbb

7 years agoAdd missing document for supplicant hal, current.txt.
Ningyuan Wang [Thu, 13 Apr 2017 22:40:26 +0000 (15:40 -0700)]
Add missing document for supplicant hal, current.txt.

**Note, hashes are being modified in place ONLY
because this interface has not yet been released
in a release of Android.

This adds additional information for setEapPhase2Method().
This also adds the missing error type for find(), stopFind(), and
reject().

Bug: 37254796
Test: compile
Change-Id: I35735a7ec6ca5d490219bb176f1d6c727432113f

7 years agoImprove logger feature set handling
Randy Pan [Thu, 20 Apr 2017 17:03:41 +0000 (10:03 -0700)]
Improve logger feature set handling

Some devices don't support querying logger feature set. In that
case set the logger feature set value to 0 instead of failing
the query for regular WiFi feature set.

Bug: 37105075
Bug: 37483427
Test: get battery stats on Fugu.
Change-Id: I3e162f8ddeaaa1965b41518592a253c6c90ddfa7

7 years agoAdd capabilities for wifi_hal_legacy
Randy Pan [Thu, 13 Apr 2017 17:00:34 +0000 (10:00 -0700)]
Add capabilities for wifi_hal_legacy

Bug: 37105075
Bug: 37483427
Test: Fugu Wifi VendorHal initializes successfully
Change-Id: If30aa641e42a9a4be435db97f36af4d172eb8ebe

7 years agoClarifying comments and todos, update current.txt.
Wyatt Riley [Tue, 18 Apr 2017 20:20:06 +0000 (13:20 -0700)]
Clarifying comments and todos, update current.txt.

**Note, hashes are being modified in place ONLY
because this interface has not yet been released
in a release of Android.

Updated comments for clarity nearby
some removed todo's on telephony APN
and GNSS demodulated satellite data bits.

Fixes: 34108918
Test: Built & run on Pixel, GPS & XTRA pass.

Change-Id: Ia67be4c4c095479bbbf001987c1629b57ca864a5

7 years agoFinish adding manufacturer and model to device ID attestation
Bartosz Fabianowski [Thu, 20 Apr 2017 02:47:40 +0000 (04:47 +0200)]
Finish adding manufacturer and model to device ID attestation

This is a follow-up to change I5a9fd839497976cdb1e44cbe4a2d5b7730732b4c,
where manufacturer and model were added to the set of attestable device
IDs.

Bug: 37522655
Test: GTS com.google.android.gts.security.DeviceIdAttestationHostTest

Change-Id: Ied4246f4fc490feb2093f04c268aab83c8e1326d

7 years agoMerge "graphics: keep mapper valid during process termination" into oc-dev
Chia-I Wu [Wed, 19 Apr 2017 22:41:07 +0000 (22:41 +0000)]
Merge "graphics: keep mapper valid during process termination" into oc-dev

7 years agoMerge "Add current.txt" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 21:59:24 +0000 (21:59 +0000)]
Merge "Add current.txt" into oc-dev

7 years agographics: keep mapper valid during process termination
Chia-I Wu [Wed, 19 Apr 2017 18:03:00 +0000 (11:03 -0700)]
graphics: keep mapper valid during process termination

GraphicBufferMapper is valid during process termination.  IMapper
must stay valid as well.  It should not rely on global/static
objects that may have been destructed.

Bug: 37480313
Test: libgui_test
Change-Id: Icb8079153306f2465c26c0f1ce812895ad83f21b

7 years agoMerge "Audio primary hal: fix member function used before init" into oc-dev
Eric Laurent [Wed, 19 Apr 2017 17:43:49 +0000 (17:43 +0000)]
Merge "Audio primary hal: fix member function used before init" into oc-dev

7 years agoAudio primary hal: fix member function used before init
Kevin Rocard [Wed, 19 Apr 2017 16:32:21 +0000 (09:32 -0700)]
Audio primary hal: fix member function used before init

prepare for write was refactor by Ib4170eb6a9f88f9352d0912083b43d600771bb8e
to use temporary variable in a rai pattern.
Nevertheless the member variable was still used too early in
prepareForRead resulting in a crash for capture.

Test: assistant, camcorder
Bug: 37492059

Change-Id: I08140834959c440798cd40700dd089adca2f3e40
Signed-off-by: Kevin Rocard <krocard@google.com>
7 years agoAdd current.txt
Steven Moreland [Wed, 19 Apr 2017 05:27:41 +0000 (22:27 -0700)]
Add current.txt

Test: make all modules
Test: changing frozen module causes breakage
Test: chaging unfrozen module doesn't cause breakage
Bug: 34178341
Change-Id: Ie8e7f032ab607e0bb76c8515fba5ea0ea4e80ae9

7 years agoMerge "Fix test case for setSimCardPower radio api." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 03:04:03 +0000 (03:04 +0000)]
Merge "Fix test case for setSimCardPower radio api." into oc-dev

7 years agoMerge changes from topic 'vts-audio-fix' into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 00:44:33 +0000 (00:44 +0000)]
Merge changes from topic 'vts-audio-fix' into oc-dev

* changes:
  Audio HAL: Destroy EventFlag on failed prepareTo{write,read}
  Audio HAL: Check for buffer size overflow
  Audio HAL: Detect buffer memory allocation failure
  Audio HAL: Detect openDevice failure
  Audio HAL VTS: Fix documentation

7 years agoMerge "Use IBinder to identify callbacks in VHAL" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 23:23:09 +0000 (23:23 +0000)]
Merge "Use IBinder to identify callbacks in VHAL" into oc-dev

7 years agoUse IBinder to identify callbacks in VHAL
Pavel Maltsev [Wed, 12 Apr 2017 18:59:32 +0000 (11:59 -0700)]
Use IBinder to identify callbacks in VHAL

Right now there's no way to distinguish multiple clients, thus we cannot
associate IVehicleCallback from subscribe and unsubscribe method. As a
temporary solution we will use pointer to IBinder from underlying proxy
object until HILD will have some API to do that.

Test: verified unit tests run, checked that subsequent 'subscribe' calls
do not create new client objects in VHAL

Bug: b/37254245
Change-Id: I029564b7b03e4821287c2110d0929a5c4cbce0ce

7 years agoMerge "audio hal: explicitly import headers" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 13:06:59 +0000 (13:06 +0000)]
Merge "audio hal: explicitly import headers" into oc-dev

7 years agoMerge "Write VTS target test for Configstore HAL" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 05:49:41 +0000 (05:49 +0000)]
Merge "Write VTS target test for Configstore HAL" into oc-dev

7 years agoMerge "Add IScheduleTest for VTS libhwbinder scheduler test" into oc-dev
PO HUNG CHEN [Tue, 18 Apr 2017 02:20:31 +0000 (02:20 +0000)]
Merge "Add IScheduleTest for VTS libhwbinder scheduler test" into oc-dev

7 years agoMerge "Remove dependency of libhardware_legacy from HAL services" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 00:26:32 +0000 (00:26 +0000)]
Merge "Remove dependency of libhardware_legacy from HAL services" into oc-dev

7 years agoFix test case for setSimCardPower radio api.
Sanket Padawe [Tue, 18 Apr 2017 00:05:01 +0000 (17:05 -0700)]
Fix test case for setSimCardPower radio api.

Bug: 35800570
Test: vts
Change-Id: I93e78c46971158cd14666931b527d8e268e0a39e

7 years agoaudio hal: explicitly import headers
Steven Moreland [Mon, 17 Apr 2017 21:35:45 +0000 (14:35 -0700)]
audio hal: explicitly import headers

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

7 years agoMerge "Adding a custom property to the default VHAL impl" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 20:57:37 +0000 (20:57 +0000)]
Merge "Adding a custom property to the default VHAL impl" into oc-dev

7 years agoAdding a custom property to the default VHAL impl
Pavel Maltsev [Tue, 11 Apr 2017 19:42:28 +0000 (12:42 -0700)]
Adding a custom property to the default VHAL impl

This property is supposed to be used mostly from e2e tests (a simple
test-case is provided in separate CL)

Test: make -j && runtest -x packages/services/Car/tests/vehiclehal_test/

Bug: b/36510399
Change-Id: I09b24f22ab328eee1ef6add60901ed03bf046874

7 years agoAdd IScheduleTest for VTS libhwbinder scheduler test
Howard Chen [Fri, 7 Apr 2017 12:15:28 +0000 (20:15 +0800)]
Add IScheduleTest for VTS libhwbinder scheduler test

Add IScheduleTest.hal:
    send(cfg, callerSta)
cfg: 1 for verbose output
caller_status:  (caller_rt_priority <<16 )| caller_cpu

with the return value defined as:
((1 if no priority inheritance)<<16) | (1 if no cpu sync)
The implementation is in ScheduleTest.cpp

Bug:36705188
Test: sailfish/prebuilt kernel/oc-dev with the libhwbinder_latency
  vts test case
Change-Id: Ie2a837c8d0d4fa95c6fd0ebd50e76412cb808df8

7 years agoWrite VTS target test for Configstore HAL
Jae Shin [Thu, 13 Apr 2017 09:35:41 +0000 (18:35 +0900)]
Write VTS target test for Configstore HAL

Bug: 35915192
Test: make vts -j40 && vts-tradefed run commandAndExit vts
--module VtsHalConfigstoreV1_0Target

Change-Id: I85692a0cf140b62adaa6b5384fea6d3b4090ba98

7 years agoMerge "Remove dependency of libhardware_legacy" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 03:05:09 +0000 (03:05 +0000)]
Merge "Remove dependency of libhardware_legacy" into oc-dev

7 years agoMerge "dumpstate hal: use vendor toybox" into oc-dev
TreeHugger Robot [Sun, 16 Apr 2017 14:00:48 +0000 (14:00 +0000)]
Merge "dumpstate hal: use vendor toybox" into oc-dev

7 years agoMerge "VtsHalDrmV1_0Target test failure" into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 07:53:26 +0000 (07:53 +0000)]
Merge "VtsHalDrmV1_0Target test failure" into oc-dev

7 years agoRemove dependency of libhardware_legacy
Hung-ying Tyan [Sat, 15 Apr 2017 05:16:52 +0000 (13:16 +0800)]
Remove dependency of libhardware_legacy

It is not used by bluetooth and nfc services.
Bug: 33241851
Bug: 37305530
Test: built and tested on sailfish

Change-Id: I599073296baa5eee72a1fce8caa4eb8352f66218
Merged-In: I599073296baa5eee72a1fce8caa4eb8352f66218

7 years agognss@1.0-service: drop inet group, add gps group
Iliyan Malchev [Fri, 14 Apr 2017 02:32:43 +0000 (19:32 -0700)]
gnss@1.0-service: drop inet group, add gps group

Both system and gps groups might be relevant to the implementation of a
GNSS HAL.

b/36651420 [QCOM Treble] marlin/sailfish location daemon uses Binder
b/36085168 STOPSHIP - HAL (GNSS) cannot have internet access
b/35757613 STOPSHIP:  O GNSS TTFF - Regressed to Cold Start (XTRA
   broken) (revert SELinux Change)

Test: marlin

Change-Id: I8aa5b18ef094b8540e7838174154f060a0c3fa9a
Merged-In: I8aa5b18ef094b8540e7838174154f060a0c3fa9a
Signed-off-by: Iliyan Malchev <malchev@google.com>
7 years agoRemove dependency of libhardware_legacy from HAL services
Hung-ying Tyan [Fri, 14 Apr 2017 04:43:56 +0000 (12:43 +0800)]
Remove dependency of libhardware_legacy from HAL services

It is not used by these services.

Bug: 33241851
Bug: 37305530
Test: built and tested on sailfish
Change-Id: I1f3f51981d7dfcf27e18d9495c747b7662867d31

7 years agodumpstate hal: use vendor toybox
Sandeep Patil [Sat, 15 Apr 2017 02:09:29 +0000 (19:09 -0700)]
dumpstate hal: use vendor toybox

Bug: 36463595
Test: Dumpstate works

Change-Id: I9f79924fe6c2c7624f97ce24dcf95f61ee165146
Signed-off-by: Sandeep Patil <sspatil@google.com>
7 years agoMerge "Use fmq for camera capture result." into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 23:42:53 +0000 (23:42 +0000)]
Merge "Use fmq for camera capture result." into oc-dev

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 agoVtsHalDrmV1_0Target test failure
Jeff Tinker [Fri, 14 Apr 2017 23:05:11 +0000 (16:05 -0700)]
VtsHalDrmV1_0Target test failure

The DrmHalVendorPluginTest.RestoreKeysClosedSession test wasn't
taking into account the policy of the asset, so both streaming
and offline assets were included in the test which is incorrect.

Test: drm vts test passes

bug:37358379
Change-Id: I41116e77a1ae306bb1a484e3714360c8553590f0

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 agoUse fmq for camera capture result.
Yifan Hong [Wed, 12 Apr 2017 23:31:23 +0000 (16:31 -0700)]
Use fmq for camera capture result.

Test: camera works.

Bug: 35788245 [Treble] Pass camera metadata using shared memory

Change-Id: Ia8ba8ac4c8f7d1a89035f549c0281a30190554bb

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