OSDN Git Service

android-x86/frameworks-base.git
11 years agoMerge "Fix the build" into jb-mr2-dev
Fabrice Di Meglio [Tue, 26 Mar 2013 02:19:34 +0000 (02:19 +0000)]
Merge "Fix the build" into jb-mr2-dev

11 years agoFix the build
Fabrice Di Meglio [Tue, 26 Mar 2013 01:30:59 +0000 (18:30 -0700)]
Fix the build

See bug #8200928

Change-Id: I014590f41d74f16cf3c3de618ef08ee490bf05aa

11 years agoMerge "Fix touch processing for Overlay views" into jb-mr2-dev
Chet Haase [Tue, 26 Mar 2013 01:55:12 +0000 (01:55 +0000)]
Merge "Fix touch processing for Overlay views" into jb-mr2-dev

11 years agoMerge "Add seinfo parsing to PackageManagerService." into jb-mr2-dev
Geremy Condra [Tue, 26 Mar 2013 01:38:55 +0000 (01:38 +0000)]
Merge "Add seinfo parsing to PackageManagerService." into jb-mr2-dev

11 years agoFix touch processing for Overlay views
Chet Haase [Sat, 23 Mar 2013 00:05:55 +0000 (17:05 -0700)]
Fix touch processing for Overlay views

Previous implementation processed Overlay touch after other children in
a ViewGroup; it should be the other way around.

Also, fixed some invalidation issues.

Finally, added new behavior to automatically place View which is already
parented into the same global position, by calculating where the overlay is
on the screen relative to the previous parent of the View.

Issue #8459085 Overlay needs to handle touch correctly

Change-Id: Ic2cee12d2bc345f64ed3f4d855a5c3496967a201

11 years agoam 33d388b0: am adc2d143: am 81f7ff7c: am c15f817e: am 81aaf3b0: Merge "Doc update...
kmccormick [Tue, 26 Mar 2013 01:19:49 +0000 (18:19 -0700)]
am 33d388b0: am adc2d143: am 81f7ff7c: am c15f817e: am 81aaf3b0: Merge "Doc update: fix bug in Calendar Provider docs." into jb-mr1.1-docs

* commit '33d388b05759cbd715d65de4ee9dd01be0bc210a':
  Doc update: fix bug in Calendar Provider docs.

11 years agoMerge "Handle external storage errors uniformly." into jb-mr2-dev
Jeff Sharkey [Tue, 26 Mar 2013 00:37:02 +0000 (00:37 +0000)]
Merge "Handle external storage errors uniformly." into jb-mr2-dev

11 years agoHandle external storage errors uniformly.
Jeff Sharkey [Tue, 26 Mar 2013 00:30:16 +0000 (17:30 -0700)]
Handle external storage errors uniformly.

Bug: 6777728
Change-Id: I021db160bc959fdf02bfd448edf977961bd1d9d0

11 years agoAdd seinfo parsing to PackageManagerService.
Robert Craig [Mon, 25 Mar 2013 10:33:03 +0000 (06:33 -0400)]
Add seinfo parsing to PackageManagerService.

This patch set allows the PMS to parse the
mac_permissions.xml file which contains the
seinfo values. Each package that is installed
on the device will be assigned an seinfo value
based on policy. This seinfo value will help label
the app process and data directory.  Modifications
include adjustments to ApplicationInfo.java
to store the seinfo tag per package as well as
adjustments to installd to communicate the seinfo
tag to libselinux.

Change-Id: I61ad1ea12fb6a9a6d0b108ec163bc4bf4c954b58
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
11 years agoMerge "Fix bug #8200928 ExpandableListView should be RTL-aware" into jb-mr2-dev
Fabrice Di Meglio [Tue, 26 Mar 2013 00:27:22 +0000 (00:27 +0000)]
Merge "Fix bug #8200928 ExpandableListView should be RTL-aware" into jb-mr2-dev

11 years agoMerge "AudioService: rewrite sound effects loading" into jb-mr2-dev
Eric Laurent [Mon, 25 Mar 2013 23:39:52 +0000 (23:39 +0000)]
Merge "AudioService: rewrite sound effects loading" into jb-mr2-dev

11 years agoAudioService: rewrite sound effects loading
Eric Laurent [Thu, 21 Mar 2013 22:35:10 +0000 (15:35 -0700)]
AudioService: rewrite sound effects loading

Handle all access to SoundPool in the message Handler to
synchronize load/unload and play requests.

Add a timeout to load operations in case a problem occurs while loading
a sample and the SoundPool callback is not called.

Bug 6633095

Change-Id: I39949e4c8b2f7ca2d8b760b1f92c7e0fcd0a46e1

11 years agoam adc2d143: am 81f7ff7c: am c15f817e: am 81aaf3b0: Merge "Doc update: fix bug in...
kmccormick [Mon, 25 Mar 2013 23:21:03 +0000 (16:21 -0700)]
am adc2d143: am 81f7ff7c: am c15f817e: am 81aaf3b0: Merge "Doc update: fix bug in Calendar Provider docs." into jb-mr1.1-docs

* commit 'adc2d143996ed98b5d5aa9fa5d5c964258a1f719':
  Doc update: fix bug in Calendar Provider docs.

11 years agoam 81f7ff7c: am c15f817e: am 81aaf3b0: Merge "Doc update: fix bug in Calendar Provide...
kmccormick [Mon, 25 Mar 2013 23:18:24 +0000 (16:18 -0700)]
am 81f7ff7c: am c15f817e: am 81aaf3b0: Merge "Doc update: fix bug in Calendar Provider docs." into jb-mr1.1-docs

* commit '81f7ff7c498cbd82181e29db58961f6dc73ee319':
  Doc update: fix bug in Calendar Provider docs.

11 years agoam c15f817e: am 81aaf3b0: Merge "Doc update: fix bug in Calendar Provider docs."...
kmccormick [Mon, 25 Mar 2013 23:16:48 +0000 (16:16 -0700)]
am c15f817e: am 81aaf3b0: Merge "Doc update: fix bug in Calendar Provider docs." into jb-mr1.1-docs

* commit 'c15f817e5092970820e6c3fa32c5715127e7bf37':
  Doc update: fix bug in Calendar Provider docs.

11 years agoam 81aaf3b0: Merge "Doc update: fix bug in Calendar Provider docs." into jb-mr1.1...
kmccormick [Mon, 25 Mar 2013 23:15:11 +0000 (16:15 -0700)]
am 81aaf3b0: Merge "Doc update: fix bug in Calendar Provider docs." into jb-mr1.1-docs

* commit '81aaf3b0195ceb3c134c1b8a31e558fa31fc3e77':
  Doc update: fix bug in Calendar Provider docs.

11 years agoMerge "Doc update: fix bug in Calendar Provider docs." into jb-mr1.1-docs
kmccormick [Mon, 25 Mar 2013 23:11:30 +0000 (23:11 +0000)]
Merge "Doc update: fix bug in Calendar Provider docs." into jb-mr1.1-docs

11 years agoDoc update: fix bug in Calendar Provider docs.
kmccormick [Mon, 25 Mar 2013 23:00:56 +0000 (16:00 -0700)]
Doc update: fix bug in Calendar Provider docs.

"Bug: 8472477"

Change-Id: Ib2d8b27a0343db45bb1efa326bd573c383573af2

11 years agoam a9af6c37: (-s ours) am 48718c85: Merge "Proper security labeling of multi-user...
Geremy Condra [Mon, 25 Mar 2013 22:08:43 +0000 (15:08 -0700)]
am a9af6c37: (-s ours) am 48718c85: Merge "Proper security labeling of multi-user data directories."

* commit 'a9af6c37868c0c3295fe16b7c0865fbbf3dd2c4f':
  Proper security labeling of multi-user data directories.

11 years agoam 40a85bbc: (-s ours) am 4bcea122: Merge "Add seinfo parsing to PackageManagerService."
Geremy Condra [Mon, 25 Mar 2013 21:59:06 +0000 (14:59 -0700)]
am 40a85bbc: (-s ours) am 4bcea122: Merge "Add seinfo parsing to PackageManagerService."

* commit '40a85bbc8449fe36bee287ae030f7f779c4a979f':
  Add seinfo parsing to PackageManagerService.

11 years agoam 48718c85: Merge "Proper security labeling of multi-user data directories."
Geremy Condra [Mon, 25 Mar 2013 21:49:28 +0000 (14:49 -0700)]
am 48718c85: Merge "Proper security labeling of multi-user data directories."

* commit '48718c85b41b785cf6f6ae72beb4c5d46559b735':
  Proper security labeling of multi-user data directories.

11 years agoam 4bcea122: Merge "Add seinfo parsing to PackageManagerService."
Geremy Condra [Mon, 25 Mar 2013 21:49:25 +0000 (14:49 -0700)]
am 4bcea122: Merge "Add seinfo parsing to PackageManagerService."

* commit '4bcea1222ce447d9969d12927995ffdfad7c8322':
  Add seinfo parsing to PackageManagerService.

11 years agoMerge "AppSecurityPermissions: Modify isDisplayablePermission" into jb-mr2-dev
Nick Kralevich [Mon, 25 Mar 2013 21:32:45 +0000 (21:32 +0000)]
Merge "AppSecurityPermissions: Modify isDisplayablePermission" into jb-mr2-dev

11 years agoAppSecurityPermissions: Modify isDisplayablePermission
Nick Kralevich [Mon, 25 Mar 2013 19:11:58 +0000 (12:11 -0700)]
AppSecurityPermissions: Modify isDisplayablePermission

Add optional permission support to isDisplayablePermission.

A permission is displayable if it's required, or was previously
granted to the app.

Currently, this change is a no-op. The package parser code
does not currently honor <uses-permission android:required="false"> in
the application's manifest, and assumes a permission is always required.

This change sets the ground for future optional permissions work.

Change-Id: I2ec4a49adbfab9980e116ed43354f16bdeaa301d

11 years agoMerge "Remove dead code." into jb-mr2-dev
Nick Kralevich [Mon, 25 Mar 2013 21:27:18 +0000 (21:27 +0000)]
Merge "Remove dead code." into jb-mr2-dev

11 years agoam 6e7a6b10: am 0e3411b2: am d738f49a: am b559b58e: am 5769c0b8: am 9432f83c: am...
Christopher Tate [Mon, 25 Mar 2013 21:22:36 +0000 (14:22 -0700)]
am 6e7a6b10: am 0e3411b2: am d738f49a: am b559b58e: am 5769c0b8: am 9432f83c: am 7b3ac9ad: am 0cb27e28: Validate restored file paths against their nominal domain

* commit '6e7a6b101be849cee776205ed5d854524463f583':
  Validate restored file paths against their nominal domain

11 years agoam 0e3411b2: am d738f49a: am b559b58e: am 5769c0b8: am 9432f83c: am 7b3ac9ad: am...
Christopher Tate [Mon, 25 Mar 2013 21:20:20 +0000 (14:20 -0700)]
am 0e3411b2: am d738f49a: am b559b58e: am 5769c0b8: am 9432f83c: am 7b3ac9ad: am 0cb27e28: Validate restored file paths against their nominal domain

* commit '0e3411b20c173ada46fe4abf5f14fe28e699da70':
  Validate restored file paths against their nominal domain

11 years agoMerge "Fix bug #8447352 Contextual ActionBar vertical divider is incorrectly aligned...
Fabrice Di Meglio [Mon, 25 Mar 2013 21:18:53 +0000 (21:18 +0000)]
Merge "Fix bug #8447352 Contextual ActionBar vertical divider is incorrectly aligned in RTL mode" into jb-mr2-dev

11 years agoam d738f49a: am b559b58e: am 5769c0b8: am 9432f83c: am 7b3ac9ad: am 0cb27e28: Validat...
Christopher Tate [Mon, 25 Mar 2013 21:18:06 +0000 (14:18 -0700)]
am d738f49a: am b559b58e: am 5769c0b8: am 9432f83c: am 7b3ac9ad: am 0cb27e28: Validate restored file paths against their nominal domain

* commit 'd738f49a1edeaf9c17b8b7ae7b5a5aeb9b56f16e':
  Validate restored file paths against their nominal domain

11 years agoMerge "Proper security labeling of multi-user data directories."
Geremy Condra [Mon, 25 Mar 2013 21:17:46 +0000 (21:17 +0000)]
Merge "Proper security labeling of multi-user data directories."

11 years agoam b559b58e: am 5769c0b8: am 9432f83c: am 7b3ac9ad: am 0cb27e28: Validate restored...
Christopher Tate [Mon, 25 Mar 2013 21:15:38 +0000 (14:15 -0700)]
am b559b58e: am 5769c0b8: am 9432f83c: am 7b3ac9ad: am 0cb27e28: Validate restored file paths against their nominal domain

* commit 'b559b58e950c8fe7ffe0c3201443ab814f24a701':
  Validate restored file paths against their nominal domain

11 years agoam 5769c0b8: am 9432f83c: am 7b3ac9ad: am 0cb27e28: Validate restored file paths...
Christopher Tate [Mon, 25 Mar 2013 21:14:02 +0000 (14:14 -0700)]
am 5769c0b8: am 9432f83c: am 7b3ac9ad: am 0cb27e28: Validate restored file paths against their nominal domain

* commit '5769c0b803ec604efafbf983dbf38e223646fb74':
  Validate restored file paths against their nominal domain

11 years agoam 9432f83c: am 7b3ac9ad: am 0cb27e28: Validate restored file paths against their...
Christopher Tate [Mon, 25 Mar 2013 21:11:10 +0000 (14:11 -0700)]
am 9432f83c: am 7b3ac9ad: am 0cb27e28: Validate restored file paths against their nominal domain

* commit '9432f83cea107240bcb71b9230b3af7de4c2a036':
  Validate restored file paths against their nominal domain

11 years agoam 7b3ac9ad: am 0cb27e28: Validate restored file paths against their nominal domain
Christopher Tate [Mon, 25 Mar 2013 21:08:37 +0000 (14:08 -0700)]
am 7b3ac9ad: am 0cb27e28: Validate restored file paths against their nominal domain

* commit '7b3ac9add80fde8e36201e7c2e05a3da10c44cec':
  Validate restored file paths against their nominal domain

11 years agoMerge "Add seinfo parsing to PackageManagerService."
Geremy Condra [Mon, 25 Mar 2013 21:07:37 +0000 (21:07 +0000)]
Merge "Add seinfo parsing to PackageManagerService."

11 years agoam 0cb27e28: Validate restored file paths against their nominal domain
Christopher Tate [Mon, 25 Mar 2013 21:05:47 +0000 (14:05 -0700)]
am 0cb27e28: Validate restored file paths against their nominal domain

* commit '0cb27e28071af59000198c8588c588a2e63cc0a3':
  Validate restored file paths against their nominal domain

11 years agoValidate restored file paths against their nominal domain
Christopher Tate [Mon, 25 Mar 2013 17:06:34 +0000 (10:06 -0700)]
Validate restored file paths against their nominal domain

Bug 8460775

(cherry picked from commit 7323765bbf13d9638cf2cc1e06113bffcdac46c4)

Change-Id: I6710503799a6df2de142a827513d5b4c107b6ec9

11 years agoMerge "Validate restored file paths against their nominal domain" into jb-mr2-dev
Christopher Tate [Mon, 25 Mar 2013 20:23:29 +0000 (20:23 +0000)]
Merge "Validate restored file paths against their nominal domain" into jb-mr2-dev

11 years agoMerge "Import translations. DO NOT MERGE" into jb-mr2-dev
Baligh Uddin [Mon, 25 Mar 2013 20:19:09 +0000 (20:19 +0000)]
Merge "Import translations. DO NOT MERGE" into jb-mr2-dev

11 years agoMerge "Load crypto plugins from additional shared libraries" into jb-mr2-dev
Jeff Tinker [Mon, 25 Mar 2013 20:18:18 +0000 (20:18 +0000)]
Merge "Load crypto plugins from additional shared libraries" into jb-mr2-dev

11 years agoValidate restored file paths against their nominal domain
Christopher Tate [Mon, 25 Mar 2013 17:06:34 +0000 (10:06 -0700)]
Validate restored file paths against their nominal domain

Bug 8460775

Change-Id: Ib16d740a001adf4f9cb9ccaa31066ac7cadfb430

11 years agoRemove dead code.
Nick Kralevich [Mon, 25 Mar 2013 18:42:48 +0000 (11:42 -0700)]
Remove dead code.

This code is never called.

Change-Id: I2ed3fee93004e967bfb2a3080106c3950bf43ce2

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 25 Mar 2013 18:20:16 +0000 (11:20 -0700)]
Import translations. DO NOT MERGE

Change-Id: I62d1b7581b9598af132ec708c358848ac2edb32a
Auto-generated-cl: translation import

11 years agoMerge "PackageManagerService: update grantPermission / revokePermission" into jb...
Nick Kralevich [Mon, 25 Mar 2013 18:14:04 +0000 (18:14 +0000)]
Merge "PackageManagerService: update grantPermission / revokePermission" into jb-mr2-dev

11 years agoPackageManagerService: update grantPermission / revokePermission
Nick Kralevich [Sun, 24 Mar 2013 21:27:17 +0000 (14:27 -0700)]
PackageManagerService: update grantPermission / revokePermission

Currently, grantPermission / revokePermission only handles development
permissions. This change extends these two functions to handle normal
and dangerous permissions.

A normal / dangerous permission can modified if it is marked as
optional (android:required="false") using the "am grant" / "am revoke"
commands.

Currently, this change is a no-op. The package parser code
does not currently honor <uses-permission android:required="false"> in
the application's manifest, and assumes a permission is always required.

This change sets the ground for future optional permissions work.

Change-Id: I34f02ffd714e8a9a37b9f87df89cef915b1b6780

11 years agoMerge "AppSecurityPermissions: minor code cleanup" into jb-mr2-dev
Nick Kralevich [Mon, 25 Mar 2013 17:37:35 +0000 (17:37 +0000)]
Merge "AppSecurityPermissions: minor code cleanup" into jb-mr2-dev

11 years agoMerge "audio service: add config option for fixed volume" into jb-mr2-dev
Eric Laurent [Mon, 25 Mar 2013 17:08:28 +0000 (17:08 +0000)]
Merge "audio service: add config option for fixed volume" into jb-mr2-dev

11 years agoProper security labeling of multi-user data directories.
rpcraig [Wed, 28 Nov 2012 13:37:06 +0000 (08:37 -0500)]
Proper security labeling of multi-user data directories.

This patch covers 2 cases. When an app is installed
and the resulting data directory is created for all
existing users. And when a new user is created and
all existing app data directories are created for
the new user.

Change-Id: Iacaba6d9d18d5337e65713960d14efe32006b330
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
11 years agoAdd seinfo parsing to PackageManagerService.
Robert Craig [Mon, 25 Mar 2013 10:33:03 +0000 (06:33 -0400)]
Add seinfo parsing to PackageManagerService.

This patch set allows the PMS to parse the
mac_permissions.xml file which contains the
seinfo values. Each package that is installed
on the device will be assigned an seinfo value
based on policy. This seinfo value will help label
the app process and data directory.  Modifications
include adjustments to ApplicationInfo.java
to store the seinfo tag per package as well as
adjustments to installd to communicate the seinfo
tag to libselinux.

Change-Id: I61ad1ea12fb6a9a6d0b108ec163bc4bf4c954b58
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
11 years agoAppSecurityPermissions: minor code cleanup
Nick Kralevich [Sun, 24 Mar 2013 21:27:00 +0000 (14:27 -0700)]
AppSecurityPermissions: minor code cleanup

Convert more instance variables to private.
Delete some dead code.
Simplify some code.

Change-Id: Iedd55857138b71b2915b9886128adfcd9e4b3c57

11 years agoMerge "App ops: don't crash when provide read access is off." into jb-mr2-dev
Dianne Hackborn [Sat, 23 Mar 2013 01:43:37 +0000 (01:43 +0000)]
Merge "App ops: don't crash when provide read access is off." into jb-mr2-dev

11 years agoApp ops: don't crash when provide read access is off.
Dianne Hackborn [Sat, 23 Mar 2013 01:42:14 +0000 (18:42 -0700)]
App ops: don't crash when provide read access is off.

If the caller supplied an empty selection string (instead
of null) we would crash due to creating a bad SQLite statement.

Change-Id: I462803b80c81815ed9a3a320c23060daa28e8114

11 years agoMerge "Implement #8323587, #8323342, #8323590: new features." into jb-mr2-dev
Dianne Hackborn [Sat, 23 Mar 2013 01:26:07 +0000 (01:26 +0000)]
Merge "Implement #8323587, #8323342, #8323590: new features." into jb-mr2-dev

11 years agoFix bug #8447352 Contextual ActionBar vertical divider is incorrectly aligned in...
Fabrice Di Meglio [Sat, 23 Mar 2013 01:23:03 +0000 (18:23 -0700)]
Fix bug #8447352 Contextual ActionBar vertical divider is incorrectly aligned in RTL mode

- add missing RTL drawables
- known issue: please note that because dalvik is caching drawables, a Locale change will
still show the wrong version of the drawables. You will need to reboot the device to see
the correct versions.

Change-Id: Ic522ba54ef19b0ff573b3a56c46ee76176aff4bb

11 years agoFix log tags in trackball debugging
Michael Wright [Thu, 21 Mar 2013 01:05:30 +0000 (18:05 -0700)]
Fix log tags in trackball debugging

Change-Id: I02a623c96aff8b6ffbe11161feea39ad26ba0e83

11 years agoImplement #8323587, #8323342, #8323590: new features.
Dianne Hackborn [Sat, 23 Mar 2013 00:27:25 +0000 (17:27 -0700)]
Implement #8323587, #8323342, #8323590: new features.

8323587: Add feature for supporting app widgets
8323342: Add feature for replacing the home screen
8323590: Add feature for supporting input methods

The app widget service looks for the app widget feature
and refuses to work if it doesn't exist.  I didn't do
this for the input method service because some devices
will probably want to still make use of that mechanism
without supporting third party input methods.

Change-Id: Ie3b089105e104f4d767cdb03cdbe4fdb1c17382e

11 years agoMerge "Incorrect unbinding of accessibility services." into jb-mr2-dev
Svetoslav [Sat, 23 Mar 2013 00:14:43 +0000 (00:14 +0000)]
Merge "Incorrect unbinding of accessibility services." into jb-mr2-dev

11 years agoIncorrect unbinding of accessibility services.
Svetoslav [Sat, 23 Mar 2013 00:09:11 +0000 (17:09 -0700)]
Incorrect unbinding of accessibility services.

If no accessibility services are enabled, we disable the
accessibility event firing to save resources. When the last
such services is disabled the system was not unbinding. As
a result the user was seeing the touch exploration enable
dialog when the service that requested it is disabled. Also
there is one service the system is bound to that is not used.

bug:8439191

Change-Id: I6f37f2573a815bfb29870298aa0abbb1fa105588

11 years agoMerge "New media button API." into jb-mr2-dev
Dianne Hackborn [Fri, 22 Mar 2013 23:13:49 +0000 (23:13 +0000)]
Merge "New media button API." into jb-mr2-dev

11 years agoMerge "Reduce situations where black thumbnail occurs." into jb-mr2-dev
Craig Mautner [Fri, 22 Mar 2013 22:51:57 +0000 (22:51 +0000)]
Merge "Reduce situations where black thumbnail occurs." into jb-mr2-dev

11 years agoMerge "Add pipelining optimization to IME dispatching" into jb-mr2-dev
Michael Wright [Fri, 22 Mar 2013 22:49:53 +0000 (22:49 +0000)]
Merge "Add pipelining optimization to IME dispatching" into jb-mr2-dev

11 years agoLoad crypto plugins from additional shared libraries
Jeff Tinker [Fri, 22 Mar 2013 22:32:27 +0000 (15:32 -0700)]
Load crypto plugins from additional shared libraries

Currently crypto plugins are expected to be in libdrmdecrypt.so.
When there are multiple plugins supporting different schemes,
this approach requires source code integration across
vendors which is unmanagable.  Also, for integration with
MediaDrm where the crypto keys are obtained from a drm server,
the MediaCrypto plugin needs to interoperate with the MediaDrm
plugin. This change allows {MediaCrypto, MediaDrm} pairs that
are logically related to be implemented in a common shared
library.

Multi-repository commit, goes with:
https://googleplex-android-review.googlesource.com/287838

Change-Id: I08577cda0cbcb22ebe3cb874f5fcafe411c36be3

11 years agoMerge "Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)" into jb-mr2-dev
Christopher Tate [Fri, 22 Mar 2013 22:24:21 +0000 (22:24 +0000)]
Merge "Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)" into jb-mr2-dev

11 years agoMerge "Restore final canvas state after deferred flush" into jb-mr2-dev
Chris Craik [Fri, 22 Mar 2013 22:11:33 +0000 (22:11 +0000)]
Merge "Restore final canvas state after deferred flush" into jb-mr2-dev

11 years agoThrow on illegal arguments to ArrayUtils.equals(a1, a2, len)
Christopher Tate [Fri, 22 Mar 2013 22:01:13 +0000 (15:01 -0700)]
Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)

Specifically, throw an explicit IllegalArgumentException if
'len' is negative, rather than falling over in some other
way further down the line.

Change-Id: If955de7ec1a15aa9aa8c42b6994b059e0cdffcee

11 years agoNew media button API.
Dianne Hackborn [Wed, 20 Mar 2013 21:59:43 +0000 (14:59 -0700)]
New media button API.

This allows sending media buttons to any PendingIntent,
so they can be captured with a registered receiver.

Also add some new ViewTreeObserver APIs; this is all for
a new support library API to watch media buttons while an
app has input focus.

Change-Id: I3c51cef59460662b008c9a2cc87d6a6383c21855

11 years agoMerge "Add some new constants." into jb-mr2-dev
Wink Saville [Fri, 22 Mar 2013 21:41:31 +0000 (21:41 +0000)]
Merge "Add some new constants." into jb-mr2-dev

11 years agoMerge "Fix alternate time zone display for clock widget." into jb-mr2-dev
Jim Miller [Fri, 22 Mar 2013 21:40:47 +0000 (21:40 +0000)]
Merge "Fix alternate time zone display for clock widget." into jb-mr2-dev

11 years agoFix bug #8200928 ExpandableListView should be RTL-aware
Fabrice Di Meglio [Fri, 22 Mar 2013 01:22:38 +0000 (18:22 -0700)]
Fix bug #8200928 ExpandableListView should be RTL-aware

- add indicatorStart/indicatorEnd and childIndicatorStart/childIndicatorEnd properties

Change-Id: I1ee67e47798bbcb31670cc9afde3ccac68338d94

11 years agoMerge "Move XML utility methods into shared location." into jb-mr2-dev
Jeff Sharkey [Fri, 22 Mar 2013 20:45:16 +0000 (20:45 +0000)]
Merge "Move XML utility methods into shared location." into jb-mr2-dev

11 years agoMove XML utility methods into shared location.
Jeff Sharkey [Fri, 22 Mar 2013 20:43:41 +0000 (13:43 -0700)]
Move XML utility methods into shared location.

Change-Id: I15e8f0e4a6c5546d9be956ca0d46715d3441458c

11 years agoAdd pipelining optimization to IME dispatching
Michael Wright [Thu, 21 Mar 2013 00:58:33 +0000 (17:58 -0700)]
Add pipelining optimization to IME dispatching

Rather than wait for the IME to return before sending it the next input event,
send all available input events as soon as we receive them.

Bug: 7984576
Change-Id: Ie0b1086efc4f9e1ececac22afd997829304bf180

11 years agoMerge "add account checks to app launch test" into jb-mr2-dev
Guang Zhu [Fri, 22 Mar 2013 19:31:55 +0000 (19:31 +0000)]
Merge "add account checks to app launch test" into jb-mr2-dev

11 years agoReduce situations where black thumbnail occurs.
Craig Mautner [Wed, 20 Mar 2013 22:40:36 +0000 (15:40 -0700)]
Reduce situations where black thumbnail occurs.

Pause and retry capturing a thumbnail if the window hasn't yet
been drawn. Still will show black thumbnails if recents is pressed
before window has anything drawn.

Improves bug 7552304.

Change-Id: I550c5a60510bfc4547bbb44451d57b4bc9f49880

11 years agoPrevent NPE in new API.
Robert Greenwalt [Fri, 22 Mar 2013 19:00:17 +0000 (12:00 -0700)]
Prevent NPE in new API.

bug:8455284
Change-Id: I26ecbd024d1fe001f3af792c4e66409b2968c7ec

11 years agoRestore final canvas state after deferred flush
Chris Craik [Fri, 22 Mar 2013 17:00:48 +0000 (10:00 -0700)]
Restore final canvas state after deferred flush

bug:8450062

- Fixes overdraw indication with DeferredDisplayList
- Fixes drawHardwareLayer called after flush

Additionally changes drawLayer to pass its paint to native via setLayerPaint

Wrap flush in save/restore so that reordering doesn't affect final
transform

Change-Id: I08befa42c28500da6387699eefd4be28aedf9f4c

11 years agoadd account checks to app launch test
Guang Zhu [Fri, 22 Mar 2013 18:36:30 +0000 (11:36 -0700)]
add account checks to app launch test

This optional parameter ensures that, before test starts, device
has the listed account types configured already.

e.g. to test app launch time of Gmail, a valid Google account
must present on device

Change-Id: Idba11beff754fd1d201a9c44a562809d4a9495e2

11 years agoMerge "Import translations. DO NOT MERGE" into jb-mr2-dev
Baligh Uddin [Fri, 22 Mar 2013 17:46:35 +0000 (17:46 +0000)]
Merge "Import translations. DO NOT MERGE" into jb-mr2-dev

11 years ago[DO NOT MERGE] Notify vold when to start fstrim.
Svetoslav [Wed, 20 Mar 2013 19:06:59 +0000 (12:06 -0700)]
[DO NOT MERGE] Notify vold when to start fstrim.

Since using the discard option for mounting an Ext4 file system
could lead to unpredictable slowdowns of I/O we will explicitly
control when to perform fstrim, i.e. discard unused blocks of the
mounted volume. We are using the idle maintenance intents sent by
the system which specify a window that one can use to perform
expensive maintenance tasks while the user does not use the device.

This change is adding a broadcast receiver for the idle maintenance
start intent to the mount services which then notifies vold when to
start fstrim.

Since fstrim will be run on a daily basis we do not expect fstrim
to be too long, so it is not interruptible. We will implement
interruption only in case we see issues.

bug:8056794

Change-Id: I1438479d2956b61b82d3a130854376f7a144aaf3

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 22 Mar 2013 16:31:24 +0000 (09:31 -0700)]
Import translations. DO NOT MERGE

Change-Id: I8c0470426c37a3a357e64c6143b49abd4e0dd682
Auto-generated-cl: translation import

11 years agoMerge "Reset connections on all stacked interfaces." into jb-mr2-dev
Lorenzo Colitti [Fri, 22 Mar 2013 09:45:51 +0000 (09:45 +0000)]
Merge "Reset connections on all stacked interfaces." into jb-mr2-dev

11 years agoRevert "make sure screenshot are in a format supported by Bitmap.java"
Mathias Agopian [Fri, 22 Mar 2013 07:27:46 +0000 (00:27 -0700)]
Revert "make sure screenshot are in a format supported by Bitmap.java"

This reverts commit 74beb8953789635ad50fa979cf9ac8178a78cb81.

it was checked-in by mistake

11 years agoMerge "make sure screenshot are in a format supported by Bitmap.java" into jb-mr2-dev
Mathias Agopian [Fri, 22 Mar 2013 07:26:26 +0000 (07:26 +0000)]
Merge "make sure screenshot are in a format supported by Bitmap.java" into jb-mr2-dev

11 years agomake sure screenshot are in a format supported by Bitmap.java
Mathias Agopian [Fri, 22 Mar 2013 06:40:56 +0000 (23:40 -0700)]
make sure screenshot are in a format supported by Bitmap.java

Change-Id: Ic3ab7db31f1810ea19aac55d448dd1d4d6c419e4

11 years agoMerge "use the bitmap stride when encoding a screenshot as PNG" into jb-mr2-dev
Mathias Agopian [Fri, 22 Mar 2013 04:46:04 +0000 (04:46 +0000)]
Merge "use the bitmap stride when encoding a screenshot as PNG" into jb-mr2-dev

11 years agouse the bitmap stride when encoding a screenshot as PNG
Mathias Agopian [Fri, 22 Mar 2013 04:44:49 +0000 (21:44 -0700)]
use the bitmap stride when encoding a screenshot as PNG

Bug: 8444808
Change-Id: I47b74c22c940b40bd02634e9cd9dbff39b29a99f

11 years agoAdd APP_SWITCH to app switch input dispatching optimization
Michael Wright [Fri, 15 Mar 2013 23:27:29 +0000 (16:27 -0700)]
Add APP_SWITCH to app switch input dispatching optimization

Change-Id: I8a95fbf311ebd62bcdaaeecfacaea7996ddaec74

11 years agoMerge "Separate sessionCreated and finishedEvents callbacks" into jb-mr2-dev
Michael Wright [Fri, 22 Mar 2013 03:36:49 +0000 (03:36 +0000)]
Merge "Separate sessionCreated and finishedEvents callbacks" into jb-mr2-dev

11 years agoMerge "Add tracing for pending queue size" into jb-mr2-dev
Michael Wright [Fri, 22 Mar 2013 03:28:01 +0000 (03:28 +0000)]
Merge "Add tracing for pending queue size" into jb-mr2-dev

11 years agoaudio service: add config option for fixed volume
Eric Laurent [Wed, 20 Mar 2013 01:15:31 +0000 (18:15 -0700)]
audio service: add config option for fixed volume

Add a boolean configuration option config_useFixedVolume indicating if
stream volumes or master volume can be modified.
If the option is true, the AudioManager volume and mute APIs will be no ops and the
volumes will be maxed out.
To be consistent:
- the ringer mode is forced to normal and cannot be modified
- volume panel is never displayed
- volume settings are not available
- ringer mode global action is not displayed.

The default for this option if false.

This is useful for a class of devices intended for connection to a digital
audio output only, where the volume is directly controlled on the audio sink.

Bug 8161458

Change-Id: I2571d5ee79952ef0914d8fd1985816467a80adcd

11 years agoMerge "Fix bug #8200928 ExpandableListView should be RTL-aware" into jb-mr2-dev
Fabrice Di Meglio [Fri, 22 Mar 2013 01:18:43 +0000 (01:18 +0000)]
Merge "Fix bug #8200928 ExpandableListView should be RTL-aware" into jb-mr2-dev

11 years agoMerge "Round up periodic syncs with short frequencies." into jb-mr2-dev
Jeff Sharkey [Fri, 22 Mar 2013 01:18:38 +0000 (01:18 +0000)]
Merge "Round up periodic syncs with short frequencies." into jb-mr2-dev

11 years agoRound up periodic syncs with short frequencies.
Jeff Sharkey [Fri, 22 Mar 2013 01:14:24 +0000 (18:14 -0700)]
Round up periodic syncs with short frequencies.

Bug: 7668972
Change-Id: I476ded1418a203621913098cf5d33a4e5dc533ee

11 years agoMerge "Fix a stability regression in ListView arrow scrolling" into jb-mr2-dev
Adam Powell [Fri, 22 Mar 2013 01:14:28 +0000 (01:14 +0000)]
Merge "Fix a stability regression in ListView arrow scrolling" into jb-mr2-dev

11 years agoMerge "Revert "Revert "Fix ListView is not scrolled properly with arrows""" into...
Adam Powell [Fri, 22 Mar 2013 01:12:43 +0000 (01:12 +0000)]
Merge "Revert "Revert "Fix ListView is not scrolled properly with arrows""" into jb-mr2-dev

11 years agoSeparate sessionCreated and finishedEvents callbacks
Michael Wright [Thu, 14 Mar 2013 17:59:38 +0000 (10:59 -0700)]
Separate sessionCreated and finishedEvents callbacks

Bug: 8276952
Change-Id: If7051086c060fcce5d1e958ebbddec0784c851da

11 years agoAdd tracing for pending queue size
Michael Wright [Thu, 14 Mar 2013 17:58:50 +0000 (10:58 -0700)]
Add tracing for pending queue size

Change-Id: Ib31c2245feca31d0276ef1ebf6e6d237d0297671

11 years agoMerge "Fix API version number for new symbols." into jb-mr2-dev
Amith Yamasani [Fri, 22 Mar 2013 00:19:12 +0000 (00:19 +0000)]
Merge "Fix API version number for new symbols." into jb-mr2-dev

11 years agoFix alternate time zone display for clock widget.
Jim Miller [Fri, 22 Mar 2013 00:10:18 +0000 (17:10 -0700)]
Fix alternate time zone display for clock widget.

This fixes a bug where the widget resize event was being sent
for the wrong user.

The issue was with creating AppWidgetHostViews with Keyguard's
context which contains the wrong user id.

Fixes bug 8392718

Change-Id: I7efbc13161800224a342880c35470ed0b45824d0

11 years agoFix a stability regression in ListView arrow scrolling
Adam Powell [Fri, 22 Mar 2013 00:08:38 +0000 (17:08 -0700)]
Fix a stability regression in ListView arrow scrolling

The earlier patch 3cf7b3c59 introduced a stability regression. Perform
the appropriate bounds checking alongside the fix it implements.

Bug 8264185

Change-Id: I943d6c05bacdd777f89243fdac97788b16639dc6