Commit Graph

6707 Commits

Author SHA1 Message Date
Guang Zhu
22bf2537a6 Merge "use threadtime when collecting logcat" into nyc-mr1-dev am: 333680114d am: 3c5b0dffe3
am: a3924f78f9

Change-Id: I38225078db5d41dd4fc120c0a4b7f9b13f537de0
2016-08-26 21:10:10 +00:00
Colin Cross
27ef5de65f resolve merge conflicts of 84d7f57 to master
Change-Id: If919f38b89dbb9936aa6b8232be27dcc793925cd
2016-08-26 12:23:10 -07:00
Alan Viverette
077cde7c6e Clean up VideoView, SurfaceView constructors am: 768ca7d19b am: 9af5e5b31b
am: 54131127e8

Change-Id: I8e10d0145e84489707623a934df352e61654a57c
2016-08-26 18:26:04 +00:00
TreeHugger Robot
a2d6d3ccb5 Merge "resolve merge conflicts of 1095b21 to master" 2016-08-26 18:20:34 +00:00
TreeHugger Robot
c5d2192f14 Merge "Various doc cleanups" 2016-08-26 17:37:09 +00:00
Chet Haase
8b9ed44f8d Various doc cleanups
Issue #6439958  More R.attr breakage
Issue #918412  android.graphics.Paint.FontMetricsInt fields & methods need doc
Issue #917387  javadoc bug: Canvas.EdgeType has minimal documentation
Issue #18948460 [DAC-bug] LinearLayout xml layout_weight parameter is missing description

Change-Id: Idb289ca778b3f316923757405460031ce7a5e1e9
2016-08-26 06:50:21 -07:00
Colin Cross
2268fc12b5 resolve merge conflicts of 1095b21 to master
Change-Id: I611579044234435a07cad2f64930b731e53aec77
2016-08-25 22:18:33 -07:00
Chet Haase
df10332181 Document and deprecate various old, undocumented classes
These classes are mostly undocumented and, in some cases, completely
unobvious in what they do or how to use them. In some cases, I added
docs to explain the API. In other cases (ProgressDialog, ZoomButton,
DialerFilter), I deprecated the classes because there are far better ways
to accomplish that functionality with today's platform.

Issue #2164052 Underdocumented classes in Eclair

Change-Id: Ief0e7267852c2cb3c5ae604b3d902d66c89f4cd3
2016-08-25 12:38:46 -07:00
Guang Zhu
a3924f78f9 Merge "use threadtime when collecting logcat" into nyc-mr1-dev am: 333680114d
am: 3c5b0dffe3

Change-Id: I0203a2bc1b36c32902d78d778f231e5009cb7d22
2016-08-24 23:28:20 +00:00
Adam Powell
3c5b0dffe3 Always report visibility to new ImageView drawables am: 37b44dd592
am: a35c182637

Change-Id: Iff4507bf0607d33d9525c8695260f75b381a7ba8
2016-08-24 23:18:47 +00:00
Adam Powell
a35c182637 Always report visibility to new ImageView drawables
am: 37b44dd592

Change-Id: Ib8e1cc5d3ee91aae74875cc70fda9d8d4104892e
2016-08-24 23:12:27 +00:00
Adam Powell
37b44dd592 Always report visibility to new ImageView drawables
Fix a regression where some drawables would not be correctly updated
with their visibility state if set while an ImageView was not attached
to a window.

Bug 30216207

Change-Id: Ia30326a78168141c8f85bad9c782710f965623b7
2016-08-24 22:57:09 +00:00
Adam Powell
84d7f577d6 Focus behavior for scroll containers in watch mode
am: 2fe301db75

Change-Id: I748e941fcce1355a226bf56609511c8db8bb788e
2016-08-24 21:16:24 +00:00
Ned Burns
68efd087a3 Merge "Focus behavior for scroll containers in watch mode" into cw-f-dev 2016-08-24 21:11:45 +00:00
Alan Viverette
54131127e8 Clean up VideoView, SurfaceView constructors am: 768ca7d19b
am: 9af5e5b31b

Change-Id: Ic017d3855d81b3a6fbc72fd4c256f55584e453da
2016-08-24 18:43:53 +00:00
Alan Viverette
1095b21fa7 Constrain input hour and minute to valid range am: f0ac2ba9f4
am: a2c9a8c274

Change-Id: Ifc3701f407620892909d8228a330d4b7e0af101c
2016-08-24 18:42:47 +00:00
Alan Viverette
9af5e5b31b Clean up VideoView, SurfaceView constructors
am: 768ca7d19b

Change-Id: Ia3ff40a2c6dbbb2a725bc6306401de3cd662ba33
2016-08-24 18:31:38 +00:00
Alan Viverette
a2c9a8c274 Constrain input hour and minute to valid range
am: f0ac2ba9f4

Change-Id: I5f365e4869f0aabec71e478d9cba4edc3ce30900
2016-08-24 18:30:20 +00:00
Alan Viverette
16b8941dba Merge "Clean up VideoView, SurfaceView constructors" into nyc-mr1-dev 2016-08-24 18:17:04 +00:00
Alan Viverette
4e32b47c48 Merge "Constrain input hour and minute to valid range" into nyc-mr1-dev 2016-08-24 18:17:04 +00:00
Adam Powell
2fe301db75 Focus behavior for scroll containers in watch mode
Change default scrolling containers not to request a reveal (parent
scroll) on focus, and to be focusable in touch mode. This helps watch
devices with other input mechanisms that rely on view focus.

Since there's no attribute for the reveal on focus hint, set that in
code. Set focusable in touch mode on the default styles for
ScrollView/HorizontalScrollView. AbsListView already sets this
historically anyway.

Change-Id: I74760f6d523874127da6f6134f0461cc59ce189a
2016-08-23 18:36:04 -04:00
Andrei Stingaceanu
1136e450e3 Merge "TextView - lazy GestureDetector creation for ClickableSpans" 2016-08-23 17:00:38 +00:00
Tenghui Zhu
174c92aa52 Merge "Update the javaDoc for VectorDrawable and AnimatedVectorDrawable" into nyc-mr1-dev am: 5cb0c13f76
am: d4f839c477

Change-Id: Iba7c42c3284b1b4b8c3df90c82ce24723d3dfba3
2016-08-23 15:03:39 +00:00
Robert Carr
d4f839c477 PopupWindow: Be more consistent about Gravity calculation.
am: 798fb79866

Change-Id: Ia7c49dbe2fbe751565d6c8be46586a66c535a148
2016-08-23 14:43:21 +00:00
Rob Carr
b19915bea8 Merge "PopupWindow: Be more consistent about Gravity calculation." into nyc-mr1-dev 2016-08-22 20:47:10 +00:00
Andrei Stingaceanu
1fd8ea75a7 TextView - lazy GestureDetector creation for ClickableSpans
Moves the ClickableSpan GestureDetector creation into
TextView#onTouchEvent only on ACTION_DOWN if a ClickableSpan
was targeted. This allows constructing TextViews outside the
UI Thread.

Bug: 30929474
Change-Id: I7f4442f0faee51d3c395fbde1ce32bdf909a18fb
2016-08-22 13:58:58 +01:00
Chris Banes
b62db80a04 Fix NPE in ForwardingListener - fw edition
Caused by a postDelayed() and lack of
null check

BUG: 29992695
Change-Id: If2f43736505e0f738e9d0cf941a1f2d828cd8d5d
2016-08-22 10:16:21 +00:00
Alan Viverette
122fca86b3 Announce the date for accessibility using EMMMMdy format am: a770530e12
am: d239411420

Change-Id: I6c2323d6e17a6497bcab0161d745586feb96076c
2016-08-17 20:23:59 +00:00
Alan Viverette
a770530e12 Announce the date for accessibility using EMMMMdy format
Which for en_US would be something like "Friday August 5th 2016" but may
be re-ordered for other locales. Dates are hard.

Bug: 30682782
Change-Id: I015d293526592add27ce8fada12cd58bcc274ccf
2016-08-17 12:46:59 -04:00
Andrei Stingaceanu
3df24c31bb TextView - fix ClickableSpans always triggering on touch up
* introduce GestureDetector to TextView
* completely remove link click functionality from
  LinkMovementMethod (the interface does not state it
  provides click functionality)
* intercept onSingleTapConfirmed and trigger onClick on the
  link if it exists (simplified duplicated functionality)
* renamed a bunch of LinkMovementMethod variables because
  eyes hurt

Bug: 23692690
Change-Id: Idaf3f3391328207f42521235fb5deb1a11c66aaa
2016-08-12 10:21:08 +00:00
Alan Viverette
d596b26f12 Use localized hour when announcing selection for accessibility am: 66a8562c58 am: fde654fb97
am: 4922fdc35f

Change-Id: I769d1cc8b25af34b4a08fba27e62db09a22412bc
2016-08-10 22:22:43 +00:00
Alan Viverette
4922fdc35f Use localized hour when announcing selection for accessibility am: 66a8562c58
am: fde654fb97

Change-Id: I8a07c4f9af6bfc31a2510dc5cc5aa7b763d77bc0
2016-08-10 22:11:10 +00:00
Alan Viverette
fde654fb97 Use localized hour when announcing selection for accessibility
am: 66a8562c58

Change-Id: Ieffd33d1e33fdd38e2383396b18dce8031fb1538
2016-08-10 22:04:59 +00:00
TreeHugger Robot
75f7bfdc7a Merge "Use localized hour when announcing selection for accessibility" into nyc-mr1-dev 2016-08-10 21:55:30 +00:00
Alan Viverette
4a939cc73d Use symmetric conditions for advertising and performing ACTION_SCROLL am: 47be54bb78 am: fd855c17b1
am: 56a05f464e

Change-Id: I8b2e6afbd3aa8de0234db1abd7bf21cdb4b369bc
2016-08-10 21:42:47 +00:00
Alan Viverette
56a05f464e Use symmetric conditions for advertising and performing ACTION_SCROLL am: 47be54bb78
am: fd855c17b1

Change-Id: I6efe57707e22099409869c3e7c42bfa12a081ff4
2016-08-10 21:20:05 +00:00
Siyamed Sinir
05af162ab5 Use SpannableFactory for TextView.removeSuggestionSpans
TextView.removeSuggestionSpans function was creating an instance of
Spannable using the constructor. This CL changes it to use
Spannable.Factory to create the instance.

Bug: 30709627
Change-Id: I190b68c5937e7194622d2a01de78143c1ce469ac
2016-08-09 16:19:52 +00:00
Robert Carr
798fb79866 PopupWindow: Be more consistent about Gravity calculation.
Currently we are only appending the DISPLAY_CLIP_VERTICAL
if the API user happens to call update() after showAsDropDown().
This fixes that behavior, and fixes a RTL issue (START v. LEFT).
Unblocks a CTS test I am working on.

Bug: 30578621
Change-Id: Ibf838544d453986b66eb223e2ac0f7d909fe5630
(cherry picked from commit 8367c50972)
2016-08-08 20:35:17 +00:00
Alan Viverette
47be54bb78 Use symmetric conditions for advertising and performing ACTION_SCROLL
Bug: 30186372
Change-Id: Ieea0cd539049990ffa98edabb2a7b026445dd14a
2016-08-05 16:48:19 -04:00
Alan Viverette
66a8562c58 Use localized hour when announcing selection for accessibility
Bug: 30451273
Change-Id: I04276dc12d479ff5336799ebb32ff4cf5d66068a
2016-08-04 13:24:14 -04:00
Alan Viverette
f0ac2ba9f4 Constrain input hour and minute to valid range
This is consistent with the legacy spinner implementation.

Bug: 30570390
Change-Id: I14fb1363b410b2f56ead01e0b632efb8f7508268
2016-08-04 13:23:33 -04:00
Alan Viverette
768ca7d19b Clean up VideoView, SurfaceView constructors
Also cleans up VideoView fields. No functional changes.

Bug: 30600463
Change-Id: I42241e376006c328695d46d63f7fdeda409f1a67
2016-08-04 09:54:14 -04:00
Yigit Boyar
bb1115f1ff Target API check for margin params fix am: 2dd20a61e9 am: 6efd207022
am: 5eede8910b

Change-Id: I748d223c4dcec4f0234b0e4e808ae982efbd0bd5
2016-08-03 19:46:33 +00:00
Kirill Grouchnikov
95288e41a5 Merge "Document exception throwing in TabHost" 2016-08-03 13:16:08 +00:00
Yigit Boyar
5eede8910b Target API check for margin params fix am: 2dd20a61e9
am: 6efd207022

Change-Id: Ic05edff9014a74cd543d0eef03ba8862a198613a
2016-08-02 20:57:22 +00:00
Yigit Boyar
2dd20a61e9 Target API check for margin params fix
Prior to N, our widgets were not converting MarginLayoutParams
properly between ViewGroups. The fix intrudced some issues in
older apps as the broken conversion code would hide developer
errors. This CL guards the change with a target API check so
that we don't affect older apps.

Bug: 30378230
Change-Id: I215281d261b553c3b4cedcd29ea0a861df809471
2016-08-02 11:27:18 -07:00
Kirill Grouchnikov
90ac2ac538 Document exception throwing in TabHost
Bug: 30589663
Change-Id: I2dc0ab0fff4d837a85bd1914f99711eca5dd73ca
2016-08-02 11:44:12 -04:00
Alan Viverette
cf3a479d59 Adjust touch progress offset to account for changes to AbsSeekBar am: 1d33c3f3a3 am: 1cad05bdc0
am: c0acf68d30

Change-Id: Ia751dd2246bcfa0ea2a51411d00ae0f712531808
2016-08-02 02:20:44 +00:00
Svetoslav Ganov
e1c3ca5270 Revert "Prevent apps to overlay other apps via toast windows" am: 2fc661a453
am: 74b90c7d85

Change-Id: I6829cf6f04155a951bcfe79fcc13dbc2104a00ae
2016-08-02 02:17:56 +00:00
Svetoslav Ganov
74b90c7d85 Revert "Prevent apps to overlay other apps via toast windows"
am: 2fc661a453

Change-Id: I37bfb7dc01ad512f34332e83f6cc6be31d1feaab
2016-08-02 02:01:40 +00:00