Commit Graph

27861 Commits

Author SHA1 Message Date
David Gross
cb255acf77 Remove old GNU linkers from SDK.
Linkers aarch64-linux-android-ld and x86_64-linux-android-ld were built
with a minimum macOS deployment target lower than 10.9, so they cannot
be signed and notarized.  Rather than try to produce newer versions of
these linkers (which are obsolete in the SDK anyway), we remove them (so
that all of the SDK can be signed and notarized).  Rather than introduce
an inconsistency among the linkers for a particular host (there are
three other GNU linkers that don't have this problem) or across hosts
(there are no issues on linux or windows), we remove all of the GNU
linkers, not just the two problematic ones.

Only newer gradle plugins (those that look for the clang linker lld)
will work with the new SDK from which those old linkers have been
removed.

Bug: 152337684

Test: (gLinux) m TARGET_PRODUCT=sdk_phone_armv7 TARGET_BUILD_VARIANT=userdebug sdk dist sdk_repo
      (gLinux) m TARGET_PRODUCT=sdk_phone_armv7 TARGET_BUILD_VARIANT=userdebug win_sdk dist sdk_repo
      Inspect sdk-repo-{linux,windows}-build-tools-eng.*.zip
Change-Id: Iccfa870a826de3f12c99175e0761ea00fe2876ed
2020-03-30 11:08:31 -07:00
Adam He
6028bb1a49 Merge "Migrate to new APIs utilizing android.widget.inline.InlinePreesntationSpecs." into rvc-dev 2020-03-30 06:53:35 +00:00
Adam He
d60f629802 Migrate to new APIs utilizing
android.widget.inline.InlinePreesntationSpecs.

Bug: 151262653
Test: manual verification
Change-Id: Ia03d463d6e7b18c34de95a9cde639bb307c301ef
2020-03-26 15:49:14 -07:00
Hsin-Yi Chen
4b8b6fce68 Merge "Revert "header-checker: Remove aosp_{arm64,x86}_ab"" into rvc-dev 2020-03-26 04:31:59 +00:00
Hsin-Yi Chen
5e9ca65a56 Revert "header-checker: Remove aosp_{arm64,x86}_ab"
This reverts commit 17ec995b11.

Test: ./create_reference_dumps.py
Bug: 152080301
Reason for revert: aosp_arm_ab and aosp_x86_ab are still supported.

Change-Id: I7a80931e8bc60fc86083d6fc55daa53e3ed9a4db
Merged-In: I7a80931e8bc60fc86083d6fc55daa53e3ed9a4db
(cherry picked from commit ec315367d5)
2020-03-25 16:56:59 +08:00
Aurimas Liutikas
3219aad274 Move to framework-doc-stubs module for versions xml and annotations
api-versions.xml and annotations.zip will now be taken from framework-doc-stubs
module so that api-stubs-docs can stop generating them.

Test: lunch sdk; make sdk
Bug: 151160048
Change-Id: I35fdba553318098a09249f47d7d78cdef79f3898
Merged-in: I35fdba553318098a09249f47d7d78cdef79f3898
2020-03-23 18:53:17 +00:00
Yabin Cui
0a5ba81e61 Merge "Switch to clang-r377782c" into rvc-dev 2020-03-21 03:37:02 +00:00
Yabin Cui
321d7774dc Switch to clang-r377782c
Bug: 149849077
Test: run build-prebuilts.sh.
Change-Id: I394897b515cb8cd968671e8e48e198c49038d01c
(cherry picked from commit cf892fc776)
2020-03-20 11:13:20 -07:00
TreeHugger Robot
69939a60d2 Merge "Calculate max bounds correctly in winscope" into rvc-dev 2020-03-20 17:41:50 +00:00
Vishnu Nair
cd7c4662e4 Calculate max bounds correctly in winscope
Fixes: 143083963
Test: open banana.pb from bug in winscope, notice its not cut off
Change-Id: I6443426d8e540d5757aad41ac60ceb361768bb68
2020-03-19 18:39:44 -07:00
Anton Hansson
b4aca10721 Add module_lib and system-server artifacts to sdk dist
Makes these artifacts available for the update_prebuilts script.

Bug: 149293194
Test: m win_sdk dist && find out/dist -type f
Change-Id: Icd91da0976f24eb1b4ea1eeaebb96398990f760e
2020-03-19 19:20:32 +00:00
TreeHugger Robot
7c7f5093c7 Merge "Sample app: Use authentication instead of inline actions" into rvc-dev 2020-03-19 01:10:39 +00:00
Feng Cao
c7ed6af6be Sample app: Use authentication instead of inline actions
Test: manual
Bug: 150499490

Change-Id: Ifc827cd1d633bf26a3450c392cc7da1211d02cfa
2020-03-18 14:16:20 -07:00
TreeHugger Robot
37ede275a6 Merge "Move wayland support from default build" into rvc-dev 2020-03-18 18:23:10 +00:00
Colin Cross
359ef3d028 Fix lld prebuilts locations
prebuilts/sdk/tools is updated from the zip file built by the SDK.
The lld binaries are copied from the prebuilts to the zip file, and
were moved in the zip file, which meant the next time the prebuilts
were updated the wrong files were copied.

Fixes: 151729229
Test: m TARGET_PRODUCT=sdk_phone_armv7 TARGET_BUILD_VARIANT=userdebug out/host/linux-x86/sdk/sdk_phone_armv7/repo-sys-img.xml sdk sdk_repo
Change-Id: I2de182f3cbf739dbd9c6a5287e1416ea37d2899f
2020-03-17 16:23:55 -07:00
Raju Kulkarni
f4debc7358 Bumping revision numbers for DP3
Bug: 150711640
Test: N/A
2020-03-17 00:54:53 +00:00
Vishnu Nair
cbddf0ad6c Move wayland support from default build
Wayland trace files are not available in AOSP so building Winscope will
break. Instead, pick up stub files by default and provide an option via
env args to pick up Wayland support.

Also removes obsolete protolog stubs which are no longer needed.

Test: Remove wayland trace from path and check if winscope still builds
Test: Build winscope with WAYLAND=true and confirm it pick up waylandproto file

Fixes: 151239942
Change-Id: Ie5b237725cd656c478a2ea99d469963956399714
2020-03-16 23:35:12 +00:00
Vishnu Nair
7264ef5848 Show properties for DisplayAreas and DisplayContent
Test: open wm trace in winscope, check if properties of DC and DA are
visible.
Fixes: 149672519
Change-Id: Ib5181c655a84fec94307846333fc0b1cc29d38fc

Change-Id: Ib442c75f031ceb72aa00493e46d502944827121c
2020-03-16 11:03:49 -07:00
Feng Cao
259361a4ad Merge "Update sample app to listen to clicks on chip" into rvc-dev 2020-03-13 18:25:48 +00:00
Automerger Merge Worker
25954b3b8f [automerger skipped] For darwin, add lib64/libc++abi.1.dylib. am: 6f16baeea9 am: 6a35354abd -s ours
am skip reason: Change-Id Ifd5b2db7b18a29c1b58b408118951792733649b7 with SHA-1 f879b7a53c is in history

Change-Id: I7663da9ba1957e47e398b1355e3a5e30bb8e1b92
2020-03-12 20:31:38 +00:00
Automerger Merge Worker
6a35354abd For darwin, add lib64/libc++abi.1.dylib. am: 6f16baeea9
Change-Id: I80cd25c48793a0f34db97b93a3da76d8a9fb12f8
2020-03-12 20:18:10 +00:00
Automerger Merge Worker
efb3d9f582 [automerger skipped] Move lld.exe (windows) and add dependent library libwinpthread-1.dll am: 7fe8024a20 am: c41cd4595c -s ours
am skip reason: Change-Id Ice6710ed204a25d09ac596207c02b8b99ca95b8b with SHA-1 24e52959d7 is in history

Change-Id: Icd9b0ea6a99c25501ec9e0781440c05a7c198f00
2020-03-12 18:09:29 +00:00
Automerger Merge Worker
c41cd4595c Move lld.exe (windows) and add dependent library libwinpthread-1.dll am: 7fe8024a20
Change-Id: I3e33565905031fe25495dc93dce02da60c376af6
2020-03-12 17:53:10 +00:00
David Gross
6f16baeea9 For darwin, add lib64/libc++abi.1.dylib.
libc++.1.dylib, which was already added, depends on this.

Bug: 148267171
Bug: 142590626
Bug: 144040336
Test: N/A
Merged-In: Ifd5b2db7b18a29c1b58b408118951792733649b7
Change-Id: Ifd5b2db7b18a29c1b58b408118951792733649b7
(cherry picked from commit f879b7a53c)
2020-03-12 16:53:46 +00:00
TreeHugger Robot
abd830e3cb Merge "[Winscope] Add pretty-printing for properties view" into rvc-dev 2020-03-12 03:05:53 +00:00
Alec Mouri
c3457a0454 [Winscope] Add pretty-printing for properties view
This allows hwc blobs to be formatted nicely.

Bug: 119443475
Test: visually inspect SF trace
Change-Id: Ib076e341382bf419cd59d384f2761b0140f04ea4
2020-03-11 18:29:55 -07:00
David Gross
f879b7a53c For darwin, add lib64/libc++abi.1.dylib.
libc++.1.dylib, which was already added, depends on this.

Bug: 148267171
Bug: 142590626
Bug: 144040336
Test: N/A
Change-Id: Ifd5b2db7b18a29c1b58b408118951792733649b7
2020-03-11 15:25:20 -07:00
Automerger Merge Worker
9c3af54267 [automerger skipped] Move lld (darwin, linux) and add dependent libraries am: e3e67a8212 am: 1578f6602b -s ours
am skip reason: Change-Id I69b4ef79208bd7d06a377c0761671f1b572abced with SHA-1 e9351e5061 is in history

Change-Id: Ibaba2519601453c31ee3ffeaeb78e317aee59aeb
2020-03-11 20:17:05 +00:00
Automerger Merge Worker
1578f6602b Move lld (darwin, linux) and add dependent libraries am: e3e67a8212
Change-Id: If69fccd10e588c33b8fce3fa07e7218fd9e74120
2020-03-11 20:05:48 +00:00
David Gross
7fe8024a20 Move lld.exe (windows) and add dependent library libwinpthread-1.dll
Move lld.exe to lld-bin directory; add lld-bin/libwinpthread-1.dll; add
trampoline.

Best practice is to ship necessary libraries of expected versions along
with build tools, rather than requiring them to be found elsewhere.

lld.exe depends on libwinpthread-1.dll and windows looks for it in the
same directory as lld.exe.  Unfortunately, there's already a 32-bit
libwinpthread-1.dll at the tool root (used by 32-bit executables at
the tool root), and lld.exe is a 64-bit executable, so it needs its own
directory and its own library.

In the old location of lld.exe, we add a trampoline executable (a build
artifact) in lld-bin; this means Gradle, which invokes lld.exe in the old
location, does not have to change.

Bug: 148267171
Bug: 142590626
Bug: 144040336

Test: (gLinux) m TARGET_PRODUCT=sdk_phone_armv7 TARGET_BUILD_VARIANT=userdebug sdk dist sdk_repo
      (gLinux) m TARGET_PRODUCT=sdk_phone_armv7 TARGET_BUILD_VARIANT=userdebug win_sdk dist sdk_repo

Merged-In: Ice6710ed204a25d09ac596207c02b8b99ca95b8b
Change-Id: Ice6710ed204a25d09ac596207c02b8b99ca95b8b
(cherry picked from commit 24e52959d7)
2020-03-11 12:03:57 -07:00
David Gross
e3e67a8212 Move lld (darwin, linux) and add dependent libraries
darwin: Move lld to lld-bin directory; add lib64/libc++.1.dylib; add trampoline

linux: Move lld to lld-bin directory; add lib64/libc++.so.1; add trampoline

Best practice is to ship necessary libraries of expected versions along
with build tools, rather than requiring them to be found elsewhere.

lld depends on libc++.1.dylib (darwin) or libc++.so.1 (linux) and looks for it
in ../lib64, so we need to move lld to an appropriate relative location.
In the old location of lld, we add a simple bash trampoline to invoke
lld in lld-bin; this means Gradle, which invokes lld in the old
location, does not have to change.

Bug: 148267171
Bug: 142590626
Bug: 144040336

Test: (gLinux) m TARGET_PRODUCT=sdk_phone_armv7 TARGET_BUILD_VARIANT=userdebug sdk dist sdk_repo
      (gLinux) m TARGET_PRODUCT=sdk_phone_armv7 TARGET_BUILD_VARIANT=userdebug win_sdk dist sdk_repo
Merged-In: I69b4ef79208bd7d06a377c0761671f1b572abced
Change-Id: I69b4ef79208bd7d06a377c0761671f1b572abced
(cherry picked from commit e9351e5061)
2020-03-11 11:54:34 -07:00
Feng Cao
87225ce7f6 Update sample app to listen to clicks on chip
Test: manual
Bug: 151185482

Change-Id: I85c706c896dacfd499c9e0aa1782f23a3f65e569
2020-03-10 18:20:27 -07:00
Vishnu Nair
cdaead818b Support DisplayAreas in Winscope
Bug: 149672519
Test: open trace in winscope

Change-Id: I07eb3ccce0180eb21112417b3949f3953722a29d
2020-03-10 15:19:14 -07:00
Vadim Caen
d654c9e302 Update winscope hierachy protolog parsing
ag/10181371 changed the formart of the protolog dump so mirroring the
changes in winscope

Bug:151140114

Change-Id: Ic9a53303e94d3924017c42b1c37a4a069b383118
(cherry picked from commit 758f832e36)
2020-03-10 14:30:00 +00:00
TreeHugger Robot
b0467a5d48 Merge "Update sample app for the inline action API change" into rvc-dev 2020-03-10 04:15:40 +00:00
Feng Cao
8f41686c0a Update sample app for the inline action API change
Test: manual verification
Test: atest android.autofillservice.cts.inline
Bug: 150499490

Change-Id: I301d2c2b8afd86362a7a1989223a2f305e4e92bd
2020-03-09 16:57:35 -07:00
Vishnu Nair
3553bee9d7 Add EffectLayer visibility to Winscope
Bug: 151091744
Test: open pip and splitscreen trace in winscope check to see colors
and shadows are marked as visible

Change-Id: I1083df1c85c85beb9ad93e39a136a61a4359ca62
2020-03-09 18:32:27 +00:00
TreeHugger Robot
da71516dfd Merge "gsi-pubsign-release.sh: Add copyright notice" into rvc-dev 2020-03-09 06:58:24 +00:00
Yo Chiang
06cc62e141 gsi-pubsign-release.sh: Add copyright notice
Bug: 149803895
Test: manual
Change-Id: I7208b928fd13ede982a06205badeb4800d5cbb85
2020-03-09 06:58:06 +00:00
Alec Mouri
ae68ae235f Merge "[Winscope] Add chips for HWC vs GPU composited layers" into rvc-dev 2020-03-03 21:16:45 +00:00
TreeHugger Robot
eb994e5156 Merge "Move lld.exe (windows) and add dependent library libwinpthread-1.dll" into rvc-dev 2020-03-03 03:43:14 +00:00
David Gross
24e52959d7 Move lld.exe (windows) and add dependent library libwinpthread-1.dll
Move lld.exe to lld-bin directory; add lld-bin/libwinpthread-1.dll; add
trampoline.

Best practice is to ship necessary libraries of expected versions along
with build tools, rather than requiring them to be found elsewhere.

lld.exe depends on libwinpthread-1.dll and windows looks for it in the
same directory as lld.exe.  Unfortunately, there's already a 32-bit
libwinpthread-1.dll at the tool root (used by 32-bit executables at
the tool root), and lld.exe is a 64-bit executable, so it needs its own
directory and its own library.

In the old location of lld.exe, we add a trampoline executable (a build
artifact) in lld-bin; this means Gradle, which invokes lld.exe in the old
location, does not have to change.

Bug: 148267171
Bug: 142590626
Bug: 144040336

Test: (gLinux) m TARGET_PRODUCT=sdk_phone_armv7 TARGET_BUILD_VARIANT=userdebug sdk dist sdk_repo
      (gLinux) m TARGET_PRODUCT=sdk_phone_armv7 TARGET_BUILD_VARIANT=userdebug win_sdk dist sdk_repo

Change-Id: Ice6710ed204a25d09ac596207c02b8b99ca95b8b
2020-03-02 17:45:53 -08:00
Hsin-Yi Chen
d82ed2305b Remove embedded launcher from repack_super_image
The launcher has dependency on libc++.so which isn't available on the
test server. This commit disables embedded_launcher so that the script
is interpreted by the python3 installed on the OS.

Test: repack_super_image outside of build environment
Bug: 148839595
Change-Id: Ic49cac9c6f5c67bde58ac3272213b3bebc54a73e
Merged-In: Ic49cac9c6f5c67bde58ac3272213b3bebc54a73e
(cherry picked from commit a39f294116)
2020-03-02 12:23:12 +08:00
TreeHugger Robot
3f922adf29 Merge "Add repack_super_image" into rvc-dev 2020-03-02 04:04:26 +00:00
Alec Mouri
65066517f1 [Winscope] Add chips for HWC vs GPU composited layers
Bug: 119443475
Test: SF trace
Change-Id: I13289b403d394c07b3ac8e2e7d21e5188bba56d8
2020-02-29 14:33:18 -08:00
Miao Wang
b87230c1b7 Merge "Move lld (darwin, linux) and add dependent libraries" into rvc-dev 2020-02-28 18:43:35 +00:00
Yo Chiang
abdcbb3f83 gsi-pubsign-release.sh follows symbolic link
Use `find -L` and `cp --dereference` to follow symlinks.

Bug: 149803895
Test: manual
Change-Id: Ide2ae854dd61e595ca2676634f660241343e6dba
Exempt-From-Owner-Approval: Fix build / doesn't affect build
2020-02-28 08:01:24 +00:00
David Gross
e9351e5061 Move lld (darwin, linux) and add dependent libraries
darwin: Move lld to lld-bin directory; add lib64/libc++.1.dylib; add trampoline

linux: Move lld to lld-bin directory; add lib64/libc++.so.1; add trampoline

Best practice is to ship necessary libraries of expected versions along
with build tools, rather than requiring them to be found elsewhere.

lld depends on libc++.1.dylib (darwin) or libc++.so.1 (linux) and looks for it
in ../lib64, so we need to move lld to an appropriate relative location.
In the old location of lld, we add a simple bash trampoline to invoke
lld in lld-bin; this means Gradle, which invokes lld in the old
location, does not have to change.

Bug: 148267171
Bug: 142590626
Bug: 144040336

Test: (gLinux) m TARGET_PRODUCT=sdk_phone_armv7 TARGET_BUILD_VARIANT=userdebug sdk dist sdk_repo
      (gLinux) m TARGET_PRODUCT=sdk_phone_armv7 TARGET_BUILD_VARIANT=userdebug win_sdk dist sdk_repo
Change-Id: I69b4ef79208bd7d06a377c0761671f1b572abced
2020-02-27 15:14:28 -08:00
Hsin-Yi Chen
018d122c56 Add repack_super_image
Bug: 148839595
Test: make dist gsi_utils
Test: repack_super_image \
      --ota-tools $ANDROID_PRODUCT_OUT/otatools.zip \
      --misc-info ./misc_info.txt \
      ./super.img product= \
      system=$ANDROID_PRODUCT_OUT/system.img
Change-Id: I29ff8c6f0e117d3b42cc975929bd0a0823136bc9
Merged-In: I29ff8c6f0e117d3b42cc975929bd0a0823136bc9
(cherry picked from commit 20ddc6d248)
2020-02-27 23:28:23 +08:00
Yo Chiang
fe9bb151c0 gsi-pubsign-release.sh print verbose log
Bug: 149803895
Test: ./gsi-pubsign-release.sh aosp_arm64 aosp_arm64_pubsign \
        aosp_arm64-artifact_path aosp_arm64_pubsign-artifact_path
Change-Id: I71ca710e3d2d7305112e118e8d19c3b07d6f028c
2020-02-27 16:41:08 +08:00