Commit Graph

111778 Commits

Author SHA1 Message Date
David Su
af50a69388 Merge changes from topic "api-review-removedoublequotes"
* changes:
  SettingsLib: Rename removeDoubleQuotes to sanitizeSsid
  Networking: Rename removeDoubleQuotes to sanitizeSsid
  Wifi: Rename removeDoubleQuotes to sanitizeSsid
2020-01-30 18:16:53 +00:00
TreeHugger Robot
653dd7b19f Merge changes I0677bca4,I7cad6529
* changes:
  Fix autolaunching.
  Create a PackageMonitor instance for each profile.
2020-01-30 18:15:07 +00:00
Muhammad Qureshi
a6b9b0724c Merge "Use FrameworkStatsLog instead of StatsLog" 2020-01-30 16:40:28 +00:00
Daniel Sandler
2f7640449b Merge "Cherry-pick "action chips in share sheet" from qt-qpr1-dev." 2020-01-30 15:39:19 +00:00
arangelov
7981b1236d Fix autolaunching.
We autolaunch in the following cases:
1. There is only a personal profile, and it has 1 launchable target
2. There are a personal and work profiles, they have 1 launchable
target each, which is the same app. If the app has declared support
for cross-profile interaction, we auto launch that app on the current
profile.

Test: manually tested combinations of test cases with 0/1/2 resolved
apps on personal, 0/1/2 resolved apps on work, with enabled/disabled
cross-profile intents for both directions (work-personal and
personal-work)
Bug: 142537267
Bug: 142538125
Bug: 148536212
Test: atest com.android.internal.app.ChooserActivityTest
Test: atest com.android.internal.app.ResolverActivityTest

Change-Id: I0677bca4dd0ce0412c1c5d386157b94fd87b6706
2020-01-30 13:48:29 +00:00
arangelov
bdb4005601 Create a PackageMonitor instance for each profile.
Bug: 142537267
Bug: 142538125
Test: atest com.android.internal.app.ChooserActivityTest
Test: atest com.android.internal.app.ResolverActivityTest

Change-Id: I7cad6529c168422f68a1366d5c6281af605ca230
2020-01-30 13:47:31 +00:00
Bernardo Rufino
768686b601 Merge "Gate CHANGE_TEXT_TOASTS_IN_THE_SYSTEM on targetSdk 30+" 2020-01-30 10:42:04 +00:00
TreeHugger Robot
59f31d5e3c Merge "Create AppForegroundHelper" 2020-01-30 01:22:36 +00:00
Muhammad Qureshi
73107044ce Use FrameworkStatsLog instead of StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by *StatsLog.java
that is autogenerated for each module.
This CL replaces some usages of StatsLog with FrameworkStatsLog.

Bug: 145952197
Test: m
Change-Id: Id3e0900a050441b9aef3ee6244759f5098afdfb1
2020-01-29 17:03:56 -08:00
TreeHugger Robot
61e8374b44 Merge "Add documentation to #onPictureInPictureRequested" 2020-01-30 01:03:03 +00:00
TreeHugger Robot
47c9ac72dd Merge "IME always provides bottom insets, if any" 2020-01-29 23:48:50 +00:00
Soonil Nagarkar
b6375a4f7f Create AppForegroundHelper
Create a new helper to deal with application foreground state changes.

1) Rename various Helpers.
2) Move GnssManagerService into location dir.
3) Use new AppForegroundHelper everywhere.
4) Move sendNiRequest to internal API
5) Some refactoring of NetInitiatedActivity

Test: atest AppForegroundHelperTest
Change-Id: Ifffe0e6a34452a18d017c6b190547b904d77b430
2020-01-29 15:23:06 -08:00
Bernardo Rufino
944121a8d3 Gate CHANGE_TEXT_TOASTS_IN_THE_SYSTEM on targetSdk 30+
Bug: 148438364
Bug: 144152069
Bug: 144754526
Bug: 128611929
Test: atest android.widget.cts29.ToastTest
Test: Verify com.commsource.beautyplus doesn't crash when sharing photo
      (details on b/148438364)

Change-Id: Iea3ffd69c3fd217b993d89020b7ec6c3c32cea15
2020-01-29 22:24:45 +00:00
Mehdi Alizadeh
505fb76065 Adds CACHED shortcuts and methods to retrieve and remove
Adds a new flag to ShortcutInfo to mark it as cached. Also adds new
APIs in ShortcutManager to remove or retrieve a cached shortcut.

Bug: 148084870
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: I859b416ccd4228eec10a436550ff98866a62af66
2020-01-29 22:06:40 +00:00
Rambo Wang
879bc4ae15 Merge "Clear up permission READ_PRIVILEGED_PHONE_STATE." 2020-01-29 22:06:11 +00:00
Jorim Jaggi
23a02a9f67 IME always provides bottom insets, if any
This fixes an issue where IME wasn't visible in landscape with a
cutout, because IME window didn't cover full edge.

Also fix an issue where floating IME didn't work because alpha
was calculated the wrong way.

Test: InsetsSourceTest
Bug: 111084606
Change-Id: I29b7a45cd590a52ecb03f2e539edde57aef4dba3
2020-01-29 21:42:27 +00:00
Jorim Jaggi
abaa904348 Hide IME when loosing control
Because we can't restore IME visibility yet, we update requested
visibility whenever we loose control.

Bug: 111084606
Test: Set password as screen lock, then open status bar while
unlocked.

Change-Id: I476e05dd4ec24b9e4d78ea585e43e698b87b30a5
2020-01-29 21:41:59 +00:00
Sudheer Shanka
5257270180 Merge "Make Context.BLOB_STORE_SERVICE public." 2020-01-29 21:12:55 +00:00
TreeHugger Robot
8dee3654a9 Merge "Require signature scheme V2+ for target SDK R+" 2020-01-29 20:47:00 +00:00
Sergey Volnov
e453dcef3b Merge "Got rid of cancellation signals in the Content Capture Data Sharing" 2020-01-29 20:24:48 +00:00
TreeHugger Robot
a190c897e9 Merge "Added area info support in cell broadcast service" 2020-01-29 19:29:53 +00:00
Philip Quinn
2116f0e58b Merge "Move ViewConfiguration#AMBIGUOUS_GESTURE_MULTIPLIER to config.xml." 2020-01-29 19:24:53 +00:00
Roshan Pius
cdd9f30708 Merge "Settings: Remove unused WIFI_SAVED_STATE" 2020-01-29 18:59:30 +00:00
Sudheer Shanka
f56f7589bf Make Context.BLOB_STORE_SERVICE public.
Bug: 143559646
Test: atest cts/tests/BlobStore/src/com/android/cts/blob/BlobStoreManagerTest.java
Change-Id: I2ae498803614761f1eab0927ab9e3c77dd65e1a1
2020-01-29 10:52:32 -08:00
jorgegil@google.com
7a926dc674 Add documentation to #onPictureInPictureRequested
Explains how app developers might want to use the new API.

Bug: 148011369
Test: compiles
Change-Id: I87b20de69ea9a30c2cb338cf19db0bd0b971b78a
2020-01-29 10:28:33 -08:00
Artur Satayev
19b1eb087b Merge "Remove unused UnsupportedAppUsage annotations." 2020-01-29 18:20:19 +00:00
Artur Satayev
192ca30b7a Remove unused UnsupportedAppUsage annotations.
The new annotation is android.compat.annotation.UnsupportedAppUsage.

Test: m
Bug: 145132366
Exempt-From-Owner-Approval: previously approved change
Change-Id: Ie12e28eee0ed20b5677ee3162143700813b7ab64
2020-01-29 18:19:45 +00:00
Dmitri Plotnikov
715a1c654b Merge "Add async version of getProviderMimeType" 2020-01-29 17:59:51 +00:00
Alex Johnston
b7fc2ab443 Merge "Update profile owner of org-owned device global restrictions" 2020-01-29 17:51:25 +00:00
Sally Yuen
96b878aada Merge "Implement multi-finger multi-tap gesture matchers for accessibility" 2020-01-29 17:41:28 +00:00
Sergey Volnov
439294404f Got rid of cancellation signals in the Content Capture Data Sharing
Motivation: if the Content Capture service want's to end the session, it
can close the read-fd, while not have finished reading, and that would
result in an exception in the system server, that can later be
propagated to the caller as an error.

Similarly, timeout of the sharing session can be reflected as an error
with a specific error code.

Test: built Android locally and perfomed a manual test.
Bug: 145203958
Change-Id: Iaeb45e0ab68da9fe30dce1ae4eab2354ef56d827
2020-01-29 15:31:00 +00:00
Roshan Pius
c1e0de9740 Settings: Remove unused WIFI_SAVED_STATE
The usage was removed from opt/net/wifi earlier.

Also, cleaned up a bunch of other settings in SettingsProvider
that were previously removed in ag/10080845.

Bug: 141623345
Test: Compiles
Change-Id: I18690ee12d6b701b6f487285e36ca0143244bcfd
2020-01-29 07:19:42 -08:00
TreeHugger Robot
e9437d2ee3 Merge "Implement the necessary methods for identifying the DENY / FORCE_ALLOW causes for logging purposes." 2020-01-29 14:36:21 +00:00
Automerger Merge Worker
36a7559516 Merge "Tidy up module-lib API and locks" am: 98ab83c37d am: 779b5c6ee0 am: 1fc568f878
Change-Id: I4c7039b54aa185447108622b0608689ddf45bc2f
2020-01-29 14:33:36 +00:00
Automerger Merge Worker
fdb676b4dd Merge "Rename ZoneInfoDB -> ZoneInfoDb" am: 402674f2a0 am: c3e31d6ac5 am: f8a4287915
Change-Id: I72978765010e3da52bcdf00299f7ba999bc9201b
2020-01-29 14:33:04 +00:00
Automerger Merge Worker
1fc568f878 Merge "Tidy up module-lib API and locks" am: 98ab83c37d am: 779b5c6ee0
Change-Id: If558e1d5f1a438eedefaae4c8b7f8eda7862ee7b
2020-01-29 14:21:29 +00:00
Automerger Merge Worker
f8a4287915 Merge "Rename ZoneInfoDB -> ZoneInfoDb" am: 402674f2a0 am: c3e31d6ac5
Change-Id: Ib094f9f67112998c82642dd4f8688a75f8b8e0ee
2020-01-29 14:21:11 +00:00
Neil Fuller
779b5c6ee0 Merge "Tidy up module-lib API and locks"
am: 98ab83c37d

Change-Id: I0c136617cef0d23e905757a0b6baf2b7e823212d
2020-01-29 06:19:05 -08:00
Neil Fuller
98ab83c37d Merge "Tidy up module-lib API and locks" 2020-01-29 14:10:18 +00:00
Neil Fuller
c3e31d6ac5 Merge "Rename ZoneInfoDB -> ZoneInfoDb"
am: 402674f2a0

Change-Id: I3dca8a93ccbc0f5e6fd4905db82bec6d8e088164
2020-01-29 06:05:50 -08:00
Treehugger Robot
402674f2a0 Merge "Rename ZoneInfoDB -> ZoneInfoDb" 2020-01-29 14:00:45 +00:00
Omer Nebil Yaveroglu
84f7c3fb53 Implement the necessary methods for identifying the DENY / FORCE_ALLOW
causes for logging purposes.

Bug: 147095027
Test: atest frameworks/base/core/tests/coretests/src/android/content/integrity/
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/integrity
Change-Id: Id502287b22fc54fd1585f81b313fb466d1f8442c
2020-01-29 12:21:14 +00:00
Automerger Merge Worker
3daccde526 Merge "Extract TimeDetector/TimeZoneDetector interfaces" am: 17ac92f460 am: a9e81b53a9 am: f751b9ec06
Change-Id: Ic029c262cc34f8c0232cda3558a57f2fcaceb797
2020-01-29 10:38:45 +00:00
Automerger Merge Worker
f751b9ec06 Merge "Extract TimeDetector/TimeZoneDetector interfaces" am: 17ac92f460 am: a9e81b53a9
Change-Id: I39134e3e45d3c6f2fac78a0180da7b83eb94b86f
2020-01-29 10:22:58 +00:00
Neil Fuller
a9e81b53a9 Merge "Extract TimeDetector/TimeZoneDetector interfaces"
am: 17ac92f460

Change-Id: I7e35f2eedbe57a8e77af8af70587a87dfa61bd26
2020-01-29 02:09:11 -08:00
Neil Fuller
17ac92f460 Merge "Extract TimeDetector/TimeZoneDetector interfaces" 2020-01-29 09:57:55 +00:00
Ryan Mitchell
1e80cd76ed Merge changes from topic "res-loader"
* changes:
  Refactor ResourcesLoader Tests
  Refactor ResourcesLoader APIs
2020-01-29 06:57:47 +00:00
Jack Yu
afaa71d418 Added area info support in cell broadcast service
Added a broadcast for area info changed event, and
also a get method in cell broadcast service to
retrieve the area info.

Test: Cell broadcast sanity tests
Bug: 141318859

Change-Id: I5995e3c5099a1e49cb0c54d33da1dbfcc94d4037
2020-01-28 21:05:25 -08:00
Winson Chung
75f5bf33b0 Merge changes from topic "winscope-sysui"
* changes:
  Add initial SysUI trace support
  Update trace buffer to support SysUI & Launcher
2020-01-29 05:04:48 +00:00
Jack Yu
728f207b23 Merge "Added data coding scheme and location check time support" 2020-01-29 04:03:57 +00:00