3507 Commits

Author SHA1 Message Date
Chet Haase
59d04a0ce4 am d568bba5: Merge "Optimize handling of scrolled wallpapers" into ics-mr1
* commit 'd568bba507b0f66d4d57c67b08ade894d2c75e53':
  Optimize handling of scrolled wallpapers
2011-10-28 22:44:16 +00:00
Adam Powell
1bc7d4b192 am 65793dc0: Merge "Add API for deferring fragment start." into ics-mr1
* commit '65793dc043eee43790137f79beeba7ed8b123902':
  Add API for deferring fragment start.
2011-10-28 22:27:12 +00:00
Chet Haase
a8e5a2bcd6 Optimize handling of scrolled wallpapers
Swiping the home screen causes the WindowManagerService to do
a bunch of work to keep the wallpapers in sync. First, it lays out
and places all windows. Also, it notifies the SystemUI process that
the wallpaper position has changed.

The layout/place operation is too much work - we only need to set
the position values for the wallpaper, not relayout the whole system.

The notification mechanism must exist, but should be optional. Most
wallpapers don't care (especially static ImageWallpapers). So we'll
give them a new API (WallpaperService.Engine.setWantsOffsets()) to
allow wallpapers to opt out of this process and avoid the performance
overhead.

Change-Id: I66c38375438937f14f6f5550565b28eb204b1e06
2011-10-28 14:49:23 -07:00
Adam Powell
65793dc043 Merge "Add API for deferring fragment start." into ics-mr1 2011-10-28 10:43:33 -07:00
satok
a17b350623 Add a flag for recommended suggestions of the spell checker
Bug: 5356130
Change-Id: I8361a2750670dadd514d02dd24bf492ce42ff8fc
2011-10-28 20:51:14 +09:00
Adam Powell
635c60af62 Add API for deferring fragment start.
Fragments now have the setDeferStart method to signal that a fragment
has lower priority than others. Deferred start fragments will not
always be started immediately; they will be started once any loaders
have finished servicing any outstanding requests. This is useful if
any attached fragments are not immediately visible and can wait to
start until later.

Disabling deferStart on a fragment that is waiting for a deferred
start will start it immediately. Start.

Change-Id: Ia1f004877ca5e88d4f10147d21c7e2e97f141c34
2011-10-27 15:54:51 -07:00
Matthew Xie
ae5839dcad Make public APIs of ACTION_UUID, getUuids, and fetchUuidsWithSdp
Give APP a way to find out if a service is supported by a remote device
bug 5487202

Change-Id: Ie778b3227f29a24cdf61fa0365b82f9a45d439dc
2011-10-27 14:28:46 -07:00
James Dong
b4a9fd9faf am 17a5fb36: Merge "Unhide QVGA related resolution profiles and allow to use QVGA resolution for timelapse video recording." into ics-mr1
* commit '17a5fb36f88d90e30fd656d0d93b540ec2e2b84a':
  Unhide QVGA related resolution profiles and allow to use QVGA resolution for timelapse video recording.
2011-10-27 21:13:54 +00:00
James Dong
17a5fb36f8 Merge "Unhide QVGA related resolution profiles and allow to use QVGA resolution for timelapse video recording." into ics-mr1 2011-10-27 14:09:50 -07:00
RoboErik
6520174f4c am 20345af2: Merge "Add new Calendar APIs to fw" into ics-mr1
* commit '20345af24a50798965f6d295fbe4cc8f78c95e7f':
  Add new Calendar APIs to fw
2011-10-27 20:19:06 +00:00
RoboErik
20345af24a Merge "Add new Calendar APIs to fw" into ics-mr1 2011-10-27 13:13:36 -07:00
RoboErik
4172d95a67 Add new Calendar APIs to fw
b/5317399 b/5309787 b/5207781 b/5347210 Adds apis for a color
table to support future migrations. Adds allowedAttendeeTypes
and allowedAvailabilities for exchange/gsync support. Adds
type_resource for attendees and tentative availability. Documents
that eventTimezone is required for creating an event.

Change-Id: Id3f866c46f76f2b5b098f4961ea09d48f17598c3
2011-10-27 10:50:09 -07:00
James Dong
33fe290ca3 Unhide QVGA related resolution profiles and allow to use QVGA resolution for timelapse video recording.
Change-Id: I328d9fa83a381415d7648218a6fb93b3724bbcc6
related-to-bug: 5343832
2011-10-27 08:47:07 -07:00
satok
cbb7bdff0a am 6f444425: Merge "Make FLAG_AUTO_CORRECTION public" into ics-mr1
* commit '6f444425fe1bb62e12973c5df6a3161bc2aa2ce7':
  Make FLAG_AUTO_CORRECTION public
2011-10-26 20:18:19 +00:00
satok
0f0a3945ef Make FLAG_AUTO_CORRECTION public
Bug: 5440299

Change-Id: Ia82745e793be741c1558ce15b189b63872107ddb
2011-10-26 15:13:28 +09:00
Svetoslav Ganov
021078554b Adding APIs to enable reporting virtual view hierarchies to accessibility serivces.
Added an interface that is the contract for a client to expose a virtual
view hierarchy to accessibility services. Clients impement this interface
and set it in the View that is the root of the virtual sub-tree. Adding
this finctionality via compostion as opposed to inheritance enables apps
to maintain backwards compatibility by setting the accessibility virtual
hierarchy provider on the View only if the API version is high enough.

bug:5382859

Change-Id: I7e3927b71a5517943c6cb071be2e87fba23132bf
2011-10-21 11:45:44 -07:00
Svetoslav Ganov
e261e283ea Add content description setter to RemoteViews
bug:5480389

Change-Id: I66616f379a244ba7f3552d766f3aaa77f207550a
2011-10-18 18:01:47 -07:00
Jeff Brown
825c5132bf Add a CrossProcessCursorWrapper.
Bug: 5220669

The CrossProcessCursorWrapper is a useful building block
for wrapping cursors that will be sent to processes remotely.
It can also transform normal Cursors into CrossProcessCursors
transparently.

The new class fixes common performance problems and bugs
that applications have encountered when implementing
ContentProviders.

Change-Id: Icc59fec10add3f7d8cfbd0495447860c1872c752
2011-10-13 14:24:26 -07:00
Jeff Brown
5e5d6d8ba0 Deprecate local-only CursorWindows.
There is no difference and has never really been a difference
between local-only and remotable CursorWindows.  By removing the
distinction officially in the API, we will make it easier to
implement CrossProcessCursor correctly.  CrossProcessCursor
is problematic currently because it's not clear whether a call
to getWindow() will return a local-only window or a remotable window.
As a result, the bulk cursor adaptor has special case handling
for AbstractWindowedCursors vs. ordinary CrossProcessCursors
so that it can set a remotable window before the cursor fills it.
All these problems go away if we just forget about local-only
windows being special in any way.

Change-Id: Ie59f517968e33d0ecb239c3c4f60206495e8f376
2011-10-12 22:19:41 -07:00
Svetoslav Ganov
8b6c7dd2fe Add AccessibilityRecord#getMaxScrollX and #getMaxScrollY to the pubic API
The methods were hidden for the previoud release since they were added
too close to the SDK final date.

bug:5424373

Change-Id: I812b9809223db75636b04549500f023820b6eb5a
2011-10-11 14:16:41 -07:00
Jeff Sharkey
ad9c5718da am a50d0f89: Merge "Hide quota APIs until finalized." into ics-factoryrom
* commit 'a50d0f8985d811a6a2f49aa65e31892048e96ccf':
  Hide quota APIs until finalized.
2011-10-06 11:22:40 -07:00
Jeff Sharkey
44a3e0d497 Hide quota APIs until finalized.
Bug: 5383656
Change-Id: Ia2a978a6ff2ee642b0ea4d7d6b8857b7efffd612
2011-10-06 10:50:09 -07:00
Dave Santoro
0b61f59d77 Add new permissions for read/write social stream.
This is a manual merge of a change going in to ICS-FactoryROM.

These permissions are needed to separate the (potentially invasive)
access to the user's social stream from the existing read/write
contacts permission.

Per discussion with Android release team, we are also hiding the
stream item API until we figure out a better way to guard the data.

Bug 5406886

Change-Id: I8339d743c3ebe8923c7ee47f2900444efcf82a52
2011-10-04 15:35:48 -07:00
Dave Santoro
7d535138c1 DO NOT MERGE New permissions for social stream.
These permissions are needed to separate the (potentially invasive)
access to the user's social stream from the existing read/write
contacts permission.

Per discussion with Android release team, we are also hiding the
stream item API until we figure out a better way to guard the data.

Bug 5406886

Change-Id: I8339d743c3ebe8923c7ee47f2900444efcf82a52
2011-10-04 15:09:54 -07:00
Jesse Wilson
9c5cacc71a Format NaN and Infinity as Doclava expects.
Change-Id: I500e049132b3254e3b78e08c1875e0dc451b70b6
2011-09-28 17:04:52 -04:00
Jaikumar Ganesh
90fb9aa93a Merge "Make Bluetooth Health constant public." into ics-factoryrom 2011-09-21 17:44:32 -07:00
Jaikumar Ganesh
fd966a124f Make Bluetooth Health constant public.
Change-Id: I366f1231056fe978d85ee80c773d5911badb22e2
2011-09-21 16:03:42 -07:00
Kenny Root
3a9b5fbb97 Unhide new PackageManager APIs for API 14
Change-Id: I83110285ccee39a4cd872a1c2af8357f541833d4
2011-09-20 14:35:10 -07:00
Fred Quintana
b04fe4e82a Continuation of the unified account chooser flow.
- made the UI match the spec
 - added ability to force the account chooser to appear
 - added ability to pass in a description that will override the stock one
 - added ability to pass in requiredFeatures for addAccount
 - added ability to pass in an authTokenType for addAccount

Bug: 5293377
Change-Id: I243c0fd6598c943b1f65753e1f5d3c86629f64f5
2011-09-16 22:55:08 -07:00
Fred Quintana
1121bb5e6f Add a generic account chooser/add account flow for apps.
The activity is launched as follows:
  Account account1 = new Account("account1@gmail.com", "com.google")
  Account account2 = new Account("account2@gmail.com", "com.google")
  ArrayList<Account> accounts = new ArrayList<Account>();
  accounts.add(account1);
  accounts.add(account2);
  String[] accountTypes = new String[]{"com.google", "com.android.exchange"};
  Bundle addAccountOptions = null;
  Intent intent = AccountManager.newChooseAccountIntent(account1, accounts,
    accountTypes, addAccountOptions);
  startActivityForResult(intent, 0);

Change-Id: I05a467bdc3552a2e39397b0182879351f4324389
2011-09-15 17:40:43 -07:00
Dianne Hackborn
90d92e6098 Final (ha ha) API 14.
Change-Id: I164f9add571f7d825a10036e3b8c9e9eb854d732
2011-09-15 00:28:31 -07:00
Svetoslav Ganov
ea515aeafa Update the public APIs for finding views by text to optionally use content description.
1. Added flags to the search method to specify whether to match text or
   content description or both.

2. Added test case for the seach by content description.

3. Updated the code in AccessibilityManager service to reflect the latest
   changes there so test automation service works - this is the fake
   service used for UI automation.

Change-Id: I14a6779a920ff0430e78947ea5aaf876c2e66076
2011-09-14 19:40:33 -07:00
Marius Renn
b861bf305c Merge "Rename of DoodleEffect as part of cleanup (Bug 5287103)." 2011-09-14 17:13:30 -07:00
Dianne Hackborn
0784cfb4b7 ICS is API 14.
Change-Id: I95f500f94ce206ae6ca6938d17537431d8799237
2011-09-14 13:51:59 -07:00
Jean-Michel Trivi
e83f771f0a Merge "Bug 5300223 RemoteControlClient uses PendingIntent" 2011-09-14 09:05:36 -07:00
Jeff Sharkey
d18addb4e3 Remove deprecated TrafficStats API.
Bug: 5314214
Change-Id: If7dc3ef012a0e998e83ab4fef27ff19398d3e14c
2011-09-13 20:43:10 -07:00
Jean-Michel Trivi
6e920e6dac Bug 5300223 RemoteControlClient uses PendingIntent
API change so RemoteControlClient is given a PendingIntent in
 its constructor, which will be used for receiving media button
 events from remote controls.
Leave the old constructors (but hidden) to not break
 current functionality until the AudioManager and AudioService
 implementations have been updated.

Change-Id: Ifa12c8036c948931adc386a827dce2936788e1cd
2011-09-13 19:27:20 -07:00
Marius Renn
ab8b070f09 Rename of DoodleEffect as part of cleanup (Bug 5287103).
The DoodleEffect semantics have been considerably simplified so that the
name no longer fits the effect outcome. Renamed to BitmapOverlayEffect
(EFFECT_BITMAPOVERLAY).

This is the necessary change to the current.txt.

Change-Id: I43fe0e1f99ec6aedbcb53b186ac322cc51ee83ab
2011-09-13 18:22:04 -07:00
Dianne Hackborn
48c5fb1493 API review: Metadata class not used.
The Metadata class doesn't actually seem to be used with anything
in the SDK, and the API probably needs some work, so hide it.

Change-Id: Ifecf49130b90cbb4c588ad8104f1e7957978f789
2011-09-13 16:24:45 -07:00
Irfan Sheriff
651cdfcbac Unhide wifi p2p API
Bug: 5247957
Change-Id: Id93e30c0cb60f361ba13a840de8f843415777336
2011-09-13 16:04:00 -07:00
Svetoslav Ganov
bd5c9768c4 Merge "Adding accessibility delegate mechanism for backwards compatibility support." 2011-09-12 16:58:13 -07:00
Svetoslav Ganov
031d9c1389 Adding accessibility delegate mechanism for backwards compatibility support.
1. Added an AccessibilityDelegate class in View which can be set by
   a client that wants to cutomize accessibility behavior via
   composition as opposed to inheritance. Insead overriding a new method in
   View thus being bound to the API version that introduced this
   method a developer can conditionally inject the accessibility
   customization if the platform API version is heigh enough. The
   developer will have to override the method of interest of the
   delegate. The default implementation of the delegate methods is
   the same as that of View in the case that there is no delegate
   set. If a delegate is set calling an accessibility related method
   on View will be handed off to the corresponsing method of the
   delegate.

bug:5259555

Change-Id: I00e750e22e5e7164a1b571cb3d12ecaf4ab93db4
2011-09-12 15:42:19 -07:00
Dianne Hackborn
b7fd61ee81 Fix build.
Change-Id: I8f0f137649ae69100a2b94706ad9b3861d8dbac0
2011-09-11 11:20:21 -07:00
Dianne Hackborn
1a9c6c97fa Merge "The wave view attributes should not be public." 2011-09-11 10:56:01 -07:00
Dianne Hackborn
acc3012cd0 The wave view attributes should not be public.
Change-Id: I7f021fc79385f5cf2e252389cc5f672f334ee4c4
2011-09-09 18:35:23 -07:00
Adam Powell
dbed072251 Fix build
Change-Id: I2b1ad9f057367873554ca4df0c93050bbbc9ebb7
2011-09-09 18:09:51 -07:00
Romain Guy
1ef3fdbe04 Go faster!!!!
The less we do, the faster we draw.

Change-Id: I7bbc3908b36d8ae295ea3e61ef71fd9ee2187970
2011-09-09 15:34:49 -07:00
Adam Powell
7c8375d652 Bug 5214224 - List item metrics
Base list item padding on the theme. Adjust stock framework list items
to obey this. Adjust text sizes in stock list items based on existing
theme attributes.

Change-Id: I98a441e5494fa1d1d34a5f05e525e54e8b0d78b9
2011-09-09 14:41:37 -07:00
Fred Quintana
7cbfa977ec Merge "Add a form of getAuthToken that both accepts an options Bundle and doesn't accepts an activity." 2011-09-09 09:52:45 -07:00
Marco Nelissen
02ea7d4877 Merge "Fix bug 5045498 Unhide Remote Control Client API" 2011-09-09 08:44:19 -07:00