101019 Commits

Author SHA1 Message Date
Tim Murray
abd5db9d37 Add support and better exceptions for Bitmaps with a null config.
Bug: 8263427
Change-Id: I4181402e4739c6a40591f1e1416fca98643ecc57
2013-02-28 14:33:01 -08:00
Matthew Xie
23b046c4af Merge "Initial version of BLE support for Bluedroid" into jb-mr2-dev 2013-02-28 18:43:32 +00:00
Derek Sollenberger
5b6591c1d0 fix issue when replacement bitmap is larger than original.
getTotalClip() returns the canvas bounds even if no explicit clip
was set. This CL fixes that issue by only transfering clips that
were explicitly set to the new canvas.

bug: 8255582
Change-Id: I0144d430e7718151ad93d988fcf20b412f74b256
2013-02-28 11:18:50 -05:00
Dirk Dougherty
c732976e6b am 08a551b4: am f132ac4f: am ac6a76d2: am f19dd2b5: am 1c7b442a: Merge "Doc change: update \'multiple apks\' criteria in filters doc." into jb-mr1-dev
* commit '08a551b4ad02946c62efc5161d16d35bdbc48071':
  Doc change: update 'multiple apks' criteria in filters doc.
2013-02-28 03:03:07 +00:00
Dirk Dougherty
08a551b4ad am f132ac4f: am ac6a76d2: am f19dd2b5: am 1c7b442a: Merge "Doc change: update \'multiple apks\' criteria in filters doc." into jb-mr1-dev
* commit 'f132ac4fb4b0ca6cf3b8aaeea469a46a286435c7':
  Doc change: update 'multiple apks' criteria in filters doc.
2013-02-27 19:00:16 -08:00
Dirk Dougherty
f132ac4fb4 am ac6a76d2: am f19dd2b5: am 1c7b442a: Merge "Doc change: update \'multiple apks\' criteria in filters doc." into jb-mr1-dev
* commit 'ac6a76d29f884e4229947a1d8d66315f61d32744':
  Doc change: update 'multiple apks' criteria in filters doc.
2013-02-27 18:57:34 -08:00
Dirk Dougherty
ac6a76d29f am f19dd2b5: am 1c7b442a: Merge "Doc change: update \'multiple apks\' criteria in filters doc." into jb-mr1-dev
* commit 'f19dd2b50ee64be29e034f2d5ca29ab5117ba27e':
  Doc change: update 'multiple apks' criteria in filters doc.
2013-02-27 18:56:03 -08:00
Dirk Dougherty
f19dd2b50e am 1c7b442a: Merge "Doc change: update \'multiple apks\' criteria in filters doc." into jb-mr1-dev
* commit '1c7b442aae47d34176f832a1c45393b9f7e42631':
  Doc change: update 'multiple apks' criteria in filters doc.
2013-02-27 18:54:18 -08:00
Dirk Dougherty
1c7b442aae Merge "Doc change: update 'multiple apks' criteria in filters doc." into jb-mr1-dev 2013-02-28 02:51:16 +00:00
Dirk Dougherty
c511675bcb Doc change: update 'multiple apks' criteria in filters doc.
Change-Id: I8504f5e019758946d567d4391c1a875dead236c5
Bug: 8277558
2013-02-28 02:50:11 +00:00
Svetoslav
2a45b9fe99 Merge "Fake accessibility service used by UiAutomation not destroyed." into jb-mr2-dev 2013-02-28 02:33:05 +00:00
Svetoslav
3c55e5c659 Fake accessibility service used by UiAutomation not destroyed.
UiAutomation registers a fake accessibility service to introspect
the screen. Upon the death of the shell process that started an
instrumentation in which a UiAutomation resides the connection
between the UiAutomation and the system is kept alive allowing
the instrumentation to introspect the screen even after the death
of the shell process.

bug:8285905

Change-Id: I1a16d78abbea032116c4baed175cfc0d5dedbf0c
2013-02-27 18:32:17 -08:00
Ganesh Ganapathi Batta
9908112fd0 Initial version of BLE support for Bluedroid
The API classes are hidden for now. Will unhide after API console
approval.
Change-Id: I8283dd562fd6189fdd15c866ef2efb8bbdbc4109
2013-02-27 18:08:14 -08:00
Scott Main
29466f85c0 am 38471f9e: am 49c03cc8: am 65b7d5a4: am dc9e84bd: am d346b311: Merge "docs: add MTK usb driver info" into jb-mr1-dev
* commit '38471f9e857b294a9b1be98237d42de848ed9e93':
  docs: add MTK usb driver info
2013-02-28 01:40:07 +00:00
Scott Main
38471f9e85 am 49c03cc8: am 65b7d5a4: am dc9e84bd: am d346b311: Merge "docs: add MTK usb driver info" into jb-mr1-dev
* commit '49c03cc8183f8a128f68ecf777cbe7ce9ac7d021':
  docs: add MTK usb driver info
2013-02-27 17:35:30 -08:00
Scott Main
49c03cc818 am 65b7d5a4: am dc9e84bd: am d346b311: Merge "docs: add MTK usb driver info" into jb-mr1-dev
* commit '65b7d5a4b39eee0ad184f5b81442786ff0fd06e9':
  docs: add MTK usb driver info
2013-02-27 17:30:21 -08:00
Scott Main
65b7d5a4b3 am dc9e84bd: am d346b311: Merge "docs: add MTK usb driver info" into jb-mr1-dev
* commit 'dc9e84bdab03af490e457093d33a329de2a49638':
  docs: add MTK usb driver info
2013-02-27 17:28:12 -08:00
Scott Main
dc9e84bdab am d346b311: Merge "docs: add MTK usb driver info" into jb-mr1-dev
* commit 'd346b311cabbcf4d7d4654984efddd47cdf8a3fc':
  docs: add MTK usb driver info
2013-02-27 17:25:45 -08:00
Scott Main
d346b311ca Merge "docs: add MTK usb driver info" into jb-mr1-dev 2013-02-28 01:22:58 +00:00
Romain Guy
19886f8b51 Merge "Properly scale text" into jb-mr2-dev 2013-02-28 01:05:34 +00:00
Marco Nelissen
66dfcd465c When scanning a single file, take .nomedia into account
Make scanSingleFile behave the same way as scanMtpFile, by taking into
account whether there's a .nomedia file guarding the file being scanned.
Without this, downloaded (or otherwise explicitly scanned) images/video/music
will appear in Gallery and Music even if a .nomedia file is hiding them.

Change-Id: Ib9ad4bda1b9a942f79a37ccd8e6a54d57710f528
2013-02-27 16:53:47 -08:00
Romain Guy
c74f45a334 Properly scale text
This change does not apply to drawPosText() and drawTextOnPath() yet.

Prior to this change, glyphs were always rasterized based on the
font size specified in the paint. All transforms were then applied
on the resulting texture. This creates rather ugly results when
text is scaled and/or rotated.

With this change, the font renderer will apply the current transform
matrix to the glyph before they are rasterized. This generates much
better looking results.

Change-Id: I0141b6ff18db35e1213e7a3ab9db1ecaf03d7a9c
2013-02-27 15:49:57 -08:00
Chris Craik
d041e476f3 Merge "Correct sub-hairline tessellation threshold" into jb-mr2-dev 2013-02-27 23:49:37 +00:00
Chris Craik
d80806b305 Merge "Fix T-junctions in layers' generated meshes" into jb-mr2-dev 2013-02-27 23:47:55 +00:00
Chris Craik
19a390bff3 Correct sub-hairline tessellation threshold
Change-Id: Id868d41a36db5b4daa762d84b6329f9c31916bce
2013-02-27 15:43:26 -08:00
Dirk Dougherty
122f4051b5 am 99fd8c21: am 74d4638e: am a44583c1: am 8e4e5549: am d9019dd2: Doc change: Mention ratings in app stats intro, mention proguard in pub checklist, align terminology wrt native platform filtering.
* commit '99fd8c21caae6f01c9a14541505832d66c1dff89':
  Doc change: Mention ratings in app stats intro, mention proguard in pub checklist, align terminology wrt native platform filtering.
2013-02-27 22:51:12 +00:00
Dirk Dougherty
99fd8c21ca am 74d4638e: am a44583c1: am 8e4e5549: am d9019dd2: Doc change: Mention ratings in app stats intro, mention proguard in pub checklist, align terminology wrt native platform filtering.
* commit '74d4638e2821e21885528d79d5b39c0ac08d3740':
  Doc change: Mention ratings in app stats intro, mention proguard in pub checklist, align terminology wrt native platform filtering.
2013-02-27 14:49:52 -08:00
Dirk Dougherty
74d4638e28 am a44583c1: am 8e4e5549: am d9019dd2: Doc change: Mention ratings in app stats intro, mention proguard in pub checklist, align terminology wrt native platform filtering.
* commit 'a44583c12e81ff676e8e7f57791da6021ddf8ef5':
  Doc change: Mention ratings in app stats intro, mention proguard in pub checklist, align terminology wrt native platform filtering.
2013-02-27 14:47:12 -08:00
Dirk Dougherty
a44583c12e am 8e4e5549: am d9019dd2: Doc change: Mention ratings in app stats intro, mention proguard in pub checklist, align terminology wrt native platform filtering.
* commit '8e4e5549371dc4c373c67ea84cb21ce9cdf7502e':
  Doc change: Mention ratings in app stats intro, mention proguard in pub checklist, align terminology wrt native platform filtering.
2013-02-27 14:45:04 -08:00
Dirk Dougherty
8e4e554937 am d9019dd2: Doc change: Mention ratings in app stats intro, mention proguard in pub checklist, align terminology wrt native platform filtering.
* commit 'd9019dd275f9a0a8be4ac8ae383e2878f78b5445':
  Doc change: Mention ratings in app stats intro, mention proguard in pub checklist, align terminology wrt native platform filtering.
2013-02-27 14:43:01 -08:00
Dirk Dougherty
d9019dd275 Doc change: Mention ratings in app stats intro, mention proguard in pub checklist, align terminology wrt native platform filtering.
Change-Id: I9bba5b8ffb7da40083904f6f471e99fd4c98d63d
Bug: 8033688
Bug: 8277558
2013-02-27 14:34:24 -08:00
Romain Guy
a6456d0d7e Merge "Draw text drop shadows even when the text color is transparent" into jb-mr2-dev 2013-02-27 22:16:22 +00:00
Romain Guy
13e3891b20 Merge "Don't increment the paint's generation ID when drawing bitmaps" into jb-mr2-dev 2013-02-27 22:08:32 +00:00
Chris Craik
6c5b9be745 Fix T-junctions in layers' generated meshes
bug:4128442

Currently we fix T-junctions for hardware layers, and for
Canvas.saveLayer if the transform isn't rectAsRect. Ideally, hardware
layers should lazily re-generate T-junction free geometry if the
transform becomes non-rectAsRect

Depends on frameworks/native change:
https://googleplex-android-review.googlesource.com/#/c/277668/
which adds Region::createTJunctionFreeRegion()

Change-Id: Ice75b4a1a4459ff835059ea81d70f7d1563fd96d
2013-02-27 14:03:19 -08:00
Romain Guy
768bffc9b8 Draw text drop shadows even when the text color is transparent
This matches Skia's behavior.

Change-Id: Ibf0a52611f5801cfa68169f66ab0ec06f256600f
2013-02-27 13:52:26 -08:00
Dianne Hackborn
c7288579c7 am 7f3a53a4: am 7b69e401: Merge "Fix starting window memory leak"
* commit '7f3a53a447d40db36f8f0c2b4c8c7305c5dd4429':
  Fix starting window memory leak
2013-02-27 20:09:27 +00:00
Ian Rogers
7e112d51c4 am 14d0ab55: am de3c20bc: Merge "Track stack memory in MemoryInfo."
* commit '14d0ab55e983d314128bb7b3293023f4a237d991':
  Track stack memory in MemoryInfo.
2013-02-27 20:09:25 +00:00
Dianne Hackborn
7f3a53a447 am 7b69e401: Merge "Fix starting window memory leak"
* commit '7b69e401769fb7a864990f3d732c6a7e8d7ec2f8':
  Fix starting window memory leak
2013-02-27 12:07:01 -08:00
Ian Rogers
14d0ab55e9 am de3c20bc: Merge "Track stack memory in MemoryInfo."
* commit 'de3c20bcb546e50980a642b72c1e8353e5bd2cdc':
  Track stack memory in MemoryInfo.
2013-02-27 12:06:58 -08:00
Dianne Hackborn
7b69e40176 Merge "Fix starting window memory leak" 2013-02-27 19:57:08 +00:00
Romain Guy
758724fd09 Don't increment the paint's generation ID when drawing bitmaps
When the renderer draws a bitmap as part of a display list with an
alpha < 1.0f, the paint is temporarily modified to alter the opacity
of the bitmap. This has the side effect of increasing the paint's
generation ID counter which can break paint caching.

Change-Id: I5055d059ad1639829fa50af3d946e296c4dab877
2013-02-27 11:53:12 -08:00
Ian Rogers
de3c20bcb5 Merge "Track stack memory in MemoryInfo." 2013-02-27 19:47:15 +00:00
Victoria Lease
7ff28ad2d1 Merge "round subpixels up to next integer in measureText DO NOT MERGE" into jb-mr2-dev 2013-02-27 19:39:14 +00:00
Victoria Lease
8e04840f38 round subpixels up to next integer in measureText DO NOT MERGE
A common source of layout bugs we're seeing these days involves the
output of measureText() being fed into StaticLayout's constructor.
measureText() returns subpixel-accurate values, but StaticLayout only
takes integral bounds, resulting in the subpixel portion of the
bounds being truncated. This leaves StaticLayout with insufficient
space to layout the text that was just measured, causing all manner
of unexpected line breaks.

This could be causing issues elsewhere, as well. Until our text
pipeline is fully subpixel-perfect, it's best that measureText
guarantee that the value it returns will be sufficient to contain
the text, even if cast to int.

Cherry-pick of Ib84947f0d0a1229287f5b19b99e7efd40f5317f7

Bug: 8164205
Change-Id: I69795ba5770112c0a3d0e752158076a8d1646b1a
2013-02-27 11:38:05 -08:00
Ian Rogers
7c9f30bfb3 Track stack memory in MemoryInfo.
In /proc/pid/maps the main stack is identified as "[stack]". In Linux 3.4
thread stacks are identified as "[stack:<tid>]" where <tid> is the thread ID of
the thread using that stack. Add support in MemInfo's otherStats to track
memory being used by the stack.

Add sanity check on the length of the otherStats array.
Add detail messages to two null pointer exceptions.

Bug: 8265251

Change-Id: I2b228b147da9bdc5c7a4d825dfc628fcc7923927
2013-02-27 11:34:42 -08:00
Irfan Sheriff
408f4edb5e Merge "Fix concurrency issues" into jb-mr2-dev 2013-02-27 19:17:28 +00:00
Irfan Sheriff
ab3b9fbfa0 Fix concurrency issues
Make true copy of list when passing off on broadcast

Bug: 8212369
Change-Id: Iaf4a303513d267f76bd16b845ec68baabfca6b45
2013-02-27 11:06:45 -08:00
Scott Main
35cd94ab97 am 4539955e: am 8f03a47e: am 464deaba: am 3383c015: am 9d167eaa: docs: another string change for developer console bug: 8033647
* commit '4539955e1d76fe1d2e7cea5eb20fdf51232234c2':
  docs: another string change for developer console bug: 8033647
2013-02-27 18:23:57 +00:00
Scott Main
4539955e1d am 8f03a47e: am 464deaba: am 3383c015: am 9d167eaa: docs: another string change for developer console bug: 8033647
* commit '8f03a47e5664243cb7ad50f63c8d411c55355550':
  docs: another string change for developer console bug: 8033647
2013-02-27 10:21:32 -08:00
Scott Main
8f03a47e56 am 464deaba: am 3383c015: am 9d167eaa: docs: another string change for developer console bug: 8033647
* commit '464deaba78650f0ba8aacb7c21361ed9ea4cbd8c':
  docs: another string change for developer console bug: 8033647
2013-02-27 10:20:06 -08:00