46108 Commits

Author SHA1 Message Date
Mathias Agopian
7c4beadf57 Merge "surfaceflinger_client: Don't dereference NULL ptrs." 2011-02-28 12:50:25 -08:00
Christopher Tate
d5dac80fed Merge "Binder linkage no longer depends on JNI objrefs as persistent tokens" 2011-02-28 12:50:09 -08:00
Mathias Agopian
8c8cfec0ea Merge "Fix sp<> conversion operator / constructor" 2011-02-28 12:50:04 -08:00
Ben Komalo
87ffa20a2f Remove a stale line in a JavaDoc.
Change-Id: I2d98bf5aaa2d47adef2b31903761db3d9f7e1ac1
2011-02-28 12:42:58 -08:00
Irfan Sheriff
f9e2a49117 Fix issue to clear scan alarms
If PNO is set after the device is disconnected, the scan
alarm should be cleared to prevent both PNO and alarm
being active at the same time

Bug: 3495698
Change-Id: Id48c87fef68a34a05799e6b82de4088e0573009f
2011-02-28 12:29:33 -08:00
Xavier Ducrohet
7b9727558b am edbd6139: Merge "Merge 1911a6f7 into gingerbread. do not merge." into gingerbread
* commit 'edbd6139b9d699879db2f14fb03b7b6a38bab9ea':
  Merge 1911a6f7 into gingerbread. do not merge.
2011-02-28 12:29:08 -08:00
Jamie Gennis
96dcc97843 Add the MIN_UNDEQUEUED_BUFFERS query to ANW.
This change adds a new query to ANativeWindow for getting the minimum
number of buffers that must be left un-dequeued during the steady-state
operation of the ANativeWindow.

Change-Id: Ie8c461fc26b02ecde02ddb4f95bf763662cf1551
Related-Bug: 3356050
2011-02-28 12:24:40 -08:00
Xavier Ducrohet
edbd6139b9 Merge "Merge 1911a6f7 into gingerbread. do not merge." into gingerbread 2011-02-28 12:24:01 -08:00
Jamie Gennis
420246479b Fix error recovery in Stagefright init.
This change fixes the error path of
OMXCodec::allocateOutputBuffersFromNativeWindow so that it cancels the
correct number of buffers if a dequeueBuffer operation fails.

Change-Id: Ib7cdcdf24f1718bc070ad218a5980949c0e942eb
2011-02-28 12:23:23 -08:00
Jamie Gennis
94c59802c0 Stagefright: Query buffer usage from the component.
This change makes Stagefright query the gralloc buffer usage flags from
the OMX IL component and passing those flags on to the ANativeWindow.

Change-Id: Ic9af8a9e6df9ff4aadc7355890324d68841bc488
Related-Bug: 3479027
2011-02-28 12:12:58 -08:00
Jamie Gennis
e6befb88bd Add an OMX IL API for querying buffer usage flags.
This change defines an OpenMAX IL API for querying from the IL component
the gralloc buffer usage flags that should be used to allocate the
buffers.  It also adds the Stagefright plumbing for using the new OMX IL
API.

Change-Id: I046b5e7be70ce61e2a921dcdc6e3aa9324d19ea6
Related-Bug: 3479027
2011-02-28 12:12:20 -08:00
Christopher Tate
0b41448506 Binder linkage no longer depends on JNI objrefs as persistent tokens
There are two areas that have changed to eliminate the assumption that
local jobject references are both canonical and persistent:

1. JavaBBinderHolder no longer holds onto and reuses it parent object
reference per se.  Since the underlying JavaBBinder object holds a
real global ref, this was redundant anyway.  Now, for purposes of its
transient need to perform JNI operations, it simply uses the current
jobject ref(s) passed during method invocation, and no longer attempts
to hold these refs beyond the scope of a single invocation.

2. Binder obituaries no longer assume that a jobject reference to a
recipient will always compare == as a 32-bit value with any future
reference to the same object.  The implementation now asks Dalvik
whether object references match.

This amended patch fixes the earlier bug around races between
remote binder death cleanup and local explicit unregistration of
VM-side death recipients.

Bug 2090115

Change-Id: I70bd788a80ea953632b1f466f385ab6b78ef2913
2011-02-28 11:37:20 -08:00
Svetoslav Ganov
6c113a14ca Merge "NubmberPicker up/down arrows do not work." 2011-02-28 11:35:05 -08:00
Dianne Hackborn
d36d653c1c Merge "You can now specify a custom display size as NxM." 2011-02-28 11:28:38 -08:00
James Dong
8f77b413e8 Merge "The color conversion from YUV420Planar to RGB only requires the image width to be a multiple of 2, not 4." 2011-02-28 11:27:09 -08:00
Daniel Sandler
cfeaa492a2 am 5404812d: Merge "When out of range, show device-appropriate no-signal bars." into honeycomb
* commit '5404812dee9dccbbd43df81752f3061742235982':
  When out of range, show device-appropriate no-signal bars.
2011-02-28 11:26:53 -08:00
Dianne Hackborn
99aac7beca You can now specify a custom display size as NxM.
Change-Id: Ieb6df51aab009689f0f19b8887025261c5ceb69f
2011-02-28 11:23:18 -08:00
Daniel Sandler
5404812dee Merge "When out of range, show device-appropriate no-signal bars." into honeycomb 2011-02-28 11:17:38 -08:00
Jean-Baptiste Queru
fbaa6741b6 am 71431bb5: am 79b66725: am 25be2c72: am e0537f18: Merge "Fix of tearDown() in SingleLaunchActivityTestCase."
* commit '71431bb5ca0d8d566d4ebd9d0bc7eb20950290dc':
  Fix of tearDown() in SingleLaunchActivityTestCase.
2011-02-28 11:08:51 -08:00
Santosh Madhava
9e69035598 Merge "Fix for issue 3466385: Low quality video properties are applied to all" 2011-02-28 11:06:55 -08:00
Jean-Baptiste Queru
71431bb5ca am 79b66725: am 25be2c72: am e0537f18: Merge "Fix of tearDown() in SingleLaunchActivityTestCase."
* commit '79b66725b7755e403e10a9d073121789f09b1a9e':
  Fix of tearDown() in SingleLaunchActivityTestCase.
2011-02-28 11:05:55 -08:00
Alex Sakhartchouk
802e37e7b8 Merge "These moved into developmnet samples" 2011-02-28 10:59:29 -08:00
Andreas Huber
8e79442c4f Merge "Add the option '-S' to use surface allocated buffers in the stagefright cmdline tool." 2011-02-28 10:40:28 -08:00
Jean-Baptiste Queru
79b66725b7 am 25be2c72: am e0537f18: Merge "Fix of tearDown() in SingleLaunchActivityTestCase."
* commit '25be2c725eba1c94c7fc700e37b194fdcd83a1fb':
  Fix of tearDown() in SingleLaunchActivityTestCase.
2011-02-28 10:18:30 -08:00
Xavier Ducrohet
7719436342 am b732b7b5: am ce57a7f3: am 6504490c: am dff6b8e7: Merge "Add --non-constant-id to aapt."
* commit 'b732b7b5e8192501360edc15fb8c6399d11fb97d':
  GpsLocationProvider: Clean up HAL initialization/cleanup sequence
  Fixed GSM encoded network initiated position request
  Ensuring thread-safe usage of DateFormat.
  Fixing infinite loop for zero duration.
  Fix for an infinite loop while scrolling lists.
  WAPPushManager, WAP Push over SMS message handler
  Add --non-constant-id to aapt.
2011-02-28 10:15:48 -08:00
Jean-Baptiste Queru
25be2c725e am e0537f18: Merge "Fix of tearDown() in SingleLaunchActivityTestCase."
* commit 'e0537f1859664ba9c9cf87eb9d6dc3c16986dbb8':
  Fix of tearDown() in SingleLaunchActivityTestCase.
2011-02-28 10:15:46 -08:00
Jean-Baptiste Queru
e0537f1859 Merge "Fix of tearDown() in SingleLaunchActivityTestCase." 2011-02-28 10:12:08 -08:00
Xavier Ducrohet
b732b7b5e8 am ce57a7f3: am 6504490c: am dff6b8e7: Merge "Add --non-constant-id to aapt."
* commit 'ce57a7f35344e76689d30f45964d1e37b78280cb':
  GpsLocationProvider: Clean up HAL initialization/cleanup sequence
  Fixed GSM encoded network initiated position request
  Ensuring thread-safe usage of DateFormat.
  Fixing infinite loop for zero duration.
  Fix for an infinite loop while scrolling lists.
  WAPPushManager, WAP Push over SMS message handler
  Add --non-constant-id to aapt.
2011-02-28 10:10:38 -08:00
Eric Laurent
65260be5d4 Merge "Fix issue 3388354." 2011-02-28 09:53:04 -08:00
Xavier Ducrohet
ce57a7f353 am 6504490c: am dff6b8e7: Merge "Add --non-constant-id to aapt."
* commit '6504490cde3ec5d48321d539e654d1f2072b33f9':
  GpsLocationProvider: Clean up HAL initialization/cleanup sequence
  Fixed GSM encoded network initiated position request
  Ensuring thread-safe usage of DateFormat.
  Fixing infinite loop for zero duration.
  Fix for an infinite loop while scrolling lists.
  WAPPushManager, WAP Push over SMS message handler
  Add --non-constant-id to aapt.
2011-02-28 09:51:38 -08:00
Jean-Michel Trivi
e27214857f Merge "Fix bug 3376700 Volume too loud at lowest setting" 2011-02-28 09:33:59 -08:00
Leon Scroggins
5960626016 Merge "No radio buttons on <select>" 2011-02-28 09:32:43 -08:00
Rajneesh Chowdury
051d443071 Merge "Instrumentation code to enable/disable memory leak check using setprop" 2011-02-28 09:26:54 -08:00
Andreas Huber
190c03cb32 Add the option '-S' to use surface allocated buffers in the stagefright cmdline tool.
Change-Id: Ic84eeed1679d6bf68c92de0e20d30e7a3c4d410f
2011-02-28 09:23:13 -08:00
Xavier Ducrohet
6504490cde am dff6b8e7: Merge "Add --non-constant-id to aapt."
* commit 'dff6b8e71dda9f5d841fa26408714aec2aef1505':
  GpsLocationProvider: Clean up HAL initialization/cleanup sequence
  Fixed GSM encoded network initiated position request
  Ensuring thread-safe usage of DateFormat.
  Fixing infinite loop for zero duration.
  Fix for an infinite loop while scrolling lists.
  WAPPushManager, WAP Push over SMS message handler
  Add --non-constant-id to aapt.
2011-02-28 09:16:38 -08:00
Eric Laurent
854938a72d Fix issue 3388354.
Release all sco audio clients when the intent indicating
STATE_AUDIO_DISCONNECTED state is received.
Also clear mScoClients array when clients are released.

Change-Id: I63ec9d70fe72a102e09a4a473a367fb2e550b171
2011-02-28 09:13:00 -08:00
Santosh Madhava
15f5eeef0e Merge "Fix for issue 3431967: Memory leak from video editor engine" 2011-02-28 09:12:34 -08:00
Ben Murdoch
dd1ddc3b16 Merge "Don't try to output really long URLs HTML5Audio exception handler." 2011-02-28 08:45:10 -08:00
Glenn Kasten
764112c2be Merge "Bug 3447027 Limit previews for DRM video" 2011-02-28 08:44:05 -08:00
Vasu Nori
ae8ffd985e Merge "fix javadoc on downloadmanager.remove()" 2011-02-28 08:42:24 -08:00
Glenn Kasten
5f63069f32 Bug 3447027 Limit previews for DRM video
Change-Id: I5b15cf6a15623cf73f007c59143ab5e3fa5a07e8
2011-02-28 08:39:13 -08:00
Vasu Nori
17ee56c994 fix javadoc on downloadmanager.remove()
Change-Id: Id48389acd12343b4dcc18ed3f77ab068b2bc5f85
2011-02-28 08:35:39 -08:00
Ben Murdoch
35381518d0 Don't try to output really long URLs HTML5Audio exception handler.
If we catch an IOException in HTML5Audio.setDataSource, do not try
and output the URL if it's really long as this will likely lead to
an OOM exception being thrown.

Bug: 3486963
Change-Id: If10a489b03ec215e078490a81910b02d68190612
2011-02-28 16:33:10 +00:00
Ben Murdoch
d2e91d1dc7 Improve caching of localised strings for Chromium
We read localised strings for Chromium (e.g. for Autofill)
from Java. Now we've added more large strings, keep them
in WeakReferences and load them lazily rather than on startup.

Change-Id: Ibedcaab5ee781699b41b5c03aae866d1d82bb570
2011-02-28 14:19:05 +00:00
Ben Murdoch
b8460ba428 Localise the regular expressions that AutoFill uses.
Improve the AutoFill experience on non-English web pages
by using localised regular expressions.

This essentially cherry picks the localised strings from
Chromium CL:
http://codereview.chromium.org/6113005

Requires a change in external/chromium, see:
Ie927514cae7b7390c5a291dfae4dcfe3782bb5b7

Change-Id: I9c0544e67bf0333abcb9ea607855ff92f69bff8e
2011-02-28 10:27:53 +00:00
Dirk Dougherty
46054e0c87 am 1649d91f: am a47ef32e: Merge "Doc change: Add announce for Android at GDC 2011." into honeycomb
* commit '1649d91f781445a78ce09ed5500503fd96eb9113':
  Doc change: Add announce for Android at GDC 2011.
2011-02-27 22:37:44 -08:00
Dirk Dougherty
1649d91f78 am a47ef32e: Merge "Doc change: Add announce for Android at GDC 2011." into honeycomb
* commit 'a47ef32e8bd8eb944e97e12e3b1fac87f87bcd76':
  Doc change: Add announce for Android at GDC 2011.
2011-02-27 22:34:33 -08:00
Dirk Dougherty
a47ef32e8b Merge "Doc change: Add announce for Android at GDC 2011." into honeycomb 2011-02-27 22:23:25 -08:00
Rajneesh Chowdury
f67441eb37 Instrumentation code to enable/disable memory leak check using setprop
The heap memory dump is enabled when libc.debug.malloc property is 1.
Two .dump files are created in predefined path.

Memory leak report can be generated using nativeheapdump tool.

Change-Id: Ie03928b5a05993e72d4700a158657c514478ecd3
2011-02-27 20:59:12 -08:00
Santosh Madhava
7c8f25f5b8 Fix for issue 3431967: Memory leak from video editor engine
Change-Id: I610e82f5bdb8ac7b32541301a9fa41bbd8f1459d
2011-02-27 20:27:20 -08:00