Commit Graph

27899 Commits

Author SHA1 Message Date
bohu
8db232dd34 emulator: setup preferred network mode to 5g(NR)
BUG: 158040335

This will ensure the phone is using the 5g(NR)
as the preferred network mode.

User can change it in setting later, if desired.

Change-Id: I69583d1769739124a51355ff8b887e727ba61df8
Merged-In: I69583d1769739124a51355ff8b887e727ba61df8
2020-06-05 05:06:42 +00:00
Joanne Chung
e48202f01c Follow sample code package-name convention for InlineFillService.
Bug: 155135358
Test: Manual. Install the application and dumpsys to check package
name.

Change-Id: Ifc338e40e6a2d37b775f6a60664231c2ce248eff
2020-06-03 17:34:22 +08:00
Feng Cao
0500ea20fa Update the sample IME to solve some flickers
* This, together with the change on the framework side ag/11685298,
  gets rid of the flicker on the notification pull down/up case, as
  well as switching from username to password.
* The idea is to not clear the suggestions onInputFinish. Instead,
  we schedule a delayed deletion of the suggestions on InputStart,
  which will get canceled if there is new suggestions coming to the
  IME within the timeout. This gets rid of the flicker on the two
  cases mentioned in previous bullet.

Test: manual test
Bug: 157515522

Change-Id: I60d9181de3230d468224e2df08fee59b741d6828
2020-06-01 00:39:45 -07:00
Raju Kulkarni
7cbc5035b9 Bumping SDK and build tools version number for Beta2
Bug: 157771440
Test: N/A
Change-Id: I86f99b37c4ec53d06945425d4091f52b23906d8f
2020-05-29 22:19:44 +00:00
Raju Kulkarni
cc90c51206 Bumping emulator image version number for Beta2
Bug: 157607109
Test: N/A

Change-Id: I46c41b5ea10c5d3b9627b1dc0befdc0af65d5b3e
2020-05-28 01:24:40 +00:00
Feng Cao
3de13dad62 Use updated inline suggestion support lib API
Test: m -j
Test: atest android.autofillservice.cts.inline
Bug: 155172850

Change-Id: Iba6d76c38885498547b0421a0f4df54c7ed41ad3
2020-05-27 10:03:27 -07:00
TreeHugger Robot
aab157a4c8 Merge "Ignore transform if not set" into rvc-dev 2020-05-20 17:58:34 +00:00
TreeHugger Robot
2e4598b0c9 Merge "Load wayland proto definitions if available otherwise load stubs" into rvc-dev 2020-05-20 17:50:09 +00:00
Vishnu Nair
77507c22c7 Ignore transform if not set
Fixes wayland trace visualization. Also adds a sample wayland trace to help future testing.

Fixes: 157097684
Test: Can see wayland windows in winscope
Change-Id: I906e557abeb5549dd6cb065d2b03c9e1d3a276f8
2020-05-20 08:49:15 -07:00
Vishnu Nair
fe1595999f Load wayland proto definitions if available otherwise load stubs
Fixes: 157095921
Test: yarn run dev & load wayland trace
Change-Id: Id6a5faa592d4ec8c8919828983f32283db40fc53
2020-05-20 08:48:37 -07:00
TreeHugger Robot
29c2fdac5e Merge "Parse all children in wm dump" into rvc-dev 2020-05-19 20:58:47 +00:00
Hsin-Yi Chen
d9869c2a42 Merge "Support repacking super image with virtual AB" into rvc-dev 2020-05-18 05:14:56 +00:00
Hsin-Yi Chen
0071b427e4 Support repacking super image with virtual AB
Bug: 155702857
Test: repack_super_image --ota-tools ./otatools.zip \
      --misc-info ./misc_info.txt ./super.img product= \
      system=system.img
Change-Id: I03f33969d3c033a47cf123f94d875a4b56d2d343
Merged-In: I03f33969d3c033a47cf123f94d875a4b56d2d343
(cherry picked from commit 3e8b7f96d8)
2020-05-18 01:21:29 +08:00
Vishnu Nair
68f08011ad Parse all children in wm dump
Fixes: 156533443
Test: open wm proto dump in winscope
Change-Id: I8bb500b726ae01ebc686da06399aa612f4bb6f82
2020-05-13 14:48:58 -07:00
Vishnu Nair
9c93e69a4f Look up proto type definitions separately
Creating nested types will cause type collisions. Instead search
for the type separately. Also fixes an issue parsing sf traces
from Q.

Fixes: 156034870
Test: yarn run dev
Test: open sf trace from q
Change-Id: I3c2a283e56985bfee56633a5e914b83ac2a0cf3b
2020-05-12 17:09:04 +00:00
Raju Kulkarni
414b7cf9e0 Bumping Emulator image version number for Beta1. Target release: 6/3
Bug: 155595371
Test: N/A

Change-Id: Ia4391b2ca1194afc9ddf8235491db3d875cf7552
2020-05-04 06:18:22 +00:00
Raju Kulkarni
ab8e4655dd Updating platform SDK version for R
* Reset package versions
  * Update VNDK lib list

Bug:152953870

Test: N/A

Change-Id: I765b1467af5a7a32a48e0d78a29486f320266577
Merged-In: I765b1467af5a7a32a48e0d78a29486f320266577
2020-05-03 09:47:21 -07:00
bohu
e3c06cb247 emulator: package ramdisk-qemu.img to image zip
BUG: 149826779
Test: build
Change-Id: I7949daa15edafeeb51e80d320bcbb5a450cd0a49
Merged-In: I7949daa15edafeeb51e80d320bcbb5a450cd0a49
2020-05-01 20:01:53 +00:00
David Gross
940757220e Place a dummy file at the location of each (previously removed) old GNU linker
Previously, old GNU linkers were removed, in favor of the LLVM linker
lld.  However, old versions of AGP consider the absence of those linkers
to mean that the build tools are corrupted.  To solve this problem, we
provide a (non-executable) dummy file in place of each old GNU linker to
keep AGP satisfied.  A compatibility mode RenderScript build by those
old versions of AGP will fail (as it would have without the dummy
files), but everything else should work.

Bug: 153685081
Bug: 144040336
Bug: 142590626

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: I7574c850bfb593df5bcb9131ea8915061b0083e1
2020-04-29 14:26:10 -07:00
Feng Cao
0c501136ca Update sample IME and autofill provider to use the new support lib APIs
* refactor the autofill provider code
* keyboard now uses wrap_content when inflating

Test: manual
Bug: 154178486

Change-Id: Ie540178d8f063e3a8e9afb76284b15ab40ada344
2020-04-28 00:04:20 -07:00
TreeHugger Robot
44b11dd142 Merge "Fix NPE when run the testing in IntentPlayground" into rvc-dev 2020-04-24 02:34:41 +00:00
Colin Cross
18b3f5f895 Package core-current-stubs-for-system-modules into the SDK
core-current-stubs-for-system-modules needs to be distributed
in the SDK to allow apps to be built with javac -source 9 -target 9.

Bug: 143209928
Test: m TARGET_PRODUCT=sdk_phone_x86 TARGET_BUILD_VARIANT=userdebug sdk sdk_repo dist
Change-Id: I9d67344f159f9482567323f27c5a8e4e060e1f1a
Merged-In: I9d67344f159f9482567323f27c5a8e4e060e1f1a
(cherry picked from commit 89c5517a28)
2020-04-22 08:59:03 -07:00
Ady Abraham
ea7685211d remove obsolete path from frameworks/native
ag/11038755 removed some tests from SurfaceFlinger, so we need
to update CMakeLists.txt as well.

Test: Open CLion on fameworks/native project
Bug: b/77585359
Change-Id: Ide31716c85dca3c80979221577b444ecaffb6b32
2020-04-21 13:45:44 -07:00
Jeff Chang
6275634b9e Fix NPE when run the testing in IntentPlayground
StartActivity with a null intent lead to the NPE when execute
the Intent testing.

This CL make sure the intent is good before run the testing

Bug: 154568140
Test: Manual to run the intent tesing.
Change-Id: I8d8bc8e1347ae5f095e01f4a718f2ab936574fcc
2020-04-21 10:34:53 +00:00
TreeHugger Robot
d9dc576a2a Merge "Fix reading SurfaceFlinger dump in winscope" into rvc-dev 2020-04-14 21:43:48 +00:00
Vishnu Nair
691c104193 Fix reading SurfaceFlinger dump in winscope
Test: open sf dump in bug
Fixes: 153760658
Change-Id: Ie2f83afaa5dc33b0c78bb6c2407588c8dd73e89d
2020-04-10 16:33:33 -07:00
Vishnu Nair
4b8e9f9b1f Fix is_opaque calculations in winscope
Test: open trace in bug and confirm app is visible behind screenshot
Fixes: 153694172
Change-Id: I60141afc3a28a5e51177d37fd20155c06dcf5882
2020-04-09 18:32:05 -07:00
Svet Ganov
f34c6275f1 Update the sample keyboard to showcase scroll, clip, toggle
The keyboard now showcases how one can implement a suggestion
strip with some pinned suggestions on the left and the right
of the strip and the strip suggestions are scrollable and well
as clipped to the scroll are's bounds. Also this showcases
how to toggle the layering of the suggestions to temporary
amimate on top of them. Fun, fun fun :)

bug:1234567

Change-Id: I7f2a6ea148de31be7cd0f13f56d72f6e5246a5f8
2020-04-08 03:10:53 +00:00
TreeHugger Robot
12623eba4c Merge "Add occlusion state for surface flinger trace" into rvc-dev 2020-04-07 16:23:49 +00:00
Vishnu Nair
126be5111f Add occlusion state for surface flinger trace
If composition state is not available, calculate the occlusion state otherwise
continue to use the visible region.

Bug: b/140854698
Test: open sf trace w/ & w/o composition state
Change-Id: I599fe9a4082af650e14fcd184d0204c1c3f29a95
2020-04-02 16:25:27 -07:00
David Gross
fe73bf13e1 Merge "Remove old GNU linkers from SDK." into rvc-dev 2020-04-02 22:39:56 +00:00
TreeHugger Robot
a4a12d8f08 Merge "Bumping Emulator image version number for Beta1. Target release date for Beta1 is May 12 Bug: 152954076 Change-Id: I22153aae9f6e75609a30d812a474d75f8ebc04e9 Test: N/A Exempt-From-Owner-Approval: I will work with BoHu to get myself added as an owner" into rvc-dev 2020-04-02 22:23:08 +00:00
Raju Kulkarni
71a7a92ba9 Bumping Emulator image version number for Beta1. Target release date for Beta1 is May 12
Bug: 152954076
Change-Id: I22153aae9f6e75609a30d812a474d75f8ebc04e9
Test: N/A
Exempt-From-Owner-Approval: I will work with BoHu to get myself added as an owner
2020-04-02 22:22:39 +00:00
Raju Kulkarni
1dfc5daa1b Bumping SDK Platform and Build tools revision number for Android R Beta1 release
Bug: 152955730
Test: N/A

Change-Id: Ie22af9d6c6d421d31f96141d3ce315462a354fd5
2020-04-01 17:51:21 +00:00
Hsin-Yi Chen
97f5e861a1 Merge "Create ABI reference dumps for libraries with multiple tags" into rvc-dev 2020-03-31 12:31:07 +00:00
TreeHugger Robot
e871962f81 Merge "Add layer filter to winscope" into rvc-dev 2020-03-31 01:21:56 +00:00
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
Vishnu Nair
c778b9bdb7 Add layer filter to winscope
Uses the same semantics as property filter but is applied to the
hierarchy. If a filter is matches, the nodes children will be shown.

Example: filter by layer ids: 12,14,15
filter by layer name: Wallpaper

Test: open transaction trace and layer trace in winscope
Fixes: 152647597
Change-Id: I2bee5bbf5e4b14efb6aadee5775b46499e8f2ec9
2020-03-27 22:40:38 +00:00
Hsin-Yi Chen
7c05fbc7a2 Create ABI reference dumps for libraries with multiple tags
A library may have both VNDK variant and stubs. The variants are tagged
with VNDK and PLATFORM in lsdump_paths.txt. create_reference_dumps.py
should generate the ABI dumps for both.

Bug: 152277104
Test: ./create_reference_dumps.py
Test: ./create_reference_dumps.py -libs libselinux
Change-Id: I2ee43d70efcdee43de821c93c31cdb628c36ecb1
Merged-In: I2ee43d70efcdee43de821c93c31cdb628c36ecb1
(cherry picked from commit ae54edc536)
2020-03-27 16:19:07 +08: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