OSDN Git Service

android-x86/frameworks-base.git
6 years agomerge in oc-r6-release history after reset to oc-release
gitbuildkicker [Thu, 17 Aug 2017 14:28:10 +0000 (07:28 -0700)]
merge in oc-r6-release history after reset to oc-release

6 years agoProperly compute default and system set flag on an upgrade
Svetoslav Ganov [Wed, 16 Aug 2017 21:50:00 +0000 (14:50 -0700)]
Properly compute default and system set flag on an upgrade

We added the notions of a default value and whether this default is set
by the system for a setting which is needed for experiments since in
case a bad value is pushed we should be able to incrementally rollback
to a stable state. If a system component sets a setting value this
automatically becomes the default. System components are the platform
package, the special UIDs (telephony, etc), apps singed with the
platform cert, system installed persistent apps, and SUW.

In N we did not have the notion of a default and during an upgrade need
to adjust the default and whether this default is set by the system.
This migration runs as the system UID and was incorrectly computing that
the package that changed the settings last was a part of the system and
setting the current value as its default set by the system. This
resulted in taking more storage space as we also count the default which
led the package which changed the setting to go over the quota and that
throws. If the first caller into the settings provider is the system
main
thread (almost certain) we end up throwing an exception on the system
main thread - crashing the system server.

Test: flash N, install an app abusing sys settings, update to O

Merged-In:I8e2c578cb564b2bc2de7c793eb40dea2639fa04e

bug:64718888

Change-Id: I82f0d52fd7984fb2d0da1fd91399a0c914dfa24b

6 years agomerge in oc-r6-release history after reset to oc-release
gitbuildkicker [Thu, 17 Aug 2017 14:07:01 +0000 (07:07 -0700)]
merge in oc-r6-release history after reset to oc-release

6 years agoProperly compute default and system set flag on an upgrade
Svetoslav Ganov [Wed, 16 Aug 2017 21:50:00 +0000 (14:50 -0700)]
Properly compute default and system set flag on an upgrade

We added the notions of a default value and whether this default is set
by the system for a setting which is needed for experiments since in
case a bad value is pushed we should be able to incrementally rollback
to a stable state. If a system component sets a setting value this
automatically becomes the default. System components are the platform
package, the special UIDs (telephony, etc), apps singed with the
platform cert, system installed persistent apps, and SUW.

In N we did not have the notion of a default and during an upgrade need
to adjust the default and whether this default is set by the system.
This migration runs as the system UID and was incorrectly computing that
the package that changed the settings last was a part of the system and
setting the current value as its default set by the system. This
resulted in taking more storage space as we also count the default which
led the package which changed the setting to go over the quota and that
throws. If the first caller into the settings provider is the system
main
thread (almost certain) we end up throwing an exception on the system
main thread - crashing the system server.

Test: flash N, install an app abusing sys settings, update to O

Merged-In:I8e2c578cb564b2bc2de7c793eb40dea2639fa04e

bug:64718888

Change-Id: I82f0d52fd7984fb2d0da1fd91399a0c914dfa24b

6 years agomerge in oc-r6-release history after reset to oc-release
gitbuildkicker [Thu, 17 Aug 2017 13:43:13 +0000 (06:43 -0700)]
merge in oc-r6-release history after reset to oc-release

6 years agoProperly compute default and system set flag on an upgrade
Svetoslav Ganov [Wed, 16 Aug 2017 21:50:00 +0000 (14:50 -0700)]
Properly compute default and system set flag on an upgrade

We added the notions of a default value and whether this default is set
by the system for a setting which is needed for experiments since in
case a bad value is pushed we should be able to incrementally rollback
to a stable state. If a system component sets a setting value this
automatically becomes the default. System components are the platform
package, the special UIDs (telephony, etc), apps singed with the
platform cert, system installed persistent apps, and SUW.

In N we did not have the notion of a default and during an upgrade need
to adjust the default and whether this default is set by the system.
This migration runs as the system UID and was incorrectly computing that
the package that changed the settings last was a part of the system and
setting the current value as its default set by the system. This
resulted in taking more storage space as we also count the default which
led the package which changed the setting to go over the quota and that
throws. If the first caller into the settings provider is the system
main
thread (almost certain) we end up throwing an exception on the system
main thread - crashing the system server.

Test: flash N, install an app abusing sys settings, update to O

Merged-In:I8e2c578cb564b2bc2de7c793eb40dea2639fa04e

bug:64718888

Change-Id: I82f0d52fd7984fb2d0da1fd91399a0c914dfa24b

6 years agomerge in oc-r6-release history after reset to oc-release
gitbuildkicker [Thu, 17 Aug 2017 13:19:13 +0000 (06:19 -0700)]
merge in oc-r6-release history after reset to oc-release

6 years agoProperly compute default and system set flag on an upgrade
Svetoslav Ganov [Wed, 16 Aug 2017 21:50:00 +0000 (14:50 -0700)]
Properly compute default and system set flag on an upgrade

We added the notions of a default value and whether this default is set
by the system for a setting which is needed for experiments since in
case a bad value is pushed we should be able to incrementally rollback
to a stable state. If a system component sets a setting value this
automatically becomes the default. System components are the platform
package, the special UIDs (telephony, etc), apps singed with the
platform cert, system installed persistent apps, and SUW.

In N we did not have the notion of a default and during an upgrade need
to adjust the default and whether this default is set by the system.
This migration runs as the system UID and was incorrectly computing that
the package that changed the settings last was a part of the system and
setting the current value as its default set by the system. This
resulted in taking more storage space as we also count the default which
led the package which changed the setting to go over the quota and that
throws. If the first caller into the settings provider is the system
main
thread (almost certain) we end up throwing an exception on the system
main thread - crashing the system server.

Test: flash N, install an app abusing sys settings, update to O

Merged-In:I8e2c578cb564b2bc2de7c793eb40dea2639fa04e

bug:64718888

Change-Id: I82f0d52fd7984fb2d0da1fd91399a0c914dfa24b

6 years agomerge in oc-r6-release history after reset to oc-release
gitbuildkicker [Thu, 17 Aug 2017 12:59:34 +0000 (05:59 -0700)]
merge in oc-r6-release history after reset to oc-release

6 years agoProperly compute default and system set flag on an upgrade
Svetoslav Ganov [Wed, 16 Aug 2017 21:50:00 +0000 (14:50 -0700)]
Properly compute default and system set flag on an upgrade

We added the notions of a default value and whether this default is set
by the system for a setting which is needed for experiments since in
case a bad value is pushed we should be able to incrementally rollback
to a stable state. If a system component sets a setting value this
automatically becomes the default. System components are the platform
package, the special UIDs (telephony, etc), apps singed with the
platform cert, system installed persistent apps, and SUW.

In N we did not have the notion of a default and during an upgrade need
to adjust the default and whether this default is set by the system.
This migration runs as the system UID and was incorrectly computing that
the package that changed the settings last was a part of the system and
setting the current value as its default set by the system. This
resulted in taking more storage space as we also count the default which
led the package which changed the setting to go over the quota and that
throws. If the first caller into the settings provider is the system
main
thread (almost certain) we end up throwing an exception on the system
main thread - crashing the system server.

Test: flash N, install an app abusing sys settings, update to O

Merged-In:I8e2c578cb564b2bc2de7c793eb40dea2639fa04e

bug:64718888

Change-Id: I82f0d52fd7984fb2d0da1fd91399a0c914dfa24b

6 years agomerge in oc-r6-release history after reset to oc-release
gitbuildkicker [Thu, 17 Aug 2017 11:53:51 +0000 (04:53 -0700)]
merge in oc-r6-release history after reset to oc-release

6 years agoMerge cherrypicks of [2745556] into oc-r6-release
android-build-team Robot [Thu, 17 Aug 2017 00:17:29 +0000 (00:17 +0000)]
Merge cherrypicks of [2745556] into oc-r6-release

Change-Id: I0f692e95466c5aeaced6c26215baa655f5ea930c

6 years agoProperly compute default and system set flag on an upgrade
Svetoslav Ganov [Wed, 16 Aug 2017 21:50:00 +0000 (14:50 -0700)]
Properly compute default and system set flag on an upgrade

We added the notions of a default value and whether this default is set
by the system for a setting which is needed for experiments since in
case a bad value is pushed we should be able to incrementally rollback
to a stable state. If a system component sets a setting value this
automatically becomes the default. System components are the platform
package, the special UIDs (telephony, etc), apps singed with the
platform cert, system installed persistent apps, and SUW.

In N we did not have the notion of a default and during an upgrade need
to adjust the default and whether this default is set by the system.
This migration runs as the system UID and was incorrectly computing that
the package that changed the settings last was a part of the system and
setting the current value as its default set by the system. This
resulted in taking more storage space as we also count the default which
led the package which changed the setting to go over the quota and that
throws. If the first caller into the settings provider is the system
main
thread (almost certain) we end up throwing an exception on the system
main thread - crashing the system server.

Test: flash N, install an app abusing sys settings, update to O

bug:64718888

Change-Id: I82f0d52fd7984fb2d0da1fd91399a0c914dfa24b
(cherry picked from commit bf91d4072f2b91969a17028f8b21d72f004cc6af)

6 years agorelease-request-49e3b466-076f-42b5-804c-ed9aab783aec-for-git_oc-r5-release-4255676...
android-build-team Robot [Mon, 14 Aug 2017 21:44:49 +0000 (21:44 +0000)]
release-request-49e3b466-076f-42b5-804c-ed9aab783aec-for-git_oc-r5-release-4255676 snap-temp-L37500000092850661

Change-Id: I2515c672ad65128ec95b87aaa899a3eeffc56a3a

6 years agorelease-request-c97384e1-6d1a-4702-a8a5-8d55b212d219-for-git_oc-r2-release-4229080...
android-build-team Robot [Tue, 1 Aug 2017 18:45:30 +0000 (18:45 +0000)]
release-request-c97384e1-6d1a-4702-a8a5-8d55b212d219-for-git_oc-r2-release-4229080 snap-temp-L18600000088000237

Change-Id: If71366fc4817ac6e501e7b9bd0dbfac213730fff

6 years agoMerge cherrypicks of [2627701] into oc-release
android-build-team Robot [Sat, 29 Jul 2017 16:20:43 +0000 (16:20 +0000)]
Merge cherrypicks of [2627701] into oc-release

Change-Id: I13dba40107ad2acef7dbe717fcd01f39dbc9ad49

6 years agoAdd a missing null check
Svet Ganov [Fri, 28 Jul 2017 22:35:06 +0000 (15:35 -0700)]
Add a missing null check

Test: manual

bug::62755026

Change-Id: Icf719d0e62986febd4d31f22be3e59d83c8e6e09
(cherry picked from commit 0ae9570c9925603a04d5a78775a68cc9d437542b)

6 years agoMerge cherrypicks of [2624661, 2624224] into oc-release
android-build-team Robot [Fri, 28 Jul 2017 21:23:04 +0000 (21:23 +0000)]
Merge cherrypicks of [26246612624224] into oc-release

Change-Id: I37c6e10bca102f2cea44717868c3aac4267ad02e

6 years agoHandle case for missing permissions - fix NPE
Svet Ganov [Fri, 28 Jul 2017 20:10:33 +0000 (13:10 -0700)]
Handle case for missing permissions - fix NPE

Test: manual

Bug:62755026

Change-Id: Ie4dddffdb055f6084d9420ae94d0de2a61574bd8
(cherry picked from commit 39cc33f192d528f250818446ea0418aaf0cfe41f)

6 years agoMerge cherrypicks of [2622852, 2622193, 2622194, 2622195, 2622933, 2622990, 2622991...
android-build-team Robot [Fri, 28 Jul 2017 17:27:07 +0000 (17:27 +0000)]
Merge cherrypicks of [2622852262219326221942622195262293326229902622991262299226229932622994262299526229342622196262297526229962622997262299826230502622935262219726230512622936262291826229192622999] into oc-release

Change-Id: I797b38442045e5165db55d70617201e8338bc5cc

6 years agoReport permission flags for all protections based on SDK
Svetoslav Ganov [Fri, 28 Jul 2017 05:46:53 +0000 (05:46 +0000)]
Report permission flags for all protections based on SDK

We added a couple of protection flags that also apply to
normal and dangerous permissions. These flags are folded
in the protection level breaking apps that directly and
compare against the protection constants. Apps that target
older than O SDK don't get protection flags folded into
the protection level.

Test: All permission tests pass
      Added a new test to ensure no protection flags reported
      for normal and dangerous permissions

Change-Id: I87b10a7695d8ecfa7156525d6f3d101fc0639513
bug:62755026
(cherry picked from commit adb8c522a84b5c7531b009b7a8d4c854ca7dee08)

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 26 Jul 2017 03:36:01 +0000 (20:36 -0700)]
Import translations. DO NOT MERGE

Change-Id: I640b8c920e55d419bd52e767ff15764d0921ae08
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
(cherry picked from commit d6d188b8271ef850f8806029a4349c1aa65f012c)

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 26 Jul 2017 03:38:37 +0000 (20:38 -0700)]
Import translations. DO NOT MERGE

Change-Id: I8e7ec46b61a5122fbd12d08160c2be3144d4f561
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
(cherry picked from commit 23a34a9e686f6fe20d6d22da2b3481dc5de9d5ad)

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 26 Jul 2017 03:37:22 +0000 (20:37 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ic3a619349e2cd79fb5b26a442557df0f0d423798
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
(cherry picked from commit 76d4743aeb6c97cb95d7546744b78ca31df40be4)

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 26 Jul 2017 03:42:37 +0000 (20:42 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ibb7718de71cfc02a3160d536cf1ab46cb10c925c
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
(cherry picked from commit 21e57f60fdd6c4581c9655e6cd1931b2b2118d89)

6 years agoMerge cherrypicks of [2507192] into oc-release
android-build-team Robot [Fri, 7 Jul 2017 03:12:43 +0000 (03:12 +0000)]
Merge cherrypicks of [2507192] into oc-release

Change-Id: I056e9eb24334d18b675c71d452f521973c4a82ed

6 years agoSurfaceView: Avoid initializing Surface from an invalid
Robert Carr [Thu, 6 Jul 2017 22:28:34 +0000 (15:28 -0700)]
SurfaceView: Avoid initializing Surface from an invalid
SurfaceControl.

In a recent CL we introduced a call to Surface#createFrom, in order to
recreate the Surface object from the underlying SurfaceControl, as a
workaround to emulate when it was parcelled over binder in the past.
However this is causing BufferQueue abandoned errors when stopping and
resuming some applications. To understand them, we need to revisit the
SurfaceView destruction process when handling onStop.

First mWindowStopped will be set to true (SurfaceView#windowStopped),
and we should then enter updateSurface. Our requested visibility will
now be false and so we emit the Surface destroyed callbacks. Notice in
the finally block in mUpdateSurface, we will release mSurface, but we
will NOT null mSurfaceControl. Inline documentation explains why.

In the case that the activity is not actually being destroyed, it's
possible that we may not get a dispatchDetachedFromWindow. This means
that we will not null mSurfaceControl. Now if the activity is
un-stopped and we re-enter updateSurface we encounter a problem
state. "creating" will be set to false since mSurfaceControl != null,
however mSurfaceControl will not point to a valid surface.

Prior to the introduction of the #createFrom call, this unwanted state
didn't cause any problems. Because mSurface was released back in the
finally block as we were stopping we now fall out of the
mSurface.isValid() block in updateSurface. As we reach the finally
block again, we would now set mSurfaceControl=null since the app was
no longer stopped. Later when we reach updateSurface again (which
tends to happen quite often) it will now be null and we will correctly
set creating=true, create a valid SurfaceControl, and move along
happily. However following, the introduction of this
Surface#createFrom call we will now reinitialize the Surface from an
invalid underlying SurfaceControl. This means we will enter the
mSurface.isValid block, but will proceed to emit an invalid Surface to
the client in the callbacks.

We avoid this state by making creating=true even if
SurfaceControl=non-null when the calculated visibility changes from
invisible to visible.

Bug: 63251745
Test: Manual of app from bug and apps from previous related bugs. go/wm-smoke. Additional manual testing of many SV apps.
Change-Id: Icc32a34cac239d65267da705cc23feb23e1ceb67
(cherry picked from commit 7c67b7d097bbf4a32e7b97689f97139a4b71007b)

6 years agoMerge cherrypicks of [2489285, 2489286, 2489323, 2489399, 2489257, 2489326] into...
android-build-team Robot [Mon, 3 Jul 2017 07:37:09 +0000 (07:37 +0000)]
Merge cherrypicks of [248928524892862489323248939924892572489326] into oc-release

Change-Id: I0a71668cc1c1238ce5b82f282c2f7be155ef2f9f

6 years agoSend disable messages when Bluetooth is disallowed
Myles Watson [Thu, 29 Jun 2017 10:12:02 +0000 (03:12 -0700)]
Send disable messages when Bluetooth is disallowed

Bug: 63021124
Test: cts-tradefed run commandAndExit cts \
         -m CtsDevicePolicyManagerTestCases \
         -t  com.android.cts.devicepolicy.DeviceOwnerTest#testBluetoothRestriction
Change-Id: I0ef538a4d0f0632ce303b29595ac1cab3b7d29ce
(cherry picked from commit 6291fae58543e69901fb55398d560ce3cd3878b3)

6 years agoMerge cherrypicks of [2481491, 2481800, 2481782, 2481665, 2481547, 2481358, 2481802...
android-build-team Robot [Fri, 30 Jun 2017 04:10:12 +0000 (04:10 +0000)]
Merge cherrypicks of [24814912481800248178224816652481547248135824818022481613248166824816142481594248159524815482481744248149324814942481709] into oc-release

Change-Id: Ie9bbb629b1cc534f289d3bb3e649cc4e0c0f0c97

6 years agodocs: Updated isAutofillSupported description.
Ricardo Loo [Tue, 27 Jun 2017 21:17:33 +0000 (14:17 -0700)]
docs: Updated isAutofillSupported description.

The description for `AutofillManager.isAutofillSupported` doesn't make
clear that either the device or the user can make autofill unsupported.

Bug: 62604325
Test: Ran 'make ds-docs -j16' and staged content to
go/dac-stage/reference/android/view/autofill/AutofillManager.html#isAutofillSupported()

Change-Id: I298b9f535e23dc3cb54fabed36642523753c13a5
(cherry picked from commit 33d226c95333e40e8b46e173c2483ad6728b5e56)

6 years agoAdd docs for new padding/margin attributes.
Chet Haase [Thu, 29 Jun 2017 14:54:19 +0000 (07:54 -0700)]
Add docs for new padding/margin attributes.

The attributes for View, paddingHorizontal and paddingVertical,
were added in the O release and are documented in R.attr. But they
should also be referenced in View itself, alongside the other
padding parameters.

Similarly, the new layout_MarginHorizontal and
layout_marginVertical should be referenced in
ViewGroup.MarginLayoutParams.

Bug: 63128350  Add docs about new padding/margin params
Test: built docs, checked the result
Change-Id: I3021df5ea83c469811b4a6ec6ecd3ab2966ec384
(cherry picked from commit 353d397d17c2224540cfe7fa4e33a1b0b4d3490f)

6 years agoPrevent unwanted keypress actions during TV Setup.
Sujith Ramakrishnan [Fri, 9 Jun 2017 01:18:12 +0000 (18:18 -0700)]
Prevent unwanted keypress actions during TV Setup.

    - Prevent Search or long-press Home actions
      while TV setup is being completed based
      on flag TV_USER_SETUP_COMPLETE.

Test: Manual - Reset device, ran Setup, tried keys.
Test: Manual - Rebooted device after Setup, tried keys.

Bug: 62419382
Change-Id: Ic8fb0f10943ab7c39a7d9857f62e6ab292231b40
(cherry picked from commit 0390fff82c37c705670a6c8937c11b52e2af4cb6)

6 years agoMerge cherrypicks of [2476230, 2476289, 2476272, 2476118, 2475997, 2476251, 2476119...
android-build-team Robot [Thu, 29 Jun 2017 04:44:51 +0000 (04:44 +0000)]
Merge cherrypicks of [247623024762892476272247611824759972476251247611924763412476252247629024762322476274247599924763432476275247621624763812476256247600024763622476345247636424762342476346247634724763652476276247621924762772476402247634824762352476383247625724762782476236247635024763512476307247640324763082476258] into oc-release

Change-Id: I3e45afab5b6c2e2a29e60638c33d090b368c4424

6 years agoFurther restrict activity launch on virtual displays
Andrii Kulian [Wed, 28 Jun 2017 23:21:07 +0000 (16:21 -0700)]
Further restrict activity launch on virtual displays

Only callers with INTERNAL_SYSTEM_WINDOW permission can launch
an activity to a virtual display.

Bug: 63094482
Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I3f618fcbf3c07e5085e2b43b0f038f240df0c9d3
(cherry picked from commit 3a95edc0f51dbef8fbe7b3afa731f482454537c3)

6 years agoDisable requestVisibleBehind.
Robert Carr [Tue, 27 Jun 2017 20:46:14 +0000 (13:46 -0700)]
Disable requestVisibleBehind.

As there is no caller for the SystemAPI convertToTranslucent, there is no situation
where requestVisibleBehind will actually result in the activity becoming
visible behind. However we have bugs in the requestVisibleBehind code-path,
so rather than fix them...it seems better to just prevent ourselves from
running in to them. Full deletion of the code-path is scheduled for post-O
branches.

Change-Id: I6e7c79e036986564d2d443a603e63c341de23057
Fixes: 62512584
Test: Repro from bug. go/wm-smoke.
(cherry picked from commit 8661c5e519ef0f5ab2122f8280364d8e90caedf7)

6 years ago[Companion] Dont crash if started with bluetooth off
Eugene Susla [Wed, 28 Jun 2017 17:58:46 +0000 (10:58 -0700)]
[Companion] Dont crash if started with bluetooth off

Bug: 63068644
Test: Turn BT off, and ensure the attached bud doesn't reproduce
Change-Id: I0de5ba6d28d7195dd3ebc7a3af36f057c762de60
(cherry picked from commit 7a090a11ed00aa492684800de890f4df633409d8)

6 years agoSelectively disable filtering if estimated safe
John Reck [Wed, 28 Jun 2017 18:08:07 +0000 (11:08 -0700)]
Selectively disable filtering if estimated safe

If the output matches the source rect then use
GL_NEAREST instead of GL_FILTER. This is a more
pixel-exact capture.

Bug: 38242146
Test: CtsUiRendering & CtsViewTestCases:.PixelCopyTest passes on fugu
Change-Id: I9f57a4124374568f83d45fdc8f83cc767ded888a
(cherry picked from commit 7bf96a0a6f4824f2d15ec95249b8ff038fe02239)

6 years agoProperly check for orientation mismatch
Jorim Jaggi [Wed, 28 Jun 2017 18:40:27 +0000 (14:40 -0400)]
Properly check for orientation mismatch

Previous check tested against the display, which is wrong. Now
we properly check against the configuration.

Test: go/wm-smoke
Test: Enter split screen, go home, launch app, go home, relaunch
app, ensure no splash screen shown
Test: Enter split screen with 2 apps, lock phone, unlock phone

Change-Id: I62d45b6d3e5aa91dcb5edffed4233a5fed7ac9aa
Fixes: 63075521
(cherry picked from commit 1dda7a62a20c247fe97f5791dc2a199a3723c3bd)

6 years agoFix empty signal line thickness / color in status bar
Evan Laird [Wed, 28 Jun 2017 18:27:47 +0000 (14:27 -0400)]
Fix empty signal line thickness / color in status bar

Parameterize the line thickness to the height of the drawable. Also draw
the empty state as background signal instead of foreground.

Test: visual
Change-Id: I39a7ef3164b784008e3dba5284b7fe83e4666607
Fixes: 63097113
(cherry picked from commit 718b4753f58f5019a8b622f0ef29483065f3cca6)

6 years agoDon't break key event stream when enabling a11y
Phil Weaver [Wed, 28 Jun 2017 16:46:32 +0000 (09:46 -0700)]
Don't break key event stream when enabling a11y

Bug: 62862624
Test: Enable magnification, then enable TalkBack with the
a11y shortcut. Verify that volume keys work.
A11y service CTS, a11y units tests.

Change-Id: I729ab17d24f758b5ce534ffde43d2126a1f9536c
(cherry picked from commit 6b5cde5f256fe75acbfda1b447dc6230753700ca)

6 years agoRestrict launching activities on virtual displays
Andrii Kulian [Wed, 28 Jun 2017 16:42:48 +0000 (09:42 -0700)]
Restrict launching activities on virtual displays

If an app creates a Surface and a virtual display backed by that
Surface, it can then launch activities and hijack their content.
This CL restrict activities that can be launched to virtual displays
created by apps only to those who set "allowEmbedded" attribute.
If a virtual display was created by system, apps won't get access to
the surface, so we're not limiting in this case.

Bug: 63094482
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testLaunchNotEmbeddedOnVirtualDisplay
Change-Id: Ied216bdf33df4b5a6cc8cac0e006a4883a36f94f
(cherry picked from commit 1cba31c3dc307a8629d32434bd5846a0097c240a)

6 years agoIf the menu hasn't been created yet don't do things with it
Mady Mellor [Wed, 21 Jun 2017 00:18:53 +0000 (17:18 -0700)]
If the menu hasn't been created yet don't do things with it

Test: runtest systemui
Fixes: 62594598
Change-Id: I1050e2b2bf1ece960d19ad13cb6a9bf71512db57
(cherry picked from commit 0b3f004acbb0eef38ee5e8d920e934f7ab2f7cde)
(cherry picked from commit 104be2e0196fec5198b866834d19a26e938d4afc)

6 years agoUse content type specified on the command line
Todd Kennedy [Mon, 26 Jun 2017 22:57:06 +0000 (15:57 -0700)]
Use content type specified on the command line

Bug: 62914247
Test: Manual; query before change and no intents resolved. query after and intent resolved.
Test: sample query command: adb shell cmd package query-activities -a android.intent.action.OPEN_DOCUMENT -c android.intent.category.OPENABLE -t \\*/\\*
Change-Id: Ieadb15bcdebeff01e9b8075932417ba5585de16e
(cherry picked from commit 0e2a75d96d1deab417a7a32fc4007fd7d8057ebf)

6 years agoMerge cherrypicks of [2467803, 2467786, 2467717, 2467598, 2467823, 2467734, 2467671...
android-build-team Robot [Tue, 27 Jun 2017 22:37:50 +0000 (22:37 +0000)]
Merge cherrypicks of [24678032467786246771724675982467823246773424676712467718246759924677532467672246760024677352467841246763824678242467736246775424677372467674] into oc-release

Change-Id: Id09e872fb1d3bb98329812eecb69e201e95698d6

6 years agoFix an NPE when cancelling full backup in BMS#endFullBackup()
Michal Karpinski [Tue, 27 Jun 2017 14:08:57 +0000 (15:08 +0100)]
Fix an NPE when cancelling full backup in BMS#endFullBackup()

Bug: 63000171
Test: it's just a nullcheck that compiles
Change-Id: I90faa5577f2fd656bb4f7b6af39494590a77e3bf
(cherry picked from commit 077d6371931dcefeb882a694524753c24bed3313)

6 years agoSupress roaming indications during a carrier network change.
Shishir Agrawal [Mon, 26 Jun 2017 19:06:03 +0000 (12:06 -0700)]
Supress roaming indications during a carrier network change.

Change-Id: Ib39d229b67374c4ca30c3a2c8c3b0050106733cd
Fixes: 62795179
Test: NetworkControllerSignalTest
(cherry picked from commit ecbb1f60f0558e894a82c59d3f94370370f991b3)

6 years agoFix deadlock in NetworkLoggingHandler
Kenny Guy [Mon, 26 Jun 2017 18:13:56 +0000 (19:13 +0100)]
Fix deadlock in NetworkLoggingHandler

Stop NetworkLoggingHandler holding a lock
when calling back into DevicePolicyManagerService.

Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithTwoUsers

Bug: 62966480
Change-Id: I41c3edca8922008a9d838d71ddcc50883699bc74
(cherry picked from commit 08a8783c56539b4a990a8c95d7f5011a263848b8)

6 years agoFixed an accessibility issue with the pin view
Selim Cinek [Thu, 22 Jun 2017 22:24:11 +0000 (15:24 -0700)]
Fixed an accessibility issue with the pin view

We were sending an accessibility event even if there were no
characters left, leading to an additional "bullet deleted"
notice.

Test: input pin, delte pins one bye one, observe no talkback spoken anymore at the end
Bug: 62714260
Change-Id: Iee751e31f702f4b0dc6d5a15d31d58e71bfa797e
(cherry picked from commit 8a72b06a26718cb8bdfd2ad6ae31623b60911f39)

6 years agoFix for the missing focus in WebView form fields.
susnata [Fri, 23 Jun 2017 16:13:05 +0000 (09:13 -0700)]
Fix for the missing focus in WebView form fields.

This looks like a regression for WebView (58.0.3029.125) in android
'O'. But this seems to have been fixed in early version of 60 (webview).
This workaround gets us past the problem, until we get the newer version
of WebView.

Bug: 62449959
Test: Manual
Change-Id: I29883bf7d1567c1ce7be90b4efde4b3da93b99a2
(cherry picked from commit 97640400c4aa6bf05d5606ea749b54ad63de97cd)

6 years agoMerge cherrypicks of [2463695, 2463745, 2463732, 2463679, 2463844, 2463803, 2463746...
android-build-team Robot [Tue, 27 Jun 2017 06:00:59 +0000 (06:00 +0000)]
Merge cherrypicks of [246369524637452463732246367924638442463803246374624636162463786246374724638812463733246380424638632463787] into oc-release

Change-Id: I07af11f2951107cfd86a242f293eb81437c42955

6 years agoFix activity icon badging for non-bitmap icons
Makoto Onuki [Fri, 23 Jun 2017 20:10:41 +0000 (13:10 -0700)]
Fix activity icon badging for non-bitmap icons

Bug 62930145
Test: Manual test with development/samples/ShortcutDemo/launcher/

Change-Id: I8d0eed2e1f93a3b04a6a078c25cefbfc47c528a4
(cherry picked from commit 8f2a478d9de867cf28427c481c5498fe4b5f23fb)

6 years agoFilter instant apps with different names
Todd Kennedy [Mon, 26 Jun 2017 17:34:41 +0000 (10:34 -0700)]
Filter instant apps with different names

ag/2447596 introduced a regression that caused instant apps to be
made visible to one another.

Change-Id: I5db9a43f05dd5bec991cc0934b1c9a9406dfade6
Fixes: 62998487
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
(cherry picked from commit 1dfb21b673471aa8780e2b44b362a70f4675cb49)

6 years agoFix QS lock screen animation
Jason Monk [Mon, 26 Jun 2017 15:22:21 +0000 (11:22 -0400)]
Fix QS lock screen animation

Now that we have a footer, heights and clippings need to be adjusted
to be more accurate.
 - Clip QS within its layout box regardless of its y translation
 - Calculate height diffs correctly

Test: visual
Change-Id: Ic46996e342cd1000215aa9256da920a7856bb5a4
Fixes: 62489284
(cherry picked from commit bdefffd1e806f8b7ffd5fdbe8159bee2c9d5bbb0)

6 years agonull check before dereference
Todd Kennedy [Mon, 26 Jun 2017 14:51:54 +0000 (07:51 -0700)]
null check before dereference

Change-Id: I6ae219b68920c160e104b307f60802fd75e705ce
Fixes: 62908319
Test: Manual
(cherry picked from commit 7833e7c5cb628bbf634f8771e00a896a91d43403)

6 years agoMerge cherrypicks of [2461233, 2461302, 2461279, 2461176, 2461341, 2461280, 2461290...
android-build-team Robot [Mon, 26 Jun 2017 20:46:57 +0000 (20:46 +0000)]
Merge cherrypicks of [2461233246130224612792461176246134124612802461290246134224612912461216246121724613042461306246138124613072461234246119524613082461362246123524612182461363246132324613822461345] into oc-release

Change-Id: I8b54468b97b5d61335712bb04b728e502bf7bd2f

6 years agoFix TimePicker RTL issues
Chet Haase [Mon, 26 Jun 2017 13:44:57 +0000 (06:44 -0700)]
Fix TimePicker RTL issues

The TimePicker (seen when creating an alarm in the Clock app) has
two bugs in landscape mode:
- The hours/minutes switch places (hours should always be to the left
of minutes, regardless of RTL)
- The layout is completely messed up in 12-hour mode (the radial time picker
does not appear on the screen)

This fix addresses both issues by setting the layoutDirection="ltr"
attribute to force a couple of the layouts to be unaffected in RTL mode.
Specifically, the hours/minutes layout and the overall layout will always be
presented left-to-right.

Bug: 62846484  TimePicker layout is broken in RTL landscape mode
Test: manual (tested with/without fix in normal, forded-RTL mode, and
with Hebrew as the first locale).

Change-Id: I8ef3f2706660f60c162ba3d324a18b8f370f67f8
(cherry picked from commit e2dfa0e343b5a0babb050b08355e781da3bbd516)

6 years agoRemove unnecessary dumpsys output.
Dan Sandler [Fri, 23 Jun 2017 16:42:19 +0000 (12:42 -0400)]
Remove unnecessary dumpsys output.

Change-Id: I5ec0b6b44fca58e9f5f61444acbff7a15550b135
Fixes: 62828801
Test: adb shell dumpsys activity service SystemUI | grep -c tickerText
      (should be zero)
(cherry picked from commit 4682b509b988e656733ba9cbe48bd62a679411d5)

6 years agoFixed some rotation while unlocking screen issue.
Wale Ogunwale [Fri, 23 Jun 2017 21:52:40 +0000 (14:52 -0700)]
Fixed some rotation while unlocking screen issue.

- Don't use snapshot that is in different orientation than the current
display orientation. This is a follow up to a previous CL whose
implementation wasn't complete.
- Disabled fixed for unnecessary relaunches when unlocking with
fingerprint sensor introduced in ag/2310557. This causes regression in
the experience from N. We still have the relaunches, but we cover up the
delay by displaying the apps starting window.
- Added more trace log points.

Fixes: 62796190
Fixes: 62904487
Bug: 38494778
Test: go/wm-smoke and manual verification of bug.
Change-Id: Id161a334cb4455dd9eb25c6bb63d5bb3f8a6f1f0
(cherry picked from commit dfb7fb259828a6cfa222b76398da9e430e94fd90)

6 years agoEmergency SUPL when location is disabled
Siddharth Ray [Wed, 21 Jun 2017 22:14:44 +0000 (15:14 -0700)]
Emergency SUPL when location is disabled

A cycle of native_init() and native_cleanup() is needed so that
callbacks are registered after bootup even when location is disabled.
This will allow Emergency SUPL to work even when location is disabled
before device restart.

Merged-In: I423d5a7142709fc0579be009bb8b14d3778aa090

BUG:38362097

Change-Id: I423d5a7142709fc0579be009bb8b14d3778aa090
(cherry picked from commit 9be64f128de20ca617297dabc2dbb56248361b03)

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 23 Jun 2017 03:47:22 +0000 (20:47 -0700)]
Import translations. DO NOT MERGE

Change-Id: I8e7e2885713047eef21b2885aa82aec71a5f5aa8
Auto-generated-cl: translation import
(cherry picked from commit a657c27597227e1c7dcae589899040c6b724d806)

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 23 Jun 2017 07:43:50 +0000 (00:43 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ib851156b7d64c1f1c3ea398dc1d80602219d2c0f
Auto-generated-cl: translation import
(cherry picked from commit 0efcb5ff2fe59c0cd800a0e35c69b899dc6d29b3)

6 years agoMerge cherrypicks of [2456291, 2456293, 2456332, 2456409] into oc-release
android-build-team Robot [Sat, 24 Jun 2017 00:57:01 +0000 (00:57 +0000)]
Merge cherrypicks of [2456291245629324563322456409] into oc-release

Change-Id: Ie1039c94c762301bcc41648a8a0c044a3eaa3be6

6 years agoFixed an issue in the contrast calculation
Selim Cinek [Sat, 24 Jun 2017 00:22:38 +0000 (17:22 -0700)]
Fixed an issue in the contrast calculation

The parameters were passed the wrong way around.

Test: manual inspection
Fixes: 62937149
Change-Id: I7ae2bb2a4136da37d6b59b2b1406c68ce7fe7b6b
(cherry picked from commit 4c80791919cd0da976ae5329dd7da9a0c4b3087c)

6 years agoMerge cherrypicks of [2454758, 2454859, 2454837, 2454965, 2454984, 2455001, 2454760...
android-build-team Robot [Fri, 23 Jun 2017 20:54:17 +0000 (20:54 +0000)]
Merge cherrypicks of [24547582454859245483724549652454984245500124547602454860245483824548992454970245500524550272454973245500624550612455007245491424549872454974] into oc-release

Change-Id: I3db18ae62bc0106a7a23532d6ed42ce505226b79

6 years agoFix notification contrast with transparent bg
Lucas Dupin [Fri, 23 Jun 2017 16:30:49 +0000 (09:30 -0700)]
Fix notification contrast with transparent bg

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/StatusBarIconViewTest.java
Change-Id: I2f0595408be61acb8267bb7449486ee46f7aad19
Fixes: 62937149
(cherry picked from commit ddbaf84ac6eb4757a9e355dffd07c934bf102d6f)

6 years agorelease-request-160c4b31-7fa0-4e2b-aabe-85380836a1ce-for-git_oc-release-4129081 snap...
android-build-team Robot [Fri, 23 Jun 2017 07:09:51 +0000 (07:09 +0000)]
release-request-160c4b31-7fa0-4e2b-aabe-85380836a1ce-for-git_oc-release-4129081 snap-temp-L15300000077039010

Change-Id: Icd2e3a6da835fb2ce08ab68406c0188b62f621e7

6 years agoMerge "Ensure that the recent tasks are loaded for SysUI's current user." into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 05:16:08 +0000 (05:16 +0000)]
Merge "Ensure that the recent tasks are loaded for SysUI's current user." into oc-dev

6 years agoMerge "WifiEnterpriseConfig: New copy method to ignore masked password" into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 04:26:45 +0000 (04:26 +0000)]
Merge "WifiEnterpriseConfig: New copy method to ignore masked password" into oc-dev

6 years agoMerge "Stop loading other package's font by default." into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 04:10:42 +0000 (04:10 +0000)]
Merge "Stop loading other package's font by default." into oc-dev

6 years agoMerge "Add in the getCacheQuotaBytes method to wrapper." into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 04:09:32 +0000 (04:09 +0000)]
Merge "Add in the getCacheQuotaBytes method to wrapper." into oc-dev

6 years agoMerge "Dump user id in dumpsys activity starter" into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 02:10:32 +0000 (02:10 +0000)]
Merge "Dump user id in dumpsys activity starter" into oc-dev

6 years agoStop loading other package's font by default.
Seigo Nonaka [Thu, 22 Jun 2017 15:22:18 +0000 (08:22 -0700)]
Stop loading other package's font by default.

Since CONTEXT_RESTRICTED is not a default flag of createPackageContext,
we can't rely on it for preventing unexpected font injections.
To protect developers and existing apps from a risk of font injection,
stop loading font from other package's resouce unless the developer
explicitly set CONTEXT_IGNORE_SECURITY.

This CL contains Iac2a6fb3d82ef23d5ca6ee33f4aaa9ed28455271 by manual
merging to handle repository split.

Bug: 62813533
Bug: 62879353
Test: Manually done
Merged-In: I4442ddc48dadb5c968b444be86038b602074d301
Change-Id: I4442ddc48dadb5c968b444be86038b602074d301

6 years agoAdd in the getCacheQuotaBytes method to wrapper.
Daniel Nishi [Fri, 23 Jun 2017 01:53:03 +0000 (18:53 -0700)]
Add in the getCacheQuotaBytes method to wrapper.

Bug: 62623731
Test: Settings Unit Test
Change-Id: Ibd779c7d9e60c44440483489b231ba0715321bc1

6 years agoDump user id in dumpsys activity starter
Wale Ogunwale [Thu, 22 Jun 2017 23:43:53 +0000 (16:43 -0700)]
Dump user id in dumpsys activity starter

To help with ANR debugging.

Test: adb shell dumpsys activity starter
Bug: 38121026
Change-Id: I96d530662e6a362b817df3ca8410cb173a2c0dd4

6 years agoWifiEnterpriseConfig: New copy method to ignore masked password
Roshan Pius [Thu, 22 Jun 2017 18:36:53 +0000 (11:36 -0700)]
WifiEnterpriseConfig: New copy method to ignore masked password

To ignore the masked password sent by apps, add a new copy-constructor
equivalent method which will ignore the masked password.

Bug: 62893342
Test: Unit tests.
Test: Manual tests with the linked CL.
Test: Regression tests.

Change-Id: Ib208dcd94a888e07a9b3dc0442620233ea7791e5

6 years agoImproved documentation for AutofillService package:
Felipe Leme [Mon, 5 Jun 2017 18:32:32 +0000 (11:32 -0700)]
Improved documentation for AutofillService package:

- Moved (and expanded) overall documentation from FillResponse to
  AutofillService.
- Improved SaveInfo documentation.
- Improved FillRequest documentation.
- Improved Dataset documentation.

Bug: 37567048
Test: ran 'm -j doc-comment-check-docs' and checked resulting HTML

Change-Id: I157893deac06a5ed5e1cb7fd082da485f227b9ee

6 years agoMerge "Allow any app to dynamically install a split" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 22:11:44 +0000 (22:11 +0000)]
Merge "Allow any app to dynamically install a split" into oc-dev

6 years agoMerge "ListPopupWindow: Wrap new bounds checking in targetSdk check." into oc-dev
Rob Carr [Thu, 22 Jun 2017 22:08:03 +0000 (22:08 +0000)]
Merge "ListPopupWindow: Wrap new bounds checking in targetSdk check." into oc-dev

6 years agoMerge "Change PIP notification icon" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 21:31:56 +0000 (21:31 +0000)]
Merge "Change PIP notification icon" into oc-dev

6 years agoAllow any app to dynamically install a split
Todd Kennedy [Thu, 22 Jun 2017 19:40:39 +0000 (12:40 -0700)]
Allow any app to dynamically install a split

Any application starting an activity resolved to a dyanmic split
should initiate split installation. Previously, only the application
defining the split could start installation of the split.

Bug: 62872325
Test: Manual; install instant app and start intent using 'adb shell am' and see that dynamic split installation occurs
Change-Id: I232dc5df82fb2c04653015a4a6b9f07c9e382205

6 years agoMerge "Added more systrace points to window manager" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 19:30:40 +0000 (19:30 +0000)]
Merge "Added more systrace points to window manager" into oc-dev

6 years agoListPopupWindow: Wrap new bounds checking in targetSdk check.
Robert Carr [Wed, 21 Jun 2017 17:25:05 +0000 (10:25 -0700)]
ListPopupWindow: Wrap new bounds checking in targetSdk check.

While a negative height is pretty silly, crashing apps on
the new version of android makes them sad.

Test: Existing CTS passes.
Bug: 62434804
Change-Id: I5fc3fc50fb6ccfa9e96f38ded4fb8e338f263f09

6 years agoAdded more systrace points to window manager
Wale Ogunwale [Thu, 22 Jun 2017 16:08:14 +0000 (09:08 -0700)]
Added more systrace points to window manager

To help debug performance issues

Test: external/chromium-trace/systrace.py -t 3
Bug: 62796190
Change-Id: Ie6012a895174053c4732fb58b9365546fdb979de

6 years agoMerge "Ensure icon contrast on the shelf" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 17:25:10 +0000 (17:25 +0000)]
Merge "Ensure icon contrast on the shelf" into oc-dev

6 years agoMerge "Fix ConcurrentModificationException from LocationController" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 15:39:22 +0000 (15:39 +0000)]
Merge "Fix ConcurrentModificationException from LocationController" into oc-dev

6 years agoFix ConcurrentModificationException from LocationController
Jason Monk [Thu, 22 Jun 2017 13:19:54 +0000 (09:19 -0400)]
Fix ConcurrentModificationException from LocationController

Test: runtest systemui
Change-Id: I0b7db7344217b3b7ad91f315100d1873e8167baf
Fixes: 62859544

6 years agoMerge "Create a TetherInterfaceStateMachine when told the interface name." into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 11:27:28 +0000 (11:27 +0000)]
Merge "Create a TetherInterfaceStateMachine when told the interface name." into oc-dev

6 years agoMerge "_exit(0) on clean shutdown, not _exit(1)" into oc-dev
Narayan Kamath [Thu, 22 Jun 2017 10:32:28 +0000 (10:32 +0000)]
Merge "_exit(0) on clean shutdown, not _exit(1)" into oc-dev

6 years agoCreate a TetherInterfaceStateMachine when told the interface name.
Erik Kline [Tue, 20 Jun 2017 12:18:31 +0000 (21:18 +0900)]
Create a TetherInterfaceStateMachine when told the interface name.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131
Bug: 62343300

Merged-In: I542e013aa19fefd3443588c9a81ee59cd669ab6f
Merged-In: I973bdc5b540cce66a9713cebfd5071ad4a4b0a08
Merged-In: I2104ecf8102c8f9541ee2d3ce6589b0081db4fe3
Change-Id: I2104ecf8102c8f9541ee2d3ce6589b0081db4fe3
(cherry picked from commit b912c50b197cc0fc49bb7897130581dd02d2af01)

6 years agorelease-request-767e2998-9243-43e0-b656-1acb30ac5115-for-git_oc-release-4124637 snap...
android-build-team Robot [Thu, 22 Jun 2017 07:10:46 +0000 (07:10 +0000)]
release-request-767e2998-9243-43e0-b656-1acb30ac5115-for-git_oc-release-4124637 snap-temp-L74200000076595014

Change-Id: I795a2d67501b0c11e0e40e130ad97f6fa887d11e

6 years agoOnly disable Wi-Fi IP serving on specific interface, if available
Erik Kline [Fri, 9 Jun 2017 07:36:29 +0000 (16:36 +0900)]
Only disable Wi-Fi IP serving on specific interface, if available

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131
Bug: 62343300

Merged-In: Id8d9c3f67f7a850af69069abee86adfc62841b28
Merged-In: Iac19359fd8712fa6a135f31bed9f0da97b3f2977
Merged-In: I99b170ebacc4135d1a09ce1ec3d43f76c6765de4
Change-Id: Ifd9131bad20810ee24c9436d8c0df7a81fae11d5
(cherry picked from commit 218c226b0882640a351deb0dd945a30b8bc32fff)

6 years ago_exit(0) on clean shutdown, not _exit(1)
Brian Carlstrom [Thu, 22 Jun 2017 05:14:40 +0000 (22:14 -0700)]
_exit(0) on clean shutdown, not _exit(1)

Test: m -j32 checkbuild
Bug: 36066697
Change-Id: Iaed45a86f9603badf26041212dfc5e9399bc0a0c

6 years agoMerge "Refactor TISM add/remove code" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 04:52:32 +0000 (04:52 +0000)]
Merge "Refactor TISM add/remove code" into oc-dev

6 years agoEnsure that the recent tasks are loaded for SysUI's current user.
Winson Chung [Thu, 22 Jun 2017 00:37:58 +0000 (17:37 -0700)]
Ensure that the recent tasks are loaded for SysUI's current user.

- At the point where we preload tasks, the current user in the system can
  be different than the "current" user from SystemUI's perspective. Instead
  of using the CURRENT user to get the recent tasks, use SystemUI's current
  user, to ensure that the tasks fetched are the same user as the user that
  we update the OVERVIEW_LAST_STACK_ACTIVE_TIME for (even if it's not the
  actual current user).
- In addition, if user switch happens between preloadRawTasks() and
  preloadPlan(), ensure we are using the user which we loaded recent tasks
  for, for the same reason as above.

Bug: 62440327
Test: Switch between users and ensure that tasks are not lost

Change-Id: Ia7bbf7f4c4002f6082f6f668c15a8da705ff23eb

6 years agoMerge "Autofill fixes for secondary users:" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 03:11:17 +0000 (03:11 +0000)]
Merge "Autofill fixes for secondary users:" into oc-dev

6 years agoRefactor TISM add/remove code
Erik Kline [Wed, 26 Apr 2017 02:11:07 +0000 (11:11 +0900)]
Refactor TISM add/remove code

This de-duplicates all the TISM adding and teardown code.
It does not yet change the locking or threading semantics.

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - manual tethering of WiFi and USB start normally
Bug: 32163131
Bug: 36216864
Bug: 62343300

Merged-In: I8ed82272183022a0469011a1f993704ecf771e3f
Merged-In: Ic1bcb3ca011bdc886086f34be18409eb5b12f521
Merged-In: I44a57660d23e76a7c13368cb8f60eaeac5830a0a
Change-Id: I44a57660d23e76a7c13368cb8f60eaeac5830a0a
(cherry picked from commit 4dd9bb83e2779b309dcc7a7db389b16fa3cb05be)

6 years agoChange PIP notification icon
Shubang [Thu, 22 Jun 2017 02:15:26 +0000 (19:15 -0700)]
Change PIP notification icon

Bug: 62823941
Test: mmm
Change-Id: Ibb5ad0d77a006e115fc7f163381d0547979e1867

6 years agoMerge "Clarify startScan API on how to get results" into oc-dev
TreeHugger Robot [Thu, 22 Jun 2017 01:14:12 +0000 (01:14 +0000)]
Merge "Clarify startScan API on how to get results" into oc-dev

6 years agoAutofill fixes for secondary users:
Felipe Leme [Thu, 22 Jun 2017 00:33:41 +0000 (17:33 -0700)]
Autofill fixes for secondary users:

- Display the SaveUI on all users.
- Dismiss the UI when switching users.
- Fix security check on disableOwnedAutofillServicesLocked()

Test: manual verification
Change-Id: I4e9167314f1feeda618db6c57735cc31d84486c1
Fixes: 62828906