Commit graph

6130 commits

Author SHA1 Message Date
Chia-I Wu
16e8ed254d 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
2017-11-06 15:08:07 -08:00
Chia-I Wu
8101b24ca7 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
2017-11-06 15:08:07 -08:00
Steven Thomas
bc67a6a8fb 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
2017-11-06 15:08:07 -08:00
Treehugger Robot
b1088c6de1 Merge "dumpstate mk -> bp" 2017-11-06 17:56:38 +00:00
Steven Moreland
90e3a50f03 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
2017-11-03 16:30:28 +00:00
Sooraj Sasindran
55e7774568 Merge "vts test for 1.2" 2017-11-03 00:32:21 +00:00
Steven Moreland
71f26bf5cc dumpstate mk -> bp
Test: compilation finds dependencies
Bug: 37512442
Change-Id: Ib207c2163a07dea03c096283d10b00af966a1728
2017-11-02 15:25:59 -07:00
Sooraj Sasindran
4547419e6c 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
2017-11-02 14:44:57 -07:00
Treehugger Robot
9d4c21f9af Merge "Update makefiles after AOSP push." 2017-11-02 20:39:30 +00:00
Treehugger Robot
7052f3d45d Merge "Remove unnecessary Android.mk" 2017-11-02 04:18:28 +00:00
Steven Moreland
822c2e1809 Remove unnecessary Android.mk
Doesn't do anything. Just when I thought I get rid of them all.

Test: none
Change-Id: Iac559e41ea5557e99490fa439af9d720e2d9075a
2017-11-01 16:44:44 -07:00
Steven Moreland
c5bc4c7cbb Update makefiles after AOSP push.
Test: none
Change-Id: If3ce74f4d2250d33820cbd864ff56bba6f9e6b67
2017-11-01 16:42:15 -07:00
Treehugger Robot
94a12051a3 Merge "Added CellIdentity struct in types.hal" 2017-11-01 22:30:33 +00:00
Cassie
8c3011e5c7 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
2017-11-01 10:25:36 -07:00
Andreas Huber
aaa67596df Adds test cases to stress marshaling of primitive array types and
vectors of thereof.

Bug: 68654583
Test: hidl_test_java
Change-Id: Id498fe9b1e153512be294c39aff783f7d0600219
2017-10-31 13:03:56 -07:00
Jae Shin
6a70875ba8 Fix cpp style cast and variable name
Test: run vts -m VtsHalRenderscriptV1_0TargetTest
Change-Id: I0c902aea13da7d4af2357ec42d8f712fda7269d4
2017-10-26 05:22:06 +00:00
Jiyong Park
0f70905b7d 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 a7ef697a0a)
2017-10-26 05:21:57 +00:00
Chih-Hung Hsieh
cd76985909 Use -Werror in hardware/interfaces
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I2b8572a3480434f9dad2ae4f8a608ed82281cc68
2017-10-25 16:20:45 -07:00
Steven Moreland
d5a3ac60f3 Merge "Update Light extension example to match docs."
am: fed3134fa0

Change-Id: I5f33d024ab2747a736c39c9cf712c0c52617cf6b
2017-10-18 03:26:39 +00:00
Treehugger Robot
fed3134fa0 Merge "Update Light extension example to match docs." 2017-10-18 03:22:17 +00:00
Tri Vo
04fcc83578 Merge "Set pipe size to >1MB for debugDump test cases."
am: d928053397

Change-Id: If7cca83c1da491e5c399170e2669995e878fdc57
2017-10-18 02:21:29 +00:00
Treehugger Robot
d928053397 Merge "Set pipe size to >1MB for debugDump test cases." 2017-10-18 02:10:42 +00:00
Steven Moreland
6f5459d8eb 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
2017-10-17 18:33:26 -07:00
Chih-Hung Hsieh
1e48a3c563 Use -Werror in hardware/interfaces
am: ceb435f2ba

Change-Id: I34ad0374c02d3733e7901a8296d229f74313fb52
2017-10-18 00:17:51 +00:00
Tri Vo
7d35a3d0f2 Set pipe size to >1MB for debugDump test cases.
Test: VtsHalAudioV2_0Target
Change-Id: I2dd43851a43609ad2953030303edaeb684b63096
2017-10-17 16:51:33 -07:00
Chih-Hung Hsieh
ceb435f2ba Use -Werror in hardware/interfaces
* Fix warning of unused result.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I68e35ddcdeec4290b075ececf14f82335b43e22e
2017-10-17 10:12:29 -07:00
Sooraj Sasindran
b49cd63a75 Merge "Enhanced network scan request"
am: 8e5f008ae6

Change-Id: I8903402f50c64b475ccda3839f0175fb2eaa12f6
2017-10-17 06:11:13 +00:00
Sooraj Sasindran
8e5f008ae6 Merge "Enhanced network scan request" 2017-10-17 06:03:31 +00:00
Sooraj Sasindran
55092ae5a6 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
2017-10-16 19:31:00 -07:00
Janis Danisevskis
157fc5bd51 Rename libkeymaster to libkeymaster_staging
am: 8cd5614c12  -s ours

Change-Id: I46c0d6d745171ee77a74fb4a183b9121be89d12b
2017-10-16 01:32:50 +00:00
Janis Danisevskis
1128d6df34 libkeymaster1 split to libkeymaster and _portable
am: ab887a4433  -s ours

Change-Id: I0e5c0ab09b96bd6888178fbba2148fcb49117cff
2017-10-16 01:32:45 +00:00
Janis Danisevskis
8cd5614c12 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 71ebd5f6b4)
2017-10-16 00:51:19 +00:00
Janis Danisevskis
ab887a4433 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 85e15db319)

Change-Id: I8652f28ac3da1999a774be5e1110c7d2efac5339
2017-10-16 00:51:05 +00:00
Steven Moreland
2c2ff9382d Merge changes from topic "hidl-test"
am: 240f9e1476

Change-Id: Iff52448e0f4f522d5c5cbd59efbd1a734bc95570
2017-10-15 02:57:18 +00:00
Zhuoyao Zhang
5871a92c46 Static link test lib shims with test -impl libs.
am: 38a78e1fa9

Change-Id: I080ccb82bb4b9131e67473b417fefb74e7a65fae
2017-10-15 02:57:08 +00:00
Tri Vo
c62e184a27 Merge "Use a pipe instead of tmp for debugDump tests."
am: 458b8fa5bd

Change-Id: Ife2cfb8b89c0f550648ea28c339e7278015399c0
2017-10-15 02:56:25 +00:00
Steven Moreland
bc95bdc195 Merge "Remove invalid annotations from IBaz."
am: e322e7e1aa

Change-Id: I408b9486c4fd801f153d1b2a06559f3882a88a8b
2017-10-15 02:55:32 +00:00
Tri Vo
05a6820b76 Merge "Change tmp dir to /data/system/users/0/fpdata/."
am: 3f4e982fbc

Change-Id: I7ab1bb0acc25188d8e6ae8b67773d0bcb8eeb1f1
2017-10-15 02:54:27 +00:00
sqian
e4124a3943 Merge "Refactor radio folder for 1.0 and 1.1"
am: bf758ce382  -s ours

Change-Id: I552ee1e0b8df66d95f4897b5b6663de6ffe0fc3b
2017-10-15 02:54:00 +00:00
Treehugger Robot
240f9e1476 Merge changes from topic "hidl-test"
* changes:
  Statically link msgq test impl.
  Static link test lib shims with test -impl libs.
2017-10-13 22:02:31 +00:00
sqian
8735a7d935 Refactor radio folder for 1.0 and 1.1
Remove unused environment variable.

Test: run vts
Bug: 63760809
Change-Id: Iff7919980d7bbe0e9f8a73a3679d37426faec679
Merged-In: Iff7919980d7bbe0e9f8a73a3679d37426faec679
2017-10-13 10:36:04 -07:00
Treehugger Robot
458b8fa5bd Merge "Use a pipe instead of tmp for debugDump tests." 2017-10-13 00:31:31 +00:00
Steven Moreland
26d0dcf32e Statically link msgq test impl.
Also statically include it in the service binary.

Test: fmq_test
Bug: 67500459
Change-Id: Ia8728308dbce9acbdeafa8b2a56fd007be8c0832
2017-10-12 17:04:22 -07:00
Zhuoyao Zhang
38a78e1fa9 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
2017-10-12 15:47:39 -07:00
Tri Vo
6c00ac31bb 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
2017-10-12 15:47:34 -07:00
Treehugger Robot
e322e7e1aa Merge "Remove invalid annotations from IBaz." 2017-10-12 19:34:34 +00:00
Tri Vo
3f4e982fbc Merge "Change tmp dir to /data/system/users/0/fpdata/." 2017-10-12 16:08:05 +00:00
Treehugger Robot
bf758ce382 Merge "Refactor radio folder for 1.0 and 1.1" 2017-10-12 01:57:19 +00:00
Yifan Hong
4b29ecf7c1 Merge "health@2.0: IHealthInfoCallback expands HealthInfo struct."
am: f2f00cb742

Change-Id: Iad21de674c7dc04a19727adc81ff931923e93e4a
2017-10-12 01:56:01 +00:00
Treehugger Robot
f2f00cb742 Merge "health@2.0: IHealthInfoCallback expands HealthInfo struct." 2017-10-12 01:47:57 +00:00