19535 Commits

Author SHA1 Message Date
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
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
Romain Guy
3a5f2e6f09 Merge "<blink/> is not an acceptable default behavior. Bug #5156334" 2011-08-12 19:39:20 -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
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
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
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
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
Xavier Ducrohet
c88ba95921 Merge "Make some methods/fields package private so that layoutlib can access them." 2011-08-11 18:20:09 -07:00
Romain Guy
03f156e96f Merge "Remove unnecessary private API" 2011-08-11 17:51:23 -07:00
Adam Powell
af6b97ebe0 Fix action bar tabs collapsing when they shouldn't.
Change-Id: Ib0a91722b580802d2b5e3b07c4e57397665a3394
2011-08-11 17:40:59 -07:00
Romain Guy
9d865512f1 Remove unnecessary private API
Change-Id: I2ecb367528ec0691c07153a3d163b82a6ca33fdf
2011-08-11 17:37:02 -07:00
Adam Powell
9cc07c3939 Merge "More fun with action bars and themes!" 2011-08-11 14:59:52 -07:00
Gilles Debunne
a0d3860881 Merge "Added support for colored / thick underlined text." 2011-08-11 14:50:00 -07:00
Adam Powell
f242368f38 More fun with action bars and themes!
Fix bug 5144738 - Allow user to define pressed state asset for action
bar. Added android:actionBarItemBackground theme attribute. This
allows themes to define item pressed states for the action bar
independent of the standard selectableItemBackground.

Fix bug 5145416 - Custom view in action bar should use themed context
when inflating resource ID. Also applies to tab custom views.

Fix bug 5135550 - Tab divider height / Color should match spec. Added
actionBarDivider theme attribute. Similar to actionBarItemBackground
above, this allows apps to maintain proper contrast when the bar has a
different contrast profile than the rest of the activity.

Fix bug 5154778 - Theme.Holo.Light.DarkActionBar in themes.xml and
search_bar.xml are still referencing the deprecated title_bar_shadow
when we should be pointing to ab_solid_shadow_holo

Change-Id: I5ef0084de28a7c2d2fa02ae1752884feab0f8523
2011-08-11 14:33:32 -07:00
Gilles Debunne
dd8f5ed79c Added support for colored / thick underlined text.
Change-Id: Ib0e259dd20546855899bf091f694e41e7051fecb
2011-08-11 13:31:00 -07:00
Kenny Root
e342551e56 Merge "Better errors from copyResource" 2011-08-11 13:27:10 -07:00
Xavier Ducrohet
7f9f99ea11 Make some methods/fields package private so that layoutlib can access them.
Change-Id: I4aeadfbaf8a4f6a459fa19937c21ac23d9e5fb64
2011-08-11 12:57:51 -07:00
Amith Yamasani
712a8cca1f Merge "VolumePreference.onActivityStop only stops playback" 2011-08-11 12:29:34 -07:00
Debashish Chatterjee
9092b6d522 Merge "Added FETCH_VOICEMAIL intent definition in VoicemailContract." 2011-08-11 12:19:01 -07:00
Chet Haase
f43f4e1a4e Merge "Fix behavior of custom animations for LayoutTransition." 2011-08-11 12:16:41 -07:00
Romain Guy
7277f3b9b2 Merge "Document threading limitations on various View methods Bug #5150923" 2011-08-11 11:44:11 -07:00
Matthew Xie
24c2d6bc82 Merge "Revert "Implement switchConnectable with Powered property setting instead of scan modes"" 2011-08-11 11:42:09 -07:00
Dianne Hackborn
8a5c6617d5 Merge "Fix issue #5016544: IME keyboard hides folder rename text field." 2011-08-11 11:38:32 -07:00
Dianne Hackborn
e09cd7914c Merge "New broadcast telling when an app is fully removed." 2011-08-11 11:35:07 -07:00
Romain Guy
e63a4f35c9 Document threading limitations on various View methods
Bug #5150923

Change-Id: I765d8e4d63a1fee7a12b9c2992bec67b4b6d1131
2011-08-11 11:33:31 -07:00
Chet Haase
e115ffeb3a Fix behavior of custom animations for LayoutTransition.
Previously, setting custom animations on a LayoutTransition would cause
those animations to be run not only for changing views in the container, but
for the parent hierarchy of those views as well. This can lead to unexpected
behavior, as seen in the ApiDemos LayoutAnimations and LayoutAnimationsHideShow.
This change changes the behavior so that the parent hierarchy is animated by
the default animations (which change the bounds and scrollX/Y fields) instead
of custom animations.

Change-Id: I9a04d97fabbc34dc0d5809eb3fd8ac08e0801d7c
2011-08-11 11:32:43 -07:00
Ben Murdoch
27dca78ec1 Merge "Allow fractional and signed input for number fields." 2011-08-11 10:29:56 -07:00
Debashish Chatterjee
267a2ec040 Added FETCH_VOICEMAIL intent definition in VoicemailContract.
Content provider does not directly use this intent. But it is fired by
the contacts app to request the voicemail source to fetch voicemail
audio of a single voicemail message.

The constant needs to live in the contracts file to serve as a common
definition between contacts and voicemail source apps.

Bug: 5114261
Change-Id: Ibf7b2a4c871d3561d2ca50d03f8182352fadd3ab
2011-08-11 18:07:25 +01:00
Ben Murdoch
3882486dcd Allow fractional and signed input for number fields.
Bug: 5150575
Change-Id: I36f8dd59f630d77ea3f4ef6271f4cbaaaa3df0ad
2011-08-11 11:08:38 +01:00