Commit Graph

19526 Commits

Author SHA1 Message Date
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
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
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
Pascal Mütschard
a8daba0e25 Merge changes I2fb29edd,I942c7053
* changes:
  DCL is broken and should not be used.
  Check the DeviceConfig permission early.
2022-08-24 07:43:21 +00:00
Taran Singh
ba58e63d52 Merge "Introduce Scribe Rich gestures API" 2022-08-24 06:40:48 +00:00
Joanne Chung
140dff9b49 Merge "Fix toolbar announce wrong text." into tm-qpr-dev am: 3292a30a1c am: ff672bc4db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19632605

Change-Id: Ib9ed18b9de38598e639a526fdb3d63dd39751cc7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 05:57:41 +00:00
Calvin Pan
2d2b57bc99 Merge "Using different strings for language/region picker" 2022-08-24 05:40:27 +00:00
Joanne Chung
ff672bc4db Merge "Fix toolbar announce wrong text." into tm-qpr-dev am: 3292a30a1c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19632605

Change-Id: If97f639c018bec3bcdb7e66b4e0d6b5b0848eadd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 01:12:26 +00:00
Joanne Chung
3292a30a1c Merge "Fix toolbar announce wrong text." into tm-qpr-dev 2022-08-24 01:07:32 +00:00
Taran Singh
f092a7cb23 Improve handwriting Ink window lifetime
1. When the system removes the last known stylus device
and has no other stylus available, remove the Ink window.

2. Create InkWindow only if the device+IME combination supports
handwriting and the stylus is being used.

Bug: 243571274
Bug: 239121683
Bug: 210039666

Test: atest StylusHandwritingTest
Change-Id: Icd3eea91fe144cff7100d3ecf19191c064c0d196
2022-08-24 00:24:04 +00:00
Hai Zhang
c9397f5342 Merge "Fix FastDataOutput.writeInternedUTF() when over 65534 strings." 2022-08-23 23:19:14 +00:00
Philip Junker
80068f1721 Merge "Remove BatteryStats user activity types and use PowerManager ones instead." into tm-qpr-dev am: 28930b91d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19674343

Change-Id: Ie5403d7839b0104af9e01b9580dd7dc424165343
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-23 20:44:56 +00:00
Dmitri Plotnikov
fecb3aed37 Revert "Revert "Breaking history writing out of BatteryStatsImpl""
This reverts commit a7ee33e7a7.

Reason for revert: Rolling the change forward

Change-Id: If6847dbe91e901ca07a0cde402b366b2a3d1f46a
2022-08-23 18:24:14 +00:00
Dmitri Plotnikov
23d6326b82 Merge "Revert "Breaking history writing out of BatteryStatsImpl"" 2022-08-23 16:44:21 +00:00
Liahav Eitan
15e2b0fe84 Fix sharing to another profile where an app has multiple targets
Moves the fixUris call from onTargetSelected directly to the intent
launch to ensure the intent which is actually started is updated with
userId specific URIs.

Bug:242165528
Bug:242605257
Test: manually share image from personal profile to work gmail,
first with chat target then backing up and selecting the main target

Change-Id: Iabf5dcf2612fe718f2f0886e2e5e9b76f37af1e1
2022-08-23 16:05:45 +00:00
Pascal Muetschard
24a356607c DCL is broken and should not be used.
Use the acceptable instance holder pattern as a replacement.

Change-Id: I2fb29edd48e00ac36a7fb0907a21ae5ca1d5163f
2022-08-23 17:40:57 +02:00
Pascal Muetschard
51f38fb6f3 Check the DeviceConfig permission early.
This causes the permission error to be thrown from the thread that
creates the JankMonitor rather than some background thread. This makes
it easier to debug the permission error and can prevent crashes due to
unhandled exceptions from background threads.

Change-Id: I942c705342962ce6e15ae5cd6041dc85f6f83a95
2022-08-23 17:40:56 +02:00
Philip Junker
28930b91d8 Merge "Remove BatteryStats user activity types and use PowerManager ones instead." into tm-qpr-dev 2022-08-23 14:54:04 +00:00
Philip Junker
79e517c3d4 Remove BatteryStats user activity types and use PowerManager ones instead.
Add millisSinceLastUserActivity and lastUserActivityEvent to PowerGroup log when dozing.
Add timeout to PMS log when dozing.

Bug: 243518837
Test: atest BatteryStatsTests
Test: atest PowerManagerServiceTest
Test: manually observe logs using logcat / adb bugreport
NoNonSdkCheck: USER_ACTIVITY_TYPES is only accessed indirectly by apps through dumpLocked() method.
Change-Id: I835992a08bd4a07350e36ef671c6273c8fee43a0
(cherry picked from commit bf794e4585)
Merged-In: I835992a08bd4a07350e36ef671c6273c8fee43a0
2022-08-23 14:48:09 +00:00
Calvin Pan
80e0a51b68 Using different strings for language/region picker
In zh_TW, the "suggested" translated as "suggested language"
in language/region picker. Using different words to translate to
"suggested language" and "suggested region".

Bug: 243016620
Test: Manually check the UI.
Change-Id: I2edf82039b8dd37ca27ce831efa1cfa1474c8efb
Merged-In: I2edf82039b8dd37ca27ce831efa1cfa1474c8efb
2022-08-23 08:56:05 +00:00
Calvin Pan
817ad35385 Using different strings for language/region picker
In zh_TW, the "suggested" translated as "suggested language"
in language/region picker. Using different words to translate to
"suggested language" and "suggested region".

Bug: 243016620
Test: Manually check the UI.
Change-Id: I2edf82039b8dd37ca27ce831efa1cfa1474c8efb
2022-08-23 08:49:36 +00:00
Daniel Kim
9b6bc69594 Merge "Revert "DCL is broken and should not be used."" 2022-08-23 00:21:35 +00:00
Andrew Chant
a7ee33e7a7 Revert "Breaking history writing out of BatteryStatsImpl"
This reverts commit 62242bdca3.

Reason for revert: ramdumps on ToT related to battersystats parcel parsing
Bug: 243434675

Change-Id: I18522929f5a1499f56a0cc19606c28a2ed9fc26d
2022-08-22 21:54:00 +00:00
Taran Singh
3e3ff1a3d2 Introduce Scribe Rich gestures API
During a stylus handwriting session, user can perform a
stylus gesture operation like  Select, delete, insert on an
area of text. IME needs APIs to perform these gestures on text.
This CL introduces API signature for Select, delete, insert gestures.

Design doc: go/scribe-gestures-api

Bug: 239783077
Bug: 210039666
Test: Manually build & compile HandwritingIme

Change-Id: I53bcb62e03ac1c371feb60d1385c88c921754092
2022-08-22 14:22:47 -07:00
Daniel Kim
11822c7941 Revert "DCL is broken and should not be used."
This reverts commit ab0cbeffdf.

Reason for revert: Droidmonitor-triggered revert due to breakage
Bug: b/243389642

Change-Id: I2121840da7bba800d3a6fbe2228ce70c952d11e6
2022-08-22 18:56:21 +00:00
Pascal Mütschard
43e8c6ff04 Merge "DCL is broken and should not be used." 2022-08-22 14:15:11 +00:00
Pascal Muetschard
ab0cbeffdf DCL is broken and should not be used.
Use the acceptable instance holder pattern as a replacement.

Change-Id: I0164b8c17db4e6e15aee5a862fa8e625a9b1bbf4
2022-08-22 13:00:03 +02:00