38182 Commits

Author SHA1 Message Date
Roman Nurik
0a97435c8d Merge "Update icon guidelines for Gingerbread. Also add new, revamped icon templates pack." into gingerbread 2010-12-13 19:12:42 -08:00
Christopher Tate
73a3cb3848 Time out orphaned / unresponsive restore sessions
An app that fires up a restore session but then crashes or drops its
session reference will currently render restore functions totally
unavailable until the device is rebooted.  This CL introduces an
inactivity timeout [currently 60 seconds] on restore sessions, after
which the session is shut down and becomes unavailable to the app
who nominally still held it.

Synchronization between the timeout and the normal asynchronous
use of the session by the application is managed by running both
the timeout action and the normal teardown process on the backup
manager service's handler thread.

Bug 3276362

Change-Id: I1f63b83e96e66b0e7eb15a1e20e375049babf06e
2010-12-13 19:09:47 -08:00
Xavier Ducrohet
90c6b7e639 LayoutLib: Use the new ninepatch API to suppor density.
LayoutLib now compiles against a prebuilt of ninepatch.

Change-Id: I0a1ca60af90933c171ab3aa456b47f0329df2f55
2010-12-13 19:08:38 -08:00
Jeff Brown
29f94b781e Merge "Make framework modifier key handling more precise." 2010-12-13 18:33:00 -08:00
Jeff Brown
28cbf4bd5c Make framework modifier key handling more precise.
Change-Id: I0cc2276b31f882170aea575288f607a3a4ee05d4
2010-12-13 18:31:13 -08:00
Romain Guy
029feb941d Merge "Refactor OpenGLRenderer to simplify OpenGL drawing code." 2010-12-13 18:30:15 -08:00
Romain Guy
70ca14e08a Refactor OpenGLRenderer to simplify OpenGL drawing code.
This is the first step of the refactoring:
- drawColorRect
- drawTextureMesh

Remaining methods to refactor:
- setupTextureAlpha8
- drawPath
- setupShadow
- drawText
- drawLines
- composeLayerRegion

Change-Id: I0fced6a05b6b6eee10ee7cef0c3fbdaa6cefab20
2010-12-13 18:24:33 -08:00
Xavier Ducrohet
28637e3b77 Merge "LayoutLib: implement more of Canvas/Paint." 2010-12-13 18:24:11 -08:00
Gilles Debunne
97d2dadffe Merge "setTextIsSelectable documentation updated." 2010-12-13 18:11:51 -08:00
Adam Powell
09f421481b Merge "Fix bug 3281956 - Cherry-picked from GB" 2010-12-13 18:06:00 -08:00
Roman Nurik
d602b355ba Update icon guidelines for Gingerbread. Also add new, revamped icon templates pack.
Change-Id: Ie02e5e5cade3837e863063bcec8fa5c20a83b1ba
2010-12-13 18:04:41 -08:00
Gilles Debunne
6f100f3895 setTextIsSelectable documentation updated.
Change-Id: Ib48c3b8bba606d8874b92fe56da99eab4f335056
2010-12-13 18:04:20 -08:00
Adam Powell
3cd0c571ea Fix bug 3281956 - Cherry-picked from GB
DO NOT MERGE Fix bug 3124899 - timeout in CTS test
ExpandableListViewBasicTest

A certain sequence of events could cause AbsListView to enter an
infinite event loop. Only report reaching a scroll boundary to the
overscroll code path if the Scroller wants to move further, not if
we're done moving.

Change-Id: Ib61897f619e83b28f08b91e82f2b901cb1739e1a
2010-12-13 18:04:11 -08:00
Jack Palevich
dee4cb07a3 Avoid SIGSEGV in Bitmap_writeToParcel.
SkBitmap::getPixels() can return NULL. The rest of the JNI Bitmap
code treats this NULL as if the SkBitmap has transparent black
pixels. Bitmap_writeToParcel now does the same.

Change-Id: I5e70b42b3d22a8aea898ce342e590000325bd0f9
2010-12-13 17:21:12 -08:00
Jason Sams
5e0035af36 Add support for non-malloc backed textures.
Change-Id: Iee8e987591caa17b4c8186f8173089925140a568
2010-12-13 17:11:21 -08:00
Adam Powell
128b6ba93d Fix bug 3280187 - ActionMode menu content not getting cleared properly when finishing
Fix bug 3279956 - FastScroller resource loading errors

Change-Id: I224b2b820636f88b09740a511aa0a9c480e54a2f
2010-12-13 17:06:03 -08:00
Jaikumar Ganesh
f812760381 Merge "Remove delay with auto connection." 2010-12-13 16:49:50 -08:00
Mathias Agopian
5747bbc206 fix [3176642] Camera preview turns completely black for multiple toggles between camera and camcorder app
There was a leak of Surface tokens when a surface was detached from a UserClient.
We now always detach a surface from its client before attaching to the new one,
this guarantees that its token is freed.

Change-Id: Icfad0b16286ed58155bdfafdf36ab161440aa485
2010-12-13 16:49:05 -08:00
Scott Main
7ec63994c3 Merge "docs: remove getting started guide for preview" 2010-12-13 16:48:43 -08:00
Mathias Agopian
06f9ebf4f6 minor clean-up. SurfaceFlinger doesn't need libpixelflinger.so.
Change-Id: I3bdca74351c8e480a05084bc412a96c5f685221d
2010-12-13 16:47:31 -08:00
Scott Main
04e539eaf4 docs: remove getting started guide for preview
Change-Id: Iabd817c4eeb9433a8b70f8aab09595dc1a0dc0da
2010-12-13 16:47:03 -08:00
Chet Haase
5d1bf63131 Merge "Fix artifact with concurrent add/remove LayoutTransitions" 2010-12-13 16:47:00 -08:00
Xavier Ducrohet
8da36314fd LayoutLib: implement more of Canvas/Paint.
Change-Id: I8e2a7a3bddbce08db5eb641b5075bedd75f7be27
2010-12-13 16:42:01 -08:00
Christopher Tate
3f64f8d8fc Don't restore wildly wrong sized wallpapers
If the dimensions of the original are sufficiently different from the
device's preferred dimensions, just don't restore the image.  This
avoids bad letterboxing / clipping on e.g. phone <-> tablet data
migration.

The expansion/shrinkage ratios used here allow restores of saved
wallpaper images among HVGA devices, among WVGA variants, and
among tablets; but skip restoring wallpapers across those
categories (where severe clipping or letterboxing would occur).

Bug 3261863

Change-Id: I75e75d6401d18f1df10d75796ee04e21d2302cfa
2010-12-13 16:41:24 -08:00
Brad Fitzpatrick
996f41da3c am 2d5b11ab: am 0927c902: Merge "Fix StrictMode javadoc copy/paste error." into gingerbread
* commit '2d5b11aba0fec21e1ce3f358eb0d280b62704899':
  Fix StrictMode javadoc copy/paste error.
2010-12-13 16:30:17 -08:00
Nick Kralevich
b019ef6158 am 30ad1e57: am 9dbef975: Merge "Avoid leaking sockets." into gingerbread
* commit '30ad1e576a445b8ffec12ef148f5d7253ebb6ef4':
  Avoid leaking sockets.
2010-12-13 16:30:10 -08:00
Dianne Hackborn
f25eb95b4c Merge "resolved conflicts for merge of 78e9f4cb to master" 2010-12-13 16:28:01 -08:00
Dan Morrill
096b67f655 GL texture filtering changed from AND to OR, so rename tag name to match.
(<uses-foo> == AND, <supports-foo> == OR, e.g. uses-feature vs.
supports-screen).

Change-Id: I0f20aed7f95169d9adfc7fe128191eb6e49d116f
2010-12-13 16:25:54 -08:00
Chet Haase
e64ea87f96 Fix artifact with concurrent add/remove LayoutTransitions
There was a bug with LayoutTransitions where if the animations
were of different duration (such as in the current status bar clock),
it was possible to end up in a bad situation because the previous animation
might outlast the new animation, causing the opposite end result
from what was expected. The fix was to keep track of the current
add/remove animations and to cancel any running ones prior to starting
new ones.

Change-Id: I884ce33ce0671f6ba6153ee3951c8d14c5ed5714
2010-12-13 16:15:53 -08:00
Jaikumar Ganesh
2d1fc4e3f5 Remove delay with auto connection.
SDP records are now registered with a dbus call so we don't have to wait
for initiating auto connections.

Also reduce time to connect other profiles case by 2 secs.

Change-Id: I8f0eab6a95d3bfaf11a8eb7495a024949639d7fc
2010-12-13 15:58:44 -08:00
Jason Sams
d4b23b5444 More API updates.
Change-Id: I754dc645ac08fa25019eed8fd8b7b3c47f178ff2
2010-12-13 15:32:35 -08:00
Brad Fitzpatrick
2d5b11aba0 am 0927c902: Merge "Fix StrictMode javadoc copy/paste error." into gingerbread
* commit '0927c9026537166cec36b2f9bb8a764ef8a7c606':
  Fix StrictMode javadoc copy/paste error.
2010-12-13 15:27:25 -08:00
James Dong
399623935c Fix an issue where a fixed number of bits per sample is used for seek position calculation.
The patch was from NV.

bug - 3278233

Change-Id: I9bc22b6b0ee6bfa5d4617a8c497f67eb577efca4
2010-12-13 15:26:20 -08:00
Brad Fitzpatrick
0927c90265 Merge "Fix StrictMode javadoc copy/paste error." into gingerbread 2010-12-13 15:25:09 -08:00
Alex Sakhartchouk
271290dc46 Merge "Perf test" 2010-12-13 15:24:20 -08:00
Nick Kralevich
30ad1e576a am 9dbef975: Merge "Avoid leaking sockets." into gingerbread
* commit '9dbef975f0f4370dfe48a0fb040e3d8d1eb91d87':
  Avoid leaking sockets.
2010-12-13 15:05:20 -08:00
Nick Kralevich
9dbef975f0 Merge "Avoid leaking sockets." into gingerbread 2010-12-13 15:03:28 -08:00
Dianne Hackborn
ccc7141313 resolved conflicts for merge of 78e9f4cb to master
Change-Id: I1135361e6d66f524c3f349e2bf1f31bd4191c634
2010-12-13 14:55:25 -08:00
Irfan Sheriff
02fb46a297 WPS fixes and refactor
- Allow IP and proxy set up for WPS
- Use string for WPS pin to avoid losing leading zeros
- Add a seperate WPS state machine and WpsConfiguration class

Change-Id: I87f43fff8bba0ae8ff02e5fc495a8bc628a8c8cf
2010-12-13 14:50:51 -08:00
Alex Sakhartchouk
6b5222dd53 Perf test
Change-Id: I5cfc1b6dd438b13091993d4669e10fb2e49aaa06
2010-12-13 14:48:21 -08:00
Romain Guy
b8c0de2c27 Improve error detection in HardwareRenderer.draw().
Bug #3280872

This should avoid crashes before we detect a GL error and we switch over to
software rendering.

Change-Id: Ieb4992576d20014e194aab863a456f09c5e19672
2010-12-13 14:44:36 -08:00
Romain Guy
c0734f6c8d Merge "Improve error detection in HardwareRenderer.draw(). Bug #3280872" 2010-12-13 14:43:41 -08:00
Dianne Hackborn
78e9f4cbae am e4a59519: Fix issue #3154576: battery stats checkin should include UID -> packages+ map
* commit 'e4a5951925f16f18dae91ed65567e96528f17fee':
  Fix issue #3154576: battery stats checkin should include UID -> packages+ map
2010-12-13 14:37:09 -08:00
Nick Kralevich
2ed20f8768 Avoid leaking sockets.
When a DNS lookup fails, we end up creating a datagram socket
but never properly close it.  This wastes limited valuable file
descriptors and causes CTS test failures.  Generally, we should
ensure that sockets or files are opened in a try block, and closed
in a finally block.

Bug: 3276283
Change-Id: I3432f3bc061268c7367948230f6edbdfcec55892
2010-12-13 14:32:17 -08:00
Dianne Hackborn
e4a5951925 Fix issue #3154576: battery stats checkin should include UID -> packages+ map
Includes some other small fixes to battery collection and a few
other things.

Output of package info looks like this:

5,0,i,uid,1000,com.android.settings
5,0,i,uid,1000,com.android.providers.subscribedfeeds
5,0,i,uid,1000,com.android.providers.settings
5,0,i,uid,1000,com.android.server.vpn
5,0,i,uid,1000,android
5,0,i,uid,1000,com.android.systemui
5,0,i,uid,1000,com.google.android.backup
5,0,i,uid,1001,com.android.phone
5,0,i,uid,1001,com.android.providers.telephony
5,0,i,uid,1022,com.android.nfc
5,0,i,uid,10021,com.google.android.location
5,0,i,uid,10021,com.google.android.syncadapters.calendar
5,0,i,uid,10021,com.google.android.gsf
5,0,i,uid,10021,com.google.android.syncadapters.contacts
5,0,i,uid,10026,com.android.providers.downloads.ui
5,0,i,uid,10026,com.android.providers.media
5,0,i,uid,10026,com.android.providers.drm
5,0,i,uid,10026,com.android.providers.downloads
5,0,i,uid,10032,com.android.launcher
5,0,i,uid,10039,com.google.android.gm
5,0,i,uid,10041,com.google.android.gallery3d
5,0,i,uid,10049,com.android.providers.calendar

Change-Id: I9e38f254eef146339113ad270f5c6e8b60fb7a1d
2010-12-13 14:31:40 -08:00
Brian Carlstrom
ffdd591a82 Merge "Update API for CopyOnWriteArrayList "synchronized" changes" 2010-12-13 14:30:39 -08:00
Jim Miller
7b33148251 Merge "Fix 3253629: Improve Recents panel animation performance." 2010-12-13 14:28:17 -08:00
Brian Carlstrom
502893cdd3 Update API for CopyOnWriteArrayList "synchronized" changes
Change-Id: Iebedcac1275d46d58b33a43418bcb93fbbcd3a0b
2010-12-13 14:26:36 -08:00
Louis Huemiller
f5a1a0b63b Merge "Hardware Composer Stress Test Enhancements" 2010-12-13 14:17:23 -08:00
Brad Fitzpatrick
320274c5f1 Fix StrictMode javadoc copy/paste error.
Change-Id: Idd49111f0a1af6f331cffa0972191b2d4e25a385
2010-12-13 14:07:39 -08:00