68928 Commits

Author SHA1 Message Date
John Reck
e6725bcba5 Merge "Fix unhandled navigation path" 2012-03-06 17:05:48 -08:00
John Reck
ff8025b994 Merge "Fix FOCUS_BACKWARD search if view had no id" 2012-03-06 17:04:13 -08:00
Jeff Brown
bba4179dc8 Merge "Don't close the database until all references released." 2012-03-06 16:51:13 -08:00
Jeff Brown
03bd302aeb Don't close the database until all references released.
SQLiteDatabase.close() should call releaseReference() rather than
closing the database immediately.  SQLiteDatabase should also hold
a reference to itself while performing certain operations to
ensure that they complete normally even if another thread closes
the database at the same time.

Fixed a couple of missing or redundant uses of acquireReference()
related to CursorWindows.

To be honest, the reference counting performed by SQLiteClosable should
not be needed, but we're stuck with it in the API.

Bug: 6104842
Change-Id: I3444a697409905d4a36b56418dc7766f5ba76b59
2012-03-06 16:42:56 -08:00
Glenn Kasten
b7a4007563 Merge "Rename fields of AudioSessionRef" 2012-03-06 16:22:30 -08:00
John Reck
1ecebbb27f Fix FOCUS_BACKWARD search if view had no id
Bug: 6126875

Change-Id: I113a7125d71dc3e6cc34d31a669e844a4a882266
2012-03-06 16:08:54 -08:00
John Reck
4fa40371b3 Fix unhandled navigation path
Bug: 6109044
 Tab keys are handled via canTakeFocus & takeFocus (new path)
 Arrow keys are handled by seeing if the keyDown was unhandled (similar to old path)

Change-Id: I825de102de31443b1383a8126992c65a4957dcce
2012-03-06 15:38:09 -08:00
Glenn Kasten
6be5247cc5 Merge "Fix indentation for re-organized code" 2012-03-06 15:23:58 -08:00
Nicolas Roard
b4827c089f Merge "Pass the version down to native" 2012-03-06 14:13:54 -08:00
Gilles Debunne
957c800ac0 Merge "Ellipsize avoids spaces and starts right after text" 2012-03-06 13:57:16 -08:00
Glenn Kasten
dbaf2cc1bf Merge "Rename updateWaitTime since a lock is held" 2012-03-06 13:44:56 -08:00
Glenn Kasten
2bad67f3e3 Rename updateWaitTime since a lock is held
Change-Id: I9bb978cbd0debf5b21676467060f72eebafea3e6
2012-03-06 12:46:21 -08:00
Glenn Kasten
26bbc5c0d3 Fix indentation for re-organized code
Change-Id: I63471cebdbd095b7ad4e481611b785f9b02c7941
2012-03-06 12:14:54 -08:00
Adam Powell
75d022af1f Action buttons are now 1 view instead of 3.
Change-Id: I42afe0e4bd20c3dbe86e2c43a6bc1d776361dca9
2012-03-06 12:06:15 -08:00
Nicolas Roard
18e9886342 Pass the version down to native
Change-Id: Ie240ea9875862288cf09fcfa1113b8e6cb3a7b1d
2012-03-06 11:53:56 -08:00
Fabrice Di Meglio
42b40c0ed8 Merge "Fix bug #4972463 Update CTS tests for TextView textDirection" 2012-03-06 11:48:14 -08:00
Glenn Kasten
9a42ac982e Rename fields of AudioSessionRef
Change-Id: I9f2a66094135c4ac6bec2d3e9db3ac5fbf988ede
2012-03-06 11:43:55 -08:00
Robert Greenwalt
06402e91e9 Merge "Make NDC not block forever and handle restart." 2012-03-06 11:30:28 -08:00
Craig Mautner
135fb111df Merge "Fix deadlock by making DropBoxManager call async." 2012-03-06 11:12:40 -08:00
Eric Laurent
d1f0023ddf Merge "MediaPlayerService: fix AudioSink latency" 2012-03-06 10:53:39 -08:00
Eric Laurent
54682583ba Merge "AudioTrack: relax check on minimum buffer size" 2012-03-06 10:52:18 -08:00
Dianne Hackborn
4f03d35f9c Merge "Fix issues #6103378 and #5959515." 2012-03-06 10:34:18 -08:00
James Dong
b7fdddab0d Merge "Remove unused code - MediaSourceSplitter" 2012-03-06 10:23:58 -08:00
James Dong
bc6b837a60 Merge "There was copy and paste code in JNI to create a DrmConvertedStatus object." 2012-03-06 10:23:51 -08:00
Craig Mautner
26caf7adf6 Fix deadlock by making DropBoxManager call async.
Created a Handler and used it to make sendBroadcast call asynchronously.
Deadlock was caused by WindowManagerService Log.wtf call requiring
ActivityManagerService lock while holding its own lock. At the same time
ActivityManagerService was holding its lock while waiting for
WindowManagerService lock.

Tested by forcing a Log.wtf in
WindowManagerServices.updateWindowsAppsAndRotationAnimationsLocked
inside mAppTokens loop. Then ran 'adb shell monkey -v -v 500000'.
Without this fix it would lock up and reboot within a couple of minutes.
With this fix it runs until the Camera app crashes. But that's a
different bug...

Fixes bug 6112676.

Change-Id: I5b360aa08412d117b1765f01bacd931020509db7
2012-03-06 09:30:18 -08:00
Siva Velusamy
aa52141212 Merge "gltrace: Send vertex attribute data after glDraw() call." 2012-03-06 08:59:32 -08:00
Alex Sakhartchouk
6a1d388282 Merge "First draft of the sample function implementation." 2012-03-06 08:31:54 -08:00
Glenn Kasten
66199cf939 Merge "Remove obsolete references to sched_policy.h" 2012-03-06 08:17:43 -08:00
Glenn Kasten
46c92df26d Merge "Remove references to sched_policy.h" 2012-03-06 08:17:20 -08:00
Derek Sollenberger
6d159451bb Merge "Add missing includes for Mutex.h" 2012-03-06 05:27:31 -08:00
Daniel Sandler
6768c11d60 Merge changes I8343449c,I4eaf69a1
* changes:
  New slide-out mechanism.
  Newly reimplemented PhoneStatusBar, now with fewer windows.
2012-03-06 05:18:10 -08:00
Jeff Brown
1b0cc3ca65 Merge "Rename remove callback methods." 2012-03-05 20:38:12 -08:00
Mathias Agopian
18364b31fc Merge "Add ATRACEs for Buffer indices" 2012-03-05 19:41:29 -08:00
James Dong
5fe7057960 Remove unused code - MediaSourceSplitter
Change-Id: Icf37832a1c234501ee3ff91ff13eece2242425ae
2012-03-05 19:30:08 -08:00
Jeff Brown
97a355a9a1 Merge "Support posting delayed animation/draw callbacks." 2012-03-05 19:05:02 -08:00
James Dong
9864b25bd8 There was copy and paste code in JNI to create a DrmConvertedStatus object.
o This patch removed duplicated code.

Change-Id: Ic3d3461fb8da6fab1b4d19d28b8d9d4abc8a53b1
2012-03-05 18:52:32 -08:00
Dianne Hackborn
6569625bee Fix issues #6103378 and #5959515.
Change-Id: I762d86dd7119c9ac02f4b8803c4a250c6b7637c7
6103378: APR: IOOBE at android.content.pm.PackageParser.generatePackageInfo(
    PackageParser.java:355)
5959515: PackageManager doesn't validate className in setComponentEnabledSetting
2012-03-05 18:49:21 -08:00
Glenn Kasten
403475a894 Remove obsolete references to sched_policy.h
As part of scheduling policy cleanup, remove or isolate
all references to the scheduling policy APIs.

Change-Id: Ia1ea2fe711a399039f25217309e061267744b856
2012-03-05 18:12:45 -08:00
Jeff Brown
5bebea436e Rename remove callback methods.
Change-Id: Ib9ef32fedbe0db2ea5efd250693915d626d7d8ae
2012-03-05 18:09:04 -08:00
Alex Sakhartchouk
43ca3cfa87 First draft of the sample function implementation.
Change-Id: I51bb999419b5b424a8549461a6d91f48f3fc9298
2012-03-05 18:03:32 -08:00
Glenn Kasten
5298321df2 Remove references to sched_policy.h
As part of scheduling policy cleanup, remove obsolete
references to sched_policy.h and its APIs.

Change-Id: Id957d11dd645cdf9d53dd6c02e568369aef23243
2012-03-05 17:44:04 -08:00
Eric Laurent
380b705924 MediaPlayerService: fix AudioSink latency
The AudioSink latency is currently cached when the associated AudioTrack
is created. However, the AudioTrack latency can change if the AudioTrack is moved
from one output stream to another.
The AudioPlayer must also periodically update its view of the latency
as it is needed to compensate the real audio time used for A/V sync.

This fixes an A/V sync problem seen when switching A2DP on and off while
playing a video.

Change-Id: I28b24049ca114e1af3e24791dcc900f463536ba4
2012-03-05 17:27:11 -08:00
Jeff Brown
2b6cb9a27e Support posting delayed animation/draw callbacks.
This is especially useful for slow animations such as blinking the
cursor, which only needs to happen after a certain amount of time
has elapsed.

Change-Id: If1163a3480078c75d6461eb8f96d8bf8b625534f
2012-03-05 17:21:01 -08:00
Eric Laurent
bd6b74ce46 AudioTrack: relax check on minimum buffer size
Current AudioTrack implementation enforces that the requested audio
buffer size is at least corresponding the audio latency.
This requirement is too strong and leads to problems with current
stagefright and AudioSink implementations when playing over output
streams with long latency.

Ultimately, the AudioSink design should be changed to specify a minimum
buffer size in time or frames units but not in buffer count units.

Change-Id: I8ba603956f92ac49143a8249572665aa548f2f0f
2012-03-05 17:18:36 -08:00
Fabrice Di Meglio
e9c0d1495b Fix bug #4972463 Update CTS tests for TextView textDirection
- move unit tests from Frameworks to CTS

Change-Id: I4598d8e99850f49e660c5bb3fb6025e71c635635
2012-03-05 16:22:22 -08:00
Mathias Agopian
4b97257979 Merge "fixup include paths" 2012-03-05 16:08:26 -08:00
Mathias Agopian
a1549ff1bf fixup include paths
- remove unneeded include deps
- remove some hardcoded include paths

Change-Id: Ifae0e2b2d738e0f94f8525c45be78f4227ce1673
2012-03-05 15:59:38 -08:00
Nick Pelly
3edd8f06cb Merge "Clarify docs for the thread used in BroadcastReceiver.onReceive()" 2012-03-05 15:57:13 -08:00
Jeff Brown
faeac2737d Merge "Change widgets to post invalidate to the animation timer." 2012-03-05 15:38:47 -08:00
Guang Zhu
f89ed89523 Merge "Update to DumpRenderTree test harness" 2012-03-05 15:35:27 -08:00