OSDN Git Service

android-x86/frameworks-base.git
5 years agoBlock face auth when lock icon is pressed
Lucas Dupin [Tue, 14 May 2019 23:11:08 +0000 (16:11 -0700)]
Block face auth when lock icon is pressed

It's necessary to lock the current user, until the next screen power
cycle, to avoid unlocking the device accidentally.

Fixes: 132129109
Test: atest KeyguardIndicationControllerTest
Test: Unlock with biometrics, long press lock icon, swipe up
Test: Unlock with biometrics, swipe up
Change-Id: I23258a79531c21d0e63bd0a91db59d8950526197

5 years agoMerge "Fix several accessibility issues with BiometricPrompt" into qt-dev
Kevin Chyn [Tue, 14 May 2019 23:21:08 +0000 (23:21 +0000)]
Merge "Fix several accessibility issues with BiometricPrompt" into qt-dev

5 years agoMerge "Adding subscription group owner." into qt-dev
Xiangyu/Malcolm Chen [Tue, 14 May 2019 23:13:19 +0000 (23:13 +0000)]
Merge "Adding subscription group owner." into qt-dev

5 years agoMerge "Revert "Remove lousy synchronization"" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 22:49:27 +0000 (22:49 +0000)]
Merge "Revert "Remove lousy synchronization"" into qt-dev

5 years agoMerge "Check for lock icon nullability" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 22:38:26 +0000 (22:38 +0000)]
Merge "Check for lock icon nullability" into qt-dev

5 years agoMerge "Retain Activity Recognition permission state across device update" into qt-dev
Zimuzo Ezeozue [Tue, 14 May 2019 22:09:44 +0000 (22:09 +0000)]
Merge "Retain Activity Recognition permission state across device update" into qt-dev

5 years agoMerge "Fixed issue where GradientDrawable orientation was not consumed properly"...
TreeHugger Robot [Tue, 14 May 2019 21:57:07 +0000 (21:57 +0000)]
Merge "Fixed issue where GradientDrawable orientation was not consumed properly" into qt-dev

5 years agoMerge "Update API docs for TelecomManager#endCall." into qt-dev
Tyler Gunn [Tue, 14 May 2019 21:39:27 +0000 (21:39 +0000)]
Merge "Update API docs for TelecomManager#endCall." into qt-dev

5 years agoFixed issue where GradientDrawable orientation was not
Nader Jawad [Fri, 10 May 2019 21:06:56 +0000 (14:06 -0700)]
Fixed issue where GradientDrawable orientation was not
consumed properly

Moved methods to resolve the current gradient orientation
from GradientDrawable to GradientState. Fixed issue where
orientation parameter was not consumed properly in the
GradientDrawable constructor causing the angle and orientation
parameters to be out of sync.

Bug: 132420435
Test: Added test to CTS to verify GradientDrawable constructor behavior
Change-Id: I639d1ab4b8791810ea72c3f85878a8c7d9093661

5 years agoMerge "Remove workaround in VulkanSurface for missing vendor flag." into qt-dev
Greg Daniel [Tue, 14 May 2019 21:32:29 +0000 (21:32 +0000)]
Merge "Remove workaround in VulkanSurface for missing vendor flag." into qt-dev

5 years agoMerge "Change use of default sub to default data sub in GnssLocationProvider" into...
Anil Admal [Tue, 14 May 2019 21:18:33 +0000 (21:18 +0000)]
Merge "Change use of default sub to default data sub in GnssLocationProvider" into qt-dev

5 years agoMerge "Fixed incorrect metered/unmetered APN in AP-assisted mode" into qt-dev
Jack Yu [Tue, 14 May 2019 21:00:15 +0000 (21:00 +0000)]
Merge "Fixed incorrect metered/unmetered APN in AP-assisted mode" into qt-dev

5 years agoRevert "Remove lousy synchronization"
Lucas Dupin [Tue, 14 May 2019 20:59:17 +0000 (20:59 +0000)]
Revert "Remove lousy synchronization"

This reverts commit a3420c7f707b07e33bdb9f5aba65f3b8f9d72911.

Reason for revert: causes text density inflation issue
Bug: 131914931

Change-Id: Ic63ba977dba9df6e327b18e51661d4eea6105d53

5 years agoMerge "Must synchronize for ...Locked() code paths" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 20:40:24 +0000 (20:40 +0000)]
Merge "Must synchronize for ...Locked() code paths" into qt-dev

5 years agoMerge "Fixed NPE on VoiceInteractor.destroy()" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 20:27:44 +0000 (20:27 +0000)]
Merge "Fixed NPE on VoiceInteractor.destroy()" into qt-dev

5 years agoMerge "Missing thumbnails should throw." into qt-dev
Jeff Sharkey [Tue, 14 May 2019 19:30:48 +0000 (19:30 +0000)]
Merge "Missing thumbnails should throw." into qt-dev

5 years agoFix several accessibility issues with BiometricPrompt
Kevin Chyn [Tue, 14 May 2019 19:19:07 +0000 (12:19 -0700)]
Fix several accessibility issues with BiometricPrompt

1) Ensure spaces can be tapped/double-tapped with talkback enabled
2) Do not explicitly set focus
3) Give empty spaces content description for talkback

Fixes: 132376836
Fixes: 132378618

Test: Enabled talkback, the above are fixed
Change-Id: Ic923ba8aed4922e852a8b82b6120644ca627d651

5 years agoCheck for lock icon nullability
Lucas Dupin [Tue, 14 May 2019 19:13:26 +0000 (12:13 -0700)]
Check for lock icon nullability

Test: make
Fixes: 132698969
Change-Id: Ib1db9e3c5706ad46f32fe0ccabb832b86c122859

5 years agoMerge "Process start optimization" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 18:22:46 +0000 (18:22 +0000)]
Merge "Process start optimization" into qt-dev

5 years agoMerge "Adding buffer time for periodic jobs run near the end of their windows." into...
TreeHugger Robot [Tue, 14 May 2019 18:18:36 +0000 (18:18 +0000)]
Merge "Adding buffer time for periodic jobs run near the end of their windows." into qt-dev

5 years agoUpdate API docs for TelecomManager#endCall.
Tyler Gunn [Tue, 14 May 2019 18:08:06 +0000 (11:08 -0700)]
Update API docs for TelecomManager#endCall.

Make it clear that ending an emergency call is not possible with this
method.

Test: Compile; this is a docs change.
Bug: 132438333
Change-Id: I736b90e31723ee2055cedf16142c4d0f494bf49b

5 years agoMerge "Upgrade AOSP Dialer to Android Q, add necessary permissions." into qt-dev
Evan Wu [Tue, 14 May 2019 18:01:09 +0000 (18:01 +0000)]
Merge "Upgrade AOSP Dialer to Android Q, add necessary permissions." into qt-dev

5 years agoMerge "Report request failure when binder died in remote service." into qt-dev
TreeHugger Robot [Tue, 14 May 2019 17:56:10 +0000 (17:56 +0000)]
Merge "Report request failure when binder died in remote service." into qt-dev

5 years agoMissing thumbnails should throw.
Jeff Sharkey [Tue, 14 May 2019 17:25:47 +0000 (11:25 -0600)]
Missing thumbnails should throw.

Bug: 132248209
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Iac17eaa17c25041de13069f1e73a70006051ab8b

5 years agoFixed NPE on VoiceInteractor.destroy()
Felipe Leme [Tue, 14 May 2019 17:14:02 +0000 (10:14 -0700)]
Fixed NPE on VoiceInteractor.destroy()

Fixes: 131411751
Test: atest CtsVoiceInteractionTestCases # ran a few times on different devices, got no failures

Change-Id: I484db53772bf503f091f30f67ae92c8ae52d4105

5 years agoMerge "Fix sharing into a locked work profile" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 16:32:57 +0000 (16:32 +0000)]
Merge "Fix sharing into a locked work profile" into qt-dev

5 years agoMerge "Remove lousy synchronization" into qt-dev
Lucas Dupin [Tue, 14 May 2019 16:29:25 +0000 (16:29 +0000)]
Merge "Remove lousy synchronization" into qt-dev

5 years agoMerge "Using ParceledListSlice to send large lists over Binder." into qt-dev
TreeHugger Robot [Tue, 14 May 2019 16:25:28 +0000 (16:25 +0000)]
Merge "Using ParceledListSlice to send large lists over Binder." into qt-dev

5 years agoMerge "Fix incorrect bounds of split-screen when rotation changes" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 16:23:18 +0000 (16:23 +0000)]
Merge "Fix incorrect bounds of split-screen when rotation changes" into qt-dev

5 years agoMerge "Allow files to be created under download dirs from MediaStore." into qt-dev
Sudheer Shanka [Tue, 14 May 2019 16:05:26 +0000 (16:05 +0000)]
Merge "Allow files to be created under download dirs from MediaStore." into qt-dev

5 years agoMerge "Make the flyout dismissable with a gesture." into qt-dev
Josh Tsuji [Tue, 14 May 2019 15:34:38 +0000 (15:34 +0000)]
Merge "Make the flyout dismissable with a gesture." into qt-dev

5 years agoMerge "Allow pausing Watchdog on the current thread" into qt-dev
Zimuzo Ezeozue [Tue, 14 May 2019 14:55:06 +0000 (14:55 +0000)]
Merge "Allow pausing Watchdog on the current thread" into qt-dev

5 years agoRemove GlobalActionsDialog values from FeatureFlagUtils.
Aran Ink [Fri, 10 May 2019 19:27:36 +0000 (15:27 -0400)]
Remove GlobalActionsDialog values from FeatureFlagUtils.

Merged-in: I5ca5e760d9a987c75a93c43783ad2b38728d48fc
Test: Automated tests pass. Manual testing shows GAD still works.
Fixes: 123397865
Fixes: 127644235

Change-Id: I0a8e285c96eea566ed1b19fa05e4143324f5937b

5 years agoMerge "Use embedded native libs for NetworkStack.apk." into qt-dev
TreeHugger Robot [Tue, 14 May 2019 14:04:37 +0000 (14:04 +0000)]
Merge "Use embedded native libs for NetworkStack.apk." into qt-dev

5 years agoMerge "Fix testKeyValue_Concurrency flakyness" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 13:59:42 +0000 (13:59 +0000)]
Merge "Fix testKeyValue_Concurrency flakyness" into qt-dev

5 years agoMerge "[OWE] Support OWE in transition mode" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 13:57:05 +0000 (13:57 +0000)]
Merge "[OWE] Support OWE in transition mode" into qt-dev

5 years agoRemove workaround in VulkanSurface for missing vendor flag.
Greg Daniel [Tue, 14 May 2019 13:25:41 +0000 (09:25 -0400)]
Remove workaround in VulkanSurface for missing vendor flag.

Test: manual building and testing
Bug: b/128923272
Change-Id: I6be67fddbbf06d4eb7efe316f7e6fd12157e2852

5 years agoMerge "Add an API for launching intent to view permission usage." into qt-dev
TreeHugger Robot [Tue, 14 May 2019 13:24:56 +0000 (13:24 +0000)]
Merge "Add an API for launching intent to view permission usage." into qt-dev

5 years agoFix testKeyValue_Concurrency flakyness
Adrian Roos [Mon, 13 May 2019 16:35:21 +0000 (09:35 -0700)]
Fix testKeyValue_Concurrency flakyness

Bug: 131132243
Test: atest 'LockSettingsStorageTests#testKeyValue_Concurrency'
Change-Id: If14b6fe63ea57837ac3d594c5219b4eb5839002a

5 years agoRetain Activity Recognition permission state across device update
Zimuzo [Mon, 13 May 2019 15:32:57 +0000 (16:32 +0100)]
Retain Activity Recognition permission state across device update

Bug: 131867032
Test: Manual testing with apks that request new Android and old gmscore
permission targetting P and Q. After system upgrade from P to Q,
both apps always get Android AR permission auto-granted. Meanwhile, new
installs of the same apps on Q don't get the Android AR permission
auto-granted.

Change-Id: I68493a42650407056ef6b9fa40e24aea94a72f88

5 years agoMerge "Have InProcessNetworkStack override NetworkStack" into qt-dev
Remi NGUYEN VAN [Tue, 14 May 2019 09:47:39 +0000 (09:47 +0000)]
Merge "Have InProcessNetworkStack override NetworkStack" into qt-dev

5 years agoHave InProcessNetworkStack override NetworkStack
Remi NGUYEN VAN [Tue, 14 May 2019 05:08:56 +0000 (14:08 +0900)]
Have InProcessNetworkStack override NetworkStack

This avoids shipping both APKs on Go devices, as would be previously
done with the default Go configuration that still included NetworkStack.

Test: Flashed, booted walleye with svelte config. Verified that
      NetworkStack is not on the device and InProcessNetworkStack is
      used. WiFi working.
Bug: 132666298
Change-Id: If4a7a003128a555e512c88469653c3fb2ad864d5

5 years agoFixed incorrect metered/unmetered APN in AP-assisted mode
Jack Yu [Mon, 13 May 2019 23:54:04 +0000 (16:54 -0700)]
Fixed incorrect metered/unmetered APN in AP-assisted mode

From now all data traffic through IWLAN will be unmetered. Only
data through cellular will be checked for metered/unmetered.

Test: Unit tests
Bug: 132433959
Change-Id: Id1498fb8627dd7221a5ab7cde72929e6ee25b425

5 years agoMerge "Process insets correctly" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 05:01:26 +0000 (05:01 +0000)]
Merge "Process insets correctly" into qt-dev

5 years agoMerge "Smaller notification icons on AOD" into qt-dev
Lucas Dupin [Tue, 14 May 2019 03:41:07 +0000 (03:41 +0000)]
Merge "Smaller notification icons on AOD" into qt-dev

5 years agoMerge "Prevent extra work on the same timestamp" into qt-dev
Alex Salo [Tue, 14 May 2019 01:54:01 +0000 (01:54 +0000)]
Merge "Prevent extra work on the same timestamp" into qt-dev

5 years agoMerge "Reset notification list upon opening the drawer." into qt-dev
TreeHugger Robot [Tue, 14 May 2019 01:32:28 +0000 (01:32 +0000)]
Merge "Reset notification list upon opening the drawer." into qt-dev

5 years agoMerge "Adding tracepoints for tracking lock icon state" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 01:29:27 +0000 (01:29 +0000)]
Merge "Adding tracepoints for tracking lock icon state" into qt-dev

5 years agoMerge "checkCarrierPrivilegesForPackage by subId rather than default" into qt-dev
Chen Xu [Tue, 14 May 2019 01:06:05 +0000 (01:06 +0000)]
Merge "checkCarrierPrivilegesForPackage by subId rather than default" into qt-dev

5 years agoMerge "Disable rotation suggestion when global actions panel is visible" into qt-dev
Steve Elliott [Tue, 14 May 2019 01:02:44 +0000 (01:02 +0000)]
Merge "Disable rotation suggestion when global actions panel is visible" into qt-dev

5 years agoRemove lousy synchronization
Lucas Dupin [Tue, 14 May 2019 00:54:25 +0000 (17:54 -0700)]
Remove lousy synchronization

An @AnyThread method was being used for syncrhonizing user switching
states without having a synchronization block. We were also relying
on callbacks that might be unordered, especially during user switching.

Fixes: 131914931
Test: switch between users that have different dark mode settings
Change-Id: Ie85c2a2a087edcd35c825caf8193aeabb990ea6c

5 years agoProcess insets correctly
Lucas Dupin [Mon, 13 May 2019 23:33:32 +0000 (16:33 -0700)]
Process insets correctly

Bottom window insets were being processed but keyboard was being
ignored. Paddings should also only be applied on the correct
lifecycle event.

Fixes: 132615062
Test: swipe up to unlock with: pin/pattern/password
Test: swipe up to unlock with: 2 button navbar, gestural navbar
Change-Id: Ib573e20d9955e644f60333ad3d8e0f2d7e73fe54

5 years agoMerge "Add a parameter to filter out system apps" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 00:07:28 +0000 (00:07 +0000)]
Merge "Add a parameter to filter out system apps" into qt-dev

5 years agoMerge "Media: Align cast device names properly in RTL languages." into qt-dev
Kyunglyul Hyun [Mon, 13 May 2019 23:51:33 +0000 (23:51 +0000)]
Merge "Media: Align cast device names properly in RTL languages." into qt-dev

5 years agoMerge "iconloader dependency in SystemUI-core" into qt-dev
Hyunyoung Song [Mon, 13 May 2019 23:40:05 +0000 (23:40 +0000)]
Merge "iconloader dependency in SystemUI-core" into qt-dev

5 years agoiconloader dependency in SystemUI-core
Hyunyoung Song [Fri, 1 Mar 2019 21:32:28 +0000 (13:32 -0800)]
iconloader dependency in SystemUI-core

Bug: 129158983
Change-Id: I678fbf734d158eadff365262225e6e8802d7ef4e
Test: m -j10 SystemUI-core -> Success locally

5 years agocheckCarrierPrivilegesForPackage by subId rather than default
chen xu [Fri, 10 May 2019 02:15:32 +0000 (19:15 -0700)]
checkCarrierPrivilegesForPackage by subId rather than default

1. checkCarrierPrivilegesForPackages by subId
2. getPackagesWithCarrierPrivileges by subId
3. new hidden API getPackagesWithCarrierPrivilegesForAllPhones which
returns packages for all subs.

Bug: 132078279
Test: Manual
Change-Id: Ic666218f0c290d1b428530982b689af110f74c69

5 years agoMerge "CTS: StatsLog.writeRaw()" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 23:30:24 +0000 (23:30 +0000)]
Merge "CTS: StatsLog.writeRaw()" into qt-dev

5 years agoReset notification list upon opening the drawer.
Adora Zhang [Fri, 12 Apr 2019 00:47:40 +0000 (17:47 -0700)]
Reset notification list upon opening the drawer.

Bug: 123433756
Test: manual
Change-Id: I9a3bc6384854930904f13cef6962b97d9209b2c8
(cherry picked from commit 4025195c1d6e553b75bc0385d488cf8a3cf2c0be)

5 years agoMerge "Revert "Notify OverviewProxyService of scrim colors"" into qt-dev
Hyunyoung Song [Mon, 13 May 2019 22:53:06 +0000 (22:53 +0000)]
Merge "Revert "Notify OverviewProxyService of scrim colors"" into qt-dev

5 years agoMerge "Ignore motion event of invalid pointer" into qt-dev
Lucas Dupin [Mon, 13 May 2019 22:50:50 +0000 (22:50 +0000)]
Merge "Ignore motion event of invalid pointer" into qt-dev

5 years agoMake the flyout dismissable with a gesture.
Joshua Tsuji [Thu, 2 May 2019 17:13:16 +0000 (13:13 -0400)]
Make the flyout dismissable with a gesture.

This adds the flyout-to-dot transition, and encapulates the flyout logic in a custom view. This also adds support for the 'new' dot changing sides (previously unimplemented) and animates it changing sides when the stack changes sides.

Test: atest SystemUITests
Fixes: 129768381
Bugs: 129768381
Change-Id: I90697b437cf14e5c5a211c87ed2c131a12e697e7

5 years agoPrevent extra work on the same timestamp
Alex Salo [Wed, 1 May 2019 21:18:46 +0000 (14:18 -0700)]
Prevent extra work on the same timestamp

AttentionDetector gets called a lot, and there is no reason to do
any work, unless it is called with a new timestamp.

Bug: 111939367
Test: verified by doing FSOP + atest AttentionDetectorTest
Change-Id: If427bd3358e0ea35279fb5d235c2fd137df036ac

5 years ago[OWE] Support OWE in transition mode
Hai Shalom [Mon, 13 May 2019 22:31:41 +0000 (15:31 -0700)]
[OWE] Support OWE in transition mode

Support OWE in transition mode for devices with OWE support
and devices without OWE support. Scan results will return a
new type of network for OWE in transition networks on devices
that support OWE, and Open for devices that don't support OWE.
Handle the case where Open network is manually added to a device
that supports OWE.

Bug: 132139642
Test: Device with OWE: Connect to Open, OWE-Transition, OWE networks
Test: Device without OWE: Connect to Open, OWE-Transition
Test: Manually create Open network, connect to OWE-Transition
Change-Id: I29e69eaae2672562420ee7c6393bf2cc4d7f1b91

5 years agoMerge "Revert "MemoryIntArray: track the owned file descriptor in a PFD."" into qt-dev
Eugene Susla [Mon, 13 May 2019 22:21:48 +0000 (22:21 +0000)]
Merge "Revert "MemoryIntArray: track the owned file descriptor in a PFD."" into qt-dev

5 years agoMerge "Revert "MemoryIntArray: don't double close."" into qt-dev
Eugene Susla [Mon, 13 May 2019 22:21:48 +0000 (22:21 +0000)]
Merge "Revert "MemoryIntArray: don't double close."" into qt-dev

5 years agoReport request failure when binder died in remote service.
Hai Zhang [Mon, 13 May 2019 20:23:47 +0000 (13:23 -0700)]
Report request failure when binder died in remote service.

Or the caller could be waiting too long for a request that has already
failed due to remote process crash.

Bug: 132341999
Bug: 126266412
Test: atest CtsAutoFillServiceTestCases CtsContentCaptureServiceTestCases
Change-Id: I014c8657ce247aed47335afb3144d88a0144e422

5 years agoMust synchronize for ...Locked() code paths
Christopher Tate [Mon, 13 May 2019 21:26:19 +0000 (14:26 -0700)]
Must synchronize for ...Locked() code paths

Fixes: 130124446
Test: manual (reboot instrumentation)
Change-Id: I8651fe876f23bc0ea7e3aab57f5a61727985815e

5 years agoSmaller notification icons on AOD
Lucas Dupin [Mon, 13 May 2019 21:22:30 +0000 (14:22 -0700)]
Smaller notification icons on AOD

Test: visual
Test: breakpoint
Fixes: 132273091
Change-Id: Idb4114dc8baeeaf03c55520d681522c7fa084867

5 years agoMerge "Hide lock icon while WAKE_AND_UNLOCK is happening." into qt-dev
Lucas Dupin [Mon, 13 May 2019 21:15:04 +0000 (21:15 +0000)]
Merge "Hide lock icon while WAKE_AND_UNLOCK is happening." into qt-dev

5 years agoDisable rotation suggestion when global actions panel is visible
Steve Elliott [Mon, 13 May 2019 21:14:15 +0000 (17:14 -0400)]
Disable rotation suggestion when global actions panel is visible

Building upon the existing logic which locks the rotation to portrait,
this change suppreses the rotation suggestion button which appears in
the nav-bar.

Fixes: 132076875
Test: manual
Change-Id: I7841bb5fe59ad09998117c93269e019e95494989

5 years agoChange use of default sub to default data sub in GnssLocationProvider
Anil Admal [Thu, 9 May 2019 22:05:04 +0000 (15:05 -0700)]
Change use of default sub to default data sub in GnssLocationProvider

An earlier CL ag/5462517 (as part of fix for b/118770440) updated
GnssLocationProvider to load config from default data subscription.

This CL addresses comment #11 in the b/119663753. Replaced couple of
places where default sub is used instead of default data sub as first
preference.

Bug: 119663753
Test: Existing tests pass on a single SIM device
Change-Id: Ic47b0743c00c51a49e1dd6e1cfb5d396b2289d0f

5 years agoIgnore motion event of invalid pointer
Lucas Dupin [Mon, 13 May 2019 20:49:17 +0000 (13:49 -0700)]
Ignore motion event of invalid pointer

Test: swipe up with multiple fingers
Fixes: 132635371
Change-Id: I27fbb193affb1f073c3feb294ba51ad6e74ac4f1

5 years agoMerge "Fix NPE in SyncManager when updating accounts." into qt-dev
TreeHugger Robot [Mon, 13 May 2019 20:39:15 +0000 (20:39 +0000)]
Merge "Fix NPE in SyncManager when updating accounts." into qt-dev

5 years agoMerge "Clarify ContentResolver docs." into qt-dev
TreeHugger Robot [Mon, 13 May 2019 20:38:54 +0000 (20:38 +0000)]
Merge "Clarify ContentResolver docs." into qt-dev

5 years agoMerge "Call ScopedLocalFrame in JNI methods" into qt-dev
Chavi Weingarten [Mon, 13 May 2019 19:43:59 +0000 (19:43 +0000)]
Merge "Call ScopedLocalFrame in JNI methods" into qt-dev

5 years agoFix sharing into a locked work profile
Eran Messeri [Wed, 8 May 2019 14:35:53 +0000 (15:35 +0100)]
Fix sharing into a locked work profile

Change ActivityStartInterceptor.interceptWithConfirmCredentialsIfNeeded
to create the intent for the original sender under the original caller
uid, not the binder calling uid (which may be the system).

This fixes the issue which happens when:
* There's a work profile on the device.
* The work profile has a separate challenge.
* The work profile is locked using that challenge.
* The user shares a resource into the work profile.

Under those circumstances, the user is asked to unlock the work profile,
but as a part of that process the grant to the resource is lost, so that
when the user chooses the app in the work profile, that app no longer
has a grant to the resource.

When the activity is started from the right uid then the grant is
accessible.

Bug: 123017711
Test: Manual, set up a work profile with TestDPC, ensure it has a
separate lock challenge and share a picture file from the personal
profile to the (locked) work profile.

Change-Id: I7a55e4bdc4709caec2c5ef4466b720ca786ebfe3
Merged-In: I7a55e4bdc4709caec2c5ef4466b720ca786ebfe3
(cherry picked from commit c6be50986332a2af32a416b3638c9ca5c17b137b)

5 years agoMerge "Fix typo." into qt-dev
TreeHugger Robot [Mon, 13 May 2019 19:31:34 +0000 (19:31 +0000)]
Merge "Fix typo." into qt-dev

5 years agoAllow files to be created under download dirs from MediaStore.
Sudheer Shanka [Fri, 10 May 2019 23:21:47 +0000 (16:21 -0700)]
Allow files to be created under download dirs from MediaStore.

Also, allow files to be renamed if they are not in pending state and
trigger a media scan when a new file is created.

Bug: 127844893
Bug: 127802924
Test: manual
Change-Id: I162f1827dacc422bfa33c54904e92a4aecb7747d

5 years agoCTS: StatsLog.writeRaw()
Tej Singh [Fri, 3 May 2019 20:42:23 +0000 (13:42 -0700)]
CTS: StatsLog.writeRaw()

CTS test for StatsLog.writeRaw(). Tests writeRaw using the app
breadcrumb atom to get some cts coverage.

Test: cts-tradefed run cts-dev --module CtsStatsdHostTestCases
Bug: 130238616
Change-Id: I44d4a0e618617002c9ff55cfe86fd1cbf29116c5

5 years agoMerge "Update SignalDrawable to show X for empty state" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 19:05:34 +0000 (19:05 +0000)]
Merge "Update SignalDrawable to show X for empty state" into qt-dev

5 years agoHide lock icon while WAKE_AND_UNLOCK is happening.
Lucas Dupin [Fri, 10 May 2019 23:23:04 +0000 (16:23 -0700)]
Hide lock icon while WAKE_AND_UNLOCK is happening.

The lock icon is on top of the front scrim, otherwise it wouldn't be visible on a
scrimmed bouncer (activities occluding the keyguard.)
Because of this, the black layer the covers most of the lock screen won't cover the
icon animation. We need to ensure that the icon is invisible while the biometric
unlock animation is running, and only unblock it after the keyguard has finished
fading away.

Test: manually unlock with fingerprint from AOD and LS
Test: press power while unlocking
Fixes: 132198859
Change-Id: Ied501586abe05dc333e4d76e4c045f32070595a7

5 years agoMerge "Clear all notification, message mute states, and unread states when the car...
TreeHugger Robot [Mon, 13 May 2019 18:31:42 +0000 (18:31 +0000)]
Merge "Clear all notification, message mute states, and unread states when the car recovers from the suspension state." into qt-dev

5 years agoMerge "Change bubbles to be off by default" into qt-dev
Mady Mellor [Mon, 13 May 2019 18:18:31 +0000 (18:18 +0000)]
Merge "Change bubbles to be off by default" into qt-dev

5 years agoMerge "[WPA3] Fix typo in AP key comparison method" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 18:10:00 +0000 (18:10 +0000)]
Merge "[WPA3] Fix typo in AP key comparison method" into qt-dev

5 years agoRevert "Notify OverviewProxyService of scrim colors"
Hyunyoung Song [Mon, 13 May 2019 16:53:26 +0000 (16:53 +0000)]
Revert "Notify OverviewProxyService of scrim colors"

Bug: 130451254
Test: manual

This reverts commit d9b9847ad63ae0a97552de757dee8102f0d8cc0c.

Reason for revert: found a better way to extract scrim colors without going through OverviewProxy

Change-Id: Iac97fee4d9b15757f7211889f6c370757c0870e3

5 years agoClear all notification, message mute states, and unread states when the car
Jonathan Koo [Fri, 10 May 2019 16:24:08 +0000 (09:24 -0700)]
Clear all notification, message mute states, and unread states when the car
recovers from the suspension state.

bug: 130183435
Test: Manual.
Change-Id: I5ba95d5f22c1ee18c9f2c236f0f078aedd8296b8

5 years agoChange bubbles to be off by default
Mady Mellor [Mon, 6 May 2019 15:50:06 +0000 (08:50 -0700)]
Change bubbles to be off by default

Test: in the other CL
Bug: 131845765
Change-Id: I23e48ace13dbc628f45b41adcf3bffdd5cfdccb6

5 years agoMerge "WM: Fix seamless rotation with gesture navigation" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 15:45:51 +0000 (15:45 +0000)]
Merge "WM: Fix seamless rotation with gesture navigation" into qt-dev

5 years ago[WPA3] Fix typo in AP key comparison method
Hai Shalom [Mon, 13 May 2019 15:35:17 +0000 (08:35 -0700)]
[WPA3] Fix typo in AP key comparison method

Mistakenly used mKey instead of compareTo String variable
to extract compareTo substring.

Bug: 132610950
Test: Connect to various WPA2/WPA3 APs
Change-Id: Ic10f5ed969deace6f1d59811512a2f788256acb6

5 years agoUse embedded native libs for NetworkStack.apk.
Richard Uhler [Mon, 13 May 2019 15:05:51 +0000 (16:05 +0100)]
Use embedded native libs for NetworkStack.apk.

So that the /system version of NetworkStack.apk can be re-installed on
/data without causing problems. This is useful for testing and necessary
for supporting rollback to the system version of NetworkStack.apk.

Bug: 131703417
Bug: 132195177
Test: Confirm NetworkStack.apk now includes .so files.
Test: adb install --staged NetworkStack.apk
      adb reboot
      Device reboots without problems.

Change-Id: I7c9a1702a2c18e0333b5e409f04b7658fe685f97

5 years agoMerge "Add config value for a11y color mode" into qt-dev
Christine Franks [Mon, 13 May 2019 14:47:21 +0000 (14:47 +0000)]
Merge "Add config value for a11y color mode" into qt-dev

5 years agoMerge "Send message to add/remove NAT-T keepalive packet filter." into qt-dev
Aaron Huang [Mon, 13 May 2019 14:37:31 +0000 (14:37 +0000)]
Merge "Send message to add/remove NAT-T keepalive packet filter." into qt-dev

5 years agoMerge changes from topic "cleanupkeepalive" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 14:32:58 +0000 (14:32 +0000)]
Merge changes from topic "cleanupkeepalive" into qt-dev

* changes:
  Fix concurrent modification exception in KeepaliveTracker
  Clean up the keepalive slots when network disconnect
  Release keepalive slot after stopped

5 years agoWM: Fix seamless rotation with gesture navigation
Adrian Roos [Tue, 16 Apr 2019 13:39:23 +0000 (15:39 +0200)]
WM: Fix seamless rotation with gesture navigation

With gesture navigation, the navigation bar will generally move when rotating the
screen.

Fixes: 130052977
Test: Enable gestural navigation, open camera, enable auto-rotate, verify camera rotates seamlessly
Change-Id: I2d73fcadf9338a08ac15ba04842dc8b1221d74b0

5 years agoMerge "Add unittests for BugreportManager API" into qt-dev
Nandana Dutt [Mon, 13 May 2019 11:27:43 +0000 (11:27 +0000)]
Merge "Add unittests for BugreportManager API" into qt-dev

5 years agoSend message to add/remove NAT-T keepalive packet filter.
Aaron Huang [Thu, 2 May 2019 13:14:20 +0000 (21:14 +0800)]
Send message to add/remove NAT-T keepalive packet filter.

Remove definition of TYPE_NATT and TYPE_TCP since the type
can be identified by checking message.obj is an instance of
NattKeepalivePacketData or TcpKeepalivePacketData.
It's more simple and won't have dependency on KeepaliveInfo.

Bug: 33530442
Test: atest FrameworksNetTests
      atest NetworkStackTests

(Clean cherry-pick of aosp/955419)

Change-Id: Ic97ffe9ff5781778efd264460809f5059f0f4230
Merged-In: Ic97ffe9ff5781778efd264460809f5059f0f4230

5 years agoFix concurrent modification exception in KeepaliveTracker
junyulai [Mon, 13 May 2019 06:19:00 +0000 (14:19 +0800)]
Fix concurrent modification exception in KeepaliveTracker

In aosp/951200, the clean up function delete the item in the
hash map that holds the record while iterating it, where the
list used to iterate the records is backed by the hash map,
so changes to the map are reflected in the list and caused
the concurrent modification exception.

Bug: 132341736
Test: 1. atest com.android.server.ConnectivityServiceTest \
         #testNattSocketKeepalives --generate-new-metrics 300
      2. atest FrameworksNetTests --generate-new-metrics 10

(Clean cherry-pick of aosp/959599)

Change-Id: I9cdfe6f6d11c5400c856cc30a33ff4a44ba9d811
Merged-In: I0481a469ee23231e5f0ab738a06b5e09f6cdb680

5 years agoClean up the keepalive slots when network disconnect
Junyu Lai [Thu, 9 May 2019 20:24:32 +0000 (13:24 -0700)]
Clean up the keepalive slots when network disconnect

In general, keepalive slots are released after result of
stopping has returned. However, for network disconnect case,
the service side cannot communicate with network agent since
the async channel is broken.

Clean up keepalive slots right after stop in this case.

Bug: 132341736
Test: 1. atest com.android.server.ConnectivityServiceTest \
         #testNattSocketKeepalives --generate-new-metrics 100
      2. atest FrameworksNetTests --generate-new-metrics 10

Change-Id: Id3e4e159713c0ed7e03f45169e87b73ae6408e4f
(cherry picked from commit a5f6bd16062fba89bcf900aca93aa3514d93f662)
Merged-In: Id3e4e159713c0ed7e03f45169e87b73ae6408e4f
Merged-In: Icb5a1b5bb10617aa5a7b35db6cf48db3dc53b7fd

5 years agoRelease keepalive slot after stopped
Junyu Lai [Tue, 16 Apr 2019 06:00:02 +0000 (23:00 -0700)]
Release keepalive slot after stopped

Currntly, keepalive slot is released when stop() is called. Next
starting keepalive can use the same slot number while previous
keepalive is still stopping. When the previous keepalive is
stopped, the incoming as will be processed by the new keepalive.

This change release keepalive slot after the result of stopping
has returned. Thus, newly created keepalive cannot allocate the
same slot number while lower layer is still processing stop event.

This change also disable flaky assertions that are caused by
test port has been occupied by other process.

Bug: 129512753
Test: 1. atest com.android.server.ConnectivityServiceTest \
         #testNattSocketKeepalives --generate-new-metrics 100
      2. atest FrameworksNetTests --generate-new-metrics 10
      3. simulate the fail case manually.

Change-Id: I790f6bbc5efc3f088034ac45ec379da5f781d0ca
Merged-In: I1991627545519ee5cb408a3df3a006f710f4af7b
(cherry picked from commit 3523a3d02a1f88a3990ab9cc4948c705ecc713c8)