OSDN Git Service

android-x86/frameworks-base.git
11 years agoMerge "Add new error code for Debug Context work." into jb-mr2-dev
Stephen Hines [Sat, 20 Apr 2013 04:48:18 +0000 (04:48 +0000)]
Merge "Add new error code for Debug Context work." into jb-mr2-dev

11 years agoMerge "Revert all recent GLSurfaceView changes." into jb-mr2-dev
Jeff Brown [Sat, 20 Apr 2013 00:55:48 +0000 (00:55 +0000)]
Merge "Revert all recent GLSurfaceView changes." into jb-mr2-dev

11 years agoMerge "Fix bug #8656546 API REVIEW: android.text.bidi / android.text" into jb-mr2-dev
Fabrice Di Meglio [Sat, 20 Apr 2013 00:42:19 +0000 (00:42 +0000)]
Merge "Fix bug #8656546 API REVIEW: android.text.bidi / android.text" into jb-mr2-dev

11 years agoFix bug #8656546 API REVIEW: android.text.bidi / android.text
Fabrice Di Meglio [Fri, 19 Apr 2013 22:08:53 +0000 (15:08 -0700)]
Fix bug #8656546 API REVIEW: android.text.bidi / android.text

- clean BidiFormatter APIs

Change-Id: I8591ce3c3e8f2de4138698aa14ddb38b933de5e1

11 years agoRevert all recent GLSurfaceView changes.
Jeff Brown [Sat, 20 Apr 2013 00:13:33 +0000 (17:13 -0700)]
Revert all recent GLSurfaceView changes.

Several issues have been identified that will need to be
resolved carefully before we attempt to make similar changes.

1. Some applications make assumptions about the fact that all
   Runnables posted with queueEvent() will be executed before
   the next draw.  Because the Choreographer may post messages
   in the past (due at the frame time), these Runnables were
   not always running at the expected time.

2. Some applications apparently hijack the GLThread and try
   to run their own Looper on it.  This obviously won't work
   if we are already running one of our own.

We may need to add new rendering modes or target API checks
to provide an opportunity for applications to opt-in to the
changes in the future.

Bug: 8649804
Change-Id: I6289c3392a98cdbfaf28c7f4f7a8040f2138a3b4

11 years agoChange doc comment to match API change
Kenny Root [Fri, 19 Apr 2013 22:35:54 +0000 (15:35 -0700)]
Change doc comment to match API change

API change in f0d4777473f25847d67fc17fc082fada08cf678d didn't update a
comment to match which caused doc build failures.

Bug: 8603279
Change-Id: I475dc569747ae5d34b4267537370f18446386bb9

11 years agoMerge "Provide SharedPreferences coherence guarantees for BackupAgent" into jb-mr2-dev
Christopher Tate [Fri, 19 Apr 2013 22:34:01 +0000 (22:34 +0000)]
Merge "Provide SharedPreferences coherence guarantees for BackupAgent" into jb-mr2-dev

11 years agoMerge "do not attempt to parcel unknown ParcelableSpans" into jb-mr2-dev
Victoria Lease [Fri, 19 Apr 2013 22:33:42 +0000 (22:33 +0000)]
Merge "do not attempt to parcel unknown ParcelableSpans" into jb-mr2-dev

11 years agoMerge "Follow up on issue #8159072: Spinner widget should be RTL'ized" into jb-mr2-dev
Dianne Hackborn [Fri, 19 Apr 2013 22:18:12 +0000 (22:18 +0000)]
Merge "Follow up on issue #8159072: Spinner widget should be RTL'ized" into jb-mr2-dev

11 years agoFollow up on issue #8159072: Spinner widget should be RTL'ized
Dianne Hackborn [Fri, 19 Apr 2013 21:09:37 +0000 (14:09 -0700)]
Follow up on issue #8159072: Spinner widget should be RTL'ized

Only allow through changing direction configs for drawables.

Explicitly map layout direction values to an index in the
preload arrays.

Drawables that don't vary by configuration should go in to both
the rtl and ltr preloads.

Change-Id: Ib92dd11738082a795e02d1d4191adb54702d651c

11 years agoMerge "Improve javadoc for rotationAnimation." into jb-mr2-dev
Craig Mautner [Fri, 19 Apr 2013 21:30:20 +0000 (21:30 +0000)]
Merge "Improve javadoc for rotationAnimation." into jb-mr2-dev

11 years agoProvide SharedPreferences coherence guarantees for BackupAgent
Christopher Tate [Thu, 18 Apr 2013 23:57:43 +0000 (16:57 -0700)]
Provide SharedPreferences coherence guarantees for BackupAgent

SharedPreferences uses deferred writes internally, and the public
API doesn't allow apps to explicitly synchronize with this, so the
backup/restore implementation needs to take a little care to make
sure that the app process isn't killed before the deferred writes
land on disk.  This parallels the coherence guarantees around
SharedPreference that the Activity and Service lifecycles provide.

Bug 8659368

Change-Id: I853e54f9fb0d2d260dbe6e40d640959f998092df

11 years agodo not attempt to parcel unknown ParcelableSpans
Victoria Lease [Fri, 19 Apr 2013 20:12:15 +0000 (13:12 -0700)]
do not attempt to parcel unknown ParcelableSpans

Bug: 8639983
Change-Id: I27335f6e9d3a0671ecdd161fdbf765785ef8065d

11 years agoMerge "Correct algorithm property name and clarify javadoc description of device...
Jeff Tinker [Fri, 19 Apr 2013 20:32:35 +0000 (20:32 +0000)]
Merge "Correct algorithm property name and clarify javadoc description of device unique id property." into jb-mr2-dev

11 years agoMerge "Environment should only warn when asked." into jb-mr2-dev
Jeff Sharkey [Fri, 19 Apr 2013 20:32:25 +0000 (20:32 +0000)]
Merge "Environment should only warn when asked." into jb-mr2-dev

11 years agoEnvironment should only warn when asked.
Jeff Sharkey [Fri, 19 Apr 2013 20:25:04 +0000 (13:25 -0700)]
Environment should only warn when asked.

Instead of warning on Process.SYSTEM_UID, which is also used by the
Settings app, change to have the parent process explicitly ask for
warnings.

Bug: 8667286
Change-Id: Ib26676694a4041ff4e6d3ffdcc14055b7eba13c7

11 years agoMerge "Fix system server crash when uninstalling paid LS widget that has been added...
Adam Cohen [Fri, 19 Apr 2013 20:26:02 +0000 (20:26 +0000)]
Merge "Fix system server crash when uninstalling paid LS widget that has been added (issue 8647398)" into jb-mr2-dev

11 years agoMerge "Updating API based on feedback" into jb-mr2-dev
Jason Sams [Fri, 19 Apr 2013 20:09:55 +0000 (20:09 +0000)]
Merge "Updating API based on feedback" into jb-mr2-dev

11 years agoImprove javadoc for rotationAnimation.
Craig Mautner [Fri, 19 Apr 2013 20:06:53 +0000 (13:06 -0700)]
Improve javadoc for rotationAnimation.

Clarified use of rotationAnimation. Did not add a comment
for ROTATION_ANIMATION_CHANGED as that would be inconsistent
with the other twelve <parameter>_CHANGED flags that it
follows in the source code.

Fixes bug 8657715.

Change-Id: I03b5caf3d6a93ca0044f58485c94c7a600e835a8

11 years agoam b20a943a: am 7c0523d0: am 22881a14: am 3ef011d1: am 9ffe5dff: add email links...
Scott Main [Fri, 19 Apr 2013 20:03:12 +0000 (13:03 -0700)]
am b20a943a: am 7c0523d0: am 22881a14: am 3ef011d1: am 9ffe5dff: add email links for android branding bug:8666523

* commit 'b20a943a4e389d8f95e39712ec5acc9c07bcdc47':
  add email links for android branding bug:8666523

11 years agoam e397020d: am 102e9e5a: am 1b95cc41: am 653a00e2: am 6afeb0e5: search suggest tags...
Scott Main [Fri, 19 Apr 2013 20:03:04 +0000 (13:03 -0700)]
am e397020d: am 102e9e5a: am 1b95cc41: am 653a00e2: am 6afeb0e5: search suggest tags for google service docs and exclude a whole bunch from suggestions

* commit 'e397020d4d9144583d4dc05e1ed8ded254b21162':
  search suggest tags for google service docs and exclude a whole bunch from suggestions

11 years agoam 7c0523d0: am 22881a14: am 3ef011d1: am 9ffe5dff: add email links for android brand...
Scott Main [Fri, 19 Apr 2013 19:58:54 +0000 (12:58 -0700)]
am 7c0523d0: am 22881a14: am 3ef011d1: am 9ffe5dff: add email links for android branding bug:8666523

* commit '7c0523d099f9b27c2b1bbdc2ad9a770efd12e629':
  add email links for android branding bug:8666523

11 years agoam 102e9e5a: am 1b95cc41: am 653a00e2: am 6afeb0e5: search suggest tags for google...
Scott Main [Fri, 19 Apr 2013 19:58:51 +0000 (12:58 -0700)]
am 102e9e5a: am 1b95cc41: am 653a00e2: am 6afeb0e5: search suggest tags for google service docs and exclude a whole bunch from suggestions

* commit '102e9e5adf6004dcd503b0ca331c1c2298a4e784':
  search suggest tags for google service docs and exclude a whole bunch from suggestions

11 years agoUpdating API based on feedback
Jason Sams [Fri, 19 Apr 2013 19:56:37 +0000 (12:56 -0700)]
Updating API based on feedback

bug 8656887

This hides the methods used to support Camera
Fixes the oversight in LaunchControl
Documents some missing functions

Change-Id: I5b19b65dd5ddf9917100192c180bb63d89c80679

11 years agoam 22881a14: am 3ef011d1: am 9ffe5dff: add email links for android branding bug:8666523
Scott Main [Fri, 19 Apr 2013 19:55:35 +0000 (12:55 -0700)]
am 22881a14: am 3ef011d1: am 9ffe5dff: add email links for android branding bug:8666523

* commit '22881a1479d172f8896ab1707453c9cc16abd986':
  add email links for android branding bug:8666523

11 years agoam 1b95cc41: am 653a00e2: am 6afeb0e5: search suggest tags for google service docs...
Scott Main [Fri, 19 Apr 2013 19:55:32 +0000 (12:55 -0700)]
am 1b95cc41: am 653a00e2: am 6afeb0e5: search suggest tags for google service docs and exclude a whole bunch from suggestions

* commit '1b95cc41d097d4a1e070b949f46eb13e2fec887a':
  search suggest tags for google service docs and exclude a whole bunch from suggestions

11 years agoam 3ef011d1: am 9ffe5dff: add email links for android branding bug:8666523
Scott Main [Fri, 19 Apr 2013 19:51:18 +0000 (12:51 -0700)]
am 3ef011d1: am 9ffe5dff: add email links for android branding bug:8666523

* commit '3ef011d18557d41964bb47b67d5526fc27d30295':
  add email links for android branding bug:8666523

11 years agoam 653a00e2: am 6afeb0e5: search suggest tags for google service docs and exclude...
Scott Main [Fri, 19 Apr 2013 19:51:15 +0000 (12:51 -0700)]
am 653a00e2: am 6afeb0e5: search suggest tags for google service docs and exclude a whole bunch from suggestions

* commit '653a00e240c618897932c3103dff49c5dbdfb196':
  search suggest tags for google service docs and exclude a whole bunch from suggestions

11 years agoam 9ffe5dff: add email links for android branding bug:8666523
Scott Main [Fri, 19 Apr 2013 19:47:29 +0000 (12:47 -0700)]
am 9ffe5dff: add email links for android branding bug:8666523

* commit '9ffe5dff76704dbd64ee101f12f32d07e69f95f4':
  add email links for android branding bug:8666523

11 years agoam 6afeb0e5: search suggest tags for google service docs and exclude a whole bunch...
Scott Main [Fri, 19 Apr 2013 19:47:26 +0000 (12:47 -0700)]
am 6afeb0e5: search suggest tags for google service docs and exclude a whole bunch from suggestions

* commit '6afeb0e5e7343bcafd9620bfc04c21cad9f08edb':
  search suggest tags for google service docs and exclude a whole bunch from suggestions

11 years agoMerge "Fix NPE issues seen by CTS" into jb-mr2-dev
Irfan Sheriff [Fri, 19 Apr 2013 19:43:46 +0000 (19:43 +0000)]
Merge "Fix NPE issues seen by CTS" into jb-mr2-dev

11 years agoMerge "Improve API and documentation" into jb-mr2-dev
Amith Yamasani [Fri, 19 Apr 2013 19:10:02 +0000 (19:10 +0000)]
Merge "Improve API and documentation" into jb-mr2-dev

11 years agoImprove API and documentation
Amith Yamasani [Fri, 19 Apr 2013 01:40:07 +0000 (18:40 -0700)]
Improve API and documentation

API for querying accounts visible to a specific package.

Improve API and docs for device owner.

Bug: 8657158
Change-Id: I01b8701534f64b383391508a49ae93ed21f22ae0

11 years agoadd email links for android branding
Scott Main [Fri, 19 Apr 2013 18:40:48 +0000 (11:40 -0700)]
add email links for android branding
bug:8666523

Change-Id: Iee2fe78d7b9ab46723cc3407b9a8eede822b359c

11 years agoMerge "Fix NPE when restarting ChooseTypeAndAccountActiivty." into jb-mr2-dev
Carlos Valdivia [Fri, 19 Apr 2013 18:38:33 +0000 (18:38 +0000)]
Merge "Fix NPE when restarting ChooseTypeAndAccountActiivty." into jb-mr2-dev

11 years agoMerge "Deprecate StatFs methods returning small values." into jb-mr2-dev
Jeff Sharkey [Fri, 19 Apr 2013 18:21:08 +0000 (18:21 +0000)]
Merge "Deprecate StatFs methods returning small values." into jb-mr2-dev

11 years agoMerge "Restore dock home support for car docks." into jb-mr2-dev
Daniel Sandler [Fri, 19 Apr 2013 18:00:17 +0000 (18:00 +0000)]
Merge "Restore dock home support for car docks." into jb-mr2-dev

11 years agoMerge "Improve fix for bug #8159072 Spinner widget should be RTL'ized" into jb-mr2-dev
Fabrice Di Meglio [Fri, 19 Apr 2013 17:58:46 +0000 (17:58 +0000)]
Merge "Improve fix for bug #8159072 Spinner widget should be RTL'ized" into jb-mr2-dev

11 years agoMerge "Rename API AndroidKey* -> Key*" into jb-mr2-dev
Kenny Root [Fri, 19 Apr 2013 17:58:00 +0000 (17:58 +0000)]
Merge "Rename API AndroidKey* -> Key*" into jb-mr2-dev

11 years agoMerge "Add getters and private constructor" into jb-mr2-dev
Irfan Sheriff [Fri, 19 Apr 2013 17:56:34 +0000 (17:56 +0000)]
Merge "Add getters and private constructor" into jb-mr2-dev

11 years agoMerge "Fix bug #8654490 android:paddingStart doesn't override android:paddingLeft...
Fabrice Di Meglio [Fri, 19 Apr 2013 17:56:22 +0000 (17:56 +0000)]
Merge "Fix bug #8654490 android:paddingStart doesn't override android:paddingLeft" into jb-mr2-dev

11 years agoFix NPE issues seen by CTS
Irfan Sheriff [Fri, 19 Apr 2013 17:43:40 +0000 (10:43 -0700)]
Fix NPE issues seen by CTS

Bug: 8646305
Change-Id: Ief90c76d63f60aee9a3da080cd43dd9610f3f4fc

11 years agoMerge "Revert "Simple MVC based binding mechanism for android controls."" into jb...
Philip Milne [Fri, 19 Apr 2013 17:53:23 +0000 (17:53 +0000)]
Merge "Revert "Simple MVC based binding mechanism for android controls."" into jb-mr2-dev

11 years agoDeprecate StatFs methods returning small values.
Jeff Sharkey [Thu, 18 Apr 2013 23:00:04 +0000 (16:00 -0700)]
Deprecate StatFs methods returning small values.

Bug: 8656794
Change-Id: Ic904bd1bc016ef48b5a304b7c68250afe23e98bc

11 years agoCorrect algorithm property name and clarify javadoc description of
Jeff Tinker [Fri, 19 Apr 2013 17:04:17 +0000 (10:04 -0700)]
Correct algorithm property name and clarify javadoc description of
device unique id property.

bug: 8603279
Change-Id: If56d568072b3c09e5f63901e285d0eaa3c77ff7a

11 years agoAdd getters and private constructor
Irfan Sheriff [Fri, 19 Apr 2013 16:29:34 +0000 (09:29 -0700)]
Add getters and private constructor

Address API feedback

Bug: 8656930
Change-Id: Idc3dd8d8a7e633449329864e41cab58a6b193b5a

11 years agoRemove STOPSHIP and defer removal.
Robert Greenwalt [Fri, 19 Apr 2013 16:31:24 +0000 (09:31 -0700)]
Remove STOPSHIP and defer removal.

bug:8657300
Change-Id: Ia855fdc0db7a33502838648ee002d4929b224960

11 years agoMerge "Update API" into jb-mr2-dev
Irfan Sheriff [Fri, 19 Apr 2013 16:05:15 +0000 (16:05 +0000)]
Merge "Update API" into jb-mr2-dev

11 years agoUpdate API
Irfan Sheriff [Fri, 19 Apr 2013 16:03:00 +0000 (09:03 -0700)]
Update API

Bug: 8656932
Change-Id: I09a8018f488d4e8ca3eb8c2a798669ebe016dfc8

11 years agoMerge "Fix API name" into jb-mr2-dev
Irfan Sheriff [Fri, 19 Apr 2013 15:56:10 +0000 (15:56 +0000)]
Merge "Fix API name" into jb-mr2-dev

11 years agoMerge "Anti-drift in RCC playback position" into jb-mr2-dev
Jean-Michel Trivi [Fri, 19 Apr 2013 15:55:28 +0000 (15:55 +0000)]
Merge "Anti-drift in RCC playback position" into jb-mr2-dev

11 years agoFix API name
Irfan Sheriff [Fri, 19 Apr 2013 15:39:53 +0000 (08:39 -0700)]
Fix API name

Address council feedback

Bug: 8656932
Change-Id: I92972fc3672afbc38cdeee628c04b639053f7cf3

11 years agoMerge "AudioService: SCO audio backward compatibility" into jb-mr2-dev
Eric Laurent [Fri, 19 Apr 2013 15:39:22 +0000 (15:39 +0000)]
Merge "AudioService: SCO audio backward compatibility" into jb-mr2-dev

11 years agoMerge "Add some documentation to MediaCodecInfo" into jb-mr2-dev
Andreas Huber [Fri, 19 Apr 2013 15:34:15 +0000 (15:34 +0000)]
Merge "Add some documentation to MediaCodecInfo" into jb-mr2-dev

11 years agoFix NPE when restarting ChooseTypeAndAccountActiivty.
Carlos Valdivia [Fri, 19 Apr 2013 08:07:12 +0000 (01:07 -0700)]
Fix NPE when restarting ChooseTypeAndAccountActiivty.

Note that this change still leaves things in an imperfect state. Now instead
of ANR with an NPE it will reshow the Choose account activity and then on the
second back, it will go away. So the user isn't hosed. But it is still a sloppy
experience.  Basically the bug fix reveals another not quite as bad bug
(see https://b/8661942).

Bug: 8151602
Change-Id: I44b188f5940d464c2dd81dd0b6b7cae3c189becd

11 years agoRevert "Simple MVC based binding mechanism for android controls."
Philip Milne [Fri, 19 Apr 2013 03:53:38 +0000 (03:53 +0000)]
Revert "Simple MVC based binding mechanism for android controls."

Fix for bug 8656899 API REVIEW:
android.util.PropertyValueModel/ValueModel,
android.widget.ValueEditor etc

Revert the change that added this API to remove it outright.

This reverts commit 989709a973448980f36dacd587b0a58f89ffa11e

Change-Id: I9018cd8dadb1b1a54ad8749c816bd02bb7e7a38b

11 years agoFix doc build.
Ying Wang [Fri, 19 Apr 2013 03:39:48 +0000 (20:39 -0700)]
Fix doc build.

Change-Id: Ibf0d998721a2851c31529d5b44bf86b1b3df5791

11 years agoImprove fix for bug #8159072 Spinner widget should be RTL'ized
Fabrice Di Meglio [Mon, 15 Apr 2013 21:05:30 +0000 (14:05 -0700)]
Improve fix for bug #8159072 Spinner widget should be RTL'ized

- populate the preloaded drawable cache with only LTR drawables
when the layout direction during preloading is LTR. Populate
the cache with only RTL drawables when the layout direction during
preloading is RTL
- only preload drawables that dont have a dual LTR/RTL version

Change-Id: I7807bdc031b99102609efda75042a9500d96065c

11 years agoMerge "Undeprecate old UsbDeviceConnection methods." into jb-mr2-dev
Jeff Brown [Fri, 19 Apr 2013 02:19:34 +0000 (02:19 +0000)]
Merge "Undeprecate old UsbDeviceConnection methods." into jb-mr2-dev

11 years agoUndeprecate old UsbDeviceConnection methods.
Jeff Brown [Fri, 19 Apr 2013 02:15:17 +0000 (19:15 -0700)]
Undeprecate old UsbDeviceConnection methods.

Per api review, retain the overloads that do not accept a
buffer start offset.

Bug: 8656781
Change-Id: Ie00aca7d3a4708700c5ddf60e3309e609788a67f

11 years agoMerge "Fix restoration of virtual accessibility focus in ListView." into jb-mr2-dev
Svetoslav Ganov [Fri, 19 Apr 2013 02:17:02 +0000 (02:17 +0000)]
Merge "Fix restoration of virtual accessibility focus in ListView." into jb-mr2-dev

11 years agoMerge "Fix change of behavior in Looper.quit()." into jb-mr2-dev
Jeff Brown [Fri, 19 Apr 2013 02:09:19 +0000 (02:09 +0000)]
Merge "Fix change of behavior in Looper.quit()." into jb-mr2-dev

11 years agoFix change of behavior in Looper.quit().
Jeff Brown [Thu, 18 Apr 2013 22:17:48 +0000 (15:17 -0700)]
Fix change of behavior in Looper.quit().

It seems some applications rely on Looper.quit() terminating the
loop immediately without processing all messages.  Rather than
risk breaking them, make the safer behavior optional.

Also take care to properly drain the message queue before quitting
so that all of the Message instances are recycled.  This may
help release storage sooner in case the Looper doesn't get GC'd
promptly and its remaining queue of undelivered messages sticks
around.

Improve docs on runWithScissors.

Bug: 8596303
Change-Id: I8cbeb6f7a5f6b8e618b5109f87a03defc1486b9f

11 years agoUpdate aip/current.txt to fix build.
Ying Wang [Fri, 19 Apr 2013 01:54:57 +0000 (18:54 -0700)]
Update aip/current.txt to fix build.

Change-Id: I3644995bce6102c05b356a709e517c812eca0570

11 years agoRename API AndroidKey* -> Key*
Kenny Root [Fri, 19 Apr 2013 00:57:03 +0000 (17:57 -0700)]
Rename API AndroidKey* -> Key*

Bug: 8657552
Change-Id: Id9102b7c2c2f6d27fba7645f0629750cfe1eb510

11 years agoMerge "Fix issue #8656537: API review: styles, assist" into jb-mr2-dev
Dianne Hackborn [Fri, 19 Apr 2013 01:26:57 +0000 (01:26 +0000)]
Merge "Fix issue #8656537: API review: styles, assist" into jb-mr2-dev

11 years agoFix bug #8654490 android:paddingStart doesn't override android:paddingLeft
Fabrice Di Meglio [Fri, 19 Apr 2013 00:48:37 +0000 (17:48 -0700)]
Fix bug #8654490 android:paddingStart doesn't override android:paddingLeft

- in RTL mode only and if you have left/start or right/end at the same time,
the initial left/right padding (coming from the background drawable or from
some explicit definition) was still used.

- now, override the background left/right initial pading by the left/right one
only and only if there is no start/end padding defined at the same time
(because when start/end are defined, we do not care about left/right padding
except the background ones)

Change-Id: Icc6e69c95ace1307b0c5e9673cbdf3b611b62733

11 years agoAnti-drift in RCC playback position
Jean-Michel Trivi [Tue, 16 Apr 2013 22:28:46 +0000 (15:28 -0700)]
Anti-drift in RCC playback position

Periodically verify that the reported playback position hasn't
 drifted from the estimated playback position.
If a drift is noticed, re-synchronize registered
 IRemoteControlDisplay implementations.

bug 8120740

Note that this implementation updates the playback position
 of  all IRemoteControlDisplay implementations,
 and always causes the OnGetPlaybackPositionListener to be
 called. This might be undesirable in some circumstances
 and will be addressed in a subsequent CL.

Change-Id: Ib9f40e1b000e912f6c35fa03e41adf81efadc894

11 years agoReplacing accessibility service permissions with capability attributes.
Svetoslav [Wed, 17 Apr 2013 01:55:38 +0000 (18:55 -0700)]
Replacing accessibility service permissions with capability attributes.

Accessibility services can perform special operations such as retrieve
the screen content, enable explore by touch, etc. To ensure the user
is aware that the service will perform special operations we were using
permissions. However, the special operations cannot be performed unless
the service is really enabled by the user and it is at this point that
we want to notify the user about the service capabilities.

This change adds capability attributes to the accessibility service's
meta-data XML file. The service has to declare the capability and when
it is enabled we show the user the capabilities in the warining dialog.

bug:8633951

Change-Id: Id3442dc71dad018e606888afdc40834682fdb037

11 years agoMerge "Reload accessibility service infos for reisntalled packages." into jb-mr2-dev
Svetoslav Ganov [Fri, 19 Apr 2013 00:26:02 +0000 (00:26 +0000)]
Merge "Reload accessibility service infos for reisntalled packages." into jb-mr2-dev

11 years agoMerge "Doc change: Eat some permissions group comments." into jb-mr2-dev
Dirk Dougherty [Thu, 18 Apr 2013 23:56:05 +0000 (23:56 +0000)]
Merge "Doc change: Eat some permissions group comments." into jb-mr2-dev

11 years agoDoc change: Eat some permissions group comments.
Dirk Dougherty [Thu, 18 Apr 2013 23:38:01 +0000 (16:38 -0700)]
Doc change: Eat some permissions group comments.

Change-Id: I6db06ed80fbc9e3d71c2a029cc50a6fa954d35b9

11 years agoMerge "Improve error handling for DRM errors reported by plugins" into jb-mr2-dev
Jeff Tinker [Thu, 18 Apr 2013 23:18:46 +0000 (23:18 +0000)]
Merge "Improve error handling for DRM errors reported by plugins" into jb-mr2-dev

11 years agoMerge "Once again, cancel all when notifications canceled for pkg." into jb-mr2-dev
Daniel Sandler [Thu, 18 Apr 2013 23:15:50 +0000 (23:15 +0000)]
Merge "Once again, cancel all when notifications canceled for pkg." into jb-mr2-dev

11 years agoFix issue #8656537: API review: styles, assist
Dianne Hackborn [Thu, 18 Apr 2013 21:10:03 +0000 (14:10 -0700)]
Fix issue #8656537: API review: styles, assist

Change-Id: I5542fb548805fc885b51a1dd1133a3ac226df96b

11 years agoAdd some documentation to MediaCodecInfo
Andreas Huber [Thu, 18 Apr 2013 22:27:20 +0000 (15:27 -0700)]
Add some documentation to MediaCodecInfo

Change-Id: Ia94cde04af37e46b5d4b9c171dc50112134042b8
related-to-bug: 8657165

11 years agoMerge "Sent hint to Wifi driver when enabling WFD." into jb-mr2-dev
Jeff Brown [Thu, 18 Apr 2013 22:16:04 +0000 (22:16 +0000)]
Merge "Sent hint to Wifi driver when enabling WFD." into jb-mr2-dev

11 years agoMerge "don't trigger a render when setting the rendermode" into jb-mr2-dev
Mathias Agopian [Thu, 18 Apr 2013 22:15:22 +0000 (22:15 +0000)]
Merge "don't trigger a render when setting the rendermode" into jb-mr2-dev

11 years agodon't trigger a render when setting the rendermode
Mathias Agopian [Thu, 18 Apr 2013 20:52:58 +0000 (13:52 -0700)]
don't trigger a render when setting the rendermode

also don't cache the rendermode, to mimic the older
behaviour.

Bug: 8656076
Change-Id: Id9383852bed073927db2364f7ac30a1be28b4cd8

11 years agoMerge "Fix ActionBar#setHomeActionContentDescription(0)" into jb-mr2-dev
Adam Powell [Thu, 18 Apr 2013 21:42:21 +0000 (21:42 +0000)]
Merge "Fix ActionBar#setHomeActionContentDescription(0)" into jb-mr2-dev

11 years agoMerge "Add Javadoc" into jb-mr2-dev
Alon Albert [Thu, 18 Apr 2013 21:36:32 +0000 (21:36 +0000)]
Merge "Add Javadoc" into jb-mr2-dev

11 years agoAdd Javadoc
Alon Albert [Thu, 18 Apr 2013 21:26:51 +0000 (14:26 -0700)]
Add Javadoc

Bug: 8657225
Change-Id: Id3cc191ea67011460604a691214b9b09075c5938

11 years agoMerge "Remove BluetoothAdapterCallback. Simplify leScan Api" into jb-mr2-dev
Matthew Xie [Thu, 18 Apr 2013 20:59:43 +0000 (20:59 +0000)]
Merge "Remove BluetoothAdapterCallback. Simplify leScan Api" into jb-mr2-dev

11 years agoFix ActionBar#setHomeActionContentDescription(0)
Adam Powell [Thu, 18 Apr 2013 20:53:27 +0000 (13:53 -0700)]
Fix ActionBar#setHomeActionContentDescription(0)

This call should be analogous to calling
setHomeActionContentDescription(null) and not throw an exception.

Bug 8657256

Change-Id: Ifa9c7b999f4bf1a31fba43f869e234b1f1861512

11 years agoFix system server crash when uninstalling paid LS widget that has been added (issue...
Adam Cohen [Thu, 18 Apr 2013 20:37:05 +0000 (13:37 -0700)]
Fix system server crash when uninstalling paid LS widget that has been added (issue 8647398)

Change-Id: I4acf02dad6bd8347727ca4322d19e15b130a6621

11 years agoMerge "Prevent transformed ops from merging in the first place" into jb-mr2-dev
Chris Craik [Thu, 18 Apr 2013 20:43:24 +0000 (20:43 +0000)]
Merge "Prevent transformed ops from merging in the first place" into jb-mr2-dev

11 years agoPrevent transformed ops from merging in the first place
Chris Craik [Thu, 18 Apr 2013 19:57:07 +0000 (12:57 -0700)]
Prevent transformed ops from merging in the first place

bug:8649215

Previously we prevented ops with non-translate transforms from
merging, but missed the case of the first op in a merging batch
containing a non-translate transform.

This fulfills the assumption of drawText's non-immediate mode that
merged ops will have pure translate transforms.

Change-Id: I6f6db341aff3f7e84e74b4c3ccf970d585a2db1a

11 years agoMerge "Secure broadcasts." into jb-mr2-dev
Robert Greenwalt [Thu, 18 Apr 2013 18:45:53 +0000 (18:45 +0000)]
Merge "Secure broadcasts." into jb-mr2-dev

11 years agoMagnification does not work if no enabled accessibility services.
Svetoslav Ganov [Thu, 18 Apr 2013 17:35:16 +0000 (10:35 -0700)]
Magnification does not work if no enabled accessibility services.

This is a regression in which the input filter of the accessibility
manager service is not set if magnification is enabled but accessibility
is not - i.e. no accessibility serivces are enabled. Fixed the logic to
install the input filter if magnification is on but services are not
enabled in addition to services being enabled.

bug:8652765

Change-Id: Ia73e1064035f95ba0f246f4cabcc42d58c12a11f

11 years agoSecure broadcasts.
Robert Greenwalt [Thu, 18 Apr 2013 17:29:29 +0000 (10:29 -0700)]
Secure broadcasts.

Prevents 3rd party spoofing.

bug:7622253
Change-Id: I1e1a9887afe009d060205e349c31e3aefba2ea5b

11 years agoMerge "Add CellInfoWcdma and related classes." into jb-mr2-dev
Wink Saville [Thu, 18 Apr 2013 17:06:45 +0000 (17:06 +0000)]
Merge "Add CellInfoWcdma and related classes." into jb-mr2-dev

11 years agoReload accessibility service infos for reisntalled packages.
Svetoslav Ganov [Thu, 18 Apr 2013 16:35:43 +0000 (09:35 -0700)]
Reload accessibility service infos for reisntalled packages.

When something that affects the state of accessibility in the sysytem
changes, we run a reolve method that reloads all relevant information and
if it changed we call a method that makes everyting right. One of the
interesting properties we read is the isntalled accessibliity services.

We are using equals to figure out whether these services have changed
but this is not correct since AccessibilityServiceInfo does not use all
internal members for equals and using all memthis is not reasible since
some of these internal members do not support equals propertly, for
example ResolveInfo.

Therefore, when a package is reinstalled we remove all installed services
from the list of ones we know about which forces them to be reloaded,
thus capturing the current state of a reinstalled package.

bug:8621960

Change-Id: Ie1ef4bf1036d8d6e033cd9528ea2292ce24e5320

11 years agoMerge "Import translations. DO NOT MERGE" into jb-mr2-dev
Baligh Uddin [Thu, 18 Apr 2013 16:43:34 +0000 (16:43 +0000)]
Merge "Import translations. DO NOT MERGE" into jb-mr2-dev

11 years agoMerge "Make MediaDrm APIs public" into jb-mr2-dev
Jeff Tinker [Thu, 18 Apr 2013 16:08:37 +0000 (16:08 +0000)]
Merge "Make MediaDrm APIs public" into jb-mr2-dev

11 years agoOnce again, cancel all when notifications canceled for pkg.
Daniel Sandler [Thu, 18 Apr 2013 14:51:35 +0000 (10:51 -0400)]
Once again, cancel all when notifications canceled for pkg.

Right now this only works if you go through the front door
(using setNotificationsEnabledForPackage()); if you set the
AppOps for a package otherwise the existing notifications
will not be cleared (but new ones will be blocked). Since
there's no UI for modifying AppOps today this shouldn't be a
problem.

Bug: 8489214
Change-Id: I84f8c76a0d03959127e9076ab2b7d37dbdaebb17

11 years agoRestore dock home support for car docks.
Daniel Sandler [Wed, 17 Apr 2013 00:19:09 +0000 (20:19 -0400)]
Restore dock home support for car docks.

While it's still not generally appropriate for the home key
to do anything other than take you home, a car is a somewhat
different context: because of the user's reduced ability to
interact with the device, it's especially useful to
temporarily replace the launcher with a car-optimized
variant. While it would be ideal for the entire system
(particularly the user's everyday Launcher) to dynamically
reconfigure their UIs upon entering car mode, it's not the
case today, and car home apps are a useful compromise.

Quick test:

$ adb shell am broadcast \
-a android.intent.action.DOCK_EVENT \
--ei android.intent.extra.DOCK_STATE 2

This reverts commit 7c135205f2f4c192299ad0215276e9e481bccaa5.

Bug: 8234767
Change-Id: I17588fff46e7f5e3773d3ad202601a5642943444

11 years agoMerge "Standardize gamepad layouts on existing controllers" into jb-mr2-dev
Michael Wright [Thu, 18 Apr 2013 08:15:57 +0000 (08:15 +0000)]
Merge "Standardize gamepad layouts on existing controllers" into jb-mr2-dev

11 years agoMerge "Hardware geofence API changes." into jb-mr2-dev
Jaikumar Ganesh [Thu, 18 Apr 2013 05:18:41 +0000 (05:18 +0000)]
Merge "Hardware geofence API changes." into jb-mr2-dev

11 years agoHardware geofence API changes.
Jaikumar Ganesh [Wed, 17 Apr 2013 19:19:10 +0000 (12:19 -0700)]
Hardware geofence API changes.

b/8631678

1.GeofenceRequest object created.
2.MonitorState moved to a new callback
3.getTypeAndStatus separated to 2 calls.
4.Binder death implemented
5.geofenceChange callback name changed.
6.Parameters rearranged in some calls.

Change-Id: I8fe9621186aeb49efeb0eef1821a2556afe03cfc

11 years agoRemove BluetoothAdapterCallback. Simplify leScan Api
Matthew Xie [Thu, 11 Apr 2013 23:36:26 +0000 (16:36 -0700)]
Remove BluetoothAdapterCallback. Simplify leScan Api

App does not need to explicitly register/unregister callback
bug 8599881

Change-Id: I18cfef14d7ddb344722945e657dcb959823b412b