Commit Graph

19699 Commits

Author SHA1 Message Date
TreeHugger Robot
284aecda62 Merge "Move dumpViewInfo from InputMethodManager to InputMethodDebug" 2022-09-08 05:08:49 +00:00
Tony Huang
262253f95a Merge "Fix divider dismiss position wrong on potrait" into tm-qpr-dev am: d36b472cd3 am: 3770554346
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19882684

Change-Id: Iacb921e7fbace64eddadeb7123c8f5113d151a75
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 03:45:09 +00:00
Tony Huang
3770554346 Merge "Fix divider dismiss position wrong on potrait" into tm-qpr-dev am: d36b472cd3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19882684

Change-Id: Ia94f94530d7ae69aad8a1ab7824ef206f47f1292
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 03:14:50 +00:00
Tony Huang
5112e20135 Fix divider dismiss position wrong on potrait
When we calculate dismiss target, it will deduce nav bar size from
total height. Remove this rule to make divider always move to end
of screen.

Fix: 232858513
Test: manual
Test: pass existing tests
Change-Id: I34cf12f242daa31bd4dd7d4b202fc43ac0d752b4
2022-09-07 15:21:39 +08:00
Andrey Epin
e33f3f093f Merge "Load direct-share icons asynchronously" into tm-qpr-dev am: 1809ffcf0e am: bb1a6ee1c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18973259

Change-Id: I97c84130642975bc7913b36b27332eedbf484137
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 03:38:57 +00:00
Ming-Shin Lu
9f3c04e5af Move dumpViewInfo from InputMethodManager to InputMethodDebug
This a preperation CL before refactoring ImeFocusController.

To make dumpviewInfo can also be used in other IME related files
like ImeFocusController.

Also, removed unused method InputMethodDebug#objectToString.

This is just a mechanical refactoring and should not have any behavior
change.

Bug: 244504062
Test: build
Change-Id: I9d1a0c2b06e676e40b0e844edb18e8422a67b0ad
2022-09-07 03:33:39 +00:00
Andrey Epin
bb1a6ee1c8 Merge "Load direct-share icons asynchronously" into tm-qpr-dev am: 1809ffcf0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18973259

Change-Id: If4991c79dae30982c27ad0f3f75654b21ea3d5ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 03:10:28 +00:00
Andrey Epin
1809ffcf0e Merge "Load direct-share icons asynchronously" into tm-qpr-dev 2022-09-07 02:44:24 +00:00
Nick Chameyev
d0670cacba Merge changes from topic "pss-app-selector-screenshot" into tm-qpr-dev am: 47c21d1216 am: ea0153c0fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19536771

Change-Id: I564154cc33172568868446a04202cfc4a432b867
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 14:03:47 +00:00
Nick Chameyev
807b84b1f3 [Partial Screensharing] Update app selector (ChooserActivity) header am: 2d2b24f09d am: 21ceb39058
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19537653

Change-Id: Iac3673d9720a28cf07bcf069cc6f4c20eab21dba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 14:03:04 +00:00
Nick Chameyev
ea0153c0fc Merge changes from topic "pss-app-selector-screenshot" into tm-qpr-dev am: 47c21d1216
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19536771

Change-Id: I3abe0699529a84f05e57bee59eacf2cc60a4dc22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 13:31:52 +00:00
Nick Chameyev
21ceb39058 [Partial Screensharing] Update app selector (ChooserActivity) header am: 2d2b24f09d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19537653

Change-Id: Ica3a17529f4e730104bf6ee1b43bc5d24bbaf584
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 13:31:27 +00:00
Nick Chameyev
47c21d1216 Merge changes from topic "pss-app-selector-screenshot" into tm-qpr-dev
* changes:
  [Partial Screensharing] Add app selector activity screenshot test
  [Partial Screensharing] Update app selector (ChooserActivity) header
2022-09-06 13:05:30 +00:00
TreeHugger Robot
d7a11eca6f Merge "Provide gesture result" 2022-09-02 02:20:16 +00:00
Hongwei Wang
0683a10d0d Merge "Handle ProtoLog logging command in WMShell" into tm-qpr-dev am: 8d8e064dd2 am: 403e178a02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19802200

Change-Id: I144af01dc4d21a8da627c2ec6b5a96a39674f662
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 00:54:28 +00:00
Hongwei Wang
403e178a02 Merge "Handle ProtoLog logging command in WMShell" into tm-qpr-dev am: 8d8e064dd2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19802200

Change-Id: I40c7412b1d93a1e699c91339df8196ae71d63200
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 00:19:18 +00:00
Justin Ghan
19bf9c65a1 Provide gesture result
Bug: 240435922
Test: atest android.widget.cts.TextViewHandwritingGestureTest
Change-Id: I33590176445ee4cf697499688a06fda24bf0cbcf
2022-09-01 10:09:28 -07:00
Nick Chameyev
5cb791b6f6 [Partial Screensharing] Add app selector activity screenshot test
Adds a screenshot test for the app selector activity.
It also contains changes to utility rules and classes
to allow capturing the whole activity instead of a single
view.

Bug: 235465652
Test: atest com.android.systemui.mediaprojection.MediaProjectionAppSelectorScreenshotTest
Change-Id: I558c3d0e8893091d42f90cb0358c9fd030cbc0dc
2022-09-01 16:48:03 +00:00
Nick Chameyev
2d2b24f09d [Partial Screensharing] Update app selector (ChooserActivity) header
Updates title style (increases font size), adds an icon
and hides the drag handle for media projection app
selector activity which is based on ChooserActivity.

Bug: 235465652
Test: atest com.android.internal.app.ChooserActivityTest
Test: screenshot test in a follow-up CL
Change-Id: Ib717d3f7e6132d56e8344f4e06a12a64ee63457b
2022-09-01 16:11:41 +00:00
Dmitri Plotnikov
3d1fd42292 Reset STATE2_EXTENSIONS_FLAG when unused and on every new buffer
Bug: 244500357
Test: atest FrameworksServicesTests:BatteryStatsTests
Change-Id: Iaaedf2c47c982855bcc66b2673a6c82281c93d0a
2022-08-31 18:36:30 -07:00
Hongwei Wang
5ec2f4d52e Handle ProtoLog logging command in WMShell
Added a ProtoLogController class that hooks into ShellCommandHandler to
handle the adb shell command for ProtoLog in WMShell.

Removed the proxy in WM to pipe the adb shell command to WMShell via
StatusBarManagerService.

Bug: 243447162
Test: adb shell dumpsys activity service \
        SystemUIService WMShell protolog help
Change-Id: I9175ec88dcbae53508c97b4df1c2378b3eb9d648
2022-08-31 17:30:37 -07:00
Dmitri Plotnikov
657bec85e5 Merge "Add EnergyConsumer data to battery history" 2022-08-31 21:42:42 +00:00
Wilson Wu
e1aa0a6cf5 Merge "Add HIDE_BUBBLES reason into InputMethodDebug" 2022-08-31 06:22:06 +00:00
Cole Faust
9acf46f66f [conflict] Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073 am: 91d6c5b564 am: 6a79ae2567 am: 9b3a5fc03b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2186016

Change-Id: I5e59b8549df348c181cd3b72311798a5d7602a67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 21:03:54 +00:00
Cole Faust
9b3a5fc03b Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073 am: 91d6c5b564 am: 6a79ae2567
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2186016

Change-Id: I7052a1f7391ed6701fe0e1036c27368609032e35
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 20:44:00 +00:00
Andrey Epin
5650e0c3c8 Load direct-share icons asynchronously
Move direct-share icons loading off the main thread in the same way
we're loding A-Z icons.

Test: Manual testing with rotatin and screen locking. Unit tests.
Fix: 215699869
Change-Id: Ied1bfdcacba8f3ab0ad8aac3988944181365b59c
2022-08-30 13:39:11 -07:00
Cole Faust
91d6c5b564 Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2186016

Change-Id: Icfb700330d9a9cd0a592b76c9e4cf4a8bcd19c30
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 19:01:56 +00:00
Jernej Virag
3a68a7204d Merge "Prevent loading of Icon resources from the wrong package" into tm-qpr-dev am: 2c5fcf4428 am: 2fd7271c78
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19624933

Change-Id: I1f30f95f395341f3219efcfde8ad967d044adbf1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 12:42:46 +00:00
Jernej Virag
2fd7271c78 Merge "Prevent loading of Icon resources from the wrong package" into tm-qpr-dev am: 2c5fcf4428
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19624933

Change-Id: I45eea92c80bbde531658ab3a7d02bf4e2dc24e73
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 12:12:43 +00:00
Jernej Virag
166d420cf4 Prevent loading of Icon resources from the wrong package
If an Icon carries package designator, LocalImageResolver has now
ignored it. This could lead to loading of a wrong icon in cases where
the ID collided with the same ID in android package.

This is fixes that corner-case.

Bug: 241066484
Test: atest LocalImageResolverTest - the new test checks for pkg
      correctness and fails on devices without this cl

      manual test: bluejay device with known, reproducible resource
      collision in media player notification. In reproducible case,
      icon appears as a broken block.

      After applying this patch, small icon in media notification loads
      correctly for the collision case.

Change-Id: Ic79c0d4acb1d347a24282972e009a5a079ce6c21
2022-08-30 09:16:54 +00:00
Wilson Wu
da44af4070 Add HIDE_BUBBLES reason into InputMethodDebug
CL[1] add a new HIDE_BUBBLES reason but didn't add
it into the InputMethodDebug. Add this reason for
showing correct debugging information.

[1]: I09f27b3c187a7bcfbef663cd3101a74ad8ab95ab

Bug: 244258828
Test: Verify this reason showing in SoftInputShowHideHistory
Change-Id: Ia571de9a00a05ab490152d40329a200fc40f0d6a
2022-08-30 12:56:59 +08:00
Dmitri Plotnikov
0c2a3a823c Add EnergyConsumer data to battery history
Bug: 243199649
Test: atest FrameworksServicesTests:BatteryStatsTests

Change-Id: I9ed353dc313a01995d0de96415336dd5298e4aa0
2022-08-29 10:55:13 -07:00
Justin Ghan
3ebab3f7c2 TextView implementation of insert gesture
Bug: 240435922
Test: atest android.widget.cts.TextViewHandwritingGestureTest
Change-Id: I3c7eb06925081bd5e699999c69437ef8bb929741
2022-08-26 23:19:28 -07:00
Justin Ghan
8b5d4bd91e TextView implementation of select and delete gestures
Bug: 240435922
Test: atest android.text.LayoutGetRangeForRectTest
Test: atest android.widget.cts.TextViewHandwritingGestureTest
Change-Id: I6ceaa4555b82f1c2650d2db3bf39674641d53b8f
2022-08-26 23:18:00 -07:00
Jing Ji
13b7c33bdc Allow preventing unrestricted Apps from being Stopped am: dcd089d3e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19740663

Change-Id: Ie524af0e8db6fc107fa1f966a084492e8e5b53b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-26 07:08:33 +00:00
Jordan Demeulenaere
6fbd48df33 Merge changes from topics "footer-actions-fakes", "footer-actions-mad", "footer-actions-screenshots" into tm-qpr-dev
* changes:
  Enable the new footer actions in team food.
  Add screenshot test for the footer actions (2/2)
  Implement LaunchableView for footer actions Views.
  Wire the new FooterActions implementation behind a flag
  Implementation of the FooterActions following the MAD (1/3)
  Add BroadcastDispatcher.broadcastFlow
  Extract QSSecurityFooterUtils out of QSSecurityFooter
  Make the logic of QSSecurityFooter reusable
  Add some fakes to SystemUI-test-utils
  Allow preventing unrestricted Apps from being Stopped
2022-08-26 06:47:09 +00:00
Neha Jain
1854f26ff1 Merge "Revert "Remove BatteryStats user activity types and use PowerManager ones instead."" into tm-qpr-dev am: 900e693d58
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19734803

Change-Id: Ib9db2a5899906b4799708dd92d1ef436c043f3c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-26 00:59:32 +00:00
Neha Jain
900e693d58 Merge "Revert "Remove BatteryStats user activity types and use PowerManager ones instead."" into tm-qpr-dev 2022-08-26 00:48:04 +00:00
Taran Singh
4b5d696935 Add consumer callback in performHandwritingGesture()
performHandwritingGesture should take an optional IntConsumer
& executor to provide result of Gesture operation back to IME.

Bug: 210039666
Bug: 239783077
Test: atest InputConnectionEndToEndTests

Change-Id: I2ca7eaa182159b7ffef0812d970512ffcf817ce2
2022-08-25 13:58:44 -07:00
Taran Singh
f135f8952b Add supported gesture type to EditorInfo
Editors should declare which Scribe Gestures do they support
as a means of providing this info to IME.

Bug: 239783077
Test: atest CtsInputMethodTestCases

Change-Id: Ic52a48c0a04d405e65ad49e9d447d603fefb4eb0
2022-08-25 13:58:44 -07:00
Neha Jain
e8ab134de1 Revert "Remove BatteryStats user activity types and use PowerManager ones instead."
This reverts commit 79e517c3d4.

Reason for revert: b/243434675

Change-Id: Ie2476f23715ed933064470ee2f50d550e92d46b8
Merged-In: I5cfdd6a7c21ed322f50d7605fdd470b41726f4cf
2022-08-25 20:34:31 +00:00
Dmitri Plotnikov
f764657905 Merge "Revert "Revert "Breaking history writing out of BatteryStatsImpl""" 2022-08-25 18:05:01 +00:00
Cole Faust
584140c83a Fix array-related errorprone warnings
The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.

Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: Ia6f216cc36ad0a5758f39fd9b34962cd4adf9d8e
2022-08-25 10:57:12 -07:00
Liahav Eitan
2774590fe5 Merge "Fix sharing to another profile where an app has multiple targets" into tm-qpr-dev am: 6dae9d46b7 am: ce7a4f30b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19657256

Change-Id: Ie591257c0015653bc70679283dcd600e8110d09d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 10:39:31 +00:00
Liahav Eitan
ce7a4f30b7 Merge "Fix sharing to another profile where an app has multiple targets" into tm-qpr-dev am: 6dae9d46b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19657256

Change-Id: I41807e6379e252fce1930eb3d6ade32af2cf6ed8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 10:20:06 +00:00
Liahav Eitan
6dae9d46b7 Merge "Fix sharing to another profile where an app has multiple targets" into tm-qpr-dev 2022-08-25 09:59:52 +00:00
Jing Ji
dcd089d3e7 Allow preventing unrestricted Apps from being Stopped
This CL adds a flag to allow toggling the behavior on whether or not
the foreground service task manager should show a stop button for
unrestricted apps.

Bug: 230449539
Test: Manual - device_config put systemui \
      show_stop_button_for_user_allowlisted_apps true|false
Test: atest FgsManagerControllerTest
Change-Id: I4cfe54933d7c6807a7ffbac9ee709c7d8d6b83d3
Merged-In: I4cfe54933d7c6807a7ffbac9ee709c7d8d6b83d3
2022-08-25 10:48:45 +02:00
Taran Singh
7a94646a65 Merge "Improve handwriting Ink window lifetime" 2022-08-25 04:37:22 +00:00
Calvin Pan
6198fd99ab Merge "Using different strings for language/region picker" into tm-qpr-dev am: ee666baeac
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19706830

Change-Id: Ie3d0b0864bd1f8bf29e5ae220f1c1b903ac58b34
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 10:12:13 +00:00
Calvin Pan
ee666baeac Merge "Using different strings for language/region picker" into tm-qpr-dev 2022-08-24 09:30:22 +00:00