Phil Weaver
8de23283b6
Revert "Don't invalidate list data during layout." am: 866ded50bb am: 96b4a68c06 am: b8a314427b
...
am: 1b5e3d98d2
Change-Id: I91a54e6f1f4d94da93b47cc79a8fdda5a8ae8580
2016-11-02 17:36:24 +00:00
Phil Weaver
1b5e3d98d2
Revert "Don't invalidate list data during layout." am: 866ded50bb am: 96b4a68c06
...
am: b8a314427b
Change-Id: I5ace1c6b058b795a5b04e48200d2b3d3a1ae2486
2016-11-02 17:30:48 +00:00
Phil Weaver
96b4a68c06
Revert "Don't invalidate list data during layout."
...
am: 866ded50bb
Change-Id: I191c26bfb9488d5d67514a81387a9cde95a20eb4
2016-11-02 17:20:17 +00:00
Sunny Goyal
e7e563108e
Merge "Avoding writing ApplicationInfo multiple times for nested RemoteViews"
2016-11-02 16:46:41 +00:00
Phil Weaver
866ded50bb
Revert "Don't invalidate list data during layout."
...
This reverts commit 456158ffc2 .
Change-Id: I7a61dc34dfc81ee650ca0883fe99c0f5dc08ba75
2016-11-01 23:38:44 +00:00
Phil Weaver
112345c1c3
Don't invalidate list data during layout. am: 456158ffc2 am: 06ffff6132
...
am: 07f434d02f
Change-Id: I6adaa881b70805d46d2425dd979609c6e99e11c9
2016-11-01 23:09:02 +00:00
Phil Weaver
06ffff6132
Don't invalidate list data during layout.
...
am: 456158ffc2
Change-Id: I550b63d3fd6b5f451083627dc16f369729b1e1d7
2016-11-01 22:55:11 +00:00
Phil Weaver
f74ce2764f
Merge "Don't invalidate list data during layout."
2016-11-01 19:20:52 +00:00
Phil Weaver
456158ffc2
Don't invalidate list data during layout.
...
When a FastScroller is enabled, we were invalidating the
list data during layout, which left the UI in a bad state.
Long-presses didn't work properly, and TalkBack touches
were impossible to perform.
Bug: 31160338
Test: Manually tested long pressing, and verified
that TalkBack now works with the TestActivity in ag/1567328.
Change-Id: Iecd2d597259748a3ecbf5573950e565a0e9faa42
2016-11-01 18:36:16 +00:00
Phil Weaver
2112742be6
Don't invalidate list data during layout.
...
When a FastScroller is enabled, we were invalidating the
list data during layout, which left the UI in a bad state.
Long-presses didn't work properly, and TalkBack touches
were impossible to perform.
Bug: 31160338
Test: Manually tested long pressing, and verified
that TalkBack now works with the TestActivity in ag/1567328.
Change-Id: Iecd2d597259748a3ecbf5573950e565a0e9faa42
2016-11-01 10:17:57 -07:00
Sunny Goyal
5d8bcdf6a5
Avoding writing ApplicationInfo multiple times for nested RemoteViews
...
Bug: 32240818
Test: All tests passing
Change-Id: I00eec4d692763c53709e14b25a338e6320166c4a
2016-10-31 14:55:17 -07:00
Sunny Goyal
584264f6af
Merge "Adding support for async view loading in RemoteViewsAdapter"
2016-10-27 17:14:47 +00:00
Keisuke Kuroyanagi
c69f693216
Merge "Fix: Undo for drag and drop."
2016-10-25 01:24:18 +00:00
Keisuke Kuroyanagi
46ca471d25
Merge "Fix: Selection created by long tap and drag can be empty."
2016-10-25 01:20:22 +00:00
Rob Carr
92c8ab1b07
Merge "Prevent crash from early Toast surface destruction."
2016-10-24 23:10:59 +00:00
Siyamed Sinir
7984eb58be
Merge "Update TextView (set|get)(min|max)(width|height) ApiDoc"
2016-10-21 21:51:16 +00:00
Robert Carr
6cfc4e31b7
Prevent crash from early Toast surface destruction.
...
To understand this change it's first helpful to review Toasts.
The ViewRoot is constructed on the client side, but it's added,
to a window token controlled by the NotificationManagerService.
When we call NotificationManagerService#cancelToast, the system
will remove this window token. With the window token removed,
the WindowManager needs to destroy the surface to prevent orphaned
windows. If we destroy the Surface before removing the toast on the
client side however, we've never asked the ViewRoot to stop rendering
and we could have a crash. To solve this we just have to ensure we call
removeView before cancelToast.
Test: cts-tradefed run singleCommand cts -d -o --module CtsWidgetTestCases --test android.widget.cts.ToastTest
Bug: 31547288
Change-Id: I96672b0ac07ff18e9f51348f2ed42913c5a5226f
2016-10-19 14:56:47 -07:00
John Reck
caa08ff5e9
The bigger update to Canvas
...
All draw* calls in Canvas are regular JNI
All draw* calls in DisplayListCanvas are FastNative
Unifies Canvas JNI on nMethodName naming
CanvasPerf results before:
INSTRUMENTATION_STATUS: basicViewGroupDraw_min=12492
INSTRUMENTATION_STATUS: recordSimpleBitmapView_min=13912
and after:
INSTRUMENTATION_STATUS: basicViewGroupDraw_min=11945
INSTRUMENTATION_STATUS: recordSimpleBitmapView_min=13318
Test: refactor, makes & boots
Change-Id: I06000df1d125e17d60c6498865be7a7638a4a13e
2016-10-17 11:33:28 -07:00
Aurimas Liutikas
c344036c11
Merge "Fix import statements in android.widget package."
2016-10-12 19:54:54 +00:00
Alan Viverette
aeee6a78e0
Add note about density scaling behavior to setImageURI am: ac21e56f63 am: 74c6d9bd3f
...
am: 0754f59c4a
Change-Id: Ie22b497eed13c815d40e004db6e19a9875f5168f
2016-10-12 01:48:23 +00:00
Alan Viverette
0754f59c4a
Add note about density scaling behavior to setImageURI am: ac21e56f63
...
am: 74c6d9bd3f
Change-Id: I5b6f9d978d61aedac2c53dcf75dea449468d3c7b
2016-10-12 01:42:06 +00:00
Alan Viverette
74c6d9bd3f
Add note about density scaling behavior to setImageURI
...
am: ac21e56f63
Change-Id: I4a85ae20023dd0589227ca7684a965a246f451fd
2016-10-12 01:36:33 +00:00
Aurimas Liutikas
99441c5d7d
Fix import statements in android.widget package.
...
Additionally this CL removes spaces at the end of the line.
Test: code still compiles.
Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
2016-10-11 17:00:17 -07:00
Alan Viverette
ac21e56f63
Add note about density scaling behavior to setImageURI
...
Bug: 27327999
Change-Id: I1e348a1fbda20fff9575261df7097fbd46381383
2016-10-11 23:32:10 +00:00
Keyvan Amiri
00a981e522
Merge "Added min support to ProgressBar and SeekBar"
2016-10-11 21:53:41 +00:00
Alan Viverette
39a561f5bb
Scale bitmap shaders for target density am: 0d2a46b733 am: 444f2043d1
...
am: 36d83ffc5b
Change-Id: I97a23b431247f4541f5517787a486aca7d95a618
2016-10-10 14:30:50 +00:00
Alan Viverette
36d83ffc5b
Scale bitmap shaders for target density am: 0d2a46b733
...
am: 444f2043d1
Change-Id: Ia0f4da2963e3a4a775cd2bb1324bd69ff86244b6
2016-10-07 20:46:37 +00:00
Alan Viverette
444f2043d1
Scale bitmap shaders for target density
...
am: 0d2a46b733
Change-Id: I8e3274a9c6047d943336827e7e0c8563e40c2ca5
2016-10-07 20:39:48 +00:00
Alan Viverette
0d2a46b733
Scale bitmap shaders for target density
...
Also fixes progress bar sample tile to reflect density and ensures
that ProgressBar.tileify() clones inner drawables into the correct
density.
Bug: 31841123
Test: BitmapDrawableTest#testPreloadDensity()
Test: ThemeHostTest
Test: Visual inspection of ApiDemos
Change-Id: I9dcb9817d8d91d61ff0215987247e9e7fb089c46
2016-10-07 16:23:32 -04:00
Erik Wolsheimer
12e319b735
Do not listen for clock ticks, time changes, timezone changes, or time format changes when TextClock is not visible am: e12cd3bb3b
...
am: 4d855f15ab
Change-Id: I9bebe0ea19701dcdb924c20534a418f7ad19440a
2016-10-05 23:09:29 +00:00
Erik Wolsheimer
4d855f15ab
Do not listen for clock ticks, time changes, timezone changes, or time format changes when TextClock is not visible
...
am: e12cd3bb3b
Change-Id: I4ce1dcc5184f8cf03904a19631b9efe4be1b47fa
2016-10-05 22:46:12 +00:00
Erik Wolsheimer
e12cd3bb3b
Do not listen for clock ticks, time changes, timezone changes, or time format changes when TextClock is not visible
...
BUG: 31840153
Change-Id: I11adf1036fb25b28aee5caba6daa1ab0d9d1f23a
2016-10-05 12:45:37 -07:00
Keyvan Amiri
86fb2a2b67
Added min support to ProgressBar and SeekBar
...
ProgressBar, AbsSeekBar, and SeekBar now support min attributes for the
lower range of the progress bar. It used to be 0 by default.
Change-Id: I3308eff80f4c7f58a940dec9cc517dcdff4a1d83
2016-10-04 12:56:47 -07:00
Sunny Goyal
5c022639d7
Adding support for async view loading in RemoteViewsAdapter
...
> When loadingView is no available, the FirstView is always
loaded on the background thread
> AppWidgetHostView only inflates on the background thread, if
the view has any costly operations
Test: TBD
Change-Id: I701caee7e4e6ba5972d0cf478cb57f8ec950da54
2016-09-29 16:59:02 -07:00
Kevin Hufnagle
00fb451646
docs: Added min/max values and descriptions for alpha getter/setter in ImageView am: bdb308a059 am: 3b0cfd76c2
...
am: 6d53bf091c
Change-Id: I69480c136cbece005a3789ed27487d6ca6ad81ed
2016-09-27 06:54:27 +00:00
Kevin Hufnagle
52da8b3341
docs: Added min/max values and descriptions for alpha getter/setter in ImageView am: bdb308a059 am: c012a7ed7a
...
am: 971696f632
Change-Id: Ie85b198034089302bd5fee74c0c01dccfe460cc3
2016-09-27 00:25:13 +00:00
Kevin Hufnagle
971696f632
docs: Added min/max values and descriptions for alpha getter/setter in ImageView am: bdb308a059
...
am: c012a7ed7a
Change-Id: Ib2c868e86e516ae2a2f92e4e26a8c0113237557a
2016-09-27 00:08:50 +00:00
Kevin Hufnagle
6d53bf091c
docs: Added min/max values and descriptions for alpha getter/setter in ImageView am: bdb308a059
...
am: 3b0cfd76c2
Change-Id: I55d9df11389e0299812019fa4a7c4ed5b1f06a92
2016-09-27 00:05:40 +00:00
Kevin Hufnagle
c012a7ed7a
docs: Added min/max values and descriptions for alpha getter/setter in ImageView
...
am: bdb308a059
Change-Id: Ida297f581f7177cd92ec4157a1b735c91d2e26a4
2016-09-26 23:37:36 +00:00
Kevin Hufnagle
3b0cfd76c2
docs: Added min/max values and descriptions for alpha getter/setter in ImageView
...
am: bdb308a059
Change-Id: I320c5aa446eed60083c648f596a84a165596cd60
2016-09-26 23:36:36 +00:00
TreeHugger Robot
82fac583a6
Merge "Custom pointer icon for DatePicker and TimePicker"
2016-09-26 17:05:45 +00:00
Mark Lu
d9576c7945
docs: Add param info to TextView.setTextColor am: 193879a8b6 am: 5080a2c5e1
...
am: 7bfb1e7f46
Change-Id: I434c524c07559b848f2ffe1e9d56237a5e5a686b
2016-09-26 08:57:40 +00:00
Mark Lu
73a174fc2d
docs: Mention SwitchCompat in Switch and toggle documentation am: 3404032dfc am: cc9f8e2418
...
am: 15d0605087
Change-Id: I6035ee9f1c532e4298374f1f180e27e374fb146f
2016-09-26 08:44:30 +00:00
Andreas Gampe
50309b4644
resolve merge conflicts of 6e37f8a to master
...
Change-Id: I4fdcce7554977a56fd0f7e4ad4804929112d5599
2016-09-25 15:13:06 -07:00
Kevin Hufnagle
bdb308a059
docs: Added min/max values and descriptions for alpha getter/setter
...
in ImageView
Bug: 12644483
Change-Id: I269d63b50412ecea5269acb99fc09c8110e404b4
2016-09-23 15:54:42 -07:00
Mark Lu
100c1ffe2a
docs: Add param info to TextView.setTextColor am: 193879a8b6 am: 544e899559
...
am: d1bb5fad4e
Change-Id: Ib01e3a74299eb61fe8e0e85d08a0b9963eeacad1
2016-09-23 22:34:56 +00:00
Mark Lu
d1bb5fad4e
docs: Add param info to TextView.setTextColor am: 193879a8b6
...
am: 544e899559
Change-Id: Ic4506ceaf5c34c93b3d937137f9a4756508ff189
2016-09-23 22:25:17 +00:00
Mark Lu
7bfb1e7f46
docs: Add param info to TextView.setTextColor am: 193879a8b6
...
am: 5080a2c5e1
Change-Id: Ifd7511c801047b96edb389ac4455ddb877236aef
2016-09-23 22:23:27 +00:00
Mark Lu
544e899559
docs: Add param info to TextView.setTextColor
...
am: 193879a8b6
Change-Id: I5b157858dd056b2510486ad7546ab74e1287005c
2016-09-23 22:16:37 +00:00
Mark Lu
5080a2c5e1
docs: Add param info to TextView.setTextColor
...
am: 193879a8b6
Change-Id: I8c903627670c946bd421b3e77bbd2a372f21adf0
2016-09-23 22:15:10 +00:00