Commit Graph

8268 Commits

Author SHA1 Message Date
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
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
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
Mathew Inwood
13ffa87a6d Merge "Restore some greylist entries." into qt-dev
am: f76bdce6e0

Change-Id: I320e33be57b8124ff7c132a67c8981d53802f8f5
2019-06-28 07:43:43 -07:00
Mathew Inwood
3a75f264a8 Restore some greylist entries.
In Q, these APIs were either:
- removed from the greylist entirely without good reason
- Moved to the restricted greylist without any public alternative
  information added

So they are being moved back to the greylist for Q.

Test: Treehugger
Bug: 136102585
Change-Id: I5ac8b8b9b23c3789d80239cf456072cc7dfa1203
2019-06-28 10:15:37 +01:00
Sergey
38d3e6fe26 Merge "Stable seek bar positioning" am: 874b481cdf am: ffb8583a65 am: d87bdf9834
am: a48ebd1dbc

Change-Id: Ie286b9a16b286fb3f453c8eee0897cce6382ac5b
2019-06-27 16:20:22 -07:00
Sergey
a48ebd1dbc Merge "Stable seek bar positioning" am: 874b481cdf am: ffb8583a65
am: d87bdf9834

Change-Id: I6c1596594271070901000f68e4500703560f6630
2019-06-27 15:59:30 -07:00
Sergey
d87bdf9834 Merge "Stable seek bar positioning" am: 874b481cdf
am: ffb8583a65

Change-Id: I049976100806ea78d99bad3201945ceccb0ee8c5
2019-06-27 15:40:25 -07:00
chaviw
9f6171e7b2 Deleted SurfaceControl.remove method
Updated all callers of SC.remove to use Transaction.remove(sc) and apply
immediately since that's the equivalent. Eventually, the transactions
that contain remove could combine with other transactions if it makes
sense to avoid duplicate applies.

Test: SurfaceControlTest
Change-Id: I13c6ec86de6a6d60f142c2269337557510dd006d
2019-06-25 17:09:03 -07:00
Qasid Ahmad Sadiq
002e3cf73a Populate scrollX and scrollY on AccessibilityEvents.
This wasn't happening for RecyclerView, and that resulted in lost focus after scroll animations.
This is cause Talkback relies on changes in getScrollX/Y to determine if it should do anything about a TYPE_VIEW_SCROLLED AccessibilityEvent.
This squashes a big subset of "losted focus" bugs.
This is most painfully felt when you fling a RecyclerView and in ViewPager page transition, both resulting in slightly longer animations.
Also, change the default value of m[Max]Scroll[x/y] to reflect the above.

Change-Id: Ibe66260fbfc61c98ca88e1b2d9552ed116e44c15
Fix: 125385883
Test: CTSAccessibility*, Tried a few RecyclerViews on device, and ViewPager2 sample app.
2019-06-25 06:32:58 +00:00
Sergey
24a89b4816 Stable seek bar positioning
Touching the thumb on the Seek bar prevents the thumb from immediately jumping to a new position and changing the progress of the Seek bar.

Test: Place your finger on the seek bar thumb so that your finger touches the thumb. Take your finger away. Seek bar should not change progress and thumb's position.
Place your finger on the seek bar thumb so that your finger touches the thumb. Seek bar should not change progress and thumb's position. Then, without lifting your finger from the screen, move your finger towards the maximum or minimum value. Seek bar thumb should follow your finger while maintaining its position relative to your finger.

Change-Id: Ia72d247662ad5b8dd66d0b0578098b9a2b6060cd
2019-06-21 16:20:27 +04:00
Neil Fuller
0bab7fa512 Switch widgets away from android.text.format.Time
android.text.format.Time is limited to 32-bit seconds from the
beginning of the Unix epoch and so classes that use it are limited
to 1901 - 2038. Switching to java.time avoids this issue.

Manual Testing:

AnalogClock is deprecated and not used anywhere so difficult to
test.

DateTimeView is used in the status bar. Behavior was verified with
current date/time and also Europe/London around 2019-03-31 01:00
(skip forward) and around 2019-10-27 02:00 (fall back). The time picker
in settings uses android.icu.util.Calendar which favored the later time
if there are two local times with the same display time (e.g. the
fall back case). The "repeat" case was tested with "date @1572137900"
to set the clock to "the first" 01:58, then waiting 2 minutes to
ensure that the 01:59 -> 01:00 transition occurs correctly.

Bug: 16550209
Test: build / boot / treehugger
Test: See above
Change-Id: Ibadad3041a2e54fe12d347960bf1e0f3ebe10c01
2019-06-18 15:29:41 +01:00
Mihai Popa
c4db4d8416 Merge "[Magnifier-87] Fix deadlock causing ANR" into qt-dev am: 9550c185f9
am: 8cb39cbec2

Change-Id: I549a844a9fdf1cc8ab480188c71005e7d47e54f4
2019-06-18 02:30:42 -07:00
Mihai Popa
104a254b1a Merge "[Magnifier-87] Fix deadlock causing ANR" into qt-dev
am: 9550c185f9

Change-Id: I0bd285dde76e8e232c119f66c5904bf1b461fb5b
2019-06-18 02:22:45 -07:00
Mihai Popa
8cb39cbec2 Merge "[Magnifier-87] Fix deadlock causing ANR" into qt-dev
am: 9550c185f9

Change-Id: I5aa641b8ed1a13605f6311d10a06f964ede29522
2019-06-18 02:22:45 -07:00
Mihai Popa
c00e2718d0 Merge "[Magnifier-87] Fix deadlock causing ANR" 2019-06-17 21:13:15 +00:00
Mihai Popa
e42215ea70 [Magnifier-87] Fix deadlock causing ANR
Before this CL, the magnifier could deadlock when the following
happened:
1. the renderer is asked to draw (and a frame callback is provided)
2. a #dismiss() happens on the UI thread. This acquires mDestroyLock
(previously line 309)
3. InternalPopupWindow#destroy() is called, and this calls
mRenderer.destroy(). This attempts to destroy the renderer on the UI
thread, however the UI thread will wait until the pending frame callback
corresponding to step 1 is executed on the render thread.
4. The frame callback starts executing on the render thread, and tries
to acquire mDestroyLock (previously line 1093). However, this is held by
the UI thread, so a deadlock happens.

This CL completely removes mDestroyLock, relying on the existing
synchronization between the UI and render threads described in step 3.

Bug: 134584742
Test: manual testing
Change-Id: Ia4c75b5b997e0ed94d5a3814dd4507a8fffa124d
2019-06-17 11:59:20 +00:00
Mihai Popa
afee43bfa1 [Magnifier-87] Fix deadlock causing ANR
Before this CL, the magnifier could deadlock when the following
happened:
1. the renderer is asked to draw (and a frame callback is provided)
2. a #dismiss() happens on the UI thread. This acquires mDestroyLock
(previously line 309)
3. InternalPopupWindow#destroy() is called, and this calls
mRenderer.destroy(). This attempts to destroy the renderer on the UI
thread, however the UI thread will wait until the pending frame callback
corresponding to step 1 is executed on the render thread.
4. The frame callback starts executing on the render thread, and tries
to acquire mDestroyLock (previously line 1093). However, this is held by
the UI thread, so a deadlock happens.

This CL completely removes mDestroyLock, relying on the existing
synchronization between the UI and render threads described in step 3.

Bug: 134584742
Test: manual testing
Change-Id: Ia4c75b5b997e0ed94d5a3814dd4507a8fffa124d
2019-06-17 12:46:16 +01:00
Qasid Ahmad Sadiq
addec39fb7 Merge "Disabled items shouldn't also be marked as unactionable." into qt-dev am: 0963cc2418 am: f695023309
am: 315cd7d00f

Change-Id: Ia47380572b48df0d43f923791c1750b59cc3cb3c
2019-06-12 14:24:30 -07:00
Qasid Ahmad Sadiq
315cd7d00f Merge "Disabled items shouldn't also be marked as unactionable." into qt-dev am: 0963cc2418
am: f695023309

Change-Id: Ic6d82df2a5d16235acf241f845274c8a844cb5e8
2019-06-12 13:42:15 -07:00
Qasid Ahmad Sadiq
41f0326426 Merge "Disabled items shouldn't also be marked as unactionable." into qt-dev
am: 0963cc2418

Change-Id: Icd80b77ff7e7b7d6cadecb914609e90fab2b9a8e
2019-06-12 13:26:41 -07:00
Qasid Ahmad Sadiq
f695023309 Merge "Disabled items shouldn't also be marked as unactionable." into qt-dev
am: 0963cc2418

Change-Id: I990a85b223694123bbf9114e038373253fd4f25f
2019-06-12 13:26:09 -07:00
TreeHugger Robot
0963cc2418 Merge "Disabled items shouldn't also be marked as unactionable." into qt-dev 2019-06-12 20:10:31 +00:00
Qasid Ahmad Sadiq
08de63ea45 Disabled items shouldn't also be marked as unactionable.
Something can be clickable and disabled. Returning early here prevents that state to be reflected in ListView items.
The reported bug was happening because the items were disabled, but they weren't being reported as clickable.
Talkback doesn't read "disabled" for disabled items unless they are also actionable in certain ways.
Test: CTSAccessibility*, CTS AbsListViewTest, CTS ListViewTest, tried UI with sample app.
Fix: 131281972

Change-Id: Ic9b8c995398151f084d194e272ce082ec345e517
2019-06-11 18:58:21 -07:00
Adam Powell
2541038909 Merge "Gesture exclusion for seekbar thumbs/edit handles" into qt-dev am: 2b2d6f58c1 am: 076200294d
am: b2e12dec14

Change-Id: Id9d305327690ad41501c31d474790c9a92d332e8
2019-06-11 14:15:53 -07:00