android/platform-hardware-interfaces.git
3 years agoUse -Werror in hardware/interfaces/dumpstate/1.0/default
Chih-Hung Hsieh [Wed, 8 Nov 2017 21:36:57 +0000 (13:36 -0800)]
Use -Werror in hardware/interfaces/dumpstate/1.0/default

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ic91f44e7410fd5bd8d1231f886a526a5e21a2eae

3 years agoMerge "Automatic mk -> bp."
Treehugger Robot [Tue, 7 Nov 2017 21:12:59 +0000 (21:12 +0000)]
Merge "Automatic mk -> bp."

3 years agographics: add OWNERS file to default implementations
Chia-I Wu [Tue, 7 Nov 2017 16:48:34 +0000 (08:48 -0800)]
graphics: add OWNERS file to default implementations

Test: none
Change-Id: I76a3c84a1fcb61dffa4641ec2120e484752bdf5b

3 years agographics: support FB HAL using HWC2OnFbAdapter
Chia-I Wu [Thu, 19 Oct 2017 16:49:03 +0000 (09:49 -0700)]
graphics: support FB HAL using HWC2OnFbAdapter

FB (framebuffer) HAL has been replaced by HWC HAL for 5+ years, but
we still support the legacy path in SurfaceFlinger.  Devices using
the legacy path cannot be Treblized.

This change allows such devices to use HIDL IComposer, by adding
support for FB HAL in the default implementation.

Test: boots hikey960
Change-Id: Ie9050bbcaac0fd5b134786f4f9f0f5075f4ebd0c

3 years agographics: require validateDisplay after onRefresh
Chia-I Wu [Fri, 6 Oct 2017 19:29:14 +0000 (12:29 -0700)]
graphics: require validateDisplay after onRefresh

After initialization or onRefresh, we want to make sure
validateDisplay is called before presentDisplay.

Bug: 67505273
Test: manual
Change-Id: Id876d9251586aaaf552ca82c52f8f902af364251

3 years agoGuard against racy ComposerClient reconnection
Steven Thomas [Fri, 7 Jul 2017 19:34:20 +0000 (12:34 -0700)]
Guard against racy ComposerClient reconnection

The hardware composer service has a rule that only one client can be
connected at a time. The surface flinger process, when transitioning
composer ownership from surface flinger to vr flinger, will destroy the
current client on one thread and create a new client on another
thread. Although surface flinger ensures that these events happen in the
expected sequence (delete then create), the requests sometimes land in
the hardware composer service in inverted order, causing the creation
request to fail with an error.

Instead of failing with an error, block for a brief period (1 second)
until the existing client is removed, then proceed to initialize the new
client. This gives us enough time to ensure an inverted
creation/destruction order doesn't cause client creation to fail, while
avoiding a deadlock if the existing client is never destroyed.

Bug: 62925812

Test: - Transitioned to/from vr flinger hundreds of times, and confirmed
I no longer see sporadic composer client creation failure due to an
already existing client.

- Ran the vts graphics composer tests and confirmed they all pass.

Change-Id: I40be1fb0cb3d42ddb5a9fc159188886e9f5b6267

3 years agoMerge "dumpstate mk -> bp"
Treehugger Robot [Mon, 6 Nov 2017 17:56:38 +0000 (17:56 +0000)]
Merge "dumpstate mk -> bp"

3 years agoAutomatic mk -> bp.
Steven Moreland [Thu, 2 Nov 2017 21:16:29 +0000 (14:16 -0700)]
Automatic mk -> bp.

Automatic mk -> bp conversion for all modules here
which can be converted and built automatically.

Test: Soong resolves all dependencies
Bug: 37512442
Change-Id: Ib789212cb88d55731397c600d132e7c672c0d8be

3 years agoMerge "vts test for 1.2"
Sooraj Sasindran [Fri, 3 Nov 2017 00:32:21 +0000 (00:32 +0000)]
Merge "vts test for 1.2"

3 years agodumpstate mk -> bp
Steven Moreland [Thu, 2 Nov 2017 22:23:23 +0000 (15:23 -0700)]
dumpstate mk -> bp

Test: compilation finds dependencies
Bug: 37512442
Change-Id: Ib207c2163a07dea03c096283d10b00af966a1728

3 years agovts test for 1.2
Sooraj Sasindran [Thu, 26 Oct 2017 21:08:55 +0000 (14:08 -0700)]
vts test for 1.2

Add VTS test for 1.2 interface

Test: verfied the test with a dummy radio service

Bug:67750232
Change-Id: Ieac680a303c79a9d4c8b314112121303b3aebcce

3 years agoMerge "Update makefiles after AOSP push."
Treehugger Robot [Thu, 2 Nov 2017 20:39:30 +0000 (20:39 +0000)]
Merge "Update makefiles after AOSP push."

3 years agoMerge "Remove unnecessary Android.mk"
Treehugger Robot [Thu, 2 Nov 2017 04:18:28 +0000 (04:18 +0000)]
Merge "Remove unnecessary Android.mk"

3 years agoRemove unnecessary Android.mk
Steven Moreland [Wed, 1 Nov 2017 23:44:07 +0000 (16:44 -0700)]
Remove unnecessary Android.mk

Doesn't do anything. Just when I thought I get rid of them all.

Test: none
Change-Id: Iac559e41ea5557e99490fa439af9d720e2d9075a

3 years agoUpdate makefiles after AOSP push.
Steven Moreland [Wed, 1 Nov 2017 23:42:15 +0000 (16:42 -0700)]
Update makefiles after AOSP push.

Test: none
Change-Id: If3ce74f4d2250d33820cbd864ff56bba6f9e6b67

3 years agoMerge "Added CellIdentity struct in types.hal"
Treehugger Robot [Wed, 1 Nov 2017 22:30:33 +0000 (22:30 +0000)]
Merge "Added CellIdentity struct in types.hal"

3 years agoAdded CellIdentity struct in types.hal
Cassie [Thu, 26 Oct 2017 22:51:48 +0000 (15:51 -0700)]
Added CellIdentity struct in types.hal

This change was made because the new scan API needs to include the human
readable operator name other than PLMN in the scan results.
In order to let teh operator name used by other structures and APIS, we added
the operator name alphaLong and alphaShort, which were actually included
in the OperatorInfo, into the CellIdentity.

Bug: 63984327
Test: Basic telephony sanity
Change-Id: I498b7f190b739c92975fe797e1c74e96d90ee823

3 years agoAdds test cases to stress marshaling of primitive array types and
Andreas Huber [Tue, 31 Oct 2017 19:54:27 +0000 (12:54 -0700)]
Adds test cases to stress marshaling of primitive array types and

vectors of thereof.

Bug: 68654583
Test: hidl_test_java
Change-Id: Id498fe9b1e153512be294c39aff783f7d0600219

3 years agoFix cpp style cast and variable name
Jae Shin [Fri, 20 Oct 2017 08:28:41 +0000 (17:28 +0900)]
Fix cpp style cast and variable name

Test: run vts -m VtsHalRenderscriptV1_0TargetTest
Change-Id: I0c902aea13da7d4af2357ec42d8f712fda7269d4

3 years agoLoad libRS_internal.so from the rs namespace
Jiyong Park [Wed, 16 Aug 2017 14:30:42 +0000 (23:30 +0900)]
Load libRS_internal.so from the rs namespace

Bug: 64747884
Test: VtsHalRenderscriptV1_0TargetTest successful on the device built
with BOARD_VNDK_VERSION=current and [system] namespace config is applied
to /data/nativetest[64]/* processes.

Merged-In: I9e967c80ac2dba718cd47e1f378bcbf18abe9ad2
Change-Id: I9e967c80ac2dba718cd47e1f378bcbf18abe9ad2
(cherry picked from commit a7ef697a0a520015f961012d53d852a8cece20df)

3 years agoUse -Werror in hardware/interfaces
Chih-Hung Hsieh [Wed, 25 Oct 2017 23:18:46 +0000 (16:18 -0700)]
Use -Werror in hardware/interfaces

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I2b8572a3480434f9dad2ae4f8a608ed82281cc68

3 years agoMerge "Update Light extension example to match docs."
Steven Moreland [Wed, 18 Oct 2017 03:26:39 +0000 (03:26 +0000)]
Merge "Update Light extension example to match docs."
am: fed3134fa0

Change-Id: I5f33d024ab2747a736c39c9cf712c0c52617cf6b

3 years agoMerge "Update Light extension example to match docs."
Treehugger Robot [Wed, 18 Oct 2017 03:22:17 +0000 (03:22 +0000)]
Merge "Update Light extension example to match docs."

3 years agoMerge "Set pipe size to >1MB for debugDump test cases."
Tri Vo [Wed, 18 Oct 2017 02:21:29 +0000 (02:21 +0000)]
Merge "Set pipe size to >1MB for debugDump test cases."
am: d928053397

Change-Id: If7cca83c1da491e5c399170e2669995e878fdc57

3 years agoMerge "Set pipe size to >1MB for debugDump test cases."
Treehugger Robot [Wed, 18 Oct 2017 02:10:42 +0000 (02:10 +0000)]
Merge "Set pipe size to >1MB for debugDump test cases."

3 years agoUpdate Light extension example to match docs.
Steven Moreland [Tue, 17 Oct 2017 01:29:46 +0000 (18:29 -0700)]
Update Light extension example to match docs.

This light extension example was more of a POC. Now it
matches the suggestions for minor version requirements
and vendor extensions that are spelled out in publically
available documentation.

This includes things like:
- taking advantage of namespacing rather than renaming things
- adding documentation when extension differs from what a minor
  version extension should be
- importing things specifically rather than dumping namespaces
  into the types.hal file

Test: compilation only -- it doesn't do anything
Change-Id: Ia1bf9baaddcb630cc1b6cd4fe272def0c7c492e9
Fixes: 67787567

3 years agoUse -Werror in hardware/interfaces
Chih-Hung Hsieh [Wed, 18 Oct 2017 00:17:51 +0000 (00:17 +0000)]
Use -Werror in hardware/interfaces
am: ceb435f2ba

Change-Id: I34ad0374c02d3733e7901a8296d229f74313fb52

3 years agoSet pipe size to >1MB for debugDump test cases.
Tri Vo [Tue, 17 Oct 2017 18:07:29 +0000 (11:07 -0700)]
Set pipe size to >1MB for debugDump test cases.

Test: VtsHalAudioV2_0Target
Change-Id: I2dd43851a43609ad2953030303edaeb684b63096

3 years agoUse -Werror in hardware/interfaces
Chih-Hung Hsieh [Thu, 5 Oct 2017 05:22:46 +0000 (22:22 -0700)]
Use -Werror in hardware/interfaces

* Fix warning of unused result.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I68e35ddcdeec4290b075ececf14f82335b43e22e

3 years agoMerge "Enhanced network scan request"
Sooraj Sasindran [Tue, 17 Oct 2017 06:11:13 +0000 (06:11 +0000)]
Merge "Enhanced network scan request"
am: 8e5f008ae6

Change-Id: I8903402f50c64b475ccda3839f0175fb2eaa12f6

3 years agoMerge "Enhanced network scan request"
Sooraj Sasindran [Tue, 17 Oct 2017 06:03:31 +0000 (06:03 +0000)]
Merge "Enhanced network scan request"

3 years agoEnhanced network scan request
Sooraj Sasindran [Thu, 20 Jul 2017 09:28:44 +0000 (02:28 -0700)]
Enhanced network scan request

Bug=63865942

Test: Verified by making changes in settings app to call the api
      and confirmed that the new information is delivered to verndor
      code

Change-Id: I38f5e88302268bdda7483f5bc96bf8a72b940208

3 years agoRename libkeymaster to libkeymaster_staging
Janis Danisevskis [Mon, 16 Oct 2017 01:32:50 +0000 (01:32 +0000)]
Rename libkeymaster to libkeymaster_staging
am: 8cd5614c12  -s ours

Change-Id: I46c0d6d745171ee77a74fb4a183b9121be89d12b

3 years agolibkeymaster1 split to libkeymaster and _portable
Janis Danisevskis [Mon, 16 Oct 2017 01:32:45 +0000 (01:32 +0000)]
libkeymaster1 split to libkeymaster and _portable
am: ab887a4433  -s ours

Change-Id: I0e5c0ab09b96bd6888178fbba2148fcb49117cff

3 years agoRename libkeymaster to libkeymaster_staging
Janis Danisevskis [Thu, 4 May 2017 21:05:06 +0000 (14:05 -0700)]
Rename libkeymaster to libkeymaster_staging

Fix a build breakage by renaming libkeymaster to
libkeymaster_staging. fugu's vendor tree already had
a libkeymaster.so which masked system/keymaster/libkeymaster.

Bug: 37997750
Test: mma -j
Merged-In: Ie478726bf81e965be64fb913844b881064e9b66c
Change-Id: Ie478726bf81e965be64fb913844b881064e9b66c
(cherry picked from commit 71ebd5f6b439da81cf43138314814a7d8bd4854a)

3 years agolibkeymaster1 split to libkeymaster and _portable
Janis Danisevskis [Wed, 26 Apr 2017 22:05:37 +0000 (15:05 -0700)]
libkeymaster1 split to libkeymaster and _portable

libkeyamster1 was split into libkeymaster and
libkeymaster_portable.
Also removed UniquePtr usage from keymaster hal.

Bug: 37467707
Test: keymaster vts test and keystore cts test
Merged-In: Ic660586d3d9cfd20022a9c694f276da89e796e5d
(cherry picked from commit 85e15db31987daa6ca36f3f34f13944836822f1b)

Change-Id: I8652f28ac3da1999a774be5e1110c7d2efac5339

3 years agoMerge changes from topic "hidl-test"
Steven Moreland [Sun, 15 Oct 2017 02:57:18 +0000 (02:57 +0000)]
Merge changes from topic "hidl-test"
am: 240f9e1476

Change-Id: Iff52448e0f4f522d5c5cbd59efbd1a734bc95570

3 years agoStatic link test lib shims with test -impl libs.
Zhuoyao Zhang [Sun, 15 Oct 2017 02:57:08 +0000 (02:57 +0000)]
Static link test lib shims with test -impl libs.
am: 38a78e1fa9

Change-Id: I080ccb82bb4b9131e67473b417fefb74e7a65fae

3 years agoMerge "Use a pipe instead of tmp for debugDump tests."
Tri Vo [Sun, 15 Oct 2017 02:56:25 +0000 (02:56 +0000)]
Merge "Use a pipe instead of tmp for debugDump tests."
am: 458b8fa5bd

Change-Id: Ife2cfb8b89c0f550648ea28c339e7278015399c0

3 years agoMerge "Remove invalid annotations from IBaz."
Steven Moreland [Sun, 15 Oct 2017 02:55:32 +0000 (02:55 +0000)]
Merge "Remove invalid annotations from IBaz."
am: e322e7e1aa

Change-Id: I408b9486c4fd801f153d1b2a06559f3882a88a8b

3 years agoMerge "Change tmp dir to /data/system/users/0/fpdata/."
Tri Vo [Sun, 15 Oct 2017 02:54:27 +0000 (02:54 +0000)]
Merge "Change tmp dir to /data/system/users/0/fpdata/."
am: 3f4e982fbc

Change-Id: I7ab1bb0acc25188d8e6ae8b67773d0bcb8eeb1f1

3 years agoMerge "Refactor radio folder for 1.0 and 1.1"
sqian [Sun, 15 Oct 2017 02:54:00 +0000 (02:54 +0000)]
Merge "Refactor radio folder for 1.0 and 1.1"
am: bf758ce382  -s ours

Change-Id: I552ee1e0b8df66d95f4897b5b6663de6ffe0fc3b

3 years agoMerge changes from topic "hidl-test"
Treehugger Robot [Fri, 13 Oct 2017 22:02:31 +0000 (22:02 +0000)]
Merge changes from topic "hidl-test"

* changes:
  Statically link msgq test impl.
  Static link test lib shims with test -impl libs.

3 years agoRefactor radio folder for 1.0 and 1.1
sqian [Tue, 10 Oct 2017 00:16:12 +0000 (17:16 -0700)]
Refactor radio folder for 1.0 and 1.1

Remove unused environment variable.

Test: run vts
Bug: 63760809
Change-Id: Iff7919980d7bbe0e9f8a73a3679d37426faec679
Merged-In: Iff7919980d7bbe0e9f8a73a3679d37426faec679

3 years agoMerge "Use a pipe instead of tmp for debugDump tests."
Treehugger Robot [Fri, 13 Oct 2017 00:31:31 +0000 (00:31 +0000)]
Merge "Use a pipe instead of tmp for debugDump tests."

3 years agoStatically link msgq test impl.
Steven Moreland [Thu, 12 Oct 2017 23:20:53 +0000 (16:20 -0700)]
Statically link msgq test impl.

Also statically include it in the service binary.

Test: fmq_test
Bug: 67500459
Change-Id: Ia8728308dbce9acbdeafa8b2a56fd007be8c0832

3 years agoStatic link test lib shims with test -impl libs.
Zhuoyao Zhang [Wed, 11 Oct 2017 00:53:09 +0000 (17:53 -0700)]
Static link test lib shims with test -impl libs.

* So that vts no longer needs to push the shim libs in hidl test.

Bug: 67500459
Test: make vts
      vts-tradefed run vts -m VtsHidlUnitTest
Change-Id: I52ad066370f08a461b848d7d96dc4a659eb2da4d

3 years agoUse a pipe instead of tmp for debugDump tests.
Tri Vo [Thu, 12 Oct 2017 22:47:32 +0000 (15:47 -0700)]
Use a pipe instead of tmp for debugDump tests.

Audio hal does not have selinux permissions to files under
/data/locat/tmp. We pass an fd to a pipe to the HAL instead.

Bug: 67665722
Test: VtsHalAudioV2_0Target
Change-Id: I695917be1816ba007f48afab5e978ab31024ffba

3 years agoMerge "Remove invalid annotations from IBaz."
Treehugger Robot [Thu, 12 Oct 2017 19:34:34 +0000 (19:34 +0000)]
Merge "Remove invalid annotations from IBaz."

3 years agoMerge "Change tmp dir to /data/system/users/0/fpdata/."
Tri Vo [Thu, 12 Oct 2017 16:08:05 +0000 (16:08 +0000)]
Merge "Change tmp dir to /data/system/users/0/fpdata/."

3 years agoMerge "Refactor radio folder for 1.0 and 1.1"
Treehugger Robot [Thu, 12 Oct 2017 01:57:19 +0000 (01:57 +0000)]
Merge "Refactor radio folder for 1.0 and 1.1"

3 years agoMerge "health@2.0: IHealthInfoCallback expands HealthInfo struct."
Yifan Hong [Thu, 12 Oct 2017 01:56:01 +0000 (01:56 +0000)]
Merge "health@2.0: IHealthInfoCallback expands HealthInfo struct."
am: f2f00cb742

Change-Id: Iad21de674c7dc04a19727adc81ff931923e93e4a

3 years agoMerge "health@2.0: IHealthInfoCallback expands HealthInfo struct."
Treehugger Robot [Thu, 12 Oct 2017 01:47:57 +0000 (01:47 +0000)]
Merge "health@2.0: IHealthInfoCallback expands HealthInfo struct."

3 years agohealth@2.0: IHealthInfoCallback expands HealthInfo struct.
Yifan Hong [Tue, 10 Oct 2017 19:18:53 +0000 (12:18 -0700)]
health@2.0: IHealthInfoCallback expands HealthInfo struct.

IHealthInfoCallback reports more information, so that
BatteryService can send these fields to BatteryManager in framework.

Test: builds
Bug: 62229583
Change-Id: Ieacd4acabc3e0870d0d2fed04dad9d8c3255986b
Merged-In: Ieacd4acabc3e0870d0d2fed04dad9d8c3255986b

3 years agoRemove invalid annotations from IBaz.
Steven Moreland [Thu, 12 Oct 2017 00:21:41 +0000 (17:21 -0700)]
Remove invalid annotations from IBaz.

Test: pass
Change-Id: I8e39b510b724c0415a1cab523623bffd9f07f352

3 years agoRefactor radio folder for 1.0 and 1.1
sqian [Wed, 11 Oct 2017 22:10:14 +0000 (15:10 -0700)]
Refactor radio folder for 1.0 and 1.1

Remove unused environment variable.

Test: run vts
Bug: 63760809
Change-Id: Iff7919980d7bbe0e9f8a73a3679d37426faec679
Merged-In: Iff7919980d7bbe0e9f8a73a3679d37426faec679

3 years agoChange tmp dir to /data/system/users/0/fpdata/.
Tri Vo [Wed, 11 Oct 2017 21:51:56 +0000 (14:51 -0700)]
Change tmp dir to /data/system/users/0/fpdata/.

FP hal service can now access test tmp files without selinux denials.

Bug: 67665189
Test: VtsHalBiometricsFingerprintV2_1Target
Change-Id: Ie0a46513524c27bdb7bb42b08eabb57e943b26c6

3 years agolibhwminijail from hardware/interfaces to libhidl.
Steven Moreland [Wed, 11 Oct 2017 20:20:22 +0000 (20:20 +0000)]
libhwminijail from hardware/interfaces to libhidl.
am: dbdd881240

Change-Id: I0d911cf7ad0cfccac26c13423a447328aa5ac626

3 years agolibhwminijail from hardware/interfaces to libhidl.
Steven Moreland [Wed, 11 Oct 2017 18:18:41 +0000 (11:18 -0700)]
libhwminijail from hardware/interfaces to libhidl.

This library is not a hardware interface, so it doesn't
belong directly in hardware/interfaces. Moving it to
libhidl because it is intended to be a helper library for
hal implementations that want to use minijail/seccomp.

Test: pass
Change-Id: I3f9503f491788492c6692d6584eb088e47862c7a

3 years agoUpdate for Soong java makefiles.
Steven Moreland [Wed, 11 Oct 2017 16:23:54 +0000 (16:23 +0000)]
Update for Soong java makefiles.
am: c3e80fa01e

Change-Id: Ia8835f9c95bd98a96f5fd3aff11191e7d3726fb9

3 years agoUpdate for Soong java makefiles.
Steven Moreland [Tue, 10 Oct 2017 18:05:20 +0000 (11:05 -0700)]
Update for Soong java makefiles.

Test: pass
Bug: 33420795
Change-Id: Id9b1919a19b8ff682738cfb0869a479b4dbb4293

3 years agoMerge "Replace sys_nice capability with rlimit rtprio"
Peng Xu [Fri, 6 Oct 2017 20:19:30 +0000 (20:19 +0000)]
Merge "Replace sys_nice capability with rlimit rtprio"
am: b74728a92e

Change-Id: I6d9146fc90975ec116862cb43a6654786c429503

3 years agoMerge "Replace sys_nice capability with rlimit rtprio"
Peng Xu [Fri, 6 Oct 2017 20:13:35 +0000 (20:13 +0000)]
Merge "Replace sys_nice capability with rlimit rtprio"

3 years agoMerge changes from topic "health2-hal"
Yifan Hong [Fri, 6 Oct 2017 05:09:23 +0000 (05:09 +0000)]
Merge changes from topic "health2-hal"
am: 116fb89f70

Change-Id: Iaf211b338d946619ec6a5daecd02ee85a4648589

3 years agoMerge changes from topic "health2-hal"
Yifan Hong [Fri, 6 Oct 2017 04:56:22 +0000 (04:56 +0000)]
Merge changes from topic "health2-hal"

* changes:
  Revert "health@2.0: Add vts tests."
  Revert "health@2.0 vts: Add missing include"

3 years agoRevert "health@2.0: Add vts tests."
Yifan Hong [Fri, 6 Oct 2017 04:54:17 +0000 (04:54 +0000)]
Revert "health@2.0: Add vts tests."

This reverts commit bb4d60f0ad33f2cfd9a31ee59a8e2f64fc4a1e02.

Reason for revert: break stage aosp master

Change-Id: Ib8678217d34c37d6fff1cc174de3a96295bdeb5f

3 years agoRevert "health@2.0 vts: Add missing include"
Yifan Hong [Fri, 6 Oct 2017 04:54:41 +0000 (04:54 +0000)]
Revert "health@2.0 vts: Add missing include"

This reverts commit b02df7b9e1561018ea249b066eb7a0fe2c30d8ce.

Reason for revert: break stage aosp master

Change-Id: I9c75e24ce2cf9b392bbe4e91446fdc3927e3f5b7

3 years agoMerge "VTS: fix VtsHalKeymasterV3_0Target issue"
Iris Chang [Fri, 6 Oct 2017 01:49:29 +0000 (01:49 +0000)]
Merge "VTS: fix VtsHalKeymasterV3_0Target issue"
am: 1912c73a7f

Change-Id: I781812c77d96a0a7beb832298df8d537ce1d55da

3 years agoMerge "VTS: fix VtsHalKeymasterV3_0Target issue"
Treehugger Robot [Fri, 6 Oct 2017 01:43:54 +0000 (01:43 +0000)]
Merge "VTS: fix VtsHalKeymasterV3_0Target issue"

3 years agohealth@2.0 vts: Add missing include
Yifan Hong [Fri, 6 Oct 2017 01:25:09 +0000 (01:25 +0000)]
health@2.0 vts: Add missing include
am: b02df7b9e1

Change-Id: I5960b19d3e4270589d7980e575029ba89608d7ec

3 years agoVTS: fix VtsHalKeymasterV3_0Target issue
Iris Chang [Thu, 14 Sep 2017 07:23:18 +0000 (15:23 +0800)]
VTS: fix VtsHalKeymasterV3_0Target issue

Failed cases:
AttestationTest.RsaAttestation
AttestationTest.EcAttestation

Analysis:
The verify_attestation_record() in Keymaster_hidl_hal_test.cpp calls
parse_attestation_record() to set the value of att_challenge. It fails
to compare att_challenge with challenge by memcmp.
Because setToExternal() method uses buffer pointer to local variable
(record), not use memcpy to copy into itself buffer in
parse_attestation_record(). When it leaves the parse_attestation_record(),
we will get the att_challenge which is null buffer to compare with challenge
incorrectly.

Fix: use memcpy to copy the buffer.

Bug: 65039571
Test: build passed. VtsHalKeymasterV3_0Target -> PASSED: 106, FAILED: 0.

Change-Id: I700a9242cc9a5f4cb196b62860823601e4088531

3 years agohealth@2.0/vts: add OWNERS
Yifan Hong [Fri, 6 Oct 2017 00:42:56 +0000 (00:42 +0000)]
health@2.0/vts: add OWNERS
am: 8ce66bbbfe

Change-Id: Ia75f7d3ea415276c02d34b2b5f4b09bacbe3078b

3 years agohealth@2.0 vts: Add missing include
Yifan Hong [Fri, 6 Oct 2017 00:42:20 +0000 (17:42 -0700)]
health@2.0 vts: Add missing include

Test: pass
Change-Id: Ibdf7287676653b5f76a42f6aab618e0d7fa4008e

3 years agohealth@2.0/vts: add OWNERS
Yifan Hong [Thu, 5 Oct 2017 20:22:27 +0000 (13:22 -0700)]
health@2.0/vts: add OWNERS

Test: pass
Change-Id: I75ef90b782d9b5429f7928ffbc59650277bea92a

3 years agoReplace sys_nice capability with rlimit rtprio
Peng Xu [Thu, 5 Oct 2017 21:58:08 +0000 (14:58 -0700)]
Replace sys_nice capability with rlimit rtprio

rlimit rtprio is more specific and thus preferred.

Test: HubConnection thread get rtprio in sailfish
Bug: 37291237
Change-Id: I3c7a06cb2964dc3ccb4c3f6fcb4eb33561296af1

3 years agoMerge "Remove useless Android.mk files."
Steven Moreland [Thu, 5 Oct 2017 21:44:26 +0000 (21:44 +0000)]
Merge "Remove useless Android.mk files."
am: 75d5cf515a

Change-Id: I8c0918c4a787cc3f4c7c69f52737d3a0d9d64426

3 years agoMerge "health@2.0: Add vts tests."
Yifan Hong [Thu, 5 Oct 2017 21:42:11 +0000 (21:42 +0000)]
Merge "health@2.0: Add vts tests."
am: ac01ed1ae4

Change-Id: I60051c64808516cf87bf7f0b93134d577f20076d

3 years agoMerge "Remove useless Android.mk files."
Treehugger Robot [Thu, 5 Oct 2017 21:40:27 +0000 (21:40 +0000)]
Merge "Remove useless Android.mk files."

3 years agoMerge "health@2.0: Add vts tests."
Treehugger Robot [Thu, 5 Oct 2017 21:35:20 +0000 (21:35 +0000)]
Merge "health@2.0: Add vts tests."

3 years agohealth@2.0: Add vts tests.
Yifan Hong [Wed, 4 Oct 2017 00:40:24 +0000 (17:40 -0700)]
health@2.0: Add vts tests.

Test: compiles
Test: VtsHalHealthV2_0TargetTest \
--hal_service_instance=android.hardware.health@2.0::IHealth/backup

Bug: 62229583
Change-Id: I79150e1298ceddedea0825c591938cd194eeadb5

3 years agoMerge "Test extension -> Android.bp"
Steven Moreland [Thu, 5 Oct 2017 19:14:19 +0000 (19:14 +0000)]
Merge "Test extension -> Android.bp"
am: d35806414c

Change-Id: I939d2d836ebc530e2805f4c85bb05c00d54dbc5b

3 years agoMerge "Test extension -> Android.bp"
Treehugger Robot [Thu, 5 Oct 2017 19:10:42 +0000 (19:10 +0000)]
Merge "Test extension -> Android.bp"

3 years agoMerge "Convert usb service .mk -> .bp."
Steven Moreland [Thu, 5 Oct 2017 17:38:27 +0000 (17:38 +0000)]
Merge "Convert usb service .mk -> .bp."
am: 16b3e062ce

Change-Id: Ic8011399e470a1c62156c656a0ea1987ed999382

3 years agoMerge "Convert usb service .mk -> .bp."
Treehugger Robot [Thu, 5 Oct 2017 17:33:49 +0000 (17:33 +0000)]
Merge "Convert usb service .mk -> .bp."

3 years agoMerge "Vibrator service -> .bp"
Steven Moreland [Thu, 5 Oct 2017 16:04:02 +0000 (16:04 +0000)]
Merge "Vibrator service -> .bp"
am: 3a8a6f9147

Change-Id: I9369f18c88d8f64b5dfea28245bf102e647db31f

3 years agoMerge "Vibrator service -> .bp"
Treehugger Robot [Thu, 5 Oct 2017 15:59:25 +0000 (15:59 +0000)]
Merge "Vibrator service -> .bp"

3 years agoMerge "Remove Android.bp subdirs loop."
Steven Moreland [Thu, 5 Oct 2017 07:47:03 +0000 (07:47 +0000)]
Merge "Remove Android.bp subdirs loop."
am: a8c16c91cc

Change-Id: I74cd620dee37f7f65b0cef29a38b725afdcaf20e

3 years agoMerge "Remove Android.bp subdirs loop."
Treehugger Robot [Thu, 5 Oct 2017 07:38:52 +0000 (07:38 +0000)]
Merge "Remove Android.bp subdirs loop."

3 years agoTest extension -> Android.bp
Steven Moreland [Wed, 4 Oct 2017 23:12:50 +0000 (16:12 -0700)]
Test extension -> Android.bp

Test: mma
Bug: 33420795
Change-Id: Ida23369c5bffb44cb20fef1127fae68b92167459

3 years agoVibrator service -> .bp
Steven Moreland [Wed, 4 Oct 2017 23:07:57 +0000 (16:07 -0700)]
Vibrator service -> .bp

Test: none
Bug: 33420795
Change-Id: I420f7489a785cd9b41865674a176b478ff5437e8

3 years agoConvert usb service .mk -> .bp.
Steven Moreland [Wed, 4 Oct 2017 22:15:44 +0000 (15:15 -0700)]
Convert usb service .mk -> .bp.

Test: none
Bug: 33420795
Change-Id: I4b489a08d850b7c49231e0daadcb9d96e57a7e55

3 years agoRemove useless Android.mk files.
Steven Moreland [Wed, 4 Oct 2017 22:29:17 +0000 (15:29 -0700)]
Remove useless Android.mk files.

These have been c/p'd all over the place.

Test: m -j nothing
Bug: 33420795
Change-Id: I77979866dbb2345a41a873c84ec3fccd7b127510

3 years agoRemove Android.bp subdirs loop.
Steven Moreland [Wed, 4 Oct 2017 22:46:55 +0000 (15:46 -0700)]
Remove Android.bp subdirs loop.

Test: m -j nothing
Change-Id: Ic40edd1986fd40be4bf752ecbe925e6539d0df32

3 years agoMerge "Update for hidl adapter module defaults."
Steven Moreland [Wed, 4 Oct 2017 21:45:09 +0000 (21:45 +0000)]
Merge "Update for hidl adapter module defaults."
am: 988c977079

Change-Id: I289818be1b30397391847ba1c532d1014fdbed27

3 years agoMerge "Update for hidl adapter module defaults."
Treehugger Robot [Wed, 4 Oct 2017 21:36:25 +0000 (21:36 +0000)]
Merge "Update for hidl adapter module defaults."

3 years agoMerge "Use -Werror in hardware/interfaces"
Chih-hung Hsieh [Wed, 4 Oct 2017 20:40:30 +0000 (20:40 +0000)]
Merge "Use -Werror in hardware/interfaces"
am: 85bb01dd6b

Change-Id: I9169eb99a256f3a1db9e6f82e11fd96228d9558a

3 years agoMerge "Use -Werror in hardware/interfaces"
Chih-hung Hsieh [Wed, 4 Oct 2017 20:18:52 +0000 (20:18 +0000)]
Merge "Use -Werror in hardware/interfaces"

3 years agoUpdate for hidl adapter module defaults.
Steven Moreland [Wed, 4 Oct 2017 19:47:03 +0000 (12:47 -0700)]
Update for hidl adapter module defaults.

Test: pass
Change-Id: Idc6a943149a279bf17cfcfd0f2571473e53bbbbf

3 years agoUse -Werror in hardware/interfaces
Chih-Hung Hsieh [Fri, 29 Sep 2017 22:15:48 +0000 (15:15 -0700)]
Use -Werror in hardware/interfaces

* Remove unused local variables.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I48dbbf670cc9eeff2391983788983420f8547cc9

3 years agoMerge "Add android.hardware.health@2.0 HAL"
Yifan Hong [Wed, 4 Oct 2017 18:02:40 +0000 (18:02 +0000)]
Merge "Add android.hardware.health@2.0 HAL"
am: b020127017

Change-Id: I0249412748434b22c1bbbd93a0d170d7e4c0a3e1