Commit Graph

19032 Commits

Author SHA1 Message Date
TreeHugger Robot
fadc810a48 Merge "Merge IInputMethodManager#get{,AwareLocked}InputMethodList" 2022-07-20 06:29:08 +00:00
Caren Chang
87939a3e08 Merge "Add explanation about the purpose of accessibility heading and use case apps should consider." am: 407d531735 am: afc1b7d01e am: 08ae6de00f am: 389bce3764 am: 8bd8e3ee20
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2151635

Change-Id: I6122eda7c5b6d4ed8d2da361d6cdaa13129ce12c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-19 23:47:28 +00:00
Caren Chang
8bd8e3ee20 Merge "Add explanation about the purpose of accessibility heading and use case apps should consider." am: 407d531735 am: afc1b7d01e am: 08ae6de00f am: 389bce3764
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2151635

Change-Id: Ife6f292b0350a51409ed45d075a379890ada7b8b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-19 23:29:33 +00:00
Caren Chang
afc1b7d01e Merge "Add explanation about the purpose of accessibility heading and use case apps should consider." am: 407d531735
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2151635

Change-Id: If08ab9af3186e37a8e59863ac701d3679e18bd36
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-19 22:29:08 +00:00
Alex Stetson
1471112671 Merge "Update topFocusedWindowChanged API" into tm-qpr-dev am: eb04bd2461 am: bbe98fef6a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19240597

Change-Id: Iaea992aab5a17da6eff8db5dc4d30a4dfad81fef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-19 21:39:01 +00:00
Alex Stetson
bbe98fef6a Merge "Update topFocusedWindowChanged API" into tm-qpr-dev am: eb04bd2461
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19240597

Change-Id: I784ce823efcb530e66f87ab547a0c550fac1fd81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-19 21:20:34 +00:00
Alex Stetson
eb04bd2461 Merge "Update topFocusedWindowChanged API" into tm-qpr-dev 2022-07-19 21:01:49 +00:00
Yohei Yukawa
1fb9a87bdb Merge IInputMethodManager#get{,AwareLocked}InputMethodList
This is a follow up CL to our previous CL [1], which introduced

  IInputMethodManager#getAwareLockedInputMethodList

as a variant of

  IInputMethodManager#getInputMethodList.

This CL mechanically merges those two IPC entries into one entry as
specifying

  DirectBootAwareness.AUTO

is something we can do in the IME client side, without changing any
observable semantics.

 [1]: I54d5dbec7e76d6a68935007ed3af0641f717a7c5
      04a226334d

Bug: 210083408
Bug: 234882948
Test: presubmit
Change-Id: Ic02484fcbb9c1bbd8e964bb7a2f7acff904e2a33
2022-07-19 11:56:30 -07:00
TreeHugger Robot
792e498ffa Merge "Implement IMM#showInputMethodAndSubtypeEnabler() in the client side" 2022-07-19 18:26:22 +00:00
Chris Li
c7e4035f26 Merge "Add ActivityEmbedding Property key" 2022-07-19 11:09:04 +00:00
Yohei Yukawa
ea675ead0a Implement IMM#showInputMethodAndSubtypeEnabler() in the client side
With this CL,

  InputMethodManager#showInputMethodAndSubtypeEnabler()

is fully implemented in the client side.  By not using system_server
privileged context to launch the Settings activity, we can stop
worrying about conflicts with existing security concepts such as

 * Background Activity launch blocking mechanism
 * Restrictions for instant apps

Bug: 34886274
Test: Manually verified as follows.
 1. Build aosp_coral-userdebug and flash it.
 2. adb install -r $ANDROID_TARGET_OUT_TESTCASES/ApiDemos/arm64/ApiDemos.apk
 3. adb shell am start -n com.example.android.apis/.ApiDemos
 4. View -> Input Method -> ShowInputMethodAndSubtypeEnabler
 5. Verify that the API works.
Change-Id: I5199ca4609c03900a0e86011d344b054b1df08dd
2022-07-18 22:31:40 -07:00
Caren Chang
02bbf4b30c Add explanation about the purpose of accessibility heading and use case apps should consider.
Change-Id: I01bdd1fc89d54e62e9ce1f8dc15a58d13c56fabc
Test: N/A, documentation chang
2022-07-18 21:19:44 +00:00
TreeHugger Robot
1bc702b662 Merge "Remove view based on known index of the view on exception" into tm-qpr-dev am: 31f6e65c85 am: c11bab5bbe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19299681

Change-Id: Ic4f511b19314ac0a8b26b1a0ef1205a59f387d63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 18:21:33 +00:00
TreeHugger Robot
c11bab5bbe Merge "Remove view based on known index of the view on exception" into tm-qpr-dev am: 31f6e65c85
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19299681

Change-Id: I748dcc4a81da53fc5948215d386f498f344958fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 18:02:22 +00:00
TreeHugger Robot
31f6e65c85 Merge "Remove view based on known index of the view on exception" into tm-qpr-dev 2022-07-18 17:53:04 +00:00
Sam Dubey
f4c8dd0528 Merge "Revert "Reland "Make extra navigation bar count towards non decor frame"""" into tm-qpr-dev am: 661d05308a am: 65851bb227
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19300566

Change-Id: I83c73910a7a9ff4f294b4a6fd0b84b4bf6f0795c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 06:38:31 +00:00
Sam Dubey
65851bb227 Merge "Revert "Reland "Make extra navigation bar count towards non decor frame"""" into tm-qpr-dev am: 661d05308a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19300566

Change-Id: Icdf3d72e80ff4640b047284d89bdf4225a69c3bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 06:20:51 +00:00
Beverly
b1525b85e1 Remove view based on known index of the view on exception
There's no need to findViewLocked - if the view
didn't already exist, then the view is added
to the end of the mViews list. findViewLocked
will need to iterate over all the views which
is unnecessary.

Test: manual
Fixes: 238954722
Change-Id: I3a22f59df84f512d4e914f0e3566927450284298
2022-07-15 16:53:42 +00:00
Sam Dubey
bc0d5539e6 Revert "Reland "Make extra navigation bar count towards non decor frame"""
This reverts commit 620e91578c.

Reason for revert: b/238985243

Change-Id: I1fc82c61b445b6f5ceedb2ec8b727e8e745f47c9
2022-07-15 12:22:44 +00:00
Chris Li
f729fb2f62 Add ActivityEmbedding Property key
Allow apps to define ActivityEmbedding related flags in AndroidManifest
using <property> tags, so that the system can read the info before the
apps launch.

The property is for apps to provide consent to allow the System to
override ActivityEmbedding rules for the apps.

Bug: 236778622
Test: atest
      CtsWindowManagerJetpackTestCases:ActivityEmbeddingPropertyTests
Change-Id: Ibd5f9ed41b94de0bf9ff2c81a7ffa19d1067b769
2022-07-15 11:35:23 +00:00
Wilson Wu
956374833a Improve API annotation for InputMethodManager
Annotate null-ness for APIs and parameter for
InputMethodManager, IInputMethodManagerInvoker
and IInputMethodManager.aidl.

This is a annotation improvement without any user
visible changes.

Bug: 237959367
Test: presubmit
Change-Id: I426fb9ca9009f0f91a4d2d6a39094ea9c20671f7
2022-07-15 18:21:45 +08:00
TreeHugger Robot
cb7d9ca548 Merge "Lower fields visibility for InputMethodManager" 2022-07-15 03:14:59 +00:00
Ryan Lin
243d5ed95d Merge changes Ia418b2f4,If3c35a6b
* changes:
  Delete the obsolete code for accessibility title population
  Send AccessibilityWindowAttributes to accessibility-framework
2022-07-15 01:41:21 +00:00
Wilson Wu
e00ecf3b1a Lower fields visibility for InputMethodManager
Some of local variables are declared as package-access
but they only used in InputMethodManager. We can safely
convert them to private.

This is a mechanical refactor without user visible
change.

Bug: 236920321
Test: presubmit
Change-Id: Iaf8de0d7f0d4a8572df81810e1f8593436e3b771
2022-07-14 19:12:55 +08:00
TreeHugger Robot
fe8595d023 Merge "Lower method visibility for InputMethodManager" 2022-07-14 10:30:05 +00:00
Wilson Wu
5bd2021180 Lower method visibility for InputMethodManager
There are many methods declared as package-access
but only used in InputMethodManager. Convert them
to private instead.

This is a mechanical refactor without user visible
change.

Bug: 236920321
Test: presubmit
Change-Id: Ia66dbf7ce7aed4715b6fc18521783898e8e5fb4d
2022-07-14 14:07:06 +08:00
Yunfan Chen
746cce200a Merge "Reland "Make extra navigation bar count towards non decor frame""" into tm-qpr-dev am: 367ff5a1d8 am: 2d3df2917e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18425968

Change-Id: I950132a5367eb06f54f6be29cb58d101c8532d4d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 03:41:05 +00:00
ryanlwlin
ead96e04ba Send AccessibilityWindowAttributes to accessibility-framework
We get the window bounds from InputWindowHanlde, however it doesn't
have all of window information. To get them from accessibility
perspective, ViewRootImpl will provide those information via
AccessibilityManger.

Bug: 210985169
Test: atest android.accessibilityservice.cts
      atest AccessibilityWindowManagerTest AccessibilityManagerServiceTest
      test with talkback
Change-Id: If3c35a6bcd073294c3b34ece95100207d3802ad7
2022-07-14 11:39:27 +08:00
Yunfan Chen
2d3df2917e Merge "Reland "Make extra navigation bar count towards non decor frame""" into tm-qpr-dev am: 367ff5a1d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18425968

Change-Id: I1db57d7f006915126eabbe8afb01f8fb5c2ffa0b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 03:23:05 +00:00
Yunfan Chen
620e91578c Reland "Make extra navigation bar count towards non decor frame""
This reverts commit 8626ad35b1.

Reason for revert: Trying to reland

The previous patch may delay a configuration update caused by the task
bar change, and dispatch the update when something irrelevant happens
such as dragging an icon to the workspace. Changed logic in WMS and
WindowState to ensure a configuration update in that case.

Test: TaplTestsQuickstep#testAllAppsFromHome (With task bar)
Test: CtsWindowManagerDeviceTestCases (With task bar)
Test: android.view.cts.ViewTest
Bug: 224404595
Bug: 205496695
Bug: 228380863
Change-Id: Ib192d4ad012fed136f808b15a84f8d83ca426b21
2022-07-13 08:33:56 +00:00
Wilson Wu
8d3a212bce Merge "Clean up setInputChannelLocked" 2022-07-13 07:55:14 +00:00
Wilson Wu
5f79ba7dcb Clean up setInputChannelLocked
-. Rename setInputChannelLocked and add a static
   method for checking same InputChannel.

Suppose we need to handle the flush pending events
when the input channel is modified based on CL[1],
CL[2] and CL[3].

This is a mechanical refactor and it should no
user visible change.

[1]: Ibe26311edd0060cdcae80194f1753482e635786f
[2]: I7e0b6a3c43cbe72f8762991f5d36560feebd214b
[3]: If8317941dd1c6d5db77f1239b9a9f45d49997df9

Bug: 236920321
Test: atest CtsInputMethodTestCases
Change-Id: I4f0d2404705a8f93de345571136690dd408d1132
2022-07-13 11:43:47 +08:00
Yunfan Chen
3111dcd51a Merge "Introduce InsetsSizeOverride" into tm-qpr-dev am: dd1b8480de am: 57ad712787
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19095354

Change-Id: Id1aafab84f4d269387e605d7e8e1ffb63902e88e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 03:36:33 +00:00
Yunfan Chen
57ad712787 Merge "Introduce InsetsSizeOverride" into tm-qpr-dev am: dd1b8480de
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19095354

Change-Id: I8784d9ebb838c7a906fb61119223a92e669f090f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 03:14:29 +00:00
Yunfan Chen
dd1b8480de Merge "Introduce InsetsSizeOverride" into tm-qpr-dev 2022-07-13 02:45:57 +00:00
Philip Quinn
707e396df0 Merge "Clarify and cross-reference documentation for motion event handlers." 2022-07-13 00:41:17 +00:00
TreeHugger Robot
9106c2f805 Merge "Make sure to cleanup views that couldn't be added" into tm-qpr-dev am: c01cce0313 am: 4ab2bc56dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19138536

Change-Id: If88b8ed5576720850fd341054ebb32af98878af4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-12 21:32:05 +00:00
TreeHugger Robot
4ab2bc56dd Merge "Make sure to cleanup views that couldn't be added" into tm-qpr-dev am: c01cce0313
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19138536

Change-Id: I7d52c9d73afd051076c6f4516272f7464fa88352
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-12 21:29:21 +00:00
TreeHugger Robot
c01cce0313 Merge "Make sure to cleanup views that couldn't be added" into tm-qpr-dev 2022-07-12 20:42:06 +00:00
Philip Quinn
3c67e02c44 Clarify and cross-reference documentation for motion event handlers.
Test: make docs
Change-Id: I620c3d433c225aa4a72ccefc27ef7696184425d8
2022-07-12 13:30:50 -07:00
Xin Li
14164fb11a DO NOT MERGE - Merge TP1A.220624.013
Merged-In: I2f3d04546af58edbe7bae2b7d856ab3d87365fdf
Change-Id: Iaf981a42ffa918ec7dc0b86e533c5c8371872271
2022-07-11 21:47:41 -07:00
Alejandro Nijamkin
78f2d6b37d Merge "Unhides window visibility listener API." 2022-07-11 17:18:59 +00:00
Alex Stetson
02cb8c6fd0 Update topFocusedWindowChanged API
For certain situations it's useful to know the exact activity that's
being hosted in the focused window when it changes, not just the package
name.

Bug: 237317934
Test: manual
Change-Id: I21ef229e9b29110957d9176357851720edc1f117
2022-07-11 16:36:33 +00:00
TreeHugger Robot
caf3840db6 Merge "Refine binding fields in InputMethodManager (3/N)" 2022-07-11 02:06:28 +00:00
Alejandro Nijamkin
45f1194d43 Unhides window visibility listener API.
Bug: b/235403546
Fix: b/235403546
Test: the API has been in use in other CLs
Change-Id: Ia59cbf5288d893204dc361fcde9695179f52f5e0
2022-07-09 21:56:14 +00:00
Taran Singh
4d097cc478 Merge "Conditional Init HWController when device has supported stylus" 2022-07-09 07:47:56 +00:00
Andy Labrada
eb8161a0e0 Merge "SurfaceFlinger: Remove usage of window types to implement policy" 2022-07-08 23:15:53 +00:00
Wilson Wu
cbfed090a8 Refine binding fields in InputMethodManager (3/N)
Deprecate the mBindSequense and migrate it into BindState.

This is a mechanical refactor which should no user
visible change.

Bug: 236937383
Test: atest CtsInputMethodTestCases
Change-Id: If4cc98f27837a2ec148b7ffa7aa342f7fce10d21
2022-07-08 14:26:13 +08:00
Taran Singh
d96ef57bc4 Conditional Init HWController when device has supported stylus
Use InputManager device listener to track if we've a known supported
stylus in system, only then init Handwriting.
Also supports simulated stylus

Bug: 210039666
Test: atest StylusHandwritingTest

Change-Id: I7399c0a56c04f024d65c16d459818cc2c5cdbc7f
2022-07-07 14:38:08 -07:00
Alex Stetson
ca190513db Merge "Scale light z value relative to screen size" into tm-qpr-dev am: ed5f49d918 am: 82b58cf3a3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19197402

Change-Id: I994a5df880db087c20f39ad136aaf0714bcafb5f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07 18:20:55 +00:00