Commit Graph

8205 Commits

Author SHA1 Message Date
Joshua Baxter
2612ee2d6d Merge "docs: fix typos" into qt-dev am: 748dd651f4
am: fcf4eace37

Change-Id: I7644a7262bf0ac26870c5c106d94832015f3bff2
2019-11-12 15:33:33 -08:00
Joshua Baxter
fcf4eace37 Merge "docs: fix typos" into qt-dev
am: 748dd651f4

Change-Id: I795c039941adfb8d6743d7af3224231f864efd57
2019-11-12 15:29:04 -08:00
Joshua Baxter
5f005c9eb7 docs: fix typos
bug: 119075364

Change-Id: I452fc3bb80ffc7466d096b7eaf5becd18bc1fb45
test: make ds-docs
2019-11-11 21:56:38 +00:00
Joshua Baxter
2947a87032 Merge "docs: remove old broken link" into qt-dev am: 2dc61fc4f4
am: 101f294b58

Change-Id: Id655af3e092e125cc80cdb0d792e56a4adb93100
2019-11-06 14:09:20 -08:00
Joshua Baxter
ebfb71dcde Merge "docs: fix typo" into qt-dev am: 74ff8a0bbd
am: 6b70c7893d

Change-Id: I930b4b473f697499857eac19cfa6eb4d6d290cef
2019-11-06 13:57:01 -08:00
Joshua Baxter
101f294b58 Merge "docs: remove old broken link" into qt-dev
am: 2dc61fc4f4

Change-Id: Ib025e4553835807c5c44496c992fb3a79827bf6b
2019-11-06 13:49:15 -08:00
Joshua Baxter
6b70c7893d Merge "docs: fix typo" into qt-dev
am: 74ff8a0bbd

Change-Id: If59dc047a0e4d8095b3a22f4609ce125af6acfe5
2019-11-06 13:38:58 -08:00
Joshua Baxter
2dc61fc4f4 Merge "docs: remove old broken link" into qt-dev 2019-11-06 21:22:59 +00:00
Joshua Baxter
a51a9b7e96 docs: fix typo
Change-Id: I2e8f28a917d0b09c0bf0a11f0db863ae7bf03ac8
test: make ds-docs
bug: 79156293
2019-11-06 21:14:54 +00:00
Joshua Baxter
5e3b85b46d docs: remove old broken link
Change-Id: If39d214fde055c412dd881c282e543975a7cbc49
test: make ds-docs
bug: 120135854
2019-11-06 21:09:08 +00:00
Kevin Hufnagle
379b87531b Merge "docs: Fixed link to material design for ScrollView" into qt-dev am: 80b543b45a
am: 71f8040c3b

Change-Id: I317e75554f4741551e8221bfacb447ad0e914f4e
2019-09-20 15:47:23 -07:00
Kevin Hufnagle
71f8040c3b Merge "docs: Fixed link to material design for ScrollView" into qt-dev
am: 80b543b45a

Change-Id: Ic7cc4494a88e6feaedf85626270ed1e8057189f5
2019-09-20 15:39:50 -07:00
Kevin Hufnagle
926edfeb0c docs: Fixed link to material design for ScrollView
Test: make ds-docs -j32

Bug: 141024886
Change-Id: I69d05cdf99d91f74143454c78c000128d1da42ce
2019-09-19 23:50:47 +00:00
Mady Mellor
a5813e0e3d qt-r1-bubbles-dev @ build 5835883
Test: presubmit setup on source branch

Bug: 126945401
Bug: 128932906
Bug: 129158983
Bug: 130237686
Bug: 130250809
Bug: 130442248
Bug: 131267438
Bug: 131609280
Bug: 131692350
Bug: 131849856
Bug: 133444037
Bug: 134064116
Bug: 134064858
Bug: 134070807
Bug: 134077101
Bug: 134090085
Bug: 134155107
Bug: 134423445
Bug: 134512898
Bug: 134514210
Bug: 134514227
Bug: 134734945
Bug: 134960381
Bug: 134989736
Bug: 135214687
Bug: 135280077
Bug: 135472021
Bug: 135475155
Bug: 135487618
Bug: 135488406
Bug: 135518045
Bug: 135633218
Bug: 136034310
Bug: 136150954
Bug: 136199542
Bug: 136538998
Bug: 137201711
Bug: 137213469
Bug: 137214359
Bug: 137214536
Bug: 137233453
Bug: 137876221
Bug: 138301618
Bug: 138445026
Bug: 138659213
Bug: 138749133
Bug: 138799651
Bug: 138801505
Bug: 138941969
Bug: 139002444
Bug: 139025304
Bug: 139816141
Change-Id: Ia7364529ea58070c8d45ecd726ab6ac7d34f2abe
Merged-In: Ic271a6a0f0803941dd5a84124dabf4d8c5fcc755
Merged-In: Ic3a4ba793db7f1361678ef51c411d9eab85d9b85
2019-09-11 22:42:54 +00:00
Kevin Hufnagle
db1bad4ab9 Merge "docs: Added content desc in ImageView example." into qt-dev am: eba5156095
am: 230a23e8d2

Change-Id: Ibf9c2193db824ffd49022d9139b520a6d0986c52
2019-08-27 02:13:09 -07:00
Kevin Hufnagle
73ca522b5f Merge "docs: Added content desc in ImageView example." into qt-dev am: eba5156095
am: 230a23e8d2

Change-Id: I4b267e50e8553b1e7c0e0371ad0bf100a442ee1d
2019-08-26 16:07:03 -07:00
Kevin Hufnagle
230a23e8d2 Merge "docs: Added content desc in ImageView example." into qt-dev
am: eba5156095

Change-Id: I08a66c2da26833978d2ed4b77de175b3bfe78931
2019-08-26 15:10:39 -07:00
Tony Mak
7ba3fd4546 Hold a strong reference to the callback in TextClassifierService
Issue:
TextClassifierService failed to invoke the callback to send the result back to client
occasionally because  the callback object may be GCed.
And thus smart selection failed occasionally, as the client doesn't get a response
back when it hits this issue. It won't fallback to local textclassifier due to the
timeout specified in TextView.

Cause:
We thought that ITextClassifierCallback is a "cross process" reference, and
so we only store a weak reference of it to avoid leak.
And it turns out that it is wrong. As soon as the weak ref gets GCed in
the service, that counts as dropping the callback. The service doesn't
know about any strong references the client has.

Bug: 138865849

Test: Try smart selection over 30 times, make sure smart action is shown
for every single time.

Merged-In: Ia9218cf67e8d67697a0fdff22c7918a55efc39ca

Change-Id: I4d89518dfff777ba5d999d9ba89d7f4cf7598e75
2019-08-22 14:19:23 +00:00
Kevin Hufnagle
b358694739 docs: Added content desc in ImageView example.
The example ImageView at the beginning of the class description now
includes a content description attribute. Also updated the links in
the first paragraph where code fonts aren't necessary.

Test: make ds-docs -j32

Bug: 138856073
Change-Id: I33a75dc31d68289d955979d2fe8afe2ae3d4770e
2019-08-14 18:29:55 -07:00
Adrian Roos
cb2e436ce9 Merge "GestureNav: Fix AbsSeekBar thumb exclusion" into qt-r1-dev
am: 92f61f0323

Change-Id: I07e4fa95281fc4211e1b62bec04f2fc24ea96639
2019-08-07 09:55:38 -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
Kevin Hufnagle
8ddca84fd2 Merge "docs: Fixed link in setCurrentTab() description" into qt-dev am: 2839f24e64
am: 21083088e9

Change-Id: Ib624c9dd408df71690c83305e3e1f840571b174e
2019-07-22 15:36:57 -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
a543c5c5b0 Merge "docs: Fix broken link." into qt-dev am: 2aec022fd2
am: 82252f17d3

Change-Id: Ifb4d1701217f5d3d69efc594ac23655aeda6b3e6
2019-07-22 11:02:07 -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
b09b7f2e17 Merge "docs: Fix broken link." into qt-dev am: a2fe3be17d
am: d0a4a594c5

Change-Id: If65828780a2616c6d185969941d3028258b99fdd
2019-07-19 10:32:31 -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
chaviw
dd5bde0a3c DO NOT MERGE: 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
Exempt-From-Owner-Approval: Already approved and merged in master.
2019-07-10 10:02:08 +00: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
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
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
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
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
076200294d Merge "Gesture exclusion for seekbar thumbs/edit handles" into qt-dev
am: 2b2d6f58c1

Change-Id: I7485be0f36776fd3cd08aa4b3b20b7bf623c5eb1
2019-06-11 13:46:21 -07:00
Adam Powell
8624121b27 Gesture exclusion for seekbar thumbs/edit handles
Track gesture exclusion rects for seekbars and EditText selection and
cursor handles.

Bug: 133845668
Bug: 129338678
Test: cts/manual
Change-Id: I029d8ba465459f8ecaa14ee8ad0f5f4139b24e65
2019-06-10 20:24:20 +00:00
Feng Cao
9e4ca44e28 Only send text update for TextView after VIEW_ADDED is notified
Test: atest CtsContentCaptureServiceTestCases (sanity check)
Fixes: 134309443

Change-Id: Ia94194576db0a1679bbb2a9b76c84a871b965435
2019-06-08 00:56:43 +00:00
Aurimas Liutikas
c38e9716a8 Merge "Record textAppearance information for TextView." into qt-dev
am: e53837182c

Change-Id: I93a7c449a72bab5f25690505453432b551e3ff94
2019-06-07 15:51:30 -07:00
TreeHugger Robot
e53837182c Merge "Record textAppearance information for TextView." into qt-dev 2019-06-07 22:35:55 +00:00
Sunny Goyal
0dc76428f8 Merge "Resetting widget cache when some configurations change" into qt-dev
am: 5cb8996742

Change-Id: If13799bd7bde4a39744c355c1766e602cb9e7de9
2019-06-07 11:37:31 -07:00
Sunny Goyal
758e88bd44 Resetting widget cache when some configurations change
Sometimes widget providers hardcode colors in their remoteViews
by loading them from resources. On UI mode change, this can lead to
inconsistent UI if some widgets use a different configuration
than others.

Test: Verified with calendar widget on device
Bug: 133064045
Change-Id: If47a6b1973f55b7590f5d4116813d6a332951697
2019-06-06 17:02:55 -07:00
Torne (Richard Coles)
a50d608b89 Merge "Clarify problems with Linkify.MAP_ADDRESSES." into qt-dev
am: a0d66cf3f6

Change-Id: I264a589322b87b09a5d250f1a7e71b7f1795f3dd
2019-06-06 10:59:10 -07:00
Aurimas Liutikas
9504459279 Record textAppearance information for TextView.
Test: Added in CTS
Bug: 133773670
Change-Id: I1d66a75ef7aca11f577fe54b7ef393565a64da79
2019-06-05 15:49:20 -07:00
Torne (Richard Coles)
aa68ab8288 Clarify problems with Linkify.MAP_ADDRESSES.
Update the documentation for WebView.findAddress, as well as the related
functionality in Linkify and TextView, to clarify why the method is
deprecated, why it should not be used, and that it can cause unexpected
exceptions to be thrown from several places on older OS versions.

Fixes: 24676033
Test: m offline-sdk-docs
Change-Id: I45d82b9a4c9cf62d9566898dd21cd2139ad98f37
2019-06-04 14:14:05 -04:00