56410 Commits

Author SHA1 Message Date
Conley Owens
d136456e29 am 9903da81: Merge "Added stub for getting buffer" stub exists
* commit '9903da81cb52f629bffb73748c1da5cdda921ca4':
  added stub for getting buffer from surface texture
2011-08-12 16:26:31 -07:00
Alex Sakhartchouk
c929158f0e Merge "Fix to the memory leak problem." 2011-08-12 15:29:46 -07:00
Dianne Hackborn
7c0d8472d0 Merge "Fix some crashes that are happening in the system process." 2011-08-12 15:22:32 -07:00
Marco Nelissen
585f727b38 Merge "Don't remove effects on session 0" 2011-08-12 15:17:26 -07:00
Dianne Hackborn
61aa9f3b56 Merge "Don't use HW accel drawing in lock screen on lower-end devices." 2011-08-12 15:16:54 -07:00
Jason Sams
f5af42933d Merge "Fix the RS frame timeout. Previous a slow app would block from receiving new commands until the timer expired. This change will expire the timer immediatly." 2011-08-12 15:16:39 -07:00
claireho
2574bf6880 Merge "Thai font update for Bug2954567." 2011-08-12 15:16:21 -07:00
Jason Sams
bfc7891bdd Fix the RS frame timeout.
Previous a slow app would block from receiving new
commands until the timer expired.  This change will
expire the timer immediatly.

Change-Id: I42b949d21f98ee0f1d3156763cd723c3e9cabb67
2011-08-12 15:05:15 -07:00
Marco Nelissen
2255a1e64f Don't remove effects on session 0
b/5159902
Change-Id: Id6f29fb1c687069f7480dd81d4745a558f202226
2011-08-12 14:54:56 -07:00
Adam Powell
202a4eae02 Merge "Fix bug 5095223 - ICS action bar incorrectly resizing app icons" 2011-08-12 14:37:37 -07:00
Romain Guy
e52531121d Merge "Make sure we correctly copy caches keys. Bug #5136067" 2011-08-12 14:35:27 -07:00
Romain Guy
e5df231434 Make sure we correctly copy caches keys.
Bug #5136067

Change-Id: I366e840bef44415436dc7b13d89cfb610feed663
2011-08-12 14:23:53 -07:00
Dianne Hackborn
b375632c9c Don't use HW accel drawing in lock screen on lower-end devices.
This saves about 8MB in the system process because we don't need
to do HW accelerated drawing there anymore.

Change-Id: Ieaf72fe772536e12d10cf129d9338ca9fce6a6d4
2011-08-12 14:23:03 -07:00
Adam Powell
f2b0961944 Fix bug 5095223 - ICS action bar incorrectly resizing app icons
Remove experimental auto-mipmapping of icons.

Change-Id: I326ca396331a050985200b2ecf0d892474262916
2011-08-12 14:21:57 -07:00
Dianne Hackborn
8e8d65ff5f Fix some crashes that are happening in the system process.
- When shutting down, if the screen goes to sleep there is code
  that tries to do a notifyAll without holding the lock:

java.lang.IllegalMonitorStateException: object not locked by thread before notifyAll()
	at java.lang.Object.notifyAll(Native Method)
	at com.android.server.am.ActivityStack.checkReadyForSleepLocked(ActivityStack.java:776)
	at com.android.server.am.ActivityStack$1.handleMessage(ActivityStack.java:282)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at com.android.server.ServerThread.run(SystemServer.java:603)

- If an invalid Uri object is sent to the system process it can crash because
  the Uri class throws an assertion while unmarshalling.  Change this to an
  IllegalArgumentException so it gets sent back to the caller:

java.lang.AssertionError
	at android.net.Uri$PathPart.readFrom(Uri.java:2224)
	at android.net.Uri$HierarchicalUri.readFrom(Uri.java:1106)
	at android.net.Uri$1.createFromParcel(Uri.java:1689)
	at android.net.Uri$1.createFromParcel(Uri.java:1681)
	at android.content.IContentService$Stub.onTransact(IContentService.java:53)
	at android.content.ContentService.onTransact(ContentService.java:120)
	at android.os.Binder.execTransact(Binder.java:338)
	at dalvik.system.NativeStart.run(Native Method)

- StrictMode can try to access the first index in the stack crawl of a stack crawl
  array of length 0.  Not sure why this happens, but make the code more robust:

java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
	at android.app.ApplicationErrorReport$CrashInfo.<init>(ApplicationErrorReport.java:341)
	at android.os.StrictMode$ViolationInfo.<init>(StrictMode.java:1978)
	at android.os.StrictMode$AndroidBlockGuardPolicy.startHandlingViolationException(StrictMode.java:1097)
	at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1068)
	at libcore.io.BlockGuardOs.read(BlockGuardOs.java:137)
	at libcore.io.IoBridge.read(IoBridge.java:426)
	at java.io.FileInputStream.read(FileInputStream.java:179)
	at java.io.InputStream.read(InputStream.java:148)
	at com.android.internal.os.ProcessStats.readFile(ProcessStats.java:804)
	at com.android.internal.os.ProcessStats.getCpuSpeedTimes(ProcessStats.java:564)
	at com.android.internal.os.ProcessStats.getLastCpuSpeedTimes(ProcessStats.java:545)
	at com.android.server.am.ActivityManagerService.updateCpuStatsNow(ActivityManagerService.java:1470)
	at com.android.server.am.ActivityManagerService.batteryNeedsCpuUpdate(ActivityManagerService.java:1522)
	at com.android.internal.os.BatteryStatsImpl$MyHandler.handleMessage(BatteryStatsImpl.java:110)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1302)

(Also fix this code to not cause strict mode to trigger at all, because there is
no need, because this is just reading stuff from /proc.)

- The system seems to crash during boot if it thinks it needs to rotate
  the screen, when it is trying to take the freeze snapshot way too early.
  There is no need to freeze the screen during boot or if the screen is off:

java.lang.NullPointerException
	at android.view.Surface.init(Native Method)
	at android.view.Surface.<init>(Surface.java:256)
	at com.android.server.wm.ScreenRotationAnimation.<init>(ScreenRotationAnimation.java:91)
	at com.android.server.wm.WindowManagerService.startFreezingDisplayLocked(WindowManagerService.java:8758)
	at com.android.server.wm.WindowManagerService.startAppFreezingScreenLocked(WindowManagerService.java:3971)
	at com.android.server.wm.WindowManagerService.startAppFreezingScreen(WindowManagerService.java:4003)
	at com.android.server.am.ActivityRecord.startFreezingScreenLocked(ActivityRecord.java:515)
	at com.android.server.am.ActivityStack.ensureActivityConfigurationLocked(ActivityStack.java:3997)
	at com.android.server.am.ActivityManagerService.updateConfigurationLocked(ActivityManagerService.java:12535)
	at com.android.server.am.ActivityManagerService.updateConfiguration(ActivityManagerService.java:12439)
	at com.android.server.wm.WindowManagerService.systemReady(WindowManagerService.java:6161)
	at com.android.server.ServerThread.run(SystemServer.java:521)

Change-Id: I85062bb5f6b0909a0f52feedaa75e7611d9d7fbd
2011-08-12 14:20:59 -07:00
Jason Simmons
88a2053e58 Merge "Add a null check to handle failure of android::createPlayer" 2011-08-12 14:20:48 -07:00
John Reck
8b84ac9553 Merge "Remove WebDriver" 2011-08-12 14:20:11 -07:00
John Reck
62e55fc77b Remove WebDriver
Bug: 5155997

Change-Id: I66413032d0be90971fcca2278d96a40d6e221b89
2011-08-12 13:48:20 -07:00
Jason Simmons
d9792ac752 Add a null check to handle failure of android::createPlayer
Change-Id: Id56bd0c16104e46d8dc71f13d8a44aefe251fad4
2011-08-12 13:46:55 -07:00
Conley Owens
9903da81cb Merge "Added stub for getting buffer" stub exists 2011-08-12 13:11:51 -07:00
Daniel Sandler
e1fec2408b Merge "Properly disable status bar on secure lockscreens." 2011-08-12 12:56:44 -07:00
Eric Laurent
c498ad6eac Merge "Fix issue 5144429: CTS test fails for AudioEffects" 2011-08-12 12:49:42 -07:00
Andreas Huber
02bb0e4e3b Merge "Fix the software AAC decoder's AAC+ detection to ignore malformed frames" 2011-08-12 12:37:26 -07:00
Jeff Brown
42a2b4cd57 Merge "Add lsof to bugreport." 2011-08-12 12:36:14 -07:00
Mathias Agopian
6e97ed2127 Merge "fix a memory leak and memory corruption in RefBase" 2011-08-12 12:23:54 -07:00
Mathias Agopian
1b84e68a87 Merge "SurfaceFlinger doesn't rely on having a custom RefBase destructor" 2011-08-12 12:23:44 -07:00
Ben Murdoch
d67fee861b Merge "Increase WebView.TAP_TIMEOUT to 300ms to account for trackpad taps." 2011-08-12 11:50:41 -07:00
Daniel Sandler
8b08b88640 Properly disable status bar on secure lockscreens.
(Broken implementation appeared in change I967e455.)

Bug: 5158885
Change-Id: I0e22c269ff76d19bcdd5e51e1722e34fdc025dfa
2011-08-12 14:49:36 -04:00
Chet Haase
b8e9b810a8 Merge "Optimized swipe animation for Recents app." 2011-08-12 11:49:20 -07:00
Adam Powell
13ed743503 Merge "Fix bug 5159073 - actionbar titles don't seem to be drawing anymore" 2011-08-12 11:42:15 -07:00
Andreas Huber
f77493e656 Fix the software AAC decoder's AAC+ detection to ignore malformed frames
at the beginning of the stream.

Change-Id: Ib990848c696896e7d43c80dec8119dec35704b74
related-to-bug: 5122512
2011-08-12 11:38:24 -07:00
Adam Powell
b0e217eacb Fix bug 5159073 - actionbar titles don't seem to be drawing anymore
Change-Id: I2e617438134f1ff9f192d861655b69e4790593fe
2011-08-12 11:36:51 -07:00
Gilles Debunne
1329192fc3 Merge "Bug 5150869: Text selection enabled in browser." 2011-08-12 11:36:50 -07:00
Alex Sakhartchouk
065fa8deb1 Fix to the memory leak problem.
Change-Id: I18dfa76ecae62ed5165415531adf3a13ad992b54
2011-08-12 11:30:30 -07:00
Brandon Keely
2754ef7a4c Merge "Core transitions updates for phone and tablet." 2011-08-12 11:02:33 -07:00
Gilles Debunne
2237829e77 Bug 5150869: Text selection enabled in browser.
After text selection is started, rebuildWebTextView is called, which
calls setHorizontallyScrolling with false (multi-line). This was already
its value, but since there was no test for a value change, the layout was
nulled and this stops the selection mode.

Change-Id: I99aadbf45fca4fbdbe8ab7266fe9a7ff839e2792
2011-08-12 10:43:51 -07:00
Scott Main
3025b10aed cherrypick Change-Id: I8560c5b0ace7ca75031a83270f3eaf2470d04a2c
docs: add missing images for compat mode doc

Change-Id: I5cb04c8e3c555569c88e55693ba67c2c6c93db16
2011-08-12 09:27:13 -07:00
Jean-Michel Trivi
bb04910893 Merge "Pass flags on remote control client information change in intent" 2011-08-12 09:21:27 -07:00
Chet Haase
212f625b71 Optimized swipe animation for Recents app.
Removed the delay after the swipe and before the remaining items
animated into their new places. Also, expanded container of app so
that it no longer clips the swiped thumbnails on the right (on tablet).

Change-Id: I3d757a3b42bf0d1e002fab5b74b47c1e7f4f97a2
2011-08-12 09:19:10 -07:00
Daniel Sandler
d5962a128a Merge "Fixed cleanspec." 2011-08-12 08:46:52 -07:00
Daniel Sandler
b12c6b8e21 Fixed cleanspec.
Change-Id: I3125487d2ffbe389f141537f5a974366e7ce5a91
2011-08-12 11:45:43 -04:00
Daniel Sandler
6c080c8273 Merge "New RSSI cluster in status bar." 2011-08-12 08:40:44 -07:00
Justin Ho
1213697980 Merge "Replacing sans serif system font with Roboto" 2011-08-12 07:25:47 -07:00
Christian Robertson
2e347429df New RSSI cluster in status bar.
Bug: 5147463
2011-08-12 10:15:31 -04:00
Ben Murdoch
adf096c852 Increase WebView.TAP_TIMEOUT to 300ms to account for trackpad taps.
Track pad taps will have a duration of 300ms, so we need to take this
into account when handling touch events in the WebView.

Bug: 5076008
Change-Id: Ia0d7ad88637b1f6b85440283ab29086a5f60fdba
2011-08-12 12:47:00 +01:00
Debashish Chatterjee
ba86443e8b Merge "Set "is_read" = 0 for missed calls." 2011-08-12 02:01:23 -07:00
Debashish Chatterjee
4efaf4ba84 Set "is_read" = 0 for missed calls.
This is needed for an upcoming change in call log that will show only
unread calls in the "new" section.

The field "new" will henceforth only be used for notification.

Bug: 5141185

Change-Id: Id24f815994ce90c89f5907c919ce95043a5d6217
2011-08-12 09:30:10 +01:00
Mathias Agopian
6fe2481392 fix a memory leak and memory corruption in RefBase
we would leak a weakref_impl if a RefBase was never incWeak()'ed.
there was also a dangling pointer that would cause memory corruption
and double-delete when a custom destroyer was used to delay the
execution of ~RefBase.

it turns out that the custom destroyer feature caused most of the
problems, so it's now gone. The only client was SurfaceFlinger
who now handles things on its own.

RefBase is essentially back its "gingerbread" state, but the
code was slightly cleaned-up.

Bug: 5151207, 5084978
Change-Id: Id6ef1d707f96d96366f75068f77b30e0ce2722a5
2011-08-11 22:33:02 -07:00
Mathias Agopian
91b5398018 SurfaceFlinger doesn't rely on having a custom RefBase destructor
we just use a message to the main thread to
destroy our GLES state.
2011-08-11 22:33:02 -07:00
Adam Powell
0642fed2a2 Merge "Fix bug 5075761 - Visual assets: CAB states" 2011-08-11 22:00:36 -07:00