summaryrefslogtreecommitdiff
path: root/core/java/android/widget
Commit message (Collapse)AuthorAgeFilesLines
* Handle exceptions from querying appinfo in RemoteViews#addAppWidget.Sunny Goyal2025-10-071-6/+10
| | | | | | | | | | | | Host process may not have access to the ApplicationInfo directly in some cases Bug: 395168279 Test: Manual Flag: EXEMPT bugfix (cherry picked from commit 37bf5823504f2a256f128123393cd149721b87fc) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:74decaab6437094783853b531a5c6538cce8f58f) Merged-In: Ic26d63acea5f227b56d44bc2e417f7b189f0d2f2 Change-Id: Ic26d63acea5f227b56d44bc2e417f7b189f0d2f2
* RemoteViews - Always load new ApplicationInfo from PackageManager.Zak Cohen2025-07-081-3/+11
| | | | | | | | | | | | | | | | | Always load ApplicationInfo object needed for RemoteViews Contexts directly from PackageManager. The key used is the package name. Previously this object was read from the RemoteViews bundle, which was provided by the Widget providing app, and this object could not be relied on to have accurate data fields. Bug: 376028556 Flag: EXEMPT Security Fix Test: atest CtsWidgetTestCases:RemoteViewsActivityTest#testApplicationInfo (cherry picked from commit 352fb4821076f0209ab2092d53444503dcec8992) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5b29f9ae6e6ecfd004f5ab8ccd3ec8d09722d774) Merged-In: Ie263b51fd2c2bdbf9d622533bb3f77d9f3f7181e Change-Id: Ie263b51fd2c2bdbf9d622533bb3f77d9f3f7181e
* Properly handle onNullBinding() in appwidget service.Pinyao Ting2024-12-301-0/+5
| | | | | | | | | Bug: 340239088 Test: manually verified with the PoC app Flag: EXEMPT CVE (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9e1c31ba46178a8cfc68a2dd9984b8223f694c81) Merged-In: I12fccb572e159a73785aa33a4f5204e094ccd1b7 Change-Id: I12fccb572e159a73785aa33a4f5204e094ccd1b7
* Check more URIs in notificationsIoana Alexandru2024-11-181-0/+23
| | | | | | | | | | | | Bug: 281044385 Test: presubmit + tested in current release (cherry picked from commit f47b41a138ebd60f7b518fb6a9d8aa8230488422, includes changes from commit 57bf60dd7b6a0a0e9785231f8ec25a458fedde64 and commit 47fa2f79584b0a4e9ca7e9c6b237c4e5cf699032) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:986e36ce03b119253e5b7c7fd39bdd0324e0dc8a) Merged-In: I1ce6bebd9452466d005505dc5b99a0fdc0e05e80 Change-Id: I1ce6bebd9452466d005505dc5b99a0fdc0e05e80
* Merge tag 'android-13.0.0_r67' of ↵George Zacharia2023-08-091-1/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 67 (TQ3A.230805.001) * tag 'android-13.0.0_r67' of https://android.googlesource.com/platform/frameworks/base: Merge "Resolve StatusHints image exploit across user." into sc-v2-dev am: e371b3018f Remove unnecessary padding code Use Settings.System.getIntForUser instead of getInt to make sure user specific settings are used DO NOT MERGE Verify URI permissions in MediaMetadata Visit URIs in themed remoteviews icons. Check URIs in sized remote views. Fix PrivacyChip not visible issue Update Pip launches to not enter pinned task if in background. Validate ComponentName for MediaButtonBroadcastReceiver Implement visitUris for RemoteViews ViewGroupActionAdd. Check URIs in notification public version. Preserve flags for non-runtime permissions upon package update. On device lockdown, always show the keyguard Ensure policy has no absurdly long strings Verify URI permissions for notification shortcutIcon. Do not load drawable for wallet card if the card image icon iscreated with content URI. ActivityManagerService: Allow openContentUri from vendor/system/product. Change-Id: Ice3533cb5ebf4868cc9aa0500568b899293872ab
| * Visit URIs in themed remoteviews icons.Ioana Alexandru2023-06-141-1/+9
| | | | | | | | | | | | | | | | Bug: 281018094 Test: atest RemoteViewsTest NotificationVisitUrisTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:634a69b7700017eac534f3f58cdcc2572f3cc659) Merged-In: I2014bf21cf90267f7f1b3f370bf00ab7001b064e Change-Id: I2014bf21cf90267f7f1b3f370bf00ab7001b064e
| * Check URIs in sized remote views.Ioana Alexandru2023-06-141-0/+5
| | | | | | | | | | | | | | | | | | Bug: 277741109 Test: atest RemoteViewsTest (cherry picked from commit ae0d45137b0f8ea49a085bbce4d39f901685c4a5) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:902f020bc81e5b584d5cb0276568b888a728fc4a) Merged-In: Iceb33606da3a49b9638ab21aeae17a168c1b411a Change-Id: Iceb33606da3a49b9638ab21aeae17a168c1b411a
| * Implement visitUris for RemoteViews ViewGroupActionAdd.Ioana Alexandru2023-06-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | This is to prevent a vulnerability where notifications can show resources belonging to other users, since the URI in the nested views was not being checked. Bug: 277740082 Test: atest RemoteViewsTest NotificationVisitUrisTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:850fd984e5f346645b5a941ed7307387c7e4c4de) Merged-In: I5c71f0bad0a6f6361eb5ceffe8d1e47e936d78f8 Change-Id: I5c71f0bad0a6f6361eb5ceffe8d1e47e936d78f8
* | Merge tag 'android-13.0.0_r63' of ↵George Zacharia2023-08-021-0/+6
|\| | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0-r52 Android 13.0.0 release 63 Change-Id: I89d2c7a713cd97f805f07f604090a6d779117575
| * Visit URIs in landscape/portrait custom remote views.Ioana Alexandru2023-05-271-0/+6
| | | | | | | | | | | | | | | | Bug: 277740848 Test: atest RemoteViewsTest NotificationManagerServiceTest & tested with POC from bug (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b4692946c10d11c1e935869e11dc709a9cdcba69) Merged-In: I7d3d35df0ec38945019f71755bed8797b7af4517 Change-Id: I7d3d35df0ec38945019f71755bed8797b7af4517
* | Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-021-0/+3
|\| | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * Merge "Add Toast#show() specific javadoc" into android13-tests-dev am: ↵Treehugger Robot2023-03-161-0/+3
| |\ | | | | | | | | | | | | | | | | | | | | | | | | 1d8b567ae1 am: f8ba53d9c9 am: cd801e3f19 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2477605 Change-Id: I1acedf2003d23e18c388997fdbfb58b19fbac48f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * Merge "Add Toast#show() specific javadoc" into android13-tests-dev am: ↵Treehugger Robot2023-03-161-0/+3
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1d8b567ae1 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2477605 Change-Id: I0df3d37f69a0876d166e341a7fb7affe25777edc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * Add Toast#show() specific javadocAzhara Assanova2023-03-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The added javadoc comment already exists in Toast's class level javadoc on line 75. Bug: 265306493 Test: None Change-Id: I5692db36461dae1f79a72eb2bb15d8379bd24a84
* | | | Allow adjusting progress on touch events.Danny Baumann2023-01-081-1/+9
| | | | | | | | | | | | | | | | Change-Id: Ide0a7ae057a62f3631a32eeaa63f3e04dec5bf54
* | | | Merge tag 'android-13.0.0_r16' into t13.0George Zacharia2022-12-158-241/+534
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android 13.0.0 Release 16 (TQ1A.221205.011) Also included the following reverts: 1. Revert "fw/b: Import Wi-Fi standard icon [1/2]" 2. Revert "Add preference for toggling the wallpaper zooming animation" Co-authored-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: I9a6b51e452c28d10411712c59778bb54da5783e9
| * | | Merge changes from topic "cursor-bg-blink-cp" into tm-qpr-devSteven Terrell2022-09-161-9/+16
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Add Ability to Check if Cursor is Blinking Stop cursor from blinking when not visible
| | * | | Add Ability to Check if Cursor is BlinkingSteven Terrell2022-09-151-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adds a method for returning whether the cursor is blinking based on the current value of the mCancelled property in the Blink class. This method is only inteded to be used for testing purposes. Bug: 228354442 Test: manual, method is called in CtsWidgetTestCases:EditTextTest# testSuspendAndResumeBlinkingCursor, testCursorBlinkingOnNewActivity_WithFocus, testCursorNotBlinkingOnNewActivity_WithoutFocus Change-Id: I02849f6e105cbfe7af78dfb34ffbf1ebbb4a82ae
| | * | | Stop cursor from blinking when not visibleSteven Terrell2022-08-261-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cursor continues to blink in a text field even when the text field is not currently visible. This change checks the visibility of the window that houses the text field in addition to checking if the view is in focus. Bug: 228354442 Test: Added logging to the shouldBlink() method ran following steps: 1: open contacts app 2: tap add new contact, tap in an edit field 3: move back to home screen 4: lock screen, then unlock screen 5: observed logs written out to logcat console when app not visible. after change logs no longer printed to console, cursor still blinks correctly after app is re-opened or when new field becomes in focus. Test: CtsWidgetTestCases:EditTextTest# testCursorNotBlinkingOnNewActivity_WithoutFocus() testCursorBlinkingOnNewActivity_WithFocus() testSuspendAndResumeBlinkingCursor() Change-Id: Iad4396e5f7fd810344c711320d65c57ea25eda70 Merged-In: Iad4396e5f7fd810344c711320d65c57ea25eda70
| * | | | Merge "Fixed the reference to the compat version of the widget. Revised the ↵Alan Viverette2022-08-291-14/+24
| |\ \ \ \ | | |/ / / | |/| / / | | |/ / | | | | | | | | | | | | | | | | | | | | class description." into tm-dev am: 96d92cfeda am: 86fec4c5ad Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19748654 Change-Id: I295cfcd5d4070eefef89c9dc16b38e7aaec13199 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | Fixed the reference to the compat version of the widget. Revised the class ↵joneckenrode2022-08-251-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | description. Cherry-picked from CL 19211934 merged on master. See https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/19211934. Test: Built API documentation Change-Id: If74178eba609346eb7cf9e462bdb3edf40db4d81
| * | | Merge "docs: Edited API documentation related to line-break and line-break ↵Jon Eckenrode2022-08-251-25/+38
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | word styles." into tm-dev am: 1914a2f78e am: 0e9d7be16e Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19669167 Change-Id: I8c7e51969b81ec6f66c6009567d9805debe48ecc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | docs: Edited API documentation related to line-break and line-break word styles.joneckenrode2022-08-231-25/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Files patched from CL 19608033, https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/19608033. Could not cherry-pick CL because LineBreakConfig.java on master contains Android U code. Staged to: https://android.devsite.corp.google.com/reference/android/widget/TextView https://android.devsite.corp.google.com/reference/android/R.attr https://android.devsite.corp.google.com/reference/kotlin/android/R.attr Test: Built API docs Change-Id: Ie322096ee2cc0ab3e24bb7d2ff8c398e8861726f
| | * | RemoteViews: fix BitmapCache after immutable Bitmap switchTim Murray2022-08-101-3/+8
| | |/ | | | | | | | | | | | | | | | | | | Test: widgets appear correctly Bug: 237256275 Change-Id: I864ac1ba8ac771c326dc215ae4e712ceb0b6057b
| * | Merge "Fixed divider rendering in RTL languages" into tm-qpr-devAlex Stetson2022-08-241-1/+63
| |\ \
| | * | Fixed divider rendering in RTL languagesAlex Stetson2022-08-031-1/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In horizontal layouts, when elements are rendered from LTR, the definition of "before" and "after" gets flipped, causing the divider spacing to be allocated to the wrong locations. By flipping the check in RTL layouts, the dividers can be placed correctly. Additionally, it is necessary to add divider measurements to all layout width measurements to allow for dividers in right gravity to layout properly. Bug: 208927871 Test: atest android.widget.cts.LinearLayoutTest Change-Id: If6e917873571484a6fb1dfc28b356289e2cc1ffa
| * | | Merge "Reporting the Autofill IDs and Positions of active views in list ↵Mihir Patel2022-08-101-0/+141
| |\ \ \ | | | | | | | | | | | | | | | view" into tm-qpr-dev
| | * | | Reporting the Autofill IDs and Positions of active views in list viewMihir Patel2022-08-091-0/+141
| | | |/ | | |/| | | | | | | | | | | | | | | | | Test: atest CtsContentCaptureServiceTestCases, observed events reported only once on scroll and stop as well as on fling Bug: 211899037 Change-Id: Id67fcc360bf63fcab1d9f345c31d2bf7b9a173d6
| * | | Merge "RemoteViews: fix BitmapCache after immutable Bitmap switch" into ↵TreeHugger Robot2022-08-101-3/+8
| |\ \ \ | | | | | | | | | | | | | | | tm-qpr-dev
| | * | | RemoteViews: fix BitmapCache after immutable Bitmap switchTim Murray2022-07-271-3/+8
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | Test: widgets appear correctly Bug: 237256275 Change-Id: I864ac1ba8ac771c326dc215ae4e712ceb0b6057b
| * / | Wrapping various apply parameters into a separate classSunny Goyal2022-08-051-178/+193
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > This would allow us to easily extect the options > Also passing the executor for async inflation. This will allow containing adapters to also be async if the parent View is using async inflation Bug: 202766048 Test: Presubmit Change-Id: I60a9b5db5f9b5f8d6e56521ee00de4be30decce6
| * | Merge "Add PbA branding to clipboard" into tm-qpr-devYi-an Chen2022-07-252-8/+50
| |\ \
| | * | Add PbA branding to clipboardYi-an Chen2022-07-192-8/+50
| | |/ | | | | | | | | | | | | | | | | | | Bug: 213357911 Test: Manually on Raven Change-Id: If9944393fe64c7f94a5be139a538833d91ae98fe
| * / Don't crash after unsetting char[] in TextViewSean McQuillan2022-07-191-6/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TextView.setText(char[]) is from API 1 and follows a running with scissors API style of not copying the passed array. To avoid a leak, in TextView.setText(String), the char[] would be nulled out. However, an internal object could have been read using .getText() prior to this second setText would immmediatly become a CharSequence that crashed when you called any methods on it. After this change, the CharWrapper will stay valid if had been previously retrieved. The general shape of the API will be maintained. Fixes: b/227218386 Test: atest android.widget.TextViewTest Relnote: "Calling TextView.getText() after calling TextView.setText(char[]) will now return a valid CharSequence. The char[] pointed to by this char sequnece may still be mutated by future calls to setText(char[]), but it will no longer allow a (char[]) null to be set, which lead to crashes when reading CharSequence returned from getText on TextView." Merged-In: I35a2a76d58ec1946dace2f615cacf6a6085efdeb Change-Id: I35a2a76d58ec1946dace2f615cacf6a6085efdeb (cherry picked from commit 166c7217f45d312f026ea2be94101e7b39b6a2c5)
* | Fixup legacy toast icon visibilitySagarMakhar2022-10-261-2/+4
| | | | | | | | | | Signed-off-by: SagarMakhar <sagarmakhar@gmail.com> Change-Id: Ia1eba687d5bedee8e3057b84e242f19beaef1546
* | fw_base: Toast icon switch [1/2]LorDClockaN2022-10-261-8/+11
| | | | | | | | | | | | | | | | ** AICP Edit: added back backup validators Signed-off-by: Arghya Chanda <arghyac35@gmail.com> Signed-off-by: SagarMakhar <sagarmakhar@gmail.com> Change-Id: I59ffd10f20a2ae9491f76380ec9af641e0844928
* | Show icon of package associated with Toastd34d2022-10-261-0/+15
| | | | | | | | | | | | | | | | For all those times you have some random app or background service that posts a Toast and you have no idea who's posting it. This adds an icon badge to the top left corner of the Toast to show the app's icon the Toast belongs to Change-Id: I82bf23664eea134f3b1f89ad5a99f6be73906ba8
* | ListView: Disable dividers by defaultPranav Vashi2022-10-261-2/+2
| | | | | | | | | | Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: I7f41e4291632db09692fc57ece286eff05dbdfe4
* | Merge tag 'android-13.0.0_r8' into nanSemavi Ulusoy2022-10-041-3/+8
|\ \ | | | | | | | | | | | | | | | Android 13.0.0 Release 8 (TP1A.221005.003) Change-Id: I637730effdfe47868a59c5ceac307740738a2392
| * | RemoteViews: fix BitmapCache after immutable Bitmap switchTim Murray2022-08-191-3/+8
| |/ | | | | | | | | | | | | | | | | Test: widgets appear correctly Bug: 237256275 Change-Id: I864ac1ba8ac771c326dc215ae4e712ceb0b6057b (cherry picked from commit 4f359bd7655ba6d4f647bb62b877b721f25bbeb5) Merged-In: I864ac1ba8ac771c326dc215ae4e712ceb0b6057b
* / Fix NPE with void android.view.VelocityTracker.clear()Alex Cruz2022-09-261-1/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 06-21 14:39:46.546 30816 30816 E AndroidRuntime: FATAL EXCEPTION: main 06-21 14:39:46.546 30816 30816 E AndroidRuntime: Process: com.android.settings, PID: 30816 06-21 14:39:46.546 30816 30816 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.VelocityTracker.clear()' on a null object reference 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.widget.ScrollView.onTouchEvent(ScrollView.java:692) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.View.dispatchTouchEvent(View.java:10023) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2626) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2307) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:416) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1808) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.app.Activity.dispatchTouchEvent(Activity.java:3065) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:53) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:378) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.View.dispatchPointerEvent(View.java:10243) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4444) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4312) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3859) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3912) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3878) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4005) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3886) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4062) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3859) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3912) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3878) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3886) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3859) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6253) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6227) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6188) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6356) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:6327) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6379) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:686) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:615) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6208) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891) 06-21 14:39:46.546 30816 30816 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781) Change-Id: I415fc2e85bcdbe694f1d3a1bd76d1462fc8db78b Reviewed-on: https://review.statixos.com/c/android_frameworks_base/+/6190 Reviewed-by: Sourajit Karmakar <sourajit@live.com> Tested-by: Sourajit Karmakar <sourajit@live.com> Reviewed-on: https://review.statixos.com/c/android_frameworks_base/+/7214 Reviewed-by: Anay Wadhera <anay1018@gmail.com> Tested-by: Anay Wadhera <anay1018@gmail.com>
* Explain the difference between setBreakStragegy() and setLineBreakStyle() in ↵allenwtsu2022-06-071-2/+9
| | | | | | | | API doc Bug: 217951279 Test: build pass Change-Id: Ida98327a656edc4878f7ce1c7f2bc99b72cd91d6
* Translate selectable TextViews by temporarily disabling selectable.Mark Punzalan2022-05-252-23/+76
| | | | | | | | | | | | | | The text is not selectable while translated. Making translated text selectable requires many more changes. This was tested in Nextdoor in the feed/posts activity. When there is a "Read more" link in the post, the link doesn't work while translated, and doesn't behave the same way after translation is paused. Bug: 202966891 Test: atest CtsTranslationTestCases Test: Manually - with Nextdoor on feed and chat activities Change-Id: I6e8f532d427d85ff22df0deb248d8416a15f4821
* Migrate AutoCompleteTextView to use OnBackInvokedDispatcher.Shan Huang2022-05-181-0/+47
| | | | | | | | | | | | With ag/17952046 we now actively intercept KEYCODE_BACK before they are sent to IME when new back flow is used. This requires us to migrate AutoCompleteTextView#onKeyPreIme, and is also what causes the test failure in b/231960630. Test: atest AutoCompleteTextView test. Test: Test back behavior of AutoCompleteTextView in BackTestApp. Bug: 231960630 Change-Id: I1a5e01c9a4f8f0e762b493284650854a230aecd3
* Merge "Don't trigger full relayout if DateTimeView doesn't change" into tm-devLucas Dupin2022-04-221-3/+16
|\
| * Don't trigger full relayout if DateTimeView doesn't changeJernej Virag2022-04-211-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now, when an update is triggered, DateTimeView will trigger a full relayout of its parents because it always calls setText, even if it doesn't change the contents (later down the line, TextView will call requestLayout() for wrap_content, even if size didn't change). Checking if the content actually changed avoids that extra layout pass which avoids needless relayouts in e.g. SystemUI Notifications. Bug:220712538 Test: atest DateTimeView (new test failed before fix / passes after fix) Change-Id: Ib391d6715136b64b98f0bda3b3d4a3f991809c89
* | Merge "RemoteViews: make bitmaps immutable" into tm-devTim Murray2022-04-211-4/+13
|\ \ | |/ |/|
| * RemoteViews: make bitmaps immutableTim Murray2022-04-181-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because mutability is propagated across Parcel and Binder, any mutable Bitmaps passed to RemoteViews will end up mutable on the other side even though those Bitmaps can't be modified from the RemoteViews recipient. Make all Bitmaps passed to RemoteViews immutable in order to ensure that they can be sent without additional copies instead of the one ashmem object. Test: TH, RemoteViews work for widgets Bug: 227920378 Change-Id: I477e7132f9ff78333c1eda56b9d0fc6ac520abd0
* | Merge "Auto append password hint for TextView" into tm-devTYM Tsai2022-04-211-0/+12
|\ \ | |/ |/|
| * Auto append password hint for TextViewTYM Tsai2022-04-201-0/+12
| | | | | | | | | | | | | | | | | | | | Some TextViews are made as password via input type but does not contain autofill password hint. This change auto append a hint for autofill to identify. Bug: 219844915 Test: atest android.autofillservice.cts.dialog.LoginActivityTest Change-Id: Ifd18c56ffe788a601821d178ace41413f9e0454e