Commit Graph

468813 Commits

Author SHA1 Message Date
JW Wang
14168f321a Remove unused code (4/n)
Bug: 149876119
Test: m
Change-Id: I3f7c88eeb74ce5b44646fcb7a690665b78a17f2d
2020-02-20 18:52:21 +08:00
JW Wang
67eb86bb4c Pass "-g --user all" when installing apps (3/n)
'-g' to grant permissions automatically without checking the API level.
This works around the issue of b/149733368#comment2.

'--user all' to install the app on all users. This is more efficient
than calling #installPackageAsUser one by one on each user.

Bug: 149876119
Test: atest MultiUserRollbackTest
Change-Id: Ia5d85d3c13925ae969ffab9319360c1fefe1f950
2020-02-20 18:52:18 +08:00
JW Wang
f2a75879d3 No need to switch users before running tests (2/n)
My local test shows that switch-user doesn't work on my physical device.
In fact there are APIs to run tests against a particular user without
switching. It also speeds up tests without switching users from time to
time.

Bug: 149876119
Test: atest MultiUserRollbackTest
Change-Id: I34d26ddcb6a6e9cdc39228310830a3cd83212e4a
2020-02-20 18:49:59 +08:00
Automerger Merge Worker
310c1b76ea Merge "Check argument in PowerProfile.getNumCoresInCpuCluster" am: 74952231df
Change-Id: Id1bf2fa710c24ba76efbc5ad9b83dab63b8c334a
2020-02-20 10:47:24 +00:00
Anton Hansson
0a0a097d38 Merge "Stop exposing generated AIDL from Tethering" 2020-02-20 10:41:29 +00:00
Anton Hansson
7d0b293053 Merge "Remove wifi aidl-exports from framework-aidl-export-defaults" 2020-02-20 10:41:17 +00:00
Anton Hansson
6a2973a075 Merge "Allow com.android.* classes in system_service stubs" 2020-02-20 10:41:03 +00:00
Treehugger Robot
74952231df Merge "Check argument in PowerProfile.getNumCoresInCpuCluster" 2020-02-20 10:36:46 +00:00
TreeHugger Robot
d98f4e4b05 Merge "Have volume UI dismiss on home button press." 2020-02-20 10:27:47 +00:00
Tiger Huang
07b0733bde Adjust LayoutParams after handling soft input mode
For compatibility reasons, we would adjust layout params before it is
sent to window manager. We need to adjust it after soft input mode is
set.

This CL also makes sure that only match-parent-non-attached-app window
can use FLAG_FULL_SCREEN to hide status bar. This aligns the logic in
the legacy insets mode which only allows mTopFullscreenOpaqueWindowState
using FLAG_FULL_SCREEN to hide status bar.

Fix: 149816539
Fix: 149822806
Test: Go to Developer options > Click on Smallets width, and see if the
      layout of the dialog is correct.
Test: Long press power button and see if the dialog hides status bar.

Change-Id: I46daa0906bac981ccadb5f98aeb8b0479d23820e
2020-02-20 18:27:42 +08:00
Alan Stokes
5edd765c9d Merge "Add ChangeId for app data isolation." 2020-02-20 10:10:34 +00:00
TreeHugger Robot
1ef019d3e0 Merge "Disable Settings toggle if admin has set always-on VPN" 2020-02-20 10:09:34 +00:00
lesl
d41a299561 wifi: Use long to replace int for softap feature set
Bug: 149871866
Test: atest frameworks/base/wifi/tests/
Change-Id: I58a408150325054af809bdb18c77748ead3a0b17
2020-02-20 17:41:40 +08:00
Alan Stokes
2371ab7838 Merge "Don't kill a new process for the sins of an old process." 2020-02-20 09:36:35 +00:00
TreeHugger Robot
64996c3ded Merge "Add CutoutSpecificationTest in Presubmit Test scope" 2020-02-20 09:18:40 +00:00
TreeHugger Robot
20afdde053 Merge "Add kernel per-uid cpu time reader tests to presubmit" 2020-02-20 09:07:44 +00:00
Automerger Merge Worker
544626a866 Merge "Replace action button "Uninstall" with "Restart"" am: cedf22960e am: bcafeae6de am: e82a74f15a
Change-Id: I614e92207c5406eb21105088a58dcf9230a13b56
2020-02-20 09:01:56 +00:00
Al Sutton
d5db369554 Add debug logging when keys are blocked
Adding a log statement at debug level so when the key blocking system
is tested end-to-end there's an easy indicator of a key being blocked.

Bug: 149548272
Test: No code which affects functionality to test
Change-Id: I9de8a7d47ffb75520d1adcba620ec13345c1c4ae
2020-02-20 08:53:56 +00:00
Automerger Merge Worker
e82a74f15a Merge "Replace action button "Uninstall" with "Restart"" am: cedf22960e am: bcafeae6de
Change-Id: Iede4797f654340b49d1d07bf092b11aa7b7ad1ce
2020-02-20 08:46:42 +00:00
Hyundo Moon
0fa60e880b Add MediaRoute2ProviderService#notifyRequestFailed
Bug: 146616547
Test: atest mediaroutertest and CTS
Change-Id: I2b2b95bf0fec070ab24f51bba0c58221e5495460
2020-02-20 17:33:22 +09:00
Shawn Lin
c78f23a129 Merge "Fixed DisplayPolicyLayoutTests fails" 2020-02-20 08:30:10 +00:00
Automerger Merge Worker
bcafeae6de Merge "Replace action button "Uninstall" with "Restart"" am: cedf22960e
Change-Id: I24bc2dd13967c611c34e8d2b287ba991f8c838d4
2020-02-20 08:28:33 +00:00
JW Wang
eb908a9ee1 Wait for rollback becomes available (1/n)
Sometimes RollbackManager is slow in making rollbacks available.
Let's give it enough time to do the job and make test less flaky.

Bug: 149876119
Test: atest MultiUserRollbackTest

Change-Id: I0a64e2dcde1f5e6dae618cacd6546ad953c1aca7
2020-02-20 16:25:10 +08:00
Treehugger Robot
cedf22960e Merge "Replace action button "Uninstall" with "Restart"" 2020-02-20 08:15:54 +00:00
markchien
d8cfb6ecc7 Stop exposing constructor of TetheringConstants
Fully-static utility classes must not have constructor.

Bug: 149430003
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: I18e1129ef8717211d667ccd3b4110169dd7905b4
2020-02-20 16:11:35 +08:00
Martijn Coenen
81a661fb49 Merge "Don't try to set quotas on sdcardfs." 2020-02-20 08:06:59 +00:00
Howard Ro
7008dbe5e4 Merge "Revert^2 "Migrate Statsd to the apex"" 2020-02-20 08:00:53 +00:00
TreeHugger Robot
58a8b7f51d Merge "Switch to new project ID constants." 2020-02-20 07:59:07 +00:00
Hyundo Moon
0ba64fa110 Add MediaRouter2.RoutingController#getOriginalId() as @TestApi
Bug: 149886370
Test: atest mediaroutertest and CTS
Change-Id: I4adc8041763756747e4c725d682533fb5707f183
2020-02-20 16:43:20 +09:00
Chalard Jean
fb8307638a Revert "[NS D05] Rework how to tear down networks"
Revert submission 10343065

Reason for revert: This is part of a feature that was punted out of R.
Reverted Changes:
Ic9a3d3363:[NS D05] Rework how to tear down networks
I7d815f873:[NS D06] Implement more policies
I561098476:[NS D07] Use the unmodified legacy score

Change-Id: I8d2696d15999265d79abfc9163e7e5ccad873cfe
2020-02-20 07:32:12 +00:00
Chalard Jean
3ee4b2ec83 Revert "[NS D06] Implement more policies"
Revert submission 10343065

Reason for revert: This is part of a feature that was punted out of R.
Reverted Changes:
Ic9a3d3363:[NS D05] Rework how to tear down networks
I7d815f873:[NS D06] Implement more policies
I561098476:[NS D07] Use the unmodified legacy score

Change-Id: I378449443f99eb0a7f01f31f53398b8f55ce87f1
2020-02-20 07:32:12 +00:00
Chalard Jean
10c8d542ff Revert "[NS D07] Use the unmodified legacy score"
Revert submission 10343065

Reason for revert: This is part of a feature that was punted out of R.
Reverted Changes:
Ic9a3d3363:[NS D05] Rework how to tear down networks
I7d815f873:[NS D06] Implement more policies
I561098476:[NS D07] Use the unmodified legacy score

Change-Id: I184817e3aa290afdbe6721a7c36332b940434d3a
2020-02-20 07:32:12 +00:00
Hongwei Wang
c21c7e836e Merge "WindowContainerTransaction: Provide non-BLAST bounds change sync" 2020-02-20 07:30:38 +00:00
Bill Lin
dd12316b0d Add DEBUG flag for rounded corner and display cutout path
There wasn't a good approach for engineers to distignlish bounds between
H/W display component and S/W anti-aliasing.

Allow enable color to review the anti-aliasing effect.

Test: adb root; adb shell setprop debug.screenshot_rounded_corners true;
Test: adb shell pidof com.android.systemui |xargs -i adb shell kill -9 {}
Test: check visual following above steps
Test: atest SystemUITests
Test: atest ScreenDecorationsTest
Change-Id: I87f04b50945e1500babdf9fa7ba9cdb37010fde8
Merged-In: I87f04b50945e1500babdf9fa7ba9cdb37010fde8
2020-02-20 07:20:04 +00:00
Bill Lin
b354883807 Merge "Add DEBUG flag for rounded corner and display cutout path" 2020-02-20 07:19:01 +00:00
Kiyoung Kim
11085bb11c Remove ld.config.txt from sdkext APEX
Dynamic linker will use generated linker configuration in general. As
ld.config.txt file in the APEX module will not be used, we can remove
this to avoid confusion.

Bug: 149887007
Test: m -j passed
Test: Boot succeeded from cuttlefish and walleye
Change-Id: I10466863faed3463c69aaec7649f1a5f25b62f17
2020-02-20 16:08:32 +09:00
Jayant Chowdhary
fd3d196de2 Merge "camera2: Update documentation for getConcurrentStreamingCameraIds to account for availability callbacks." 2020-02-20 06:43:15 +00:00
Yan Yan
bbe083a8f3 Merge "Do not expose module IPsec(IKE) API from frameworks" 2020-02-20 06:42:22 +00:00
Wale Ogunwale
ea5e87f667 Clean-up Bounds Animator code path (92/n)
Use configBounds to set the configuration bounds exposed to the app and
displayedbounds to set what the user see happening with the surface.
This is clearer than the concept of stack bounds vs. task bounds. which
we won't be able to use for tasks/stacks that are only one level deep.

Bug: 10163964
Test: Pip works and existing tests pass.
Change-Id: I986a5098cd81ea1c455c44eb2f704d803cf10b50
2020-02-20 14:38:29 +08:00
Wale Ogunwale
0d46519bcd Reuse stack as task for single task stacks (90/n)
Stacks and tasks are now the same object instance, so for cases were we
have a 1to1 relationship between the stack and task, just go ahead and
use one stack/task object instead of having the extra level.
- Helps us tryout the task hierarchy at a different depth than 2
to see what bugs needs to be fixed.
- Makes it easier to switch "tiles" into the hierarchy.

Bug: 80414790
Test: Existing tests pass.
Change-Id: I9796a149f5ca689b7000819085d4ed8e156b618c
2020-02-20 14:37:00 +08:00
TreeHugger Robot
e5b0705260 Merge "Update display name of MediaDevice" 2020-02-20 06:28:30 +00:00
Bill Lin
f351272c36 Add CutoutSpecificationTest in Presubmit Test scope
1) Add CutoutSpecificationTest in Presubmit
2) Add CutoutSpecificationTest in FrameworksTestsFilter

Fixes: 149883140
Test: atest FrameworksCoreTests:CutoutSpecificationTest
Test: adb shell am instrument -w \
    -e filter com.android.server.wm.test.filters.FrameworksTestsFilter \
    -e selectTest_verbose true \
    com.android.frameworks.coretests/androidx.test.runner.AndroidJUnitRunner

Change-Id: I7db8f7797740d48a158650b63b7e90e5f1f28361
2020-02-20 14:19:55 +08:00
Po-Chien Hsueh
5b380af950 Replace action button "Uninstall" with "Restart"
When DSU is running, restarting the device will not uninstall the
installed system update.

Bug: 149716233
Test: run DSU install
Change-Id: If4e7b2f5f9123161ae85c0be80069aa600548c74
2020-02-20 14:19:39 +08:00
Tiger Huang
db488a2e81 Merge "Bring ImmersiveModeConfirmation to the new insets mode" 2020-02-20 06:14:37 +00:00
Trung Lam
92b8a72db8 Add direct reading/writing of contact phone number after PDD apporoval.
Test: Built and tested on device.
Bug: 147782721
Change-Id: I496e39c447a02ebfb7bb1d3668656eada6a2a59f
2020-02-19 22:10:19 -08:00
Automerger Merge Worker
5c3fd8d2b3 Merge "Sanitize owner UID iff owning app does not have location permissions." am: 239908298e am: 8b18b53599 am: 662028385d
Change-Id: I9b8fb3ff8d907ecda918a8a926edb133b742c8f1
2020-02-20 05:59:35 +00:00
Trung Lam
fda6d3386a Adding back contact phone number to protobuf after PDD review approval.
Test: Built and tested on device.
Bug: 142712281
Change-Id: I80808a10e6cea030e3cb415785ee20b7667d4c39
2020-02-19 21:58:28 -08:00
evitayan
5daf75d5b8 Do not expose module IPsec(IKE) API from frameworks
Module IPsec(IKE) will not be in bootclasspath or expose API
from frameworks/base anymore. Instead it will be built as a
java_sdk_library and expose APIs under its own directory.

This commit:
- Removes API from frameworks/base
- Adds ike to FrameworksNetTests manifest so that VpnTest is
  able to load it.

Bug: 145995723
Test: build, flash, boot
Test: atest FramewokrsIkeTests (passed)
Test: m mts && mts-tradefed run mts-ipsec (passed)
Test: manually tested that FrameworksNetTests can use ike.jar
Change-Id: I37ba02eb3003ea28e66f50ca0b612597ef48f6d5
Merged-In: I37ba02eb3003ea28e66f50ca0b612597ef48f6d5
2020-02-20 05:51:35 +00:00
Automerger Merge Worker
662028385d Merge "Sanitize owner UID iff owning app does not have location permissions." am: 239908298e am: 8b18b53599
Change-Id: Ib99af41b78dc9539f2a553231e13549d348b72db
2020-02-20 05:48:02 +00:00
Sudheer Shanka
4acba54d92 Update BlobStoreMS to use LongSparseArray.removeIf(Predicate).
Test: atest cts/tests/BlobStore/src/com/android/cts/blob/BlobStoreManagerTest.java
Test: atest services/tests/mockingservicestests/src/com/android/server/blob/BlobStoreManagerServiceTest.java
Change-Id: I5c8bf7f86cbdb9b3a11608cacee280b323a0027f
2020-02-19 21:47:12 -08:00