Commit Graph

8718 Commits

Author SHA1 Message Date
Nikita Dubrovsky
66d089ed65 Merge "Shorten logcat tag in TextViewOnReceiveContentCallback" 2020-09-29 00:37:06 +00:00
Nikita Dubrovsky
4816615af1 Shorten logcat tag in TextViewOnReceiveContentCallback
Bug: 152068298
Test: Manual
Change-Id: Ic191f5fe1f4f713f9c01a1934754e068b9daf96e
2020-09-28 14:14:00 -07:00
Sally Yuen
dfd366ed0e Merge "Add support for Force Bold Text" 2020-09-28 20:22:59 +00:00
Sally
5670baef9b Add support for Force Bold Text
This CL:
1) Saves the original unbolded typeface and returns this in
getTypeface
2) Sets Paint's typeface to a bolded one if the Setting is enabled,
or a config value is YES
3)  Bolds by adding 300 to the current font weight (400 is normal,
700 is considered bold, weight is capped at 1000)
4) Resets the Paint typeface to the original value if the Setting
is disabled, or the config value is not YES

Bug: b/110991537
Test: manual; unit tests
Change-Id: If21190fd5ad9d2e1721ffe464945f00ff20f62c6
2020-09-28 16:39:39 +00:00
Nikita Dubrovsky
dd9869aa4c Update RichContentReceiver API (now OnReceiveContentCallback)
Bug: 163718378
Bug: 165632620
Bug: 152068298
Test: Unit tests
  atest CtsWidgetTestCases:TextViewOnReceiveContentCallbackTest
  atest CtsViewTestCases:ViewTest
  atest FrameworksCoreTests:TextViewProcessTextTest
Change-Id: I3fa65b47c920a9d1ddad88a79e60864dc8109753
2020-09-25 13:46:33 -07:00
Joanne Chung
5f9810be21 Fix error test path in TEST_MAPPING
The test path was changed because autofill tests re-structure.
Correct the wrong path.

Bug: 159304958
Bug: 154961272
Test: atest --test-mapping frameworks/base/core/java/android/widget
Change-Id: Ie83c5c25e65d4ba767b23b1f7388b2d5fb32ca51
2020-09-25 10:05:39 +00:00
Jeff Sharkey
4b5b0174d0 Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347 am: 741c0a78cc am: da7478b570 am: 487d394296
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: Id01f468b43fd5b2aada78608010625b392c1b647
2020-09-15 21:01:48 +00:00
Jeff Sharkey
487d394296 Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347 am: 741c0a78cc am: da7478b570
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: I79488866c538bf9e76d0a6429e30262978f6fdab
2020-09-15 00:13:08 +00:00
Jeff Sharkey
741c0a78cc Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: I7da537200efe31e803234bd1a0236843064186c8
2020-09-14 23:10:42 +00:00
Jeff Sharkey
a8cec413b6 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: I245b8d9cac722da76ea67983738a3cbb9deb68df
2020-09-14 10:00:07 -06:00
Jeff Sharkey
6516a83886 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: Ifce5239991e3b78dd4757712e3b88093ad7161f0
2020-09-14 10:00:02 -06:00
Joanne Chung
257e3b58c8 Remove AutofillValueTest from widget TEST_MAPPING
There were some integration tests in AutofillValueTest before, we
moved integration tests to CheckoutActivityTest. AutofillValueTest is
a unit test now, we don't need this test running under widget path.

Bug: 167847110
Test: TreeHugger
Change-Id: I514942cff0122539ac614798020ecbbaf7cbaa3c
2020-09-07 08:15:23 +00:00
Xin Li
628590d7ec Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-31 21:21:38 -07:00
yingleiw
fc9d9b800f Add accessibility manager enabled check in progressbar
formatStateDescription() in onProgressRefresh() is causing performance
degradation with accessibility off.

Note that stateDescription is set in onInitializeAccessibilityNodeInfo
to ensure that accessibility always get the update-to-date
stateDescription. Otherwise, stateDescription might be stale on first
accessibility focus and the user might get wrong information.

Fix: b/166215147

Test: tested with talkback enabled from the beginning or from the
middle.

Change-Id: I9fb99b479b172d87c8d0fa1b8765dab53445b993
2020-08-31 13:03:18 -07:00
TreeHugger Robot
c4e8f0ef16 Merge "Update docs to clarify how providers can create style bundles and Slices for inline suggestions." into rvc-dev am: 18cff6082d am: 6128b1ba0f am: ea8b670196 am: 74698fc87a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12265211

Change-Id: Ibc7ef4273ee0462090cec713daae5fe0316b4589
2020-08-18 01:00:38 +00:00
TreeHugger Robot
74698fc87a Merge "Update docs to clarify how providers can create style bundles and Slices for inline suggestions." into rvc-dev am: 18cff6082d am: 6128b1ba0f am: ea8b670196
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12265211

Change-Id: I38ea717accd07eae665e625eb6f12c0a6be811a3
2020-08-18 00:46:05 +00:00
TreeHugger Robot
ea8b670196 Merge "Update docs to clarify how providers can create style bundles and Slices for inline suggestions." into rvc-dev am: 18cff6082d am: 6128b1ba0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12265211

Change-Id: I3b25303b51dd10b649726c13a6aff7cc82f4e18f
2020-08-18 00:35:15 +00:00
TreeHugger Robot
5f6a8ef665 Merge "Update docs to clarify how providers can create style bundles and Slices for inline suggestions." into rvc-dev am: 18cff6082d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12265211

Change-Id: I35fa0ba127e5c73a46fe6ddff4428956a4e33eb2
2020-08-18 00:24:57 +00:00
Nikita Dubrovsky
cce1c87815 Merge "Add DeviceConfig flag for drag direction angle threshold for cursor drag" into rvc-qpr-dev am: 7094198a26
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12318230

Change-Id: Ie8d6995567b32b5552ee2e1d0eb92d9643e9bc08
2020-08-11 02:02:41 +00:00
Shu Chen
7e587a0ee2 Merge "Implement the floating cursor via the fisheye magnifier." 2020-08-08 02:49:26 +00:00
Shu Chen
4021c3dfd6 Implement the floating cursor via the fisheye magnifier.
- Remove the lineLeft/lineRight source bounds.
 - Make the magnifier center X can be away from the cursor X.
 - Let Magnifier know how to render floating cursor.

Test: locally verified.
Bug: 149883037

Change-Id: Iae3c68fa9cda0a83704fa30fa7b9f4db0a8d3314
2020-08-07 19:18:48 +08:00
Nikita Dubrovsky
81fa5e436a Add DeviceConfig flag for drag direction angle threshold for cursor drag
Bug: 160786691
Test: Manual and unit tests
  atest FrameworksCoreTests:EditorTouchStateTest
  atest FrameworksCoreTests:EditorCursorDragTest
Change-Id: Ib2e88fbdce4f901772d73bc7ee60483c98e02509
Merged-In: Ib2e88fbdce4f901772d73bc7ee60483c98e02509
(cherry picked from commit 8bac79d651)
2020-08-05 20:15:49 +00:00
Nikita Dubrovsky
fc0f15dc46 Merge "Add DeviceConfig flag for drag direction angle threshold for cursor drag" 2020-08-05 20:11:03 +00:00
Nikita Dubrovsky
8bac79d651 Add DeviceConfig flag for drag direction angle threshold for cursor drag
Bug: 160786691
Test: Manual and unit tests
  atest FrameworksCoreTests:EditorTouchStateTest
  atest FrameworksCoreTests:EditorCursorDragTest
Change-Id: Ib2e88fbdce4f901772d73bc7ee60483c98e02509
2020-08-04 11:31:38 -07:00
Joanne Chung
37277508e4 Delete useless log.
Bug: 154961272
Test: n/a
Change-Id: I94d99ca37797fbd0a38de5ac6ee8d9b59c3c670c
2020-08-04 23:17:12 +08:00
Adam He
5277e0781d Update docs to clarify how providers can create style bundles and Slices
for inline suggestions.

Fixes: 162437790
Test: atest android.autofillservice.cts.inline
Change-Id: If02b34ec7978897545c0b7eabfebb8db0b9417c0
2020-08-03 13:06:38 -07:00
Joanne Chung
15d7a2dfa8 Merge "Add TEST_MAPPINGs for autofill under widget" 2020-07-31 07:39:24 +00:00
Joanne Chung
6d0d111c6d Add TEST_MAPPINGs for autofill under widget
Autofill broken tests (b/159037010, b/159035197, b/152444221) that
weren't executed in presubmit. Add the fail tests into TEST_MAPPING
to make sure the tests can be tested in presubmit.

Bug: 154961272
Test: atest --test-mapping frameworks/base/core/java/android/widget
Test: atest --test-mapping
frameworks/base/core/java/android/widget/inline
Test: TreeHugger

Change-Id: I718c86d8f55234a330235672016c877986c30d54
2020-07-31 13:42:35 +08:00
Nader Jawad
8b56a38eb0 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for
reference

BUG=161896447
Test: N/A

Change-Id: I2032595a163d9146cfdbaebb1714ad1c53e0157c
2020-07-29 17:24:22 -07:00
Shu Chen
a893415d5c Merge "Ensures the slop value is fixed cross lines." into rvc-qpr-dev am: 660a872c7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12209645

Change-Id: If8e852b1f54bd1f4091f8c01d3f2d7ebc2e7805f
2020-07-24 01:24:04 +00:00
Treehugger Robot
e78ac20b5d Merge "Update language to comply with Android’s inclusive language guidance" am: dce2f1c04b am: c686b1f21c am: 50015ad612 am: 7ee1dc7321 am: 0ead0fc382
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1371481

Change-Id: Ib0e78ce48eaa0be5cc8dc69d3e5674ac8722a287
2020-07-23 21:14:35 +00:00
Treehugger Robot
0ead0fc382 Merge "Update language to comply with Android’s inclusive language guidance" am: dce2f1c04b am: c686b1f21c am: 50015ad612 am: 7ee1dc7321
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1371481

Change-Id: Ib309e244728db2b4182040d55286aab74ee446e7
2020-07-23 20:54:51 +00:00
Treehugger Robot
50015ad612 Merge "Update language to comply with Android’s inclusive language guidance" am: dce2f1c04b am: c686b1f21c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1371481

Change-Id: I05712223149c676ae849114562ef6969fbe8ab18
2020-07-23 20:29:38 +00:00
Seigo Nonaka
f47561320f Update language to comply with Android’s inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Bug: 161896447
Test: atest TextViewTest
Change-Id: I83f253f6edfb2724972793b3495835540b7b52e4
2020-07-22 22:54:14 -07:00
vichang
2b05393251 Merge "Remove @CorePlatformApi LocaleData usage in frameworks" am: 3f89b904a8 am: 226e3d7641 am: 9ee26b06fb am: f82c013ec3 am: 6e4f9e9e06
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1367376

Change-Id: I7f0c730abced6a03fb8952d602a398a724667569
2020-07-22 20:28:18 +00:00
vichang
6e4f9e9e06 Merge "Remove @CorePlatformApi LocaleData usage in frameworks" am: 3f89b904a8 am: 226e3d7641 am: 9ee26b06fb am: f82c013ec3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1367376

Change-Id: Ib6bae04011ee7f40a42f0f44cb76f3053cf2648d
2020-07-22 20:09:57 +00:00
vichang
9ee26b06fb Merge "Remove @CorePlatformApi LocaleData usage in frameworks" am: 3f89b904a8 am: 226e3d7641
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1367376

Change-Id: Ib23a5ff1491c89d5cd0f962b1f609c988111c18b
2020-07-22 19:48:40 +00:00
Shu Chen
0cb53bb606 Ensures the slop value is fixed cross lines.
In Q, the slop is a fixed value calculated based on
TextView.getLineHeight().
In R (before this cl), the slop is a dynamic value based on the height
of the current line.

It's been confirmed as the root cause of the regression bug b/159528374.

This cl changes the slop value back to the fixed value.

Bug: 159528374
Test: Verified locally.
Change-Id: I182d22779f1c1155ae2e0b0deb0455bd270b2fd9
Merged-In: I182d22779f1c1155ae2e0b0deb0455bd270b2fd9
2020-07-22 13:00:48 +00:00
TreeHugger Robot
172b4510d1 Merge "Ensures the slop value is fixed cross lines." 2020-07-22 03:22:44 +00:00
vichang
3f9e52d88b Merge "Use DateFormatSymbols directly instead of using LocaleData" am: 3bd9f08ae5 am: da5838aa43 am: 36a3657be8 am: afbfec08c7 am: eb59659998
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1364767

Change-Id: I4dd7683e1473cde7ea560d43de38ad640fe752f6
2020-07-21 17:53:25 +00:00
vichang
eb59659998 Merge "Use DateFormatSymbols directly instead of using LocaleData" am: 3bd9f08ae5 am: da5838aa43 am: 36a3657be8 am: afbfec08c7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1364767

Change-Id: I1e4cd3206d9de0498b6886d2ebd193573b4d2a6d
2020-07-21 17:35:31 +00:00
vichang
36a3657be8 Merge "Use DateFormatSymbols directly instead of using LocaleData" am: 3bd9f08ae5 am: da5838aa43
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1364767

Change-Id: I8fbfc4e551396b32c1aafab4aa750af1baa7c827
2020-07-21 16:56:31 +00:00
Victor Chang
55a6efbfd9 Remove @CorePlatformApi LocaleData usage in frameworks
They can be replaced by the public API provided by ICU4J instead.
No extra layer of caching equivalent to the LocaleData cache is
added because ICU4J has caches instances, e.g. DateFormatSymbols,
etc.

Bug: 160606356
Test: atest FrameworksCoreTests:android.text.format
Change-Id: I07048e0e1a4835d2744b7fce6a5ed79a112e456b
2020-07-20 21:09:40 +01:00
Victor Chang
c744bd5f64 Use DateFormatSymbols directly instead of using LocaleData
Bug: 160606356
Test: atest FrameworksCoreTests:android.text.format
Change-Id: Id5d70328ab146d439ed45135e0fa9d1b9cc95257
2020-07-20 21:09:40 +01:00
TreeHugger Robot
d5e6e62dc8 Merge "Fixes the issue multi-touch causing launcher icons to be not clickable." into rvc-dev am: 94df031718 am: b2f5bfcfc2 am: 61dda21b2b am: 68ea95a8a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12163209

Change-Id: I25e4901e09f93949d9e245430f1e7d83fde5fd87
2020-07-17 17:45:21 +00:00
TreeHugger Robot
68ea95a8a5 Merge "Fixes the issue multi-touch causing launcher icons to be not clickable." into rvc-dev am: 94df031718 am: b2f5bfcfc2 am: 61dda21b2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12163209

Change-Id: I22ca7c23aee67275b3fab108a01b33aa4dfdc6da
2020-07-17 17:39:30 +00:00
TreeHugger Robot
4bd5923372 Merge "Fixes the issue multi-touch causing launcher icons to be not clickable." into rvc-dev am: 94df031718 am: fed46df3f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12163209

Change-Id: I2769a7cfc03bfc2c86cb0b627c4a5605c1e2df0d
2020-07-17 17:30:07 +00:00
TreeHugger Robot
b2f5bfcfc2 Merge "Fixes the issue multi-touch causing launcher icons to be not clickable." into rvc-dev am: 94df031718
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12163209

Change-Id: Icae3589b44c4a98f67afc659f62346db8a6ddd65
2020-07-17 17:24:24 +00:00
Shu Chen
38dfd19611 Ensures the slop value is fixed cross lines.
In Q, the slop is a fixed value calculated based on
TextView.getLineHeight().
In R+ (before this cl), the slop is a dynamic value based on the height
of the current line.

It's been confirmed as the root cause of the regression bug b/159528374.

This cl changes the slop value back to the fixed value.

Bug: 159528374
Test: Verified locally.
Change-Id: I182d22779f1c1155ae2e0b0deb0455bd270b2fd9
2020-07-17 13:40:58 +00:00
Pinyao Ting
b4444ff0a1 Fixes the issue multi-touch causing launcher icons to be not clickable.
The issue occurs because TextView#isFromPrimePointer assumes multi-touch
events are happening on the same TextView and relies on
ACTION_UP/ACTION_CANCEL to reset the Prime pointer id.

consider following scenario:
1. ACTION_DOWN (pointer 0) landed on ViewA,
   ACTION_DOWN (pointer 1) landed on ViewB.
2. ACTION_MOVE landed on both ViewA and ViewB, triggering a drag.
3. When all fingers are released, ACTION_CANCEL (pointer 0) will be
   landed on both ViewA and ViewB, so the prime pointer in ViewB is not
   reset due to pointer index mismatch.

This CL always reset prime pointer id whenever ACTION_UP/ACTION_CANCEL
is triggered.

Bug: 157399040
Test: manual
Change-Id: Id35d9eac939378482fa50e85bb5cda58469240ad
2020-07-16 20:59:10 -07:00