Commit Graph

16783 Commits

Author SHA1 Message Date
TreeHugger Robot
fbb73c1d7c Merge "Soft remove deprecated translation apis." into sc-dev am: cc0987b12a am: d0922047d0 am: 2494782a3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14606780

Change-Id: I61414a3eb757f8fa7e49450011ce16f662e9dbaa
2021-05-21 09:01:32 +00:00
TreeHugger Robot
d0922047d0 Merge "Soft remove deprecated translation apis." into sc-dev am: cc0987b12a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14606780

Change-Id: I156df433e5e47061213caa273c3cbc7a7c5734e6
2021-05-21 08:47:40 +00:00
TreeHugger Robot
cc0987b12a Merge "Soft remove deprecated translation apis." into sc-dev 2021-05-21 08:39:35 +00:00
Adam He
6ebd5b236d Soft remove deprecated translation apis.
Bug: 186475868
Test: atest CtsTranslationTestCases
Change-Id: I87395052e9e5574f4ba11652c484cedec95c0cfb
2021-05-20 18:14:56 -07:00
Yohei Yukawa
50b5bddef4 Merge "Fix IME be dismissed abruptly" into sc-dev am: ebd27c999b am: 89e0c27087 am: 16df571dbe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14609914

Change-Id: Ida01629acd7416131cab31589a7ef5df639d731e
2021-05-20 18:36:36 +00:00
Yohei Yukawa
16df571dbe Merge "Fix IME be dismissed abruptly" into sc-dev am: ebd27c999b am: 89e0c27087
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14609914

Change-Id: Id03d4f72758241655bb1adba7e44cca02f51692f
2021-05-20 18:01:12 +00:00
Yohei Yukawa
35dae9722d Merge "Fix IME be dismissed abruptly" into sc-dev am: ebd27c999b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14609914

Change-Id: I2b4c9d3d862c6fd38291fe4ea96406c9ba7a1e44
2021-05-20 17:37:15 +00:00
Jeff DeCew
f771b4d19f Merge "Remove padding logic designed for old position of the expand button" into sc-dev am: fc0a05e3e4 am: 742910ae0e am: 5fa3b67fab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14646130

Change-Id: I0207790de1a36db29125b945667c2e54d2a81481
2021-05-20 17:20:37 +00:00
Yohei Yukawa
ebd27c999b Merge "Fix IME be dismissed abruptly" into sc-dev 2021-05-20 17:19:45 +00:00
Jeff DeCew
742910ae0e Merge "Remove padding logic designed for old position of the expand button" into sc-dev am: fc0a05e3e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14646130

Change-Id: I203008500c91e931cd97d227d8e780a77b4747f9
2021-05-20 16:43:32 +00:00
Jeff DeCew
fc0a05e3e4 Merge "Remove padding logic designed for old position of the expand button" into sc-dev 2021-05-20 16:22:41 +00:00
Joanne Chung
7fafecc477 Merge "Translate TextView content description if exist" into sc-dev am: 86d3f3deae am: 15676878d8 am: cbccbd1cd9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14543285

Change-Id: Ifca78d32251c4cfee704aac6b86c11bc9d24b956
2021-05-20 06:37:58 +00:00
Joanne Chung
15676878d8 Merge "Translate TextView content description if exist" into sc-dev am: 86d3f3deae
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14543285

Change-Id: I89669c1cbdffdc76ed6d0ded76167607c5590ef5
2021-05-20 06:04:31 +00:00
Joanne Chung
86d3f3deae Merge "Translate TextView content description if exist" into sc-dev 2021-05-20 06:00:56 +00:00
Wilson Wu
e525c01439 Fix IME be dismissed abruptly
CL[1] used to fix some IME animation issue.
And simplified the check focused view logic.

But when window focus changed, the focused view
may still be null. So ImeFocusdController use the
DecorView to start an new Input and hide keyboard.

Use the focused view after focus change callbacks
when we call onPostWindowFocus as before.

[1]: Ib140801f1ce03b5566e756914f96dacba3ad8892

Bug: 186331446
Test: Manual test with the bug steps
Test: atest FocusHandlingTest#testRequestFocusOnWindowFocusChanged
Change-Id: I2f8fde0b6575db17955ff8b8804b61378f9d6dad
2021-05-20 10:26:47 +08:00
Tiger Huang
473ea5e981 Merge "Force showing navigation bar while IME is visible" into sc-dev am: a254d7fd43 am: 19c08f146a am: 99b11e0bdb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14486201

Change-Id: I72d2a3ce4904be37ac0882268ecfe4bb9ec0807b
2021-05-20 02:07:30 +00:00
TreeHugger Robot
214e26eced Merge changes from topic "revert-13738532-client_suggestions_fillrequest-sc-dev-EQZRQWLQUO" into sc-dev
* changes:
  [DO NOT MERGE] Remove the Client Suggestions APIs
  [DO NOT MERGE] Remove Client suggestions implementations
2021-05-20 01:23:24 +00:00
Adam He
366a43cc49 Merge "Change dictionary results to use a bundle instead since it is a structured result." into sc-dev am: c1b7cc6ab5 am: e28429ee52
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14536510

Change-Id: I8f30e546238833da431b7af49304b74e9f480fb4
2021-05-20 00:18:06 +00:00
TreeHugger Robot
8baba52f11 Merge "Quick change to add default to deprecated callback method so implementors can move to new api." into sc-dev am: 0b9af71d1e am: 7844e5d8dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14535063

Change-Id: I8beed957f338fa500659ce6064a0ca82069a753e
2021-05-20 00:17:50 +00:00
Galia Peycheva
4180a8e6a5 Merge "Add windowIsFloating to window blur documentation" into sc-dev am: 551a988b60 am: 0c40c1794b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14599594

Change-Id: Ia2145b4d2bffb8e82171c18c72c931492b43594f
2021-05-20 00:03:27 +00:00
Vadim Caen
39d72fac25 Merge "Draw splashscreen edge to edge" into sc-dev am: eacda76449 am: d286a11746
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14253107

Change-Id: Ia0e1e9fa29a6726a0bec349039f780c0353ed4ed
2021-05-20 00:02:19 +00:00
Siarhei Vishniakou
000beba278 Merge "Check mInputEventReceiver before sending timeline -- 2" into sc-dev am: 234adf7cb2 am: 12318a45bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14350504

Change-Id: I55ef308fcebb9323496916fffa8d7b8af24ff3ae
2021-05-19 23:20:43 +00:00
Jeff Sharkey
e97c037d19 Apply AttributionSource during Intent delivery. am: dd6dd3b1fb am: 2d0e8e3d5d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14470318

Change-Id: Iac0646b8065a4e70ec0366db19943db33ba2e40b
2021-05-19 22:47:13 +00:00
Jeff DeCew
970a13aea0 Remove padding logic designed for old position of the expand button
Fixes: 188095319
Test: Manual testing of minimized notifications.
Change-Id: I92ba63ec0266089a4af630afb202b279dbe294ed
2021-05-19 13:37:24 -04:00
Tiger Huang
a254d7fd43 Merge "Force showing navigation bar while IME is visible" into sc-dev 2021-05-19 15:25:17 +00:00
TYM Tsai
94a825887b [DO NOT MERGE] Remove the Client Suggestions APIs
Bug: 188618287
Test: atest CtsAutoFillServiceTestCases
Change-Id: I178e0443278383120d9e6e3321ec96be8e5705c1
2021-05-19 23:24:32 +08:00
Winson Chung
6b917e7216 Merge "Add fallback animation for auto-enter without source rect hint" into sc-dev am: 79914dfbd5 am: f4e6b4efba am: 61ab0fa320
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14105379

Change-Id: Ibfcb25cc29b213b2d514c6d650e46207d2a778a4
2021-05-18 20:22:03 +00:00
Adam He
c1b7cc6ab5 Merge "Change dictionary results to use a bundle instead since it is a structured result." into sc-dev 2021-05-18 18:49:03 +00:00
TreeHugger Robot
0b9af71d1e Merge "Quick change to add default to deprecated callback method so implementors can move to new api." into sc-dev 2021-05-18 18:46:31 +00:00
Galia Peycheva
551a988b60 Merge "Add windowIsFloating to window blur documentation" into sc-dev 2021-05-18 12:47:10 +00:00
Vadim Caen
eacda76449 Merge "Draw splashscreen edge to edge" into sc-dev 2021-05-18 11:22:54 +00:00
Siarhei Vishniakou
234adf7cb2 Merge "Check mInputEventReceiver before sending timeline -- 2" into sc-dev 2021-05-17 17:35:24 +00:00
Galia Peycheva
fa9ca5f9bf Add windowIsFloating to window blur documentation
Bug: 182567575
Test: m doc-comment-check-docs
Change-Id: I3ee71c82416e359d077750ae7d0ba8b1b7fbfb29
2021-05-17 18:10:45 +02:00
Joanne Chung
9753899a97 Translate TextView content description if exist
Screen reader(Talkback) will read content description first if the
developers set. We only translate TextView text, this may cause the
screen reader will not read the translated text if the developers set
content description.

To fix the issue, we also send the content description to translate.
When the translated text is shown, we also set content description
with translated content description and reset to original content
description if show original text.

Bug: 187134784
Test: atest CtsTranslationTestCases
Change-Id: I6986384260627a0539780b7293d47666c442d852
2021-05-17 14:05:52 +08:00
Tiger Huang
a39967f4bc Force showing navigation bar while IME is visible
This CL revokes navigation bar control to make navigation bar visible
while IME is showing, so the button to dismiss IME would be available.

This CL also lets IME receive visible navigation bar insets, regardless
of the navigation bar visibility.

Fix: 167971834
Fix: 186789472
Test: atest WindowStateTests WindowInsetsControllerTests
Change-Id: I2e723d4fc50d006127caa473d67c2f6af0d2cbcd
2021-05-17 11:10:26 +08:00
Jeff Sharkey
dd6dd3b1fb Apply AttributionSource during Intent delivery.
There are some Parcelables which offer to perform Binder calls, and
when these are delivered via Intent extras they fallback to
ActivityThread.currentAttributionSource(), instead of being tagged
based on the relevant app component.

This change begins using Intent.prepareToEnterProcess() as a hook to
fix-up AttributionSource when those extras finally land in the
destination process.  It uses the relevant AttributionSource based
on the Activity or Service the Intent is delivered to, which
developers have control over via AppComponentFactory.

In the case of <receiver> manifest elements, this change applies the
first android:attributionTags value to the Context used for that
BroadcastReceiver.

Bug: 187097694
Test: atest AttributionTest
Change-Id: I8f5197db7e8d7277d34f0ef2bb90bfdf1871186a
2021-05-15 09:48:14 -06:00
Adam He
9cb16d9a4a Change dictionary results to use a bundle instead since it is a
structured result.

Bug: 187219452
Test: atest CtsTranslationTestCases
Change-Id: I61f62172d8089e1401e95177150ee23b1bee8e96
2021-05-14 17:11:28 -07:00
Winson Chung
79914dfbd5 Merge "Add fallback animation for auto-enter without source rect hint" into sc-dev 2021-05-14 23:44:23 +00:00
Ahaan Ugale
78b1525f9c Merge "Fix IndexOutOfBoundsException when calling dispatchProvideStructure()" into sc-dev am: 9e22972568
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14442225

Change-Id: Ib5fb32c868130ecddb6b4e69673ac6cb0ffe8017
2021-05-14 21:18:33 +00:00
Ahaan Ugale
9e22972568 Merge "Fix IndexOutOfBoundsException when calling dispatchProvideStructure()" into sc-dev 2021-05-14 21:15:18 +00:00
Ahaan Ugale
083a25ff5b Merge "Make InputMethodInfo#showInInputMethodPicker public." into sc-dev am: 6bf4cb6147
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14489960

Change-Id: I20d6c8e37d649c0438f74bf3650f0a00f461eb69
2021-05-14 16:22:01 +00:00
Ahaan Ugale
6bf4cb6147 Merge "Make InputMethodInfo#showInInputMethodPicker public." into sc-dev 2021-05-14 16:14:00 +00:00
Riddle Hsu
a274fd1c1a Draw splashscreen edge to edge
- Switch from PhoneWindow to FrameLayout
 - Ensure the Action bar is not shown on the splashscree
 - Do not show the contrast scrim under the system bars
 - Use the latest insets API to layout fullscreen

Test: Updated CtsWindowManagerDeviceTestCases:SplashscreenTests
Bug: 181852475
Bug: 184941669
Change-Id: Ifc04bd2227394415cc74c20d2974f4726ec9c789
2021-05-14 17:51:23 +08:00
Huihong Luo
fdfd0d25de Merge "Fix leakage of ASurfaceTransactionCallback" into sc-dev am: f410f8134f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14454598

Change-Id: I30d356f30bbbaad0f3c09db600847c1aef722c5a
2021-05-14 04:32:50 +00:00
Ahaan Ugale
76bf20fce7 Make InputMethodInfo#showInInputMethodPicker public.
Allows custom Input Method Pickers to exclude relevant IMEs, like the
system picker does now.

Fix: 184890628
Test: atest InputMethodInfoTest InputMethodManagerTest
Change-Id: I20033de2f6679ed8cd538de66e157f737792d847
2021-05-13 20:58:32 -07:00
Huihong Luo
f410f8134f Merge "Fix leakage of ASurfaceTransactionCallback" into sc-dev 2021-05-14 03:33:53 +00:00
Adam He
d9641ba9b7 Merge "Removed addValue from TranslationRequest because of potential bug in genrated builder code." into sc-dev am: 0a78fe6d5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14471493

Change-Id: I91f0a66079e9b75df9f2dbb0cd5c26c89f0104ad
2021-05-13 22:07:00 +00:00
Adam He
0a78fe6d5e Merge "Removed addValue from TranslationRequest because of potential bug in genrated builder code." into sc-dev 2021-05-13 22:03:42 +00:00
Adam He
f7f45e358d Merge "Make getText() nullable and return null." into sc-dev am: af6aa6ffb7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14444961

Change-Id: I6d54d25388e150fc78d38e5778311f422be64367
2021-05-13 20:55:37 +00:00
Adam He
c8421712cb Quick change to add default to deprecated callback method so
implementors can move to new api.

Bug: 186475868
Test: atest CtsTranslationTestCases
Change-Id: I3cfa2ec09bab37b7db110bf0f140754db4d2329a
2021-05-13 13:53:28 -07:00