OSDN Git Service

android-x86/frameworks-base.git
10 years agoMerge "Relayout windows that handle their own config change." into klp-dev
Craig Mautner [Tue, 12 Nov 2013 23:56:21 +0000 (23:56 +0000)]
Merge "Relayout windows that handle their own config change." into klp-dev

10 years agoMerge "Fix inconsistency in reporting device admin active state." into klp-dev
Amith Yamasani [Tue, 12 Nov 2013 22:47:55 +0000 (22:47 +0000)]
Merge "Fix inconsistency in reporting device admin active state." into klp-dev

10 years agoRelayout windows that handle their own config change.
Craig Mautner [Tue, 12 Nov 2013 22:02:52 +0000 (14:02 -0800)]
Relayout windows that handle their own config change.

If a window claims to handle its own configuration change then we
won't destroy and recreate its window on a configuration change.
Normally that recreation triggers the first layout following
orientation change because mHaveFrame is false. Windows that handle
their own configuration changes never got a relayout pass following a
change in orientation.

This change passes the configuration changes that an application
handles into the AppWindowToken. If the app says it handles
orientation or screen size changes then a relayout will occur when the
configuration has changed.

Fixes bug 11647107.

Change-Id: Ie8d49fd050442ebbdcf0b805087894e3a2fc4be9

10 years agoMerge "Add event logging for tasks and stacks." into klp-dev
Craig Mautner [Tue, 12 Nov 2013 19:15:23 +0000 (19:15 +0000)]
Merge "Add event logging for tasks and stacks." into klp-dev

10 years agoMerge "Fix bug #11586041 Regression: text truncation in Clock" into klp-dev
Fabrice Di Meglio [Tue, 12 Nov 2013 19:03:48 +0000 (19:03 +0000)]
Merge "Fix bug #11586041 Regression: text truncation in Clock" into klp-dev

10 years agoMerge "Make AudioPackage11 (N7 v2) more like AudioPackage12_48 (N5)" into klp-dev
Glenn Kasten [Tue, 12 Nov 2013 18:40:42 +0000 (18:40 +0000)]
Merge "Make AudioPackage11 (N7 v2) more like AudioPackage12_48 (N5)" into klp-dev

10 years agoMerge "Camera2: Add support for partial result metadata quirk" into klp-dev
Eino-Ville Talvala [Tue, 12 Nov 2013 18:27:06 +0000 (18:27 +0000)]
Merge "Camera2: Add support for partial result metadata quirk" into klp-dev

10 years agoAdd event logging for tasks and stacks.
Craig Mautner [Tue, 12 Nov 2013 16:31:15 +0000 (08:31 -0800)]
Add event logging for tasks and stacks.

Also remove crufty write-only DisplayContent.mStackHistory.

Change-Id: I62b2b53dc02377c5d0d3b79df70b1990eed87d23

10 years agoMerge "UI tweaks." into klp-dev
Jeff Brown [Tue, 12 Nov 2013 05:57:48 +0000 (05:57 +0000)]
Merge "UI tweaks." into klp-dev

10 years agoUI tweaks.
Jeff Brown [Tue, 12 Nov 2013 01:55:08 +0000 (17:55 -0800)]
UI tweaks.

Hide disabled routes from the chooser.

Fix layout of chooser dialog when the settings button is visible and
the list is very long to prevent truncation of the settings button.

Fix an issue when we fake the route connecting status when a route
is selected.  The route changed notification needs to be propagated
to apps.  Fake it better.

Immediately disconnect from a route when the connection is lost or
a connection attempt fails.  Added a few new test displays for this
case.

Bug: 11257292
Change-Id: I360ab5dc937ad60d97592eab54b19f034519645e

10 years agoMerge "PreferencesFragment showing the breadcrumb area in single pane mode." into...
Svetoslav [Tue, 12 Nov 2013 04:01:16 +0000 (04:01 +0000)]
Merge "PreferencesFragment showing the breadcrumb area in single pane mode." into klp-dev

10 years agoPreferencesFragment showing the breadcrumb area in single pane mode.
Svetoslav [Tue, 12 Nov 2013 02:20:25 +0000 (18:20 -0800)]
PreferencesFragment showing the breadcrumb area in single pane mode.

If the PreferenceActivity is running in a single pane mode we are
not showing the headers and the breadcrumb area. However, when this
activity is restarted and has a saved state to restore we are trying
to use headers even in a single pane mode. As a result the breadcrumb
area is shown and the content is shifted to the bottom with an empty
space at the top. This change ignores the saved headers from the
saved instance state in a single pane mode. Note that in such a case
these headers are null anyway as we do not use them.

bug:11242762

Change-Id: I2828bc82762695d9c93fb4ca43933598a9b12b87

10 years agoMerge "Work on issue #11634365: Leaking restarting services" into klp-dev
Dianne Hackborn [Tue, 12 Nov 2013 01:36:10 +0000 (01:36 +0000)]
Merge "Work on issue #11634365: Leaking restarting services" into klp-dev

10 years agoMerge "Disallow transient status bar on the keyguard." into klp-dev
John Spurlock [Tue, 12 Nov 2013 01:28:40 +0000 (01:28 +0000)]
Merge "Disallow transient status bar on the keyguard." into klp-dev

10 years agoWork on issue #11634365: Leaking restarting services
Dianne Hackborn [Tue, 12 Nov 2013 01:25:37 +0000 (17:25 -0800)]
Work on issue #11634365: Leaking restarting services

Tighten up some flows to try to avoid any chance of leaving
a restarting service on the list, add a log to the only remaining
place I could find that we could get in to trouble for some
reason.

Change-Id: Iffb9be9d97deefc6cf0c5790eedfeb6e4e8a36bc

10 years agoFix bug #11586041 Regression: text truncation in Clock
Fabrice Di Meglio [Fri, 8 Nov 2013 22:54:04 +0000 (14:54 -0800)]
Fix bug #11586041 Regression: text truncation in Clock

Background padding should be used only and only if
- no padding is already defined into a layout file
- an explicit call to setBackground() / setBackgroundDrawable() has been done

Change-Id: I0a732c61b898e006ee86377bcbe7691740d68111

10 years agoDelegate existence of account check to Authenticator.
Jatin Lodhia [Thu, 7 Nov 2013 08:14:25 +0000 (00:14 -0800)]
Delegate existence of account check to Authenticator.

Current AccountManager code for getAuthToken checks if the account
in the request exists. If the account does not exist then it throws
an exception which leads to a runtime exception being thrown by
AccountManager in the client. In perticular, Checkin client code
hits this issue when accounts are deleted by user. As the exception
is thrown from the getAuthToken method call and is a RuntimeException
it is not caught by the client. Futhermore, Checkin runs in one of the
important processes and this exception makes the process crash.

This cl, does the following:
1) Delegates the account exists check to Authentictor which in turn
would cause an AuthenticatorException which is a checked exception.
2) Replaces some of the runtime exceptions thrown by AccountManagerService
with calling AccountManagerResponse.onError() which causes more graceful
failure on the client.
3) Correctly passes on the error returned by Authenticator to
AccountManager. Earlier if Authenticator returned an error code to
the AccountManager, it ignored the error and returned null token to the
client which was incorrect.

Bug: 10856295
Change-Id: Ie250fec601d46f6dfecd74677b478bfd4e9dcfad

10 years agoMerge "Fix Tethys asset" into klp-dev
Jean-Michel Trivi [Mon, 11 Nov 2013 23:44:27 +0000 (23:44 +0000)]
Merge "Fix Tethys asset" into klp-dev

10 years agoMerge "Give storage provider access to secondary devices." into klp-dev
Jeff Sharkey [Mon, 11 Nov 2013 23:16:38 +0000 (23:16 +0000)]
Merge "Give storage provider access to secondary devices." into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Mon, 11 Nov 2013 22:39:34 +0000 (22:39 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Mon, 11 Nov 2013 22:39:20 +0000 (22:39 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Mon, 11 Nov 2013 22:39:03 +0000 (22:39 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoGive storage provider access to secondary devices.
Jeff Sharkey [Mon, 11 Nov 2013 22:36:33 +0000 (14:36 -0800)]
Give storage provider access to secondary devices.

Bug: 11411460
Change-Id: I3827ed5b859a68c60742a27917459e8df2c276bb

10 years agoCamera2: Add support for partial result metadata quirk
Eino-Ville Talvala [Thu, 7 Nov 2013 22:45:06 +0000 (14:45 -0800)]
Camera2: Add support for partial result metadata quirk

- Add new CaptureListener.onCapturePartial() callback for receiving
  partial result metadata sooner than the full result metadata will be sent
  in onCaptureComplete().
- Add hidden keys for the partial result quirk
- Dispatch results to onCapturePartial based on the partial result quirk

All additions are hidden for now.

Bug: 11115603
Change-Id: Ie9a3be640f147257ae22e5b5edf0974bddc1cb85

10 years agoDisallow transient status bar on the keyguard.
John Spurlock [Mon, 11 Nov 2013 20:01:16 +0000 (15:01 -0500)]
Disallow transient status bar on the keyguard.

FLAG_FULLSCREEN on the app under the keyguard was keeping
the transient status bar visible if the user locked while
revealing it.

Bug:11629810
Change-Id: I034d3a4f4fe5463702253a1fca6d32debd520c3c

10 years agoFix inconsistency in reporting device admin active state.
Amith Yamasani [Mon, 11 Nov 2013 19:44:37 +0000 (11:44 -0800)]
Fix inconsistency in reporting device admin active state.

When a device admin goes away due to a package change, only one of two lists
was being updated, causing an inconsistency in the query for active admins
depending on which API was being called.

This makes sure that mAdminMap stays in sync with mAdminList so that
isActiveAdmin() and getActiveAdmins() returns the same results.

Bug: 11588094
Change-Id: I232608738249492d9fca7e4d7aa7566d96fccf46

10 years agoMerge "Fix issue #11630188: Still seeing some processes not on LRU list errors" into...
Dianne Hackborn [Mon, 11 Nov 2013 19:31:59 +0000 (19:31 +0000)]
Merge "Fix issue #11630188: Still seeing some processes not on LRU list errors" into klp-dev

10 years agoFix issue #11630188: Still seeing some processes not on LRU list errors
Dianne Hackborn [Mon, 11 Nov 2013 18:43:38 +0000 (10:43 -0800)]
Fix issue #11630188: Still seeing some processes not on LRU list errors

This happened:

android.util.Log$TerribleFailure: Adding dependent process ProcessRecord{43c7a120 0:com.google.android.gms/u0a7} not on LRU list: service connection ConnectionRecord{437c16e0 u0 CR ACT com.google.android.gms/.icing.impl.IndexService:@436ba7f8} from ProcessRecord{43c64208 4908:com.google.android.googlequicksearchbox:search/u0a19}
at android.util.Log.wtf(Log.java:290)
at android.util.Slog.wtf(Slog.java:82)
at com.android.server.am.ActivityManagerService.updateLruProcessInternalLocked(ActivityManagerService.java:2290)
at com.android.server.am.ActivityManagerService.updateLruProcessLocked(ActivityManagerService.java:2508)
at com.android.server.am.ActiveServices.updateServiceClientActivitiesLocked(ActiveServices.java:636)
at com.android.server.am.ActiveServices.removeConnectionLocked(ActiveServices.java:1656)
at com.android.server.am.ActiveServices.unbindServiceLocked(ActiveServices.java:860)
at com.android.server.am.ActivityManagerService.unbindService(ActivityManagerService.java:12773)
at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:869)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2071)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)

Because of this earlier:

11-09 18:02:19.126 W/ActivityManager(  809): Exception when starting service com.google.android.gms/.icing.impl.IndexService
11-09 18:02:19.126 W/ActivityManager(  809): android.os.DeadObjectException
11-09 18:02:19.126 W/ActivityManager(  809):  at android.os.BinderProxy.transact(Native Method)
11-09 18:02:19.126 W/ActivityManager(  809):  at android.app.ApplicationThreadProxy.scheduleCreateService(ApplicationThreadNative.java:850)
11-09 18:02:19.126 W/ActivityManager(  809):  at com.android.server.am.ActiveServices.realStartServiceLocked(ActiveServices.java:1384)
11-09 18:02:19.126 W/ActivityManager(  809):  at com.android.server.am.ActiveServices.bringUpServiceLocked(ActiveServices.java:1294)
11-09 18:02:19.126 W/ActivityManager(  809):  at com.android.server.am.ActiveServices.bindServiceLocked(ActiveServices.java:755)
11-09 18:02:19.126 W/ActivityManager(  809):  at com.android.server.am.ActivityManagerService.bindService(ActivityManagerService.java:12766)
11-09 18:02:19.126 W/ActivityManager(  809):  at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:859)
11-09 18:02:19.126 W/ActivityManager(  809):  at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2071)
11-09 18:02:19.126 W/ActivityManager(  809):  at android.os.Binder.execTransact(Binder.java:404)
11-09 18:02:19.126 W/ActivityManager(  809):  at dalvik.system.NativeStart.run(Native Method)

Not clearing the service's app pointer.

Also fix this wtf where we were not clearing the started state of
a ServiceTracker when its process goes away.  (This was like this
because we used to want to leave the started state so that we can
know the process is trying to restart.  But now that have a new
explicit restarting strate, there is no need to leave it.)

android.util.Log$TerribleFailure: Service owner ServiceRecord{436f5168 u0 com.dirtywaterlabs.uberhype/com.dirtywaterlabs.musichype.MDService} cleared while started: pkg=com.dirtywaterlabs.uberhype service=com.dirtywaterlabs.musichype.MDService proc=ProcessState{42bf4bb8 com.dirtywaterlabs.uberhype:remote/10115 pkg=com.dirtywaterlabs.uberhype}
at android.util.Log.wtf(Log.java:290)
at android.util.Slog.wtfStack(Slog.java:86)
at com.android.internal.app.ProcessStats$ServiceState.clearCurrentOwner(ProcessStats.java:2989)
at com.android.server.am.ActiveServices.serviceDoneExecutingLocked(ActiveServices.java:1821)
at com.android.server.am.ActiveServices.serviceProcessGoneLocked(ActiveServices.java:1779)
at com.android.server.am.ActiveServices.removeConnectionLocked(ActiveServices.java:1693)
at com.android.server.am.ActiveServices.killServicesLocked(ActiveServices.java:2028)
at com.android.server.am.ActivityManagerService.cleanUpApplicationRecordLocked(ActivityManagerService.java:12424)
at com.android.server.am.ActivityManagerService.handleAppDiedLocked(ActivityManagerService.java:3605)
at com.android.server.am.ActivityManagerService.appDiedLocked(ActivityManagerService.java:3750)
at com.android.server.am.ActivityManagerService$AppDeathRecipient.binderDied(ActivityManagerService.java:1026)
at android.os.BinderProxy.sendDeathNotice(Binder.java:493)
at dalvik.system.NativeStart.run(Native Method)

Change-Id: I25a3fb678b5365254490cd5509b558348655b589

10 years agoMerge "Changes to support new screen cast settings screen." into klp-dev
Jeff Brown [Mon, 11 Nov 2013 18:19:25 +0000 (18:19 +0000)]
Merge "Changes to support new screen cast settings screen." into klp-dev

10 years agoMerge "Fix a couple of issues with mOpeningApps." into klp-dev
Craig Mautner [Mon, 11 Nov 2013 18:02:08 +0000 (18:02 +0000)]
Merge "Fix a couple of issues with mOpeningApps." into klp-dev

10 years agoMerge "Use old task info when creating new task." into klp-dev
Craig Mautner [Mon, 11 Nov 2013 18:01:36 +0000 (18:01 +0000)]
Merge "Use old task info when creating new task." into klp-dev

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 11 Nov 2013 16:56:43 +0000 (08:56 -0800)]
Import translations. DO NOT MERGE

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

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 11 Nov 2013 16:22:01 +0000 (08:22 -0800)]
Import translations. DO NOT MERGE

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

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 11 Nov 2013 16:11:33 +0000 (08:11 -0800)]
Import translations. DO NOT MERGE

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

10 years agoChanges to support new screen cast settings screen.
Jeff Brown [Mon, 11 Nov 2013 02:54:03 +0000 (18:54 -0800)]
Changes to support new screen cast settings screen.

Fixed the Preference ordering code to consider the case where
two preferences might have the same order.  In that case, it
falls back on the title to disambiguate.  Previous behavior was
undefined (and technically not stable).

Expose the wifi display device address.

Perform wifi display scans every 10 seconds instead of every 15
to improve reponsiveness.

Make sure to define routes for wifi displays that we are connecting
to even if they are not yet paired.  Simplified the logic for
adding and removing these routes to avoid possibly getting out
of sync and leaving stale routes behind.

Fix wifi display notification icon.

Bug: 11257292
Change-Id: I8ac15fb17d83758c0bdce80399e12723c367b83c

10 years agoMerge "Fix text size in Fake Action Bar" into klp-dev
Deepanshu Gupta [Mon, 11 Nov 2013 06:48:30 +0000 (06:48 +0000)]
Merge "Fix text size in Fake Action Bar" into klp-dev

10 years agoMerge "Update the media router dialogs and integrate into system UI." into klp-dev
Jeff Brown [Mon, 11 Nov 2013 05:59:37 +0000 (05:59 +0000)]
Merge "Update the media router dialogs and integrate into system UI." into klp-dev

10 years agoMerge "Make quick settings show the standard media router icon." into klp-dev
Jeff Brown [Mon, 11 Nov 2013 05:59:28 +0000 (05:59 +0000)]
Merge "Make quick settings show the standard media router icon." into klp-dev

10 years agoMerge "Fixed a bug updating presentation displays." into klp-dev
Chong Zhang [Mon, 11 Nov 2013 05:41:06 +0000 (05:41 +0000)]
Merge "Fixed a bug updating presentation displays." into klp-dev

10 years agoUse old task info when creating new task.
Craig Mautner [Mon, 11 Nov 2013 04:39:05 +0000 (20:39 -0800)]
Use old task info when creating new task.

When a new task is being created solely to protect the system from an
old task going away, save the info from the old task and use it when
creating a new task.

Fixes bug 11615548.

Change-Id: Ibc3fd15ec4b0d76bce30381fbd83b6899f6a9023

10 years agoMerge "Remove TMobile Tethering APN from default builds" into klp-dev
Sonia Sharma [Mon, 11 Nov 2013 03:21:31 +0000 (03:21 +0000)]
Merge "Remove TMobile Tethering APN from default builds" into klp-dev

10 years agoUpdate the media router dialogs and integrate into system UI.
Jeff Brown [Sun, 10 Nov 2013 01:48:23 +0000 (17:48 -0800)]
Update the media router dialogs and integrate into system UI.

Port the new style UI back into the framework from the support library.
There are now two dialogs: a chooser and a controller.  We use the
same dialogs for selecting routes within app and within quick settings.

Note that the new UI does not support any grouping features since they
are deprecated and unused.

Bug: 11257292
Change-Id: I64e936a18d25ab75f0c470cbc1e7085f67004863

10 years agoMake quick settings show the standard media router icon.
Jeff Brown [Fri, 8 Nov 2013 21:55:55 +0000 (13:55 -0800)]
Make quick settings show the standard media router icon.

Fixed a bug in ImageView where we failed to inform a newly updated
Drawable about the visibility state.  This caused AnimationDrawables
to not animate when attached to an existing ImageView *unless* that
ImageView happened to be attached to the window *later* or have
its visibility toggled for some other reason.

Bug: 11257292
Change-Id: Iba9e0db5ba0db2b022950aec0c6f60a435da8ad2

10 years agoRemove TMobile Tethering APN from default builds
Robert Greenwalt [Sat, 9 Nov 2013 03:35:50 +0000 (19:35 -0800)]
Remove TMobile Tethering APN from default builds

bug:11383698
Change-Id: I037b42a85851e2cf14afdd30c6604e6b9586bc80

10 years agoFixed a bug updating presentation displays.
Chong Zhang [Fri, 8 Nov 2013 17:46:24 +0000 (09:46 -0800)]
Fixed a bug updating presentation displays.

Also made findRemoteDisplay public.

Bug: 11257292
Change-Id: Ibc9bf3d8ee7c90293ffd8796270e8883ea458a65

10 years agoFix Tethys asset
Jean-Michel Trivi [Sat, 9 Nov 2013 01:01:15 +0000 (17:01 -0800)]
Fix Tethys asset

When played on a device with MBDRC or on headphones, flaws in this
 asset become apparent: hiss throughout the sound, and positive
 true-peak on the first attack on the right channel.
This new version has reduced noise through substraction of the
 noise print at the end, and fadeout to silence. The asset is
 encoded with a 3dB headroom and a slight EQ.

Bug 11077919

Change-Id: I73ab91ca7118afd382e15a4673c332353294470e

10 years agoMerge "Restore permission check in keyguard." into klp-dev
Jim Miller [Sat, 9 Nov 2013 00:22:07 +0000 (00:22 +0000)]
Merge "Restore permission check in keyguard." into klp-dev

10 years agoFix a couple of issues with mOpeningApps.
Craig Mautner [Fri, 8 Nov 2013 23:24:22 +0000 (15:24 -0800)]
Fix a couple of issues with mOpeningApps.

In setAppVisibility add wtoken to mOpeningApps even if the requested
visibility already matches requestedHidden. When Keyguard hides an app
requestedHidden will mismatch and mOpeningApps will end up empty where
it should have the app that will become visible.

Add mAnimateWallpaperWithTarget = true to another situation where
wallpaper animation needs it.

Fixes bug 11570753.

Change-Id: I70b93bbb580386eb912613f0ce11e582eff8c449

10 years agoMerge "Avoid unnecessary ticker animation if already visible." into klp-dev
John Spurlock [Fri, 8 Nov 2013 23:00:30 +0000 (23:00 +0000)]
Merge "Avoid unnecessary ticker animation if already visible." into klp-dev

10 years agoRestore permission check in keyguard.
Jim Miller [Fri, 8 Nov 2013 21:25:36 +0000 (13:25 -0800)]
Restore permission check in keyguard.

Fixes bug 11584685

Change-Id: I80621f5608505bdc365930e0276c297c0d5bff67

10 years agoAvoid unnecessary ticker animation if already visible.
John Spurlock [Fri, 8 Nov 2013 21:56:54 +0000 (16:56 -0500)]
Avoid unnecessary ticker animation if already visible.

When ticker disabled (e.g. on lockscreen) we should avoid
animating on halt if already halted.

Bug:11033324
Change-Id: Id2927d66492a128928b80ff98dc9182209be0652

10 years agomerge in release branch changes (no-op).
Ed Heyl [Fri, 8 Nov 2013 21:23:49 +0000 (13:23 -0800)]
merge in release branch changes (no-op).

10 years agoam 5d515f26: am fd706246: am 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am...
Christopher Tate [Fri, 8 Nov 2013 20:57:49 +0000 (12:57 -0800)]
am 5d515f26: am fd706246: am 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '5d515f269b155c8e98ef5c0f8057feb41310f80f':
  System package permission decls take precedence over 3rd party apps'

10 years agoam fd706246: am 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am...
Christopher Tate [Fri, 8 Nov 2013 20:56:07 +0000 (12:56 -0800)]
am fd706246: am 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit 'fd70624629c42b0e0444a4d99ba64d58551fa6b0':
  System package permission decls take precedence over 3rd party apps'

10 years agoam 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am...
Christopher Tate [Fri, 8 Nov 2013 20:51:56 +0000 (12:51 -0800)]
am 562fddce: am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '562fddce2f154f8adec91cc8a4c4ef1fb4eabcfe':
  System package permission decls take precedence over 3rd party apps'

10 years agoam 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am...
Christopher Tate [Fri, 8 Nov 2013 20:47:43 +0000 (12:47 -0800)]
am 05e3f55f: am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '05e3f55f17e36b415a23095dbeaa1d04716aed5a':
  System package permission decls take precedence over 3rd party apps'

10 years agoam 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am...
Christopher Tate [Fri, 8 Nov 2013 20:45:38 +0000 (12:45 -0800)]
am 1d8f592a: am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '1d8f592a752c30534a6e03889f1ba42b232770ef':
  System package permission decls take precedence over 3rd party apps'

10 years agoam ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System...
Christopher Tate [Fri, 8 Nov 2013 20:41:57 +0000 (12:41 -0800)]
am ef12b1d4: am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit 'ef12b1d4a9ba6a91b61647feadaf2c4cdf34c356':
  System package permission decls take precedence over 3rd party apps'

10 years agoam ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permi...
Christopher Tate [Fri, 8 Nov 2013 20:37:43 +0000 (12:37 -0800)]
am ea198841: am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit 'ea198841a9e64d72de49811e0e2c555eb2c40b9b':
  System package permission decls take precedence over 3rd party apps'

10 years agoam ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls...
Christopher Tate [Fri, 8 Nov 2013 20:36:05 +0000 (12:36 -0800)]
am ef4694cb: am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit 'ef4694cbdd2e374e063d5d89bcb7c4b041c20a30':
  System package permission decls take precedence over 3rd party apps'

10 years agoam ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedenc...
Christopher Tate [Fri, 8 Nov 2013 20:34:13 +0000 (12:34 -0800)]
am ae229d99: am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit 'ae229d991711745bdf8da2e716c31efde534e6da':
  System package permission decls take precedence over 3rd party apps'

10 years agoam 43253333: am 50cbfd55: System package permission decls take precedence over 3rd...
Christopher Tate [Fri, 8 Nov 2013 20:31:09 +0000 (12:31 -0800)]
am 43253333: am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '43253333d24e856a7ffef818fdfaedf3fd60d3b6':
  System package permission decls take precedence over 3rd party apps'

10 years agoam 50cbfd55: System package permission decls take precedence over 3rd party apps\'
Christopher Tate [Fri, 8 Nov 2013 20:27:10 +0000 (12:27 -0800)]
am 50cbfd55: System package permission decls take precedence over 3rd party apps\'

* commit '50cbfd554f0bdf05c701d8baf15c862fbb8a6dc0':
  System package permission decls take precedence over 3rd party apps'

10 years agoMerge "Make AudioPackage10 (N4) more like AudioPackage12_48 (N5)" into klp-dev
Glenn Kasten [Fri, 8 Nov 2013 19:18:32 +0000 (19:18 +0000)]
Merge "Make AudioPackage10 (N4) more like AudioPackage12_48 (N5)" into klp-dev

10 years agoMerge changes I74bfc0d5,I577f9d36 into klp-dev
Jim Miller [Fri, 8 Nov 2013 18:58:04 +0000 (18:58 +0000)]
Merge changes I74bfc0d5,I577f9d36 into klp-dev

* changes:
  Delay tearing down external displays until keyguard finishes
  Show keyguard scrim on external displays while keyguard showing

10 years agoMerge "Allow keyguard dialogs to show on secondary displays." into klp-dev
Jeff Brown [Fri, 8 Nov 2013 18:53:41 +0000 (18:53 +0000)]
Merge "Allow keyguard dialogs to show on secondary displays." into klp-dev

10 years agoAllow keyguard dialogs to show on secondary displays.
Jeff Brown [Fri, 8 Nov 2013 01:58:15 +0000 (17:58 -0800)]
Allow keyguard dialogs to show on secondary displays.

When the keyguard or a dream is visible, we usually block content
from showing on secondary displays by mirroring the primary display
contents to them.  However, the keyguard may wish to show a
presentation on a secondary display in which case we should not
mirror.

This change adds an exemption for keyguard dialogs when the full
screen is obscured.  The keyguard can then create presentations with
the TYPE_KEYGUARD_DIALOG window type in order to show special
content on other displays selectively.

The old code used to cause all secondary displays to mirror, which
isn't quite what we want.

Bug: 11257292
Change-Id: I55429002b2233ae25fe80db149636d6f41f2a112

10 years agoMake AudioPackage11 (N7 v2) more like AudioPackage12_48 (N5)
Glenn Kasten [Fri, 8 Nov 2013 01:22:24 +0000 (17:22 -0800)]
Make AudioPackage11 (N7 v2) more like AudioPackage12_48 (N5)

Replace keyboard and lock sounds with latest (softer) design.
Bug: 11158758

Change-Id: Ib02a0cbdecaaf7618f8806f84bc896912821b5f4

10 years agoFix text size in Fake Action Bar
Deepanshu Gupta [Fri, 8 Nov 2013 11:13:07 +0000 (16:43 +0530)]
Fix text size in Fake Action Bar

The density multiplier was being applied twice to the title text in
the fake action bar.

Bug: 11436018
Change-Id: Id74c11037cb43d01f6cd79126623c84edfc37aaf

10 years agocamera2: Remove prior repeating request when setting.
Ruben Brunk [Fri, 8 Nov 2013 03:30:43 +0000 (19:30 -0800)]
camera2: Remove prior repeating request when setting.

Bug: 11579778
Change-Id: Idb10662413ff5ee939adbdeab68a97cb34750fac

10 years agoDelay tearing down external displays until keyguard finishes
Jim Miller [Fri, 8 Nov 2013 03:15:49 +0000 (19:15 -0800)]
Delay tearing down external displays until keyguard finishes

This waits until the keyguard window is actually removed before turning
off external presentations to avoid flashing the user's password.

Fixes bug 11562369

Change-Id: I74bfc0d5e23dccc5a8628abfe02868c71c371f6e

10 years agoSystem package permission decls take precedence over 3rd party apps'
Christopher Tate [Tue, 5 Nov 2013 20:28:10 +0000 (12:28 -0800)]
System package permission decls take precedence over 3rd party apps'

In particular, if a 3rd party app tries to define a permission that
turns out to be defined by system packages following an upgrade,
the system package gets ownership and grants are re-evaluated
on that basis.

Bug 11242510

(Cherry-pick backport to JB)

Change-Id: Iabf7b6280e6c6674a51af5624142bd19ea0750ed

10 years agoShow keyguard scrim on external displays while keyguard showing
Jim Miller [Thu, 7 Nov 2013 04:43:55 +0000 (20:43 -0800)]
Show keyguard scrim on external displays while keyguard showing

Fixes bug 11562369

Change-Id: I577f9d3683e62689954b4640601b3f360b78cb31

10 years agoMerge "Fix BandwidthTest to report correct stats." into klp-dev
Maxim Siniavine [Fri, 8 Nov 2013 01:56:16 +0000 (01:56 +0000)]
Merge "Fix BandwidthTest to report correct stats." into klp-dev

10 years agoMerge "Integrate remote display providers into Quick Settings." into klp-dev
Jeff Brown [Fri, 8 Nov 2013 01:37:03 +0000 (01:37 +0000)]
Merge "Integrate remote display providers into Quick Settings." into klp-dev

10 years agoMerge "Add media router service and integrate with remote displays." into klp-dev
Jeff Brown [Fri, 8 Nov 2013 01:36:55 +0000 (01:36 +0000)]
Merge "Add media router service and integrate with remote displays." into klp-dev

10 years agoMerge "Add a platform library for remote display providers." into klp-dev
Jeff Brown [Fri, 8 Nov 2013 01:36:41 +0000 (01:36 +0000)]
Merge "Add a platform library for remote display providers." into klp-dev

10 years agoMerge "Fix improperly hidden status bar." into klp-dev
John Spurlock [Fri, 8 Nov 2013 00:47:13 +0000 (00:47 +0000)]
Merge "Fix improperly hidden status bar." into klp-dev

10 years agoMake AudioPackage10 (N4) more like AudioPackage12_48 (N5)
Glenn Kasten [Thu, 7 Nov 2013 18:05:41 +0000 (10:05 -0800)]
Make AudioPackage10 (N4) more like AudioPackage12_48 (N5)

Replace keyboard and lock sounds with latest (softer) design.

Bug: 11158758
Change-Id: Ic40d53207be8b23fdafb3ac0c0852744950c79ec

10 years agoMerge "Switch to the new Skia PDF generation APIs." into klp-dev
Svetoslav [Fri, 8 Nov 2013 00:20:10 +0000 (00:20 +0000)]
Merge "Switch to the new Skia PDF generation APIs." into klp-dev

10 years agoIntegrate remote display providers into Quick Settings.
Jeff Brown [Thu, 7 Nov 2013 08:38:14 +0000 (00:38 -0800)]
Integrate remote display providers into Quick Settings.

This is a first pass at integrating new remote display functionality
into Quick Settings.  The Wireless Display card which previously
only supported Wifi Display is reimplemented to use the media router
to enumerate available remote display routes.  This ensures that the
user is presented with a consistent state regarding the currently
selected display route.

In this patch, the Wireless Display card still launches the old
Settings preference page for Wifi Display when clicked.  This will be
addressed in future patches.

As part of this change, it was necessary to derive some new lifecycle
information regarding the visibility of the Quick Settings model.
When Quick Settings is shown, an onPrepare event is delivered to
give the model a chance to update its state.  Likewise when Quick
Settings is hidden, an onUnprepare event is delivered.

These events allow the system to determine precisely when remote
display discovery is required to update the UI so as not to waste
power performing discovery in the background all of the time.

Bug: 11257292
Change-Id: Id802aa0983b625aeb972b5d123e4cc080dd6705f

10 years agoam 9dcac6f1: (-s ours) am 0fed1239: am de38b23d: DO NOT MERGE Add a delimiter between...
Selim Gurun [Thu, 7 Nov 2013 23:17:26 +0000 (15:17 -0800)]
am 9dcac6f1: (-s ours) am 0fed1239: am de38b23d: DO NOT MERGE Add a delimiter between scheme and host

* commit '9dcac6f1a74b5d6a99b832818efb0a202a88dfe7':
  DO NOT MERGE Add a delimiter between scheme and host

10 years agoam 0fed1239: am de38b23d: DO NOT MERGE Add a delimiter between scheme and host
Selim Gurun [Thu, 7 Nov 2013 23:14:33 +0000 (15:14 -0800)]
am 0fed1239: am de38b23d: DO NOT MERGE Add a delimiter between scheme and host

* commit '0fed12396a12fd69b22c1b4ee4e27a93517eb6e2':
  DO NOT MERGE Add a delimiter between scheme and host

10 years agoam de38b23d: DO NOT MERGE Add a delimiter between scheme and host
Selim Gurun [Thu, 7 Nov 2013 23:10:58 +0000 (15:10 -0800)]
am de38b23d: DO NOT MERGE Add a delimiter between scheme and host

* commit 'de38b23d0f811bed29f462e580430fc3aa781049':
  DO NOT MERGE Add a delimiter between scheme and host

10 years agoFix improperly hidden status bar.
John Spurlock [Thu, 7 Nov 2013 23:02:43 +0000 (18:02 -0500)]
Fix improperly hidden status bar.

An app lib exposed a possible timing problem, causing the bars
to remain hidden after screen rotation during immersive mode.

Bug:11440463
Change-Id: I5166bdce78a876bc08b18f8b9a340366fbbbb70a

10 years agoMerge "Fix scrubbing behavior on keyguard music transport" into klp-dev
Jim Miller [Thu, 7 Nov 2013 22:52:56 +0000 (22:52 +0000)]
Merge "Fix scrubbing behavior on keyguard music transport" into klp-dev

10 years agoFix issue #11223338: Not retaining service started state while restarting
Dianne Hackborn [Thu, 7 Nov 2013 00:30:29 +0000 (16:30 -0800)]
Fix issue #11223338: Not retaining service started state while restarting

When I cleaned up how we maintained the lifecycle of the tracker with a
service, I broke most tracking of the service restart state.  (Since at
that point the service is no longer associated with a process, so I
must clean up the tracker state).  This change introduces a new special
case for interacting with a service tracker to explicitly tell it when
a service is being restarted.  It also fixes how we update the process
state when services are attached to it, so it goes in and out of the
restarting state correctly.

In addition:

- Maybe fix issue #11224000 (APR: Dependent processes not getting added
  to LRU list).  We were not clearing ServiceRecord.app when bringing
  down a service, so if for some reason there were still connections to
  it at that point (which could happen for example for non-create bindings),
  then we would so it when updating the LRU state of that client process.
- dumpsys procstats's package argument can now be a package or process
  name, and we will dump all relevent information we can find about that
  name.
- Generally improved the quality of the dumpsys procstats output with its
  various options.
- Fixed a bug in ActivityManager.dumpPackageState() where it would hang if
  the service was dumping too much, added meminfo to the set of things
  dumped, and tweaked command line options to include more data.
- Added some more cleaning code to ActiveServices.killServices() to make
  sure we clean out any restarting ServiceRecord entries when a process is
  being force stopped.
- Re-arranged ActiveServices.killServices() to do the main killing of the
  service first, to avoid some wtf() calls that could happen when removing
  connections.

Bug: 11223338
Bug: 11224000

Change-Id: I5db28561c2c78aa43561e52256ff92c02311c56f

10 years agoImprove RTL support for Immersive mode
Fabrice Di Meglio [Wed, 6 Nov 2013 23:44:52 +0000 (15:44 -0800)]
Improve RTL support for Immersive mode

- use start/end instead of left/ritgh padding
- related to bug #11537133 Hideycling looks broken (KOT36), missing left padding

Change-Id: I0d8e1de560dbf142a3c016ab6d6784361d88d32a

10 years agoFix bug #11537133 Hideycling looks broken (KOT36), missing left padding
Fabrice Di Meglio [Wed, 6 Nov 2013 23:32:01 +0000 (15:32 -0800)]
Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding

- enforce the Drawable boolean getPadding(Rect) contract for NinePatchDrawable
and DrawableContainer.

- as NinePatchDrawable was not enforcing it, the consequence was that the
mUserPaddingLeftInitial / mUserPaddingRitghInitial were reset to "0" (even
if they got the correct value before the reset).

Change-Id: I1efe7fad5f89c0ca47f90189f6d89940e0e9c6ae

10 years agoSwitch to the new Skia PDF generation APIs.
Svetoslav [Thu, 7 Nov 2013 02:22:13 +0000 (18:22 -0800)]
Switch to the new Skia PDF generation APIs.

The new Skia PDF generation APIs are a small extension to
the code that converts drawing commands to PDF (SkPDFDevice)
and this new functionality is exposed via new APIs. This
change switches to using these new APIs allowing us to
capitalize on the new perspective support for PDF
generation.

bug:11561776

Change-Id: Ief61f7ff6a5a22c27d3acbe99a48910cb679f594

10 years agoMerge "Don't call setTask twice." into klp-dev
Craig Mautner [Thu, 7 Nov 2013 20:51:29 +0000 (20:51 +0000)]
Merge "Don't call setTask twice." into klp-dev

10 years agoMerge "If home activity is not fullscreen keep drilling." into klp-dev
Craig Mautner [Thu, 7 Nov 2013 20:49:01 +0000 (20:49 +0000)]
Merge "If home activity is not fullscreen keep drilling." into klp-dev

10 years agoIf home activity is not fullscreen keep drilling.
Craig Mautner [Thu, 7 Nov 2013 19:51:29 +0000 (11:51 -0800)]
If home activity is not fullscreen keep drilling.

When the home activity launches a non-fullscreen activity as part of
its own task then ensureActivitiesVisibleLocked() must continue past
the launched activity when determining activities to show and hide.
Stopping at the non-fullscreen activity leaves the fullscreen home
activity hidden.

Fixes bug 11555762.

Change-Id: I9058d8cde3a41cb7f9b1f97e5c0cb32e9b0f5af7

10 years agoDO NOT MERGE Add a delimiter between scheme and host
Selim Gurun [Thu, 7 Nov 2013 19:40:02 +0000 (11:40 -0800)]
DO NOT MERGE Add a delimiter between scheme and host

Bug: 6923539

Change-Id: Ia78e185f00184c53babe00df3c852114ffd721f0

10 years agoMerge "Improve RTL support for Immersive mode" into klp-dev
Fabrice Di Meglio [Thu, 7 Nov 2013 19:18:14 +0000 (19:18 +0000)]
Merge "Improve RTL support for Immersive mode" into klp-dev

10 years agoMerge "Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding" into...
Fabrice Di Meglio [Thu, 7 Nov 2013 19:17:59 +0000 (19:17 +0000)]
Merge "Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding" into klp-dev

10 years agoMerge "Add BatteryStats for Wifi Batched Scanning." into klp-dev
Robert Greenwalt [Thu, 7 Nov 2013 18:30:49 +0000 (18:30 +0000)]
Merge "Add BatteryStats for Wifi Batched Scanning." into klp-dev

10 years agoMerge "Fix issue #11223338: Not retaining service started state while restarting...
Dianne Hackborn [Thu, 7 Nov 2013 18:16:10 +0000 (18:16 +0000)]
Merge "Fix issue #11223338: Not retaining service started state while restarting" into klp-dev

10 years agoDon't call setTask twice.
Craig Mautner [Thu, 7 Nov 2013 17:10:42 +0000 (09:10 -0800)]
Don't call setTask twice.

The method ActivityRecord.setTask() removes the ActivityRecord from
its old task's mActivities ArrayList. In jb-mr2 it did not have this
side effect (there was no mActivities) so calling it twice was not a
problem. This fix causes setTask to only be called once for the target
activity.

Fixes bug 11557835.

Change-Id: If2b6d4b297e86130009713efe6891a24fad3dd15

10 years agoAdd media router service and integrate with remote displays.
Jeff Brown [Thu, 7 Nov 2013 08:30:16 +0000 (00:30 -0800)]
Add media router service and integrate with remote displays.

This change adds a new media router service whose purpose is to track
global state information associated with media routes.  This service
publishes routes to the media router instance in application processes
and handles requested state changes such as selecting or unselecting
global routes.  The service also binds to remote display provider
services which can offer new remote display routes to the system.

Includes a test application for manually verifying certain aspects
of the operation of the media router service.

The remote display provider interface is essentially a stripped down
media route provider interface as defined in the support library
media router implementation.  For now, it is designed to be used only
by first parties to publish remote display routes to the system so
it is not exposed as public API in the SDK.  In the future, the remote
display provider interface will most likely be deprecated and replaced
with a more featureful media route provider interface for third
party integration, similar to what is in the support library today.

Further patch sets integrate these new capabilities into the System UI
and Settings for connecting remote displays.

Bug: 11257292
Change-Id: I31109f23f17b474d17534d0f5f4503e388b081c2