OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Ensure we leave space between layers in docked stack." into nyc-dev
Rob Carr [Mon, 4 Apr 2016 20:24:28 +0000 (20:24 +0000)]
Merge "Ensure we leave space between layers in docked stack." into nyc-dev

8 years agoMerge "Expose setDrawGLFunctionDetachedCallback to webview" into nyc-dev
Bo Liu [Mon, 4 Apr 2016 20:20:08 +0000 (20:20 +0000)]
Merge "Expose setDrawGLFunctionDetachedCallback to webview" into nyc-dev

8 years agoMerge "Move more code from WebViewUpdateService to separate overridable class" into...
Gustav Sennton [Mon, 4 Apr 2016 20:19:55 +0000 (20:19 +0000)]
Merge "Move more code from WebViewUpdateService to separate overridable class" into nyc-dev

8 years agoMerge "ShortcutManager: More command for CTS, more tests.." into nyc-dev
Makoto Onuki [Mon, 4 Apr 2016 20:03:21 +0000 (20:03 +0000)]
Merge "ShortcutManager: More command for CTS, more tests.." into nyc-dev

8 years agoMerge "Camera: Allow preview operation of SCENE_MODE_HDR" into nyc-dev
Eino-Ville Talvala [Mon, 4 Apr 2016 19:38:51 +0000 (19:38 +0000)]
Merge "Camera: Allow preview operation of SCENE_MODE_HDR" into nyc-dev

8 years agoMerge "Camera: Add proper buffer drop errors to LEGACY mode" into nyc-dev
Eino-Ville Talvala [Mon, 4 Apr 2016 19:38:09 +0000 (19:38 +0000)]
Merge "Camera: Add proper buffer drop errors to LEGACY mode" into nyc-dev

8 years agoMerge "Add app attribution to QS editing" into nyc-dev
Jason Monk [Mon, 4 Apr 2016 19:28:50 +0000 (19:28 +0000)]
Merge "Add app attribution to QS editing" into nyc-dev

8 years agoMerge "Fix bug where service disabled with disableSelf() would not reset soft keyboar...
Anna Galusza [Mon, 4 Apr 2016 19:19:30 +0000 (19:19 +0000)]
Merge "Fix bug where service disabled with disableSelf() would not reset soft keyboard behavior. Bug: 27947344" into nyc-dev

8 years agoProperly handle DimLayers which become fullscreen.
Robert Carr [Fri, 1 Apr 2016 01:39:40 +0000 (18:39 -0700)]
Properly handle DimLayers which become fullscreen.

If a DimLayer becomes fullscreen while it is animating out,
then it will not be the shared fullscreen dim layer. However,
state.continueDimming will be false (as we are ending the Dim),
so around DimLayerController.cpp L191 we will identify it as
fullscreen, skip animating it for now, and not set fullScreenAndDimming
to the index (because continueDimming is false). fullScreenAndDimming
will be -1 so we will now animate the dimmer at index "fullscreen"
this will simply be the last fullscreen state we found, which would be
fine if the state we had skipped was the shared fullscreen dim layer,
but it wasn't. Ensure that we identify the layer as fullscreen and the
shared fullscreen dim layer.

Bug: 27775427
Change-Id: I49d4f59bb09af6a7e5bd666e499be1c7e11ee766

8 years agoMerge changes I7d406cc8,Id6cf70ea into nyc-dev
Rob Carr [Mon, 4 Apr 2016 18:34:37 +0000 (18:34 +0000)]
Merge changes I7d406cc8,Id6cf70ea into nyc-dev

* changes:
  Do not set docked divider as IME target.
  Fix IME adjustment for docked.

8 years agoEnsure we leave space between layers in docked stack.
Robert Carr [Fri, 1 Apr 2016 00:23:35 +0000 (17:23 -0700)]
Ensure we leave space between layers in docked stack.

We need to leave space WINDOW_LAYER_MULTIPLIER between Z-order
adjacent normal windows, for things such as Dim Layers, etc. The
existing logic was breaking DIM_UNDER DimLayers in DockedStack. Consider
two normal windows, the second on top and with a DIM_UNDER. If we are
docked we will have restacked all the docked windows at HighestLayer+1
HighestLayer+2, etc...and so our second normal window is only one higher
than our first one. So when we put a dim under the second window
we end up with the same layer and the output is undefined.

Bug: 27721903
Change-Id: Ic27e0a10da2d1ab4a6058e0755ad4409b29527eb

8 years agoShortcutManager: More command for CTS, more tests..
Makoto Onuki [Mon, 4 Apr 2016 17:19:45 +0000 (10:19 -0700)]
ShortcutManager: More command for CTS, more tests..

and fix flakey tests.

Bug 27548047

Change-Id: Ia5f189278f6111850277ca16aa747469f48c5f14

8 years agoMerge "Show toast when subtype is rotated by Meta-Space." into nyc-dev
Yohei Yukawa [Mon, 4 Apr 2016 17:56:35 +0000 (17:56 +0000)]
Merge "Show toast when subtype is rotated by Meta-Space." into nyc-dev

8 years agoCamera: Allow preview operation of SCENE_MODE_HDR
Eino-Ville Talvala [Mon, 4 Apr 2016 17:48:38 +0000 (10:48 -0700)]
Camera: Allow preview operation of SCENE_MODE_HDR

Some devices support HDR output for preview in addition to still
capture, so explicitly allow for that in the documentation of
SCENE_MODE_HDR.

Bug: 27313038
Change-Id: I894d7449dc0cfb7353f535db23acd12143590208

8 years agoMerge "Never "save" if the surface control is null." into nyc-dev
Chong Zhang [Mon, 4 Apr 2016 17:31:05 +0000 (17:31 +0000)]
Merge "Never "save" if the surface control is null." into nyc-dev

8 years agoMerge "Fix missing exit animation when app is closed during starting window" into...
Chong Zhang [Mon, 4 Apr 2016 17:30:51 +0000 (17:30 +0000)]
Merge "Fix missing exit animation when app is closed during starting window" into nyc-dev

8 years agoShow toast when subtype is rotated by Meta-Space.
Yohei Yukawa [Sun, 3 Apr 2016 00:39:23 +0000 (17:39 -0700)]
Show toast when subtype is rotated by Meta-Space.

This follows up to my previous CL [1], with which we changed global
hardware key combinations regarding how multilingual user can manage
multiple keyboard layouts / input methods.  Now we offer Meta-Space to
rotate input method (subtype), while we offered Shift-Space to rotate
hardware keyboard layouts previously.

One thing that is lost during above transition is an indication when the
such a key combination takes effect.  Actually there was a toast that
shows new keyboard layout name, which is now lost.

With this CL, we bring back a toast so that we can show the new input
method (subtype) name. Note that the toast will be shown if all of the
following conditions are met.
 - The input method (subtype) is rotated by a hardware key combination.
 - IME window does not have IME_VISIBLE bit.  Otherwise, showing a toast
   is likely to cause UI overlap with the current IME's window.

  [1]: I4005692215edfcf8bed3e86b1e07000148f986f5
       ae61f7118a92e097e854c840d5726c0920f5db0e

Bug: 27547054
Change-Id: If3fe17adbffe4c1125783fc77fed3cfe78fc7933

8 years agoMerge "Fix a bug that IMS#mShowInputFlags is never updated." into nyc-dev
Yohei Yukawa [Mon, 4 Apr 2016 17:29:02 +0000 (17:29 +0000)]
Merge "Fix a bug that IMS#mShowInputFlags is never updated." into nyc-dev

8 years agoCamera: Add proper buffer drop errors to LEGACY mode
Eino-Ville Talvala [Thu, 31 Mar 2016 23:47:14 +0000 (16:47 -0700)]
Camera: Add proper buffer drop errors to LEGACY mode

The correct stream ID is required to be sent along with buffer drop
errors, and LEGACY mode was putting in a placeholder.  This would
cause an error in the client-side implementation, triggered by
abortBuffers (Which is the only source of buffer drops from LEGACY).

Bug: 27828602
Change-Id: If3fba7a76f7aa0ff305efa4cce6c225eb720b30e

8 years agoMerge "Fix MediaExtractor.getDrmInitData implementation for webm" into nyc-dev
Robert Shih [Mon, 4 Apr 2016 17:09:43 +0000 (17:09 +0000)]
Merge "Fix MediaExtractor.getDrmInitData implementation for webm" into nyc-dev

8 years agoFix bug where service disabled with disableSelf() would not reset soft keyboard
Anna Galusza [Fri, 1 Apr 2016 20:34:27 +0000 (13:34 -0700)]
Fix bug where service disabled with disableSelf() would not reset soft keyboard
behavior.
Bug: 27947344

Change-Id: I19583cad14616416be3582c30653d244a27aa366

8 years agoMerge "Make a11y text navigation by page symmetric." into nyc-dev
Phil Weaver [Mon, 4 Apr 2016 16:37:04 +0000 (16:37 +0000)]
Merge "Make a11y text navigation by page symmetric." into nyc-dev

8 years agoMerge "Support SET_TEXT for editable text views." into nyc-dev
Phil Weaver [Mon, 4 Apr 2016 16:36:34 +0000 (16:36 +0000)]
Merge "Support SET_TEXT for editable text views." into nyc-dev

8 years agoMerge "Add accessibility window title and anchor." into nyc-dev
Phil Weaver [Mon, 4 Apr 2016 16:36:00 +0000 (16:36 +0000)]
Merge "Add accessibility window title and anchor." into nyc-dev

8 years agoMerge "Remove docs for removed a11y gesture methods." into nyc-dev
Phil Weaver [Mon, 4 Apr 2016 16:34:26 +0000 (16:34 +0000)]
Merge "Remove docs for removed a11y gesture methods." into nyc-dev

8 years agoAdd app attribution to QS editing
Jason Monk [Mon, 4 Apr 2016 15:18:03 +0000 (11:18 -0400)]
Add app attribution to QS editing

Add a divider between where system tiles and custom tiles are and
add their app label to them as well.

Change-Id: I8890a7fee54e4c5340bbe95c6e100c58f81ee5c3
Fixes: 27874624

8 years agoMerge "Don't try to compress .mkv resources" into nyc-dev
Wonsik Kim [Mon, 4 Apr 2016 14:46:09 +0000 (14:46 +0000)]
Merge "Don't try to compress .mkv resources" into nyc-dev

8 years agoMerge "Fix intent filter priorities" into nyc-dev
Todd Kennedy [Mon, 4 Apr 2016 14:20:15 +0000 (14:20 +0000)]
Merge "Fix intent filter priorities" into nyc-dev

8 years agoMove more code from WebViewUpdateService to separate overridable class
Gustav Sennton [Fri, 1 Apr 2016 14:11:43 +0000 (15:11 +0100)]
Move more code from WebViewUpdateService to separate overridable class

Move more code from WebViewUpdateService to utility classes (methods
handling settings and uninstalling/enabling/disabling packages) to be
overridden during tests.

Also rename system utility class.

Bug: 27635535

Change-Id: If49999fba4fd0962f103f389898fa5ddf19365bd

8 years agoMerge "Update Path and RenderNode delegates to new API" into nyc-dev
Diego Perez [Mon, 4 Apr 2016 12:22:20 +0000 (12:22 +0000)]
Merge "Update Path and RenderNode delegates to new API" into nyc-dev

8 years agoMerge "Track libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787 (part 2)" into...
Yi Kong [Mon, 4 Apr 2016 11:57:31 +0000 (11:57 +0000)]
Merge "Track libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787 (part 2)" into nyc-dev

8 years agoTrack libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787 (part 2)
Yi Kong [Mon, 4 Apr 2016 10:26:00 +0000 (11:26 +0100)]
Track libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787 (part 2)

Bug: 27960078
Change-Id: I74709bc8a2543ceb54ad3cf2c3018f175ff20e24
(cherry picked from commit c2a708596ff37cb01499a8a5a82af038baa85463)

8 years agoTrack libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787
Yi Kong [Fri, 1 Apr 2016 19:53:10 +0000 (20:53 +0100)]
Track libcore commit cf86f3319e738c76c5e97ad95bb8a4e30654a787

Bug: 27960078
Change-Id: If89390ad1ddc3088a8552107bf27a51b1d3c6d02
(cherry picked from commit 2513fc3b7eb3a8b668fcf280cc8ed45bd20e1893)

8 years agoUpdate Path and RenderNode delegates to new API
Diego Perez [Mon, 4 Apr 2016 09:18:55 +0000 (10:18 +0100)]
Update Path and RenderNode delegates to new API

RenderNode_Delegate nCreate now takes a reference to this. In the
Path_Delegate, the native_offset call with a destination path has been
removed.

Change-Id: I6332bb4733974b817e8a29eab82e2218fcf942c4

8 years agoMerge "Grant NFC tag app default permissions." into nyc-dev
Martijn Coenen [Mon, 4 Apr 2016 08:05:14 +0000 (08:05 +0000)]
Merge "Grant NFC tag app default permissions." into nyc-dev

8 years agoMerge "MediaBrowser: Make EXTRA_PAGE zero-based" into nyc-dev
Sungsoo Lim [Mon, 4 Apr 2016 06:56:11 +0000 (06:56 +0000)]
Merge "MediaBrowser: Make EXTRA_PAGE zero-based" into nyc-dev

8 years agoDon't try to compress .mkv resources
Wonsik Kim [Mon, 4 Apr 2016 06:39:40 +0000 (15:39 +0900)]
Don't try to compress .mkv resources

Bug: 27987970
Change-Id: I58e920e81d1e79b7fbba479d8fb34afb3911f97d

8 years agoFix a bug that IMS#mShowInputFlags is never updated.
Yohei Yukawa [Mon, 4 Apr 2016 05:50:11 +0000 (22:50 -0700)]
Fix a bug that IMS#mShowInputFlags is never updated.

As a preparation to fix bug 26985193, this CL fixes a bug that
IMS#ShowInputFlags is never updated.  As a result,
IMS#onConfigurationChanged() has always called
IMS#onShowInputRequested() with specifying 0 to flags parameter, which
is wrong.

With this CL, we can assume that IMS#mShowInputFlags keeps tracking the
last value when it should do.  Also, we can remove IMS#mShowInputForced
since it is now determined by IMS#mShowInputFlags.

Bug: 26985193
Change-Id: Ieff634b69ce941d78ffe208547f7edd19ea28643

8 years agoMerge "Don't broadcast <Standby> message during shutdown when setting is disabled...
Donghyun Cho [Mon, 4 Apr 2016 05:18:07 +0000 (05:18 +0000)]
Merge "Don't broadcast <Standby> message during shutdown when setting is disabled" into nyc-dev

8 years agoDon't broadcast <Standby> message during shutdown when setting is disabled
Donghyun Cho [Fri, 1 Apr 2016 05:31:11 +0000 (14:31 +0900)]
Don't broadcast <Standby> message during shutdown when setting is disabled

When the system is shutting down or the screen is going to be off, <Standby>
message will be broadcasted if and only if the setting variable,
Settings.Global#HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED, is enabled. This change
will make the shutdown case to be checked with the setting properly, too.

Bug: 27781559
Change-Id: Ia6605d6b5627ab1ff67285d72846b618a09548bc

8 years agoMerge "Use proper package name and UID when checking write settings access" into...
Svetoslav Ganov [Mon, 4 Apr 2016 05:15:20 +0000 (05:15 +0000)]
Merge "Use proper package name and UID when checking write settings access" into nyc-dev

8 years agoUse proper package name and UID when checking write settings access
Svet Ganov [Mon, 4 Apr 2016 05:04:22 +0000 (22:04 -0700)]
Use proper package name and UID when checking write settings access

bug:26941229

Change-Id: I338fe6dd7c1b97f273909672cdd7d4fa207185ce

8 years agoMerge "Turn on HDMI-related logs conditionally for better debugging" into nyc-dev
Donghyun Cho [Mon, 4 Apr 2016 05:04:04 +0000 (05:04 +0000)]
Merge "Turn on HDMI-related logs conditionally for better debugging" into nyc-dev

8 years agoMerge "Kill app if revoking a permission while resetting app prefs" into nyc-dev
Svetoslav Ganov [Mon, 4 Apr 2016 04:18:50 +0000 (04:18 +0000)]
Merge "Kill app if revoking a permission while resetting app prefs" into nyc-dev

8 years agoKill app if revoking a permission while resetting app prefs
Svet Ganov [Mon, 4 Apr 2016 04:16:13 +0000 (21:16 -0700)]
Kill app if revoking a permission while resetting app prefs

bug:25895994

Change-Id: I78616ab5f9addbd91d2f4d12a8161544f482ec43

8 years agoMerge "Make TextViewActivityTest stable by sleeping between clicks." into nyc-dev
Keisuke Kuroyanagi [Mon, 4 Apr 2016 03:39:18 +0000 (03:39 +0000)]
Merge "Make TextViewActivityTest stable by sleeping between clicks." into nyc-dev

8 years agoMerge "Make hasTransientState be true only if user created selection is active."...
Keisuke Kuroyanagi [Mon, 4 Apr 2016 03:12:30 +0000 (03:12 +0000)]
Merge "Make hasTransientState be true only if user created selection is active." into nyc-dev

8 years agoMediaBrowser: Make EXTRA_PAGE zero-based
Sungsoo Lim [Mon, 4 Apr 2016 01:09:30 +0000 (10:09 +0900)]
MediaBrowser: Make EXTRA_PAGE zero-based

Bug: 27948393
Change-Id: I97fb6b5f13ffb8e006ed4a7efc06e7f45fb5121a

8 years agoMerge "Support direct-boot tests." into nyc-dev
Jeff Sharkey [Sun, 3 Apr 2016 03:59:21 +0000 (03:59 +0000)]
Merge "Support direct-boot tests." into nyc-dev

8 years agoSupport direct-boot tests.
Jeff Sharkey [Sat, 2 Apr 2016 05:20:31 +0000 (23:20 -0600)]
Support direct-boot tests.

Add shell commands to check on current FBE status and system ready
status.  Mark variables without first-class locking as volatile.

Fix bug where UI automation would crash while device was locked by
marking it as forced direct-boot aware.

Bug: 26498834
Change-Id: Ib4dfb9350925e5413f93a09baacf84c62f2ba0ea

8 years agoMerge "Fix extra data in cache" into nyc-dev
Simranjit Kohli [Sat, 2 Apr 2016 06:09:25 +0000 (06:09 +0000)]
Merge "Fix extra data in cache" into nyc-dev

8 years agoFix extra data in cache
Simranjit Kohli [Thu, 10 Mar 2016 18:36:11 +0000 (18:36 +0000)]
Fix extra data in cache

Reverting the revert.
The original CL(commit a666d74d4bc7e1298314c516d1309571fb87c212) had a
bug in it. It was calling accountExistsCacheLocked(), while holding
accounts.cacheLock. The function accountExistsCacheLocked, was in turn
calling into getUserAccounts, which acquires mUsers. And this causes
trouble. mUsers is a a lock on all accounts, and hence calling it after
holding accounts.cachelock is calling for trouble. Since the locks are
acquired in other order, it causes a potential deadlock issue, which we
discovered later on.

That bug was fixed by commit 0e592733ecbde2b7e7f2aa92001656dfbcae9641.
We already have useraccount object and should reuse it.

This reverts commit 27d0e1fd660a7e92644ab6a2893ac1149f0c0488. This
commit was unneeded as the bug had been fixed by that time.

Change-Id: I5328c31fd485fd2c1c652cd0e7c2c4bded38a5fd

8 years agoMerge "Added handling apps query response from context hub" into nyc-dev
Ashutosh Joshi [Sat, 2 Apr 2016 04:18:37 +0000 (04:18 +0000)]
Merge "Added handling apps query response from context hub" into nyc-dev

8 years agoMerge "Fix suggestions in the language selector" into nyc-dev
Mihai Niță [Sat, 2 Apr 2016 03:24:52 +0000 (03:24 +0000)]
Merge "Fix suggestions in the language selector" into nyc-dev

8 years agoAdded handling apps query response from context hub
Ashutosh Joshi [Tue, 29 Mar 2016 16:19:56 +0000 (09:19 -0700)]
Added handling apps query response from context hub

Added handling of app query reponse from context hub.
Exposed the maximum message size to clients.

Change-Id: Ie96a860774d005ad6ad72acc88dc79964835486b

8 years agoFix missing exit animation when app is closed during starting window
Chong Zhang [Sat, 2 Apr 2016 00:57:07 +0000 (17:57 -0700)]
Fix missing exit animation when app is closed during starting window

When the transistion starts and we setTokenVisibilityLocked, mark all
relevant window flags on a starting window that's running exit animation.
This makes sure the starting window is removed when animation finishes.

bug: 27747191
Change-Id: I917ca18583e31db9a3e49ea70aae932c242877b8

8 years agoDo not clear INSCREEN and INSET_DECOR for resolver
Jorim Jaggi [Fri, 1 Apr 2016 23:55:54 +0000 (16:55 -0700)]
Do not clear INSCREEN and INSET_DECOR for resolver

Since we switched this activity to draw the system bar backgrounds,
and clearing these flags leads to that we don't get the insets
communicated, we need to remove the clearing of the flags.

Bug: 27914346
Change-Id: I72114ac7cec40933fa45891b3d1441bd30f883d4

8 years agoMerge "Don't performPendingDeferredStart on fragments that aren't added" into nyc-dev
Adam Powell [Sat, 2 Apr 2016 01:08:59 +0000 (01:08 +0000)]
Merge "Don't performPendingDeferredStart on fragments that aren't added" into nyc-dev

8 years agoMerge "AudioTrack.Builder: fix javadoc code sample" into nyc-dev
Jean-Michel Trivi [Sat, 2 Apr 2016 00:55:19 +0000 (00:55 +0000)]
Merge "AudioTrack.Builder: fix javadoc code sample" into nyc-dev

8 years agoAudioTrack.Builder: fix javadoc code sample
Jean-Michel Trivi [Sat, 2 Apr 2016 00:23:19 +0000 (17:23 -0700)]
AudioTrack.Builder: fix javadoc code sample

Fix sample rate in javadoc code sample.

Bug 24499652

Change-Id: I8d92ff34981cb4486e780d74213ed88fd3f74cc6

8 years agoMerge "Updating screenshot icon." into nyc-dev
Winson Chung [Sat, 2 Apr 2016 00:22:49 +0000 (00:22 +0000)]
Merge "Updating screenshot icon." into nyc-dev

8 years agoMerge "Disabling the nav bar scrim when Recents is docked." into nyc-dev
Winson Chung [Sat, 2 Apr 2016 00:22:36 +0000 (00:22 +0000)]
Merge "Disabling the nav bar scrim when Recents is docked." into nyc-dev

8 years agoFix flicker when unlocking
Jorim Jaggi [Fri, 1 Apr 2016 23:05:10 +0000 (16:05 -0700)]
Fix flicker when unlocking

When the device was locked the fullscreen stack was laid out
fulllscreen, even though the configuration was half-screen, which
lead to a race between the app drawing and the unlock animation
so sometimes you could see the fullscreen frame when the unlock
animation started.

Instead, only layout in fullscreen if the docked stack is fully
"hidden".

Bug: 27154882
Change-Id: I4ba0c396eb0312c2bf2d911903b68c88d28aae8c

8 years agoUpdating screenshot icon.
Winson [Fri, 1 Apr 2016 23:50:18 +0000 (16:50 -0700)]
Updating screenshot icon.

Bug: 27616556
Change-Id: I613f8914330e3ad86856fb2bbe60adb4df09973d

8 years agoFix suggestions in the language selector
Mihai Nita [Fri, 1 Apr 2016 18:50:59 +0000 (11:50 -0700)]
Fix suggestions in the language selector

The current implementation makes the decision based on the
list of locales translated in frameworks/base

It will break if we remove country from the resource locale IDs
(e.g. fr-FR => fr)
It also offers no flexibility in case we want to suggest a country
based on other criteria.

Bug: 27378061
Change-Id: I3d8514e8abff83a4c98c5658533738611cf12576

8 years agoMerge "Fixing issue with transition jump due to wrong insets." into nyc-dev
Winson Chung [Fri, 1 Apr 2016 23:52:19 +0000 (23:52 +0000)]
Merge "Fixing issue with transition jump due to wrong insets." into nyc-dev

8 years agoMerge "Removed get-metered-network command." into nyc-dev
Felipe Leme [Fri, 1 Apr 2016 23:43:37 +0000 (23:43 +0000)]
Merge "Removed get-metered-network command." into nyc-dev

8 years agoFix MediaExtractor.getDrmInitData implementation for webm
Robert Shih [Fri, 1 Apr 2016 22:00:01 +0000 (15:00 -0700)]
Fix MediaExtractor.getDrmInitData implementation for webm

Should lookup "crypto-key" in individual track formats instead of file format.

Bug: 26070802
Change-Id: I1a0f59e7bca1d311631e7ad90b9a403ac20d319b

8 years agoMerge "ShortcutManager: implement backup & restore" into nyc-dev
Makoto Onuki [Fri, 1 Apr 2016 23:18:41 +0000 (23:18 +0000)]
Merge "ShortcutManager: implement backup & restore" into nyc-dev

8 years agoMerge "Removed improper check on mCalledExitCoordinator." into nyc-dev
George Mount [Fri, 1 Apr 2016 23:06:57 +0000 (23:06 +0000)]
Merge "Removed improper check on mCalledExitCoordinator." into nyc-dev

8 years agoGet name and address without enabling Bluetooth
Ajay Panicker [Thu, 31 Mar 2016 21:14:27 +0000 (14:14 -0700)]
Get name and address without enabling Bluetooth

Bug: 27665077
Change-Id: I2a06c1a65f22b2f9095a859f5bdd39d4626da165

8 years agoAllow app to force orientation if dock minimized
Jorim Jaggi [Fri, 1 Apr 2016 22:32:28 +0000 (15:32 -0700)]
Allow app to force orientation if dock minimized

Change-Id: I4bf1346de83922f866095465470e1a1c305b71a1
Fixes: 27437129

8 years agoRemoved get-metered-network command.
Felipe Leme [Wed, 30 Mar 2016 23:14:54 +0000 (16:14 -0700)]
Removed get-metered-network command.

The behavior of this command was not well specified in case of errors,
so it's better to remove it and let clients use 'list wifi-networks'
instead, checking for the value of the 'metered' column.

BUG: 27808364

Change-Id: I3f4216c143b4b2a803b99002585fafe0e3885665

8 years agofix build break
Chong Zhang [Fri, 1 Apr 2016 22:31:46 +0000 (15:31 -0700)]
fix build break

bug: 27834014
Change-Id: Ib5d03818d285c50d220c45ebace635faf6771ff3

8 years agoDisabling the nav bar scrim when Recents is docked.
Winson [Wed, 30 Mar 2016 18:59:22 +0000 (11:59 -0700)]
Disabling the nav bar scrim when Recents is docked.

Bug: 27869246

Change-Id: I554b299c7e577f40811fc02d6ff4a46313ff1622

8 years agoDon't performPendingDeferredStart on fragments that aren't added
Adam Powell [Fri, 1 Apr 2016 22:29:04 +0000 (15:29 -0700)]
Don't performPendingDeferredStart on fragments that aren't added

Framework edition

When setting a user visibility hint on a fragment it was possible to
have a FragmentManager already set due to a transaction being composed
but before the commit, so only checking that we have one isn't
sufficient for determining whether we should perform a pending
deferred start. This could happen easily with ViewPager adapters. Use
isAdded() instead.

Also fix a bug where we could set our internal tracking of fragments
that need a deferred start incorrectly.

Bug 27814550

Change-Id: I3be65728650c48d27a3a9dd4ca15f52006d14ab9

8 years agoMerge "Teach keyguard about PASSWORD_QUALITY_MANAGED" into nyc-dev
Toni Barzic [Fri, 1 Apr 2016 22:28:56 +0000 (22:28 +0000)]
Merge "Teach keyguard about PASSWORD_QUALITY_MANAGED" into nyc-dev

8 years agoFixing issue with transition jump due to wrong insets.
Winson [Thu, 31 Mar 2016 22:36:07 +0000 (15:36 -0700)]
Fixing issue with transition jump due to wrong insets.

Bug: 27921362
Change-Id: I4139be85253451a70bedbf3b860fc7d652704b0b

8 years agoNever "save" if the surface control is null.
Chong Zhang [Fri, 1 Apr 2016 22:10:31 +0000 (15:10 -0700)]
Never "save" if the surface control is null.

This may or may not happen, but putting in some preventative measure and
extra logging to help debug crashes related to null mSurfaceController.

bug: 27533667
Change-Id: I010147da819402c48efd26a7cc631776052a702d

8 years agoMerge "Fix NPE in AlarmManager.cancel(...)" into nyc-dev
Joe LaPenna [Fri, 1 Apr 2016 22:22:44 +0000 (22:22 +0000)]
Merge "Fix NPE in AlarmManager.cancel(...)" into nyc-dev

8 years agoMerge "Adds Soundtrigger Stub HAL Fuzz Test" into nyc-dev
Ryan Bavetta [Fri, 1 Apr 2016 22:20:42 +0000 (22:20 +0000)]
Merge "Adds Soundtrigger Stub HAL Fuzz Test" into nyc-dev

8 years agoFixing regression in drawing thumbnail background.
Winson [Fri, 1 Apr 2016 19:17:02 +0000 (12:17 -0700)]
Fixing regression in drawing thumbnail background.

- Between the time that the task view is bound and the thumbnail is
  loaded, we should still draw the background color instead of nothing.

Bug: 27971061
Change-Id: I5b7a607b86a0da20fc6ca183b1d7bc4e9db9e377

8 years agoAdds Soundtrigger Stub HAL Fuzz Test
Ryan Bavetta [Mon, 28 Mar 2016 19:52:02 +0000 (12:52 -0700)]
Adds Soundtrigger Stub HAL Fuzz Test

Change-Id: I7035a6332c93f2630b0114dc6930e66f89cc86cd

8 years agoLaunch everything from the shade in full-screen stack
Jorim Jaggi [Mon, 28 Mar 2016 20:38:45 +0000 (13:38 -0700)]
Launch everything from the shade in full-screen stack

Bug: 27864383
Change-Id: I2925661f1c325f4385876188a5866ab6b57a8f19

8 years agoMerge "Avoid extra relaunch when rotating side-by-side apps" into nyc-dev
Chong Zhang [Fri, 1 Apr 2016 21:56:44 +0000 (21:56 +0000)]
Merge "Avoid extra relaunch when rotating side-by-side apps" into nyc-dev

8 years agoMerge "AudioTrack.Builder: fix javadoc code sample" into nyc-dev
Jean-Michel Trivi [Fri, 1 Apr 2016 21:53:22 +0000 (21:53 +0000)]
Merge "AudioTrack.Builder: fix javadoc code sample" into nyc-dev

8 years agoAudioTrack.Builder: fix javadoc code sample
Jean-Michel Trivi [Fri, 1 Apr 2016 18:17:25 +0000 (11:17 -0700)]
AudioTrack.Builder: fix javadoc code sample

Code sample in javadoc for AudioTrack.Builder didn't compile.

Bug 24499652

Change-Id: Ib881052bdebd74a25bb86ab73f9679b17c3ce62b

8 years agoMerge "Audio recording activity notification: change callback name" into nyc-dev
Jean-Michel Trivi [Fri, 1 Apr 2016 21:48:39 +0000 (21:48 +0000)]
Merge "Audio recording activity notification: change callback name" into nyc-dev

8 years agoMerge "Add metrics for keyboard shortcuts" into nyc-dev
Aga Wronska [Fri, 1 Apr 2016 21:45:15 +0000 (21:45 +0000)]
Merge "Add metrics for keyboard shortcuts" into nyc-dev

8 years agoMerge "Change UCE permissions from dangerous to signatureOrSystem" into nyc-dev
Pavel Zhamaitsiak [Fri, 1 Apr 2016 21:27:30 +0000 (21:27 +0000)]
Merge "Change UCE permissions from dangerous to signatureOrSystem" into nyc-dev

8 years agoFix NPE in AlarmManager.cancel(...)
Joe LaPenna [Fri, 1 Apr 2016 20:37:37 +0000 (13:37 -0700)]
Fix NPE in AlarmManager.cancel(...)

If AlarmManager.cancel is called before any component has had a chance
to register an alarm, sWrappers will not have been set, as it is only
initialized in setImpl.

When cancelling an alarm and sWrappers does not exist, log a warning and
return early.

BUG: 27972657
Change-Id: Ied10719ba1d154f97eecfc32f429fd9ce39bf747

8 years agoShortcutManager: implement backup & restore
Makoto Onuki [Wed, 30 Mar 2016 15:30:36 +0000 (08:30 -0700)]
ShortcutManager: implement backup & restore

Also:
- Fix cross profile pinning.  Now ShortcutLauncher correctly keeps
track of target package user IDs.

- Add performance stats for package manager calls and show them on
dumpsys.

Bug 27548047

Change-Id: I2472980b2955b6c70947aaaa9b76f75d0616db6e

8 years agoAvoid extra relaunch when rotating side-by-side apps
Chong Zhang [Thu, 31 Mar 2016 16:44:34 +0000 (09:44 -0700)]
Avoid extra relaunch when rotating side-by-side apps

Update configuration with WM first and check if the stacks need to be
resized due to the update. If so, let activity manager resize the stacks
inline, instead of letting WM schedule another pass of resizeStack. This
way the configuration will be updated to the latest before ensureActivity-
ConfigurationLocked, and we don't need another relaunch there.

bug: 27834014

Change-Id: Ib761a96cada0c3247b0480f18370670c593159da

8 years agoRevert "Added handling apps query response from context hub"
Ashutosh Joshi [Fri, 1 Apr 2016 20:48:13 +0000 (20:48 +0000)]
Revert "Added handling apps query response from context hub"

This reverts commit adf75e31f52a7a935a66a884fb55631c7309ee75.

Change-Id: I8391eb57c3a53e686bd817d27860fa6f785113f1

8 years agoMerge "Revert "Ensuring builds compile for both 32 bit and 64 bit targets."" into...
Ashutosh Joshi [Fri, 1 Apr 2016 20:48:41 +0000 (20:48 +0000)]
Merge "Revert "Ensuring builds compile for both 32 bit and 64 bit targets."" into nyc-dev

8 years agoRevert "Ensuring builds compile for both 32 bit and 64 bit targets."
Ashutosh Joshi [Fri, 1 Apr 2016 20:47:28 +0000 (20:47 +0000)]
Revert "Ensuring builds compile for both 32 bit and 64 bit targets."

This reverts commit 85e093bc03d747f69b3ada658c9e82f442cda334.

Change-Id: I9346929e6016e36beb3b6949ccec9fce73da91c4

8 years agoAdd metrics for keyboard shortcuts
Aga Wronska [Thu, 31 Mar 2016 22:08:43 +0000 (15:08 -0700)]
Add metrics for keyboard shortcuts

Change-Id: I3a63efd856f25cc33d61b734970675b77645a26d
Fixed: 27942360

8 years agoRemoved improper check on mCalledExitCoordinator.
George Mount [Fri, 1 Apr 2016 20:19:35 +0000 (13:19 -0700)]
Removed improper check on mCalledExitCoordinator.

Bug 27969302

mCalledExitCoordinator can be nulled before the onResume is called,
so it cannot be used to determine whether or not the Activity is
a caller or called.

Change-Id: Ie3696ed59b89cfc8c6145d22bc230111f0813701

8 years agoChange UCE permissions from dangerous to signatureOrSystem
Pavel Zhamaitsiak [Fri, 1 Apr 2016 20:19:34 +0000 (13:19 -0700)]
Change UCE permissions from dangerous to signatureOrSystem

Bug: 27812202
Change-Id: Icf9d97e4d3f802bc0b3ea26d61835e6471082118

8 years agoMerge "Clean up Dialog annotations, lint warnings, and declarations" into nyc-dev
Alan Viverette [Fri, 1 Apr 2016 20:17:15 +0000 (20:17 +0000)]
Merge "Clean up Dialog annotations, lint warnings, and declarations" into nyc-dev