Commit Graph

8291 Commits

Author SHA1 Message Date
TreeHugger Robot
68599e8da1 Merge "ItemViews accessibility enabled state should also reflect view.isEnabled." 2019-08-13 00:02:34 +00:00
Qasid Ahmad Sadiq
8e5db4082d ItemViews accessibility enabled state should also reflect view.isEnabled.
Now it takes into account, the listView.enabled, layoutParams.enabled and the view.enabled.
This bug resulted in some disabled items to not be presented as disabled to the accessibility service.
Fix: 138560025
Test: CTS ABSListViewTest, ListViewTest, DocumentsUIGoogleTests:RenameDocumentUiTest.

Change-Id: I0493545fbfc46ec80631caf78b8851bddc498775
2019-08-09 22:55:35 -07:00
TreeHugger Robot
e1025e8228 Merge "Add max target sdk for ActivityGroup related APIs" 2019-08-08 10:03:37 +00:00
Qasid Sadiq
0dd1be75c3 Merge "The source of subtree chagnes should be the viewParent" 2019-08-07 18:46:51 +00:00
Adrian Roos
a417290040 Merge "GestureNav: Fix AbsSeekBar thumb exclusion" into qt-r1-dev am: 92f61f0323 am: 9546c97709
am: 47ede3f54a

Change-Id: I579e89818e0ab7bbf787141d8dcefebc228ff5c3
2019-08-07 10:29:39 -07:00
Adrian Roos
9546c97709 Merge "GestureNav: Fix AbsSeekBar thumb exclusion" into qt-r1-dev
am: 92f61f0323

Change-Id: Ib0fd305bbf70a33c4d66808a3e3ffca8376c07ad
2019-08-07 09:56:51 -07:00
Adrian Roos
7c7898e74f GestureNav: Fix AbsSeekBar thumb exclusion
Fix two issues that caused the exclusion for SeekBar thumbs to be to small and offset
from the thumb:

Account for padding and thumb offset; the thumb drawable is drawn with an offset
from the View's Canvas; the same offset must be applied when udpating the exclusion
rects.

The thumb is typically much smaller than the drag zone; the thumb rect alone doesn't
provide an appropriately large exclusion for reliably hitting it, so it is enlarged
to the height of the seek bar (up to 48dp).

Bug: 138992366
Test: manual, show exclusion zones with: adb shell setprop debug.pointerlocation.showexclusion 150 && adb shell settings put system pointer_location 1
Test: atest android.widget.AbsSeekBarTest
Change-Id: I2b670c6f3f33451bdccdfd3d75a75e90260257ff
2019-08-07 15:09:26 +02:00
Yinglei Wang
165f56a092 Merge "add directional accessibility page actions to StackView" 2019-08-01 17:41:19 +00:00
Charles Chen
5c0943dbb0 Add max target sdk for ActivityGroup related APIs
Test: build and presubmit
Bug: 137825207
Change-Id: Ie3125743b46e785bf3f5655518e5634da2f578b0
2019-08-01 10:51:22 +08:00
yingleiw
7b2e888fd8 add directional accessibility page actions to StackView
StackView has ITEMS_SLIDE_UP mode and ITEMS_SLIDE_DOWN mode. In
ITEMS_SLIDE_UP mode, scroll forward is slide up and all pages go up
(page down action), scroll backward is slide down and all pages go down
(page up action). In ITEMS_SLIDE_DOWN mode, it is the opposite.
A video in ITEMS_SLIDE_UP MODE is here:
https://drive.google.com/file/d/1m5awAP7ja8tqSaSvNM_oDoVbaUeCa3l6/view?usp=sharing

Test: Tested with twisted talkback that in ITEMS_SLIDE_DOWN mode, page
down action is equivalent to scroll backward, and page up is equivalent
to scroll forward.
Bug: 136277517

Change-Id: I52b2af231781fa04cec5815db2e573a9014e434b
2019-07-31 13:59:42 -07:00
TreeHugger Robot
a6a28fd28f Merge "Deprecate TabHost and TabWidget" 2019-07-31 06:32:32 +00:00
Adam He
2eaec69928 Merge "Implement AssistStructure.ViewNode.getHintIdEntry()." 2019-07-30 21:32:27 +00:00
Charles Chen
28a0e47963 Deprecate TabHost and TabWidget
Since the core implementation of TabHost is LocalActivityManager, which
was deprecated for several years. It does not make sense to maintain
TabHost and TabWidget.

Test: flash and build
Bug: 137825207
Change-Id: Ifb62dbe68c8ada8499dd5336a189c803f2ae3dc1
2019-07-30 17:31:11 +08:00
Yinglei Wang
c526ef72ac Merge "add directional scroll for accessibility action in NumberPicker" 2019-07-27 00:32:43 +00:00
Robert Chou
ea1edcd99b Merge "Resolve NumberPicker display abnormal issue." am: 434e4fdfdb am: 17c0df4aa4 am: b7d3ffef37 am: cc0eaa051d
am: 6cab0b641f

Change-Id: Ife074b005bc16a2b0c1b9c2bd804420ef6442458
2019-07-25 21:24:13 -07:00
Robert Chou
cc0eaa051d Merge "Resolve NumberPicker display abnormal issue." am: 434e4fdfdb am: 17c0df4aa4
am: b7d3ffef37

Change-Id: Ieef8f0cce3dff1fb0c92dea3700e6a7723805399
2019-07-25 20:50:29 -07:00
Robert Chou
b7d3ffef37 Merge "Resolve NumberPicker display abnormal issue." am: 434e4fdfdb
am: 17c0df4aa4

Change-Id: Idd61b68dc773114fe09fcd7f8aebd1043c1a838d
2019-07-25 20:40:29 -07:00
Robert Chou
17c0df4aa4 Merge "Resolve NumberPicker display abnormal issue."
am: 434e4fdfdb

Change-Id: I1d5711167309ce1cb65ddf24bdd8e6392d83bd40
2019-07-25 20:30:37 -07:00
yingleiw
929f612c06 add directional scroll for accessibility action in NumberPicker
Test: Twisted talkback code to perform scroll down when scroll forward
is called. Verfied that scroll down is successfully performed in the
framework code and the number picker behaves correctly. Also verifed the
scroll up/down actions are correctly added to AccessibilityNodeInfo.
Bug: 136277517
Change-Id: I540d2ed3bf4e6b733668853182bd38faa8545997
2019-07-24 15:56:20 -07:00
Mingyan Liu
6234cd9c1a Resolve NumberPicker display abnormal issue.
Bugid: https://partnerissuetracker.corp.google.com/u/0/issues/138241751
Change-Id: Id5971e59d30506b0be2c5347a1e2dd4bb8371eaa
2019-07-24 07:53:38 +00:00
TreeHugger Robot
2857fdab3d Merge "Start saving attribute data for ViewAnimator." 2019-07-23 22:03:09 +00:00
Aurimas Liutikas
fae3445860 Start saving attribute data for ViewAnimator.
Bug: 137892645
Test: atest CtsWidgetTestCases:WidgetAttributeTest
Change-Id: I9e9696b8d5c6bdb6508cca2f08f0607b99ae9803
2019-07-22 16:15:18 -07:00
Kevin Hufnagle
07b2351189 Merge "docs: Fixed link in setCurrentTab() description" into qt-dev am: 2839f24e64 am: 21083088e9
am: 655931d20f

Change-Id: I87418f118f8e1383ac86806dc85a0e799eaf3aad
2019-07-22 15:54:30 -07:00
Kevin Hufnagle
655931d20f Merge "docs: Fixed link in setCurrentTab() description" into qt-dev am: 2839f24e64
am: 21083088e9

Change-Id: I257f23f7a7a463d53f187fe36e4ce4208d2aa9eb
2019-07-22 15:37:02 -07:00
Kevin Hufnagle
21083088e9 Merge "docs: Fixed link in setCurrentTab() description" into qt-dev
am: 2839f24e64

Change-Id: I4d888ec589953a02238520de0594d751fda3e6d0
2019-07-22 15:23:56 -07:00
Kevin Hufnagle
3eac945cb6 Merge "docs: Fixed link in setCurrentTab() description" into qt-dev
am: 2839f24e64

Change-Id: Ie058fa4312e0ee5e411ee0d0a2f0e49c5362c7c2
2019-07-22 15:23:56 -07:00
Kevin Hufnagle
2839f24e64 Merge "docs: Fixed link in setCurrentTab() description" into qt-dev 2019-07-22 22:01:49 +00:00
Nick Cook
bd5effc8d8 Merge "docs: Fix broken link." into qt-dev am: 2aec022fd2 am: 3fd9f9aaf9
am: 9a2dbf3c80

Change-Id: I099a1dad5b0910693a7836abe2c517903d2c2bb6
2019-07-22 11:02:14 -07:00
Nick Cook
9a2dbf3c80 Merge "docs: Fix broken link." into qt-dev am: 2aec022fd2
am: 3fd9f9aaf9

Change-Id: Id88ae5b1c60c07643b004a633fc0c7459aeba49c
2019-07-22 10:53:26 -07:00
Nick Cook
3fd9f9aaf9 Merge "docs: Fix broken link." into qt-dev
am: 2aec022fd2

Change-Id: I7a3c62f0259757be3921b2c8f6b8a2e3d6aa0bd7
2019-07-22 10:44:42 -07:00
Nick Cook
82252f17d3 Merge "docs: Fix broken link." into qt-dev
am: 2aec022fd2

Change-Id: I52cd7a41c34a1f44b427029c651c29912b36da93
2019-07-22 10:43:27 -07:00
Nick Cook
2aec022fd2 Merge "docs: Fix broken link." into qt-dev 2019-07-22 17:24:07 +00:00
Adam He
d55b16e73e Implement AssistStructure.ViewNode.getHintIdEntry().
Bug: 135134274
Test: atest CtsAutoFillServiceTestCases
Test: atest android.contentcaptureservice.cts.unit.ViewNodeTest
Change-Id: I7154cf97a5236ad975bd774c29b30e055cfca8bd
2019-07-19 15:33:51 -07:00
Nick Cook
7c0d47657f Merge "docs: Fix broken link." into qt-dev am: a2fe3be17d am: d0a4a594c5
am: fc53f95cf8

Change-Id: I659a3025b7aaa177c71a1ecc1f8adec6168c1588
2019-07-19 10:33:36 -07:00
Nick Cook
fc53f95cf8 Merge "docs: Fix broken link." into qt-dev am: a2fe3be17d
am: d0a4a594c5

Change-Id: I7b51ae46bbe26d888f9cb541244c2024c3833698
2019-07-19 10:23:35 -07:00
Nick Cook
4190144c27 Merge "docs: Fix broken link." into qt-dev
am: a2fe3be17d

Change-Id: I99943186126549eb9ce1269e619792e619c84bab
2019-07-19 10:16:48 -07:00
Nick Cook
d0a4a594c5 Merge "docs: Fix broken link." into qt-dev
am: a2fe3be17d

Change-Id: I8618dd139fedc0af13bdb6e00b441b237a319784
2019-07-19 10:15:39 -07:00
Nick Cook
42ece979a2 docs: Fix broken link.
Test: make ds-docs

Bug: 132635673
Change-Id: I9e6a493112418f7b1467d9d2926a1b2c106d4ad0
2019-07-18 21:44:50 +00:00
Nick Cook
0cbfc85ef7 docs: Fix broken link.
Test: make ds-docs

Bug: 79729313
Change-Id: I3f7b90457e9127380f2b8cbaf0f958823ba5488e
2019-07-18 20:42:25 +00:00
Kevin Hufnagle
e71346fa0a docs: Fixed link in setCurrentTab() description
Moving focus and selected tab requires focusCurrentTab(), not
setCurrentTab().

Test: make ds-docs

Bug: 137317608
Change-Id: I96f4f4c32cbf8a3dfa0aac8cfa6d6cd12e8f8259
2019-07-18 12:50:31 -07:00
TreeHugger Robot
dc8c71b1df Merge "TextClassifier cross-user vulnerability in direct-reply" 2019-07-09 17:55:04 +00:00
Neil Fuller
658c88a6ce Merge "Switch widgets away from android.text.format.Time" am: db31e6d07a am: 8d96e17940 am: 19d4f4eb32
am: cc83885699

Change-Id: I65dbe328322adc5b17b93de7bb1ceb095e576582
2019-07-09 02:14:51 -07:00
Neil Fuller
cc83885699 Merge "Switch widgets away from android.text.format.Time" am: db31e6d07a am: 8d96e17940
am: 19d4f4eb32

Change-Id: I65336bde8f7730cb3aea8f436d5e301d808c52e6
2019-07-09 02:05:28 -07:00
Neil Fuller
8d96e17940 Merge "Switch widgets away from android.text.format.Time"
am: db31e6d07a

Change-Id: I550b2c7ac5e3e5b07eda51c190c354e5236a561e
2019-07-09 01:38:01 -07:00
Neil Fuller
db31e6d07a Merge "Switch widgets away from android.text.format.Time" 2019-07-09 08:15:10 +00:00
Abodunrinwa Toki
e8492693c2 TextClassifier cross-user vulnerability in direct-reply
Sys UI runs on user 0. This can lead to the TextClassifier (TC)
running for the wrong user. Consequencies are user A can launch apps
in user B via the TC's predicted actions and selected text being
unintentionally shared from user A to an app running in user B.

This fix ensures that the correct user id is passed and verified for
every TC request going across process boundaries (i.e. via SystemTC).
- Sys UI sets the appropriate user id in the TextView
- TextClassificationManager (TCM) system service is constructed using
  a context generated from this user id
- SystemTC sets this user id before querying the TCMService
- TCMService validates the user id before forwarding the request to
  the TCService belonging to that user id.

Bug: 136483597
Test: atest android.view.textclassifier
      atest android.widget.TextViewActivityTest
      (manual) Verified according to steps in bug 123232892
Change-Id: I2fdffd8eb4221782cb1f34d2ddbe41dd3d36595c
2019-07-08 15:16:19 +01:00
Qasid Sadiq
aabd50e0a4 Merge "Populate scrollX and scrollY on AccessibilityEvents." 2019-07-03 23:17:52 +00:00
Mathew Inwood
46f7f16a4d Merge "Restore some greylist entries." into qt-dev am: f76bdce6e0 am: 13ffa87a6d
am: 89f02cc81c

Change-Id: Ib5bc4e76d81ad69f7c3293e6cb72393e1aee7ed9
2019-06-28 09:36:40 -07:00
Mathew Inwood
89f02cc81c Merge "Restore some greylist entries." into qt-dev am: f76bdce6e0
am: 13ffa87a6d

Change-Id: I4c92e5685804a5b03510ab5b9396c0dc6f4aad46
2019-06-28 08:49:28 -07:00
Mathew Inwood
68d07b7d6b Merge "Restore some greylist entries." into qt-dev
am: f76bdce6e0

Change-Id: I7636cbdbd4177461c56103a6a8e7d87498c9ba13
2019-06-28 08:19:19 -07:00