OSDN Git Service

android-x86/frameworks-base.git
7 years agoRevert "Call ActivityCallbacks after corresponding activity methods"
Narayan Kamath [Thu, 2 Feb 2017 13:31:33 +0000 (13:31 +0000)]
Revert "Call ActivityCallbacks after corresponding activity methods"

This reverts commit 660cf30e2100d8ed40198c95f93b61e5d1cdb10c.

bug: 34415265
bug: 34914977
Test: chrome launches

Change-Id: I170365fd47313bafb0d722e6d55ee119336137c4

7 years agoHandle nullable drawables inside MaskableIconDrawable
Hyunyoung Song [Thu, 2 Feb 2017 08:53:06 +0000 (00:53 -0800)]
Handle nullable drawables inside MaskableIconDrawable
Test: manual test
b/34902453

Change-Id: I36fc48f7e4c1f6503a9c26b8f239c62da729b490

7 years agoMerge "Prevent division-by-zero error when calculating battery capacity."
Ying Wai (Daniel) Fan [Thu, 2 Feb 2017 08:32:09 +0000 (08:32 +0000)]
Merge "Prevent division-by-zero error when calculating battery capacity."

7 years agoMerge "Hardware bitmaps: Destroy texture ID generated for the copy"
Sergei Vasilinetc [Thu, 2 Feb 2017 07:27:09 +0000 (07:27 +0000)]
Merge "Hardware bitmaps: Destroy texture ID generated for the copy"

7 years agoMerge "No warning/info log for expected/normal situations"
TreeHugger Robot [Thu, 2 Feb 2017 06:46:28 +0000 (06:46 +0000)]
Merge "No warning/info log for expected/normal situations"

7 years agoMerge "Avoid NPE in NightDisplayService when VR mode is invoked"
TreeHugger Robot [Thu, 2 Feb 2017 06:42:59 +0000 (06:42 +0000)]
Merge "Avoid NPE in NightDisplayService when VR mode is invoked"

7 years agoMerge "Add plain mode for the quick viewer."
Tomasz Mikolajewski [Thu, 2 Feb 2017 05:10:27 +0000 (05:10 +0000)]
Merge "Add plain mode for the quick viewer."

7 years agoMerge "Fix AutoFill Save window layout params."
TreeHugger Robot [Thu, 2 Feb 2017 03:58:42 +0000 (03:58 +0000)]
Merge "Fix AutoFill Save window layout params."

7 years agoAdd plain mode for the quick viewer.
Tomasz Mikolajewski [Wed, 1 Feb 2017 05:16:39 +0000 (14:16 +0900)]
Add plain mode for the quick viewer.

When EXTRA_QUICK_VIEW_PLAIN is passed, then plain UI should be shown.
This is just a hint for third party apps, whic may ignore it.

Test: Not testable, as it's just a hint.
Bug: 32161075
Change-Id: Ie244d28d552f6c654be93a5749ac164d2a77d25f

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3f...
Suprabh Shukla [Thu, 2 Feb 2017 03:07:56 +0000 (03:07 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3 am: 2e6bdbeaab am: 588411fc7c  -s ours am: 773f85ec60 am: 029364c505 am: 2f1b2d82ca am: ac8f44e387 am: 3ee26841fd
am: a843ab955c  -s ours

Change-Id: I5de7b85e7cf6aae708512ec068edee82ad5ee239

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3f...
Suprabh Shukla [Thu, 2 Feb 2017 03:03:20 +0000 (03:03 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3 am: 2e6bdbeaab am: 588411fc7c  -s ours am: 773f85ec60 am: 029364c505 am: 2f1b2d82ca am: ac8f44e387
am: 3ee26841fd

Change-Id: I7b4d65cc7a3d1b4f575d885e1c71b40a52cc90a4

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3f...
Suprabh Shukla [Thu, 2 Feb 2017 02:57:58 +0000 (02:57 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3 am: 2e6bdbeaab am: 588411fc7c  -s ours am: 773f85ec60 am: 029364c505 am: 2f1b2d82ca
am: ac8f44e387

Change-Id: I7e4376740ddf167035a3274c19ca5ae3f113a9b0

7 years agoMerge "QS: Remove circles and add lines"
Jason Monk [Thu, 2 Feb 2017 02:53:46 +0000 (02:53 +0000)]
Merge "QS: Remove circles and add lines"

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3f...
Suprabh Shukla [Thu, 2 Feb 2017 02:53:21 +0000 (02:53 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3 am: 2e6bdbeaab am: 588411fc7c  -s ours am: 773f85ec60 am: 029364c505
am: 2f1b2d82ca

Change-Id: I8094afc5c919b65d7f180ef9d3ad875f3ea4dacf

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3f...
Suprabh Shukla [Thu, 2 Feb 2017 02:48:23 +0000 (02:48 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3 am: 2e6bdbeaab am: 588411fc7c  -s ours am: 773f85ec60
am: 029364c505

Change-Id: Ibef494c57a80a7b0d871dd8a80f877816e6897d0

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3f...
Suprabh Shukla [Thu, 2 Feb 2017 02:43:24 +0000 (02:43 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3 am: 2e6bdbeaab am: 588411fc7c  -s ours
am: 773f85ec60

Change-Id: Ie83cb2dfd89fd808e906a802e16fd1943a898012

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3f...
Suprabh Shukla [Thu, 2 Feb 2017 02:38:24 +0000 (02:38 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3 am: 2e6bdbeaab
am: 588411fc7c  -s ours

Change-Id: I1511e5dff681d06161cd18b78e7edaf7eddb897a

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3
Suprabh Shukla [Thu, 2 Feb 2017 02:32:48 +0000 (02:32 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3
am: 2e6bdbeaab

Change-Id: I7e286445a887e467a7de42ce9b27a9dc009e47fd

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8
Suprabh Shukla [Thu, 2 Feb 2017 02:28:13 +0000 (02:28 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8
am: ab8d3febd3

Change-Id: If42411391fe2010162c51adf48e720e308a650ec

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held
Suprabh Shukla [Thu, 2 Feb 2017 02:21:16 +0000 (02:21 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held
am: 4ffe72dcc8

Change-Id: Ic7b9ef6484df0b57c8f1ee7a483ef3bda05c7cc7

7 years agoMerge "Improved AutoFill Save workflow."
Felipe Leme [Thu, 2 Feb 2017 02:05:29 +0000 (02:05 +0000)]
Merge "Improved AutoFill Save workflow."

7 years agoHardware bitmaps: Destroy texture ID generated for the copy
sergeyv [Thu, 2 Feb 2017 01:50:27 +0000 (17:50 -0800)]
Hardware bitmaps: Destroy texture ID generated for the copy

Test: manual
bug:34807359
Change-Id: Idb1ef2a2efcb3cf7fb96e2a1f0554a06e7cd0fc2

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971...
Makoto Onuki [Thu, 2 Feb 2017 01:29:49 +0000 (01:29 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971dcdc am: 963cba5b5b am: f1e276384d am: 46bfcb9961  -s ours
am: 62c651d4d5  -s ours

Change-Id: I459ff4ec03824e661d286aa718e029c7a5a60c7d

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971...
Makoto Onuki [Thu, 2 Feb 2017 01:25:19 +0000 (01:25 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971dcdc am: 963cba5b5b am: f1e276384d
am: 46bfcb9961  -s ours

Change-Id: Ie1cd5114414daeb1216827563333ed91df873604

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971...
Makoto Onuki [Thu, 2 Feb 2017 01:19:52 +0000 (01:19 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971dcdc am: 963cba5b5b
am: f1e276384d

Change-Id: I856ad657b894531f03bc145e033b0cebf4e722cd

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971dcdc
Makoto Onuki [Thu, 2 Feb 2017 01:15:44 +0000 (01:15 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971dcdc
am: 963cba5b5b

Change-Id: I3a1421f656d1a90970eac6156e0840625662fb17

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc
Makoto Onuki [Thu, 2 Feb 2017 01:10:43 +0000 (01:10 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc
am: 01f971dcdc

Change-Id: If5f5e5d47b97e2b8480adc5ca2cb08702056ca87

7 years agoDO NOT MERGE Do not call RecoverySystem with DPMS lock held
Makoto Onuki [Thu, 2 Feb 2017 01:03:21 +0000 (01:03 +0000)]
DO NOT MERGE Do not call RecoverySystem with DPMS lock held
am: 2317451acc

Change-Id: Id3441141d4feea4c7291350c9670bd59ec017240

7 years agoMerge "Add dumpsys options to procstats to inject screen state"
TreeHugger Robot [Thu, 2 Feb 2017 01:02:26 +0000 (01:02 +0000)]
Merge "Add dumpsys options to procstats to inject screen state"

7 years agoMerge changes Iad270dfd,Ice608e6d,I375369a8
Winson Chung [Thu, 2 Feb 2017 00:23:05 +0000 (00:23 +0000)]
Merge changes Iad270dfd,Ice608e6d,I375369a8

* changes:
  Adding initial TRON logging for picture-in-picture.
  Disallow entering PiP when activity is locked.
  Preventing cases where an app can be stopped while entering PiP.

7 years agoMerge "Start MtpDocumentsService as foreground service."
TreeHugger Robot [Thu, 2 Feb 2017 00:13:28 +0000 (00:13 +0000)]
Merge "Start MtpDocumentsService as foreground service."

7 years agoStart MtpDocumentsService as foreground service.
Daichi Hirono [Thu, 26 Jan 2017 05:40:19 +0000 (14:40 +0900)]
Start MtpDocumentsService as foreground service.

Prevously MtpDocumentsService was started as background service, then it
turns into a foreground service by calling Service#startForeground.

The workflow did not work until this, because now background activity
cannot launch a background service.

The CL starts using NotificationManager#startForegroundService to launch
MtpDocumentsService so that the service can be started as foreground
service directly.

Bug: 34468813
Test: MtpDocumentsProviderTests
Test: manual testing with connecting MTP device to Android
Change-Id: Ic35d3e92f234881846e5d82ed04d6681a83035f7

7 years agoAvoid NPE in NightDisplayService when VR mode is invoked
Steven Thomas [Wed, 11 Jan 2017 00:54:42 +0000 (16:54 -0800)]
Avoid NPE in NightDisplayService when VR mode is invoked

Bug: b/32086748

Test: I was seeing the crash without the CL. With the CL no more crash.
Change-Id: I286af1066ce8928ed72a83a8da645fe99953fd85

7 years agoMerge "Removing extraneous translations"
Mark Renouf [Wed, 1 Feb 2017 23:30:50 +0000 (23:30 +0000)]
Merge "Removing extraneous translations"

7 years agoMerge "Fix a bug in View#hasFocusable with new auto-focusable behavior"
TreeHugger Robot [Wed, 1 Feb 2017 23:23:38 +0000 (23:23 +0000)]
Merge "Fix a bug in View#hasFocusable with new auto-focusable behavior"

7 years agoFix AutoFill Save window layout params.
Jason Long [Wed, 1 Feb 2017 19:17:45 +0000 (11:17 -0800)]
Fix AutoFill Save window layout params.

Change-Id: I54ae23e9ab1b12ab868b37fd8e87e89dad7ae8fc
Test: CTS

7 years agoMerge "Scale PiP to stack instead of crop."
TreeHugger Robot [Wed, 1 Feb 2017 23:14:12 +0000 (23:14 +0000)]
Merge "Scale PiP to stack instead of crop."

7 years agoAdd dumpsys options to procstats to inject screen state
Makoto Onuki [Wed, 1 Feb 2017 22:04:47 +0000 (14:04 -0800)]
Add dumpsys options to procstats to inject screen state

Test: CTS CtsDumpsysHostTestCases, not submitted yet though.
$ cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDumpsysHostTestCases -t 'android.dumpsys.cts.ProcessStatsDumpsysTest'
Bug 34228624

Change-Id: I9cf7f737624fe9f188956be7ba7485151555bc4b

7 years agoMerge "Allow opening activity to specify orientation."
Bryce Lee [Wed, 1 Feb 2017 22:54:28 +0000 (22:54 +0000)]
Merge "Allow opening activity to specify orientation."

7 years agoMerge "Explicitly destroy Layer in DeferredLayerUpdater on destroyHardwareResources()"
Sergei Vasilinetc [Wed, 1 Feb 2017 22:52:16 +0000 (22:52 +0000)]
Merge "Explicitly destroy Layer in DeferredLayerUpdater on destroyHardwareResources()"

7 years agoMerge "Properly clear textures for Hardware Bitmaps"
Sergei Vasilinetc [Wed, 1 Feb 2017 22:47:59 +0000 (22:47 +0000)]
Merge "Properly clear textures for Hardware Bitmaps"

7 years agoQS: Remove circles and add lines
Jason Monk [Wed, 1 Feb 2017 22:18:22 +0000 (17:18 -0500)]
QS: Remove circles and add lines

 - Remove circles from icons.
 - Add lines to indicate tiles with dual tap targets.
 - Change default order

Test: visual
Change-Id: I1eb02641757a76ddf3e3876182f7b2503161bc9e

7 years agoNo warning/info log for expected/normal situations
Yohei Yukawa [Wed, 1 Feb 2017 21:59:43 +0000 (13:59 -0800)]
No warning/info log for expected/normal situations

This CL hides warning and info log messages from
InputMethodManagerService (IMMS) and InputMethodService (IMS) behind
DEBUG flag like other logs unless the state is certainly unusual.

Of course the definition of "unusual" is still an open question, but
basically that we should not see any suspicious message from IMMS/IMS
just by turning on a new phone, launching some applications, typing
something, and turning off the device. IMMS and IMS should expect all
events that can (easily) occur in that scenario, and no log is
necessary for such things.

Note that warnings suppressed with TODO comments will be tracked
under Bug 34851776 (and Bug 34886274).

Test: adb logcat -s InputMethodManagerService:* InputMethodService:*
      to monitor log in the following scenario:
       1. Boot the device.
       2. Complete the setup wizard.
       3. Launch Dialer and type something on it.
       4. Launch Contacts app and type something on it.
       5. Try some special modes:
           - Turn on/off display
           - Recents screen
           - Split-window mode
           - Guest user
           - Multi user
           - Direct-boot (setup a device password and reboot)
      except for logs about actual IPC calls from a background user.
Bug: 34838583
Bug: 34851776
Bug: 34886274
Change-Id: I3fcdeb919bb2f2940da9ff45e17ac00baa1253f4

7 years agoMerge "Backbone of the new aapt2 strip command."
Pierre Lecesne [Wed, 1 Feb 2017 21:15:07 +0000 (21:15 +0000)]
Merge "Backbone of the new aapt2 strip command."

7 years agoMerge "Cleanup hwbinder getService code." am: 9be24a3040 am: 4ede371d80 am: ec840d1464
Steven Moreland [Wed, 1 Feb 2017 21:08:00 +0000 (21:08 +0000)]
Merge "Cleanup hwbinder getService code." am: 9be24a3040 am: 4ede371d80 am: ec840d1464
am: 8bb391016b

Change-Id: I56d2b0c8d466e78316497264b7ca96f6526b3d9d

7 years agoMerge "Cleanup hwbinder getService code." am: 9be24a3040 am: 4ede371d80
Steven Moreland [Wed, 1 Feb 2017 21:03:54 +0000 (21:03 +0000)]
Merge "Cleanup hwbinder getService code." am: 9be24a3040 am: 4ede371d80
am: ec840d1464

Change-Id: I83a7077f07689dc57ac4d8828508443cc4385292

7 years agoMerge "Add a filter for audio apps."
Daniel Nishi [Wed, 1 Feb 2017 21:01:51 +0000 (21:01 +0000)]
Merge "Add a filter for audio apps."

7 years agoMerge "Cleanup hwbinder getService code." am: 9be24a3040
Steven Moreland [Wed, 1 Feb 2017 20:57:59 +0000 (20:57 +0000)]
Merge "Cleanup hwbinder getService code." am: 9be24a3040
am: 4ede371d80

Change-Id: Ia0f3f88d8881f89cec6939dbb44d7dbbb8da9a7f

7 years agoMerge "Fix setting null target fragments"
TreeHugger Robot [Wed, 1 Feb 2017 20:54:49 +0000 (20:54 +0000)]
Merge "Fix setting null target fragments"

7 years agoMerge "Cleanup hwbinder getService code."
Steven Moreland [Wed, 1 Feb 2017 20:53:24 +0000 (20:53 +0000)]
Merge "Cleanup hwbinder getService code."
am: 9be24a3040

Change-Id: Idb75f2c41e6e0fd9c2eb03ef4960e40cb6556308

7 years agoMerge "App Widget Service with dump in protobuf format"
Mario Bertschler [Wed, 1 Feb 2017 20:47:01 +0000 (20:47 +0000)]
Merge "App Widget Service with dump in protobuf format"

7 years agoMerge "Cleanup hwbinder getService code."
Treehugger Robot [Wed, 1 Feb 2017 20:46:45 +0000 (20:46 +0000)]
Merge "Cleanup hwbinder getService code."

7 years agoProperly clear textures for Hardware Bitmaps
sergeyv [Wed, 1 Feb 2017 18:27:33 +0000 (10:27 -0800)]
Properly clear textures for Hardware Bitmaps

Test: manual  (Description in the bug)
bug:34858530
Change-Id: I13eb89077c43ca28436509a7af5b7c11374446c4

7 years agoAllow opening activity to specify orientation.
Bryce Lee [Tue, 24 Jan 2017 19:05:01 +0000 (11:05 -0800)]
Allow opening activity to specify orientation.

An activity's window is initially not visible. This means it is not
accounted for until it becomes visible, which means requested
orientations will not be honored until after onCreate.

This changelist removes the visibility check previously used determining
the orientation.

This changelist also addresses an issue where an ActivityRecord member
variable tracking the last configuration sent was not being initially
updated.

Fixes: 33844887
Fixes: 33814250
Fixes: 34165818
Fixes: 34177026
Fixes: 33809086
Fixes: 34111451
Fixes: 33844423

Test: Verified reported issues fixed in apps mentioned in bugs
Test: bit FrameworksServicesTests:com.android.server.wm.WindowContainerTests
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts.ActivityManagerAppConfigurationTests
Change-Id: If9243792b9f2d137dc5addbf6fb735a0048fa192

7 years agoMerge "Check disqualifying notifications synchronously."
Julia Reynolds [Wed, 1 Feb 2017 20:25:11 +0000 (20:25 +0000)]
Merge "Check disqualifying notifications synchronously."

7 years agoMerge "Deprecate notification fields"
Julia Reynolds [Wed, 1 Feb 2017 20:24:19 +0000 (20:24 +0000)]
Merge "Deprecate notification fields"

7 years agoMerge "Correct accessibility check for current user"
Phil Weaver [Wed, 1 Feb 2017 20:16:59 +0000 (20:16 +0000)]
Merge "Correct accessibility check for current user"

7 years agoMerge "Fix incorrect comments"
TreeHugger Robot [Wed, 1 Feb 2017 20:14:00 +0000 (20:14 +0000)]
Merge "Fix incorrect comments"

7 years agoMerge "Remove unneeded callbacks to systemui."
Julia Reynolds [Wed, 1 Feb 2017 20:03:48 +0000 (20:03 +0000)]
Merge "Remove unneeded callbacks to systemui."

7 years agoMerge "AOD: Fix in-place ambient layout updates"
Adrian Roos [Wed, 1 Feb 2017 20:02:08 +0000 (20:02 +0000)]
Merge "AOD: Fix in-place ambient layout updates"

7 years agoMerge "Turn off Dynamic IMS switching for now" am: 2bb0d95e91 am: 9f1ccbf5f9 am:...
Brad Ebinger [Wed, 1 Feb 2017 19:58:06 +0000 (19:58 +0000)]
Merge "Turn off Dynamic IMS switching for now" am: 2bb0d95e91 am: 9f1ccbf5f9 am: cb8180033a
am: aca8a2a707

Change-Id: I2dc6102e9bd875603f26fcfb87ce34b1a72e1a23

7 years agoMerge "Turn off Dynamic IMS switching for now" am: 2bb0d95e91 am: 9f1ccbf5f9
Brad Ebinger [Wed, 1 Feb 2017 19:53:27 +0000 (19:53 +0000)]
Merge "Turn off Dynamic IMS switching for now" am: 2bb0d95e91 am: 9f1ccbf5f9
am: cb8180033a

Change-Id: If5baf2ffc7b4010c6598ec730d48602b48738cc2

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Wed, 1 Feb 2017 19:51:01 +0000 (19:51 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Turn off Dynamic IMS switching for now" am: 2bb0d95e91
Brad Ebinger [Wed, 1 Feb 2017 19:49:24 +0000 (19:49 +0000)]
Merge "Turn off Dynamic IMS switching for now" am: 2bb0d95e91
am: 9f1ccbf5f9

Change-Id: If9be849f743e9722ca49543a92d33d09978dc6ce

7 years agoMerge "Adds @hide permission granting API for ImsServices" am: 390ec27f9d am: 6734275...
Brad Ebinger [Wed, 1 Feb 2017 19:46:55 +0000 (19:46 +0000)]
Merge "Adds @hide permission granting API for ImsServices" am: 390ec27f9d am: 6734275c2f am: fa1dca0ad6
am: 3aaf673c60

Change-Id: I6a6a2d136f0f31bbac984e4ba18f9f6b90808705

7 years agoMerge "Turn off Dynamic IMS switching for now"
Brad Ebinger [Wed, 1 Feb 2017 19:44:55 +0000 (19:44 +0000)]
Merge "Turn off Dynamic IMS switching for now"
am: 2bb0d95e91

Change-Id: Ie74b53ca5f0b6463b371368608c793d402878d50

7 years agoMerge "Adds @hide permission granting API for ImsServices" am: 390ec27f9d am: 6734275c2f
Brad Ebinger [Wed, 1 Feb 2017 19:42:16 +0000 (19:42 +0000)]
Merge "Adds @hide permission granting API for ImsServices" am: 390ec27f9d am: 6734275c2f
am: fa1dca0ad6

Change-Id: Id2875b5b60401405e31e76eb07968798144df700

7 years agoMerge "Turn off Dynamic IMS switching for now"
Brad Ebinger [Wed, 1 Feb 2017 19:36:47 +0000 (19:36 +0000)]
Merge "Turn off Dynamic IMS switching for now"

7 years agoMerge "Adds @hide permission granting API for ImsServices" am: 390ec27f9d
Brad Ebinger [Wed, 1 Feb 2017 19:35:56 +0000 (19:35 +0000)]
Merge "Adds @hide permission granting API for ImsServices" am: 390ec27f9d
am: 6734275c2f

Change-Id: I6d502db3362aafcfed426b6598be0bd39dd38890

7 years agoScale PiP to stack instead of crop.
Robert Carr [Wed, 1 Feb 2017 18:28:28 +0000 (10:28 -0800)]
Scale PiP to stack instead of crop.

When changing stacks the finalCrop or crop may not be set
so relying on either one for the scaling factor is error prone.
Just scale to the stack size. I initially avoided this because I
thought some of the crop code may be relevant in computing the size
we wan't...but I'm now pretty sure it won't.

Test: Expand PiP back to fullscreen on phone, verify no crash.
Change-Id: I172daade74bec7374b5fd3310c1bf554e46d8832

7 years agoMerge "Adds @hide permission granting API for ImsServices"
Brad Ebinger [Wed, 1 Feb 2017 19:30:41 +0000 (19:30 +0000)]
Merge "Adds @hide permission granting API for ImsServices"
am: 390ec27f9d

Change-Id: I0f3d38811925884681d11cf18e12f1b0574d64c6

7 years agoMerge "Adds @hide permission granting API for ImsServices"
Treehugger Robot [Wed, 1 Feb 2017 19:24:10 +0000 (19:24 +0000)]
Merge "Adds @hide permission granting API for ImsServices"

7 years agoMerge "Fixed NPE during monkey testing."
TreeHugger Robot [Wed, 1 Feb 2017 19:18:14 +0000 (19:18 +0000)]
Merge "Fixed NPE during monkey testing."

7 years agoAdding initial TRON logging for picture-in-picture.
Winson Chung [Tue, 20 Dec 2016 00:18:24 +0000 (16:18 -0800)]
Adding initial TRON logging for picture-in-picture.

Bug: 33756317
Test: Run PIP activity
Change-Id: Iad270dfdf6521d4659653a0697effaed4a0d4137

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 agoImproved AutoFill Save workflow.
Felipe Leme [Tue, 24 Jan 2017 23:10:26 +0000 (15:10 -0800)]
Improved AutoFill Save workflow.

Currently, the onProvideAutoFillStructure() methods can be called
twice: to auto-fill an activity and to save the activity's data
in the service.

The problem with this approach is that when the save workflow is
called, the activity might have been gone. Hence, a proper approach
is to keep the initial AssistStructure data in the system_service
memory, watch for view changes, and then passed the new structure
back to the AutoFillService.

A side effect of this change is that we need another way to determine
if the view is sanitized or not. For "standard" views, that will be
defined based on whether the view content come from a resource or not,
but that logic is not implemented yet (for now, all views will be
considered sanitized, except for TextView passwords). For "custom"
views (such as WebView), this logic is responsibility of the view
implementation, through the newChild() method, which now takes a
flag (whose value could be AUTO_FILL_FLAG_SANITIZED for sanitized
views).

The SaveCallback.onSuccess() method was simplified: it does
not need a list of saved ids anymore the auto-fill UI will not use it
anymore.

Another side effect is that the Save notification is gone - until
it's attached again, it can be test by using:

    adb shell cmd autofill save

Finally, hook AutoFillUI on ACTION_CLOSE_SYSTEM_DIALOGS events.

BUG: 33269702
BUG: 31001899
Test: manual verification
Test: CtsAutoFillServiceTestCases passes
Change-Id: I907a7e21d1b3cd1ab6dec3a08d144a52655da46f

7 years agoApp Widget Service with dump in protobuf format
Mario Bertschler [Wed, 25 Jan 2017 23:36:55 +0000 (15:36 -0800)]
App Widget Service with dump in protobuf format

Test: This protobuf format is validated as a CTS test
Bug: 33088921
Change-Id: I9d2a983052ade06cd3a13857b7e7f9e3d9bc275e

7 years agoBackbone of the new aapt2 strip command.
Pierre Lecesne [Tue, 31 Jan 2017 23:58:27 +0000 (23:58 +0000)]
Backbone of the new aapt2 strip command.

The strip command takes an APK as argument and a --target-densities flag which
contains the list of screen densities for which to optimize the APK. All
the resources that would be unused for a device having the given
densities are stripped from the APK leaving only the ones actually being
used.

Test: Manual.

Change-Id: I68368b00876a18ccdbbfc0a8dd265bd361117933

7 years agoFix setting null target fragments
Adam Powell [Wed, 1 Feb 2017 18:45:12 +0000 (10:45 -0800)]
Fix setting null target fragments

Bug 34869013
Test: CTS

Change-Id: Ibeed66f9a889a8e395bfabedcf22aebcbb848908

7 years agoMerge "Notification playback synchronized with audio focus"
Jean-Michel Trivi [Wed, 1 Feb 2017 18:43:32 +0000 (18:43 +0000)]
Merge "Notification playback synchronized with audio focus"

7 years agoCleanup hwbinder getService code.
Steven Moreland [Wed, 1 Feb 2017 17:58:00 +0000 (09:58 -0800)]
Cleanup hwbinder getService code.

- Remove memory leaks.
- Make sure proper errors are getting thrown.
- Avoid SIGABRT

Test: hidl_test_java
Change-Id: Ia5680fd0ebf83d0f174bf0d8109bf60327be5f9d

7 years agoMerge "Add Wear keycodes to emulator key layout file. am: 119a06ce55 am: c85e503d52...
Nimrod Gileadi [Wed, 1 Feb 2017 18:10:07 +0000 (18:10 +0000)]
Merge "Add Wear keycodes to emulator key layout file. am: 119a06ce55 am: c85e503d52" into nyc-mr2-dev-plus-aosp
am: da5289b6ed

Change-Id: I34d2a4a3945579820af1c3fdb04da53b956bf665

7 years agoAdd Wear keycodes to emulator key layout file. am: 119a06ce55 am: c85e503d52
Nimrod Gileadi [Wed, 1 Feb 2017 18:10:00 +0000 (18:10 +0000)]
Add Wear keycodes to emulator key layout file. am: 119a06ce55 am: c85e503d52
am: 0dea9e896f

Change-Id: I69418d80868e6cb27fcc82635150c47da03c3654

7 years agoAdd Wear keycodes to emulator key layout file. am: 119a06ce55 am: 9576ce6696
Nimrod Gileadi [Wed, 1 Feb 2017 18:08:49 +0000 (18:08 +0000)]
Add Wear keycodes to emulator key layout file. am: 119a06ce55 am: 9576ce6696
am: 00620e70d5

Change-Id: Ie9e186901a6d846ee1417b1b1db9ed091e854b89

7 years agoMerge "Add Wear keycodes to emulator key layout file. am: 119a06ce55 am: c85e503d52...
Android Build Merger (Role) [Wed, 1 Feb 2017 18:03:06 +0000 (18:03 +0000)]
Merge "Add Wear keycodes to emulator key layout file. am: 119a06ce55 am: c85e503d52" into nyc-mr2-dev-plus-aosp

7 years agoMerge "Call ActivityCallbacks after corresponding activity methods"
Sergei Vasilinetc [Wed, 1 Feb 2017 18:02:30 +0000 (18:02 +0000)]
Merge "Call ActivityCallbacks after corresponding activity methods"

7 years agoAdd Wear keycodes to emulator key layout file. am: 119a06ce55
Nimrod Gileadi [Wed, 1 Feb 2017 18:02:17 +0000 (18:02 +0000)]
Add Wear keycodes to emulator key layout file. am: 119a06ce55
am: c85e503d52

Change-Id: I6840265835199d454d735e443fb53228c0ae2fd2

7 years agoAdd Wear keycodes to emulator key layout file. am: 119a06ce55
Nimrod Gileadi [Wed, 1 Feb 2017 18:01:45 +0000 (18:01 +0000)]
Add Wear keycodes to emulator key layout file. am: 119a06ce55
am: 9576ce6696

Change-Id: Ic10c9e353a264c60cef3dac79a2fc4b57eebb244

7 years agoFix incorrect comments
Romain Guy [Wed, 1 Feb 2017 17:59:02 +0000 (09:59 -0800)]
Fix incorrect comments

Bug: 33010587
Test: comment only
Change-Id: Icdfa79bac50545bb73f4c40727fe51780ef4a56d

7 years agoAdd Wear keycodes to emulator key layout file.
Nimrod Gileadi [Wed, 1 Feb 2017 17:57:16 +0000 (17:57 +0000)]
Add Wear keycodes to emulator key layout file.
am: 119a06ce55

Change-Id: I33d2b0f9b8281c22422677f03d6046a1be0bd94f

7 years agoAdd Wear keycodes to emulator key layout file.
Nimrod Gileadi [Wed, 1 Feb 2017 17:57:11 +0000 (17:57 +0000)]
Add Wear keycodes to emulator key layout file.
am: 119a06ce55

Change-Id: Ieb06380c3bd43af7087463543960cc4ee1889050

7 years agoMerge "Revert "Allow opening activity to specify orientation.""
Bryce Lee [Wed, 1 Feb 2017 17:11:30 +0000 (17:11 +0000)]
Merge "Revert "Allow opening activity to specify orientation.""

7 years agoRevert "Allow opening activity to specify orientation."
Bryce Lee [Wed, 1 Feb 2017 17:09:18 +0000 (17:09 +0000)]
Revert "Allow opening activity to specify orientation."

This reverts commit f0a6fdbf53882949db0a141693dd33302b42d51b.

Reason for revert: Submitted before complete.

Change-Id: I545ff45b5e870c79d66884b7a2a80981293b1b24

7 years agoMerge "Allow opening activity to specify orientation."
Bryce Lee [Wed, 1 Feb 2017 17:06:08 +0000 (17:06 +0000)]
Merge "Allow opening activity to specify orientation."

7 years agoCheck disqualifying notifications synchronously.
Julia Reynolds [Wed, 1 Feb 2017 16:11:06 +0000 (11:11 -0500)]
Check disqualifying notifications synchronously.

Don't wait to check on the handler.

Test: runtest systemui-notification and
platform_testing/tests/functional/notificationtests

Change-Id: Ife1ad8bc5c40420cd6682329b8135744cfe38e4a

7 years agoMerge "Remove setDockedStackMinimized credentials prompt"
TreeHugger Robot [Wed, 1 Feb 2017 16:42:19 +0000 (16:42 +0000)]
Merge "Remove setDockedStackMinimized credentials prompt"

7 years agoFixed NPE during monkey testing.
Wale Ogunwale [Wed, 1 Feb 2017 16:12:14 +0000 (08:12 -0800)]
Fixed NPE during monkey testing.

We tried to resume key dispatching for an activity after we destroyed
it and removed its container which led to an NPE.
We now resume key dispatching for an activity if it is currently paused
just before we remove its container to not leave WM in a bad state and
also avoid NPE later on.

Change-Id: I89d366c8667e621f4515df802c6b8278fa4bd322
Fixes: 34808323
Test: adb shell monkey -p ...

7 years agoMerge "Fix a wrong UID can be logged"
Yohei Yukawa [Wed, 1 Feb 2017 16:00:09 +0000 (16:00 +0000)]
Merge "Fix a wrong UID can be logged"

7 years agoMerge "Initialize bootanimation sound on separate thread"
TreeHugger Robot [Wed, 1 Feb 2017 15:45:56 +0000 (15:45 +0000)]
Merge "Initialize bootanimation sound on separate thread"