Commit Graph

13503 Commits

Author SHA1 Message Date
Adrian Roos
8014a38cd2 Merge "Insets: Fix DecorView consuming of insets" into rvc-dev am: 3d670ae046
Change-Id: Ia8def345663a8f751cafcdb56e6806a9fee8cc5d
2020-04-09 10:12:58 +00:00
Adrian Roos
3d670ae046 Merge "Insets: Fix DecorView consuming of insets" into rvc-dev 2020-04-09 08:17:01 +00:00
Adrian Roos
d686b084ec Insets: Fix DecorView consuming of insets
Previously, disabling the consuming logic was
done based on whether we target R.

But this:
- didn't work for Q apps that already use the new API
- causes a bit of unnecessary behavior churn
- requires special-casing the IME

Instead, we look at whether the app has requested to
handle insets with the R setDecorFitsSystemWindows API.

Fixes: 152384150
Test: atest DecorInsetSdk29Tests DecorInsetTests
Change-Id: I754851d0c11dccd21c2fa011cfdc3f0d7396cf60
2020-04-08 19:25:45 +02:00
Peter Collingbourne
1c71f8a9f9 Implement initial policy for memory tag checks.
System apps and the system_server receive async tag checks, while all other
app processes have it disabled. Developers may enable async tag checks
per application with:

$ adb shell am compat 135772972 <app.name>

Bug: 135772972
Change-Id: I154623941eec8e79af347453fbca1b062346c85b
Merged-In: I154623941eec8e79af347453fbca1b062346c85b
2020-04-08 08:27:49 -07:00
TreeHugger Robot
3bd9fd2def Merge "Revert "Revert "Do not mount whitelisted package in storage data and obb dirs""" into rvc-dev am: afef06a0f6
Change-Id: Iacb6e514daa631a3d1d202d34dfb3cfbe90da072
2020-04-08 15:04:12 +00:00
TreeHugger Robot
afef06a0f6 Merge "Revert "Revert "Do not mount whitelisted package in storage data and obb dirs""" into rvc-dev 2020-04-08 14:48:39 +00:00
TreeHugger Robot
d6531dab1e Merge "Don't ask libc for PT feature w/o kernel support." into rvc-dev am: 6acebc809a
Change-Id: Iae894d48777a3308ea4c3d1e73913c5522c19aac
2020-04-08 14:34:22 +00:00
TreeHugger Robot
6acebc809a Merge "Don't ask libc for PT feature w/o kernel support." into rvc-dev 2020-04-08 14:15:23 +00:00
TreeHugger Robot
dc0620df60 Merge "Fixed an issue where the unread count would disappear too fast" into rvc-dev am: f9557e4400
Change-Id: I158617de3f51ebf3331759bb6a98107ad6a6da02
2020-04-07 18:45:26 +00:00
TreeHugger Robot
f9557e4400 Merge "Fixed an issue where the unread count would disappear too fast" into rvc-dev 2020-04-07 18:42:06 +00:00
Selim Cinek
51ac1d4679 Merge "Fixed the appearance of image messages that are out of view" into rvc-dev am: 3c2a6a281e
Change-Id: Ic17615f09d8eafc7d6043dbea9141d62399e734a
2020-04-07 18:08:14 +00:00
Selim Cinek
3c2a6a281e Merge "Fixed the appearance of image messages that are out of view" into rvc-dev 2020-04-07 17:58:04 +00:00
TreeHugger Robot
73be1485f4 Merge "Show sharesheet with 1 personal app and >0 work apps with WP off" into rvc-dev am: 0ed25f0cd2
Change-Id: I2c15919efd6c7f3c354316de30379e919ef5bd6a
2020-04-07 16:12:37 +00:00
TreeHugger Robot
0ed25f0cd2 Merge "Show sharesheet with 1 personal app and >0 work apps with WP off" into rvc-dev 2020-04-07 16:06:30 +00:00
Mitch Phillips
4d4347c257 Don't ask libc for PT feature w/o kernel support.
Check that the kernel supports the Tagged Pointers feature before asking
libc to disable/enable pointer tagging.

Bug: 153114333
Test: Build coral, note no messages from SetHeapTaggingLevel.
Test: atest CtsTaggingHostTestCases

Change-Id: Id5fbd731aa70f7b0a75525387479f6123628a012
Merged-In: Id5fbd731aa70f7b0a75525387479f6123628a012
2020-04-07 15:44:00 +00:00
Selim Cinek
94d0be89f0 Fixed an issue where the unread count would disappear too fast
Especially with images this was leading to really bad transitions
since the image would pop over immediately.
We now update the counter once the expansion has finished

Fixes: 153392205
Test: add conversations with messages with unread count and image, click on it.
Change-Id: I2ad2ec6a989a21154e3edbf09aabc6d17ea75bd7
2020-04-06 20:16:27 -07:00
Selim Cinek
8776260b29 Merge changes I76df6529,I99594ae9 into rvc-dev am: 35910cacaa
Change-Id: I06c716ffda5d55888b4ad81130699de75ae1f98e
2020-04-07 01:30:28 +00:00
Selim Cinek
35910cacaa Merge changes I76df6529,I99594ae9 into rvc-dev
* changes:
  Fixed the heads up layout of conversations
  Fixed an issue where the conversation title was showing doubled
2020-04-07 01:22:04 +00:00
Selim Cinek
a959fe44a0 Fixed the appearance of image messages that are out of view
Previously we were showing image messages of all senders instead
of just the last one.
This is now fixed.

Fixes: 153388613
Change-Id: I4e9c563c28291de25bf3dbd0ad72940ab59cad6f
2020-04-06 18:16:40 -07:00
Sally Yuen
4173092d88 Merge "Set the window title in AlertDialog's AlertController" into rvc-dev am: de172d5438
Change-Id: Iac94d2e5c91f7c131e04b88337046b9a1094a516
2020-04-06 23:58:35 +00:00
Sally Yuen
de172d5438 Merge "Set the window title in AlertDialog's AlertController" into rvc-dev 2020-04-06 23:54:23 +00:00
Bernardo Rufino
ec0e67b052 Merge "Wire user info and use user context for text toasts" into rvc-dev am: 2de79fb6fd
Change-Id: I0e814f94225d06edb4d973be300fbd2e515b4db9
2020-04-06 22:12:26 +00:00
Susi Kharraz-Post
9b2b5a114a Merge "Fix NPE for Open With ChooserActivity Logging Bug" into rvc-dev am: 7e9bfdfd63
Change-Id: I4a949058c023eb3dc08e4bbc5587400d806563fd
2020-04-06 22:11:30 +00:00
Bernardo Rufino
2de79fb6fd Merge "Wire user info and use user context for text toasts" into rvc-dev 2020-04-06 21:59:20 +00:00
Bernardo Rufino
78f5d83ac8 Wire user info and use user context for text toasts
Text toasts don't currently support multi-user. This CL prepares toasts
for multi-user by wiring the user information from who requested the
toast (in the form of uid) to ToastUI, where text toasts are actually
rendered.

We go only as far as obtaining a new user-specific context for that user
and using that to construct the view. Actual support will come in future
CLs.

Bug: 151414297
Test: atest android.widget.cts29.ToastTest android.widget.cts.ToastTest
      ToastWindowTest ToastUITest NotificationManagerServiceTest
      LegacyToastTest
Change-Id: I8c92453c6a2b73c31f9a41ca9ff463d194d4f44f
2020-04-06 20:20:09 +01:00
Susi Kharraz-Post
8bd0f532a3 Fix NPE for Open With ChooserActivity Logging Bug
Target is not populated for "Open With" processed by ChooserActivity.
Adding a null catch in the logger to return default intent.

Bug: 153335691
Test: manual testing and running ChooserActivityTests
Change-Id: Ib7477a9030d0244d33d74690c6aab8b03b88e1e3
2020-04-06 15:07:23 -04:00
arangelov
ce7d4a623c Show sharesheet with 1 personal app and >0 work apps with WP off
Previously we would autolaunch in this case, as
getResolversForIntentAsUserInternal didn't return any apps for
the work profile when it's off. This change adds the
MATCH_DIRECT_BOOT_AWARE and MATCH_DIRECT_BOOT_UNAWARE
flags to the PackageManager#queryIntentActivitiesAsUser call.

Test: manual
Test: atest ResolverActivityTest
Test: atest ChooserActivityTest
Fixes: 153338971

Change-Id: Iedf10d54953b94393c78d6357ce7e5216f3ba261
2020-04-06 18:22:33 +01:00
TreeHugger Robot
e7765a8435 Merge "Limit stage install to system and whitelisted packges only (1/2)" into rvc-dev am: 04e287816f
Change-Id: Ieb38ccefdd3513624ac95f45a28d7be84c0de03f
2020-04-06 14:39:39 +00:00
TreeHugger Robot
04e287816f Merge "Limit stage install to system and whitelisted packges only (1/2)" into rvc-dev 2020-04-06 14:16:25 +00:00
Tony Huang
17ebe76f7a Merge "Fix split divider janky" into rvc-dev am: a171ec4203
Change-Id: I195d4d1df29f9628b8c39e9ee6da78c2fe60574d
2020-04-06 07:44:11 +00:00
Tony Huang
a171ec4203 Merge "Fix split divider janky" into rvc-dev 2020-04-06 07:24:15 +00:00
Jerry Chang
792c79623d Limit stage install to system and whitelisted packges only (1/2)
Bug: 148664742
Test: atest FrameworksServicesTests:SystemConfigTest SysConfigTest#testStageWhitelist
Change-Id: I5d7617a014869167151f9f486dc0e89f5957390a
2020-04-06 11:05:53 +08:00
Selim Cinek
28db07e902 Fixed the heads up layout of conversations
Previously the expand button layout was always at 80dp which
made the collapsed size increase. we now measure it at
match_parent instead and just internally use another layout
to position it properly.

Fixes: 153204251
Test: add heads up notification, observe normal padding
Change-Id: I76df6529c1a24808bce54ed0d04230cddf7a0c8c
2020-04-03 17:52:15 -07:00
TreeHugger Robot
3fc6f737f4 Merge "Revert "Fix DecorView error about non-visual context"" into rvc-dev am: 59a65bdc0f
Change-Id: I3742568af4066c4d73be0f7f31562ffffa2182ce
2020-04-03 20:03:29 +00:00
TreeHugger Robot
59a65bdc0f Merge "Revert "Fix DecorView error about non-visual context"" into rvc-dev 2020-04-03 19:53:56 +00:00
TreeHugger Robot
3a3876f579 Merge "[wm]: Support free snap mode" into rvc-dev am: 85ac2217f8
Change-Id: Ie00ae16b52319c2dff8bcfe6eed786e50e403daa
2020-04-03 18:11:16 +00:00
Selim Cinek
48b90c78e8 Merge "Fixed that the importance ring might show inside of groups" into rvc-dev am: 17c3f421d4
Change-Id: Ib9ae5480fc966b80ef27b7131b7b0342c089ac56
2020-04-03 18:09:35 +00:00
TreeHugger Robot
85ac2217f8 Merge "[wm]: Support free snap mode" into rvc-dev 2020-04-03 18:07:05 +00:00
Vadim Tryshev
5420fffe19 Revert "Fix DecorView error about non-visual context"
This reverts commit 828c498904.

Reason for revert: b/152806048
Bug: 152806048

Change-Id: I0ba53944a7fddf42cccf79c6495945c8afa3ab31
2020-04-03 18:06:05 +00:00
Selim Cinek
17c3f421d4 Merge "Fixed that the importance ring might show inside of groups" into rvc-dev 2020-04-03 17:48:05 +00:00
sallyyuen
83ba7aab9a Set the window title in AlertDialog's AlertController
AlertDialog.Builder's setTitle() does not set the title of its
window, which TalkBack uses for announcements.

Make the behavior consistent between the AlertDialog.Builder's
setTitle and AlertDialog's setTitle, which does change the window
title.

Bug: 149755168
Test: Menu titles appear in the node tree debug info and are announced.
by TalkBack. App version info in Settings is announced.

Change-Id: I49deb98ad294538864e413c6c486b4148e06a2b6
2020-04-03 09:06:11 -07:00
Song Hu
d0054fd9c6 Merge "Enable Sharesheet direct share target append prototype for droidfood." into rvc-dev am: 66726b1e19
Change-Id: I6bbaf6b8983b46fec890f27ae262283066ff3f92
2020-04-03 15:05:42 +00:00
Song Hu
66726b1e19 Merge "Enable Sharesheet direct share target append prototype for droidfood." into rvc-dev 2020-04-03 14:56:58 +00:00
Susi Kharraz-Post
04363c3f1a Merge "Add sharesheet statsd logging" into rvc-dev am: f9617e33f9
Change-Id: I37b38005b051074cf7dbfa16dcbeec991ae1842b
2020-04-03 13:20:20 +00:00
Susi Kharraz-Post
dde9c3afc8 Add sharesheet statsd logging
Add a Logger for sharesheet and add calls into ChooserActivity.java

Bug: 147508495
Test: manual testing and added unit tests into ChooserActivityTests.
Change-Id: I0024b5020f47475a28c4745af4d8ef268e5f85be
2020-04-03 11:07:19 +00:00
Song Hu
2eb5dbb378 Enable Sharesheet direct share target append prototype for droidfood.
Bug: 151112858
Test: manually tested both prod flow and prototype flow on phones.
Change-Id: I459e73e1a15c00f51dca929d4d0bf0adb74fbaeb
2020-04-02 20:22:23 -07:00
Yohei Yukawa
6513aa7495 Merge "Let blocked InputConnection APIs fail upon IInputMethod.unbindInput()" into rvc-dev am: dbe201d2ac
Change-Id: I72c2aa1cff40da26ecdfc0c9c811a1f588ec51fe
2020-04-03 02:29:22 +00:00
Selim Cinek
853a84b5e5 Fixed that the importance ring might show inside of groups
Fixes: 153106733
Test: add group, change priority to important, observe no ring inside of group
Change-Id: I4f30ac6b1e8877eb459e26335696b9aa11c3613e
2020-04-02 15:38:07 -07:00
Yohei Yukawa
f87f750888 Let blocked InputConnection APIs fail upon IInputMethod.unbindInput()
This is a follow up CL to our previous CL [1], which implemented
fail-fast mode for blocking InputConnection APIs based on
IInputMethod.unbindInput() async signal from IMMS to IMS.

What was not implemented in the previous CL was a mechanism to
immediately unblock a sync InputConnection API call that is already
requested to the IME client process and waiting for its response.

With this CL, any blocking InputConnection API fails immediately when
IInputMethod#onUnbindInput() is delivered to the IME process, without
waiting for the full time-out period (MAX_WAIT_TIME_MILLIS == 2 sec)
to pass.

Implementation Note:

The key idea is to use CountDownLatch to compose multiple wait
conditions.composed wait condition. The CountDownLatch is initialized
with 1 then will be decremented when:

 A. received a result from the IME client
 B. received IInputMethod.unbindInput()

Hence InputConnectionWrapper can simply wait for the CountDownLatch to
become 0 with an existing timeout (MAX_WAIT_TIME_MILLIS) then returns
failure unless the CountDownLatch became 0 because of A.

 [1]: I0f816c6ca4c5c0664962432b913f074605fedd27
      1d113d041f

Fix: 36897707
Test: atest InputConnectionBlockingMethodTest
Test: InputConnectionBlockingMethodTest#*FailFastAfterUnbindInput()
      take shorter time to complete.
Test: Monitor logcat with `adb logcat -s InputConnectionWrapper:*`
      while running `atest InputConnectionBlockingMethodTest`
Change-Id: Ic65a95eb5d0fd56f505a02fd9083bcf6694b6734
2020-04-02 12:54:55 -07:00
Daegyun Shin
8a9cb1d383 [wm]: Support free snap mode
In aosp, split divider can be snapped to the specific targets
(first, middle, or last)

new concept is freely snapping between non-dismiss targets.

Test: manual test
1. change config_dockedStackDividerFreeSnapMode true in config.xml
2. build
3. make split state
4. drag divider any position

Bug: 123693029
Change-Id: I9fc42fb698659608de6509acc9ad44874e793fd5
2020-04-02 09:00:16 -07:00