Commit Graph

16829 Commits

Author SHA1 Message Date
Ahaan Ugale
1e8894e42b Merge "Force to notify ContentCapture event even view is not laid out" into sc-dev am: 75d63c116c am: 9c8598f451 am: d423928e99
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14683430

Change-Id: I64a00a1c359127ec455ee1e1573d068bad5d374b
2021-05-28 03:00:21 +00:00
Ahaan Ugale
d423928e99 Merge "Force to notify ContentCapture event even view is not laid out" into sc-dev am: 75d63c116c am: 9c8598f451
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14683430

Change-Id: Ied5fe2684e8997d9fa65f6e273704f4213846876
2021-05-28 02:50:03 +00:00
Ahaan Ugale
75d63c116c Merge "Force to notify ContentCapture event even view is not laid out" into sc-dev 2021-05-27 00:35:19 +00:00
TYM Tsai
1d0ad76872 Force to notify ContentCapture event even view is not laid out
Some recycled views cached its layout and a relayout is unnecessary.
In this case,  system still needs to notify content capture the view
appeared.

Bug: 177687849
Test: atest CtsContentCaptureServiceTestCases
Test: atest ContentCapturePerfTests
Change-Id: I480436c4fc3508b9eed485421a1cc778d55d5dde
2021-05-27 00:52:50 +08:00
Joanne Chung
b7ac7c50ec Merge "Added documentation for TResponseValue bundle on how to use and example structure." into sc-dev am: ba76d446ee am: c9a1329a73 am: 767b79af8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669189

Change-Id: I77c2ce7f6d16a1e396752c5b26199ae95a2998d0
2021-05-26 07:02:19 +00:00
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
ec95ec054f Merge "Manual overwrite @removed for genereated builder apis." into sc-dev am: c449e23d4d am: ab5c58b56d am: 598fe13232
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722632

Change-Id: I4bd202929763009ebf656bacc5323b1aedb74870
2021-05-26 02:02:57 +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
d797a827ac Merge "Flush the animation if it is canceled" into sc-dev am: ea428b55e7 am: 91b4b7bd05 am: a15a08955e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14640272

Change-Id: I31496632cf97d2c156a6939a2c9bf34006dd764c
2021-05-25 18:03:22 +00: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
b42455b969 Merge changes from topic "splashscreen-surface" into sc-dev am: fc1efcb428 am: be2ac213fe am: edf6bbea58
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186656

Change-Id: If12039cd518709d54df21eeabdaedf2dc30bbbcf
2021-05-25 15:58:41 +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
a41c076d91 Merge "Add TunnelModeStateListener in java+jni" into sc-dev am: ee1219ac1d am: cb824953ce am: 809f09f491
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14340805

Change-Id: Id60914cf0bc4a8df8e5f4e55f3292b05488fed09
2021-05-25 13:25:06 +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
7229007466 Merge "Refine the ViewTranslationCallback usage." into sc-dev am: cee152ee43 am: df12bfb9ff am: f14bf04771
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186069

Change-Id: I28792837248882200481e439971b57cc32758e86
2021-05-22 08:25:51 +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
274056da3d Merge "Improve javadocs for OnReceiveContentListener" into sc-dev am: 7bac522d23 am: cca2545680 am: 4e968b6830
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14607569

Change-Id: Idbbb7fe3bffff52e30a799ff04772f7c9b945702
2021-05-22 05:28:17 +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
681cc20169 Merge "Add PrivacyIndicator APIs to WindowInsets" into sc-dev am: 4421186590 am: dde62b8b20 am: accaabe4ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14273325

Change-Id: Iaf50eb90588eb49645ee4d33db2c0a41a3ed9734
2021-05-22 00:47:47 +00:00
Nate Myren
accaabe4ba Merge "Add PrivacyIndicator APIs to WindowInsets" into sc-dev am: 4421186590 am: dde62b8b20
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14273325

Change-Id: Ifd25e3332700e34c9318db9f1ab8aff71f10cd06
2021-05-22 00:34:10 +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
b521eaf1d1 Merge "Hook up nav-bar attach/detach logic to Shell Transitions" into sc-v2-dev am: 6399316a1e am: 1613381920
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14654775

Change-Id: Ib1fcf32b406046755648c053a30fafbc005aab62
2021-05-22 00:07:53 +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
032af45064 Merge "Remove CursorAnchorInfo#createForAdditionalParentMatrix()" into sc-dev am: 53fb57c212 am: 3593b5c424 am: df14bfd364
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14429500

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

Change-Id: I1e0fd5ed7e8eb1221d5401ec5517fbc698f05e77
2021-05-21 22:48:45 +00:00
Yohei Yukawa
df14bfd364 Merge "Remove CursorAnchorInfo#createForAdditionalParentMatrix()" into sc-dev am: 53fb57c212 am: 3593b5c424
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14429500

Change-Id: Iedd246961c4bbd0d3afb635a9fb6e3da8c20798d
2021-05-21 22:36:31 +00: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
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