OSDN Git Service

android-x86/frameworks-base.git
7 years agoDisallow entering PiP when activity is locked.
Winson Chung [Mon, 30 Jan 2017 20:01:45 +0000 (12:01 -0800)]
Disallow entering PiP when activity is locked.

- Also ensuring that when we request for a task to be locked
  via the shell, we directly set the locked state instead of
  relying on the SystemUI to show a prompt to lock (necessary
  for the CTS test to run).

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testDisallowEnterPipActivityLocked

Change-Id: Ice608e6d8e7f018dbd5e20ae457343bfdd0a8630

7 years agoPreventing cases where an app can be stopped while entering PiP.
Winson Chung [Wed, 25 Jan 2017 21:25:22 +0000 (13:25 -0800)]
Preventing cases where an app can be stopped while entering PiP.

- Ensure that we clear the timeouts on the old stack and reschedule
  them on the new stack when moving an activity to a new stack,
  otherwise the pause timeout from the old stack will cause onStop()
  to be called.
- When adding an activity to the stopping list for processing, prevent
  scheduling an idle immediately in case an activity tries to enter
  picture-in-picture when handling onUserLeaveHint().  In that case,
  schedule an idle after the default idle delay instead.
- In addition, when resuming a resumeWhilePausing activity, prevent the
  activity idle to trigger pausing activities to be immediately put into
  a stopped state.  This was a race between the handling of pause/resume
  that would cause a pip activity to get onStop() even if it called enter
  pip on pause. Instead, when processing an idle from the activity or
  from an immediate idle scheduled by the system, we defer processing
  pausing activities until a later idle (that it reschedules).

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testEnterPipWithResumeWhilePausingActivityNoStop

Change-Id: I375369a800b7fadaa57d6e00e0564bc3ee338979
Signed-off-by: Winson Chung <winsonc@google.com>
7 years agoMerge "Fixed an issue where heads-upped notifications would stay"
Selim Cinek [Wed, 1 Feb 2017 00:21:01 +0000 (00:21 +0000)]
Merge "Fixed an issue where heads-upped notifications would stay"

7 years agoMerge "run webview preparation in separate thread"
TreeHugger Robot [Wed, 1 Feb 2017 00:11:10 +0000 (00:11 +0000)]
Merge "run webview preparation in separate thread"

7 years agoMerge "Ignore auto-fill requests from system."
TreeHugger Robot [Tue, 31 Jan 2017 23:51:22 +0000 (23:51 +0000)]
Merge "Ignore auto-fill requests from system."

7 years agoMerge "Fix PiP animation errors introduced in crop refactoring."
TreeHugger Robot [Tue, 31 Jan 2017 23:50:49 +0000 (23:50 +0000)]
Merge "Fix PiP animation errors introduced in crop refactoring."

7 years agoMerge "2D Recents: Keep nav bar hidden from transition thumbnail" into nyc-mr2-dev...
Manu Cornet [Tue, 31 Jan 2017 23:44:06 +0000 (23:44 +0000)]
Merge "2D Recents: Keep nav bar hidden from transition thumbnail" into nyc-mr2-dev am: 57071e8025
am: ccef634c7d

Change-Id: I425dea22c2c1351c6b091769f4bb3fdc8d3596b2

7 years ago2D Recents: Keep nav bar hidden from transition thumbnail am: b68b765cbf
Manu Cornet [Tue, 31 Jan 2017 23:42:37 +0000 (23:42 +0000)]
2D Recents: Keep nav bar hidden from transition thumbnail am: b68b765cbf
am: c1a87f88ae

Change-Id: I4a178bd9ab7b6c0af60131baf8e3d3dd79a820d0

7 years agoMerge "Merge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2...
Android Build Merger (Role) [Tue, 31 Jan 2017 23:40:10 +0000 (23:40 +0000)]
Merge "Merge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2-dev am: abfe26bad7 am: 52c28bade8"

7 years agoMerge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2-dev...
Manu Cornet [Tue, 31 Jan 2017 23:39:26 +0000 (23:39 +0000)]
Merge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2-dev am: abfe26bad7
am: 52c28bade8

Change-Id: I5d8e90b7060ea1182b41522bf9106efbde805614

7 years agoMerge "2D recents: fix layout to show 3 tasks on a single line am: 776f6bacd6 am...
Android Build Merger (Role) [Tue, 31 Jan 2017 23:39:05 +0000 (23:39 +0000)]
Merge "2D recents: fix layout to show 3 tasks on a single line am: 776f6bacd6 am: d378bc16ee"

7 years ago2D recents: fix layout to show 3 tasks on a single line am: 776f6bacd6
Manu Cornet [Tue, 31 Jan 2017 23:38:03 +0000 (23:38 +0000)]
2D recents: fix layout to show 3 tasks on a single line am: 776f6bacd6
am: d378bc16ee

Change-Id: Ic79ece663a1b689ae226df861062f1ae623f8efd

7 years agoMerge "Remove Wi-Fi lock icons from AccessPointPreference."
Stephen Chen [Tue, 31 Jan 2017 23:37:22 +0000 (23:37 +0000)]
Merge "Remove Wi-Fi lock icons from AccessPointPreference."

7 years agoMerge "2D Recents: Keep nav bar hidden from transition thumbnail" into nyc-mr2-dev
Manu Cornet [Tue, 31 Jan 2017 23:36:52 +0000 (23:36 +0000)]
Merge "2D Recents: Keep nav bar hidden from transition thumbnail" into nyc-mr2-dev
am: 57071e8025

Change-Id: Iff6deb4ffd576de3f96de5c0762f8d692c16db8f

7 years ago2D Recents: Keep nav bar hidden from transition thumbnail
Manu Cornet [Tue, 31 Jan 2017 23:36:44 +0000 (23:36 +0000)]
2D Recents: Keep nav bar hidden from transition thumbnail
am: b68b765cbf

Change-Id: I4a64e5ef354f16ba1bef1196f1a44bbffbc3c880

7 years agoMerge "LoadedArsc: Support feature splits."
TreeHugger Robot [Tue, 31 Jan 2017 23:35:39 +0000 (23:35 +0000)]
Merge "LoadedArsc: Support feature splits."

7 years agoMerge "More incorrect screenshot JNI code."
TreeHugger Robot [Tue, 31 Jan 2017 23:34:52 +0000 (23:34 +0000)]
Merge "More incorrect screenshot JNI code."

7 years agoMerge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2-dev
Manu Cornet [Tue, 31 Jan 2017 23:31:19 +0000 (23:31 +0000)]
Merge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2-dev
am: abfe26bad7

Change-Id: Id8714f350e775b177bffcfe8ded80a5509b213fe

7 years ago2D recents: fix layout to show 3 tasks on a single line
Manu Cornet [Tue, 31 Jan 2017 23:31:14 +0000 (23:31 +0000)]
2D recents: fix layout to show 3 tasks on a single line
am: 776f6bacd6

Change-Id: I73cda7b837f91b78714db90c06617302201389fd

7 years agoRemove Wi-Fi lock icons from AccessPointPreference.
Stephen Chen [Tue, 31 Jan 2017 00:31:23 +0000 (16:31 -0800)]
Remove Wi-Fi lock icons from AccessPointPreference.

We now have friction icons to show secured state.

Bug: 34775402
Test: manual inspection.
Change-Id: I644aadf8175e5b7b4daab6a3d6feacbe95fcdfda

7 years agoMerge "Revert "Remove getAppsUsingPermisisons""
Andreas Huber [Tue, 31 Jan 2017 23:30:12 +0000 (23:30 +0000)]
Merge "Revert "Remove getAppsUsingPermisisons""

7 years agoMerge "2D Recents: Keep nav bar hidden from transition thumbnail" into nyc-mr2-dev
Manu Cornet [Tue, 31 Jan 2017 23:27:03 +0000 (23:27 +0000)]
Merge "2D Recents: Keep nav bar hidden from transition thumbnail" into nyc-mr2-dev

7 years agoMerge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2-dev
Manu Cornet [Tue, 31 Jan 2017 23:24:59 +0000 (23:24 +0000)]
Merge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2-dev

7 years agoMerge "Propagate surface type and owner through to SurfaceFlinger."
TreeHugger Robot [Tue, 31 Jan 2017 23:22:08 +0000 (23:22 +0000)]
Merge "Propagate surface type and owner through to SurfaceFlinger."

7 years agoMerge "Refactor AutoFill server code."
TreeHugger Robot [Tue, 31 Jan 2017 23:18:09 +0000 (23:18 +0000)]
Merge "Refactor AutoFill server code."

7 years agoMerge "Adding missing filters to suggested actions in Settings that that they match...
Ido Ofir [Tue, 31 Jan 2017 23:17:25 +0000 (23:17 +0000)]
Merge "Adding missing filters to suggested actions in Settings that that they match the Optional Steps fliters in setup wizard. Also added some more logging."

7 years agoRevert "Remove getAppsUsingPermisisons"
vinodkrishnan [Tue, 31 Jan 2017 23:00:45 +0000 (23:00 +0000)]
Revert "Remove getAppsUsingPermisisons"

This reverts commit dfcf4fc29a5cc61fda041ffbef1c786550c9521a.

Change-Id: Id08db7999158c76dc39f0908722ea8f5a6b21257

7 years agoMerge "fix array index out of bounds"
TreeHugger Robot [Tue, 31 Jan 2017 22:54:58 +0000 (22:54 +0000)]
Merge "fix array index out of bounds"

7 years agoFixed an issue where heads-upped notifications would stay
Selim Cinek [Tue, 31 Jan 2017 22:37:14 +0000 (14:37 -0800)]
Fixed an issue where heads-upped notifications would stay

If a heads up notification was briefly removed right after
it was added it could linger around in systemUI until
the panel collapsed.
We need to make sure not to apply this improvement if
reordering isn't allowed, otherwise it will never time out

Test: existing tests pass
Bug: 34608075
Change-Id: I7768f6111ada30edcb997a42940e5e336efe1cf2

7 years agoMerge "Remove getAppsUsingPermisisons"
vinodkrishnan [Tue, 31 Jan 2017 22:30:53 +0000 (22:30 +0000)]
Merge "Remove getAppsUsingPermisisons"

7 years agorun webview preparation in separate thread
Keun-young Park [Fri, 27 Jan 2017 19:30:19 +0000 (11:30 -0800)]
run webview preparation in separate thread

- There is no other dependency for webview from system server.
  Prepare it in separate thread and confirm completion
  before allowing 3rd party apps.

bug: 33840151
Test: manual, reboot
Change-Id: I417b0451c37f663c577295ab07f33474e72fe457

7 years agoIgnore auto-fill requests from system.
Felipe Leme [Tue, 31 Jan 2017 21:34:19 +0000 (13:34 -0800)]
Ignore auto-fill requests from system.

Change-Id: I3c318aeb96c1ba7a751feba2a0d9042015eaaffb
Fixes: 34819567
Bug: 34171325
Test: could not reproduce

7 years agoMerge "Add UiBench jank and macrobench tests for saveLayer performance"
TreeHugger Robot [Tue, 31 Jan 2017 22:05:18 +0000 (22:05 +0000)]
Merge "Add UiBench jank and macrobench tests for saveLayer performance"

7 years agoMerge "Implicitly cast views obtained via View.findView methods"
TreeHugger Robot [Tue, 31 Jan 2017 22:04:22 +0000 (22:04 +0000)]
Merge "Implicitly cast views obtained via View.findView methods"

7 years agoFix PiP animation errors introduced in crop refactoring.
Robert Carr [Tue, 31 Jan 2017 21:20:31 +0000 (13:20 -0800)]
Fix PiP animation errors introduced in crop refactoring.

Firstly, pinned stack now uses final crop only, so we need to scale
to the width/height computed there, not as computed for the crop.
Furthermore mTmpClipRect is no longer used directly to set the crop,
so clearing it in the pinned animation code had no effect. This fixes
the worst of the visual errors so people stop filing bugs while I
rework this logic entirely.

Bug: 34823229
Bug: 32881014
Bug: 33245930
Test: Manual with PiP activities on Fugu.
Change-Id: I45d2def5138f3cc278408a9209b5e5c40cece80b

7 years agoMerge "Make sure MASTER_CLEAR_NOTIFICATION goes to manifest receivers"
Chris Tate [Tue, 31 Jan 2017 21:31:40 +0000 (21:31 +0000)]
Merge "Make sure MASTER_CLEAR_NOTIFICATION goes to manifest receivers"

7 years agoMerge "Merge "Correct the formula of battery capacity estimation. am: c800ddc824...
Android Build Merger (Role) [Tue, 31 Jan 2017 21:04:32 +0000 (21:04 +0000)]
Merge "Merge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f" into nyc-mr2-dev-plus-aosp am: c820fe9b16"

7 years agoMerge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d4769...
Android Build Merger (Role) [Tue, 31 Jan 2017 21:04:11 +0000 (21:04 +0000)]
Merge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f am: ab03a2f033"

7 years agoMerge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d4769...
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 21:03:04 +0000 (21:03 +0000)]
Merge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f" into nyc-mr2-dev-plus-aosp
am: c820fe9b16

Change-Id: I67798476c055da8f7ace2f0cc55071b66b4e9273

7 years agoCorrect the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 21:02:57 +0000 (21:02 +0000)]
Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f
am: ab03a2f033

Change-Id: I3ffab388aaa1e06954a0e0ede2dce95c5454e55c

7 years agoMerge "Correct the formula of battery capacity estimation. am: c800ddc824 am: ac655b5...
Android Build Merger (Role) [Tue, 31 Jan 2017 21:02:27 +0000 (21:02 +0000)]
Merge "Correct the formula of battery capacity estimation. am: c800ddc824 am: ac655b5a7c am: c95ecb5ed8"

7 years agoCorrect the formula of battery capacity estimation. am: c800ddc824 am: ac655b5a7c
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 21:01:28 +0000 (21:01 +0000)]
Correct the formula of battery capacity estimation. am: c800ddc824 am: ac655b5a7c
am: c95ecb5ed8

Change-Id: Ib23b58f4139dc80dcdafa1089c90fb7ac9ce3abd

7 years agoMerge "Correct Screencap utility code."
TreeHugger Robot [Tue, 31 Jan 2017 21:00:56 +0000 (21:00 +0000)]
Merge "Correct Screencap utility code."

7 years agoMerge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d4769...
Android Build Merger (Role) [Tue, 31 Jan 2017 20:58:14 +0000 (20:58 +0000)]
Merge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f" into nyc-mr2-dev-plus-aosp

7 years agoCorrect the formula of battery capacity estimation. am: c800ddc824
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 20:57:29 +0000 (20:57 +0000)]
Correct the formula of battery capacity estimation. am: c800ddc824
am: ac655b5a7c

Change-Id: Ifa298b57e62e4238740b177a7e4a346671d56987

7 years agoCorrect the formula of battery capacity estimation. am: c800ddc824
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 20:57:24 +0000 (20:57 +0000)]
Correct the formula of battery capacity estimation. am: c800ddc824
am: d4d476943f

Change-Id: I097f2f5a610f2cef639a4c6e7e003bcbd2fd44c5

7 years agofix array index out of bounds
Todd Kennedy [Tue, 31 Jan 2017 20:49:28 +0000 (12:49 -0800)]
fix array index out of bounds

we can't be removing items from the list while we're iterating
through them!

Test: Manual
Change-Id: I18c70aced01269e196adbf4aa538c42345d74a95

7 years agoMerge "WebView: Revise the behavior of crash handle API"
Tao Bai [Tue, 31 Jan 2017 20:55:14 +0000 (20:55 +0000)]
Merge "WebView: Revise the behavior of crash handle API"

7 years agoCorrect the formula of battery capacity estimation.
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 20:53:27 +0000 (20:53 +0000)]
Correct the formula of battery capacity estimation.
am: c800ddc824

Change-Id: Idf0396fdac7e0cedbac39da98b2fe97e26dce64e

7 years agoCorrect the formula of battery capacity estimation.
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 20:53:26 +0000 (20:53 +0000)]
Correct the formula of battery capacity estimation.
am: c800ddc824

Change-Id: Ia0a16cd15fc71f6ff2af89d7ecbb7a319b5ece92

7 years agoMake sure MASTER_CLEAR_NOTIFICATION goes to manifest receivers
Christopher Tate [Wed, 25 Jan 2017 22:49:44 +0000 (14:49 -0800)]
Make sure MASTER_CLEAR_NOTIFICATION goes to manifest receivers

It sometimes needs to launch OEM-supplied apps for processing, so make sure
it continues to do so.

Bug 34587823
Test: verified dispatch via logcat/dumpsys

Change-Id: Ic80e06582116cdd629492ed01a9b05b0e1b3822e

7 years agoMerge "Remove unneeded parameters"
Julia Reynolds [Tue, 31 Jan 2017 20:46:13 +0000 (20:46 +0000)]
Merge "Remove unneeded parameters"

7 years agoAdd UiBench jank and macrobench tests for saveLayer performance
Stan Iliev [Fri, 27 Jan 2017 19:30:23 +0000 (14:30 -0500)]
Add UiBench jank and macrobench tests for saveLayer performance

Create 2 jank tests and 1 macrobench that measure saveLayer
performance:
- Fling a ListView, which has a vertical fading edge.
- Draw a canvas with 20 saveLayer/restore interleaved with other
drawText and drawRect ops.

Test: built and ran UiBench jank and macrobench tests.
Change-Id: I5a50feb7431d597c92c7a49031505d41f397d175

7 years agoMerge "Two digit call support for Claro" am: c74d60a69e am: 7f8a08a772 am: 950c564646
Yong Shi [Tue, 31 Jan 2017 19:56:35 +0000 (19:56 +0000)]
Merge "Two digit call support for Claro" am: c74d60a69e am: 7f8a08a772 am: 950c564646
am: 0574c9c9a6

Change-Id: Ib35d7f4ee570356d1c7ec4ef1e9184a7e4f4dd5b

7 years agoMerge "Don't copy NoCopySpans in SpannableStringInternal"
Siyamed Sinir [Tue, 31 Jan 2017 19:54:34 +0000 (19:54 +0000)]
Merge "Don't copy NoCopySpans in SpannableStringInternal"

7 years agoMerge "Two digit call support for Claro" am: c74d60a69e am: 7f8a08a772
Yong Shi [Tue, 31 Jan 2017 19:51:26 +0000 (19:51 +0000)]
Merge "Two digit call support for Claro" am: c74d60a69e am: 7f8a08a772
am: 950c564646

Change-Id: Icae8f52eb9348884b1b6b1aa1407d3d043793f3a

7 years agoMerge "Two digit call support for Claro" am: c74d60a69e
Yong Shi [Tue, 31 Jan 2017 19:47:01 +0000 (19:47 +0000)]
Merge "Two digit call support for Claro" am: c74d60a69e
am: 7f8a08a772

Change-Id: I294b83c86708708f95352bb019a032fabc1c4ed5

7 years agoMerge "Two digit call support for Claro"
Yong Shi [Tue, 31 Jan 2017 19:42:26 +0000 (19:42 +0000)]
Merge "Two digit call support for Claro"
am: c74d60a69e

Change-Id: I18548618853aa37f43114ed7ffdca73c1fc0effc

7 years agoMerge "Two digit call support for Claro"
Treehugger Robot [Tue, 31 Jan 2017 19:30:23 +0000 (19:30 +0000)]
Merge "Two digit call support for Claro"

7 years agoMerge "Update the A2DP Codec Config API" am: ccd60f7cbe am: f0096fb868 am: 91707989c4
Pavlin Radoslavov [Tue, 31 Jan 2017 19:25:11 +0000 (19:25 +0000)]
Merge "Update the A2DP Codec Config API" am: ccd60f7cbe am: f0096fb868 am: 91707989c4
am: 1ef3c9888e

Change-Id: If69bfe9839a35dc141d741695a217fa4805d46cc

7 years agoMerge "Update the A2DP Codec Config API" am: ccd60f7cbe am: f0096fb868
Pavlin Radoslavov [Tue, 31 Jan 2017 19:18:27 +0000 (19:18 +0000)]
Merge "Update the A2DP Codec Config API" am: ccd60f7cbe am: f0096fb868
am: 91707989c4

Change-Id: I0d58681de89b82ffdce57d3381cd2397b9ade3e7

7 years agoMerge "Update the A2DP Codec Config API" am: ccd60f7cbe
Pavlin Radoslavov [Tue, 31 Jan 2017 19:13:05 +0000 (19:13 +0000)]
Merge "Update the A2DP Codec Config API" am: ccd60f7cbe
am: f0096fb868

Change-Id: Ibc7d4b500adc4451978f366557b93dc6b6d3da63

7 years agoMerge "Update the A2DP Codec Config API"
Pavlin Radoslavov [Tue, 31 Jan 2017 19:07:58 +0000 (19:07 +0000)]
Merge "Update the A2DP Codec Config API"
am: ccd60f7cbe

Change-Id: Idc54b85eb096ec0116395332c7bc0b543a59a7d5

7 years agoAdding missing filters to suggested actions in Settings that that they
Ido Ofir [Tue, 24 Jan 2017 21:27:36 +0000 (13:27 -0800)]
Adding missing filters to suggested actions in Settings that that they
match the Optional Steps fliters in setup wizard.
Also added some more logging.

Bug: 34460278
Test: cd tests/; mma

Change-Id: Id576a1a19daa473e203cef41d67f6ef0cfc06dbe

7 years agoCorrect Screencap utility code.
Robert Carr [Tue, 31 Jan 2017 19:02:58 +0000 (11:02 -0800)]
Correct Screencap utility code.

Screenshot interface now takes signed parameters.

Bug: 34758075
Test: None
Change-Id: I884456ce7f22a9e57990371ad66f6bb55d09e999

7 years agoMerge "Update the A2DP Codec Config API"
Pavlin Radoslavov [Tue, 31 Jan 2017 19:02:35 +0000 (19:02 +0000)]
Merge "Update the A2DP Codec Config API"

7 years agoWebView: Revise the behavior of crash handle API
Tao Bai [Tue, 31 Jan 2017 00:54:28 +0000 (16:54 -0800)]
WebView: Revise the behavior of crash handle API

To make backward compatible, kills application when render process
is killed by system.

Bug: 30824898
Test: No test, this is document revision.
Change-Id: I12862ee9ed1986ec274fe627782542e8d8414856

7 years agoUpdate the A2DP Codec Config API
Pavlin Radoslavov [Thu, 26 Jan 2017 00:54:07 +0000 (16:54 -0800)]
Update the A2DP Codec Config API

Previously, the JNI upcall would contain only the current codec config.
In the new API, the upcall contains:
 1. The current codec config
 2. The list of codecs containing the local codecs capabilities
 3. The list of codecs containing the selectable codecs capabilities.
    This list is the intersection of the local codecs capabilities
    and the capabilities of the paired device.

Also, refactored the Java internals to accomodate the extra information:
 * Added new class BluetoothCodecStatus that contains the extra info:
   current codec config, local codecs capabilities and selectable
   codecs capabilities
 * Renamed method getCodecConfig() to getCodecStatus() and return the
   corresponding BluetoothCodecStatus object.
 * Updates to class BluetoothCodecConfig:
   new methods isValid(), getCodecName(), and updated toString()
   so it is more user friendly
 * Removed BluetoothCodecConfig.EXTRA_CODEC_CONFIG and
   EXTRA_PREVIOUS_CODEC_CONFIG.
   The former is superseded by BluetoothCodecStatus.EXTRA_CODEC_STATUS;
   the latter is not really used.

Test: A2DP streaming with headsets and switching the codecs
Change-Id: Ia1af2c22e521e863e28a360610aca49f7e62d31b

7 years agoMerge "Add UiModeManager commands to adb"
TreeHugger Robot [Tue, 31 Jan 2017 18:50:20 +0000 (18:50 +0000)]
Merge "Add UiModeManager commands to adb"

7 years agoMerge "Primary navigation fragments"
TreeHugger Robot [Tue, 31 Jan 2017 18:40:40 +0000 (18:40 +0000)]
Merge "Primary navigation fragments"

7 years agoMerge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006 am...
Peter Qiu [Tue, 31 Jan 2017 18:35:24 +0000 (18:35 +0000)]
Merge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006 am: ea14632665 am: 77095c33d3
am: e7e2dc148c

Change-Id: Ib6a5a5bac5886099581e7027af74e90fa98eb35f

7 years agoMerge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006 am...
Peter Qiu [Tue, 31 Jan 2017 18:29:49 +0000 (18:29 +0000)]
Merge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006 am: ea14632665
am: 77095c33d3

Change-Id: Ib0ee84bf185ac7b492029eae791436ae30c246e2

7 years agoMerge "wifi: WifiConfiguration: add isHomeProviderNetwork field"
TreeHugger Robot [Tue, 31 Jan 2017 18:28:28 +0000 (18:28 +0000)]
Merge "wifi: WifiConfiguration: add isHomeProviderNetwork field"

7 years agoMerge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006
Peter Qiu [Tue, 31 Jan 2017 18:25:48 +0000 (18:25 +0000)]
Merge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006
am: ea14632665

Change-Id: I5511f4d323761edf5eab149894a7a1b2acee4e07

7 years agoMerge "Replace invalidateChild/invalidateChildInParent"
Chris Craik [Tue, 31 Jan 2017 18:23:17 +0000 (18:23 +0000)]
Merge "Replace invalidateChild/invalidateChildInParent"

7 years agoMerge "hotspot2: enclose conditional statement in parenthesis"
Peter Qiu [Tue, 31 Jan 2017 18:21:27 +0000 (18:21 +0000)]
Merge "hotspot2: enclose conditional statement in parenthesis"
am: 161ac8b006

Change-Id: I2da11aee68e52f9e868ca23cbd913703ef0585e3

7 years agoMerge "Add a home intent category for VR headset UI mode."
TreeHugger Robot [Tue, 31 Jan 2017 18:15:02 +0000 (18:15 +0000)]
Merge "Add a home intent category for VR headset UI mode."

7 years agoMerge "Enabling low storage notification on Android TV"
Dmitri Plotnikov [Tue, 31 Jan 2017 18:14:49 +0000 (18:14 +0000)]
Merge "Enabling low storage notification on Android TV"

7 years agoMerge "hotspot2: enclose conditional statement in parenthesis"
Treehugger Robot [Tue, 31 Jan 2017 18:12:56 +0000 (18:12 +0000)]
Merge "hotspot2: enclose conditional statement in parenthesis"

7 years agoMerge "Fix NotificationGuts tests"
Mady Mellor [Tue, 31 Jan 2017 17:58:31 +0000 (17:58 +0000)]
Merge "Fix NotificationGuts tests"

7 years agoMerge "Fix crash in TextView getFont"
TreeHugger Robot [Tue, 31 Jan 2017 17:56:06 +0000 (17:56 +0000)]
Merge "Fix crash in TextView getFont"

7 years agoMore incorrect screenshot JNI code.
Robert Carr [Tue, 31 Jan 2017 17:22:14 +0000 (09:22 -0800)]
More incorrect screenshot JNI code.

Not sure why we aren't getting warnings but these casts are to the wrong
type.

Bug: 34758075
Test: Manual
Change-Id: I6b9fc0500762c34379f4de56e0b5a66e6f17d87d

7 years agoMerge "Added a new wifi_badging_thresholds setting to Settings.Global"
William Mee [Tue, 31 Jan 2017 16:54:44 +0000 (16:54 +0000)]
Merge "Added a new wifi_badging_thresholds setting to Settings.Global"

7 years agoAdd UiModeManager commands to adb
Alan Viverette [Mon, 30 Jan 2017 15:36:54 +0000 (10:36 -0500)]
Add UiModeManager commands to adb

Change-Id: I0480bf92e6a8e9adee99a0013d70d39550a52611
Fixes: 30096205
Test: adb shell cmd uimode night yes

7 years agoMerge "don't require 'O' for instant apps"
TreeHugger Robot [Tue, 31 Jan 2017 16:22:35 +0000 (16:22 +0000)]
Merge "don't require 'O' for instant apps"

7 years agoMerge "Migrate Tron logs for power to multimetric format."
TreeHugger Robot [Tue, 31 Jan 2017 15:56:11 +0000 (15:56 +0000)]
Merge "Migrate Tron logs for power to multimetric format."

7 years agoRemove unneeded parameters
Julia Reynolds [Tue, 31 Jan 2017 14:44:26 +0000 (09:44 -0500)]
Remove unneeded parameters

Test: cts-verifier
Change-Id: Ifaddd71aa44898c7c16f28f1715fd035861e3be6

7 years agoMerge "Fix for endless loop in RelativeLayout."
Yura [Tue, 31 Jan 2017 15:18:09 +0000 (15:18 +0000)]
Merge "Fix for endless loop in RelativeLayout."

7 years agodon't require 'O' for instant apps
Todd Kennedy [Tue, 31 Jan 2017 14:51:28 +0000 (06:51 -0800)]
don't require 'O' for instant apps

It's unclear if we need this check; esp if we want to support
running legacy instant apps [i.e. instant apps that run pre-O
under the supervisor].

Test: Build and install instant app
Change-Id: I241f97e7960635af933e8fe1ddd86675789ec26c

7 years agoMerge "Use TVExtender channel on tv platforms."
Julia Reynolds [Tue, 31 Jan 2017 14:06:03 +0000 (14:06 +0000)]
Merge "Use TVExtender channel on tv platforms."

7 years agoFix crash in TextView getFont
Clara Bayarri [Tue, 31 Jan 2017 12:15:50 +0000 (12:15 +0000)]
Fix crash in TextView getFont

The wrong TypedArray was being used to retrieve the value.

Bug: 34818260
Test: run cts -m CtsWidgetTestCases -t
android.widget.cts.TextViewTest#testFontResources_setInXmlStyle

Change-Id: I09334710b9b21f1397bc02d92d14b41fbc96178f

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 21e0ccb1a6 -s ours
Bill Yi [Tue, 31 Jan 2017 08:42:40 +0000 (08:42 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 21e0ccb1a6  -s ours
am: eccb4c5045  -s ours

Change-Id: I1132a94369c09f75e1f961ffe9ee90a71996c013

7 years agoImport translations. DO NOT MERGE am: 652182376c -s ours
Bill Yi [Tue, 31 Jan 2017 08:41:41 +0000 (08:41 +0000)]
Import translations. DO NOT MERGE am: 652182376c  -s ours
am: 1b49042a6a  -s ours

Change-Id: I511fbfdc62022fd75a5690e789c8e19c51ad5ced

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
Bill Yi [Tue, 31 Jan 2017 08:37:44 +0000 (08:37 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 21e0ccb1a6  -s ours

Change-Id: I12a3340aaa49277aba78c7dcc51b063458113262

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 08:37:39 +0000 (08:37 +0000)]
Import translations. DO NOT MERGE
am: 652182376c  -s ours

Change-Id: I45c84e6031609830111e915ab692906fc48ff0d6

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
TreeHugger Robot [Tue, 31 Jan 2017 08:31:11 +0000 (08:31 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 31 Jan 2017 08:02:40 +0000 (08:02 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoRefactor AutoFill server code.
Jason Long [Sat, 28 Jan 2017 05:21:06 +0000 (21:21 -0800)]
Refactor AutoFill server code.

With this change, data flows strictly like so:

AFManagerService -> AFManagerServiceImpl -> Session -> ViewSession

A ViewSession is introduced to 1) know when we can show the fill UI,
and 2) know when we need to create or update the current fill UI.

Each class has its own responsibilities:

* AFManagerService - interface to app process
* AFManagerServiceImpl - per user id
* Session - per activity
** AutoFillUI - per activity (can consider moving to ViewSession)
* ViewSession - per view

Bug: 34633695
Change-Id: Ia197a5c40219379ab6a95d0cf5c39ac4f5470d0e
Test: CTS, Manual with GMS Core

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: f3db881c0c -s ours
Bill Yi [Tue, 31 Jan 2017 07:39:56 +0000 (07:39 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: f3db881c0c  -s ours
am: b02ba73c7d  -s ours

Change-Id: Id437d7da4c74788afe857ea09ae9974cf77c8132

7 years agoImport translations. DO NOT MERGE am: 85f7e3989c -s ours
Bill Yi [Tue, 31 Jan 2017 07:39:01 +0000 (07:39 +0000)]
Import translations. DO NOT MERGE am: 85f7e3989c  -s ours
am: c90971e335  -s ours

Change-Id: I5dd2cda575ce68aaf7a188a1b75f02191a40fefd