Commit Graph

16684 Commits

Author SHA1 Message Date
Joanne Chung
c9a1329a73 Merge "Added documentation for TResponseValue bundle on how to use and example structure." into sc-dev am: ba76d446ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669189

Change-Id: I3f405fa834ce18a1de9dda3e5f957cd884216268
2021-05-26 06:33:49 +00:00
Joanne Chung
ba76d446ee Merge "Added documentation for TResponseValue bundle on how to use and example structure." into sc-dev 2021-05-26 06:18:49 +00:00
Ahaan Ugale
ab5c58b56d Merge "Manual overwrite @removed for genereated builder apis." into sc-dev am: c449e23d4d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722632

Change-Id: I3e83169d1915cd98ce88572619ee0b9d23b8f11c
2021-05-26 01:08:11 +00:00
Adam He
a8ad787594 Manual overwrite @removed for genereated builder apis.
Fixes: 186475868
Test: atest CtsTranslationTestCases
Change-Id: Ie56e57ac0afb2a3b1c99eb489d38d557fd1e2124
2021-05-25 13:07:12 -07:00
Tiger Huang
91b4b7bd05 Merge "Flush the animation if it is canceled" into sc-dev am: ea428b55e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14640272

Change-Id: I06940f0be00a298776f05fe22be17e4cbf8bc201
2021-05-25 17:26:39 +00:00
Tiger Huang
ea428b55e7 Merge "Flush the animation if it is canceled" into sc-dev 2021-05-25 17:12:16 +00:00
Vadim Caen
be2ac213fe Merge changes from topic "splashscreen-surface" into sc-dev am: fc1efcb428
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186656

Change-Id: Ie0e17006e404de22c20cce84cf7a43fdf0eb85e7
2021-05-25 15:24:45 +00:00
Vadim Caen
fc1efcb428 Merge changes from topic "splashscreen-surface" into sc-dev
* changes:
  Do not reparent the SC when package is already realeased
  Display Splashscreen AVD in a SurfaceView
2021-05-25 15:24:08 +00:00
Tiger Huang
1ce223481a Flush the animation if it is canceled
The issue was that: if navigation bar is requested to show while a
controller is playing an animation of hiding both status bar and
navigation bar, the animation will be canceled and will stay in an
intermediate state, and then, another controller will play an animation
of showing navigation bar. At the end, status bar will stay visible but
it should be invisible.

This CL fast-forwards the insets animation to the end state if it is
canceled.

Fix: 185459811
Test: Steps in the bug.
Change-Id: Id6ae321b6c153ed1d7155afd6111b193ac9c045c
2021-05-25 13:39:49 +00:00
Galia Peycheva
cb824953ce Merge "Add TunnelModeStateListener in java+jni" into sc-dev am: ee1219ac1d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14340805

Change-Id: Ie5b40d5be1fea10aafbffaf3c377ac25d8d2b20c
2021-05-25 12:08:32 +00:00
Galia Peycheva
ee1219ac1d Merge "Add TunnelModeStateListener in java+jni" into sc-dev 2021-05-25 12:05:42 +00:00
Joanne Chung
df12bfb9ff Merge "Refine the ViewTranslationCallback usage." into sc-dev am: cee152ee43
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186069

Change-Id: I8fd555cf8e64110681a81404d262464fec0073dc
2021-05-22 07:55:19 +00:00
Joanne Chung
cee152ee43 Merge "Refine the ViewTranslationCallback usage." into sc-dev 2021-05-22 07:41:18 +00:00
Nikita Dubrovsky
cca2545680 Merge "Improve javadocs for OnReceiveContentListener" into sc-dev am: 7bac522d23
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14607569

Change-Id: I3f8092c14abcc076f013cecafae5f7b92913f6bc
2021-05-22 05:11:20 +00:00
Nikita Dubrovsky
7bac522d23 Merge "Improve javadocs for OnReceiveContentListener" into sc-dev 2021-05-22 05:05:40 +00:00
Nate Myren
286db646fe Merge "Add PrivacyIndicator APIs to WindowInsets" into sc-dev am: 4421186590
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14273325

Change-Id: Ibef0b8fe751d69ad6d622594d3dee5e0a744bc0f
2021-05-22 00:18:14 +00:00
Nate Myren
4421186590 Merge "Add PrivacyIndicator APIs to WindowInsets" into sc-dev 2021-05-22 00:13:34 +00:00
Evan Rosky
6399316a1e Merge "Hook up nav-bar attach/detach logic to Shell Transitions" into sc-v2-dev 2021-05-21 23:28:32 +00:00
Nikita Dubrovsky
abd1ae225b Improve javadocs for OnReceiveContentListener
Bug: 186122267
Test: Presubmit
Change-Id: I7d9648ea3d942f69770dc65c1d4f4a799edf11ad
2021-05-21 15:53:15 -07:00
Yohei Yukawa
a8fab3749d Merge "Remove CursorAnchorInfo#createForAdditionalParentMatrix()" into sc-dev am: 53fb57c212
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14429500

Change-Id: I79e0ece0c6d79954a13437420dbaf010a514babe
2021-05-21 22:35:59 +00:00
Yohei Yukawa
e56486181f Merge "Remove InputMethodManager#reportActivityView()" into sc-dev am: e738cfc898
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14429499

Change-Id: Id5b4932a00aa13b8485203dc3ed8aa73df9db0d1
2021-05-21 21:43:08 +00:00
Adam He
db0514ea5b Added documentation for TResponseValue bundle on how to use and example
structure.

Bug: 187219452
Test: atest CtsTranslationTestCases
Change-Id: I9bc6e5bcdd0b5b551be5afc727554905dc1df4fe
2021-05-21 11:54:23 -07:00
Yohei Yukawa
898b28fecc Remove CursorAnchorInfo#createForAdditionalParentMatrix()
This CL logically reverts my previous CL [1], which added an @hide
method

  CursorAnchorInfo#createForAdditionalParentMatrix()

as a preparation to support CursorAnchorInfo API on ActivityView.

Now that InputMethodManager#reportActivityView() is removed [2], we
also do not need this @hide method any more too.

Note also that CursorAnchorInfo is now fully tested in CTS rather than
FrameworksCoreTests [3].  Thus it's fine with removing
CursorAnchorInfoTest.java from FrameworksCoreTests.

  [1]: Ic7f9057623ffc61ec7a6121735dc39adecf4649d
       e4410a135b
  [2]: Idd60d96a39f827197d189beb5de016446576d9cd
       44c499d853
  [3]: Ib758bddff34b4722b39c94e7ad4e8f8da2bb8b92
       c4ef1d6ec22dc2af2ed339fd4e78075903783be0

Bug: 115693908
Bug: 179161778
Test: atest CtsInputMethodTestCases:CursorAnchorInfoTest
Change-Id: I0a05453eeed863db5bfe4b965ab4bcbad67f2783
2021-05-21 18:14:26 +00:00
Yohei Yukawa
44c499d853 Remove InputMethodManager#reportActivityView()
This CL logically reverts my previous CL [1], which re-enabled
CursorAnchorInfo API for ActivityView since ActivityView is finally
removed [2].

There should be no user/developer impact in this CL as

   InputMethodManager#reportActivityView()

is called nowhere.

 [1]: Id0411a80456182111bb5b681c6d1230b58e7ec2e
      b4f328a2f3
 [2]: Ic66f3740819634366edb20a34a7c8177af258c2f
      5456990f7e

Bug: 115693908
Bug: 179161778
Test: atest CtsInputMethodTestCases
Test: atest CtsWindowManagerDeviceTestCases:ActivityViewTest
Change-Id: Idd60d96a39f827197d189beb5de016446576d9cd
2021-05-21 18:13:17 +00:00
Evan Rosky
2996ef5f4f Hook up nav-bar attach/detach logic to Shell Transitions
For the Recents gesture animation, the navbar gets attached to
the app while dragging. The actual navbar attach/detach logic
lives in Core, so this change basically hacks the logic into
the core-side of shell transitions. This is ugly and should
be a temporary solution until that behavior can move to Shell.

This also had to add an ugly API on IATM because the lifecycle
of the navbar reparent is different from the transition lifecycle
in this instance because of LiveTiles.

Bug: 188595497
Test: With shell transit enabled, open app, swipe up to recents.
      Observe navbar attached to app during drag and put back
      on screen afterwards. Also, no more crash.
Change-Id: I1aba53314329e3fd7678a7e8a5fc8ffa0294e395
2021-05-21 08:47:46 -07:00
Vadim Caen
dd36873334 Do not reparent the SC when package is already realeased
If we pass a copy of the surface package, we can release the original,
but we need to check that in this case the surface control doesn't get
reparented to null since the SurfaceView using the copy might already
use the surface.

Test: atest CtsWindowManagerDeviceTestCases:SurfaceControlViewHostTests#testTransferSurfacePackage
Bug: 181757194
Change-Id: Ibf084aa70f3821e7dc82fe45b194c07f307ebe1e
2021-05-21 13:13:16 +02:00
Joanne Chung
18b1d3bde4 Refine the ViewTranslationCallback usage.
Currently, TextView uses its default implementation even developers
uses setViewTranslationCallback() to set their customized
ViewTranslationCallback, we should only set default TextView
implementation if developers don't set it.

The onViewTranslationResponse() will call getViewTranslationCallback
instead of getting TextView default implementation directly. This can
make sure we can get the expected ViewTranslationCallback.

Bug: 183467275
Test: manual
Test: atest CtsTranslationTestCases

Change-Id: I41417140f8985aec6c80f1bca3cfba804727d5df
2021-05-21 19:11:14 +08: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
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
Yohei Yukawa
ebd27c999b Merge "Fix IME be dismissed abruptly" into sc-dev 2021-05-20 17:19:45 +00:00
Nate Myren
8e762afcd7 Add PrivacyIndicator APIs to WindowInsets
Add an API to WindowInsets that allows apps to see the maximum bounds
of the system privacy indicator

Fixes: 185932128
Test: atest PrivacyIndicatorBoundsTests
Change-Id: I01d9e36ccbbea15752eccadfbce4c54bdd35ed5a
2021-05-20 09:43:49 -07: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
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
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
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
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
Galia Peycheva
fde81bf229 Add TunnelModeStateListener in java+jni
When tunnel mode is being used (meaning when there
is a sideband stream in one of the layers in SurfaceFlinger), the
blur can't be computed over that layer. In that case, SF blurs are
disabled, which results in a translucent buffer to be drawn.

This CL introduces a listener, which is registered with the
SurfaceFlinger and receives a callback whenever the tunnel mode
enabled state changes. This way, the BlurController can properly send
updates to apps that blurs are disabled/enabled.

Bug: 171457637
Test: atest TunnelModeStateListenerTest
Test: atest TunnelModeStateReporterTest
Change-Id: I6ffba1c342352ad65a32c0efc4ecbc07811245d9
2021-05-17 20:55:19 +02: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