6190 Commits

Author SHA1 Message Date
Eric Laurent
c4e58c0f31 Fix issue 2045983 ToneGenerator: fix void statement.
There is a void statement at line 917 of ToneGenerator.cpp: mState == TONE_IDLE;
This problem is harmless as in current code this execution path is never taken; it can only happen if a "new" operator fails in prepareWave() which is a case we usually consider as unlikely in android audio framework.
2009-08-11 09:57:45 -07:00
Hung-ying Tyan
0daf9d0612 Fix a bug in getSocketError() in VpnService. 2009-08-12 00:53:36 +08:00
Android (Google) Code Review
c22e0c8012 Merge change 20719 into donut
* changes:
  Fix order of setting/saving state in VpnService.
2009-08-11 09:44:26 -07:00
Eric Laurent
6c30a71122 Fix issue 2046140: master: media_server crash when powering down A2DP headset while a ringtone is playing.
This is because the AudioFlinger duplicating thread is closed while the output tracks are still active. This cause the output tracks objects to be destroyed at a time where they can be in use by the destination output mixer.

The fix consists in adding the OutputTrack to the track list (mTracks) of its destination thread so that a strong reference is help during the mixer processed and the track is detroyed only when safe by destination thread.

Also added detection of problems when creating the output track (e.g. no more tracks in mixer). In this case the output track is not added to output track list of duplicating thread.
2009-08-11 09:43:09 -07:00
Eric Laurent
33bb0c9f2a Fix issue 2043314: Recorded audio is choppy.
Fixed cut/paste error causing constant reset of current frame index in input buffer.
2009-08-11 09:07:44 -07:00
Android (Google) Code Review
cb2b2378c7 Merge change 20729 into donut
* changes:
  Fix the bug that EXIF attributes are always cached.
2009-08-11 08:54:10 -07:00
Wu-cheng Li
b826bf9182 Fix the bug that EXIF attributes are always cached.
b2039501
2009-08-11 23:37:01 +08:00
Hung-ying Tyan
a2a29b0c8e Fix order of setting/saving state in VpnService.
and also refactor code making sure a thread won't grab two locks (which
may cause deadlocks in some corner cases).
2009-08-11 23:28:59 +08:00
Android (Google) Code Review
44224695de Merge change 20632
* changes:
  call super.finalize() from WebView
2009-08-11 08:17:43 -07:00
Dianne Hackborn
c8a0a75e1c Implement support for scrolling a wallpaper.
This currently only works for a wallpaper that is larger than the
screen.  Set the scroll position with the new wallpaper API.  Right
now only does jump scrolls.
2009-08-11 10:03:16 -04:00
Eric Laurent
2ce89adde4 resolved conflicts for merge of 8af63bc9 to master 2009-08-11 00:01:01 -07:00
Android (Google) Code Review
c8707a91cd Merge change 20699
* changes:
  enable HW acceleration for the Dim Surface on 8k devices
2009-08-10 21:22:00 -07:00
Mathias Agopian
4523b76803 enable HW acceleration for the Dim Surface on 8k devices 2009-08-10 21:13:06 -07:00
Jeff Sharkey
08b75b1ffb New ContentProviderOperation to assert values during batch.
When performing a set of batch operations, some callers need
to enforce that a query has specific values.  For example,
when persisting edited Contact values, we need to assert
that the RawContacts.VERSION matches the version we read out
through queryEntities().

This change adds a new TYPE_ASSERT that uses withValues()
and withSelection(), and checks all values when applying the
batch operation, bailing if any values don't match.
2009-08-10 20:59:20 -07:00
Android (Google) Code Review
3afaaf7ade Merge change 20686
* changes:
  fix the build
2009-08-10 17:46:27 -07:00
Joe Onorato
ee1e253453 fix the build 2009-08-10 17:46:06 -07:00
Dmitri Plotnikov
507f1607f7 Adding a MARKED_AS_DIRTY parameter to Groups. 2009-08-10 17:37:36 -07:00
Android (Google) Code Review
e359b68350 Merge change 20627
* changes:
  Add ro.telephony.disable-call check in dialing.
2009-08-10 17:13:06 -07:00
johnwang
c6f79ce6bc Add operator name in network selection.
Save the operator name during network selection. The name will be used by UI to provide network selection notification. See bug 1414247.

	modified:   java/com/android/internal/telephony/PhoneBase.java
	modified:   java/com/android/internal/telephony/gsm/GSMPhone.java
2009-08-10 17:10:32 -07:00
johnwang
597f2b7022 Add ro.telephony.disable-call check in dialing.
When ro.telephony.disable-call is set to true the phone disable actual calls. It provides a way to test in user-debug builds for stability runs. See bug 2031157.

	modified:   java/com/android/internal/telephony/TelephonyProperties.java
	modified:   java/com/android/internal/telephony/cdma/CdmaCallTracker.java
	modified:   java/com/android/internal/telephony/gsm/GsmCallTracker.java

	modified:   java/com/android/internal/telephony/TelephonyProperties.java
	modified:   java/com/android/internal/telephony/cdma/CdmaCallTracker.java
	modified:   java/com/android/internal/telephony/gsm/GsmCallTracker.java
2009-08-10 17:10:32 -07:00
Karl Rosaen
abf44279ad Fix NPE in SearchDialog (and thereby fix bug 2045398). 2009-08-10 17:09:24 -07:00
Android (Google) Code Review
1fd459f27f Merge change 20674
* changes:
  Add a new setting for controling how much time to wait before discarding uphill operations
2009-08-10 17:00:20 -07:00
Cynthia Wong
0d54b02b75 Add a new setting for controling how much time to wait before discarding uphill operations 2009-08-10 16:53:44 -07:00
Android (Google) Code Review
614cf0b79b Merge change 20677
* changes:
  workaround a bug in the SGX driver that would prevent eglGetConfig to work properly
2009-08-10 16:50:40 -07:00
Mathias Agopian
e6f0f5c8fb workaround a bug in the SGX driver that would prevent eglGetConfig to work properly 2009-08-10 16:48:22 -07:00
Android (Google) Code Review
021fa3fa6f Merge change 20665 into donut
* changes:
  First update of SearchManager docs to reflect the new Donut Quick Search Box feature. This simply cleans up any inconsistencies or weirdnesses, we still need to add the new info for QSB.
2009-08-10 16:38:00 -07:00
Mike LeBeau
8c91dd7ec8 First update of SearchManager docs to reflect the new Donut Quick Search Box feature.
This simply cleans up any inconsistencies or weirdnesses, we still need to add the new
info for QSB.
2009-08-10 16:32:29 -07:00
Android (Google) Code Review
8cb14280d4 Merge change 20660
* changes:
  add the deleted flag to the Groups table
2009-08-10 16:30:16 -07:00
Android (Google) Code Review
2e9c859f20 Merge change 20607
* changes:
  Limit AudioFlinger mixer track sampling rate.
2009-08-10 16:04:29 -07:00
Android (Google) Code Review
a1cbccd7b3 Merge change 20643
* changes:
  Add calendar_sync_window_days setting to control calendar sync window.
2009-08-10 15:53:46 -07:00
Android (Google) Code Review
aaa441fb60 Merge change 20668
* changes:
  Print restore tokens in hex
2009-08-10 15:44:30 -07:00
Christopher Tate
f2c321aeff Print restore tokens in hex 2009-08-10 15:43:36 -07:00
Android (Google) Code Review
1e1b6b7245 Merge change 20514 into donut
* changes:
  Fix bug 2022435. Add new intent and matching extra to signal the completion of the language pack installer. This is used by CL 20513.
2009-08-10 15:23:39 -07:00
Joe Onorato
f415cf2d78 Add two addDefines methods to ScriptC.Builder. They add #defines from the fileds on a class or object that you pass in. 2009-08-10 15:15:52 -07:00
Android (Google) Code Review
5d3b13150d Merge change 20657
* changes:
  Fix possible NPE when mutating a DrawableContainer
2009-08-10 15:12:04 -07:00
Romain Guy
1010ac9b7c Fix possible NPE when mutating a DrawableContainer 2009-08-10 15:11:06 -07:00
Android (Google) Code Review
1f9ef9a2cc Merge change 20654
* changes:
  The build system knows how to deal with lex files, but it treats them as c++, so make spec.lex conform to that.
2009-08-10 15:02:36 -07:00
Joe Onorato
daed524c35 The build system knows how to deal with lex files, but it treats them as c++, so make spec.lex
conform to that.
2009-08-10 15:01:51 -07:00
Ken Shirriff
326580d59a Add calendar_sync_window_days setting to control calendar sync window. 2009-08-10 15:00:11 -07:00
Jason Sams
40a29e8e28 Implement basic allocation readback. Add Get height, width to ScriptC_Lib. 2009-08-10 14:55:26 -07:00
Fred Quintana
00c89f6266 add the deleted flag to the Groups table 2009-08-10 14:54:03 -07:00
Cary Clark
9a4c063874 call super.finalize() from WebView
found by findbugs
http://b/issue?id=1857144
this fixes ViewDebug which otherwise will report the
incorrect number of views
2009-08-10 17:09:51 -04:00
Android (Google) Code Review
c028d09409 Merge change 20640
* changes:
  build libRS
2009-08-10 14:06:22 -07:00
Joe Onorato
01e5fbd721 build libRS 2009-08-10 14:06:01 -07:00
Andreas Huber
ccf8b94169 Expose a variation of the createRenderer API that works on a plain Surface. 2009-08-10 12:58:05 -07:00
Android (Google) Code Review
07cbacc117 Merge change 20622
* changes:
  Remove unused member mHeaderValueIndex
2009-08-10 11:28:39 -07:00
Android (Google) Code Review
49c4112069 Merge change 20611
* changes:
  Deprecate/remove now unused socketpair ipc communication in favour of exclusive binder use.
2009-08-10 11:03:56 -07:00
Cary Clark
3db35b48cc Remove unused member mHeaderValueIndex
found by findBugs
fixes http://b/issue?id=1857163
2009-08-10 14:03:54 -04:00
Andreas Huber
e9ec12c47e Deprecate/remove now unused socketpair ipc communication in favour of exclusive binder use. 2009-08-10 10:29:40 -07:00
Eric Laurent
6f7e097ee5 Limit AudioFlinger mixer track sampling rate.
When changing the audio output stream sampling rate with setParameters() make sure that all tracks have a sampling rate less or equal to 2 times the new output sampling rate.
2009-08-10 08:15:12 -07:00