OSDN Git Service

android-x86/frameworks-base.git
13 years agoMerge "DO NOT MERGE Doc Change: Javadoc for test case classes" into gingerbread
Joe Malin [Tue, 13 Jul 2010 16:46:38 +0000 (09:46 -0700)]
Merge "DO NOT MERGE Doc Change: Javadoc for test case classes" into gingerbread

13 years agoam 1bcb6658: Merge "Fix issue #2834005: Android Settings.Secure bypass" into froyo
Dianne Hackborn [Tue, 13 Jul 2010 02:06:24 +0000 (19:06 -0700)]
am 1bcb6658: Merge "Fix issue #2834005: Android Settings.Secure bypass" into froyo

Merge commit '1bcb665825dc97789e8c1b892ec4298fd0b8c552' into gingerbread

* commit '1bcb665825dc97789e8c1b892ec4298fd0b8c552':
  Fix issue #2834005: Android Settings.Secure bypass

13 years agoMerge "Fix issue #2834005: Android Settings.Secure bypass" into froyo
Dianne Hackborn [Tue, 13 Jul 2010 02:03:26 +0000 (19:03 -0700)]
Merge "Fix issue #2834005: Android Settings.Secure bypass" into froyo

13 years agodoc change: resolved conflicts for merge of 3c691a8d to gingerbread
Dirk Dougherty [Tue, 13 Jul 2010 00:29:16 +0000 (17:29 -0700)]
doc change: resolved conflicts for merge of 3c691a8d to gingerbread

Conflicts:
docs/html/sdk/android-2.2.jd

Change-Id: I58f9503db8692df15dba1277a46e4c6eb338b438

13 years agoFix issue #2834005: Android Settings.Secure bypass
Dianne Hackborn [Mon, 12 Jul 2010 22:54:38 +0000 (15:54 -0700)]
Fix issue #2834005: Android Settings.Secure bypass

Change-Id: Ic4f14e2ff5c2b4f623405d30389863a9e3e82572

13 years agoDoc change: add notes for ndk r4b.
Dirk Dougherty [Tue, 15 Jun 2010 19:27:00 +0000 (12:27 -0700)]
Doc change: add notes for ndk r4b.

Change-Id: Idf4e4d2ac2ed9c30b3afe258546861084f3f20aa

13 years agoam ef13d028: docchange: fixed typo "Pacskage" to "Package"
Robert Ly [Mon, 12 Jul 2010 22:07:40 +0000 (15:07 -0700)]
am ef13d028: docchange: fixed typo "Pacskage" to "Package"

Merge commit 'ef13d028217ac9766735f627dedc4fc7f48a6f1f' into gingerbread

* commit 'ef13d028217ac9766735f627dedc4fc7f48a6f1f':
  docchange: fixed typo "Pacskage" to "Package"

13 years agodocchange: fixed typo "Pacskage" to "Package"
Robert Ly [Mon, 12 Jul 2010 21:32:22 +0000 (14:32 -0700)]
docchange: fixed typo "Pacskage" to "Package"

Change-Id: I6004dc7743dcd74315cbfc2cccc306ff8724e569

13 years agoMerge "Deprecate some status bar icons that now come from the phone app (and shouldn...
David Brown [Mon, 12 Jul 2010 20:30:58 +0000 (13:30 -0700)]
Merge "Deprecate some status bar icons that now come from the phone app (and shouldn't have been public in the first place.)" into gingerbread

13 years agoMerge changes I2337051b,I19b426cb into gingerbread
Kenny Root [Mon, 12 Jul 2010 18:18:34 +0000 (11:18 -0700)]
Merge changes I2337051b,I19b426cb into gingerbread

* changes:
  Tweak ObbFile class
  Allow things that can install packages to set Obb paths

13 years agoTweak ObbFile class
Kenny Root [Mon, 12 Jul 2010 16:02:18 +0000 (09:02 -0700)]
Tweak ObbFile class

* Move error messages around to clarify the errors.

* Add extra error check when reading a file.

* Seek to the end of a file when writing the signature so the users of
  the API don't have to remember to do it.

Change-Id: I2337051b9f9fa8147c5900237deec790dcd92436

13 years agoAllow things that can install packages to set Obb paths
Kenny Root [Mon, 12 Jul 2010 15:36:07 +0000 (08:36 -0700)]
Allow things that can install packages to set Obb paths

Change-Id: I19b426cb3de1a5c9285badf8aea59989568914b4

13 years agoMake a stupid thing about the glue less stupid.
Dianne Hackborn [Sat, 10 Jul 2010 01:20:09 +0000 (18:20 -0700)]
Make a stupid thing about the glue less stupid.

There is no reason to make the app developer delete the
glue.  Seriously.

Change-Id: Ic6a93ba17b44889783b35a2a0a2b67ffcd647f47

13 years agoAdd ANativeWindow API for directly drawing to the surface bits.
Dianne Hackborn [Fri, 9 Jul 2010 18:44:11 +0000 (11:44 -0700)]
Add ANativeWindow API for directly drawing to the surface bits.

Also other cleanup and fixes:

- We now properly set the default window format to 565.
- New APIs to set the window format and flags from native code.
- Tweaked glue for simpler handling of the "destroy" message.
- Um, other stuff.

Change-Id: Id7790a21a2fa9a19b91854d225324a7c1e7c6ade

13 years agoDeprecate some status bar icons that now come from the phone app (and
David Brown [Fri, 9 Jul 2010 22:06:11 +0000 (15:06 -0700)]
Deprecate some status bar icons that now come from the phone app (and
shouldn't have been public in the first place.)

(And since the changed deprecation state is a public API change, I needed
to do "make update-api" as well.)

Change-Id: I803d5a81ad2363561137be5af4f2b8258df758cd

13 years agoMerge "Remove some (unused, non-public) phone-related status bar notification icons...
David Brown [Fri, 9 Jul 2010 19:57:39 +0000 (12:57 -0700)]
Merge "Remove some (unused, non-public) phone-related status bar notification icons" into gingerbread

13 years agoMerge "Fix swap of sessionId and output in audio effect API." into gingerbread
Jean-Michel Trivi [Fri, 9 Jul 2010 19:30:28 +0000 (12:30 -0700)]
Merge "Fix swap of sessionId and output in audio effect API." into gingerbread

13 years agoFix swap of sessionId and output in audio effect API.
Jean-Michel Trivi [Fri, 9 Jul 2010 19:11:49 +0000 (12:11 -0700)]
Fix swap of sessionId and output in audio effect API.

Change-Id: Idc93415efef92087507401e50cfb235a6f1f7ed7

13 years agoMerge "Enable the support for decoding audio with AAC+ and eAAC+ features" into ginge...
James Dong [Fri, 9 Jul 2010 18:38:45 +0000 (11:38 -0700)]
Merge "Enable the support for decoding audio with AAC+ and eAAC+ features" into gingerbread

13 years agoMerge "Make android:immersive public." into gingerbread
Daniel Sandler [Fri, 9 Jul 2010 13:07:51 +0000 (06:07 -0700)]
Merge "Make android:immersive public." into gingerbread

13 years agoEnable the support for decoding audio with AAC+ and eAAC+ features
James Dong [Fri, 9 Jul 2010 03:56:13 +0000 (20:56 -0700)]
Enable the support for decoding audio with AAC+ and eAAC+ features

bug - 282684

Change-Id: I73c8377af3cc4edd3ee7cea86dc3b1c369fbd78b

13 years agoAdd runtime dumpsys support for media recorder client
James Dong [Thu, 8 Jul 2010 18:16:11 +0000 (11:16 -0700)]
Add runtime dumpsys support for media recorder client

Change-Id: I4c8a81720f3be2db54678a7e84fe12849255046b

13 years agoRemove some (unused, non-public) phone-related status bar notification icons
David Brown [Thu, 8 Jul 2010 01:19:12 +0000 (18:19 -0700)]
Remove some (unused, non-public) phone-related status bar notification icons

Status bar icons really belong to specific apps (not the framework), so the
various stat_sys_phone_call* and stat_sys_vp_phone_call* icons should have
never been part of the framework in the first place.

As of change https://android-git.corp.google.com/g/56881 the phone app now has
its own copies of all these icons, so it's now safe to remove the non-public
ones(*) from frameworks/base.

(*) Unfortunately a few of these icons were accidentally added to public.xml
    at some point, so we'll never be able to get rid of those ones.
    This change only removes the private resources.

Change-Id: If9ecf7b7568b5086c6ed1e5d4b69518fb41f1516

13 years agoAdded JAVA classes to control bass boost, equalizer, reverberation and virtualizer...
Eric Laurent [Thu, 8 Jul 2010 22:32:51 +0000 (15:32 -0700)]
Added JAVA classes to control bass boost, equalizer, reverberation and virtualizer Effects.

Defined the following JAVA classes on top of AudioEffect class to facilitate control
off built-in audio effects with APIs aligned with interfaces defined in OpenSL ES
specification:
- BastBoot.java
- Equalizer.java
- PresetReverb.java
- EnvironmentalReverb.java
- Virtualizer.java

Split reverb API header file in two, one for preset reverb and one for environmental reverb.
Some changes in test reverb to support preset reverb.

Change-Id: Ie0a5ba06002e63dfd6da22cace5568c1e0b76ea1

13 years agoMerge "Improve InstrumentationTestRunner exception handling." into gingerbread
Brett Chabot [Thu, 8 Jul 2010 21:09:21 +0000 (14:09 -0700)]
Merge "Improve InstrumentationTestRunner exception handling." into gingerbread

13 years agoMake android:immersive public.
Daniel Sandler [Thu, 8 Jul 2010 19:39:22 +0000 (15:39 -0400)]
Make android:immersive public.

This exposes the AndroidManifest attribute
android:immersive, introduced in Change I967bb10b, to the
SDK.

Change-Id: Iccbc99590cd0fd4c570b9b9670ef93036f9d849e

13 years agoMerge "Add new glue code for writing native apps." into gingerbread
Dianne Hackborn [Thu, 8 Jul 2010 19:25:20 +0000 (12:25 -0700)]
Merge "Add new glue code for writing native apps." into gingerbread

13 years agoMerge "Change CursorTreeAdapter to close the cursors rather than deactivating them...
Jason Parks [Thu, 8 Jul 2010 18:50:40 +0000 (11:50 -0700)]
Merge "Change CursorTreeAdapter to close the cursors rather than deactivating them. Fix SimpleCursorTreeAdapter to allow a null cursor as an argument." into gingerbread

13 years agoam 286cf139: docs: add redirect for download.html
Scott Main [Thu, 8 Jul 2010 18:40:11 +0000 (11:40 -0700)]
am 286cf139: docs: add redirect for download.html

Merge commit '286cf139c3c33c99c1ec5e434ee1de5e10238e62' into gingerbread

* commit '286cf139c3c33c99c1ec5e434ee1de5e10238e62':
  docs: add redirect for download.html

13 years agodocs: add redirect for download.html
Scott Main [Thu, 8 Jul 2010 18:26:36 +0000 (11:26 -0700)]
docs: add redirect for download.html

Change-Id: Id54f1899c1933796524d6c2b5e991a652b354287

13 years agoAdd new glue code for writing native apps.
Dianne Hackborn [Wed, 7 Jul 2010 21:27:31 +0000 (14:27 -0700)]
Add new glue code for writing native apps.

This factors out the boiler-plate code from the sample
app to a common glue code that can be used for everyone
writing this style of app: a dedicated app thread that
takes care of waiting for events and processing them.

As part of doing this, ALooper has a new facility to allow
registration of fds that cause ALooper_pollOnce() to return
the fd that has data, allowing the app to drive the loop
without callbacks.  Hopefully this makes some people feel better. :)

Also do some other cleanup of the ALooper API, plus some
actual documentation.

Change-Id: Ic53bd56bdf627e3ba28a3c093faa06a92be522b8

13 years agoUse fullScreenIntent to show the USB mass storage dialog.
Daniel Sandler [Thu, 8 Jul 2010 17:07:41 +0000 (13:07 -0400)]
Use fullScreenIntent to show the USB mass storage dialog.

Note that this is not a FLAG_HIGH_PRIORITY notification. In
immersive mode the UMS dialog will be suppressed entirely
(but an icon will still appear in the status bar).

Bug: 2821219
Change-Id: I21f910c8830aff8d0633deda4eb59dbda13262ed

13 years agoChange CursorTreeAdapter to close the cursors rather than deactivating them. Fix...
Jason Parks [Thu, 1 Jul 2010 19:38:02 +0000 (14:38 -0500)]
Change CursorTreeAdapter to close the cursors rather than deactivating them. Fix SimpleCursorTreeAdapter to allow a null cursor as an argument.

Not closing the cursors was a bit of a bug since the documenation explicitly says that it would close the cursors. This will get rid of all the warnings that are printed out in the finalizer about the cursor not being closed.

13 years agoMerge "Remove voice mail number verification for testing on no-sim device" into ginge...
Xia Wang [Thu, 8 Jul 2010 02:04:03 +0000 (19:04 -0700)]
Merge "Remove voice mail number verification for testing on no-sim device" into gingerbread

13 years agoRemove voice mail number verification for testing on no-sim device
Xia Wang [Thu, 8 Jul 2010 00:34:20 +0000 (17:34 -0700)]
Remove voice mail number verification for testing on no-sim device

Change-Id: Iaf9e419b8d03e330864d64c05aee730d33994003

13 years agoam 5183ae3b: Merge "docs: add caution about adt in eclipse 3.6" into froyo
Scott Main [Thu, 8 Jul 2010 01:43:10 +0000 (18:43 -0700)]
am 5183ae3b: Merge "docs: add caution about adt in eclipse 3.6" into froyo

Merge commit '5183ae3b0f27dfff5ecdceabaa4950eef38b31e8' into gingerbread

* commit '5183ae3b0f27dfff5ecdceabaa4950eef38b31e8':
  docs: add caution about adt in eclipse 3.6

13 years agoMerge "docs: add caution about adt in eclipse 3.6" into froyo
Scott Main [Thu, 8 Jul 2010 01:37:48 +0000 (18:37 -0700)]
Merge "docs: add caution about adt in eclipse 3.6" into froyo

13 years agoMerge "OBB API for PackageManager" into gingerbread
Kenny Root [Thu, 8 Jul 2010 01:14:25 +0000 (18:14 -0700)]
Merge "OBB API for PackageManager" into gingerbread

13 years agoMerge "Add OBB file helper class" into gingerbread
Kenny Root [Thu, 8 Jul 2010 01:14:13 +0000 (18:14 -0700)]
Merge "Add OBB file helper class" into gingerbread

13 years agoMerge "More native input dispatch work." into gingerbread
Chris Tate [Thu, 8 Jul 2010 00:43:12 +0000 (17:43 -0700)]
Merge "More native input dispatch work." into gingerbread

13 years agoImprove InstrumentationTestRunner exception handling.
Brett Chabot [Thu, 8 Jul 2010 00:19:08 +0000 (17:19 -0700)]
Improve InstrumentationTestRunner exception handling.

This commit fixes two somewhat related problems:
  - Attempting to run a method which does not exist caused a runtime
exception which stopped the test run. Change this so the runner reports
an individual test failure instead
  - A runtime exception during the test run would cause it to stop
completely, with no information dumped to the logcat or stdout. Now
exceptions are trapped and reported to stdout.

Also added associated unit tests to test these two conditions.

Related bug 2812262.

Change-Id: I383f9b9bad99f14cb51071800fa9bdbf6a6a1119

13 years agoAdded some javadoc to Camera.takePicture()
Dan Tasse [Wed, 7 Jul 2010 20:17:17 +0000 (13:17 -0700)]
Added some javadoc to Camera.takePicture()

Change-Id: I62597a1417647eeac7611eaccd0df3bda210e3e7

13 years agodocs: add caution about adt in eclipse 3.6
Scott Main [Wed, 7 Jul 2010 23:47:16 +0000 (16:47 -0700)]
docs: add caution about adt in eclipse 3.6

Change-Id: I37c920f6a5290d891c4a6dea5978147a50eec807

13 years agoMerge "Added Visualizer effect." into gingerbread
Eric Laurent [Wed, 7 Jul 2010 23:23:30 +0000 (16:23 -0700)]
Merge "Added Visualizer effect." into gingerbread

13 years agoam 2651504c: (-s ours) Merge "Doc change: Add revision notes for Android 2.2_r2 devel...
Dirk Dougherty [Wed, 7 Jul 2010 22:06:35 +0000 (15:06 -0700)]
am 2651504c: (-s ours) Merge "Doc change: Add revision notes for Android 2.2_r2 development platform. Fix some umappable characters in WebView class doc." into froyo

Merge commit '2651504c020f07847bafa3d539c36f1396629669' into gingerbread

* commit '2651504c020f07847bafa3d539c36f1396629669':
  Doc change: Add revision notes for Android 2.2_r2 development platform. Fix some umappable characters in WebView class doc.

13 years agoMerge "Allow application to set two more encoding paramters: video profile and level...
James Dong [Wed, 7 Jul 2010 21:56:33 +0000 (14:56 -0700)]
Merge "Allow application to set two more encoding paramters: video profile and level" into gingerbread

13 years agoMerge "Fix some bugs in the MediaProfileReader Because the video and audio encoders...
James Dong [Wed, 7 Jul 2010 21:56:20 +0000 (14:56 -0700)]
Merge "Fix some bugs in the MediaProfileReader Because the video and audio encoders were stored in the same map, when we retrieve the name from the map, we can get a incorrect name." into gingerbread

13 years agoFix some bugs in the MediaProfileReader
James Dong [Wed, 7 Jul 2010 21:37:48 +0000 (14:37 -0700)]
Fix some bugs in the MediaProfileReader
Because the video and audio encoders were stored in the same map, when we retrieve the name from the map, we can get a incorrect name.

Change-Id: I3857422bfe9173baae53e4f3d258b055f51ad9f2

13 years agoMerge "Doc change: Add revision notes for Android 2.2_r2 development platform. Fix...
Dirk Dougherty [Wed, 7 Jul 2010 21:29:29 +0000 (14:29 -0700)]
Merge "Doc change: Add revision notes for Android 2.2_r2 development platform. Fix some umappable characters in WebView class doc." into froyo

13 years agoMerge "Only send the playback complete notification if a) an error occurred on any...
Andreas Huber [Wed, 7 Jul 2010 21:20:15 +0000 (14:20 -0700)]
Merge "Only send the playback complete notification if a) an error occurred on any track or b) all tracks have finished playing. The previous behaviour was to send the notification as soon as the first track finished playing." into gingerbread

13 years agoOnly send the playback complete notification if a) an error occurred on any track...
Andreas Huber [Wed, 7 Jul 2010 20:35:27 +0000 (13:35 -0700)]
Only send the playback complete notification if a) an error occurred on any track or b) all tracks have finished playing. The previous behaviour was to send the notification as soon as the first track finished playing.

Change-Id: Icac8104d14f18b719aa0b8f1ab3215f24003b152

13 years agoMerge "More improvements to the SensorManager documentation" into gingerbread
Mathias Agopian [Wed, 7 Jul 2010 20:06:57 +0000 (13:06 -0700)]
Merge "More improvements to the SensorManager documentation" into gingerbread

13 years agoAllow application to set two more encoding paramters: video profile and level
James Dong [Thu, 1 Jul 2010 22:02:14 +0000 (15:02 -0700)]
Allow application to set two more encoding paramters: video profile and level

Change-Id: I673e681cefe184d5c556c612c54600a24a2143e5

13 years agoFix icon size in intruder alerts.
Daniel Sandler [Wed, 30 Jun 2010 20:25:33 +0000 (16:25 -0400)]
Fix icon size in intruder alerts.

(Updated test app to confirm the fix.)

Change-Id: Ife56cf07f282786162e2ebc5aaddbb24dac6cafd

13 years agoAdded Visualizer effect.
Eric Laurent [Fri, 2 Jul 2010 15:12:41 +0000 (08:12 -0700)]
Added Visualizer effect.

The visualizer enables application to retrieve part of the currently playing audio for visualization purpose.
It is not an audio recording interface and only returns partial and low quality audio content as a waveform or
a frequency representation (FFT).

Removed temporary hack made in MediaPlayer for animated wall papers based on audio visualization (snoop() method.

This commit also includes a change in AudioEffect class:
 - the enable()/disable() methods have been replaced bya more standard setEnabled() method.
 - some fixes in javadoc

Change-Id: Id092a1340e9e38dae68646ade7be054e3a36980e

13 years agoOBB API for PackageManager
Kenny Root [Fri, 18 Jun 2010 22:46:06 +0000 (15:46 -0700)]
OBB API for PackageManager

Simple API for tracking .obb files associated with packages. Stores the
path in the PackageSettings. No verification of file content is done
now since the PackageManagerService can't read the SD card where these
files will likely live.

Change-Id: Ibeaf26ba0526b6d60f401137e58f46ee9faff39e

13 years agoAdd OBB file helper class
Kenny Root [Tue, 1 Jun 2010 17:34:29 +0000 (10:34 -0700)]
Add OBB file helper class

ObbFile is a binary blob that will be used in packaging large files
with smaller APKs.

Change-Id: Ib1594346cfa2f49113de6565af77c24efbd89d63

13 years agoMerge "ALooperRoster no longer holds strong references to handlers and loopers."...
Andreas Huber [Wed, 7 Jul 2010 16:41:05 +0000 (09:41 -0700)]
Merge "ALooperRoster no longer holds strong references to handlers and loopers." into gingerbread

13 years agoALooperRoster no longer holds strong references to handlers and loopers.
Andreas Huber [Wed, 7 Jul 2010 16:17:41 +0000 (09:17 -0700)]
ALooperRoster no longer holds strong references to handlers and loopers.

Change-Id: I038d69b0a34eda1bfc5216d92c837a5ddf4fb802

13 years agoMake sure the OMX callback thread is properly shutdown after the node goes away.
Andreas Huber [Wed, 7 Jul 2010 15:20:49 +0000 (08:20 -0700)]
Make sure the OMX callback thread is properly shutdown after the node goes away.

Change-Id: Ib0b25855b0dfc191e5529193b4cb519f644a8412

13 years agoMerge "An AHandler can now find its associated ALooper." into gingerbread
Andreas Huber [Wed, 7 Jul 2010 13:57:27 +0000 (06:57 -0700)]
Merge "An AHandler can now find its associated ALooper." into gingerbread

13 years agoMore native input dispatch work.
Jeff Brown [Fri, 2 Jul 2010 22:37:36 +0000 (15:37 -0700)]
More native input dispatch work.

Removed old input dispatch code.
Refactored the policy callbacks.
Pushed a tiny bit of the power manager state down to native.
Fixed long press on MENU.
Made the virtual key detection and cancelation a bit more precise.

Change-Id: I5d8c1062f7ea0ab3b54c6fadb058c4d5f5a9e02e

13 years agoAdd new native Looper API.
Dianne Hackborn [Sat, 3 Jul 2010 01:52:01 +0000 (18:52 -0700)]
Add new native Looper API.

This allows us to avoid exposing the file descriptor of
the event queue; instead, you attach an event queue to
a looper.  This will also should allow native apps to be
written without the need for a separate thread, by attaching
the event queue to the main thread's looper and scheduling
their own messages there.

Change-Id: I38489282635895ae2cbfacb88599c1b1cad9b239

13 years agoMore improvements to the SensorManager documentation
Mathias Agopian [Wed, 23 Jun 2010 04:55:01 +0000 (21:55 -0700)]
More improvements to the SensorManager documentation

Change-Id: I8ab79e8787402f0db572226029820b3cf605086f

13 years agoDO NOT MERGE Doc Change: Javadoc for test case classes
Joe Malin [Mon, 31 May 2010 21:37:28 +0000 (14:37 -0700)]
DO NOT MERGE Doc Change: Javadoc for test case classes

Change-Id: I21b78a84ee1345a98631dcaab937a10b4fa4344d

Original change was SHA1 7d433aabb731a790fc8d06d260c826751215113f

13 years agoAn AHandler can now find its associated ALooper.
Andreas Huber [Fri, 2 Jul 2010 22:15:44 +0000 (15:15 -0700)]
An AHandler can now find its associated ALooper.

Change-Id: Ic7087b8dcbc0d9abda272df0cb01b04b006f82ad

13 years agoDoc change: Add revision notes for Android 2.2_r2 development platform. Fix some...
Dirk Dougherty [Wed, 23 Jun 2010 22:38:39 +0000 (15:38 -0700)]
Doc change: Add revision notes for Android 2.2_r2 development platform. Fix some umappable characters in WebView class doc.

Change-Id: I5522406335fbf96164a5b812ec4891c499343d1e

13 years agoMerge "Fix a bug that prevented the creation of EGL shared contexts." into gingerbread
Mathias Agopian [Fri, 2 Jul 2010 19:32:33 +0000 (12:32 -0700)]
Merge "Fix a bug that prevented the creation of EGL shared contexts." into gingerbread

13 years agoam 1c8b6ca4: docs: fix misc broken links
Scott Main [Fri, 2 Jul 2010 19:12:56 +0000 (12:12 -0700)]
am 1c8b6ca4: docs: fix misc broken links

Merge commit '1c8b6ca4d7dd7c8263d5224de6e814681a14afa5' into gingerbread

* commit '1c8b6ca4d7dd7c8263d5224de6e814681a14afa5':
  docs: fix misc broken links

13 years agoFix a bug that prevented the creation of EGL shared contexts.
Jamie Gennis [Fri, 2 Jul 2010 18:39:12 +0000 (11:39 -0700)]
Fix a bug that prevented the creation of EGL shared contexts.

Change-Id: I6b0ec5ef86abdd4e9083067ba297107cfb094df3

13 years agodocs: fix misc broken links
Scott Main [Fri, 2 Jul 2010 18:11:34 +0000 (11:11 -0700)]
docs: fix misc broken links

Change-Id: I7294276aff0c80498215870d5d72f7a3a9b2c99a

13 years agoMerge "Add an option to ALooper::start that allows it to call back into java or not...
Andreas Huber [Fri, 2 Jul 2010 17:02:17 +0000 (10:02 -0700)]
Merge "Add an option to ALooper::start that allows it to call back into java or not." into gingerbread

13 years agoAdd an option to ALooper::start that allows it to call back into java or not.
Andreas Huber [Fri, 2 Jul 2010 15:00:52 +0000 (08:00 -0700)]
Add an option to ALooper::start that allows it to call back into java or not.

Change-Id: Iec172901a04a575d8d350bd162565f04677c3f26

13 years agoMerge "Added AMessage::debugString() for debugging purposes." into gingerbread
Andreas Huber [Fri, 2 Jul 2010 15:00:30 +0000 (08:00 -0700)]
Merge "Added AMessage::debugString() for debugging purposes." into gingerbread

13 years agoam 7df74471: Merge "Flush binder buffer after setting raw heap to avoid leaking a...
Chih-Chung Chang [Fri, 2 Jul 2010 14:48:03 +0000 (07:48 -0700)]
am 7df74471: Merge "Flush binder buffer after setting raw heap to avoid leaking a reference." into froyo

Merge commit '7df7447112371fb5e46f6084b55ac2ccdfde139d' into gingerbread

* commit '7df7447112371fb5e46f6084b55ac2ccdfde139d':
  Flush binder buffer after setting raw heap to avoid leaking a reference.

13 years agoMerge "Flush binder buffer after setting raw heap to avoid leaking a reference."...
Chih-Chung Chang [Fri, 2 Jul 2010 14:43:31 +0000 (07:43 -0700)]
Merge "Flush binder buffer after setting raw heap to avoid leaking a reference." into froyo

13 years agoam f80372db: Merge "docs: update device dashboard; add historical chart" into froyo
Scott Main [Fri, 2 Jul 2010 06:33:20 +0000 (23:33 -0700)]
am f80372db: Merge "docs: update device dashboard; add historical chart" into froyo

Merge commit 'f80372dbc0f4a1b80bebfe5f5124de8d31e0996b' into gingerbread

* commit 'f80372dbc0f4a1b80bebfe5f5124de8d31e0996b':
  docs: update device dashboard; add historical chart

13 years agoMerge "docs: update device dashboard; add historical chart" into froyo
Scott Main [Fri, 2 Jul 2010 06:26:58 +0000 (23:26 -0700)]
Merge "docs: update device dashboard; add historical chart" into froyo

13 years agoFlush binder buffer after setting raw heap to avoid leaking a reference.
Chih-Chung Chang [Thu, 1 Jul 2010 13:06:45 +0000 (21:06 +0800)]
Flush binder buffer after setting raw heap to avoid leaking a reference.

The problem was:

1. In handleShutter(), thread A in CameraService calls
   registerBuffers(IMemoryHeap) and it's received by thread B
   in system_server. [transaction 1]
2. While thread A is waiting for the reply, thread B calls
   back to thread A to get the id of the heap
   (IMemoryHeap.getHeapID). [transaction 2]
3. Thread A replies transaction 2 and is preemptied in kernel.
   Thread B gets the reply and finishes registerBuffers and send
   reply for transaction 1.
4. When thread A runs again, it gets the reply for transaction 1
   and returns to handleShutter().
5. At this point the transaction buffer for transaction 2 (which
   holds a reference to IMemoryHeap) is not freed because the
   BC_FREE_BUFFER command is kept in thread A's local command
   queue and not sent to the kernel.
6. Normally when thread A makes next transaction, the
   BC_FREE_BUFFER command will be sent together (piggyback) with
   the commands for that transaction. But in this case thread A
   is a callback thread from camera driver, so it does not make
   any binder calls afterwards, and the IMemoryHeap is never freed
   (until the next time handleShutter is called).

Change-Id: I435a258187509bdbbaf353339eb9ea577610cbd2

13 years agoMerge "remove unused YUV formats" into gingerbread
Mathias Agopian [Fri, 2 Jul 2010 04:28:24 +0000 (21:28 -0700)]
Merge "remove unused YUV formats" into gingerbread

13 years agoremove unused YUV formats
Mathias Agopian [Fri, 2 Jul 2010 04:17:56 +0000 (21:17 -0700)]
remove unused YUV formats

Change-Id: Ie84616f842c7e0329d68e67e65a65d510558004b

13 years agoMerge "Log full exception when failing to inflate notification view" into gingerbread
Steve Howard [Fri, 2 Jul 2010 02:38:48 +0000 (19:38 -0700)]
Merge "Log full exception when failing to inflate notification view" into gingerbread

13 years agoGet to the point of being able to do native drawing.
Dianne Hackborn [Fri, 2 Jul 2010 01:44:46 +0000 (18:44 -0700)]
Get to the point of being able to do native drawing.

A little cleanup.

Change-Id: I37ef0557abf330d91d6fe47e81d062206b3bc346

13 years agoLog full exception when failing to inflate notification view
Steve Howard [Fri, 2 Jul 2010 00:54:16 +0000 (17:54 -0700)]
Log full exception when failing to inflate notification view

When inflating a notification's view fails, include the exception in
the log message.  Without this exception all we get is "couldn't
inflate view for notification <package>/<id>", which isn't very
helpful for tracking down the particular error in the view.

This exception used to be included in the log message, but it was
removed in 005847b03b2 -- any particular reason why?

Change-Id: I623b9e4c8291e4c035f26380e5f22ad6b65176a7

13 years agoAdded AMessage::debugString() for debugging purposes.
Andreas Huber [Thu, 1 Jul 2010 21:11:31 +0000 (14:11 -0700)]
Added AMessage::debugString() for debugging purposes.

Change-Id: Id43ffd2c56d659dc29f37e277f8c7b38f11c1591

13 years agoam c03befe3: Fix issue 2811538: System server crash when disconnecting BT headset...
Eric Laurent [Thu, 1 Jul 2010 23:36:02 +0000 (16:36 -0700)]
am c03befe3: Fix issue 2811538: System server crash when disconnecting BT headset after using SCO off call.

Merge commit 'c03befe3d62eb2a3e1d56fec0ca188a6094d53dd' into gingerbread

* commit 'c03befe3d62eb2a3e1d56fec0ca188a6094d53dd':
  Fix issue 2811538: System server crash when disconnecting BT headset after using SCO off call.

13 years agoFix issue 2811538: System server crash when disconnecting BT headset after using...
Eric Laurent [Thu, 1 Jul 2010 02:41:56 +0000 (19:41 -0700)]
Fix issue 2811538: System server crash when disconnecting BT headset after using SCO off call.

Problem:
When the bluetooth device is removed, the AudioService clears all active SCO connections
and unlinks from the client application's binder interface death.
The problem is that the unlinking is done even if no more connections are active for a given client,
which throws a runtime exception that is not catched causing the system server to crash.

The fix consists in calling unlinkToDeath() in ScoClient.clearCount() only if the number of
active SCO connections for this client is not 0. The NoSuchElementException exception is also
catched when calling unlinkToDeath()

Change-Id: I7086424301fc63a5666da61c38169349d3e078f4

13 years agodocs: update device dashboard; add historical chart
Scott Main [Thu, 1 Jul 2010 18:39:08 +0000 (11:39 -0700)]
docs: update device dashboard; add historical chart

Change-Id: Iafed4ed927141d34dcdb728918320be2fa2cf151

13 years agoMake real API for native code to get its window.
Dianne Hackborn [Thu, 1 Jul 2010 01:35:14 +0000 (18:35 -0700)]
Make real API for native code to get its window.

Added implementation to use ANativeWindow and provide
it to a NativeActivity.

Change-Id: I890d71b6e15d4af71e6cf81b327961d7061ec1c2

13 years agoMerge "Refactor Stagefright::StartMPEG4Recording()" into gingerbread
James Dong [Thu, 1 Jul 2010 21:11:01 +0000 (14:11 -0700)]
Merge "Refactor Stagefright::StartMPEG4Recording()" into gingerbread

13 years agoMerge "DO NOT MERGE: Add a battery capacity value to the power profile." into gingerbread
Amith Yamasani [Thu, 1 Jul 2010 20:51:27 +0000 (13:51 -0700)]
Merge "DO NOT MERGE: Add a battery capacity value to the power profile." into gingerbread

13 years agoDO NOT MERGE: Add a battery capacity value to the power profile.
Amith Yamasani [Thu, 27 May 2010 17:37:54 +0000 (10:37 -0700)]
DO NOT MERGE: Add a battery capacity value to the power profile.

Can be accessed through PowerProfile.getBatteryCapacity()

Individual device profiles need to be updated with their capacities.

(merged from master)

Change-Id: Ie76ab6de47c44807a46934331665e077a7226566

13 years agoMerge "Fix issue 2811538: System server crash when disconnecting BT headset after...
Eric Laurent [Thu, 1 Jul 2010 18:54:00 +0000 (11:54 -0700)]
Merge "Fix issue 2811538: System server crash when disconnecting BT headset after using SCO off call." into gingerbread

13 years agoRefactor Stagefright::StartMPEG4Recording()
James Dong [Wed, 30 Jun 2010 19:41:16 +0000 (12:41 -0700)]
Refactor Stagefright::StartMPEG4Recording()

- Also, better error handling

Change-Id: Ic18d08dc6489adf92c6a588efa4baca66429b175

13 years agoSupport for writing the extracted data to an .mp4 file in the stagefright commandline...
Andreas Huber [Thu, 1 Jul 2010 15:19:52 +0000 (08:19 -0700)]
Support for writing the extracted data to an .mp4 file in the stagefright commandline tool.

Change-Id: I972324a8fc9757e6e8116b0270ec0882106f8733

13 years agoput the status bar back in the system process
Joe Onorato [Wed, 30 Jun 2010 21:02:37 +0000 (17:02 -0400)]
put the status bar back in the system process

Change-Id: I401b0ac8e3c96b61e787eb18341d18be75b3761d

13 years agoquiet noisy debug spew
Joe Onorato [Wed, 30 Jun 2010 18:48:54 +0000 (14:48 -0400)]
quiet noisy debug spew

Change-Id: I55c3b16f58bbe0ec4c6547c525863a7d16f8263d

13 years agoAdd multiple camera support for in MediaProfiles.
Chih-Chung Chang [Tue, 22 Jun 2010 12:50:55 +0000 (20:50 +0800)]
Add multiple camera support for in MediaProfiles.

Change-Id: Ie89568a0f5f5fd08ede77e33f9a559215d6bed9a

13 years agoFix issue 2811538: System server crash when disconnecting BT headset after using...
Eric Laurent [Thu, 1 Jul 2010 02:41:56 +0000 (19:41 -0700)]
Fix issue 2811538: System server crash when disconnecting BT headset after using SCO off call.

Problem:
When the bluetooth device is removed, the AudioService clears all active SCO connections
and unlinks from the client application's binder interface death.
The problem is that the unlinking is done even if no more connections are active for a given client,
which throws a runtime exception that is not catched causing the system server to crash.

The fix consists in calling unlinkToDeath() in ScoClient.clearCount() only if the number of
active SCO connections for this client is not 0. The NoSuchElementException exception is also
catched when calling unlinkToDeath()

Change-Id: I29a28fcce1a579217cea271956a55778e05d3e37

13 years agoAdd ability to guard a thread against setting its own prio to bg
Christopher Tate [Thu, 1 Jul 2010 00:46:30 +0000 (17:46 -0700)]
Add ability to guard a thread against setting its own prio to bg

The guard is compiled out by default because it adds overhead to
android.os.Process.setPriority().

Change-Id: Ibb2a648c6349b381abb7ae62a358888b04fba871