Commit Graph

19174 Commits

Author SHA1 Message Date
Nate Jiang
035705ccd9 Merge "Add error code for app adding invalid suggestions" 2020-01-21 22:34:11 +00:00
Daniel Bright
e9a4f02315 Merge "Changed ApnSetting mappings to constants" 2020-01-21 21:39:38 +00:00
Jay Aliomer
1d8df2ad91 Merge "Custom dark theme scheduling" 2020-01-21 21:27:28 +00:00
Nate(Qiang) Jiang
e4d7f7d8cc Add error code for app adding invalid suggestions
If one or more of the suggestions added is invalid, will reject all.

Bug: 147907699
Test: atest android.net.wifi
Change-Id: I2f6c83a811539c682861c4d6e622c52f583d9832
2020-01-21 12:42:19 -08:00
Jay Aliomer
15d855465b Custom dark theme scheduling
allows the use to set the start and end automatic dark theme
activation within a day.
Fixes: 147649309
Test: atest UiModeManagerServiceTest UiModeManagerTest
Change-Id: Iaa3593d4e8863412e3703ce9f089b88dd4df1225
2020-01-21 14:13:23 -05:00
Bernardo Rufino
871fe0a968 Merge "Deprecate custom toasts" 2020-01-21 18:35:59 +00:00
Alex Johnston
35a650b9fd Merge "Add new APIs to control modification of admin configured networks" 2020-01-21 18:33:02 +00:00
Jorim Jaggi
2b16b5993d Merge "Fix up new insets dispatch behavior" 2020-01-21 18:28:58 +00:00
Iavor-Valentin Iftime
c2813cf16c Merge "Change some UserManager APIs to @SystemApi" 2020-01-21 18:21:57 +00:00
Hui Yu
89582facba Merge "Add new foreground service type camera and microphone." 2020-01-21 18:02:02 +00:00
Jorim Jaggi
6d13bf4a54 Fix up new insets dispatch behavior
- Fix up target SDK check
- Keep WindowInsets.CONSUMED concept to stop dispatch for
performance optimization. If the insets are handled at some point
in the hierarchy, we really don't need to dispatch it to all the
children. However, deprecate all the individual consuming methods
instead.

Bug: 118118435
Test: ViewGroupTest
Change-Id: I6b6627fb9c0a43444ee3f9dbeb978109f9138fbd
2020-01-21 17:03:04 +01:00
Jean-Michel Trivi
58423362b9 Merge "MediaFormat: keys for AAC DRC album mode & output loudness" 2020-01-21 16:00:00 +00:00
Bernardo Rufino
7b843abc1c Deprecate custom toasts
Deprecating custom toasts as discussed, the reasons are:
* We're blocking background custom toasts for security reasons
(go/toast-abuse).
* This means custom toasts are only possible if the app is in the
foreground. In the foreground the app has control over its own view
hierarchy and is capable of creating any visual elements it would
otherwise use custom toasts for.
* If we were to declare ongoing support for foreground toasts the
developer would be in a situation where they either check for
foreground status of the app before posting a custom toast or they
accept that the information they want to display may not be shown at
all. This is not great.
* There is also a desire to avoid custom toasts altogether since they
hurt UX consistency
(https://docs.google.com/presentation/d/1r5WEofZ_G3B9M65nS37uD4RqA4iV9HUmngyE6ZpBSsw/edit#slide=id.g7b69852da2_0_0).

Also added a recommendation to use Snackbars while the app is in the
foreground.

Bug: 128611929
Bug: 144754526
Test: Builds
Test: atest android.widget.cts.ToastTest
Change-Id: I4ed0bd671e308491590c28ff24087c76d0623f13
2020-01-21 15:58:47 +00:00
Alex Johnston
f13a6fb624 Add new APIs to control modification of admin configured networks
* Historically, only the device owner could prevent the user from modifying
  networks that have been configured by the device owner.
* In New COPE mode, the COPE profile owner should now be able to prevent the
  user from modifying networks as well as the device owner.
* This CL adds new APIs which are callable by the device owner or profile
  owner of an organization-owned managed profile. These new API can be used
  to toggle the global setting WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN, instead of
  setting the global setting directly.
* This CL only affects networks configured by the admin, is does not prevent
  the user from creating more network configurations.

Bug: 147476790
Test: manual testing with TestDPC
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAdminConfiguredNetworks
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testAdminConfiguredNetworks

Change-Id: Ia16e639922bb08cdacd9a3766d978ac150b693c5
2020-01-21 15:51:47 +00:00
Automerger Merge Worker
310f576b7f Merge "Add Framework APIs for Identity Credential." am: 2fb5112a35 am: 70485380f7 am: 6079e88fae
Change-Id: Iec2c6c1ec28b5697b8d2b444081a3240bea2af9e
2020-01-21 15:12:56 +00:00
David Zeuthen
70485380f7 Merge "Add Framework APIs for Identity Credential."
am: 2fb5112a35

Change-Id: Ifb511b43fd180980badef43b7ea3009e3a9ba00b
2020-01-21 06:45:12 -08:00
Treehugger Robot
2fb5112a35 Merge "Add Framework APIs for Identity Credential." 2020-01-21 14:38:14 +00:00
TreeHugger Robot
66031b3a58 Merge "Window Manager Flag Migration (10/n)" 2020-01-21 12:29:47 +00:00
Tiger Huang
7238a059c0 Window Manager Flag Migration (10/n)
Refine the APIs of system bar appearance/behavior:
- Add getters
- Let the caller can only change certain appearance flags with out
  touching others
- Adjust appearance/behavior for the legacy apps if they don't uses the
  new APIs

Bug: 118118435
Test: atest InsetsSourceProviderTest InsetsStateControllerTest
            InsetsPolicyTest WindowStateTests CommandQueueTest
            RegisterStatusBarResultTest InsetsFlagsTest
            LightBarControllerTest RegisterStatusBarResultTest
            ViewRootImplTest DisplayPolicyLayoutTests
            DisplayPolicyInsetsTests DisplayPolicyTests
            TaskSnapshotSurfaceTest

Change-Id: I388decc9dc9b617348a6352b81fe77a19f27a0d7
2020-01-21 19:00:17 +08:00
TreeHugger Robot
32367284d3 Merge "p2p: add new API to indicate Content Protection support status" 2020-01-21 08:54:13 +00:00
Jimmy Chen
e72c186980 p2p: add new API to indicate Content Protection support status
Bug: 147929113
Test: atest FrameworksWifiApiTests
Change-Id: I88b48b4a0a0bd5c80b920104bcb15dfd89ba1763
2020-01-21 07:48:54 +00:00
Hyundo Moon
78ae53ff27 Merge "Unhide routing session related APIs" 2020-01-21 07:19:14 +00:00
Xiao Ma
08a23eb7cd Merge "Make Information Elements (IE) of a scan result available as a public API." 2020-01-21 05:41:24 +00:00
Hyundo Moon
42bef14ac1 Unhide routing session related APIs
Bug: 147646634
Test: make update-api -j; atest mediaroutertest
Change-Id: Ia0278af6a2b62fa90e61bb278772c6369c62481d
2020-01-21 14:31:27 +09:00
Ivan Chiang
843cd4733c Merge "Add Media_Type_Document in FileColumns" 2020-01-21 03:29:28 +00:00
TreeHugger Robot
e77f98e2f3 Merge "Updates API on the FillResponse" 2020-01-21 01:59:08 +00:00
Jean-Michel Trivi
531731c703 MediaFormat: keys for AAC DRC album mode & output loudness
Bug: 144351156
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc
Change-Id: Ib228eff0457e959e0973c7037e8c4bedf90ca480
2020-01-20 15:28:58 -08:00
TreeHugger Robot
faa0e9dbca Merge "Expose four ICU fields from version 66.0.1" 2020-01-20 21:44:10 +00:00
Henry Fang
0129cd7df6 Merge "Framework support cas@1.2" 2020-01-20 21:26:11 +00:00
David Zeuthen
045b6de975 Add Framework APIs for Identity Credential.
The Identity Credential APIs provides an interface to a secure store
for user identity documents.  These APIs are deliberately fairly
general and abstract.  To the extent possible, specification of the
message formats and semantics of communication with credential
verification devices and Issuing Authorities (IAs) is out of scope for
these APIs.

The Identity Credential APIs rely on user authentication to protect
data elements in credentials which is implemented through
auth-tokens. This CL contains changes to CryptoObject to allow this.

Bug: 111446262
Test: CtsIdentityTestCases
Change-Id: I48f21a561b762d86c9ca8d229962782572412f47
2020-01-20 15:56:57 -05:00
Nikita Iashchenko
606205f5ae Expose four ICU fields from version 66.0.1
This CL exposes four previously temporarily hidden fields which was done
to avoid merge conflits in downstream branches:

 * android.icu.lang.UCharacter$UnicodeBlock#CHORASMIAN
 * android.icu.lang.UCharacter$UnicodeBlock#CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G
 * android.icu.lang.UCharacter$UnicodeBlock#DIVES_AKURU
 * android.icu.util.VersionInfo#UNICODE_13_0

Bug: 135752089
Test: m update-api
Change-Id: I5b3fec8edd6e990e839fbb8dfd93196cf60506c4
2020-01-20 20:09:42 +00:00
Automerger Merge Worker
a2fc38e471 Merge "Publish ImsMmtelManager API for better debugging" am: 09a87d3f9f am: cacdf69470 am: 7cc1436284
Change-Id: I8326658287662a5c503ff6ba2cbc2457fba5d829
2020-01-20 17:35:29 +00:00
Shi Lu
cacdf69470 Merge "Publish ImsMmtelManager API for better debugging"
am: 09a87d3f9f

Change-Id: Ib04eff33de8a6816520fa5fb0d0a2cc418394c3a
2020-01-20 09:10:07 -08:00
Shi Lu
09a87d3f9f Merge "Publish ImsMmtelManager API for better debugging" 2020-01-20 16:56:37 +00:00
Alex Buynytskyy
48a488aa33 Merge "Remove validation of APKs on transfer." 2020-01-20 14:44:15 +00:00
Shawn Lin
d459dc237c Merge "Add a new flag ALWAYS for layoutInDisplayCutoutMode" 2020-01-20 14:02:57 +00:00
Valentin Iftime
89df4c8d17 Change some UserManager APIs to @SystemApi
Added @SystemApi to all APIs currently used by TvProfileService that were @hide only.

Bug: 139914710
Test: Apps built with stable_system or experimental_system can use the APIs
Change-Id: I3499244b4d545a7a9401c7941663045bcd89c6fe
2020-01-20 09:39:40 +01:00
Xiao Ma
8e5ca5cd7e Make Information Elements (IE) of a scan result available as a public API.
Bug: 137835398
Test: atest FrameworksWifiTests
Test: attach to upstream hotspot device by selecting the sanned
      ssid from wifi settings, then check the OUI, vendor specific
      type fileds of IEs from the logcat.

Change-Id: If3b9906c75033f51bd35fcf054154125719ea958
2020-01-20 16:17:27 +09:00
Alex Buynytskyy
354d6697cd Remove validation of APKs on transfer.
It's unnecessary as it will be done on commit anyway.
This allows to make transfer simple and blocking.

Test: atest PackageManagerShellCommandTest
Bug: b/136132412

Change-Id: Ib017c6dc8a845a7d72898b0c0032c17932375c96
2020-01-20 05:54:40 +00:00
Nate Jiang
f1cbec5f5d Merge "Add set untrusted API for networkSuggestion" 2020-01-20 00:15:28 +00:00
Henry Fang
43cab92abe Framework support cas@1.2
Test: Manual
bug: 141783130
Change-Id: I62d42ad51444b8d58282f5d6992ba6f2169dd6d3
2020-01-19 22:28:44 +00:00
Daniel Bright
d47f1c439d Changed ApnSetting mappings to constants
* Changed ApnSetting to use constants instead of hardcoded strings for clarity.
* Made isDataCapable a public api.
* Removed feature flag android.hardware.telephony.data and opted for a resource
config setting instead.

Bug: 146206136
Test: FrameworkBaseTests, FrameworkOptTests
Change-Id: I19ac83f5865e8763cd9414c41d4609f79d0db164
2020-01-19 14:05:46 -08:00
Jing Ji
4a9cddd407 Merge changes from topic "app_kill_stats"
* changes:
  Add support to get historical app process exit reason
  Add support to send notification from Zygote to system_server
2020-01-19 18:37:04 +00:00
Ahmed ElArabawy
4f71df4032 Merge "Wifi: Add a public API to query for supported wifi standards" 2020-01-19 15:16:57 +00:00
Shawn Lin
167bcb1d79 Merge "Make DisplayCutout support waterfall insets" 2020-01-19 09:57:54 +00:00
Ahmed ElArabawy
9b3f076527 Wifi: Add a public API to query for supported wifi standards
This commit adds a public API to query for the supported wifi standards.

Bug: 143543900
Bug: 134688244
Bug: 144576344
Test: atest com.android.wifi.server
Change-Id: I57ac90c7d3473a71435bfb96b19d983ae433082a
2020-01-19 08:54:39 +00:00
Nate(Qiang) Jiang
8996b2d677 Add set untrusted API for networkSuggestion
Bug: 147766061
Test: atest android.net.wifi
Change-Id: I122643b07447d9514390fd0654bba77ed4dc4a0f
2020-01-19 00:51:50 -08:00
shawnlin
7dabcab3dd Make DisplayCutout support waterfall insets
For waterfall display, also take the waterfall insets into accout to
comput safe insets.

Change-Id: I1d5663ebd8588021387b7ae5296851769954f996
Bug: 146876976
Test: atest DisplayCutoutTest
2020-01-19 14:49:12 +08:00
Les Lee
c64b68c3e2 Merge changes from topic "lohs_sap_config"
* changes:
  wifi: Fix java doc error, use @code instead of @link
  softap: Update LOHS API usage
  SoftAp: Public SoftApConfiguration to replace WifiConfiguration
2020-01-19 05:53:56 +00:00
Jing Ji
8055a3a446 Add support to get historical app process exit reason
Apps can call ActivityManager.getHistoricalProcessExitInfos() to
get the historical process exit reason now.

Also add the below command to support dumping of the information
$ adb shell dumpsys activity exit-info [package name]

Bug: 136036078
Test: atest ApplicationExitInfoTest
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: I634f247e42a7e8e4535eedd76cf84089abdf1129
2020-01-17 20:47:53 -08:00