24357 Commits

Author SHA1 Message Date
Gilles Debunne
186c1683ce Merge "Text suggestions are enabled for a subset of input types" 2011-08-15 10:07:59 -07:00
Jeff Sharkey
f2452b997c Merge "Change Preferences padding to match UI spec." 2011-08-14 21:18:02 -07:00
Jeff Brown
8b65c902ee Merge "Use PARCELABLE_WIRTE_RETURN_VALUE flag in InputChannel. Bug: 5161290" 2011-08-14 20:13:19 -07:00
Adam Powell
37d81ac316 Merge "Fix bug 4981687 - WiFi connection dialog should dismiss when tapped outside." 2011-08-14 17:38:27 -07:00
Adam Powell
d42bc52030 Fix bug 4981687 - WiFi connection dialog should dismiss when tapped outside.
Be more forceful in how we allow touch outside to dismiss in
non-fullscreen situations. Dialogs will be canceled. Activities will
be finished.

Change-Id: I041a60501319829a2214f9249d154d5513049a0f
2011-08-14 17:16:37 -07:00
Adam Powell
32ab095751 Merge "Fix bug 5159736 - Make DeviceDefault the default" 2011-08-14 16:57:45 -07:00
Adam Powell
6e90a362bc Fix bug 5159736 - Make DeviceDefault the default
Have the framework refer to the DeviceDefault themes for ICS apps that
don't explicitly request another theme.

Change-Id: I27dd0bbaa60f71df4f36e47d260f556d923ba075
2011-08-14 16:49:22 -07:00
Daniel Lehmann
b93ce4ae86 Merge "Several API changes as requested by ES:" 2011-08-14 16:01:59 -07:00
Daniel Lehmann
f188dfda30 Several API changes as requested by ES:
- Switch from resource ids to names to prevent breakage on package upgrade
   Bug:5135277
 - Add SYNC1...SYNC4 columns to StreamItems and StreamItemPhotos
   Bug:5119385
 - Remove ACTION, ACTION_URI from Groups, StreamItems and StreamItemPhotos
   (this reduces db size and prevents click intercepting)
   Bug:5135808
 - Add some raw-contact fields to the StreamItem query
   Bug:5134081

Doing those changes in one block to prevent too many db upgrade steps

Change-Id: I5618e210206e0315b91f5883e6b6b386dccb5881
2011-08-14 15:39:22 -07:00
Elliott Hughes
be414332a1 Fix android.text.format.Time to use GetBooleanField on its boolean field.
Bug: 5162851
Change-Id: I49b1429e86ffa91fbfb8b4c9d1a0c6d30c72621e
2011-08-14 13:31:03 -07:00
Adam Powell
99f09c27a4 Merge "Fix bug 5078498 - Icons jump around on split action bar" 2011-08-12 23:36:20 -07:00
Adam Powell
14b7e2c168 Fix bug 5078498 - Icons jump around on split action bar
Revise measurement and layout code for the lower menu on a split
action bar.

Fix some metrics in the action mode close button and in button bars.

Change-Id: I76215e28ae3b0199162dedd32794b25c9e38a346
2011-08-12 23:34:47 -07:00
Wink Saville
a91f2703ae Merge "Update sim_removed_message string." 2011-08-12 23:22:08 -07:00
Romain Guy
3a5f2e6f09 Merge "<blink/> is not an acceptable default behavior. Bug #5156334" 2011-08-12 19:39:20 -07:00
Dianne Hackborn
9beeb95c80 Merge "Turn off hinting by default for higher density displays." 2011-08-12 19:17:09 -07:00
Dianne Hackborn
f43fa5746e Turn off hinting by default for higher density displays.
Also adds an API for apps to control whether hinting is used.

Change-Id: I1a06b06255fbb8d0f02a8ce48c2cd60019088ed3
2011-08-12 18:59:39 -07:00
Amith Yamasani
f9ef0db88f Merge "Use a weakreference to prevent the static variable from holding an Activity." 2011-08-12 18:35:50 -07:00
Jeff Brown
0a0ab128a6 Use PARCELABLE_WIRTE_RETURN_VALUE flag in InputChannel.
Bug: 5161290

Replace mDisposeAfterWriteToParcel with code that takes advantage
of the standard Parcel API support for releasing resources after
writing a Binder reply.

This change makes it less likely that InputChannels will leak
accidentally when passed across a Binder.

Change-Id: Id37706e7b88d074e8e4ac687c88f0db8963200f2
2011-08-12 18:08:08 -07:00
Amith Yamasani
5d36715a76 am 648dc03c: am 4dbd1bc6: am 5f074067: am 712a8cca: Merge "VolumePreference.onActivityStop only stops playback"
* commit '648dc03cd038a726b25929f9ffc142eb16e891e8':
  VolumePreference.onActivityStop only stops playback
2011-08-12 16:26:57 -07:00
Romain Guy
50d133e290 <blink/> is not an acceptable default behavior.
Bug #5156334

Change-Id: I9f803b090e81f4e490d0cccd6347a0f9f64bd20f
2011-08-12 15:25:28 -07:00
Dianne Hackborn
7c0d8472d0 Merge "Fix some crashes that are happening in the system process." 2011-08-12 15:22:32 -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
Amith Yamasani
352c01e213 Use a weakreference to prevent the static variable from holding an Activity.
Bug: 5057764

Change-Id: If734e3ef4928b21a5e31e0ad50c97da287c3c116
2011-08-12 14:40:43 -07:00
Adam Powell
202a4eae02 Merge "Fix bug 5095223 - ICS action bar incorrectly resizing app icons" 2011-08-12 14:37:37 -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
John Reck
8b84ac9553 Merge "Remove WebDriver" 2011-08-12 14:20:11 -07:00
Gilles Debunne
248b112dda Text suggestions are enabled for a subset of input types
Change-Id: I0e521eec2784af99ff741a1132a3bc3f7b7aa071
2011-08-12 13:57:45 -07:00
John Reck
62e55fc77b Remove WebDriver
Bug: 5155997

Change-Id: I66413032d0be90971fcca2278d96a40d6e221b89
2011-08-12 13:48:20 -07:00
Amith Yamasani
648dc03cd0 am 4dbd1bc6: am 5f074067: am 712a8cca: Merge "VolumePreference.onActivityStop only stops playback"
* commit '4dbd1bc6ae84cb4d0cd28922e917473ec6e53517':
  VolumePreference.onActivityStop only stops playback
2011-08-12 13:16:21 -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
Adam Powell
13ed743503 Merge "Fix bug 5159073 - actionbar titles don't seem to be drawing anymore" 2011-08-12 11:42:15 -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
Wink Saville
35b0777f26 Update sim_removed_message string.
Bug: 5009608
Change-Id: I157e21e747e338749169cd573162218e99580880
2011-08-12 11:16:39 -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
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
Adam Powell
0642fed2a2 Merge "Fix bug 5075761 - Visual assets: CAB states" 2011-08-11 22:00:36 -07:00
Adam Powell
9ca705e323 Fix bug 5075761 - Visual assets: CAB states
Integrate new assets for the contextual action bar (action modes).

Change-Id: I8439196f8b7466ce862e1c21a34b7ae1abf88f36
2011-08-11 21:54:47 -07:00
Ted Bonkenburg
761a6c95b1 Merge "Remove ParcelSurfaceTexture and update MediaPlayer" 2011-08-11 21:52:27 -07:00
Adam Powell
5f5f613005 Merge "Fix bug 5156213 - Fix title visibility states wrt expanded action views." 2011-08-11 20:32:21 -07:00
Adam Powell
71f34174e9 Fix bug 5156213 - Fix title visibility states wrt expanded action views.
Change-Id: I20b5c5ad8112bec17e4cb5d6e568f47005a4e731
2011-08-11 20:09:31 -07:00
Ted Bonkenburg
1ee60119c4 Remove ParcelSurfaceTexture and update MediaPlayer
This removes the ParcelSurfaceTexture class since that functionality has been
folded into Surface.java. The change also updates the MediaPlayer to get rid
of setParcelSurfaceTexture() and modifies setTexture() to use the new Surface
functionality in order to simplify the code.

Change-Id: Iafa75ea3188263928128325d8a726786971b4de4
2011-08-11 19:58:25 -07:00
Xavier Ducrohet
c88ba95921 Merge "Make some methods/fields package private so that layoutlib can access them." 2011-08-11 18:20:09 -07:00
Brandon Keely
145f1c75a9 Core transitions updates for phone and tablet.
Change-Id: I89e21bc56f87d88f39baf5b94e36994563c345d0
2011-08-11 18:16:05 -07:00
Romain Guy
03f156e96f Merge "Remove unnecessary private API" 2011-08-11 17:51:23 -07:00