Commit Graph

28349 Commits

Author SHA1 Message Date
Hall Liu
72fec6d370 Add setSystemSelectionChannels API
Add setSystemSelectionChannels as a SystemApi, connecting to the
identically-named HAL method.

Fixes: 144595103
Test: manual through the testapp, atest TelephonyManagerTest
Change-Id: I52ff09258af772e272937dd137813d0d63c50cb5
2020-01-21 14:52:17 -08:00
Shuo Qian
c3de6ca956 Merge "Support always reporting signal strength phone state listener" 2020-01-21 22:40:55 +00:00
Nate Jiang
035705ccd9 Merge "Add error code for app adding invalid suggestions" 2020-01-21 22:34:11 +00:00
Valerie Hau
2eb5cc7bf9 Merge "Adding WINDOW_MANAGER_NATIVE_BOOT and window_manager_use_blast_adapter flags" 2020-01-21 22:20:04 +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
Xiangyu/Malcolm Chen
b058ae4698 Merge "Add HomeVisibilityObserver APIs in ActivityManager." 2020-01-21 20:58:47 +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
Alex Lin
3087e3d69e Merge "Add public API for EuiccService log dump" 2020-01-21 19:31:52 +00: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
Valerie Hau
eeef1a9baa Adding WINDOW_MANAGER_NATIVE_BOOT and window_manager_use_blast_adapter flags
For ViewRootImpl on BLAST experiment, setting up namespace and flag to
turn on Blast adapter through P/H experiment

Bug: 147096935
Test: build, boot, adb shell device_config put
window_manager_native_boot wm_use_blast_adapter true/false
check that BLAST adapter is turned on/off as expected
Change-Id: Ie1b158721ac9b751fcf3954310259f14486d3bb8
2020-01-21 10:01:39 -08:00
TreeHugger Robot
52bf7227ec Merge "WifiScanner: Deprecate gscan API's" 2020-01-21 17:10:47 +00:00
Nick Chalko
454f6eb824 Merge "Unhide scan methods and classes." 2020-01-21 17:10:03 +00:00
David Su
c1728f1613 Merge changes from topics "framework-jar-build-against-framework-wifi-stubs", "settings-suggestions-apis"
* changes:
  framework.jar - include framework-wifi-stubs instead of framework-wifi (Attempt 2)
  Expose WifiNetworkSuggestion.getWifi/PasspointConfiguration()
2020-01-21 17:05:24 +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
Nick Chalko
386dead7ec Unhide scan methods and classes.
Bug: 139308734
Test: m framework-all system-api-stubs-docs-update-current-api
Change-Id: I4b68a50b1b880091da70a455f5c58364d27b5283
2020-01-21 07:44:39 -08:00
Roshan Pius
f93897581d WifiScanner: Deprecate gscan API's
Bug: 71855918
Test: Compiles
Change-Id: Ibf5c4b012af74914f997866fa24608a854dd9868
2020-01-21 07:16:02 -08: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
Remi NGUYEN VAN
938f330d63 Merge "Add NetworkRequest#satisfiedBy to SystemApi"
am: b8f9c4f5b2

Change-Id: I817020ac31dec9e10ea27fa38f07250f5c447de1
2020-01-21 06:21:11 -08:00
Remi NGUYEN VAN
b8f9c4f5b2 Merge "Add NetworkRequest#satisfiedBy to SystemApi" 2020-01-21 14:12:27 +00:00
TreeHugger Robot
9fdebc8c9e Merge "Reserving an API EXTRA for Data Loader Type in installation." 2020-01-21 13:30:59 +00:00
Chalard Jean
18d073c71f Merge "New NetworkAgentConfig API to replace NetworkInfo WiFi stuff." 2020-01-21 13:28:35 +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
Chalard Jean
138271c795 New NetworkAgentConfig API to replace NetworkInfo WiFi stuff.
Bug: 139268426
Test: FrameworkWifiTests
Change-Id: Id13fcf41e05fd1eb26c86717e2684c724b94e401
2020-01-21 18:30:31 +09: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
TreeHugger Robot
8bf4bf766e Merge "Make TimeFilter @SystemApi" 2020-01-21 07:47:14 +00:00
TreeHugger Robot
29d2fc2f71 Merge "Unhide FilterConfiguration part 2" 2020-01-21 07:36:16 +00:00
Hyundo Moon
78ae53ff27 Merge "Unhide routing session related APIs" 2020-01-21 07:19:14 +00:00
Ahmed ElArabawy
3243dd66e7 Merge "Wifi: Add device wiphy capability parameters" 2020-01-21 06:44:20 +00:00
shubang
2ac4284cf1 Make TimeFilter @SystemApi
Test: make;
Bug: 139308734
Change-Id: I6740cb637b57a7d136c1614fcd437191fa6ad2c8
2020-01-20 22:13:26 -08:00
shubang
5e430e08b9 Unhide FilterConfiguration part 2
Test: make;
Bug: 139308734
Change-Id: Iafb97c22390c9a1a43a77a9c1c818d87da1dbd49
2020-01-20 22:07:33 -08:00
TreeHugger Robot
c33182c369 Merge "Mark LnbCallback @SystemApi" 2020-01-21 05:51:32 +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
TreeHugger Robot
071a05b636 Merge "Unhide filter event part 2" 2020-01-21 05:29:32 +00:00
Ahmed ElArabawy
a7079f81aa Wifi: Add device wiphy capability parameters
This commit adds the following parameters to DeviceWiphyCapabilities:
1. Support of 160MHz / 80+80MHz channel width
2. Max number of Tx/Rx spatial streams.

Bug: 144576344
Test: atest com.android.wifi.server
Change-Id: Iad4ce736968d23d5abb43c8948d34fe03dcbcb01
2020-01-21 05:10:14 +00:00
shubang
1dc11a4a07 Mark LnbCallback @SystemApi
Test: make;
Bug: 139308734
Change-Id: I3cf727c3e24a8629e29b63a84cbee4f49b8b731b
2020-01-20 20:13:53 -08:00
Ivan Chiang
843cd4733c Merge "Add Media_Type_Document in FileColumns" 2020-01-21 03:29:28 +00:00