474172 Commits

Author SHA1 Message Date
Yvonne Jiang
6d34642533 Fix secondary lock screen implementation such that DevicePolicyKeyguardService calls are made on the main (UI) thread.
For implementations of DevicePolicyKeyguardService to provide a SurfacePackage via SurfaceControlViewHost, they must be running on the UI thread.
Additionally, fix dismissal logic to bypass re-checking the secondary lockscreen, and add defensive null checks.

Bug: 136085151
Bug: 151365616
Test: atest AdminSecondaryLockScreenControllerTest
Test: atest KeyguardUpdateMonitorTest
Change-Id: Ibcd7090f50831cddbf952914adf020015750afd8
2020-04-08 05:31:20 -07:00
shafik
96652137ad Whitelist MediaProvider for statsd metrics
Now that MediaProvider is a mainline module, we need to whitelist it in
statsd in order to enable pushing metrics from it.

Test: ./out/host/linux-x86/bin/statsd_testdrive -p \
      com.google.android.providers.media.module 233
Fix: 153160314
Bug: 149669087
Change-Id: I5237663de2b24d467283d2c2b60f7155fb5b5e53
2020-04-08 13:28:13 +01:00
shafik
4382584207 Improve MediaProvider WW atoms
Rename MediaProvider atoms to past tense verbs.

Slightly redefine the atoms for MediaProvider event metrics.
The changes are:
1. Remove timestamps from all atoms (because WW already attaches
timestamps to its events).
2. Log UIDs instead of package names.

Test: build
Bug: 149669087
Change-Id: I6bfb1da7e645f86d1b4a850f68614bc8fe105568
2020-04-08 13:26:46 +01:00
Tiger Huang
304db43153 Only use the IME target from IMMS to update the IME control target
DisplayContent.mInputMethodTarget is only used for deciding which window
IME should attach to.

Fix: 152698568
Fix: 153287963
Test: Steps in the bugs.
Change-Id: Ife6b700436ffa6ce80af9c6c276c0fcf3a4e057a
2020-04-08 19:29:19 +08:00
Sergey Nikolaienkov
bbb12decdf Log debug messages in PipMenuActivity
Log debug messages in PipMenuActivity and the DEBUG flag which controls
this.

Bug: 153517179
Test: manually
Change-Id: Ibdf2460412da7401c0885a4283f6912c6526b61a
2020-04-08 13:28:49 +02:00
Jorim Jaggi
9c50a64e91 Merge "Re-apply local client state when leash changes" into rvc-dev 2020-04-08 11:05:50 +00:00
Louis Chang
9d042a22f6 Merge "Revert "Fix IME insets animation applies again when restartInput called"" into rvc-dev 2020-04-08 10:55:16 +00:00
Junyu Lai
cc0c65dbb5 Merge "[SM09] Add helper class to monitor RAT type change per sub" into rvc-dev 2020-04-08 10:18:02 +00:00
Paul Hu
f571504457 Merge "Fix TetheringIntegrationTests failure" into rvc-dev 2020-04-08 09:56:14 +00:00
TreeHugger Robot
d8a5511b92 Merge "Set WifiAwareNetworkInfo into setTransportInfo()" into rvc-dev 2020-04-08 09:43:39 +00:00
Louis Chang
05090b8f34 Revert "Fix IME insets animation applies again when restartInput called"
This reverts commit 0e766c11b021064ee17de5a29b1297b62dd6b520.

Reason for revert: Breaking presubmit

Bug: 153516672
Change-Id: I894b5d5ecff97c124b5e2bf7c7be28f23ee10367
2020-04-08 09:36:20 +00:00
Qasid Ahmad Sadiq
d0129ce59b Use current user isntead of system user if no --user parameter is passed
This is relevant when running cts tests in instant mode.
Certain tests were failing in non-system users in instant mode, which is particularlly consquential to auto.
THis fix will be cherry-picked back to their repo
Test: CTSAccessibility*, in both instant/non-instant, and with both system and secondary users.
Bug:146218533

Change-Id: I89937bd552d372adc5d96c51b24d1a2bb4a034e3
2020-04-08 01:51:05 -07:00
junyulai
aca29a3e87 [SM09] Add helper class to monitor RAT type change per sub
In current design, Rat type change in NSS is only for default
subscription. This is only correct for single sim project.
However, it does not correct for multi-sim scenarios such as
CBRS or DSDS, given that all data usage will be attributed
to the Rat type of default sub.

Thus, add a helper class to monitor subscription change event,
and register/unregister dynamically for Rat type change for
every subscription.

Note that unit test of the helper class will be addressed
in follow-up patch.

Test: m -j
Bug: 146415925
Change-Id: I0055f6b55c209a073ce997fc7a144477f9db7069
Merged-In: I0055f6b55c209a073ce997fc7a144477f9db7069
(cherry picked from commit 306de26c138ec135846f2a74a952464cf00dce54)
2020-04-08 08:50:22 +00:00
Oli Lan
70e8f5d506 Merge "Delete expired CE snapshots of app data when user unlocks." into rvc-dev 2020-04-08 08:39:12 +00:00
TreeHugger Robot
0e26234de4 Merge "Apply wake up animation to wallpaper window" into rvc-dev 2020-04-08 08:28:42 +00:00
Automerger Merge Worker
5444ade84e Fix TetheringIntegrationTests failure
Bug: 150644681
Test: atest TetheringIntegrationTests
Change-Id: I5a537eca9b1aab3694a11a2dab147a31f289314c
Merged-In: I5a537eca9b1aab3694a11a2dab147a31f289314c
(cherry picked from commit f626b8a5388746d163600a5eccb60e22cb1071bf)
2020-04-08 08:17:20 +00:00
Jack Yu
8f19a55f50 Merge "Only setup data when config and sim is ready" into rvc-dev 2020-04-08 08:13:10 +00:00
lucaslin
190ce2106f Set WifiAwareNetworkInfo into setTransportInfo()
Bug: 139268426
Bug: 135998869
Bug: 138306002
Test: atest CtsNetTestCasesLatestSdk:NetworkCapabilitiesTest
Change-Id: Ibbe1cd126d6538003fbb1e5e85892bfb15a920e8
2020-04-08 08:11:10 +00:00
joshmccloskey
06a95017d4 Set pending client to null after timeout resumes
Bug: 148867568
Test: manual.
Change-Id: I6bd97ecb57ddc2a7e1ccdf9c84bb895f372b2358
(cherry picked from commit d04d6d51a06afe0d3c48030baccced551f4a81d7)
2020-04-08 08:06:39 +00:00
Lucas Lin
4406aac0cc Merge "Add more tests in NetworkCapabilitiesTest.java" into rvc-dev 2020-04-08 07:40:30 +00:00
lucaslin
fb4ee18acb Add more tests in NetworkCapabilitiesTest.java
Test deduceRestrictedCapability(), getAdministratorUids(),
setAdministratorUids(), getNetworkSpecifier(), getOwnerUid(),
setLinkDownstreamBandwidthKbps(), setLinkUpstreamBandwidthKbps(),
setSignalStrength() and Builder().

Bug: 139268426
Bug: 135998869
Bug: 138306002
Test: atest CtsNetTestCasesLatestSdk:android.net.NetworkCapabilitiesTest
Change-Id: I525941c47b71cd61ee872fd4d71b02a5d3767e21
Merged-In: I90c7a8c47710ea4ad8e8d2682c10440fd7f82270
2020-04-08 07:37:49 +00:00
wilsonshih
d0fc2ca51f Support addWindow as other user
Support addWindow with the other userId which can be different from Uid.

This can be used when client want to addView for secondary user.
Example:
1. Create context with createContextAsUser or similar method.
2. Get WindowManager with this context.
3. WindowManager#addView

Bug: 151414297
Test: atest WmTests WindowAddRemovePerfTest AddWindowAsUserTest
Change-Id: I13e58d76b1f056f3829bc984c2b61496c8f8d535
2020-04-08 15:15:01 +08:00
TreeHugger Robot
9822bd624c Merge "Split autofill InlineSuggestionSession to two classes" into rvc-dev 2020-04-08 07:11:07 +00:00
Wu Ahan
44ace27cb5 [automerger skipped] Merge "DO NOT MERGE Fix ImageWallpaper memory regression" into qt-qpr1-dev am: 27393d9f07 -s ours
am skip reason: subject contains skip directive

Change-Id: I98287f9ed26ef14e66039ae4a4c1e7fe55baa765
2020-04-08 07:03:32 +00:00
Wu Ahan
27393d9f07 Merge "DO NOT MERGE Fix ImageWallpaper memory regression" into qt-qpr1-dev 2020-04-08 06:45:23 +00:00
Sungsoo Lim
c27785ad0b Require permission for changing system routes
Bug: 149796428
Test: pass MR2 tests
Change-Id: Iaee8937a869815da8adc10bee2e1b1accfbd704e
2020-04-08 15:43:18 +09:00
Sergey Nikolaienkov
0f82965251 Merge "Add PipControlsView constructors" into rvc-dev 2020-04-08 06:35:43 +00:00
TreeHugger Robot
b4f21a59fe Merge "Support NLP request pierce location setting in emergency mode" into rvc-dev 2020-04-08 06:29:57 +00:00
Kyunglyul Hyun
c88b779af9 Merge "MediaRouter: Enable transfer for RCN case" into rvc-dev 2020-04-08 06:09:48 +00:00
Nate Jiang
95e85335ff Change imsi protection exemption intent string
Bug: 153109682
Test: atest android.net.wifi
Change-Id: I1f80e58705e539bf6c67e9faead67cc9a3fcc5a5
2020-04-07 23:05:56 -07:00
Sungsoo Lim
895f4f6914 Do not export private AIDL files of the media module
The current directory contains public and private AIDL types in the same place.
This CL separates into two directories and makes the directory having the
public types should be exported.

Bug: 148660295
Test: build
Change-Id: Ib2632afa00f7fa7f992690e68684464928cd3c61
2020-04-08 15:05:26 +09:00
Feng Cao
cc16038979 Split autofill InlineSuggestionSession to two classes
* The AutofillInlineSession is renamed from InlineSuggestionSession, to
  avoid confusion from having the same name as the
  inputmethod/InlineSuggestionSession.
* The convoluted synchronization and CompletableFuture are removed to
  simplify the flow and reduce potential bug. Everything requires the
  same mLock as the Session now, so that they are synchronized and
  deadlock-free.
* The AutofillInlineSessionController is introduced, to prepare for the
  follow on patch where we will make each AutofillInlineSession to be
  only responsible for one field.

Test: manual
Test: atest CtsAutoFillServiceTestCases

Bug: 151123764

Change-Id: I92cc558351b57f04553709569b8d41b928b9b49d
2020-04-07 22:57:10 -07:00
Junyu Lai
e995acd27e Merge "Fix NetworkStatsApiTest failed on Q device" into rvc-dev 2020-04-08 05:55:57 +00:00
TreeHugger Robot
b9bc1dffbb Merge "Uninitialized member fix :(" into rvc-dev 2020-04-08 05:48:09 +00:00
Mark Chien
c920673e5f Merge "Add TetheringServiceTest unitest" into rvc-dev 2020-04-08 05:40:45 +00:00
TreeHugger Robot
0dcd72e1de Merge "Close LS media player when session is destroyed" into rvc-dev 2020-04-08 05:23:37 +00:00
Frank Li
13c689cb12 Merge changes from topic "DNS telemetry-rvc-dev" into rvc-dev
* changes:
  Define rcode=12~15 (UNASSIGNED) in rcode enum type
  Add new NetworkType for WIFI+CELLULAR+VPN transport
  ADD new enum NetworkType to identify multiple transport type
2020-04-08 04:49:27 +00:00
TreeHugger Robot
ffe3762342 Merge "Update task organizer state whenever task organizer was set" into rvc-dev 2020-04-08 04:40:17 +00:00
Ahan Wu
765f1788ed Apply wake up animation to wallpaper window
Apply wake up animation to wallpaper window.

Bug: 152380714
Test: Manually
Change-Id: Iecc6fa2094790f41aada31ebd31f00181516c1a4
2020-04-08 12:39:53 +08:00
Steven Thomas
6faeaa2a9b Add acquireFrameRateFlexibilityToken permission comment
Add a comment explaining the permissions necessary for a successful call
to acquireFrameRateFlexibilityToken(). This is feedback from a
previously submitted CL.

Change-Id: Id316e6943153c20a06d90af844605851591e225c
Bug: 148033900
Test: n/a
2020-04-07 21:31:59 -07:00
Andrii Kulian
44b3c569f4 6/n Manage multiple task display area in the policy
Delegate task display area creation and container management to the
display area policy implementation. This should allow creating and
handling device-specific task display area arrangements.

Bug: 152116619
Test: WM CTS and unit tests
Change-Id: Ic1182d064e7d8387f701f04fb267e2bb6d4da0c5
2020-04-07 21:30:26 -07:00
Hongwei Wang
a68d92a8fc Merge "Ensure clear state when getDestinationBounds for PiP" into rvc-dev 2020-04-08 04:23:03 +00:00
Chalard Jean
976f35b0fe Merge "Add trivial dependencies tests for the network stack" into rvc-dev 2020-04-08 04:22:48 +00:00
Alex Buynytskyy
5f9e3a0dc6 Uninitialized member fix :(
Bug: b/153468113
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: Ida26dc1476c2b329f9aba4d605e65c43e2cafac2
2020-04-07 21:13:41 -07:00
Robert Snoeberger
13bc4269d6 Close LS media player when session is destroyed
When updating media player, check the playing state. It is null after
the media session has been destroyed. This is necessary since the
NotificationMediaManager is used as the source of information about the
"current" session. It still sends updates after a media session has been
destroyed.

Fixes: 152821122
Test: play podcast, pause and dismiss app. Go to lock screen. Verify
that LS media player has closed.

Change-Id: I52445d18eb945127f6c9af0908e154ac983e88cf
2020-04-07 23:41:55 -04:00
TreeHugger Robot
e2cd0a6b83 Merge "Fix IME insets animation applies again when restartInput called" into rvc-dev 2020-04-08 03:35:24 +00:00
Junyu Lai
5a50ac984f Fix NetworkStatsApiTest failed on Q device
Currently, the addEntry method is used in constructor of test,
which is not correct since there is no such method in Q devices.

Thus, initialize of NetworkStats variables outside of constructor.

Test: atest NetworkStatsApiTest
Test: atest CtsNetTestCasesLatestSdk:NetworkStatsApiTest on Q device
Bug: 150644692
Change-Id: Ibf2f8118c459a8d7a0992deca8f0f339ccd1bcea
Merged-In: Ibf2f8118c459a8d7a0992deca8f0f339ccd1bcea
(cherry picked from commit ae023a8bbd3a7482fd66547d58759c88e100f207)
2020-04-08 03:13:10 +00:00
TreeHugger Robot
cf7b637860 Merge "Prevent requesting invalid state after docked" into rvc-dev 2020-04-08 03:03:03 +00:00
Louis Chang
9d35a3ace0 Update task organizer state whenever task organizer was set
Root tasks that created by organizer were not added to
TaskOrganizerStates because those tasks were not visible.
In that case, these tasks were not removed when the organizer
was dead.

Bug: 153287798
Test: atest SplitScreenTests
Test: atest TaskOrganizerTests
Change-Id: Icbe1f119ae6e97f730138af83f265724bb4ae5a9
2020-04-08 10:46:33 +08:00
Tyler Gunn
4eb1891b56 Add carrier config to support local disconnect of empty IMS conference.
Adding carrier config key to support ability to locally disconnect an
empty IMS conference.  The network normally does this, but there             are some
carriers which rely on the device to do it.

Test: Add unit test to verify local disconnect when participant count is
zero.
Test: Use conference event package test cmd/intents to inject test CEP to
simulate a conference dropped to 0 participants.  Verify IMS conference is
disconnected.
Fixes: 151707520

Change-Id: Id7238bc668e6d6d2d7a04a8696263b260d6b6fd8
2020-04-07 19:01:15 -07:00