3540 Commits

Author SHA1 Message Date
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
Jaikumar Ganesh
eb9d34630f Make Bluetooth Health APIs public.
Fix a few bugs:
  a) Pass a integer token to identify the channel.
  b) Close fds in case of errors.

Change-Id: I2046787be5008769435f2f72a5bd67c19b749da0
2011-09-08 15:17:17 -07:00
Fred Quintana
ad93a323fe Add a form of getAuthToken that both accepts an options Bundle and
doesn't accepts an activity.

Bug: 5278759
Change-Id: I513c9b5d8a907e26b9ad3c0d5977614820a4990c
2011-09-08 14:12:49 -07:00
Dave Santoro
9fefa3c716 Merge "Add raw entities URI for profiles." 2011-09-08 13:38:00 -07:00
Dave Santoro
a8f09b0946 Merge "Add data_set for Settings table as well." 2011-09-08 13:37:43 -07:00
Steve Block
703bde8ca5 Merge "Add FrameLayout.getMeasureAllChildren()" 2011-09-08 10:38:15 -07:00
Dave Santoro
2b4d07519e Add raw entities URI for profiles.
Bug 5274218

Change-Id: Ifc08e5c2fe4aa3d111cfbe896770a1206fa97bbf
2011-09-07 17:37:33 -07:00
Dave Santoro
7c4479f3c9 Add data_set for Settings table as well.
Bug 5156004

Change-Id: Iac0eac2a8a6c3994ba3188e571e39717dcb673e1
2011-09-07 17:14:00 -07:00
Adam Powell
8fc54f9b28 Fix build
Change-Id: I9efe13a7647088402c6759399a96de7831df964b
2011-09-07 16:43:53 -07:00
Adam Powell
b63d3c3aed Merge "Empty implementations of new ActionBar methods." 2011-09-07 16:18:35 -07:00
Fabrice Di Meglio
b6e43268f9 Merge "Hide RTL related APIs" 2011-09-07 16:14:41 -07:00
Adam Powell
0145322e82 Empty implementations of new ActionBar methods.
Makes mocks happy!

Change-Id: Ib69dd3b3e0d62e2d1301103d8e3dfcec5e9b03ab
2011-09-07 16:13:36 -07:00
Fabrice Di Meglio
2273b1e4ea Hide RTL related APIs
Change-Id: Idda458fcdebe7afeb9b95e328e552fcbc7939157
2011-09-07 16:06:49 -07:00
Adam Powell
35b38c044f Merge "Fix bug 5258435 - ActionBar.setBackgroundDrawable" 2011-09-07 15:31:08 -07:00
Adam Powell
f88b915567 Fix bug 5258435 - ActionBar.setBackgroundDrawable
Fix this call to work properly and add methods for setting
split/stacked bar backgrounds to match existing styleable elements.

Change-Id: I8c6b1c598af1110f84a9098683d8e0226daf2e27
2011-09-07 14:55:47 -07:00
Wu-cheng Li
cb58757d2f Merge "Unhide camera video snapshot supported API." 2011-09-07 14:53:45 -07:00
Irfan Sheriff
1a58dce0cc Merge "Add feature definition for Wi-Fi Direct" 2011-09-07 14:50:32 -07:00
Irfan Sheriff
45b8b46499 Add feature definition for Wi-Fi Direct
Bug: 5267396
Change-Id: I4f61b0afd1466420ab951f6d74ec444036772b21
2011-09-07 11:51:48 -07:00