Commit Graph

28336 Commits

Author SHA1 Message Date
Charles Chen
f65e022caa Introduce WindowMetrics and WM#getCurrent/MaximumWindowMetrics
Bug: 128338354
Bug: 146820733
Test: atest WindowMetricsTests

Change-Id: I328b1b5a2296e470072a439e412276c1b6008789
2020-01-22 18:30:40 -08:00
Andrii Kulian
4a31697319 Introduce WindowContext API
Test: atest WmTests CtsWindowManagerDeviceTestCases
Bug: 128338354
Change-Id: I9c9dfc5e7f4edd4c968e60d2ffcbb19b5c72a853
2020-01-22 18:30:29 -08: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
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
shubang
17ebeb95ee Unhide filter event part 2
Test: make;
Bug: 139308734
Change-Id: Ic7897300f14ddd39381e363198bc8c39ce497a29
2020-01-20 19:16:51 -08:00
TreeHugger Robot
5cc8e20464 Merge "Make Descrambler @SystemApi" 2020-01-21 03:13:16 +00:00
Remi NGUYEN VAN
004f90d90f Add NetworkRequest#satisfiedBy to SystemApi
The API is useful for NetworkFactories to select requests based on
capabilities.
This mirrors NetworkCapabilities#satisfiedByNetworkCapabilities

Test: m
Bug: 138306002
Merged-In: I1d4a928256951397cabde5c352a872fd48d85859
Change-Id: I1d4a928256951397cabde5c352a872fd48d85859
(clean cherry-pick from internal branch)
2020-01-21 12:11:52 +09:00
TreeHugger Robot
2f6e9b48cf Merge "Mark Dvr class @SystemApi" 2020-01-21 03:11:23 +00:00
TreeHugger Robot
e77f98e2f3 Merge "Updates API on the FillResponse" 2020-01-21 01:59:08 +00:00
TreeHugger Robot
fd6439e3cd Merge "Make DvrSettings @SystemApi" 2020-01-21 01:03:55 +00:00
TreeHugger Robot
b1f2ed5533 Merge "Make Filter @SystemApi" 2020-01-21 01:03:29 +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
Henry Fang
30b7a57597 Merge "Change frontend analog constant to match the hal define" 2020-01-20 22:52:11 +00:00