6150 Commits

Author SHA1 Message Date
Jeff Sharkey
3b7c3c6b55 Added lightweight exception logging to AsyncQueryHandler.
Without this, it's really hard to debug exceptions coming
over from a ContentProvider.  This is lightweight logging
that is only triggered by an exception, and doesn't write a
full stacktrace.
2009-08-07 13:44:09 -07:00
Christian Sonntag
77095d49f2 make restore tokens shown in hex.
Since they are android ids, it is much easier to use them as hex, since we can just copy then into android inspector and learn more about the restore set.
2009-08-07 13:42:45 -07:00
Android (Google) Code Review
02d34e78f4 Merge change 20439
* changes:
  Fix Bmgr's logic around restore completion
2009-08-07 11:39:55 -07:00
Christopher Tate
08e40b858e Fix Bmgr's logic around restore completion
The caller needs to wait for the restore observer to be informed that the
restore has finished processing before it can safely shut down the restore
session.
2009-08-07 11:35:35 -07:00
Android (Google) Code Review
03a9746200 Merge change 20422
* changes:
  Build the stagefright library by default.
2009-08-07 11:09:44 -07:00
Android (Google) Code Review
7283fc8be6 Merge change 20428
* changes:
  Add constant for storing market backup state in shared preferences.
2009-08-07 11:07:40 -07:00
Eric Fischer
2b4cf35cdb am e6034f6c: Import revised translations.
Merge commit 'e6034f6cd8fc32641f31e5a3cf068b6d56309872'

* commit 'e6034f6cd8fc32641f31e5a3cf068b6d56309872':
  Import revised translations.
2009-08-07 11:04:10 -07:00
Christian Sonntag
058779c9bb Add constant for storing market backup state in shared preferences. 2009-08-07 10:54:46 -07:00
Eric Fischer
e6034f6cd8 Import revised translations. 2009-08-07 10:49:49 -07:00
Android (Google) Code Review
52e37725c8 Merge change 20423
* changes:
  Retain state of wifi connection after restore
2009-08-07 10:45:29 -07:00
Andreas Huber
0d596d4724 Build the stagefright library by default. 2009-08-07 10:40:34 -07:00
Jinghui Guo
9e652dcc21 Touch activation screen shown up fix
During the time of OTA activation screen startup, the app needs
to get MIN by calling getCdmaMin(). The issue in current code is that
OTA app calls getCdmaMin() before framework gets MIN data from lower
layer.

To fix this issue, framework will be providing the following new APIs
to applications for checking if MIN data is ready:
1. isMinInfoReady():
   Check if mMin variable in getCdmaMin() has been assigned a non-null value.
2. registerForSubscriptionInfoReady():
   Apps uses this API to register for notification.
3. unregisterForSubscriptionInfoReady():
   This API is used by apps to unregister notification.

Framework will be sending out the notification in the following situations:
1. when mMin is assigned a non-null MIN value;
2. When app calls register API and MIN is ready.
2009-08-07 10:35:11 -07:00
Eric Laurent
d5603c126a AudioService now differentiates BT headsets and car kits.
The BT headset detection now makes the difference between car kits and headsets, which can be used by audio policy manager.
The headset connection is also detected earlier, that is when the headset is connected and not when the SCO socket is connected as it was the case before. This allows the audio policy manager to suspend A2DP output while ringing if a SCO headset is connected.
2009-08-07 10:31:53 -07:00
Android (Google) Code Review
44495b7134 Merge change 9662
* changes:
  Fix problem in AudioFlinger closeOutput and closeInput.
2009-08-07 10:20:46 -07:00
Android (Google) Code Review
813eee115f Merge change 20424
* changes:
  Fix the scanning panic issue
2009-08-07 10:20:04 -07:00
Eric Laurent
49018a55d1 Fix problem in AudioFlinger closeOutput and closeInput.
There was no garanty that the corresponding thread destructor had been already called when exiting the closeOutput() or closeInput() functions.
This contructor could be called by the thread after the exit condition is signalled. By way of consequence, closeOutputStream() could be called after
we exited closeOutput() function.

To solve the problem, the call to closeOutputStream() or closeInputStream() is moved to closeOutput() or closeInput().
2009-08-07 10:19:09 -07:00
Charles Lu
c98719313b Fix the scanning panic issue
Phone panics while streaming over A2DP and scanning for new device
BluetoothEventLoop should delete reference
2009-08-07 10:17:23 -07:00
Christian Sonntag
c5b5b0fb94 Retain state of wifi connection after restore 2009-08-07 10:00:21 -07:00
Android (Google) Code Review
fcfd7bea4a Merge change 20357
* changes:
  Remove Voice Search constants, factored them out into the Voice Search app.
2009-08-07 09:54:02 -07:00
Android (Google) Code Review
5d1e4c4db0 Merge change 20381
* changes:
  Clean-up of API for filtering contacts by phone or email. The api is now symmetrical.
2009-08-07 09:47:35 -07:00
Android (Google) Code Review
38028f2e28 Merge change 20383
* changes:
  As createCacheFile is called from WebCore instead of http thread now, remove the endCacheTransaction/startTransaction pairs.
2009-08-07 09:46:28 -07:00
Eric Laurent
69682b4c37 Improved unit test code for Audioflinger. 2009-08-07 09:32:06 -07:00
Eric Laurent
8fce46a2b3 Fix lockup in audio flinger threadbase setParameters.
The function checkForNewParameters_l() is called with the ThreadBase mutex mLock locked. In the case where the parameter change implies
an audio parameter modification (e.g. sampling rate) the function sendConfigEvent() is called which tries to lock mLock creating a deadlock.

The fix consists in creating a function equivalent to sendConfigEvent() that must be called with mLock locked and does not lock mLock.

Also added the possibility to have more than one set parameter request pending.
2009-08-07 09:28:40 -07:00
Android (Google) Code Review
1420bf3ec6 Merge change 9674
* changes:
  Fix problem in AudioTrack with 8 bit PCM and direct output.
2009-08-07 09:10:15 -07:00
Android (Google) Code Review
0f0021d36b Merge change 9660
* changes:
  Fix problem in A2DP interface closeOutputStream().
2009-08-07 09:09:10 -07:00
Android (Google) Code Review
79cf293f59 Merge change 9653
* changes:
  Fix getParameters() default implementation.
2009-08-07 09:08:36 -07:00
Eric Laurent
ddb78e7753 Fix issue 2001214: AudioFlinger and AudioPolicyService interfaces should not use pointers as handles to inputs and outputs.
Use integers instead of void* as input/output handles at IAudioFlinger and IAudioPolicyService interfaces.
AudioFlinger maintains an always increasing count of opened inputs or outputs as unique ID.
2009-08-07 00:27:19 -07:00
Android (Google) Code Review
4c35e2c59a Merge change 20400
* changes:
  Add lighting to animated water ripples.
2009-08-06 22:53:05 -07:00
Romain Guy
b62627ea33 Add lighting to animated water ripples. 2009-08-06 22:52:13 -07:00
Jeff Sharkey
bce3ab90c7 am b8560b66: Fix AppWidget layout inflation to resolve references.
Merge commit 'b8560b66fd2bdf465a8c7fad983f2236778e8106'

* commit 'b8560b66fd2bdf465a8c7fad983f2236778e8106':
  Fix AppWidget layout inflation to resolve references.
2009-08-06 21:56:53 -07:00
Jeff Sharkey
b8560b66fd Fix AppWidget layout inflation to resolve references.
When RemoteViews inflates a layout and set of actions, it
uses a cloned remote Context so it can fully access the
resources needed to complete the inflate.  However, in one
specific case when inflating the root view, LayoutInflater
calls back to the soon-to-be parent view to request the
correct set of LayoutParams through generateLayoutParams().

The default implementation of generateLayoutParams() uses
the Context of the /local/ View instead of the remote
Context being used for the inflation, which means that any
LayoutParam references in the root view are unresolved.

To fix this, we internally create our own copy of the target
remote Context.  This way, when the remote LayoutInflater
calls generateLayoutParams(), we inflate it using the remote
Context to correctly resolve any references.

This change is required as part of http://b/2038594
2009-08-06 21:53:56 -07:00
Mathias Agopian
6693f23654 better error handling 2009-08-06 20:46:44 -07:00
Dmitri Plotnikov
d4e0b5713a Clean-up of API for filtering contacts by phone or email. The api is now symmetrical.
Also, giving Presence.RAW_CONTACT_ID and Presence.DATA_ID unique ids to allow easy joining.  The main rationale for this is that SQLite does not allow cross-database joins in VIEWs, so we cannot hide this join inside a VIEW.
2009-08-06 20:19:29 -07:00
Grace Kloba
bf951c5afd As createCacheFile is called from WebCore instead of http thread now, remove
the endCacheTransaction/startTransaction pairs.
2009-08-06 18:44:02 -07:00
Yu Shan Emily Lau
6874e3df0e am 3397f169: Capture the start and end memory usage in the output file. Move the start memory catpure after 10 loops.
Merge commit '3397f16949d2e86442c32f3b82d5ee3ace99ba82'

* commit '3397f16949d2e86442c32f3b82d5ee3ace99ba82':
  Capture the start and end memory usage in the output file. Move the start memory catpure after 10 loops.
2009-08-06 18:14:39 -07:00
Dmitri Plotnikov
8dcd14021c Introducing default email and phone number to replace the primary ones on the Contact. 2009-08-06 18:02:30 -07:00
Yu Shan Emily Lau
3397f16949 Capture the start and end memory usage in the output file. Move the start memory catpure after 10 loops. 2009-08-06 17:42:29 -07:00
Android (Google) Code Review
c1879a0933 Merge change 20365
* changes:
  oops, EGLConfig of value zero may be valid
2009-08-06 17:15:11 -07:00
Mathias Agopian
d7ef08c08d oops, EGLConfig of value zero may be valid 2009-08-06 17:14:10 -07:00
Android (Google) Code Review
35b8aed595 Merge change 20356
* changes:
  Add viewport meta tag to our staged failure code so that they will render correctly.
2009-08-06 17:02:00 -07:00
Grace Kloba
3ef554e6fb Add viewport meta tag to our staged failure code so that they will render correctly. 2009-08-06 16:52:14 -07:00
Alex Gruenstein
50dac8c673 Remove Voice Search constants, factored them out into the Voice Search app. 2009-08-06 16:51:51 -07:00
Android (Google) Code Review
19985b74de Merge change 20351
* changes:
  make sure bootanimation will choose the right config wrt the native surface
2009-08-06 16:42:12 -07:00
Mathias Agopian
738b9a4539 make sure bootanimation will choose the right config wrt the native surface 2009-08-06 16:41:02 -07:00
Karl Rosaen
332aaaf92f am a7a3b6ef: Dismiss both the soft keyboard and the search dialog on back if there is no text entered and no shortcuts are being obscured by the soft keyboard.
Merge commit 'a7a3b6ef0fdaf6b17993642b76baf90a03ae0077'

* commit 'a7a3b6ef0fdaf6b17993642b76baf90a03ae0077':
  Dismiss both the soft keyboard and the search dialog on back if there is no text entered and no shortcuts are being obscured by the soft keyboard.
2009-08-06 16:40:13 -07:00
Android (Google) Code Review
6a411bbb13 Merge change 20309
* changes:
  gps: Unhide GpsStatus.NmeaListener interface for receiving NMEA sentences
2009-08-06 16:36:26 -07:00
Android (Google) Code Review
d7cc1cf437 Merge change 20341
* changes:
  The mp3 decoder now correctly uses microseconds to measure time. One less quirk.
2009-08-06 16:29:25 -07:00
Android (Google) Code Review
43a6d88e4e Merge changes 20345,20346,20347
* changes:
  update most gl tests to use EGLUtils
  added two EGL helpers for selecting a config matching a certain pixelformat or native window type
  added NATIVE_WINDOW_FORMAT attribute to android_native_window_t
2009-08-06 16:27:47 -07:00
Mathias Agopian
a1f6eff297 update most gl tests to use EGLUtils 2009-08-06 16:26:15 -07:00
Karl Rosaen
a7a3b6ef0f Dismiss both the soft keyboard and the search dialog on back if there is no text entered and no shortcuts are being obscured by the soft keyboard.
Fixes bug 2039508.  This makes backing out of the search dialog easier when dismissing the soft keyboard doesn't really
add any value.
2009-08-06 16:23:19 -07:00