6035 Commits

Author SHA1 Message Date
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
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
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
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
Mike Lockwood
640992dec9 gps: Unhide GpsStatus.NmeaListener interface for receiving NMEA sentences
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-06 19:19:45 -04:00
Mathias Agopian
265d9c076a added two EGL helpers for selecting a config matching a certain pixelformat or native window type 2009-08-06 16:05:39 -07:00
Mathias Agopian
25ec00fd13 added NATIVE_WINDOW_FORMAT attribute to android_native_window_t 2009-08-06 16:04:29 -07:00
Fred Quintana
8851e163fc - add several common kinds and beef up some others
- change the ContentProviderOperation selection backref store the backref as a long instead of as a string
2009-08-06 15:59:28 -07:00
Android (Google) Code Review
be26ac5835 Merge change 20338
* changes:
  Wipe data on backend before a backup run Append the date to 3.txt so that we can see if/when backup failures occurred   solely from the device/server state Note that these files will probably be deleted from the tree immediately, to   be replaced by the ruby versions.
2009-08-06 15:58:32 -07:00
Andreas Huber
6e1584ccd3 The mp3 decoder now correctly uses microseconds to measure time. One less quirk. 2009-08-06 15:52:12 -07:00
Omari Stephens
864ed1a9d7 Wipe data on backend before a backup run
Append the date to 3.txt so that we can see if/when backup failures occurred
  solely from the device/server state
Note that these files will probably be deleted from the tree immediately, to
  be replaced by the ruby versions.
2009-08-06 15:36:34 -07:00
Android (Google) Code Review
509ca0792b Merge change 20331
* changes:
  KeyInputQueue: get the name of the virtual-keys file from the input-device name
2009-08-06 15:10:57 -07:00
Android (Google) Code Review
341096ffa8 Merge change 20330
* changes:
  EventHub: pass the name of each input device up to Java
2009-08-06 15:10:40 -07:00
Android (Google) Code Review
4d426b9447 Merge change 20333
* changes:
  Clear app data via the Activity Manager, not Package Manager
2009-08-06 15:03:00 -07:00
Christopher Tate
9dfdac5b08 Clear app data via the Activity Manager, not Package Manager
This is because doing it through the Activity Manager also makes sure that the
app has been shut down first, which is quite a desirable invariant for restore
handling.
2009-08-06 14:57:53 -07:00
Mike LeBeau
597543c5e7 am e303d2cf: Send a special respond to the cursor in SuggestionsAdapter to tell it to close itself directly because it may not happen correctly for some cursors currently. This fixes http://b/2036290, which is being caused by http://b/2015069 which we are not fixing f
Merge commit 'e303d2cf94da6bb7f0569fbddd6dfd5b85ed8295'

* commit 'e303d2cf94da6bb7f0569fbddd6dfd5b85ed8295':
  Send a special respond to the cursor in SuggestionsAdapter to tell it to
2009-08-06 14:55:29 -07:00
Mike LeBeau
e303d2cf94 Send a special respond to the cursor in SuggestionsAdapter to tell it to
close itself directly because it may not happen correctly for some cursors
currently. This fixes http://b/2036290, which is being caused by
http://b/2015069 which we are not fixing for Donut, so this is a hack around
that for the time being.
2009-08-06 14:52:15 -07:00
Iliyan Malchev
75b2aed276 KeyInputQueue: get the name of the virtual-keys file from the input-device name
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-08-06 14:52:13 -07:00