OSDN Git Service

android-x86/frameworks-base.git
9 years agoMerge "Avoid drawing the starting window twice" into lmp-dev
Chet Haase [Wed, 24 Sep 2014 18:31:04 +0000 (18:31 +0000)]
Merge "Avoid drawing the starting window twice" into lmp-dev

9 years agoMerge "camera2: Update CamcorderProfile documentation." into lmp-dev
Ruben Brunk [Wed, 24 Sep 2014 17:54:16 +0000 (17:54 +0000)]
Merge "camera2: Update CamcorderProfile documentation." into lmp-dev

9 years agoMerge "Import translations. DO NOT MERGE" into lmp-dev
Baligh Uddin [Wed, 24 Sep 2014 17:49:30 +0000 (17:49 +0000)]
Merge "Import translations. DO NOT MERGE" into lmp-dev

9 years agoMerge "Import translations. DO NOT MERGE" into lmp-dev
Baligh Uddin [Wed, 24 Sep 2014 17:44:03 +0000 (17:44 +0000)]
Merge "Import translations. DO NOT MERGE" into lmp-dev

9 years agoMerge "Fix issue #17632804: Add resource padding" into lmp-dev
Dianne Hackborn [Wed, 24 Sep 2014 17:17:39 +0000 (17:17 +0000)]
Merge "Fix issue #17632804: Add resource padding" into lmp-dev

9 years agoMerge "Reset keystore when user is added or removed" into lmp-dev
Robin Lee [Wed, 24 Sep 2014 17:03:32 +0000 (17:03 +0000)]
Merge "Reset keystore when user is added or removed" into lmp-dev

9 years agoMerge "Fix ColorInversionTile for secondary users" into lmp-dev
Adrian Roos [Wed, 24 Sep 2014 16:46:20 +0000 (16:46 +0000)]
Merge "Fix ColorInversionTile for secondary users" into lmp-dev

9 years agoMerge "Missing pages in print preview when scorolling." into lmp-dev
Svetoslav [Wed, 24 Sep 2014 15:24:24 +0000 (15:24 +0000)]
Merge "Missing pages in print preview when scorolling." into lmp-dev

9 years agoMerge "Ignore not visible views computing click point for accessibility." into lmp-dev
Svetoslav [Wed, 24 Sep 2014 15:23:59 +0000 (15:23 +0000)]
Merge "Ignore not visible  views computing click point for accessibility." into lmp-dev

9 years agoFix ColorInversionTile for secondary users
Adrian Roos [Wed, 24 Sep 2014 15:08:22 +0000 (17:08 +0200)]
Fix ColorInversionTile for secondary users

Bug: 17626692
Change-Id: I40354a460a7c00f6fd5eb05f7836dc89129fdacb

9 years agoMerge "Add announcement of global actions dialog" into lmp-dev
Jason Monk [Wed, 24 Sep 2014 14:57:23 +0000 (14:57 +0000)]
Merge "Add announcement of global actions dialog" into lmp-dev

9 years agoMerge "Fix accessibility announcement for QS details" into lmp-dev
Jason Monk [Wed, 24 Sep 2014 14:50:03 +0000 (14:50 +0000)]
Merge "Fix accessibility announcement for QS details" into lmp-dev

9 years agoAvoid drawing the starting window twice
Chet Haase [Wed, 24 Sep 2014 14:31:29 +0000 (07:31 -0700)]
Avoid drawing the starting window twice

Logic in WindowState caused a delayed layout on the starting window,
which forced another layout/draw pass, which was unnecessary. Making
the resize call happen sooner means that that request gets lumped in
with a pending layout request, so there's only one resulting draw.

This saves not only the second drawing operation, but also the creation
of an extra buffer in SurfaceFlinger for that second draw request. This
buffer is temporary, but can be quite large on some devices and push
the system over the memory edge in extreme situations. It's difficult
to track this memory usage difference as the buffer resides at a very
low level in the system. But you can see in systrace that the second
allocation (and the second draw) is not happening after the fix.

Issue #17570761 Constrain starting window to only one buffer

Change-Id: I0e0fff7efdc812730706afccbfb020dea3f8d3e2

9 years agoAdd announcement of global actions dialog
Jason Monk [Tue, 23 Sep 2014 13:09:52 +0000 (09:09 -0400)]
Add announcement of global actions dialog

Rather than saying 'Alert', say 'Alert, ...' describing the contents
of the menu.

Bug: 17559783
Change-Id: I43b1b5ba9ce76b8c205f2d29f2f8ee7569517c19

9 years agoReset keystore when user is added or removed
Robin Lee [Tue, 23 Sep 2014 12:50:22 +0000 (13:50 +0100)]
Reset keystore when user is added or removed

Because user IDs are recycled it is not safe to leave this kind of
information around after deleting.

Bug: 17403144
Change-Id: I441f85750cf8818adaf62a1acdb2ba7b4bfc1b7e

9 years agoMerge "Register ActivityManagerService.PackageMonitor for all users." into lmp-dev
Zoltan Szatmary-Ban [Wed, 24 Sep 2014 09:41:17 +0000 (09:41 +0000)]
Merge "Register ActivityManagerService.PackageMonitor for all users." into lmp-dev

9 years agocamera2: Update CamcorderProfile documentation.
Ruben Brunk [Wed, 2 Jul 2014 18:05:08 +0000 (11:05 -0700)]
camera2: Update CamcorderProfile documentation.

Bug: 17447258

- Update documentation in CamcorderProfile for LEGACY
  mode video handling.

Change-Id: If65b93788a38ffe28caec053f81b9afa538c38a0

9 years agoMissing pages in print preview when scorolling.
Svetoslav [Wed, 24 Sep 2014 04:19:04 +0000 (21:19 -0700)]
Missing pages in print preview when scorolling.

It is possible that two providers for the same page are assigned
to two preview views despite temporariliy while rebinding. We were
however releasing the provider from the view which is being bound
if not for the same page which as a result was cancelling rendering
of this page which is provided to another view via another provider.
Hence, having an empty page. Removed the unnecessary code to release
a provider when binding the view - release is happening only if the
view holder is recycled.

bug:17515670

Change-Id: I197438c16cfdb363f521cd1320f154da54eea5f5

9 years agoMerge "Use the right format to specify SUPL_MODE value." into lmp-dev
Tsuwei Chen [Wed, 24 Sep 2014 01:53:30 +0000 (01:53 +0000)]
Merge "Use the right format to specify SUPL_MODE value." into lmp-dev

9 years agoIgnore not visible views computing click point for accessibility.
Svetoslav [Wed, 24 Sep 2014 01:48:18 +0000 (18:48 -0700)]
Ignore not visible  views computing click point for accessibility.

In accessibility mode we compute a location to where to send down and up
events to click a view (triggered by a double tap). This solves the problem
of interacting with views that are partially covered by other interactive
views. The logic that computes the click point was not ignoring siblings
that are not visible. As a result a blind user cannot interact with some
views.

bug:17632224

Change-Id: I93e637ee6702e4ba3e79faa736205430e2196d01

9 years agoMerge "Force layout and animation when display changes" into lmp-dev
Craig Mautner [Wed, 24 Sep 2014 01:43:01 +0000 (01:43 +0000)]
Merge "Force layout and animation when display changes" into lmp-dev

9 years agoMerge "AudioRecord: add HW hotword capture flag" into lmp-dev
Eric Laurent [Wed, 24 Sep 2014 01:39:33 +0000 (01:39 +0000)]
Merge "AudioRecord: add HW hotword capture flag" into lmp-dev

9 years agoForce layout and animation when display changes
Craig Mautner [Wed, 24 Sep 2014 01:37:49 +0000 (18:37 -0700)]
Force layout and animation when display changes

Each time that window manager gets a notification that a display has
been added, removed or changed, run a pass through
performLayoutAndPlaceSurfaces. This ensures that
WindowAnimator.animate() runs once so that the surfaces of remote
displays can be updated with their visibility.

Fixes bug 17533991.

Change-Id: If8745527df86c74da75fbe26b8a2a6fddeb74d2a

9 years agoFix issue #17632804: Add resource padding
Dianne Hackborn [Wed, 24 Sep 2014 01:32:39 +0000 (18:32 -0700)]
Fix issue #17632804: Add resource padding

Change-Id: If09108415fc4f64f4d4ff837a6096713a96aa334

9 years agoUse the right format to specify SUPL_MODE value.
Tsuwei Chen [Wed, 24 Sep 2014 01:29:37 +0000 (18:29 -0700)]
Use the right format to specify SUPL_MODE value.

Bug:17618140
Change-Id: I013219bb8febb4bb5c23d4896f432fd3a01c21f8

9 years agoMerge "Only stop/start clatd if necessary." into lmp-dev
Lorenzo Colitti [Wed, 24 Sep 2014 01:21:08 +0000 (01:21 +0000)]
Merge "Only stop/start clatd if necessary." into lmp-dev

9 years agoMerge "Block address families with routes, not NetworkAgent side channel" into lmp-dev
Lorenzo Colitti [Wed, 24 Sep 2014 01:21:04 +0000 (01:21 +0000)]
Merge "Block address families with routes, not NetworkAgent side channel" into lmp-dev

9 years agoMerge "Explicitly set Settings background to white" into lmp-dev
Alan Viverette [Wed, 24 Sep 2014 01:17:52 +0000 (01:17 +0000)]
Merge "Explicitly set Settings background to white" into lmp-dev

9 years agoExplicitly set Settings background to white
Alan Viverette [Wed, 24 Sep 2014 01:15:31 +0000 (18:15 -0700)]
Explicitly set Settings background to white

Fixes a regression where the background was previously the default
color, then changed to #eee even though we still want #fff here.

Removes unnecessary windowBackground re-definition.

BUG: 17520824
Change-Id: I9b3a751ce55fc018a90132078a8e308067f62445

9 years agoMerge "Work on issue #17628623: Need to update default preferred activities for YouTu...
Dianne Hackborn [Wed, 24 Sep 2014 01:00:02 +0000 (01:00 +0000)]
Merge "Work on issue #17628623: Need to update default preferred activities for YouTube" into lmp-dev

9 years agoMerge "Fix lock ordering in JobScheduler" into lmp-dev
Matthew Williams [Wed, 24 Sep 2014 00:58:54 +0000 (00:58 +0000)]
Merge "Fix lock ordering in JobScheduler" into lmp-dev

9 years agoFix lock ordering in JobScheduler
Matthew Williams [Tue, 23 Sep 2014 20:39:36 +0000 (13:39 -0700)]
Fix lock ordering in JobScheduler

BUG: 17625667
Two part clean-up.
1) Don't try to lock in onControllerStateChanged. Do it in the handleMessage
instead where the rest of the locking is. This is sufficient to fix this bug.
2) The other side of the deadlock came b/c we lock when cancelling and calling
stopTrackingJob. Controllers handle their own locking so this isn't
necessary. B/c of a potential race from the controller side, added an explicit
check for the JSS to only run an expired job if it still exists.

Change-Id: Iaeebbc19437eb5b73e3ced3168f1fc13e564a4be

9 years agoMerge "More ACTION_CHOOSER ClipData migration." into lmp-dev
Jeff Sharkey [Tue, 23 Sep 2014 23:58:50 +0000 (23:58 +0000)]
Merge "More ACTION_CHOOSER ClipData migration." into lmp-dev

9 years agoMerge "Fix ANR in print spooler." into lmp-dev
Svetoslav [Tue, 23 Sep 2014 23:53:21 +0000 (23:53 +0000)]
Merge "Fix ANR in print spooler." into lmp-dev

9 years agoMerge "Print spooler crash on back before first layout is complete." into lmp-dev
Svetoslav [Tue, 23 Sep 2014 23:52:58 +0000 (23:52 +0000)]
Merge "Print spooler crash on back before first layout is complete." into lmp-dev

9 years agoWork on issue #17628623: Need to update default preferred activities for YouTube
Dianne Hackborn [Tue, 23 Sep 2014 23:45:39 +0000 (16:45 -0700)]
Work on issue #17628623: Need to update default preferred activities for YouTube

Improve the warning logs when setting up preferred activities
to help identify when there are issues and what they are.  Also
improve the algorithm a little to still apply permissions when
resetting them and there are additional third party apps, as long
as the additional app is something like another browser and the
preferred activity being set is more specific (has a better match).

And add an example of using manifest-based preferred activities
in to ActivityTest -- and yes it DOES work! :p

Change-Id: I1ff39e03a5df6526206e0c3882085396b355d814

9 years agoMore ACTION_CHOOSER ClipData migration.
Jeff Sharkey [Tue, 23 Sep 2014 23:40:50 +0000 (16:40 -0700)]
More ACTION_CHOOSER ClipData migration.

Traverse into both EXTRA_INTENT and any EXTRA_INITIAL_INTENTS when
migrating extras to ClipData.  Also, we don't need to promote these
ClipData into the parent, since the platform ChooserActivity will
issue any required permission grants for the final user-selected
Intent.  Even if we wanted to, we can't combine the various child
Intent flags into anything meaningful at the ACTION_CHOOSER level.

Bug: 17580604
Change-Id: I6b5a1f572a7edf8135e059c67a2643d3736e40ab

9 years agoMerge "Add keylayout for Asus Gamepad" into lmp-dev
Michael Wright [Tue, 23 Sep 2014 23:35:19 +0000 (23:35 +0000)]
Merge "Add keylayout for Asus Gamepad" into lmp-dev

9 years agoFix ANR in print spooler.
Svetoslav [Tue, 23 Sep 2014 23:22:42 +0000 (16:22 -0700)]
Fix ANR in print spooler.

Saving to PDF a subset of the pages requires trimming the
undesired pages and when this is done writing the ready doc
to a URI. To write the file to URI we have to obtain it but
it is aquired by the shredding task and never released. Now
we are releasing the document immediately after trimming it.

bug:17631301

Change-Id: I4db7966c65c75f0f14c3cb52fd83b4d8fd5a4687

9 years agoAdd keylayout for Asus Gamepad
Michael Wright [Tue, 23 Sep 2014 22:56:17 +0000 (15:56 -0700)]
Add keylayout for Asus Gamepad

Bug: 17627642
Change-Id: I9dd76bbc3ea0493d5a54479ef4dc94c520e35433

9 years agoPrint spooler crash on back before first layout is complete.
Svetoslav [Tue, 23 Sep 2014 22:27:35 +0000 (15:27 -0700)]
Print spooler crash on back before first layout is complete.

If the user presses back before the remote print document
update has completed we get a crash. The reason is that
after the update completion we were trying to finish the
activity if we are in a cancelled state but this is not
needed as we aready handled the back key so we will finish.
Handling finish twice was creating the problem as classes
with lifecycles are not designed to be used after being
finished. In particular, we were calling doFinish() twice.

bug:17630561

Change-Id: If418f237a2def7c8e4a072ac8826283f4dd7fc85

9 years agoMerge "camera2-legacy: Workaround max jpeg/preview size AR mismatch" into lmp-dev
Igor Murashkin [Tue, 23 Sep 2014 22:50:29 +0000 (22:50 +0000)]
Merge "camera2-legacy: Workaround max jpeg/preview size AR mismatch" into lmp-dev

9 years agoMerge "handle bssid blacklist in case of dhcp failures" into lmp-dev
vandwalle [Tue, 23 Sep 2014 22:31:33 +0000 (22:31 +0000)]
Merge "handle bssid blacklist in case of dhcp failures" into lmp-dev

9 years agocamera2-legacy: Workaround max jpeg/preview size AR mismatch
Igor Murashkin [Tue, 23 Sep 2014 22:11:36 +0000 (15:11 -0700)]
camera2-legacy: Workaround max jpeg/preview size AR mismatch

Filter out the largest preview sizes (from the stream configuration map)
until we find one whose aspect ratio matches the max jpeg aspect ratio.
Keep all other (smaller) preview sizes.

Bug: 17589233
Change-Id: I8ebcaef6439691eff3312da2c37b9abe08a067ad

9 years agoMerge "Move setting the display state out of the critical section." into lmp-dev
Jeff Brown [Tue, 23 Sep 2014 21:02:42 +0000 (21:02 +0000)]
Merge "Move setting the display state out of the critical section." into lmp-dev

9 years agoMerge "Fix NPE crash when mPhone is null" into lmp-dev
Jay Shrauner [Tue, 23 Sep 2014 20:59:14 +0000 (20:59 +0000)]
Merge "Fix NPE crash when mPhone is null" into lmp-dev

9 years agoMerge "Maybe fix issue #17614177 APR: system process restarting due to infinite loop...
Dianne Hackborn [Tue, 23 Sep 2014 20:55:04 +0000 (20:55 +0000)]
Merge "Maybe fix issue #17614177 APR: system process restarting due to infinite loop" into lmp-dev

9 years agoMerge "Track persistent nested Y offset for fling velocity" into lmp-dev
Adam Powell [Tue, 23 Sep 2014 20:46:45 +0000 (20:46 +0000)]
Merge "Track persistent nested Y offset for fling velocity" into lmp-dev

9 years agoMove setting the display state out of the critical section.
Jeff Brown [Thu, 18 Sep 2014 22:24:49 +0000 (15:24 -0700)]
Move setting the display state out of the critical section.

Setting the display power state currently happens while holding the
display manager lock.  This change moves it out of the lock to
ensure other services don't get stuck for several hundred
milliseconds.

Unfortunately, surface flinger ends up stalled a little later
so this only solves part of the problem.

Bug: 17623774
Change-Id: I201137c5e7f82c776f28a436845fcf3191fd0ca5

9 years agoMerge "Remove redundant wifi-display notification." into lmp-dev
John Spurlock [Tue, 23 Sep 2014 20:08:12 +0000 (20:08 +0000)]
Merge "Remove redundant wifi-display notification." into lmp-dev

9 years agoRemove redundant wifi-display notification.
John Spurlock [Tue, 23 Sep 2014 19:51:11 +0000 (15:51 -0400)]
Remove redundant wifi-display notification.

Since all devices now appear in quick settings, remove the
framework notification and obsolete artifacts.

Bug:17607193
Change-Id: If952b826d79c77068285373c6b44a430f78c20b1

9 years agoMerge "Fix issue #17307700: retarget a relinquished task is not working" into lmp-dev
Dianne Hackborn [Tue, 23 Sep 2014 19:49:59 +0000 (19:49 +0000)]
Merge "Fix issue #17307700: retarget a relinquished task is not working" into lmp-dev

9 years agoMerge "Add missing permission for hotspot QS tile" into lmp-dev
Jason Monk [Tue, 23 Sep 2014 19:42:24 +0000 (19:42 +0000)]
Merge "Add missing permission for hotspot QS tile" into lmp-dev

9 years agohandle bssid blacklist in case of dhcp failures
vandwalle [Fri, 19 Sep 2014 22:21:35 +0000 (15:21 -0700)]
handle bssid blacklist in case of dhcp failures

Change-Id: Iba13db478ed69976c37bd4882f59bf0cae2212e6

9 years agoMerge "Enforcing falsing-threshold on touch when using AoD" into lmp-dev
Selim Cinek [Tue, 23 Sep 2014 19:28:11 +0000 (19:28 +0000)]
Merge "Enforcing falsing-threshold on touch when using AoD" into lmp-dev

9 years agoMerge "Fix animation on the some properties" into lmp-dev
ztenghui [Tue, 23 Sep 2014 19:26:40 +0000 (19:26 +0000)]
Merge "Fix animation on the some properties" into lmp-dev

9 years agoMerge "Better detection for SIM information readyness. 1) listen to SUBINFO broadcast...
Tsuwei Chen [Tue, 23 Sep 2014 18:54:02 +0000 (18:54 +0000)]
Merge "Better detection for SIM information readyness. 1) listen to SUBINFO broadcast intent to better capture SIM info update. 2) notify HAL about SUPL server/host everytime they get set." into lmp-dev

9 years agoEnforcing falsing-threshold on touch when using AoD
Selim Cinek [Tue, 23 Sep 2014 18:44:35 +0000 (20:44 +0200)]
Enforcing falsing-threshold on touch when using AoD

Also increased the threshold by a factor of 1.5 if
we are waking up due to a touch.

Bug: 17350239
Change-Id: Ida8bad234b3815abf80ca57f8004f3bc5df003cd

9 years agoModify comment for "VoLTE replacement configuration" to clarify that used for unknown.
Etan Cohen [Mon, 22 Sep 2014 18:53:33 +0000 (11:53 -0700)]
Modify comment for "VoLTE replacement configuration" to clarify that used for unknown.

Configuration RAT replacement value will be used in any ambiguous (LTE:14) or
unknown (UNKNOWN:0) scenario.

Bug: 16962905
Change-Id: Ica1cc809521df5836143d8a94849541f28342a89

9 years agoMerge "Only wait for relevant windows when turning on the screen" into lmp-dev
Jorim Jaggi [Tue, 23 Sep 2014 18:26:05 +0000 (18:26 +0000)]
Merge "Only wait for relevant windows when turning on the screen" into lmp-dev

9 years agoBetter detection for SIM information readyness.
Tsuwei Chen [Tue, 23 Sep 2014 00:48:41 +0000 (17:48 -0700)]
Better detection for SIM information readyness.
1) listen to SUBINFO broadcast intent to better capture SIM info update.
2) notify HAL about SUPL server/host everytime they get set.

Bug: 17288144

Change-Id: I65cb4e0879c55c078e85d062877e491904e78222

9 years agoFix animation on the some properties
ztenghui [Tue, 23 Sep 2014 17:58:57 +0000 (10:58 -0700)]
Fix animation on the some properties

The risk is low since most of them are just matching the naming to xml.
And this update won't cause build breakage.

b/17623982

Change-Id: I1eda0b8314ec7b94bc03976cdc365a7dc1039f4c

9 years agoMerge "Update refresh icon to tinted material vector asset" into lmp-dev
Alan Viverette [Tue, 23 Sep 2014 18:15:26 +0000 (18:15 +0000)]
Merge "Update refresh icon to tinted material vector asset" into lmp-dev

9 years agoMerge "camera2: Update EACCES to throw correct exception in LEGACY." into lmp-dev
Ruben Brunk [Tue, 23 Sep 2014 18:08:41 +0000 (18:08 +0000)]
Merge "camera2: Update EACCES to throw correct exception in LEGACY." into lmp-dev

9 years agoFix issue #17307700: retarget a relinquished task is not working
Dianne Hackborn [Tue, 23 Sep 2014 17:56:58 +0000 (10:56 -0700)]
Fix issue #17307700: retarget a relinquished task is not working

Missed by 1!

Change-Id: If6504e37563d1242df8da4609cbcbcd550d68fdd

9 years agoMerge "Implement API review feedback." into lmp-dev
Jeff Tinker [Tue, 23 Sep 2014 17:39:30 +0000 (17:39 +0000)]
Merge "Implement API review feedback." into lmp-dev

9 years agoam bca67fd7: am 9aaf54ee: am 71b19fc3: am 5ba31e6e: am bba79795: am 25c866a8: am...
Jeff Vander Stoep [Tue, 23 Sep 2014 17:37:58 +0000 (17:37 +0000)]
am bca67fd7: am 9aaf54ee: am 71b19fc3: am 5ba31e6e: am bba79795: am 25c866a8: am e2adb1ff: Merge "Sanity-check paths of files to be restored" into jb-mr2-dev

* commit 'bca67fd7d0747a950e88525d216af41272b20763':
  Sanity-check paths of files to be restored

9 years agoam bbf7e4af: am 1cf337a2: am 52824dab: am 1b4f1a79: am 1c2eaa78: am 660af7eb: am...
Jeff Vander Stoep [Tue, 23 Sep 2014 17:37:42 +0000 (17:37 +0000)]
am bbf7e4af: am 1cf337a2: am 52824dab: am 1b4f1a79: am 1c2eaa78: am 660af7eb: am 59c1202e: Merge "Change permission guard on bindBackupAgent()" into jb-mr2-dev

* commit 'bbf7e4af975493c9c213250a595c63331cb7a872':
  Change permission guard on bindBackupAgent()

9 years agoFixing ConcurrentModificationException.
mike dooley [Thu, 18 Sep 2014 21:07:52 +0000 (14:07 -0700)]
Fixing ConcurrentModificationException.

Implementing review feedback.

Bug: 17572658
Change-Id: I3a060d21669a58188a24c5d6ec5fefcbca45a976

9 years agoMaybe fix issue #17614177 APR: system process restarting due to infinite loop
Dianne Hackborn [Tue, 23 Sep 2014 17:13:13 +0000 (10:13 -0700)]
Maybe fix issue #17614177 APR: system process restarting due to infinite loop

Also try to get rid of a huge wtf we are seeing across a lot of devices
where we incorrectly change real states on a service that is restarting,
and get rid of one of the noisier boot logs in the package manager.

Change-Id: I2510b6fb082eac3f6168cbd57bc3b70ad006114d

9 years agocamera2: Update EACCES to throw correct exception in LEGACY.
Ruben Brunk [Tue, 23 Sep 2014 17:32:18 +0000 (10:32 -0700)]
camera2: Update EACCES to throw correct exception in LEGACY.

Bug: 17595068
Change-Id: I1a88568822237d3609c3342a21e2ca81ca935408

9 years agoam 9aaf54ee: am 71b19fc3: am 5ba31e6e: am bba79795: am 25c866a8: am e2adb1ff: Merge...
Jeff Vander Stoep [Tue, 23 Sep 2014 17:26:47 +0000 (17:26 +0000)]
am 9aaf54ee: am 71b19fc3: am 5ba31e6e: am bba79795: am 25c866a8: am e2adb1ff: Merge "Sanity-check paths of files to be restored" into jb-mr2-dev

* commit '9aaf54eeb6c1dd83090235a8df5476b2f2f6473e':
  Sanity-check paths of files to be restored

9 years agoam 1cf337a2: am 52824dab: am 1b4f1a79: am 1c2eaa78: am 660af7eb: am 59c1202e: Merge...
Jeff Vander Stoep [Tue, 23 Sep 2014 17:26:42 +0000 (17:26 +0000)]
am 1cf337a2: am 52824dab: am 1b4f1a79: am 1c2eaa78: am 660af7eb: am 59c1202e: Merge "Change permission guard on bindBackupAgent()" into jb-mr2-dev

* commit '1cf337a222bbb0e26445e7904ece687af93aac48':
  Change permission guard on bindBackupAgent()

9 years agoMerge "@hide ConnectionService APIs." into lmp-dev
Tyler Gunn [Tue, 23 Sep 2014 17:13:11 +0000 (17:13 +0000)]
Merge "@hide ConnectionService APIs." into lmp-dev

9 years agoam 71b19fc3: am 5ba31e6e: am bba79795: am 25c866a8: am e2adb1ff: Merge "Sanity-check...
Jeff Vander Stoep [Tue, 23 Sep 2014 17:12:38 +0000 (17:12 +0000)]
am 71b19fc3: am 5ba31e6e: am bba79795: am 25c866a8: am e2adb1ff: Merge "Sanity-check paths of files to be restored" into jb-mr2-dev

* commit '71b19fc301ff08bd13d394dfa9ef6a3f535b149e':
  Sanity-check paths of files to be restored

9 years agoam 52824dab: am 1b4f1a79: am 1c2eaa78: am 660af7eb: am 59c1202e: Merge "Change permis...
Jeff Vander Stoep [Tue, 23 Sep 2014 17:11:58 +0000 (17:11 +0000)]
am 52824dab: am 1b4f1a79: am 1c2eaa78: am 660af7eb: am 59c1202e: Merge "Change permission guard on bindBackupAgent()" into jb-mr2-dev

* commit '52824dab7ba48713411ff3a26580b29aa2088242':
  Change permission guard on bindBackupAgent()

9 years agoMerge "SysUI: Correctly compare MediaControllers" into lmp-dev
Christoph Studer [Tue, 23 Sep 2014 17:03:47 +0000 (17:03 +0000)]
Merge "SysUI: Correctly compare MediaControllers" into lmp-dev

9 years agoam 5ba31e6e: am bba79795: am 25c866a8: am e2adb1ff: Merge "Sanity-check paths of...
Jeff Vander Stoep [Tue, 23 Sep 2014 17:02:13 +0000 (17:02 +0000)]
am 5ba31e6e: am bba79795: am 25c866a8: am e2adb1ff: Merge "Sanity-check paths of files to be restored" into jb-mr2-dev

* commit '5ba31e6e9afb34781fe5b927354502d9c6190bc5':
  Sanity-check paths of files to be restored

9 years agoam 1b4f1a79: am 1c2eaa78: am 660af7eb: am 59c1202e: Merge "Change permission guard...
Jeff Vander Stoep [Tue, 23 Sep 2014 17:02:04 +0000 (17:02 +0000)]
am 1b4f1a79: am 1c2eaa78: am 660af7eb: am 59c1202e: Merge "Change permission guard on bindBackupAgent()" into jb-mr2-dev

* commit '1b4f1a794dc90c1ea877af64e8340afe6146584a':
  Change permission guard on bindBackupAgent()

9 years ago@hide ConnectionService APIs.
Tyler Gunn [Fri, 19 Sep 2014 18:17:02 +0000 (11:17 -0700)]
@hide ConnectionService APIs.

Bug: 17569532
Change-Id: I68f7237191bd6d7a1a00ba7bb4fd2f8e3d669e8f

9 years agoOnly wait for relevant windows when turning on the screen
Jorim Jaggi [Tue, 23 Sep 2014 16:22:16 +0000 (18:22 +0200)]
Only wait for relevant windows when turning on the screen

Bug: 17536119
Change-Id: Ibe8da9fdd52a1a46eb856425b28ffc4f505b2697

9 years agoam bba79795: am 25c866a8: am e2adb1ff: Merge "Sanity-check paths of files to be resto...
Jeff Vander Stoep [Tue, 23 Sep 2014 16:50:29 +0000 (16:50 +0000)]
am bba79795: am 25c866a8: am e2adb1ff: Merge "Sanity-check paths of files to be restored" into jb-mr2-dev

* commit 'bba797957a83b0ee8869cfa8a9427f6506f74fa4':
  Sanity-check paths of files to be restored

9 years agoam 1c2eaa78: am 660af7eb: am 59c1202e: Merge "Change permission guard on bindBackupAg...
Jeff Vander Stoep [Tue, 23 Sep 2014 16:50:16 +0000 (16:50 +0000)]
am 1c2eaa78: am 660af7eb: am 59c1202e: Merge "Change permission guard on bindBackupAgent()" into jb-mr2-dev

* commit '1c2eaa784b2376b674cf438f42342271c8aa79a8':
  Change permission guard on bindBackupAgent()

9 years agoMerge "Fix window manager policy state when waking from doze." into lmp-dev
Jeff Brown [Tue, 23 Sep 2014 16:42:52 +0000 (16:42 +0000)]
Merge "Fix window manager policy state when waking from doze." into lmp-dev

9 years agoMerge "Ensure wakelock is released unconditionally." into lmp-dev
Jeff Brown [Tue, 23 Sep 2014 16:39:39 +0000 (16:39 +0000)]
Merge "Ensure wakelock is released unconditionally." into lmp-dev

9 years agoFix window manager policy state when waking from doze.
Jeff Brown [Tue, 23 Sep 2014 03:14:39 +0000 (20:14 -0700)]
Fix window manager policy state when waking from doze.

Once upon a time when the world was fresh and new, the heavens
had an easy rhythm.  Day and night.  Night and day.  In the day,
the pixel fairies would cavort and play in the bright gardens
with narry a mark of shadow or gloom.  In the night, they would
rest peacefully, dreaming no dreams and knowing no fear.

Then one night a fairy dreamed the first dream.  At first
the dream was peaceful, full of colors and delight, hopes and
memories.  Then all at once, jarringly, it awoke in bright
daylight.  The pixel fairy knew fear, for the world had changed
and it was unprepared.

Time passed and the pixel fairies grew accustomed to their
fate, day and night, night and day, sometimes dreaming, until
there came a night when a fairy did not sleep.  It roamed
the land in a dreamless doze, lost and afraid amid a grim haze
of grey and darkness.  The fairy despaired.  It wanted no
part of this place.  It pretended for a time to be awake but
the bright daylight would not come.  It pretended for a time to
be dreaming but the colors and memories would not come.
That is when the fairy wished for oblivion.  Then just as
suddenly, it awoke in the daylight.  It fell to the ground,
stunned as if it had forgotten how to walk in the too bright
daylight.

Though the world again grew softer and kinder in time, the pixel
fairies were never the same.  For the night is dark and full
of terrors.

---

It used to be easy.  Screen on and screen off could explain almost
everything about the state of the device but it's different now with
ambient display.  We need to be able to wait for all windows to be
drawn even in the case where the device is still nominally asleep.
In truth, the window manager policy which drives a lot of these
interactions is a thicket of outdated assumptions.

Added a new method to tell the window manager policy when the screen
is being turned off so that it can correctly account for changes
to the interactive state (wakeUp and goingToSleep) and screen state
(screenTurningOn and screenTurnedOff).  Now we can independently
poke keyguard during interactive state changes and we can apply
screen on blocking during screen state changes.

Moved the code which manages screen on blocking (which is what
ensures the UI has fully drawn before revealing screen contents)
from the power manager to the display manager since the display
manager is in a better position to accurately track the state of
the screen, particularly when the screen is being turned off.

Fixed a bunch of synchronization issues.  Previously some work
had been moved to a handler without considering what might
happen if it became reordered relative to other work happening
elsewhere.  Documented the desired behavior in the code to
prevent this from happening again.

There's still a bunch of stuff in here that isn't quite right,
particularly the assumption that there's only one screen, but
it's good enough for now.  Hopefully there aren't too many bugs.

Bug: 17605802
Change-Id: Ic7319e09948c8a3cda014d7e169c964a3ad86f14

9 years agoEnsure wakelock is released unconditionally.
Jeff Brown [Tue, 23 Sep 2014 05:30:22 +0000 (22:30 -0700)]
Ensure wakelock is released unconditionally.

Bug: 17610254
Change-Id: I8b846c867edaa5038e34d4c857550735b121a1d9

9 years agoam 25c866a8: am e2adb1ff: Merge "Sanity-check paths of files to be restored" into...
Jeff Vander Stoep [Tue, 23 Sep 2014 16:34:53 +0000 (16:34 +0000)]
am 25c866a8: am e2adb1ff: Merge "Sanity-check paths of files to be restored" into jb-mr2-dev

* commit '25c866a8efa148886280b34c0413a1c2c20c247f':
  Sanity-check paths of files to be restored

9 years agoRegister ActivityManagerService.PackageMonitor for all users.
Zoltan Szatmary-Ban [Tue, 23 Sep 2014 16:27:17 +0000 (17:27 +0100)]
Register ActivityManagerService.PackageMonitor for all users.

With the introduction of managed profiles, ActivityManagerService.PackageMonitor
can receive Intents from users other than current one.

Bug: 1758091417314317
Change-Id: I7c601618f7819d6775cf422dca70a929ee1089d9

9 years agoam e2adb1ff: Merge "Sanity-check paths of files to be restored" into jb-mr2-dev
Jeff Vander Stoep [Tue, 23 Sep 2014 16:24:36 +0000 (16:24 +0000)]
am e2adb1ff: Merge "Sanity-check paths of files to be restored" into jb-mr2-dev

* commit 'e2adb1ff4af09d66096df64461c80d4126ab2692':
  Sanity-check paths of files to be restored

9 years agoMerge "Sanity-check paths of files to be restored" into jb-mr2-dev
Jeff Vander Stoep [Tue, 23 Sep 2014 16:13:41 +0000 (16:13 +0000)]
Merge "Sanity-check paths of files to be restored" into jb-mr2-dev

9 years agoOnly stop/start clatd if necessary.
Lorenzo Colitti [Sat, 20 Sep 2014 04:47:47 +0000 (13:47 +0900)]
Only stop/start clatd if necessary.

Previously we would restart clatd on every LinkProperties
change, which now happens every time we switch radio technology
(e.g., LTE to HSPA). We also would not stop it if the link got
an IPv4 address.

Bug: 15024258
Bug: 17186694
Bug: 17569702
Change-Id: I65cfcd5e7acec8ea1a12392a59dabd668c58490f

9 years agoMerge "Force transitioning views to be visible when transition interrupted." into...
George Mount [Tue, 23 Sep 2014 14:27:35 +0000 (14:27 +0000)]
Merge "Force transitioning views to be visible when transition interrupted." into lmp-dev

9 years agoMerge "Fixed a bug where the alarm could overlap in QS" into lmp-dev
Selim Cinek [Tue, 23 Sep 2014 14:25:08 +0000 (14:25 +0000)]
Merge "Fixed a bug where the alarm could overlap in QS" into lmp-dev

9 years agoMerge "Ensure that force lock works with accessibility enabled" into lmp-dev
Adrian Roos [Tue, 23 Sep 2014 13:48:41 +0000 (13:48 +0000)]
Merge "Ensure that force lock works with accessibility enabled" into lmp-dev

9 years agoFixed a bug where the alarm could overlap in QS
Selim Cinek [Tue, 23 Sep 2014 13:34:53 +0000 (15:34 +0200)]
Fixed a bug where the alarm could overlap in QS

When closing the QS panel the alarm did the normal
transformation, regardless whether we were in a
detail state. This lead to the alarm overlapping
with the title.

Bug: 17581501
Change-Id: I0318f6778063af11f388e6c7fe8bbb30105ca246

9 years agoAdd missing permission for hotspot QS tile
Jason Monk [Tue, 23 Sep 2014 13:25:29 +0000 (09:25 -0400)]
Add missing permission for hotspot QS tile

Bug: 17589487
Change-Id: I2461450863606758b53d4dccdaad74878909ff6d

9 years agoMerge "Remove needless locking of mRulesLock that caused deadlocks." into lmp-dev
Paul Jensen [Tue, 23 Sep 2014 12:00:33 +0000 (12:00 +0000)]
Merge "Remove needless locking of mRulesLock that caused deadlocks." into lmp-dev

9 years agoFix NPE crash when mPhone is null
Jay Shrauner [Tue, 23 Sep 2014 03:47:45 +0000 (20:47 -0700)]
Fix NPE crash when mPhone is null

Bug:17609710
Change-Id: Idb99feb6f15fd29809adde51cda1eb0d44e20101

9 years agoam 44737ea5: am 4d0f84bb: am 556f23aa: Merge "docs: Fixed Developer Tools image....
Ricardo Cervera [Tue, 23 Sep 2014 03:06:54 +0000 (03:06 +0000)]
am 44737ea5: am 4d0f84bb: am 556f23aa: Merge "docs: Fixed Developer Tools image. Bug: 17609483" into klp-modular-docs

* commit '44737ea5e5a2f071ffc268f21556aa651a7637db':
  docs: Fixed Developer Tools image. Bug: 17609483