Seigo Nonaka
8a147ba6dc
Merge "Implement Ctrl+B/I/U shorcut"
2022-09-09 04:19:47 +00:00
Seigo Nonaka
66260c6045
Implement Ctrl+B/I/U shorcut
...
These shortcut works as follows:
- If the selected region is empty, do nothing.
- If the selected region has at least one character that is not styled,
e.g. bold, apply bold style.
- If the selected region is fully styled, e.g. bold, remove bold style
from the region.
The default TextView/EditText supports styled editing, but it is used
commonly as plain text fields, e.g. email address in the form, etc.
So, not to style the text in such places, disable styled shortcut by
default and let developers to enable it when necessary.
Bug: 240628246
Test: TextViewStyleShortcutTest
Change-Id: Id0f1cd85eb198553a852c5c2b628f5d03a2741e1
2022-09-08 13:41:42 +09:00
Haoyu Zhang
7cf6d0618c
Merge "Checking TextOperationUser when initialize stylus handwriting"
2022-09-02 09:05:15 +00:00
TreeHugger Robot
25f2a588fa
Merge "Assign redo action to Ctrl+Y shortcut"
2022-09-02 07:05:16 +00:00
Seigo Nonaka
96bedec89c
Assign redo action to Ctrl+Y shortcut
...
Bug: 244262525
Test: atest TextViewKeyboardShortcutTest
Change-Id: I43021b42f8f080990600e9fa84ae6dc40ebae148
2022-09-02 14:27:00 +09:00
TreeHugger Robot
d7a11eca6f
Merge "Provide gesture result"
2022-09-02 02:20:16 +00:00
Haoyu Zhang
3f655af0b3
Checking TextOperationUser when initialize stylus handwriting
...
Bug: 237418160
Fix: 244475514
Test: atest HandwritingInitiatorTest
Change-Id: I6c87d034d5bef28383db70f587bdd0ee2db77a79
2022-09-01 18:44:19 -07:00
Haoyu Zhang
49bd302a80
Merge "Introduce visible line bounds to CursorAnchorInfo"
2022-09-01 18:56:12 +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
Haoyu Zhang
4976e19609
Introduce visible line bounds to CursorAnchorInfo
...
Add visible line bounds to CursorAnchorInfo for IME to improve
scribe rich gesture recognization accuracy.
Bug: 215533103
Bug: 239843501
Test: manually tested
Change-Id: I7039b75388ae34d24feb38d18d8da9a91df89504
2022-09-01 05:07:37 -07:00
Justin Ghan
496de1565d
TextView report supported handwriting gestures
...
Bug: 244355876
Test: atest android.widget.cts.TextViewHandwritingGestureTest
Change-Id: Ie0263f4732a329089be171fbb24d7473c667ceb5
2022-08-31 08:43:14 -07:00
Seigo Nonaka
ce46186c15
Merge "Move mLastInputSource member to TextView from Editor"
2022-08-30 01:59:22 +00:00
Seigo Nonaka
d68f864369
Move mLastInputSource member to TextView from Editor
...
The ActionMode could be initiated from LinkMovementMethod
which can be handled without Editor instance. So, moving
mLastInputSource member from Editor to TextView.
Test: TextViewIntegrationTest TextViewMouseInteractionTest
Bug: 243922672
Change-Id: I05679f8dbd30fd69e11ed4e315b5b309647ecafb
2022-08-29 12:19:07 +09: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
TreeHugger Robot
c7ab586fa3
Merge "Use event source for the UI visibility"
2022-08-26 10:53:19 +00:00
Seigo Nonaka
8630c53160
Use event source for the UI visibility
...
Bug: 240383641
Test: atest TextViewMouseInteractionTest
Change-Id: Iefc5c27a05c716b06678266582a89c275a3a74f2
2022-08-26 13:24:06 +09:00
Daniel Norman
47d8fe5c9f
Merge changes from topic "reland-a11y-adp"
...
* changes:
Tweak behavior of isAccessibilityDataPrivate() to reduce CPU usage.
Revert "Revert "Limit off-label accessibility access using a new..."
2022-08-25 23:25:12 +00:00
Riley Jones
1c04b58273
Merge "Giving RatingBar a default custom StateDescription for more descriptive TTS output."
2022-08-24 20:12:36 +00:00
Alex Stetson
eca458e0fe
Merge "Fixed divider rendering in RTL languages" into tm-qpr-dev am: 2cd24931e3 am: 4ce48b4d83
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19295691
Change-Id: Ib550629875d9f2de86d5e0797148c9f73c1a23a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-24 19:54:45 +00:00
Alex Stetson
4ce48b4d83
Merge "Fixed divider rendering in RTL languages" into tm-qpr-dev am: 2cd24931e3
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19295691
Change-Id: Ie1a410591ed21da53d32cb59a9c6c8427922f728
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-24 19:40:20 +00:00
Alex Stetson
2cd24931e3
Merge "Fixed divider rendering in RTL languages" into tm-qpr-dev
2022-08-24 19:32:59 +00:00
Jon Eckenrode
32cd0a63d4
Merge "Docs: Touch-up of parameter descriptions and tags for consistency."
2022-08-24 18:04:56 +00:00
Zeyin Wu
dabec9ef59
Merge "Add accessibility expand/collapse action to node info"
2022-08-23 21:21:53 +00:00
Daniel Norman
60bb7c9bca
Revert "Revert "Limit off-label accessibility access using a new..."
...
Revert submission 19637776-revert-19246592-accessibility-tool-only-VJOPAMQMLT
Reason for revert: Relanding with fix
Reverted Changes:
I701b811fd:Revert "Limit off-label accessibility access using...
I85c58736b:Revert "CTS tests for the accessibilityDataPrivate...
Change-Id: Idfb12294c4ba75dfba8abd90985dea548d29042a
2022-08-23 20:40:08 +00:00
joneckenrode
66504044ed
Docs: Touch-up of parameter descriptions and tags for consistency.
...
Staged:
https://android.devsite.corp.google.com/reference/android/widget/TextView
https://android.devsite.corp.google.com/reference/android/graphics/text/LineBreakConfig
https://android.devsite.corp.google.com/reference/android/graphics/text/LineBreakConfig.Builder
Test: Built API docs
Change-Id: I68d5228b2f952876c81f8590ccf69d68733f2741
2022-08-23 17:48:53 +00:00
Zeyin Wu
1d59f48e7c
Add accessibility expand/collapse action to node info
...
Bug: 213940323
Test: ran atest android.widget.cts.ExpandableListViewTest and manually verified through talkback tests.
Change-Id: I8e9523781edd0dfd76c422da219beccf1a39a298
2022-08-22 18:00:09 +00:00
Riley Jones
9e99f1cfd0
Giving RatingBar a default custom StateDescription
...
for more descriptive TTS output.
Test: CTS tests included in topic
Bug: 149794211
Change-Id: I67945f7025ad29b3d11a33fd1ecec4b231966be5
2022-08-17 01:34:09 +00:00
Daniel Norman
1e924c4709
Merge "Revert "Limit off-label accessibility access using a new property.""
2022-08-16 23:17:30 +00:00
Jon Eckenrode
0004b75dbf
Merge "docs: Edited API documentation related to line-break and line-break word styles."
2022-08-16 21:48:11 +00:00
Daniel Norman
ff3c059c29
Revert "Limit off-label accessibility access using a new property."
...
Revert submission 19246592-accessibility-tool-only
Reason for revert: Jank regression b/242267091
Reverted Changes:
I0685e6dd4:CTS tests for the accessibilityDataPrivate propert...
I1c02af88c:Limit off-label accessibility access using a new p...
Change-Id: I701b811fd4fb2634872a759134356736a7e8b7dd
2022-08-16 16:13:28 +00:00
TreeHugger Robot
7e56ce1098
Merge "Hide text UIs for mouse interaction"
2022-08-15 03:23:19 +00:00
joneckenrode
f81fbd3eb0
docs: Edited API documentation related to line-break and line-break word styles.
...
Staged to:
https://android.devsite.corp.google.com/reference/android/graphics/text/LineBreakConfig
https://android.devsite.corp.google.com/reference/android/graphics/text/LineBreakConfig.Builder
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: I06fdf27ba94d806753a1dcc99873dff24cdae626
2022-08-12 17:58:25 +00:00
Riley Jones
c1a8a2a99d
Merge "Changed textView's addExtraDataToAccessibilityNodeInfo() to avoid Out of Bounds errors when Location Length exceeds Text Length. Specified the accessibilityService CTS tests to run for core presubmit."
2022-08-12 09:29:43 +00:00
Treehugger Robot
6efd2c943e
Merge "Update OWNERS for RemoteViews related files." am: 00545d0fd6 am: ea4b4e5a83 am: 4e5571fd30 am: 82812dd066 am: bef30a8056
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2180621
Change-Id: Ibd33288397d9f4d88854ecd44ef7e60d5582d2b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-11 18:48:27 +00:00
Treehugger Robot
bef30a8056
Merge "Update OWNERS for RemoteViews related files." am: 00545d0fd6 am: ea4b4e5a83 am: 4e5571fd30 am: 82812dd066
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2180621
Change-Id: I0ade83d702a47dd3ec12d08a01d5104e80085070
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-11 18:24:35 +00:00
Treehugger Robot
ea4b4e5a83
Merge "Update OWNERS for RemoteViews related files." am: 00545d0fd6
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2180621
Change-Id: I4beccbf68d0b3b841b2e629be2a5f2662fe90f42
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-11 17:07:04 +00:00
Daniel Norman
f003dd10b2
Merge "Limit off-label accessibility access using a new property."
2022-08-11 17:04:57 +00:00
Riley Jones
9b471535ca
Changed textView's addExtraDataToAccessibilityNodeInfo() to avoid Out of Bounds errors when Location Length exceeds Text Length.
...
Specified the accessibilityService CTS tests to run for core presubmit.
Test: Should fix broken tests in AccessibilityTextActionTest
Bug: 241784682
Change-Id: I9b5fd1b2850b26815dea73080ad21aeb3d177bfe
2022-08-11 09:59:53 +00:00
Mihir Patel
9064a4ef80
Merge "Reporting the Autofill IDs and Positions of active views in list view" into tm-qpr-dev am: 25192d7d0c am: f333fa0c93
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19054708
Change-Id: I2cbfe0cea3466bf0da1119ee9de1e52152ce6694
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-10 18:07:43 +00:00
Mihir Patel
f333fa0c93
Merge "Reporting the Autofill IDs and Positions of active views in list view" into tm-qpr-dev am: 25192d7d0c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19054708
Change-Id: I6b8ffade431d057334147ae9cd5386afbad13cbc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-10 17:41:15 +00:00
Mihir Patel
25192d7d0c
Merge "Reporting the Autofill IDs and Positions of active views in list view" into tm-qpr-dev
2022-08-10 16:35:13 +00:00
TreeHugger Robot
40d744aa6f
Merge "RemoteViews: fix BitmapCache after immutable Bitmap switch" into tm-qpr-dev am: fe195e6f74 am: 9c1576da1c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19450080
Change-Id: I493e5541d80c063cc9fc713b6817357bef3875d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-10 04:54:41 +00:00
TreeHugger Robot
9c1576da1c
Merge "RemoteViews: fix BitmapCache after immutable Bitmap switch" into tm-qpr-dev am: fe195e6f74
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19450080
Change-Id: I7ea562c9433a85dcad6cb3241954140dcb8905b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-10 04:34:20 +00:00
TreeHugger Robot
fe195e6f74
Merge "RemoteViews: fix BitmapCache after immutable Bitmap switch" into tm-qpr-dev
2022-08-10 04:13:07 +00:00
Pinyao Ting
8767364abf
Update OWNERS for RemoteViews related files.
...
Change-Id: I50719c5d5b19f0d5fd542a94726221b165020860
2022-08-09 23:40:35 +00:00
Mihir Patel
a6e0f74c90
Reporting the Autofill IDs and Positions of active views in list view
...
Test: atest CtsContentCaptureServiceTestCases, observed events reported only once on scroll and stop as well as on fling
Bug: 211899037
Change-Id: Id67fcc360bf63fcab1d9f345c31d2bf7b9a173d6
2022-08-09 15:37:50 -07:00
Sunny Goyal
45bdf7a065
Merge "Wrapping various apply parameters into a separate class" into tm-qpr-dev am: b4b3a8bdeb am: b4b25e4f9e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19531583
Change-Id: Ic6e6eda7ce96c0df0da665af0e32f75610981d08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-08 16:56:53 +00:00
Sunny Goyal
b4b25e4f9e
Merge "Wrapping various apply parameters into a separate class" into tm-qpr-dev am: b4b3a8bdeb
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19531583
Change-Id: I1c24d06db68910c8a99028eca57b233c7e6c5b0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-08 16:39:36 +00:00
Sunny Goyal
6224d07127
Wrapping various apply parameters into a separate class
...
> 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
2022-08-05 14:53:00 -07:00