Commit Graph

465105 Commits

Author SHA1 Message Date
Jing Ji
1fe206fad4 Merge "Fix NPE in getContentProviderImpl" 2020-02-05 23:21:03 +00:00
Joshua Tsuji
b51d99a7ea Adds the FloatingContentCoordinator.
This class helps PIP, Bubbles, and future additions to the floating family peacefully co-exist.

Design doc: go/pip-bubbles-unification#heading=h.ip7f8yd5i199

This is the initial CL - a followup will add the permanent/temporary move logic, which restores floating content's original positions if a move is aborted.

Bug: 138115889
Test: atest SystemUITests
Change-Id: I762ce25700523ff581e1dc827de3bb9128ea97a2
2020-02-05 14:52:30 -08:00
Soonil Nagarkar
1d39e34eee Remove obsolete Settings unit tests
Bug: 140250974
Test: atest SettingsProviderTest
Change-Id: Id5f0e87d822be8b72693d6a24d32fbc714064b46
2020-02-05 14:49:10 -08:00
TreeHugger Robot
808fd231da Merge "remove unused methods" 2020-02-05 22:44:19 +00:00
Muhammad Qureshi
a1e47e9f2b Create REGISTER_STATS_PULL_ATOM permission
Create a permission to allow clients to register pull atom callbacks to
statsd. This permission should allow mainline modules and other platform
clients register puller callbacks, but is not intended for 3p apps.

Bug: 146462168
Test: atest CtsPermission2TestCases
Change-Id: Iea50d137e2cc9f34644c8aa9548a7445f5ec16b8
2020-02-05 14:42:15 -08:00
Jeffrey Huang
e2e1335f88 Update permission check to use Statsd's uid
Test: atest com.google.android.statsd.gts.StatsdHostTestCases
Bug: 145565463
Change-Id: I55bb3e50ef74e279d303118ba8c90f80cd39aefc
2020-02-05 14:27:29 -08:00
Pavel Grafov
42da7f7fc4 Comment out flaky tests.
@FlakyTest didn't help, they were still running in presubmit.

Test: compiles
Bug: 148934649
Bug: 148930538
Change-Id: I12bdb4f7259ea1aa18861bded4d5ae122720a733
2020-02-05 22:19:49 +00:00
Etan Cohen
e8d73bb397 [WIFICOND][API] Replace capability BitSet by an int
The capability bit set is standard constrained - 16 bits and no more.
Can use a simpler/lighter int.

Per API council feedback.

Bug: 148680192
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: I47e8458d64f998da2e9743ad850687bc56a24cf6
2020-02-05 14:14:17 -08:00
Jiashen Wang
e37c8d26c2 Merge "Add isEuiccSupportedCountry system API to EuiccManager" 2020-02-05 22:14:06 +00:00
Mehdi Alizadeh
ae808ff765 Adds locus Id to ShortcutQuery to find shortcuts based on LocusId
Bug: 148085173
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10
Test: atest DataManagerTest

Change-Id: Ie789582a43db6d53130f4a0e5bff646a3c08c71e
2020-02-05 13:53:47 -08:00
Mehdi Alizadeh
9f68019066 Adds LauncherApps#ShortcutChangeCallback
This CL only defines the APIs and the aidl layer. LauncherAppsService
changes will be added in a separate CL.

Bug: 148085769
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10
Change-Id: I9590cd7e2ad2b0336280f23a2766e242158ceb4a
2020-02-05 13:53:44 -08:00
Automerger Merge Worker
2c41763bc1 Merge "Add rtp silence detection and inactivity detection to call quality" am: 5867fb23e9
Change-Id: I761fd38cbea56a79c3b43bafe969a454d3bd5068
2020-02-05 21:50:45 +00:00
Automerger Merge Worker
a6b0017b8f Merge "TvProvider API standardization for ATSC3.0 and DVB" am: 19f99b96eb am: 513b456663 am: 18f8b709f3
Change-Id: I19dd1a6fcfed99138d86883d1576538bcd266b13
2020-02-05 21:49:55 +00:00
Radhika Agrawal
5867fb23e9 Merge "Add rtp silence detection and inactivity detection to call quality" 2020-02-05 21:37:10 +00:00
Robert Carr
7d7c8abe13 TaskOrganizer: Implement lifetime changes for testing.
Here we implement three new lifetime semantics:
1. If there is a TaskOrganizer registered for a given windowing mode but
   a second organizer is registered, the first organizer will no longer be
   totally deregistered. It will no longer receive new tasks but will continue
   to manage its old Tasks. This lets us run CTS tests that test TaskOrganizer
   without totally breaking SysUI.
2. Implement unregisterTaskOrganizer, if you unregister the organizer it's
   just finished. SysUI probably wont use but CTS will.
3. Implement a sort of registration chaining semantic. When unregistering
   an organizer, the controller will attempt to restore the previous
   organizer for the given windowing mode. This means that when CTS tests
   unregister themselves SysUI can return to control.

Test: TaskOrganizerTests
Bug: 139371701
Change-Id: Ide240c707755b279ce6316f50ca8e023e38b7d66
2020-02-05 13:34:35 -08:00
Automerger Merge Worker
18f8b709f3 Merge "TvProvider API standardization for ATSC3.0 and DVB" am: 19f99b96eb am: 513b456663
Change-Id: I184661b029279f3d9d4f46a8e913e3b606917bb3
2020-02-05 21:32:38 +00:00
Automerger Merge Worker
513b456663 Merge "TvProvider API standardization for ATSC3.0 and DVB" am: 19f99b96eb
Change-Id: Ic859063c1dacbad5152b5210fae0c410219e77bc
2020-02-05 21:23:12 +00:00
Yinglei Wang
04c84989d3 Merge "Fix TYPE_VIEW_SCROLLED event in AsListView and ListView" 2020-02-05 21:11:56 +00:00
Eugene Susla
695cfc2057 Merge "Introduce permission flag for whitelisting permission from auto-revoke" 2020-02-05 21:10:47 +00:00
nchalko
19f99b96eb Merge "TvProvider API standardization for ATSC3.0 and DVB" 2020-02-05 21:09:42 +00:00
Roshan Pius
2f4d594043 Merge "WifiScanner: Revise deprecation notes" 2020-02-05 21:03:37 +00:00
Marco Ballesio
ba7c1c837a Use native boot namespace for freezer
Bug: 143308662
Test: manually followed "Testing Flag Propagation from the Server" from
      go/android-flags-setup
Change-Id: Ie29ee855a8cb46436fe084bac69d7f920d5718b0
2020-02-05 12:54:00 -08:00
John Reck
869cb2ad7e Merge "Adjust present time calculation" 2020-02-05 20:39:54 +00:00
Automerger Merge Worker
f295fd9f8c [automerger skipped] Merge "Implement INetworkMonitorCallbacks#notifyNetworkTestedWithExtras." am: 113ea83450 am: fbacb0ed11 am: ae75006891 -s ours
am skip reason: Change-Id Iab29da790c0f5faae68227770bc3a84bbc94f124 with SHA-1 a75e26be99 is in history

Change-Id: Id9bb3a105949c34234f9f8f5ae1043e5d70613a5
2020-02-05 20:35:29 +00:00
Jing Ji
1de0267bc4 Fix NPE in getContentProviderImpl
Bug: 148377974
Test: manual
Change-Id: I73f41fc9527dd24d2e349351bd8550c152ef51e4
2020-02-05 12:31:14 -08:00
Matt Pape
71b8672f40 Merge "Respect forceNonSystemPackage param when creating new Setting objects." 2020-02-05 20:30:12 +00:00
Marin Shalamanov
cdf7bb6c7b Update default and active mode when new modes are added.
If after a display change new modes are added and the current active mode has
changed we assume the current default mode may be invalid. This change updates
the default mode to the current active mode.

Test: manual
Test: atest LocalDisplayAdapterTest
Bug: 146824575
Change-Id: Ic41c44a1e82c2a7a72c739335c7fe22bb2654f53
2020-02-05 21:24:26 +01:00
Automerger Merge Worker
ae75006891 Merge "Implement INetworkMonitorCallbacks#notifyNetworkTestedWithExtras." am: 113ea83450 am: fbacb0ed11
Change-Id: I3b32a91106646e98cf52b4ca48eeb4ebacd164db
2020-02-05 20:23:52 +00:00
Automerger Merge Worker
fbacb0ed11 Merge "Implement INetworkMonitorCallbacks#notifyNetworkTestedWithExtras." am: 113ea83450
Change-Id: I39b74228c6c2a48ace7ad36dba995fa6f91bfbb5
2020-02-05 20:09:32 +00:00
Cody Kesting
113ea83450 Merge "Implement INetworkMonitorCallbacks#notifyNetworkTestedWithExtras." 2020-02-05 19:55:05 +00:00
Danning Chen
b3f852127e Fix the NPE when reading the call log or SMS if a device has multiple user profiles
Change-Id: Iec6485653367f2f005c2b7e17f23ab611e39e13b
Bug: 148918224
Test: atest com.android.server.people.data.DataManagerTest
2020-02-05 11:52:50 -08:00
Automerger Merge Worker
4f552dc3bd [automerger skipped] Merge changes from topics "cbs_area_info", "subscription_id" am: 361cae3630 am: 3f01e13713 am: a74cbceda1 -s ours
am skip reason: Change-Id I5995e3c5099a1e49cb0c54d33da1dbfcc94d4037 with SHA-1 afaa71d418 is in history

Change-Id: I79aa8395663734ade4dd7856158a4863e5de087b
2020-02-05 19:48:50 +00:00
Automerger Merge Worker
91bdee5214 [automerger skipped] Renamed SUB_ID to SUBSCRIPTION_ID am: 087568092a am: 8a6bd20bdb am: a18c5c0266 -s ours
am skip reason: Change-Id Iac8d9abe3b011485ffe8220d94f25f99d022014b with SHA-1 e94a7a4f97 is in history

Change-Id: Iba2bf0afa23cc1468ab776a172c2b14a9326aebd
2020-02-05 19:48:45 +00:00
Automerger Merge Worker
a977b7d4e1 Merge "DSU to support GSI key revocation list" am: 739c45ea23 am: 0fc353ce55 am: 7896578eb8
Change-Id: Id142f630633c882336b6212313de4946a8c1f59f
2020-02-05 19:47:53 +00:00
Hui Yu
4b3cce27d4 Update UidRecord when capability changes.
Bug: 136219221
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: I7a35800d77ac12056bbab05011fd21a248cfdbe4
2020-02-05 11:46:04 -08:00
Kevin Han
933dc7cf9f Introduce NotifBindPipeline (2/2)
Hook up NotifBindPipeline classes to ExpandableNotificationRow's API,
deprecating some API. Eventually we should remove the ENR middle man
fully and have the clients directly call NotifBindPipeline API so we
can also deprecate ENR's bind-related API.

This also moves NotificationTestHelper to the notification.row package
since it should really be there considering its job of inflating rows
for tests and allows our new class constructors to remain
package-private.

Bug: 145749521
Test: atest SystemUITests
Test: smoke test w/ Notify test apk
Test: "Group Hun Cancel" test in Notify test apk
Change-Id: I1e5ea68006c69332b7e5ae3e274d1deabeba6a70
2020-02-05 11:39:37 -08:00
Kevin Han
131f30d168 Introduce NotifBindPipeline (1/2)
Introduce NotifBindPipeline and friends which perform the following
roles.

NotifBindPipeline
* Knows when all view inflation + bind logic is done and calls callbacks
* Composes BindStage(s) to bind notif views when something changes

RowContentBindParams
* New place for inflation-related params in ExpandableNotificationRow to
live (inflation flags, increasedContentHeight, lowPriority)

RowContentBindStage
* Abstracted stage of work for pipeline to use that wraps around
NotificationRowContentBinderImpl in order to bind content.
* Provides params objects that clients can modify
* Provides invalidate call as part of BindStage that starts pipeline

This CL simply introduces the classes but does not use them. The latter
CL will focus on swapping out the existing NotificationRowContentBinder
API usage in ExpandableNotificationRow and attaching these classes.

See design at go/notification-bind-pipeline.

Bug: 145749521
Test: builds on wembley, crosshatch
Test: atest SystemUITests
Change-Id: I8366010afad1c8bd2d76cbe71d21b55bbbb11bbe
2020-02-05 11:32:48 -08:00
Automerger Merge Worker
a74cbceda1 Merge changes from topics "cbs_area_info", "subscription_id" am: 361cae3630 am: 3f01e13713
Change-Id: I90ead187a39bf79e66c93184066bd467ef291d71
2020-02-05 19:27:35 +00:00
Automerger Merge Worker
a18c5c0266 Renamed SUB_ID to SUBSCRIPTION_ID am: 087568092a am: 8a6bd20bdb
Change-Id: I5ad401812d99944597f54b5d9647e7976eb5aa8c
2020-02-05 19:27:32 +00:00
Automerger Merge Worker
7896578eb8 Merge "DSU to support GSI key revocation list" am: 739c45ea23 am: 0fc353ce55
Change-Id: Ib864db358cb0eea9faf839ead88b8e9fbe38f85a
2020-02-05 19:26:46 +00:00
TreeHugger Robot
929de64796 Merge "Set secure window flag for AuthContainerView" 2020-02-05 19:25:08 +00:00
Automerger Merge Worker
3f01e13713 Merge changes from topics "cbs_area_info", "subscription_id" am: 361cae3630
Change-Id: I95de805e4f8decbba7ab5f18278d97a13d064eb9
2020-02-05 19:19:33 +00:00
Automerger Merge Worker
8a6bd20bdb Renamed SUB_ID to SUBSCRIPTION_ID am: 087568092a
Change-Id: I3c5f995f742ea861140e22ab43ff40d89ab462ad
2020-02-05 19:19:27 +00:00
TreeHugger Robot
d27eec1829 Merge "Update StatsLogProcessor to handle BinaryPushStateChanged" 2020-02-05 19:15:29 +00:00
Jack Yu
361cae3630 Merge changes from topics "cbs_area_info", "subscription_id"
* changes:
  Added area info support in cell broadcast service
  Renamed SUB_ID to SUBSCRIPTION_ID
2020-02-05 19:13:54 +00:00
Automerger Merge Worker
0fc353ce55 Merge "DSU to support GSI key revocation list" am: 739c45ea23
Change-Id: Ie2fd14d1fe4029a2c8178c36630167cea0e65af5
2020-02-05 19:12:37 +00:00
Mehdi Alizadeh
15c855f91d Fixes NPE when calling getPackage on a null shortcut
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10
Test: Launcher tests pass
Bug: 148869137

Change-Id: Idf27108e6b40106f4604bb5fa9d8061b5b8ce8be
2020-02-05 11:05:03 -08:00
TreeHugger Robot
795821c578 Merge "Set defaults for cached and empty processes." 2020-02-05 19:02:41 +00:00
Yo Chiang
739c45ea23 Merge "DSU to support GSI key revocation list" 2020-02-05 19:01:54 +00:00
Roshan Pius
9b2f735c93 WifiScanner: Revise deprecation notes
Feedback from API council.

Bug: 148853334
Test: Compiles
Change-Id: Ie672674a37cd565f1fb29e80f6eb500b1e308597
2020-02-05 18:59:51 +00:00