2161 Commits

Author SHA1 Message Date
Deepanshu Gupta
d7b7e93a47 am 9969f858: LayoutLib: Fix ring rendering.
* commit '9969f858c34ba7e35a977c819f2d1e24de586990':
  LayoutLib: Fix ring rendering.
2015-10-07 21:23:43 +00:00
Deepanshu Gupta
9969f858c3 LayoutLib: Fix ring rendering.
Bug: http://b.android.com/65503
Change-Id: I6ed901703cffee345f3083ea3ddeb52a28f4ac64
2015-10-07 12:46:15 -07:00
Deepanshu Gupta
1430fdc277 am 24ca6320: am 8db8bc63: Merge "Skip drawing empty shapes to keep Apple JRE happy." into mnc-ub-dev
* commit '24ca6320b88afabd854fae176988be02bb6d92aa':
  Skip drawing empty shapes to keep Apple JRE happy.
2015-10-07 17:20:55 +00:00
Deepanshu Gupta
24ca6320b8 am 8db8bc63: Merge "Skip drawing empty shapes to keep Apple JRE happy." into mnc-ub-dev
* commit '8db8bc63624bbd1d803e02571fa865f1f7fa584c':
  Skip drawing empty shapes to keep Apple JRE happy.
2015-10-07 17:17:02 +00:00
Deepanshu Gupta
8db8bc6362 Merge "Skip drawing empty shapes to keep Apple JRE happy." into mnc-ub-dev 2015-10-07 17:08:30 +00:00
Deepanshu Gupta
4064e118e2 Skip drawing empty shapes to keep Apple JRE happy.
Bug: http://b.android.com/178278
Change-Id: I693912678ed79e9c6690560b618a605da5a807c6
2015-10-07 09:28:31 -07:00
Diego Perez
f32a1089c6 am 4a36d982: am 081cebf5: Implement Path.approximate and add PathMeasure support
* commit '4a36d982592c3a3238009be785574dd65ff33cc6':
  Implement Path.approximate and add PathMeasure support
2015-10-07 16:15:55 +00:00
Diego Perez
4a36d98259 am 081cebf5: Implement Path.approximate and add PathMeasure support
* commit '081cebf52b19e848c07fb781b35fa1f96695c311':
  Implement Path.approximate and add PathMeasure support
2015-10-07 16:09:49 +00:00
Diego Perez
081cebf52b Implement Path.approximate and add PathMeasure support
PathMeasure is needed to use the trimPath* properties in drawables.
These properties are used in the vector drawable for indeterminate
progress bars in Material so this is needed to be able to render them
correctly in the preview.
PathMeasure makes use of Path.approximate to calculate which segments to
paint.

Change-Id: Ic513f0a30a6aac0317f7c13cd75e9154c37405c8
2015-10-07 17:04:26 +01:00
Deepanshu Gupta
dfc39aee64 am 034d10bf: am e5d3baf2: LayoutLib: Fix bitmap scaling.
* commit '034d10bf6c6d817d316597620c74dd1e8bd2931d':
  LayoutLib: Fix bitmap scaling.
2015-10-05 23:26:07 +00:00
Deepanshu Gupta
034d10bf6c am e5d3baf2: LayoutLib: Fix bitmap scaling.
* commit 'e5d3baf22f046d0a579128fc258f6b92e700ca02':
  LayoutLib: Fix bitmap scaling.
2015-10-05 23:22:18 +00:00
Deepanshu Gupta
e5d3baf22f LayoutLib: Fix bitmap scaling.
Bug: http://b.android.com/187939
Change-Id: I20bf61746e8af3bb87ba9cfcc9bf58854ac7c5be
2015-10-05 16:08:54 -07:00
Chet Haase
9c45041105 Enable activity rendering during window animations
A change was made back in ICS that prevents the view hierarchy from rendering
during window animations. Specifically, it allows the hierarchy to render once (to draw
the results of its first layout), but further drawing is suppressed at the
ViewRoot/performTraversals level until the window animation is complete.

This change was introduced to avoid jank problems that were resulting from
thrashing the GPU by issuing drawing commands from multiple processes simultaneously,
and limited the number of rendering processes to mainly the system server (and
possibly the System UI), which allowed window animations to be much smoother.

This fix contributed to another source of jank, however, in which applications
which attempt to animate when they first appear will not render any frames of
animations until the window animation is done, resulting is a snapping to the resulting
state once the window animations are complete.

Meanwhile, hardware has gotten faster and GPUs have gotten better, and it is time to
revisit this logic. This change disables the earlier fix and allows view hierarchies
to draw normally, regardless of whether window animations are taking place.

Issue #22232939 Remove flag that prevents drawing during window animations

Change-Id: I4c960180771ff09a7088abd77b437586e835a991
2015-10-05 14:58:17 -07:00
Deepanshu Gupta
0cdfc4d273 am 21af84d3: am 7a9f771f: Merge "Don\'t break error string (easier grepping)" into mnc-ub-dev
* commit '21af84d3e4bf82e9dd8b5087b60630f29668bda3':
  Don't break error string (easier grepping)
2015-09-30 22:27:31 +00:00
Deepanshu Gupta
21af84d3e4 am 7a9f771f: Merge "Don\'t break error string (easier grepping)" into mnc-ub-dev
* commit '7a9f771fe010c697c6a9fb143f0a26778d440c8c':
  Don't break error string (easier grepping)
2015-09-30 22:22:09 +00:00
Deepanshu Gupta
7a9f771fe0 Merge "Don't break error string (easier grepping)" into mnc-ub-dev 2015-09-30 22:16:22 +00:00
Deepanshu Gupta
1bd276f6f7 Don't break error string (easier grepping)
Change-Id: If52097ba90481644707dd0323ec63ca3ddf0986b
2015-09-30 12:49:42 -07:00
Diego Perez
a1ac052ac2 am 6aeedbc7: am b9c4cccf: Merge "Reduce the amount of allocations on Paint_Delegate" into mnc-ub-dev
* commit '6aeedbc7613d3be4a785ed43e2fb35c62fb0a006':
  Reduce the amount of allocations on Paint_Delegate
2015-09-30 09:41:38 +00:00
Diego Perez
6aeedbc761 am b9c4cccf: Merge "Reduce the amount of allocations on Paint_Delegate" into mnc-ub-dev
* commit 'b9c4cccf672d725e75d393c492c917ba726c365c':
  Reduce the amount of allocations on Paint_Delegate
2015-09-30 09:34:45 +00:00
Diego Perez
b9c4cccf67 Merge "Reduce the amount of allocations on Paint_Delegate" into mnc-ub-dev 2015-09-30 09:29:40 +00:00
Diego Perez
6dac0d4b7c Reduce the amount of allocations on Paint_Delegate
When the text properties of the Paint object are updated, or when .set()
is called, updateFontObject will be called. This method is currently at the
top of the methods for number of allocations.
This CL reduces the number of calls to updateFontObject by a 90%,
reducing the number of Font allocations.

Change-Id: I3e232f9e6e230da8ecdd19921faadf2d3f4ff763
2015-09-30 09:10:37 +01:00
Deepanshu Gupta
cd4b26c8a9 am 3dde4493: am 4e27221d: Merge "Support databinding in listitem layouts." into mnc-ub-dev
* commit '3dde44935df567f840de2600a3e408f9ba7c7b1f':
  Support databinding in listitem layouts.
2015-09-30 00:56:57 +00:00
Deepanshu Gupta
3dde44935d am 4e27221d: Merge "Support databinding in listitem layouts." into mnc-ub-dev
* commit '4e27221d49151ba91af59029659e666fa756b645':
  Support databinding in listitem layouts.
2015-09-30 00:51:02 +00:00
Deepanshu Gupta
4e27221d49 Merge "Support databinding in listitem layouts." into mnc-ub-dev 2015-09-30 00:45:52 +00:00
Deepanshu Gupta
e91096c03d Support databinding in listitem layouts.
Add a wrapper around the PullParser to support stripping out databinding
parts.

Bug: http://b.android.com/187428
Change-Id: I88080d8f4108cb5ae27a137ad20c5dd7d516f3ea
2015-09-29 17:07:53 -07:00
Nicolas Prévot
8392b394f2 Merge "Add more methods that take a userId to PackageManager." 2015-09-29 10:00:56 +00:00
Filip Gruszczynski
f77a6dbac6 Merge "Refactoring: Delete AppWindowToken.willBeHidden field." 2015-09-27 21:50:49 +00:00
Filip Gruszczynski
8aafd3a81b Refactoring: Delete AppWindowToken.willBeHidden field.
The only time AppWindowToken.willBeHidden is used is for determining
if the app should contribute to calculating orientation. In the same
check AppWindowToken.hiddenRequested will be or-ed with willBeHiden,
so it's enough that hiddenRequested to be set.

The only place where willBeHidden is set, is right before
WMS.setAppVisibility is called, which will set hiddenRequested.
Because of this willBeHidden is unnecessary.

Change-Id: Iea35f39f72e7f0dcd76205ef580f3a74cac72d08
2015-09-26 15:40:58 -07:00
Nicolas Prevot
9a80e53b27 Add more methods that take a userId to PackageManager.
Add methods installPackageAsUser and installExistingPackageAsUser
and deletePackageAsUser and getPackageInfoAsUser.

BUG:23516394
Change-Id: I15e30d2ec45ab18c7f8c0ac02cfc617c50fedb44
2015-09-24 10:57:51 +01:00
Deepanshu Gupta
ef6439c857 am e5346dca: am 51a05d74: Merge "Fix TypedArray.getTextArray()" into mnc-ub-dev
* commit 'e5346dca479ecf87d5a3e412307e5f7ebe28ccb9':
  Fix TypedArray.getTextArray()
2015-09-23 23:26:52 +00:00
Deepanshu Gupta
e5346dca47 am 51a05d74: Merge "Fix TypedArray.getTextArray()" into mnc-ub-dev
* commit '51a05d74a81aeb334ef095fc6f1aa98e5163763f':
  Fix TypedArray.getTextArray()
2015-09-23 23:17:22 +00:00
Deepanshu Gupta
6649ca3711 Fix TypedArray.getTextArray()
Change-Id: Ic55b52840892fbf2a4258ba97ed31ca0283da8ed
2015-09-23 16:03:02 -07:00
Diego Perez
184427444b am 36152328: am 0e766de7: Avoid calling scrollBy(0,0) on render
* commit '361523281c88a7e453e0eef961ed7f16a55785a5':
  Avoid calling scrollBy(0,0) on render
2015-09-22 20:05:30 +00:00
Diego Perez
361523281c am 0e766de7: Avoid calling scrollBy(0,0) on render
* commit '0e766de7c52d7e375e04676c93a872cb2d6eea63':
  Avoid calling scrollBy(0,0) on render
2015-09-22 16:56:35 +00:00
Diego Perez
0e766de7c5 Avoid calling scrollBy(0,0) on render
Usually scrollBy(0, 0) won't have any effect but when called on the
NumberPicker but, in some cases, it seems to cause an endless loop.
When called from layoutlib, this will hold the read lock causing all
operations trying to acquire the write lock to block forever.

Bug: http://b.android.com/182506
Change-Id: Ib25427d3f32d804d1c481d979795eee71fbdbc6d
2015-09-22 16:44:37 +00:00
Wale Ogunwale
61b009e059 Don't crop home activity windows to stack bounds.
We crop windows to their stack bounds when the docked stack
exists. We don't want to do this for the home activity since
the docked stack isn't visible when the home activity is visible.

Change-Id: Ibb3157dabbb6c979358ddc2098a01c6ddf6540e8
2015-09-16 22:23:47 -07:00
Chong Zhang
173b6c2d1a Fix build break with startMovingTask API
Change-Id: I4dc44ca04c75a9dfed079338e4906d317f50a1e3
2015-09-12 15:22:24 -07:00
Chong Zhang
8e89b31a62 Move window moving and resizing handling to WindowManager
- add a startMoving API to initiate a window move from app, once
  the move starts WindowManager will take over the event handling.

- detect touch events along window's outside border and start
  a resize if necessary

Change-Id: Ic7e8baba34e0aa27a43173e044ffb46e93e219e0
2015-09-11 17:15:19 -07:00
Deepanshu Gupta
44c75820b4 am b3382661: am ee1eed7e: am 7209945f: am 0e150a8b: am 0c5fd7e3: am eb541727: am dd21212f: am eb26f5ce: LayoutLib: Fix typedArray caching.
* commit 'b3382661eb3af61815812bd762ac1fcc2f5d9ef5':
  LayoutLib: Fix typedArray caching.
2015-09-03 05:03:04 +00:00
Deepanshu Gupta
b3382661eb am ee1eed7e: am 7209945f: am 0e150a8b: am 0c5fd7e3: am eb541727: am dd21212f: am eb26f5ce: LayoutLib: Fix typedArray caching.
* commit 'ee1eed7e711228008dc91a7da800be6527539e87':
  LayoutLib: Fix typedArray caching.
2015-09-03 04:24:04 +00:00
Deepanshu Gupta
ee1eed7e71 am 7209945f: am 0e150a8b: am 0c5fd7e3: am eb541727: am dd21212f: am eb26f5ce: LayoutLib: Fix typedArray caching.
* commit '7209945fd38d22078b2fd208abe0aa976c311dde':
  LayoutLib: Fix typedArray caching.
2015-09-02 01:21:26 +00:00
Deepanshu Gupta
0c5fd7e379 am eb541727: am dd21212f: am eb26f5ce: LayoutLib: Fix typedArray caching.
* commit 'eb54172719db60740a0b8dde6380db54d4006159':
  LayoutLib: Fix typedArray caching.
2015-09-02 00:11:24 +00:00
Deepanshu Gupta
eb54172719 am dd21212f: am eb26f5ce: LayoutLib: Fix typedArray caching.
* commit 'dd21212fa1a9c907d5d2f80f3de2413f6c14da7a':
  LayoutLib: Fix typedArray caching.
2015-09-01 23:59:10 +00:00
Deepanshu Gupta
eb26f5cecd LayoutLib: Fix typedArray caching.
The typedArray depends on the current context (more specifically, the
themes set on the context). The fact was ignored in the caching of the
typedArray and caused the android:theme attribute to be ignored in
certain cases.

Change-Id: If095580919474f12c0eb4e1f8fb7f076cf3c4ed0
2015-09-01 23:17:56 +00:00
Filip Gruszczynski
1bca297bd3 Fix build.
Change-Id: Ibda30d85280cc72641e0baf2c6a69171a03fc7fb
2015-09-01 09:29:11 -07:00
Deepanshu Gupta
45b50acf61 am 4845fa72: am b8ae1879: Merge "Fix android:theme parsing for custom views." into mnc-ub-dev
* commit '4845fa72c236f7c70572a9ae24a8e183edfd485f':
  Fix android:theme parsing for custom views.
2015-08-29 01:28:06 +00:00
Deepanshu Gupta
4845fa72c2 am b8ae1879: Merge "Fix android:theme parsing for custom views." into mnc-ub-dev
* commit 'b8ae187932ff783711ea8715d7f5891d9e4ebb32':
  Fix android:theme parsing for custom views.
2015-08-29 00:02:26 +00:00
Deepanshu Gupta
753517700d Fix android:theme parsing for custom views.
Change-Id: Iba83ba1d2e4a96461cc298a759e32e4e51e311a0
2015-08-28 14:49:04 -07:00
Deepanshu Gupta
c816122501 Merge "Revert "LayoutLib: Switch SimpleDateFormat to icu."" 2015-08-28 16:00:35 +00:00
Deepanshu Gupta
0fdf3fc659 am 3a6567a8: am 4eb298a9: LayoutLib: Fix true transparency in status bar.
* commit '3a6567a86e33071871ed950006ae286750727b0e':
  LayoutLib: Fix true transparency in status bar.
2015-08-26 21:12:15 +00:00