Commit Graph

4525 Commits

Author SHA1 Message Date
Eric Laurent
b3687ae925 Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call.
The problem comes from the fact that when the duplicated output is closed after BT headset disconnection, the OUTPUT_CLOSED notification is not sent to AudioSystem. Then the mapping between notification stream and duplicated output cached in AudioSystem is not cleared and next time a notification is played, the duplicated output is selected and the createTrack() request is refused by AudioFlinger as the selected output doesn't exist.
The notification is ignored by AudioFlinger because when it is sent by the terminating playback thread, the thread has already been removed from the playback thread list.

The fix consists in sending the notification in closeOutput() and not when exiting the playback thread.
The same fix is applied to record threads.
2009-09-15 07:10:12 -07:00
Chih-Chung Chang
00900eb354 Fix 2083478: Camera needs an auto-focus cancel API
Change-Id: I13bda991b32aee47e82b5cf9d43b3021c416a9a2
2009-09-15 18:29:03 +08:00
Android (Google) Code Review
f5733b2938 Merge change 24872 into eclair
* changes:
  Fix issue 2115450: a2dp thread is started, even though we are only connected to headset and not playing music.
2009-09-15 02:26:19 -04:00
Android (Google) Code Review
acfb3cf865 Merge change 25013 into eclair
* changes:
  Various fixed for back key handling.
2009-09-15 00:26:45 -04:00
Android (Google) Code Review
b44070812a Merge change 24977 into eclair
* changes:
  add support for RGBX_8888 surfaces in SurfaceFlinger
2009-09-14 21:11:56 -04:00
Mathias Agopian
816d7d0268 add support for RGBX_8888 surfaces in SurfaceFlinger 2009-09-14 18:10:30 -07:00
Android (Google) Code Review
0cb56ea4a0 Merge change 24887 into eclair
* changes:
  Fix http://b/issue?id=2098873 (drawing glitch in SeekBar).
2009-09-14 21:07:00 -04:00
Android (Google) Code Review
14c6452ac4 Merge change 24850 into eclair
* changes:
  Last big work on #1991910: Make swipes work with capacitive keys
2009-09-14 20:56:46 -04:00
Android (Google) Code Review
7bad1e2052 Merge change 24662 into eclair
* changes:
  Fix URI returned by IccProvider.
2009-09-14 20:30:43 -04:00
Android (Google) Code Review
7abf9adcca Merge change 24968 into eclair
* changes:
  Minor perf tweak for fountain.
2009-09-14 20:15:31 -04:00
Android (Google) Code Review
7ae8a14b7d Merge change 24921 into eclair
* changes:
  add system properties for experimenting with sync timeouts.
2009-09-14 19:30:37 -04:00
Android (Google) Code Review
7dcffed3f5 Merge change 24948 into eclair
* changes:
  fix [2117464] SF can crash when calling dumpsys
2009-09-14 19:02:19 -04:00
Android (Google) Code Review
ab0fb1be89 Merge change 24947 into eclair
* changes:
  make sure to update the tail pointer when undoing a dequeue
2009-09-14 19:01:40 -04:00
Mathias Agopian
4790a3c1a2 fix [2117464] SF can crash when calling dumpsys 2009-09-14 15:59:16 -07:00
Android (Google) Code Review
abff9f77d5 Merge change 24932 into eclair
* changes:
  Added a little more logging in OMXCodec.cpp for vendors to be able to reproduce issues...
2009-09-14 18:48:58 -04:00
Mathias Agopian
c7d5601081 make sure to update the tail pointer when undoing a dequeue 2009-09-14 15:48:42 -07:00
Android (Google) Code Review
94b4a1cbcf Merge change 24829 into eclair
* changes:
  Some optizations to wallpaper drawing/scrolling.
2009-09-14 18:45:42 -04:00
Android (Google) Code Review
25c118e7e1 Merge change 24841 into eclair
* changes:
  process: Switch to common cutils sched_policy api
2009-09-14 18:31:39 -04:00
Android (Google) Code Review
e2a605ee35 Merge change 24931 into eclair
* changes:
  Fix the bogus crashes in layout and reliability tests (the device actually went offline).
2009-09-14 18:21:51 -04:00
Android (Google) Code Review
4009d88c72 Merge change 24927 into eclair
* changes:
  Fix a possible NPE in View.
2009-09-14 18:15:59 -04:00
Android (Google) Code Review
46cd3afb02 Merge change 24814 into eclair
* changes:
  Enable log message for tracking issue #2092299.
2009-09-14 17:37:56 -04:00
Android (Google) Code Review
cbb5afe266 Merge change 24847 into eclair
* changes:
  PowerManagerService: Fix keyboard backlight support:
2009-09-14 15:39:16 -04:00
Android (Google) Code Review
aa8c6c7f2c Merge change 24903 into eclair
* changes:
  Fix some LayoutBridge javadoc.
2009-09-14 15:05:49 -04:00
Android (Google) Code Review
cfd82e1078 Merge change 24902 into eclair
* changes:
  Add "rtsp" to the list of URL schemes that get linkified.
2009-09-14 14:54:42 -04:00
Android (Google) Code Review
16b30190fa Merge change 24898 into eclair
* changes:
  Fix the parsing for instrumentation result, some Java exceptions are not reported right now
2009-09-14 14:29:15 -04:00
Android (Google) Code Review
45ae6551f0 Merge change 24816 into donut
* changes:
  TextToSpeech javadoc update.
2009-09-14 13:54:00 -04:00
Android (Google) Code Review
6a47930275 Merge change 24742 into eclair
* changes:
  Apparently I must not use OMX_UseBuffer on either input or output ports on any of the TI components... or else.
2009-09-14 13:08:02 -04:00
Android (Google) Code Review
f07861318b Merge change 24747 into eclair
* changes:
  Use floor to calculate the range to avoid the rounding error triggered scrollbar. The worst case is that you can never scroll down to the last pixel. The old special case can cause problem when getViewWidth/Height have changed which do not match mLastXXSent any more.
2009-09-14 12:27:40 -04:00
Android (Google) Code Review
334c6036a9 Merge change 24683 into eclair
* changes:
  Tell GlobalSearch about searches without a suggestion
2009-09-14 11:30:43 -04:00
Eric Laurent
a6e58fe316 Fix issue 2115450: a2dp thread is started, even though we are only connected to headset and not playing music.
This is due to a regression introduced by change 24114: when no audio tracks are ready for mixing, 0s are written to audio hardware. However this should only happen if tracks have already been mixed since the audio flinger thread woke up.
Also do not write 0s to audio hardware in direct output threads when audio format is not linear PCM.
2009-09-14 02:37:15 -07:00
Android (Google) Code Review
f79cbd93e6 Merge change 24337 into eclair
* changes:
  Fix issue 2107584: media server crash when AudioFlinger fails to allocate memory for track control block.
2009-09-14 02:43:52 -04:00
Android (Google) Code Review
4f5d9bd8b1 Merge change 24673 into eclair
* changes:
  Add tests and misc fixes on keystore.
2009-09-13 23:44:52 -04:00
James Dong
102f777f2c Pass return code from Camera HAL for setParameters().
bug 2116866
2009-09-13 17:12:35 -07:00
Android (Google) Code Review
d44c882e66 Merge change 24509 into eclair
* changes:
  Addressed reviewer comments.
2009-09-13 18:43:38 -04:00
San Mehat
c101e04abb process: Switch to common cutils sched_policy api
Signed-off-by: San Mehat <san@google.com>
2009-09-12 10:48:03 -07:00
Android (Google) Code Review
7b8ce0127d Merge change 24825 into eclair
* changes:
  fix [2111536] [FAST BLOCKER] Device is soft rebooted after ending the call through voice dialer
2009-09-11 22:19:10 -04:00
Mathias Agopian
40d5799622 fix [2111536] [FAST BLOCKER] Device is soft rebooted after ending the call through voice dialer 2009-09-11 19:18:20 -07:00
Android (Google) Code Review
dcf9e36c61 Merge change 24805 into eclair
* changes:
  Don't init wifiChannels until after supplicant up
2009-09-11 21:08:38 -04:00
Android (Google) Code Review
ad95907dc8 Merge change 22561 into eclair
* changes:
  Performance measurement framework:
2009-09-11 21:02:54 -04:00
Android (Google) Code Review
5407268076 Merge change 24789 into eclair
* changes:
  	modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames.java 	modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaPlayerStressTest.java Fix the m4a1 duration and the also fix the random_seek time error in the stress test.
2009-09-11 20:59:42 -04:00
Android (Google) Code Review
1500fcbdd0 Merge change 24754 into eclair
* changes:
  Handle secondary APN connect failures.
2009-09-11 20:53:43 -04:00
Android (Google) Code Review
88b13187aa Merge change 24797 into eclair
* changes:
  Don't backup/restore telephony material from secure settings
2009-09-11 20:04:01 -04:00
Android (Google) Code Review
1f8d2f3d68 Merge change 24609 into eclair
* changes:
  If disk-full, don't crash the system server. Still todo: when we have disk we should trigger the  event again.
2009-09-11 19:24:44 -04:00
Android (Google) Code Review
a7e2314225 Merge change 24773 into eclair
* changes:
  Fix NPE in TelephonyManager.
2009-09-11 18:26:02 -04:00
Android (Google) Code Review
5e2789a98d Merge change 24762 into eclair
* changes:
  dumpstate: Switch back to running as non-root
2009-09-11 17:45:10 -04:00
Android (Google) Code Review
820e5fd516 Merge change 24764 into eclair
* changes:
  Add @Widget annotation to GestureOverlayView to make it usable in ADT.
2009-09-11 17:30:46 -04:00
Android (Google) Code Review
26d0d42181 Merge change 24635 into eclair
* changes:
  Fix issue #1983406: Soft keyboard doesn't show up in an EditText with "digits" attribute set
2009-09-11 16:46:19 -04:00
Android (Google) Code Review
d7d1656a80 Merge change 24735 into eclair
* changes:
  Handle DisconnectRequested message sent by Bluez.
2009-09-11 15:24:01 -04:00
Android (Google) Code Review
d8d41c3280 Merge change 24675 into eclair
* changes:
  change default for dither to true
2009-09-11 14:56:14 -04:00
Android (Google) Code Review
1dcae99ebf Merge change 24475 into eclair
* changes:
  Save and restore partial supplicant data, not the whole file.
2009-09-11 14:23:33 -04:00