summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Improve InstrumentationTestRunner exception handling.Brett Chabot2010-07-072-3/+63
| | | | | | | | | | | | | | | | 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
* Merge "Added Visualizer effect." into gingerbreadEric Laurent2010-07-0722-623/+2499
|\
| * Added Visualizer effect.Eric Laurent2010-07-0722-623/+2499
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | am 2651504c: (-s ours) Merge "Doc change: Add revision notes for Android ↵Dirk Dougherty2010-07-070-0/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * \ Merge "Doc change: Add revision notes for Android 2.2_r2 development ↵Dirk Dougherty2010-07-072-8/+30
| |\ \ | | | | | | | | | | | | platform. Fix some umappable characters in WebView class doc." into froyo
| | * | Doc change: Add revision notes for Android 2.2_r2 development platform. Fix ↵Dirk Dougherty2010-07-022-8/+30
| | | | | | | | | | | | | | | | | | | | | | | | some umappable characters in WebView class doc. Change-Id: I5522406335fbf96164a5b812ec4891c499343d1e
* | | | Merge "Allow application to set two more encoding paramters: video profile ↵James Dong2010-07-075-15/+143
|\ \ \ \ | | | | | | | | | | | | | | | and level" into gingerbread
| * | | | Allow application to set two more encoding paramters: video profile and levelJames Dong2010-07-075-15/+143
| | | | | | | | | | | | | | | | | | | | Change-Id: I673e681cefe184d5c556c612c54600a24a2143e5
* | | | | Merge "Fix some bugs in the MediaProfileReader Because the video and audio ↵James Dong2010-07-072-15/+19
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | encoders were stored in the same map, when we retrieve the name from the map, we can get a incorrect name." into gingerbread
| * | | | | Fix some bugs in the MediaProfileReaderJames Dong2010-07-072-15/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Only send the playback complete notification if a) an error occurred ↵Andreas Huber2010-07-072-20/+37
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | 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
| * | | | | | Only send the playback complete notification if a) an error occurred on any ↵Andreas Huber2010-07-072-20/+37
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "More improvements to the SensorManager documentation" into gingerbreadMathias Agopian2010-07-075-177/+292
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | More improvements to the SensorManager documentationMathias Agopian2010-07-025-177/+292
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8ab79e8787402f0db572226029820b3cf605086f
* | | | | | Fix icon size in intruder alerts.Daniel Sandler2010-07-074-5/+6
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | (Updated test app to confirm the fix.) Change-Id: Ife56cf07f282786162e2ebc5aaddbb24dac6cafd
* | | | | Merge "ALooperRoster no longer holds strong references to handlers and ↵Andreas Huber2010-07-072-8/+40
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | loopers." into gingerbread
| * | | | | ALooperRoster no longer holds strong references to handlers and loopers.Andreas Huber2010-07-072-8/+40
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I038d69b0a34eda1bfc5216d92c837a5ddf4fb802
* | | | | | Make sure the OMX callback thread is properly shutdown after the node goes away.Andreas Huber2010-07-071-0/+9
|/ / / / / | | | | | | | | | | | | | | | Change-Id: Ib0b25855b0dfc191e5529193b4cb519f644a8412
* | | | | Merge "An AHandler can now find its associated ALooper." into gingerbreadAndreas Huber2010-07-075-0/+50
|\ \ \ \ \
| * | | | | An AHandler can now find its associated ALooper.Andreas Huber2010-07-025-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic7087b8dcbc0d9abda272df0cb01b04b006f82ad
* | | | | | Add new native Looper API.Dianne Hackborn2010-07-0212-17/+286
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Fix a bug that prevented the creation of EGL shared contexts." into ↵Mathias Agopian2010-07-021-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | gingerbread
| * | | | | | Fix a bug that prevented the creation of EGL shared contexts.Jamie Gennis2010-07-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6b0ec5ef86abdd4e9083067ba297107cfb094df3
* | | | | | | am 1c8b6ca4: docs: fix misc broken linksScott Main2010-07-026-120/+36
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '1c8b6ca4d7dd7c8263d5224de6e814681a14afa5' into gingerbread * commit '1c8b6ca4d7dd7c8263d5224de6e814681a14afa5': docs: fix misc broken links
| * | | | | | docs: fix misc broken linksScott Main2010-07-026-120/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7294276aff0c80498215870d5d72f7a3a9b2c99a
* | | | | | | Merge "Add an option to ALooper::start that allows it to call back into java ↵Andreas Huber2010-07-022-5/+9
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | or not." into gingerbread
| * | | | | | Add an option to ALooper::start that allows it to call back into java or not.Andreas Huber2010-07-022-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iec172901a04a575d8d350bd162565f04677c3f26
* | | | | | | Merge "Added AMessage::debugString() for debugging purposes." into gingerbreadAndreas Huber2010-07-022-0/+105
|\ \ \ \ \ \ \
| * | | | | | | Added AMessage::debugString() for debugging purposes.Andreas Huber2010-07-012-0/+105
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | Change-Id: Id43ffd2c56d659dc29f37e277f8c7b38f11c1591
* | | | | | | am 7df74471: Merge "Flush binder buffer after setting raw heap to avoid ↵Chih-Chung Chang2010-07-021-0/+1
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | leaking a reference." into froyo Merge commit '7df7447112371fb5e46f6084b55ac2ccdfde139d' into gingerbread * commit '7df7447112371fb5e46f6084b55ac2ccdfde139d': Flush binder buffer after setting raw heap to avoid leaking a reference.
| * | | | | | Merge "Flush binder buffer after setting raw heap to avoid leaking a ↵Chih-Chung Chang2010-07-021-0/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | reference." into froyo
| | * | | | | | Flush binder buffer after setting raw heap to avoid leaking a reference.Chih-Chung Chang2010-07-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | am f80372db: Merge "docs: update device dashboard; add historical chart" ↵Scott Main2010-07-012-22/+66
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | / / / | |_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into froyo Merge commit 'f80372dbc0f4a1b80bebfe5f5124de8d31e0996b' into gingerbread * commit 'f80372dbc0f4a1b80bebfe5f5124de8d31e0996b': docs: update device dashboard; add historical chart
| * | | | | | Merge "docs: update device dashboard; add historical chart" into froyoScott Main2010-07-012-22/+66
| |\ \ \ \ \ \
| | * | | | | | docs: update device dashboard; add historical chartScott Main2010-07-012-22/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iafed4ed927141d34dcdb728918320be2fa2cf151
* | | | | | | | Merge "remove unused YUV formats" into gingerbreadMathias Agopian2010-07-012-18/+24
|\ \ \ \ \ \ \ \
| * | | | | | | | remove unused YUV formatsMathias Agopian2010-07-012-18/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie84616f842c7e0329d68e67e65a65d510558004b
* | | | | | | | | Merge "Log full exception when failing to inflate notification view" into ↵Steve Howard2010-07-011-1/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread
| * | | | | | | | | Log full exception when failing to inflate notification viewSteve Howard2010-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | | | Get to the point of being able to do native drawing.Dianne Hackborn2010-07-014-10/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A little cleanup. Change-Id: I37ef0557abf330d91d6fe47e81d062206b3bc346
* | | | | | | | | | am c03befe3: Fix issue 2811538: System server crash when disconnecting BT ↵Eric Laurent2010-07-010-0/+0
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | / / / / / / / | | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | | | Fix issue 2811538: System server crash when disconnecting BT headset after ↵Eric Laurent2010-07-011-2/+13
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | Make real API for native code to get its window.Dianne Hackborn2010-07-019-55/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added implementation to use ANativeWindow and provide it to a NativeActivity. Change-Id: I890d71b6e15d4af71e6cf81b327961d7061ec1c2
* | | | | | | | Merge "Refactor Stagefright::StartMPEG4Recording()" into gingerbreadJames Dong2010-07-012-152/+186
|\ \ \ \ \ \ \ \
| * | | | | | | | Refactor Stagefright::StartMPEG4Recording()James Dong2010-07-012-152/+186
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Also, better error handling Change-Id: Ic18d08dc6489adf92c6a588efa4baca66429b175
* | | | | | | | Merge "DO NOT MERGE: Add a battery capacity value to the power profile." ↵Amith Yamasani2010-07-012-0/+21
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | into gingerbread
| * | | | | | | | DO NOT MERGE: Add a battery capacity value to the power profile.Amith Yamasani2010-07-012-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Can be accessed through PowerProfile.getBatteryCapacity() Individual device profiles need to be updated with their capacities. (merged from master) Change-Id: Ie76ab6de47c44807a46934331665e077a7226566
* | | | | | | | | Merge "Fix issue 2811538: System server crash when disconnecting BT headset ↵Eric Laurent2010-07-011-2/+13
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after using SCO off call." into gingerbread
| * | | | | | | | | Fix issue 2811538: System server crash when disconnecting BT headset after ↵Eric Laurent2010-06-301-2/+13
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | | Support for writing the extracted data to an .mp4 file in the stagefright ↵Andreas Huber2010-07-014-5/+80
| |_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commandline tool. Change-Id: I972324a8fc9757e6e8116b0270ec0882106f8733