474087 Commits

Author SHA1 Message Date
Ruslan Tkhakokhov
4f8a9d98c5 Try to reapply live wallpaper component once it's installed
See go/br-fr-live-wallpaper for context

Bug: 30205325
Test: 1. Set live wallpaper (from pre-installed / from a 3p app Muzei)
      2. Run Backup Now
      3. Wipe the device
      4. Restore (regular/deferred)
      5. Verify the same live wallpaper is set
Change-Id: Iacdb4e4b4bd895740f0a7f72f075a24fae1ae368
2020-04-08 17:28:42 +00:00
Adrian Roos
d686b084ec Insets: Fix DecorView consuming of insets
Previously, disabling the consuming logic was
done based on whether we target R.

But this:
- didn't work for Q apps that already use the new API
- causes a bit of unnecessary behavior churn
- requires special-casing the IME

Instead, we look at whether the app has requested to
handle insets with the R setDecorFitsSystemWindows API.

Fixes: 152384150
Test: atest DecorInsetSdk29Tests DecorInsetTests
Change-Id: I754851d0c11dccd21c2fa011cfdc3f0d7396cf60
2020-04-08 19:25:45 +02:00
Christine Franks
be3b2304d2 Merge "Differentiate per-layer saturation levels" into rvc-dev 2020-04-08 17:16:00 +00:00
TreeHugger Robot
04b2ace944 Merge "Synchronize adapter registration with mCallbacks" into rvc-dev 2020-04-08 17:13:15 +00:00
Ruchir Rastogi
e20c53e5b1 Fix AIBinder_linkToDeath cookies
StatsPullerManager should be declared on the heap because wp's can only
point to objects on the heap.

Test: bit statsd_test:*
Test: atest GtsStatsdHostTestCases
Test: atest CtsStatsdHostTestCases
Bug: 153237308
Change-Id: I579375f5bd2db9557f108f39916d69f368865478
2020-04-08 10:07:48 -07:00
Joshua Tsuji
7dd88b0209 Delete BubbleTouchHandler in favor of more traditional touch handling.
This will scale better as we add more views and gestures.

Test: manual (fixing test suite now, just getting out for review!)
Bug: 152877243
Merged-In: I46001c24f4de58c3d70b7629a22b930fa791b77a
Change-Id: I46001c24f4de58c3d70b7629a22b930fa791b77a
2020-04-08 16:59:11 +00:00
shafik
2a20790621 Make OPSTR_MANAGE_EXTERNAL_STORAGE test API
We need that to enable CTS for Environment#isExternalStorageManager API

Test: build
Bug: 152478019
Change-Id: I8c24c08991558629c83a25b4bed89c817723d732
2020-04-08 17:49:47 +01:00
Anton Hansson
eb34cbee12 Use module_current to build module stubs
module_current is always built from sources, whereas the
other SDK jars are being transitioned to be composed of
a set of stubs. This avoids the dependency cycle of module
stubs depending on themselves.

Bug: 144149403
Test: m
Change-Id: I31c6d0fa958aa502131352716a9f950828b7829c
2020-04-08 16:37:10 +01:00
Anton Hansson
e4a55252b2 Don't specify sdk_version for stubs
The default specifies sdk_version correctly, so use
the inherited value to make it easier to make global
changes.

Bug: 144149403
Test: m
Change-Id: I3e9e3cca6fe0b6dfc7645b91f5cab645350c0f9a
2020-04-08 16:25:38 +01:00
Anton Hansson
46ff0ee6e2 Don't specify sdk_version for stubs
The default specifies sdk_version correctly, so use
the inherited value to make it easier to make global
changes.

Bug: 144149403
Test: m
Change-Id: Ie78e2a934ed52cc9ad31dc6a3c0fb7e0c4b915a1
2020-04-08 16:22:24 +01:00
Anton Hansson
fde19f0a02 Don't specify sdk_version for stubs
The default specifies sdk_version correctly, so use
the inherited value to make it easier to make global
changes.

Bug: 144149403
Test: m
Change-Id: Ibc2a1af60f10dd5d270e502011a70e20e7ed934a
2020-04-08 16:21:32 +01:00
Tyler Gunn
edb826c298 Merge "Add carrier config to indicate if cep is supported on peer." into rvc-dev 2020-04-08 15:02:11 +00:00
TreeHugger Robot
afef06a0f6 Merge "Revert "Revert "Do not mount whitelisted package in storage data and obb dirs""" into rvc-dev 2020-04-08 14:48:39 +00:00
TreeHugger Robot
6acebc809a Merge "Don't ask libc for PT feature w/o kernel support." into rvc-dev 2020-04-08 14:15:23 +00:00
Charles Chen
4bff5be1a9 Fix WindowContext leak
The root causes of this issue are:
  1. WindowTokenClient#attachContext makes WindowTokenClient has strong
     reference to WindowContext, which leads to WindowContext cannot be
     GC'd.
  2. WMS#removeWindowToken needs MANAGE_APP_TOKEN permission which
     normal apps don't hold.

This CL does following things:
  1. Use weak reference instead on WindowTokenClient#mContext.
  2. Relax WMS#removeWindowToken to check callingUid if
     MANAGE_WINDOW_TOKEN permission is not held
  3. Deliver config changes to the client side in
     WMS#addWindowTokenWithOption
  4. Some minor fixes

fixes: 150812449
Bug: 150715095
Test: atest WindowContextTest
Test: atest WindowManagerServiceTests
Test: atest WindowTokenTests
Test: atest WindowManagerPermissionTests#testMANAGE_APP_TOKENS
Test: atest
WindowManagerPermissionTests#testADD_WINDOW_TOKEN_WITH_OPTIONS

Change-Id: I9f1d73af2abb78fc9844e6d9eb25e9f0293514e7
2020-04-08 21:30:24 +08:00
Sergey Nikolaienkov
2204a7a003 Fix registering PiP transition calback in PipManager multiple times
Fix registering PiP transition callback in PipManager's constructor two
times, and thus receiving two calls every time transition state changes,
which caused the linked below bug.

Bug: 153517179
Test: manually
Change-Id: Ib948b4911f7c6b8c3b0abecb3b293c2e27aefda1
2020-04-08 15:26:39 +02:00
Sergey Nikolaienkov
53da4daade Expand logging in PipManager
Expand logging in PipManager to make debugging easier.

Bug: 153517179
Test: manually
Change-Id: Iebd8d368dab4c83a78f5ef638bf7d1ec73a9c661
2020-04-08 15:22:58 +02:00
Tony Mak
976cd96983 Fix an issue that setMaxSuggestions(-1) throws unexpectedly
As per the javadoc, -1 is a valid input.

BUG: 153529167

Test: ag/10976796
Change-Id: I4cf172fbd36b893428be1bb87a9ccb0b7c5c3c6a
2020-04-08 14:16:11 +01:00
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