Ryan Lin
6fcbdf03b2
Merge "Add source bounds change callback"
2020-07-28 23:55:30 +00:00
TreeHugger Robot
5948d5c209
Merge changes from topic "max_bounds"
...
* changes:
Verify DisplayArea bounds in WindowMetricsTests
Add DisplayArea support for WM#getMaximumWindowMetrics
2020-07-28 09:11:34 +00:00
ryanlwlin
d934df6bbd
Add source bounds change callback
...
Add sourcebounds change callback so that A11yFramwork could know
the center. It is also for magnification public API callback
Bug: 161669184
Test: WindowMagnificationControllerTest
Change-Id: I08c1f9c6f9f5eb540d960c89388b93437d79871a
2020-07-28 12:53:46 +08:00
TreeHugger Robot
bde58d21a3
Merge "Offset dirty rect for surface insets correctly."
2020-07-27 00:22:59 +00:00
Xin Li
6177a513ce
Merge "Merge stage-aosp-rvc-ts-dev into rvc-dev" into rvc-dev am: e303dd658d am: cd85e10058 am: 8f75424d27 am: 5cf151b9da
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12203661
Change-Id: I9ca6ee43c445104a7e6b4dd6444b9cb9dc2dab19
2020-07-24 09:19:17 +00:00
Xin Li
5cf151b9da
Merge "Merge stage-aosp-rvc-ts-dev into rvc-dev" into rvc-dev am: e303dd658d am: cd85e10058 am: 8f75424d27
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12203661
Change-Id: Id3cf8034c08d231c4dcb91a836150f94c17c9e02
2020-07-24 09:01:22 +00:00
Xin Li
8f75424d27
Merge "Merge stage-aosp-rvc-ts-dev into rvc-dev" into rvc-dev am: e303dd658d am: cd85e10058
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12203661
Change-Id: Icedef80125545e1b9c54133718763e559b00629d
2020-07-24 08:45:41 +00:00
TreeHugger Robot
8b39a57457
Merge "Undo the initialization if TimeoutException occurred."
2020-07-23 16:20:31 +00:00
Joanne Chung
3cc809b0d9
Undo the initialization if TimeoutException occurred.
...
If TimeoutException occurred, we don't know whether mService.addClient
succeeded. We should call mService.removeClient() to make service to
unregister the client if exists and reset the mServiceClient.
Bug: 156044027
Test: atest CtsAutoFillServiceTestCases
Test: Run adb shell dumpsys -T 60000 activity -v all to see log
Change-Id: I10ce988603f47117d0efddcc014ec51b72d3b3b4
2020-07-23 20:26:12 +08:00
Kevin Hufnagle
c036e8739c
Merge "docs: Use more inclusive pronouns" into rvc-dev am: 5c4491e04b am: eb65f3d86b am: 64a447986e am: ceff8ff8cd
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12196424
Change-Id: I06e40c41a3991a32a132997288fce9c9c292e704
2020-07-22 01:18:46 +00:00
Kevin Hufnagle
ceff8ff8cd
Merge "docs: Use more inclusive pronouns" into rvc-dev am: 5c4491e04b am: eb65f3d86b am: 64a447986e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12196424
Change-Id: I4cc8c2f5cce2f184d6dcbfcc8257ca4af8eb4150
2020-07-22 00:59:42 +00:00
Kevin Hufnagle
64a447986e
Merge "docs: Use more inclusive pronouns" into rvc-dev am: 5c4491e04b am: eb65f3d86b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12196424
Change-Id: I6124999b50cdfc9b02d5ec5e761c24f7bec5b5a9
2020-07-22 00:47:02 +00:00
Kevin Hufnagle
9b5478a0b9
Merge "docs: Use more inclusive pronouns" into rvc-dev am: 5c4491e04b am: eb65f3d86b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12196424
Change-Id: If30564dd38a5e5f21373543d66de9158fee4623a
2020-07-22 00:46:40 +00:00
Kevin Hufnagle
5c4491e04b
Merge "docs: Use more inclusive pronouns" into rvc-dev
2020-07-22 00:07:00 +00:00
TreeHugger Robot
6010192c06
Merge "Bring back touch events for double tap and double tap and hold."
2020-07-21 23:03:22 +00:00
TreeHugger Robot
8870d0d4f4
Merge "Update display info on hotplug"
2020-07-21 20:15:14 +00:00
Marin Shalamanov
0c451ddca6
Update display info on hotplug
...
Test: manually conect DUT to a display, then to
a different display
Bug: 158220266
Change-Id: I44eead97e0a09a0370a3eb674d207d1c9d0e92cc
2020-07-21 20:24:00 +02:00
Yuichiro Hanada
b6843d5d27
Offset dirty rect for surface insets correctly.
...
Dirty rect can be offset wrongly if surfaceInsets.top is different from
surfaceInsets.right. It causes some part of UI is not rendered
correctly.
Bug: 158044845
Test: go/wm-smoke
Change-Id: Ice0158c455ce99c27f03005ae5deaa2b04d000c2
2020-07-21 18:51:57 +09:00
Wale Ogunwale
329a912ad5
Merge "Prevent exception when surrounding text retrieval" into rvc-dev am: 309cfa3431 am: f4fb8c1457 am: faa7063aaa am: e42009f63f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12167896
Change-Id: Ifc2d45e026d33c74746bdb39bee676cc5f5a9e1e
2020-07-21 02:17:11 +00:00
Wale Ogunwale
e42009f63f
Merge "Prevent exception when surrounding text retrieval" into rvc-dev am: 309cfa3431 am: f4fb8c1457 am: faa7063aaa
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12167896
Change-Id: Ic10c3aebed390d6d8d054091e1d7635d25b5fb17
2020-07-21 02:00:41 +00:00
Wale Ogunwale
256cbd1b51
Merge "Prevent exception when surrounding text retrieval" into rvc-dev am: 309cfa3431 am: f4fb8c1457
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12167896
Change-Id: I1b7446f698daabf5eae3039fa91efeccd111f1a9
2020-07-21 01:42:02 +00:00
Wale Ogunwale
faa7063aaa
Merge "Prevent exception when surrounding text retrieval" into rvc-dev am: 309cfa3431 am: f4fb8c1457
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12167896
Change-Id: Ib618bddd560576fe1d7bbf1b6a78f70b4733eac9
2020-07-21 01:41:57 +00:00
Wale Ogunwale
309cfa3431
Merge "Prevent exception when surrounding text retrieval" into rvc-dev
2020-07-21 01:03:03 +00:00
Kevin Hufnagle
56cd67c4e4
docs: Use more inclusive pronouns
...
Change "his" to "their" in 2 places
Change-Id: Ib03e1967edd5d13f999c9290aabc56db33bf4fc0
Test: none (docs-only change)
Bug: 160937339
2020-07-20 22:55:07 +00:00
Adrian Roos
0c3233eb59
Merge "Fix hiding keyboard animation stuck while dialog dismissing." into rvc-dev am: dac09ee7fe am: 0a49dd38a2 am: 869a1892db am: 35fc2fdf6c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12174530
Change-Id: Ieaaeaaba7f061b4c651f7c0726332292872dcb99
2020-07-17 22:12:44 +00:00
Adrian Roos
35fc2fdf6c
Merge "Fix hiding keyboard animation stuck while dialog dismissing." into rvc-dev am: dac09ee7fe am: 0a49dd38a2 am: 869a1892db
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12174530
Change-Id: Iac68c18c16c10c794e1f462ccaedeed656fc6a5b
2020-07-17 21:51:58 +00:00
Adrian Roos
869a1892db
Merge "Fix hiding keyboard animation stuck while dialog dismissing." into rvc-dev am: dac09ee7fe am: 0a49dd38a2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12174530
Change-Id: I22615abd9c1a987d2b797db0701573d552441a8f
2020-07-17 21:40:31 +00:00
Adrian Roos
f9ea2989dd
Merge "Fix hiding keyboard animation stuck while dialog dismissing." into rvc-dev am: dac09ee7fe am: 7df40a82f6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12174530
Change-Id: I252e2c0b62cf955c7ce2c7fafde18e0b51a9743e
2020-07-17 21:40:18 +00:00
Adrian Roos
0a49dd38a2
Merge "Fix hiding keyboard animation stuck while dialog dismissing." into rvc-dev am: dac09ee7fe
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12174530
Change-Id: Ifb04b0fd9c555d79d5c1b1ad7e348cf1532bd5b5
2020-07-17 21:24:56 +00:00
TreeHugger Robot
8ce24a42e2
Merge changes from topic "flexible_bars" into rvc-qpr-dev am: a5404a59f2 am: 6b03df08f8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12001030
Change-Id: I9cd0a0394aa1c156d7705c1a93f774b3a453d536
2020-07-17 17:46:33 +00:00
TreeHugger Robot
6b03df08f8
Merge changes from topic "flexible_bars" into rvc-qpr-dev am: a5404a59f2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12001030
Change-Id: I7bee21bde74fe82d89e050d48dada44b080ce244
2020-07-17 17:40:37 +00:00
TreeHugger Robot
a5404a59f2
Merge changes from topic "flexible_bars" into rvc-qpr-dev
...
* changes:
Reintroduce flexible inset mapping
Keep alternate reference to mStatusBar and mNavigationBar for flexible insets
2020-07-17 17:40:09 +00:00
Wilson Wu
0ebe70cb0f
Prevent exception when surrounding text retrieval
...
We use same reference from TextView to set the initial
surrounding text. The actual surrounding text may be
modified before retrieval since the mSurroundingText
is mutable. Use a copy of subText should avoid this
concurrent issue.
Bug: 160390184
Test: atest FrameworksCoreTests:EditorInfoTest
Change-Id: I6082a4cae2fcdc4c529dc14e2e5e7a45ab1aae4d
2020-07-18 00:51:47 +08:00
Adrian Roos
a24622cfcd
Fix hiding keyboard animation stuck while dialog dismissing.
...
When dismissing a dialog with EditText focused and keyboard shown,
the keyboard does not get correctly dismissed.
This happens because after CL[1] landed, returning to the activity won't start
new input connection, and the activity will thus not regain control over
the IME.
This fix restores the previous behavior, where IMM will start a fake input
connection even without an editor.
[1]: I1ef3d341af9d473d94d52fd1890deafbae2bc9e1
Fix: 161273049
Test: atest CtsInputMethodTestCases
Test: manual as follows
0) Have some files downloaded in the device
1) Launch Files app > Browse > Click Internal Storage
2) Long press on any file > From menu, click "Rename"
3) Enter some name with soft keyboard and click "OK"
4) Expect Keyboard should hide
Change-Id: I022ad658844142ff4a4cf3b91953013f2bfbb58a
2020-07-17 18:09:13 +02:00
Heemin Seog
c2e8162410
Keep alternate reference to mStatusBar and mNavigationBar for flexible insets
...
Needed in order to ensure the immersive confirmation dialog and behavior
work correctly and for the swipe directions to updated based on system
bar position
Bug: 156304383
Test: manual (change immersive behavior), atest WindowInsetsControllerTests
Change-Id: Id4258d06e9d02a55b46afd53eefb7ec19a50a2ed
2020-07-17 08:44:19 -07:00
Pablo Gamito
9b68a1d091
Merge "Add intDef annotation processor to generate mapping"
2020-07-16 12:18:55 +00:00
TreeHugger Robot
af00656abe
Merge "Fixed ContentCaptureSession javadoc."
2020-07-16 02:26:30 +00:00
Yinglei Wang
fba2b3264f
Merge "Delay sending accessibility events a little for temporarily detached view"
2020-07-15 17:34:45 +00:00
Ameer Armaly
4751228fc7
Bring back touch events for double tap and double tap and hold.
...
This CL includes all subsequent fixes that were caused by the original change.
Bug: 159168795
Test: atest TouchExplorerTest
Change-Id: I416b90cf49a2804890246f2d52ee3a168059630f
Change-Id: Ibecc5f6cd1cdb682d1026869f6aa03da7f123e08
2020-07-15 09:42:20 -07:00
Wale Ogunwale
f98cf3bfe2
Merge "Remove Type.statusBars from compatInsetsTypes if FLAG_FULLSCREEN" into rvc-dev am: 0b237bb06f am: 2346053033 am: 2cff1f32fc am: 1563e67c5e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12157384
Change-Id: I006720e0aedbaff7e20bcaeead0e8d855a326de1
2020-07-15 14:53:43 +00:00
Wale Ogunwale
1563e67c5e
Merge "Remove Type.statusBars from compatInsetsTypes if FLAG_FULLSCREEN" into rvc-dev am: 0b237bb06f am: 2346053033 am: 2cff1f32fc
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12157384
Change-Id: I9721f6a75c63313179b9be27117b403ca475392b
2020-07-15 14:41:13 +00:00
Wale Ogunwale
24e5e31f20
Merge "Remove Type.statusBars from compatInsetsTypes if FLAG_FULLSCREEN" into rvc-dev am: 0b237bb06f am: 1813474cc9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12157384
Change-Id: I936630c614b74161d64b45ff4fd865e56228e2a4
2020-07-15 14:19:53 +00:00
Wale Ogunwale
2cff1f32fc
Merge "Remove Type.statusBars from compatInsetsTypes if FLAG_FULLSCREEN" into rvc-dev am: 0b237bb06f am: 2346053033
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12157384
Change-Id: I13f507d5693fdac232c8b6b29dda775358a90658
2020-07-15 14:19:44 +00:00
Wale Ogunwale
2346053033
Merge "Remove Type.statusBars from compatInsetsTypes if FLAG_FULLSCREEN" into rvc-dev am: 0b237bb06f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12157384
Change-Id: I82021bdc4f4d737feda4a20febf532db9fa1c850
2020-07-15 14:03:48 +00:00
Tiger Huang
0f310bdec8
Remove Type.statusBars from compatInsetsTypes if FLAG_FULLSCREEN
...
In the legacy layout world, if a window has FLAG_FULLSCREEN, then its
stable insets won't be affected by status bar. This CL makes the layout
logic compatible.
Fix: 160593171
Test: InsetsStateTest InsetsControllerTest ImeInsetsSourceConsumerTest
Change-Id: I59717e699470273e2462c1ad864e00bb9a126677
2020-07-15 19:00:19 +08:00
Charles Chen
68d02e9a25
Add DisplayArea support for WM#getMaximumWindowMetrics
...
Set max bounds whenenver bounds change in DisplayContent and DisplayArea
Bug: 151414021
Test: atest ConfigurationContainerTests#testSetMaxBoundsByHierarchy
Test: atest ConfigurationContainerTests#testSetBoundsNotOverrideMaxBounds
Test: atest DisplayAreaTest#testSetMaxBounds
Test: atest DisplayAreaOrganizerTest
Change-Id: I88be4f165cf8958eec0128e196368a630b2492aa
2020-07-15 11:28:36 +08:00
yingleiw
e34bc33af3
Delay sending accessibility events a little for temporarily detached view
...
In RV, a view could be temporarily detached in one draw cycle.
Accessibility events sent during this time will be lost. To prevent the
events from being lost, we will set a flag when a view is detached by
parent. And when sending accessibility events for detached view, we will
delay it a little by
ViewConfiguration.getSendRecurringAccessibilityEventsInterval. This way,
if the view is attached in one draw cycle, the events will be sent out.
Also add more setStateDescription() in CompoundButton to for safer code.
(this is not the cause of this bug though).
Fix: 151125936
Test: tested that the bug is fixed.
Change-Id: Iffca8c87bad4fa2f66862b966e351562d77d6d76
2020-07-14 17:12:07 -07:00
Pablo Gamito
c18f0a3562
Add intDef annotation processor to generate mapping
...
Test: Run 'mp :framework-all' and check if mapping file is properly
generated
Change-Id: I58f7ea5894e8ec994a74781663654508205c4db1
2020-07-14 13:38:57 +00:00
felipeal
06aaffe4b2
Fixed ContentCaptureSession javadoc.
...
Test: none
Fixes: 160551990
Change-Id: I34b584234ca3851e95574fe3c3d42e5f972cdbd4
2020-07-10 18:42:56 -07:00
TreeHugger Robot
e1c8e93342
Merge "Consolidate start new input scenerios" into rvc-dev am: 6c440de7a4 am: 96863d0d50 am: a96c3690e9 am: 7f7ea1b202
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12086310
Change-Id: Ieb588969fcbe8a20a56caede919ccbcbf4d2e89c
2020-07-10 19:34:49 +00:00