OSDN Git Service

android-x86/frameworks-base.git
9 years agoMerge "Fix assumption about DynamicRefTable in aapt" into lmp-dev
Adam Lesinski [Fri, 15 Aug 2014 21:47:05 +0000 (21:47 +0000)]
Merge "Fix assumption about DynamicRefTable in aapt" into lmp-dev

9 years agoFix assumption about DynamicRefTable in aapt
Adam Lesinski [Fri, 15 Aug 2014 20:59:02 +0000 (13:59 -0700)]
Fix assumption about DynamicRefTable in aapt

Packages without any resources should not expect to have
a DynamicRefTable.

Bug:16895517
Bug:17056720
Change-Id: Id006f6bdbf08f30505f6ba5982bc9d1b09db0f0a

9 years agoMerge "Returning null when preview image is not available for AppWidgetProviderInfo...
Sunny Goyal [Fri, 15 Aug 2014 21:36:27 +0000 (21:36 +0000)]
Merge "Returning null when preview image is not available for AppWidgetProviderInfo" into lmp-dev

9 years agoMerge "Tighten restore-at-install behavior" into lmp-dev
Christopher Tate [Fri, 15 Aug 2014 21:34:10 +0000 (21:34 +0000)]
Merge "Tighten restore-at-install behavior" into lmp-dev

9 years agoReturning null when preview image is not available for AppWidgetProviderInfo
Sunny Goyal [Fri, 15 Aug 2014 19:57:11 +0000 (12:57 -0700)]
Returning null when preview image is not available for AppWidgetProviderInfo

The default application icon generally has a different aspect ratio that a
preview image, and cannot transparently be  used in place of the image.
Returning null will allow the apps to handle the case as they see fit.

Change-Id: Ie6e8e16dd7b4e58b222187a81c62d27eccab45a9

9 years agoMerge "Add fragment animations to setup leanback theme" into lmp-dev
Justin Mattson [Fri, 15 Aug 2014 20:59:21 +0000 (20:59 +0000)]
Merge "Add fragment animations to setup leanback theme" into lmp-dev

9 years agoMerge "Copy certain settings to the managed profile" into lmp-dev
Amith Yamasani [Fri, 15 Aug 2014 20:44:41 +0000 (20:44 +0000)]
Merge "Copy certain settings to the managed profile" into lmp-dev

9 years agoCopy certain settings to the managed profile
Amith Yamasani [Fri, 15 Aug 2014 01:49:48 +0000 (18:49 -0700)]
Copy certain settings to the managed profile

All reads of those specific settings will go to the primary user.
Inserts to primary also go to managed profiles in order to notify
any observers.

This enables Location settings to be shared by both profiles.
Also some other settings related to IME and Accessibility since
those services are shared across the profiles.

Bug: 16457210
Change-Id: Ib8fd697b5c78027fcbaf245d82dda5e6d6aab4f0

9 years agoMerge "Apply lockdowns when user restrictions are set." into lmp-dev
Julia Reynolds [Fri, 15 Aug 2014 20:23:58 +0000 (20:23 +0000)]
Merge "Apply lockdowns when user restrictions are set." into lmp-dev

9 years agoApply lockdowns when user restrictions are set.
Julia Reynolds [Mon, 11 Aug 2014 20:40:08 +0000 (16:40 -0400)]
Apply lockdowns when user restrictions are set.

Previously DMAgent would apply these lockdowns before/
after setting the matching user restrictions.

Bug: 16701642
Bug: 16945830
Bug: 16944983
Change-Id: Ib4f7145055687f12408d6ccacd8e6380406a32b2

9 years agoFix errors that could lead to brightness flickering
Adrian Roos [Fri, 15 Aug 2014 18:11:38 +0000 (20:11 +0200)]
Fix errors that could lead to brightness flickering

Ensures that changing the brightness doesn't lead to
another write to settings from SystemUI. Also makes
sure that a BrightnessDialog from a background user
is never showing. While we're in there, fix the obsolete
window flags as well and ensure BrightnessDialog only ever
allocates one BrightnessController.

Bug: 16297345
Change-Id: Id95b598b0fa99680072bc160afb00d2cd49f05ca

9 years agoTighten restore-at-install behavior
Christopher Tate [Fri, 15 Aug 2014 18:12:13 +0000 (11:12 -0700)]
Tighten restore-at-install behavior

Harden the guarantee that if we're asked about a possible restore,
we always ALWAYS report back to the package manager.  This involved
closing "should never happen" edge cases around provisioning/auto-restore
setting that nevertheless were happening.

Also, on the auto-restore setting front, make sure to plumb that
system API through appropriately, since going behind its back and
manipulating the secure setting directly would cause things to get
out of step.

Bug 17060654

Change-Id: I52ca9c1ffbfc0bd6b57196157500d0868bfc2989

9 years agoMerge "Revert "PowerManager: Adds a call to reduce refresh rate while device is in...
Ruchi Kandoi [Fri, 15 Aug 2014 18:37:19 +0000 (18:37 +0000)]
Merge "Revert "PowerManager: Adds a call to reduce refresh rate while device is in BatterySaverMode"" into lmp-dev

9 years agoRevert "PowerManager: Adds a call to reduce refresh rate while device is in BatterySa...
Ruchi Kandoi [Fri, 15 Aug 2014 18:25:14 +0000 (11:25 -0700)]
Revert "PowerManager: Adds a call to reduce refresh rate while device is in BatterySaverMode"

This reverts commit d54157e2e92f58e997c4bdb50e026e6a0d0121fd.

Bug: 16654179
Change-Id: Id4f22c0a4e23518881ac58ad969c16c4612306a2

9 years agoMerge "Minor doc fixes from API council recommendations." into lmp-dev
Chet Haase [Fri, 15 Aug 2014 18:33:40 +0000 (18:33 +0000)]
Merge "Minor doc fixes from API council recommendations." into lmp-dev

9 years agoMinor doc fixes from API council recommendations.
Chet Haase [Fri, 15 Aug 2014 15:54:44 +0000 (08:54 -0700)]
Minor doc fixes from API council recommendations.

Issue #17008236 API review: android.graphics

Change-Id: I171d376b642707858198d8a1379c732fcfcab4dd

9 years agoMerge "Add metadata and notifications to OneMedia" into lmp-dev
Erik Pasternak [Fri, 15 Aug 2014 18:25:29 +0000 (18:25 +0000)]
Merge "Add metadata and notifications to OneMedia" into lmp-dev

9 years agoMerge "Zen: tweak audience interruption logic." into lmp-dev
John Spurlock [Fri, 15 Aug 2014 18:16:13 +0000 (18:16 +0000)]
Merge "Zen: tweak audience interruption logic." into lmp-dev

9 years agoZen: tweak audience interruption logic.
John Spurlock [Fri, 15 Aug 2014 18:05:47 +0000 (14:05 -0400)]
Zen: tweak audience interruption logic.

Only check audience for calls & messages.

Bug:17061146
Change-Id: I7f0176a7184c725fef393784fe8ccb0eb7f49ff7

9 years agoZen: Downtime now a condition provider, persist conditions.
John Spurlock [Wed, 13 Aug 2014 13:19:03 +0000 (09:19 -0400)]
Zen: Downtime now a condition provider, persist conditions.

- Persist the entire exit condition instead of only the id.
- Make downtime a proper condition provider (similar to the
  existing countdown provider for time-based conditions)
- Move all downtime-related items out of ZenModeHelper and
  into the new condition provider.
- Reevaluate downtime more often, when any of its inputs change.
- Make sure downtime appears as an available condition in the
  condition panel when applicable.

Bug:16296125
Bug:16211189
Bug:17031767
Change-Id: I1d8269a4e6fe170ce776bf932dbbdfb29dd25dd7

9 years agoRemove setManagingTrust workaround
Adrian Roos [Thu, 14 Aug 2014 13:56:04 +0000 (15:56 +0200)]
Remove setManagingTrust workaround

Bug: 16622870
Change-Id: Ibdfdd420996081c055d0364f77b65dea6060cb9e

9 years agoMerge "Fix crash in legacy apps that register without a looper" into lmp-dev
RoboErik [Fri, 15 Aug 2014 18:10:48 +0000 (18:10 +0000)]
Merge "Fix crash in legacy apps that register without a looper" into lmp-dev

9 years agoMerge "Revert "Revert "Revert "Revert "Revert "Update Trusted Credentials screen...
Zoltan Szatmary-Ban [Fri, 15 Aug 2014 14:08:41 +0000 (14:08 +0000)]
Merge "Revert "Revert "Revert "Revert "Revert "Update Trusted Credentials screen in settings"""""" into lmp-dev

9 years agoRevert "Revert "Revert "Revert "Revert "Update Trusted Credentials screen in settings...
Zoltan Szatmary-Ban [Fri, 15 Aug 2014 14:01:14 +0000 (14:01 +0000)]
Revert "Revert "Revert "Revert "Revert "Update Trusted Credentials screen in settings"""""

This reverts commit c9249c69813c6fb889d71d84583c67ae2942e6de.

Change-Id: I5504fddaf7b18efb73cd6c76678b3b39ce9b0229

9 years agoRevert "Revert "Revert "Revert "Update Trusted Credentials screen in settings""""
Zoltan Szatmary-Ban [Fri, 15 Aug 2014 12:52:35 +0000 (12:52 +0000)]
Revert "Revert "Revert "Revert "Update Trusted Credentials screen in settings""""

This reverts commit 87efe74e092236c372d3b6909009641123aa416a.

This should be fine now with all the dependency CLs +2-ed

Change-Id: I96ad14ad5ff81e6b5391035cb6c5a62339c6cc40

9 years agoRevert "Revert "Revert "Update Trusted Credentials screen in settings"""
Narayan Kamath [Fri, 15 Aug 2014 12:25:52 +0000 (12:25 +0000)]
Revert "Revert "Revert "Update Trusted Credentials screen in settings"""

This reverts commit 19c8ce291e89a9ef1442a20e1feab421b11536d7.

Change-Id: Ie5a5571127311e0a29f314c0566e779cfe940b53

9 years agoRevert "Revert "Update Trusted Credentials screen in settings""
Zoltan Szatmary-Ban [Fri, 15 Aug 2014 11:52:15 +0000 (11:52 +0000)]
Revert "Revert "Update Trusted Credentials screen in settings""

This reverts commit 0f0de0bdd021bad5f85fdb0399a4ea91a1611e25.

Change-Id: Ia3d0907e3d7c2ec42d64e45f60e3dfaffb932c3d

9 years agoFix crash in ResStringPool
Adam Lesinski [Fri, 15 Aug 2014 00:58:37 +0000 (17:58 -0700)]
Fix crash in ResStringPool

When a String isn't found in the StringPool,
we should not try to construct a String8 object
from the NULL string.

Bug:15163956
Change-Id: I51e701918b10a72c18a860b8a36dce2afd9c0b82

9 years agoMerge "Integrate NativeActivity with NativeBridge interfaces" into lmp-dev
Calin Juravle [Fri, 15 Aug 2014 13:13:27 +0000 (13:13 +0000)]
Merge "Integrate NativeActivity with NativeBridge interfaces" into lmp-dev

9 years agoIntegrate NativeActivity with NativeBridge interfaces
Yong WU [Mon, 28 Jul 2014 13:20:18 +0000 (21:20 +0800)]
Integrate NativeActivity with NativeBridge interfaces

Bug: 16884833

(cherry picked from commit I73aab8e212860ba5aee9444d801806d3da326a41)

Change-Id: I67f037ea81d2a4ede4294afd8b84b7640e534a13

9 years agoMerge "Fix getPackageInfo for the "android" package in the system server." into lmp-dev
Narayan Kamath [Fri, 15 Aug 2014 17:57:27 +0000 (17:57 +0000)]
Merge "Fix getPackageInfo for the "android" package in the system server." into lmp-dev

9 years agoFix getPackageInfo for the "android" package in the system server.
Narayan Kamath [Fri, 15 Aug 2014 17:11:04 +0000 (18:11 +0100)]
Fix getPackageInfo for the "android" package in the system server.

bug: 16555230
Change-Id: I90ebf9b35fda8246b0079f67b1469f96c3b4ede2

9 years agoMerge "Fix issue where unlock handlers are not properly updated" into lmp-dev
Andres Morales [Fri, 15 Aug 2014 17:22:15 +0000 (17:22 +0000)]
Merge "Fix issue where unlock handlers are not properly updated" into lmp-dev

9 years agoFix issue where unlock handlers are not properly updated
Andres Morales [Thu, 14 Aug 2014 22:43:30 +0000 (15:43 -0700)]
Fix issue where unlock handlers are not properly updated

If an unlock handler already exists, we need to try
to update the tech mask for it. Don't permit unlock
handlers with no tech mask.

Bug: 17054331
Change-Id: I54a885d28bdd8ce41d8646d968621c7d6abc9387

9 years agoMerge "Revert "Revert "Revert "Update Trusted Credentials screen in settings""""...
Narayan Kamath [Fri, 15 Aug 2014 12:35:07 +0000 (12:35 +0000)]
Merge "Revert "Revert "Revert "Update Trusted Credentials screen in settings"""" into lmp-dev

9 years agoMerge "Revert "Fix aapt dump for APKs with no resources"" into lmp-dev
Adam Lesinski [Fri, 15 Aug 2014 17:19:51 +0000 (17:19 +0000)]
Merge "Revert "Fix aapt dump for APKs with no resources"" into lmp-dev

9 years agoRevert "Fix aapt dump for APKs with no resources"
Adam Lesinski [Fri, 15 Aug 2014 17:18:21 +0000 (17:18 +0000)]
Revert "Fix aapt dump for APKs with no resources"

This reverts commit 0e475302cd196f45a01a525c49089018b238d4ba.

I'll re-upload this CL with the correct fix in LoadedApk.

Change-Id: I17c6381f8e5907dab9f996f89c5d435b9c08a13a

9 years agoMerge "Disable verification based on vold.decrypt. [frameworks/base]" into lmp-dev
Brian Carlstrom [Fri, 15 Aug 2014 17:04:19 +0000 (17:04 +0000)]
Merge "Disable verification based on vold.decrypt. [frameworks/base]" into lmp-dev

9 years agoDisable verification based on vold.decrypt. [frameworks/base]
Brian Carlstrom [Fri, 15 Aug 2014 16:31:27 +0000 (09:31 -0700)]
Disable verification based on vold.decrypt. [frameworks/base]

Bug: 15165413
Change-Id: I7aff8e2a2890971fe97769d42121c207dc36aa7c

9 years agoMerge "Fixed several bugs with the notification shade" into lmp-dev
Selim Cinek [Fri, 15 Aug 2014 13:13:24 +0000 (13:13 +0000)]
Merge "Fixed several bugs with the notification shade" into lmp-dev

9 years agoFixed several bugs with the notification shade
Selim Cinek [Thu, 14 Aug 2014 17:28:15 +0000 (19:28 +0200)]
Fixed several bugs with the notification shade

Cleaned up the code around mMaxPanelHeight of the
PanelView which could lead to flickering during
peeking.
Changed the panel opening logic to account for lag
when we need to wait for a layout, which could lead
to inconsistent animations.
Fixed a bug where holes could appear in the shade
when notifications were updating.
This also improved the general updating behaviour
which is now done in a nicer animation.

Bug: 15942322
Bug: 15861506
Bug: 15168335
Change-Id: Ifd7ce51bea6b5e39c9b76fd0d766a7d2c42bf7a4

9 years agoMerge "Validate instruction sets passed to installd." into lmp-dev
Narayan Kamath [Fri, 15 Aug 2014 12:00:28 +0000 (12:00 +0000)]
Merge "Validate instruction sets passed to installd." into lmp-dev

9 years agoValidate instruction sets passed to installd.
Narayan Kamath [Fri, 8 Aug 2014 11:44:12 +0000 (12:44 +0100)]
Validate instruction sets passed to installd.

We don't want folks passing down arbitrary strings.

bug: 16837404
Change-Id: I73ac66b376f1401f9f95f3c6323da6242ac8ed3d

9 years agoMerge "Remove system_server classes from the boot image." into lmp-dev
Narayan Kamath [Fri, 15 Aug 2014 13:06:47 +0000 (13:06 +0000)]
Merge "Remove system_server classes from the boot image." into lmp-dev

9 years agoRemove system_server classes from the boot image.
Narayan Kamath [Thu, 7 Aug 2014 09:57:40 +0000 (10:57 +0100)]
Remove system_server classes from the boot image.

We set the system_server classpath in the environment
(like we do with BOOTCLASSPATH). After the zygote forks
the system_server, we dexopt the classpath (if needed)
and then launch the system server with the correct
PathClassLoader. This needed several small / medium
refactorings :

- The logic for connecting to installd is now in a separate
  class and belongs in the system_server.
- SystemService / SystemServiceManager have now moved to
  classes.jar. They are only used from there, and since they
  use Class.forName, we want them to be loaded by the
  system_server classloader, and not the bootclassloader.
- BootReceiver now moves to frameworks.jar, because it is
  used by ActivityThread and friends.

bug: 16555230

Change-Id: Ic84f0b2baf611eeedff6d123cb7191bb0259e600

9 years agoMerge "Revert "Revert "Revert "Revert "Update Trusted Credentials screen in settings...
Zoltan Szatmary-Ban [Fri, 15 Aug 2014 13:00:09 +0000 (13:00 +0000)]
Merge "Revert "Revert "Revert "Revert "Update Trusted Credentials screen in settings""""" into lmp-dev

9 years agoFix crash in legacy apps that register without a looper
RoboErik [Fri, 15 Aug 2014 01:42:09 +0000 (18:42 -0700)]
Fix crash in legacy apps that register without a looper

Some legacy apps registered their media button receiver in a thread
without a looper. If this happens we need to use the main looper to
prevent a crash.

bug: 16306226
Change-Id: Idf472e649393e2a7ce2a3e1cbb3476003ab17f34

9 years agoAdd metadata and notifications to OneMedia
Daniel Sandler [Thu, 5 Jun 2014 06:54:13 +0000 (02:54 -0400)]
Add metadata and notifications to OneMedia

This wires up a notification and some basic metadata for testing
in OneMedia.

Change-Id: I0f2e922536c85caa63f66dae7deb55ffe94fe231

9 years agoAdd fragment animations to setup leanback theme
Justin Mattson [Tue, 22 Jul 2014 20:27:14 +0000 (13:27 -0700)]
Add fragment animations to setup leanback theme

Change-Id: I1f2c2297d73577d215bef686e5a0d56ae146adc9

9 years agoTweak leanback form style
Justin Mattson [Thu, 17 Jul 2014 21:53:38 +0000 (14:53 -0700)]
Tweak leanback form style

Change-Id: I2ecc691b6a0b83590b38cc676674a1d293d18e9e

9 years agoFix aapt dump for APKs with no resources
Adam Lesinski [Thu, 14 Aug 2014 20:53:34 +0000 (13:53 -0700)]
Fix aapt dump for APKs with no resources

All APKs are expected to have at least one resource table (even if
it is empty). We were missing the creation of an empty DynamicRefTable.

Bug:16895517
Change-Id: I6a6e887f91b3b4bbcc52b3fd2741ef3d05fab1fd

9 years agoMerge "ActionBarOverlay needs to be focusable" into lmp-dev
Chet Haase [Thu, 14 Aug 2014 22:34:42 +0000 (22:34 +0000)]
Merge "ActionBarOverlay needs to be focusable" into lmp-dev

9 years agoMerge "Some networks may have null ifaces, I guess?" into lmp-dev
Jeff Sharkey [Fri, 15 Aug 2014 04:26:51 +0000 (04:26 +0000)]
Merge "Some networks may have null ifaces, I guess?" into lmp-dev

9 years agoSome networks may have null ifaces, I guess?
Jeff Sharkey [Thu, 14 Aug 2014 19:55:00 +0000 (12:55 -0700)]
Some networks may have null ifaces, I guess?

Seems like a bug further upstream, but guard ourselves against it
for now.

Bug: 17033841
Change-Id: Id0e5895c3389b63d4e34b1fb064efef8b72cd609

9 years agoMerge "Fix race condition between binder deaths" into lmp-dev
Craig Mautner [Fri, 15 Aug 2014 02:16:31 +0000 (02:16 +0000)]
Merge "Fix race condition between binder deaths" into lmp-dev

9 years agoUse thread safe set for RemoteConnection.mListeners
Sailesh Nepal [Fri, 15 Aug 2014 00:43:13 +0000 (17:43 -0700)]
Use thread safe set for RemoteConnection.mListeners

Switch from HashSet to set backed by a ConcurrentHashMap to prevent
ConcurrentModificationExceptions.

(Relanding ag/521178. This got reveretd in ag/520450).

Bug: 16901565
Change-Id: I997898ed94f305d9b8c57eead04e0dfe6c04a884

9 years agoInclude more state in ParcelableConnection
Sailesh Nepal [Fri, 15 Aug 2014 00:39:34 +0000 (17:39 -0700)]
Include more state in ParcelableConnection

This fixes a bug where setting status hints wouldn't
work.

Bug: 17044602
Change-Id: Ife85b2d53ead38f54dac350adc09b8c9d052fda4

9 years agoFix race condition between binder deaths
Craig Mautner [Thu, 14 Aug 2014 23:08:26 +0000 (16:08 -0700)]
Fix race condition between binder deaths

If a Binder dies there is a race between activity manager and window
manager to see who can handle the binderDied call first. If the
activity manager wins the race it will remove the activity and task
but leave the windows around. Until the WindowState.binderDied call
is made and all animation is complete the windows will try to access
the task that they were associated with.

This fix removes the windows of an activity when the activity is
removed. It also defers removal of the activity and task until
exiting windows have completed their animation.

Fixes bug 17031518.

Change-Id: Idf52f55c5feb0cad4e3664ef2eae5b7e95bbf490

9 years agoMerge "Tweak leanback form style" into lmp-dev
Justin Mattson [Fri, 15 Aug 2014 01:25:56 +0000 (01:25 +0000)]
Merge "Tweak leanback form style" into lmp-dev

9 years agoMerge "Fix aapt dump for APKs with no resources" into lmp-dev
Adam Lesinski [Fri, 15 Aug 2014 01:15:51 +0000 (01:15 +0000)]
Merge "Fix aapt dump for APKs with no resources" into lmp-dev

9 years agoBring back the shadow strength tweak
ztenghui [Wed, 13 Aug 2014 17:44:39 +0000 (10:44 -0700)]
Bring back the shadow strength tweak

bug:16712006

Change-Id: Ifc0ecca139d58140b45d7d227536a53069e1d480

9 years agoClean up app following death when creating service
Craig Mautner [Wed, 13 Aug 2014 17:49:26 +0000 (10:49 -0700)]
Clean up app following death when creating service

If an app has died, run through the cleanup before relaunching its
service.

Also a little simplifying refactor.

Fixes bug 16979752.

Change-Id: I376cbef2ea00fc626588386317f092cc6dea0bdc

9 years agoSwitch RouteInfo to use IpPrefix instead of LinkAddress.
Lorenzo Colitti [Tue, 12 Aug 2014 03:37:50 +0000 (12:37 +0900)]
Switch RouteInfo to use IpPrefix instead of LinkAddress.

This addresses a TODO and also makes it possible to create
routes to destinations that are not valid LinkAddresses, such as
multicast addresses.

Bug: 16875580
Change-Id: Id4c77b00dc3064bf27d78cdcbbe035e645748cfe

9 years agoPersist the cpuAbiOverride setting.
Narayan Kamath [Mon, 11 Aug 2014 12:33:45 +0000 (13:33 +0100)]
Persist the cpuAbiOverride setting.

If an app is installed with an ABI override (adb install -r --abi)
we should remember this so that we don't revert to the scan derived
ABI on the next reboot.

bug: 16476618

Change-Id: I6085bc0099eb613dd9d3b07113c7c13859780697

9 years agoMerge "TIF: Rename R.attr.contentRatingSystemXml and fix documentation" into lmp-dev
Jae Seo [Thu, 14 Aug 2014 17:29:26 +0000 (17:29 +0000)]
Merge "TIF: Rename R.attr.contentRatingSystemXml and fix documentation" into lmp-dev

9 years agoTIF: Rename R.attr.contentRatingSystemXml and fix documentation
Jae Seo [Thu, 14 Aug 2014 00:49:55 +0000 (17:49 -0700)]
TIF: Rename R.attr.contentRatingSystemXml and fix documentation

- Rename contentRatingSystemXml to tvContentRatingDescription.
- Change docs to indicate this is a reference to an XML document that
  describes TV content rating, not a component name.
- Replace the DTD with an XML example.

Bug: 16960702
Change-Id: Iea985e9847ee5af0f745e896c498792234308b12

9 years agoMerge "Post MediaSessionManager callbacks to the caller's thread" into lmp-dev
RoboErik [Thu, 14 Aug 2014 17:10:36 +0000 (17:10 +0000)]
Merge "Post MediaSessionManager callbacks to the caller's thread" into lmp-dev

9 years agoMerge "Add an onSessionDestroyed callback to MediaController.Callback" into lmp-dev
RoboErik [Thu, 14 Aug 2014 17:03:19 +0000 (17:03 +0000)]
Merge "Add an onSessionDestroyed callback to MediaController.Callback" into lmp-dev

9 years agoMerge "Fix dates on copywrite in new test code" into lmp-dev
RoboErik [Thu, 14 Aug 2014 17:02:01 +0000 (17:02 +0000)]
Merge "Fix dates on copywrite in new test code" into lmp-dev

9 years agoMake TranslucentConversionListener a SystemApi
Jose Lima [Thu, 14 Aug 2014 16:14:12 +0000 (09:14 -0700)]
Make TranslucentConversionListener a SystemApi

Change-Id: I59a93e1e040fdbaa9ef108b31e08e4553ba82ae1

9 years agoAdd an onSessionDestroyed callback to MediaController.Callback
RoboErik [Wed, 13 Aug 2014 22:00:21 +0000 (15:00 -0700)]
Add an onSessionDestroyed callback to MediaController.Callback

Callbacks on the controller need to know when the session ceases
to exist.

bug:17009030
Change-Id: I0f1c1cfc51f7dd2203955287cc269667d3765ee4

9 years agoFix dates on copywrite in new test code
RoboErik [Wed, 13 Aug 2014 20:54:49 +0000 (13:54 -0700)]
Fix dates on copywrite in new test code

Some of the copywrites in the new browser test code still had 2010
as the year instead of 2014.

Change-Id: I33d19b1ad7f4bbbc8f93d9fb6acc8a92db401807

9 years agoMerge "Pipe caller's identity through volume methods" into lmp-dev
RoboErik [Thu, 14 Aug 2014 18:05:19 +0000 (18:05 +0000)]
Merge "Pipe caller's identity through volume methods" into lmp-dev

9 years agoFix bug #16957601 Stability: ISE in Settings: Observer com.android.settings.
Fabrice Di Meglio [Wed, 13 Aug 2014 17:41:40 +0000 (10:41 -0700)]
Fix bug #16957601 Stability: ISE in Settings: Observer com.android.settings.
SettingsPreferenceFragment$1@273c8fdb was not registered

- add onUnbindPreferences() call to match onBindPreferences()
- this new method is @hide so it does not impact the APIs

Change-Id: Iee0ab8a4ecc2046f89fb96cc52af150e835f658c

9 years agoPipe caller's identity through volume methods
RoboErik [Tue, 12 Aug 2014 22:48:49 +0000 (15:48 -0700)]
Pipe caller's identity through volume methods

setStreamVolume and adjustStreamVolume were always being called
from the session service's uid/package. This adds the plumbing to
allow the original app's info to be passed in to the audio service
when volume is changed.

Change-Id: Ib36639dab1e518b435161dc453c8ba9351df3e9b

9 years agoMerge "Store the WebView's package info." into lmp-dev
Torne (Richard Coles) [Thu, 14 Aug 2014 16:10:10 +0000 (16:10 +0000)]
Merge "Store the WebView's package info." into lmp-dev

9 years agoFix javadoc on PROTECTION_FLAG_APPOP.
Jeff Sharkey [Wed, 13 Aug 2014 21:16:50 +0000 (14:16 -0700)]
Fix javadoc on PROTECTION_FLAG_APPOP.

Change-Id: I36e339ac2c6e6842441fd2572b0b8cda24bd34ca

9 years agoStore the WebView's package info.
Torne (Richard Coles) [Thu, 14 Aug 2014 15:43:18 +0000 (16:43 +0100)]
Store the WebView's package info.

When loading the WebView, save the PackageInfo for the package so that
it can be retrieved later to access the package name, version data, etc.
This will be used to detect WebView downgrades that may affect an app's
saved WebView-related data.

Bug: 16724751
Change-Id: I05ce469308cc87f79c73206327f43b76b1bab222

9 years agoMerge "Fix hashCode of TvContentRating" into lmp-dev
Sungsoo Lim [Wed, 13 Aug 2014 11:13:34 +0000 (11:13 +0000)]
Merge "Fix hashCode of TvContentRating" into lmp-dev

9 years agoFix a couple of PM warnings.
Narayan Kamath [Mon, 11 Aug 2014 10:45:24 +0000 (11:45 +0100)]
Fix a couple of PM warnings.

- "Could not delete native binary" : This one is a bit of
  a WTF. git history tells us this code has been around for
  a very long time (the warning's new though). It's a no-op
  because codePath always contains the *current* codePath and
  trying to remove native libs from the current codePath will
  do nothing for bundled apps. This code sounds like it wants
  to delete dangling native binaries for system apps that were
  upgraded during an OTA. This sounds like a wrong place to do
  that, though.

- "Unrecognized code path" : This one's harmless and removed
  by moving this call closer to where it's used.

bug: 16823001

Change-Id: I9b40ae507b2c80ff3fdd45d5699df62bfc86514f

9 years agoFix hashCode of TvContentRating
Sungsoo Lim [Wed, 13 Aug 2014 08:30:04 +0000 (17:30 +0900)]
Fix hashCode of TvContentRating

Bug: 16963556
Change-Id: I0d419e4a47cd4b0a364d3b05063dcdbfc8a168ae

9 years agoMerge "Bugfix: adds extra null check" into lmp-dev
Alexandra Gherghina [Wed, 13 Aug 2014 09:55:41 +0000 (09:55 +0000)]
Merge "Bugfix: adds extra null check" into lmp-dev

9 years agoSuppress warnings of redundant calls of #updateCursorAnchorInfo
Yohei Yukawa [Wed, 13 Aug 2014 07:49:35 +0000 (16:49 +0900)]
Suppress warnings of redundant calls of #updateCursorAnchorInfo

Warnings of redundant calls of #updateCursorAnchorInfo should be
suppressed at least until such redundant calls from
android.widget.Editor are addressed.

BUG: 16996008
Change-Id: I62b6acdab06178520473bd53e56e2cfb62fb17be

9 years agoMerge "TIF: Fix release logic for hardware wrapper input" into lmp-dev
Ji-Hwan Lee [Wed, 13 Aug 2014 06:43:11 +0000 (06:43 +0000)]
Merge "TIF: Fix release logic for hardware wrapper input" into lmp-dev

9 years agoTIF: Fix release logic for hardware wrapper input
Ji-Hwan Lee [Tue, 12 Aug 2014 22:33:50 +0000 (07:33 +0900)]
TIF: Fix release logic for hardware wrapper input

Change-Id: I7aad26682738e7a20bc6a053c3827ab79e83e925

9 years agoMerge "TIF: fix parental control data inconsistency" into lmp-dev
Wonsik Kim [Wed, 13 Aug 2014 05:46:44 +0000 (05:46 +0000)]
Merge "TIF: fix parental control data inconsistency" into lmp-dev

9 years agoTIF: fix parental control data inconsistency
Wonsik Kim [Wed, 13 Aug 2014 05:34:28 +0000 (14:34 +0900)]
TIF: fix parental control data inconsistency

Bug: 16987144
Change-Id: I43cc7de92663d50073d5c4da1dbffe4e9a2b26a6

9 years agoFix some minor print UX bugs.
Svet Ganov [Tue, 12 Aug 2014 07:57:07 +0000 (00:57 -0700)]
Fix some minor print UX bugs.

1. The last row of print options was not visible on a phone.

2. The preview page size on a phone in landscape unusably small.

3. Updated the Save to PDF icon.

bug:16966145

Change-Id: I25ce1572758c62f34344683af2452fb045bb857e

9 years agoCheck accessibility cache integrity only on eng builds.
Svet Ganov [Fri, 8 Aug 2014 22:11:22 +0000 (15:11 -0700)]
Check accessibility cache integrity only on eng builds.

The checks may have false ositives and spam test logs.

bug:1689853:

Change-Id: I576600192823f159e28ecea29f888187eeceb98b

9 years agoLarge text support for notifications.
Dan Sandler [Mon, 4 Aug 2014 04:43:39 +0000 (00:43 -0400)]
Large text support for notifications.

Bug: 7216066
Bug: 15437369
Change-Id: I01a07f04c18d374fc1656f0b1f439a7c33c9d80c

9 years agoCEC: Remove timeout from deviceSelect processing
Jinsuk Kim [Tue, 12 Aug 2014 09:10:21 +0000 (18:10 +0900)]
CEC: Remove timeout from deviceSelect processing

20-second timeout set for incoming <active source> command after
<set stream path> is moved out of HdmiControlService, to
HDMI input service.

Bug: 16967429
Change-Id: I5b50b0187e562b51e227a29e54824740ca37906e

9 years agoMerge "Implement MHL RAP transmission." into lmp-dev
Yuncheol Heo [Thu, 14 Aug 2014 10:01:20 +0000 (10:01 +0000)]
Merge "Implement MHL RAP transmission." into lmp-dev

9 years agoFixed unnecessary layouting on wifi signal changes
Selim Cinek [Wed, 13 Aug 2014 16:20:54 +0000 (18:20 +0200)]
Fixed unnecessary layouting on wifi signal changes

This could cause a layout every few hundred ms, even
when the QS panel was closed.

Bug: 17001532
Change-Id: I3f2b9b9621dced7f5b6fff67d24efc7444b0a9ad

9 years agoImplement MHL RAP transmission.
Yuncheol Heo [Wed, 13 Aug 2014 07:31:50 +0000 (16:31 +0900)]
Implement MHL RAP transmission.

- The creation of this action will be integrated later after the device-id is ready.

Bug: 16966458
Change-Id: I7bf46a8570534e2b021afea613b355a55e9f549f

9 years agoProtect from malformed advt with invalid manf_id/data combo
Prerepa Viswanadham [Wed, 13 Aug 2014 23:52:55 +0000 (16:52 -0700)]
Protect from malformed advt with invalid manf_id/data combo

Bug: 16979645
Change-Id: Ie7ea00ed20cbad1120c7582bb2bafd44b4295052

9 years agoPrevent crash in Gatt service due to null pointer in
Prerepa Viswanadham [Wed, 13 Aug 2014 21:46:58 +0000 (14:46 -0700)]
Prevent crash in Gatt service due to null pointer in
BluetoothGattCharacteristic from framework

Bug 16899517

Change-Id: Ib30ddefee07c2953f9a7faeb4eaa823feeebdc8f

9 years agoMerge "media: release allocated strings on error" into lmp-dev
Lajos Molnar [Thu, 14 Aug 2014 07:37:32 +0000 (07:37 +0000)]
Merge "media: release allocated strings on error" into lmp-dev

9 years agoMerge "Clean up advertise and scan clients upon bluetooth down." into lmp-dev
Wei Wang [Thu, 14 Aug 2014 04:53:40 +0000 (04:53 +0000)]
Merge "Clean up advertise and scan clients upon bluetooth down." into lmp-dev

9 years agoTIF: resolve SecurityException on loadCustomLabel().
Dongwon Kang [Wed, 13 Aug 2014 21:37:04 +0000 (14:37 -0700)]
TIF: resolve SecurityException on loadCustomLabel().

Bug: 17001118
Change-Id: I357ac2506562c028116c3e4f6dd611ef2b744d28

9 years agoClean up advertise and scan clients upon bluetooth down.
Wei Wang [Wed, 13 Aug 2014 05:16:32 +0000 (22:16 -0700)]
Clean up advertise and scan clients upon bluetooth down.

Fixes b/16528460

This allows Advertiser and Scanner to be reused after bluetooth recycle,
which follows same behavior for BluetoothAdapter.

Also prints manufacturer data array for ScanRecord.

Change-Id: I78bca40ac294433782a054bf2a00a775dac02d96