Deepanshu Gupta
71909a62c5
Fix invalid conditional check in ResourceTypes.
...
The check was always false. This wasn't really a problem since the regex
check later took care of it. But it's just wrong to leave such mistakes
in the code once they are noticed.
Change-Id: Id3dd602318d8c64d466bd0f102aa3af0a1c80189
2014-08-26 17:23:19 -07:00
Jeff Sharkey
daa88714a1
am 9f3ddd55: am e3218d35: Merge "Installing splits into ASECs!" into lmp-dev
...
* commit '9f3ddd551393b4fbc421156b8f700cae7dbd6a3b':
Installing splits into ASECs!
2014-08-24 19:04:07 +00:00
Jeff Sharkey
941a8ba1a6
Installing splits into ASECs!
...
Sessions can now zero-copy data directly into pre-allocated ASEC
containers. Then at commit time, we compute the total size of the
final app, including any inherited APKs and unpacked libraries, and
resize the container in one step.
This supports both brand new ASEC installs and inheriting from
existing ASEC installs. To keep things simple, it currently requires
copying any inherited ASEC contents, but this could be optimized in
the future.
Expose new vold resize command, and allow read-write mounting of ASEC
containers. Move native library extraction into the installer flow,
since it needs to happen before ASEC is sealed. Move multiArch flag
into NativeLibraryHelper, instead of making everyone pass it
around. Migrate size calculation to shared location.
Separate "other" package name in public API, provide a path to a
storage device when relevant, and add more docs.
Bug: 16514385
Change-Id: I06c6ce588d312ee7e64cce02733895d640b88456
2014-08-22 16:25:04 -07:00
ztenghui
e509e1d214
am 059c9a56: am 2758bafd: Merge "Improve the spot shadow computation." into lmp-dev
...
* commit '059c9a56aac1e1cbe0366b1ec6edc729afbd5855':
Improve the spot shadow computation.
2014-08-22 21:24:07 +00:00
ztenghui
190ead730f
Merge "Improve the spot shadow computation." into lmp-dev
2014-08-22 21:04:49 +00:00
ztenghui
c50a03d78a
Improve the spot shadow computation.
...
Get rid of compuation of the intersection for penumbra and convex hull for umbra.
Use simple circle / normal to compute the penumbra and simple intersection for umbra.
The new way could be 2x to 4x faster from rectangle to round shape.
And this part is roughly half of the shadow computation, or 2/3 of spot shadow
computation.
This improve the spot shadow spikeness too.
b/16712006
b/14976551
Change-Id: I02911784868731369efa73f76fc915bc08248600
2014-08-22 13:51:16 -07:00
Chris Craik
3d70e3ffa5
am 375ef06d: am c5e5f0a4: Merge "Enable scissor for rounded outline clips" into lmp-dev
...
* commit '375ef06d2b91f452ec26666b85c6fd155d08b408':
Enable scissor for rounded outline clips
2014-08-21 21:02:29 +00:00
Chris Craik
759f780af0
Merge "Enable scissor for rounded outline clips" into lmp-dev
2014-08-21 20:48:53 +00:00
Chris Craik
79d26c72aa
Enable scissor for rounded outline clips
...
bug:17164074
Change-Id: I83ca428f4d7651c6774ab81ac390477fb90c5d38
2014-08-21 13:47:08 -07:00
John Reck
35352ebcaa
am be2c5e02: am 44de04b8: Merge "Don\'t run animators in buildLayer" into lmp-dev
...
* commit 'be2c5e02f48b279175c4d3277b67f57918173ccf':
Don't run animators in buildLayer
2014-08-21 20:40:59 +00:00
John Reck
7d37344915
Merge "Don't run animators in buildLayer" into lmp-dev
2014-08-21 20:26:18 +00:00
Chris Craik
a6dd5b1216
am b26e1a9d: am e5b5ad25: Merge "Fix layer shadow transform crash" into lmp-dev
...
* commit 'b26e1a9dfac88fe7ba2588adb9ff0797a1697b3a':
Fix layer shadow transform crash
2014-08-21 19:22:44 +00:00
Chris Craik
88180d269e
Merge "Fix layer shadow transform crash" into lmp-dev
2014-08-21 19:03:25 +00:00
John Reck
9eb9f6f8cb
Don't run animators in buildLayer
...
Bug: 17172689
Change-Id: Ib47d589c002543327fa336718440f9f8c95524e0
2014-08-21 11:23:05 -07:00
Adam Lesinski
ad2d935763
am c931d0d8: am fcb42104: Merge "AAPT: Fix regression generating dynamic ref table for shared libraries" into lmp-dev
...
* commit 'c931d0d8540f7648d5bb247fa1b03e492363debb':
AAPT: Fix regression generating dynamic ref table for shared libraries
2014-08-21 17:48:33 +00:00
Chris Craik
c71bfcaa18
Fix layer shadow transform crash
...
bug:17180252
Change-Id: Ia648b8c98a217a3a4973917bf255d1397802cbbe
2014-08-21 10:18:59 -07:00
John Reck
e4ed4f74d1
am 17ed6e74: am 876f1a1a: Merge "Implement full View.buildLayer" into lmp-dev
...
* commit '17ed6e74ce560916d4a06198d4f6446562d9db34':
Implement full View.buildLayer
2014-08-21 03:00:11 +00:00
Adam Lesinski
6022debdbc
AAPT: Fix regression generating dynamic ref table for shared libraries
...
AAPT stopped generating dynamic reference tables for shared libraries.
Change-Id: Ib0025811bdca1a4756eb21080dd6b6bb3fc1ca3d
2014-08-20 17:55:33 -07:00
Chris Craik
4760ad250d
am 5895f085: am 5bdd7e48: Merge "Early reject drawText calls that will not draw" into lmp-dev
...
* commit '5895f085af7ee10b013df5b4e9b8fe41723d546c':
Early reject drawText calls that will not draw
2014-08-19 23:43:55 +00:00
Chris Craik
2cfd9c90cf
am 21b3486a: am fb52669c: Merge "Respect round rect clip when determining op opaqueness" into lmp-dev
...
* commit '21b3486a5062cb398908a2e4ae2172c27d3efadf':
Respect round rect clip when determining op opaqueness
2014-08-19 17:10:57 +00:00
Chris Craik
2262abbd16
Respect round rect clip when determining op opaqueness
...
bug:17115570
Change-Id: I30184b4678d333b5d222af8b61daa07a5e865cab
2014-08-18 19:55:36 -07:00
Chris Craik
83f75c88a0
Merge "Early reject drawText calls that will not draw" into lmp-dev
2014-08-19 02:43:23 +00:00
Chris Craik
947eabf42d
Early reject drawText calls that will not draw
...
bug:17114102
Prevents high contrast text from drawing invisible text.
Also fixes stroked text bounds calculation.
Change-Id: Iaeff51ead8b7b8ef2a1a0ca8b89598564e0d443f
2014-08-19 14:14:38 -07:00
Piotr Jastrzebski
fc1b26fc68
am 626e1c65: am 8a28e16c: Merge "Update ziparchive usage to the new API."
...
* commit '626e1c65ef408fd9eb7d3bbbbb90137e90c82a4e':
Update ziparchive usage to the new API.
2014-08-18 09:12:39 +00:00
John Reck
3e8249568c
Implement full View.buildLayer
...
Bug: 17152292
Change-Id: Ia3cc2aadf72fe14517f50762fc634794df51ad5a
2014-08-20 15:54:07 -07:00
Chris Craik
0092f069d8
am 66781f6c: am b84332d9: Merge "Fix glyph positions underflow issue" into lmp-dev
...
* commit '66781f6c31b11892b207e953e4c496c3fa022d6c':
Fix glyph positions underflow issue
2014-08-16 00:30:47 +00:00
Adam Lesinski
ab9b1f5b2a
am 5bcfb6b9: am 2fdf2db8: Merge "Fix assumption about DynamicRefTable in aapt" into lmp-dev
...
* commit '5bcfb6b98261c94a6ff33438e6b29ca71bb3c0eb':
Fix assumption about DynamicRefTable in aapt
2014-08-15 22:07:59 +00:00
Adam Lesinski
2cb761e3dd
Fix assumption about DynamicRefTable in aapt
...
Packages without any resources should not expect to have
a DynamicRefTable.
Bug:16895517
Bug:17056720
Change-Id: Id006f6bdbf08f30505f6ba5982bc9d1b09db0f0a
2014-08-15 14:01:43 -07:00
Chris Craik
40f67da884
Merge "Fix glyph positions underflow issue" into lmp-dev
2014-08-15 19:21:54 +00:00
Chris Craik
39c5e7cbdf
Fix glyph positions underflow issue
...
bug:16450675
Avoid using unsigned ints in math with negative numbers
Change-Id: Icdfb72451f03380dbf78b3703793869b2cd4e751
2014-08-15 15:46:37 -07:00
Adam Lesinski
f6530bca9b
am e9e52a2a: am 41cdc4c7: Merge "Revert "Fix aapt dump for APKs with no resources"" into lmp-dev
...
* commit 'e9e52a2ae2e80286447767b9a83b04d88c41c112':
Revert "Fix aapt dump for APKs with no resources"
2014-08-15 17:32:04 +00:00
Piotr Jastrzebski
e2134a4b5d
Update ziparchive usage to the new API.
...
Bug: 16162465
Change-Id: If3064e2be3e7e85366b07434294a7879b0e5f9bc
2014-08-15 14:41:08 +01:00
Adam Lesinski
ac44bd1c5b
am 4e790e9e: am b4c3c976: Fix crash in ResStringPool
...
* commit '4e790e9e4b820290284a78c4258d4d60e8d37320':
Fix crash in ResStringPool
2014-08-15 11:51:01 +00:00
Adam Lesinski
fd9205603a
am f3e588ba: am 83b8dc7e: Merge "Fix aapt dump for APKs with no resources" into lmp-dev
...
* commit 'f3e588bae0b6bdfef1c09f739b68b3e07548f58f':
Fix aapt dump for APKs with no resources
2014-08-15 11:49:20 +00:00
Adam Lesinski
20ad556d75
am 3c9b2a54: am b6355bcb: Merge "Print xxxhdpi from ResTable_config::toString" into lmp-dev
...
* commit '3c9b2a540e123a17c91883dd48fb703c6a31982d':
Print xxxhdpi from ResTable_config::toString
2014-08-15 11:49:15 +00:00
Chris Craik
619f45c1d8
am 910ba285: am 6df9d135: Define shadow casting behavior within layers
...
* commit '910ba285503970986941744155a42a570aa1d781':
Define shadow casting behavior within layers
2014-08-15 11:48:56 +00:00
John Reck
0cbdda5965
am 1550e253: am 0566908c: Fix hwuitask & RT priorities
...
* commit '1550e25302419fc06028e914f707ef73f6f1b616':
Fix hwuitask & RT priorities
2014-08-15 11:48:39 +00:00
Adam Lesinski
4b2d0f20db
Fix crash in ResStringPool
...
When a String isn't found in the StringPool,
we should not try to construct a String8 object
from the NULL string.
Bug:15163956
Change-Id: I51e701918b10a72c18a860b8a36dce2afd9c0b82
2014-08-15 06:39:01 +00:00
Adam Lesinski
89147ed84b
Merge "Revert "Fix aapt dump for APKs with no resources"" into lmp-dev
2014-08-15 04:37:53 +00:00
Adam Lesinski
18560886cb
Revert "Fix aapt dump for APKs with no resources"
...
This reverts commit 0e475302cd196f45a01a525c49089018b238d4ba.
I'll re-upload this CL with the correct fix in LoadedApk.
Change-Id: I17c6381f8e5907dab9f996f89c5d435b9c08a13a
2014-08-15 17:18:21 +00:00
Chris Craik
69e5adffb1
Define shadow casting behavior within layers
...
bug:15860114
Savelayers and HW layers both now support shadow casting.
For save layers, the light source should always be correct, for HW
layers, the light source position is set when the layer is created,
and updated when it is resized.
Change-Id: Ie85567dd43c2bb0a0b08fd0bd4db41efa793ac2b
2014-08-15 00:59:44 +00:00
John Reck
21be43e142
Fix hwuitask & RT priorities
...
Bug: 15993695
Change-Id: Ib6f07237cb834e8d10f3074f8fb206d27f91859a
2014-08-15 00:36:11 +00:00
Adam Lesinski
e23a91e2bd
Fix aapt dump for APKs with no resources
...
All APKs are expected to have at least one resource table (even if
it is empty). We were missing the creation of an empty DynamicRefTable.
Bug:16895517
Change-Id: I6a6e887f91b3b4bbcc52b3fd2741ef3d05fab1fd
2014-08-14 21:20:41 +00:00
Adam Lesinski
d7df9d7b38
Merge "Fix aapt dump for APKs with no resources" into lmp-dev
2014-08-14 16:46:52 +00:00
ztenghui
6e974d745f
am 1d37533d: am e629d02b: Bring back the shadow strength tweak
...
* commit '1d37533dbdb961334b5dd097f6597815e45dbd05':
Bring back the shadow strength tweak
2014-08-13 18:41:50 +00:00
ztenghui
14a4e35208
Bring back the shadow strength tweak
...
bug:16712006
Change-Id: Ifc0ecca139d58140b45d7d227536a53069e1d480
2014-08-13 18:22:42 +00:00
Chris Craik
dccfe241da
am fe67a0cf: am a1bd00d4: Merge "Switch to cos interpolation of shadow alpha" into lmp-dev
...
* commit 'fe67a0cf3ec190ecc4325a34b05f013bb2b37453':
Switch to cos interpolation of shadow alpha
2014-08-13 00:16:23 +00:00
Adam Lesinski
ea39c1be30
Merge "Print xxxhdpi from ResTable_config::toString" into lmp-dev
2014-08-12 23:14:35 +00:00
Adam Lesinski
8d5667d2a2
Print xxxhdpi from ResTable_config::toString
...
Change-Id: I2e1a07649cb498c12023b198d8e50534f9d91840
2014-08-14 21:35:37 +00:00
Chris Craik
91a8c7c629
Switch to cos interpolation of shadow alpha
...
bug:16852257
Updates default shadow opacities to compensate.
Also, update variable/constant naming related to vertex alpha.
Change-Id: I9055b4ac3c9ac305ca9d515f21b52d6aa6dc9c5c
2014-08-12 16:00:09 -07:00