Commit Graph

687622 Commits

Author SHA1 Message Date
Pinyao Ting
b625f5a1d5 Merge "Update SHORTCUT_OWNERS to ensure future bugs will be routed in correct order." am: 10fc99d0b8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030444

Change-Id: I21e8592ff96da1c48abce34c0147e13f9b27b49e
2022-03-18 21:16:07 +00:00
Pinyao Ting
10fc99d0b8 Merge "Update SHORTCUT_OWNERS to ensure future bugs will be routed in correct order." 2022-03-18 20:56:36 +00:00
Raymond Tiong
2f04f34eb3 Merge "Add recommendation to use MediaActionSound class in a background thread since it relies on binder." am: 23398e75a3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2025024

Change-Id: I3d560d996fba6d50f55959797b20c4a8a0599fb0
2022-03-18 15:30:54 +00:00
Raymond Tiong
23398e75a3 Merge "Add recommendation to use MediaActionSound class in a background thread since it relies on binder." 2022-03-18 15:13:06 +00:00
Neil Fuller
53d21a8591 Merge "Add the ability to configure NTP port for tests" am: 72e04a7dc2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030083

Change-Id: Ib9ce60d57ccaece7a727e979fe939a80e9880399
2022-03-18 12:11:47 +00:00
Neil Fuller
72e04a7dc2 Merge "Add the ability to configure NTP port for tests" 2022-03-18 11:48:29 +00:00
Sudheer Shanka
a27cba0c10 Merge "Check if app's ntwk state will be changed before updating procstate." am: 36b9bc8e4b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030427

Change-Id: I01f44b56e76b087ed4ce3a5186e20a88b162e952
2022-03-18 01:20:59 +00:00
Sudheer Shanka
36b9bc8e4b Merge "Check if app's ntwk state will be changed before updating procstate." 2022-03-18 00:55:05 +00:00
Eric Biggers
6a72370d4b Merge "Remove support for converting from FDE to FBE" am: 855ec2d31a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2027583

Change-Id: If0a50e1b1f4727971d8f97dbaba8e456aa3092e2
2022-03-17 22:19:14 +00:00
Eric Biggers
855ec2d31a Merge "Remove support for converting from FDE to FBE" 2022-03-17 21:59:32 +00:00
Pinyao Ting
1234bf12fe Update SHORTCUT_OWNERS to ensure future bugs will be routed in correct order.
Change-Id: I6c247d6df38501b31491ec8cb7b7da7a430b5f1a
2022-03-17 17:39:47 +00:00
Sudheer Shanka
39da7d1c23 Check if app's ntwk state will be changed before updating procstate.
We check previous set procstate and the current procstate in the
UidRecord to see if the app's network access state is going to be
changed and so it needs to be done before we change the setProcstate
in the UidRecord.

Bug: 224438257
Bug: 218308105

Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: I0f3a4ca18cd889f49e3e3651799c3c14f9c2e218
2022-03-17 16:49:35 +00:00
Quentin Perret
968846563b Merge "Revert "Change Ethernet API to use OutcomeReceiver"" am: 8efc170b0b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030086

Change-Id: Iccac1e57a95a1de31b635039b9b6db80fecac5b1
2022-03-17 15:57:11 +00:00
Raymond Tiong
8c06d5e257 Add recommendation to use MediaActionSound class in a background thread since it
relies on binder.

Bug: 213174684
Test: N/A as it's a comment update
Change-Id: I01ddc0402bd27d19b2e9e7606ad327da703e8aaa
2022-03-17 15:37:51 +00:00
Quentin Perret
8efc170b0b Merge "Revert "Change Ethernet API to use OutcomeReceiver"" 2022-03-17 15:26:19 +00:00
Quentin Perret
0251301278 Revert "Change Ethernet API to use OutcomeReceiver"
Revert "Change network management listener to outcome receiver"

Revert submission 2028203-ethernet-outcomereceiver

Reason for revert: BuildMonitor investigating b/225169800
Reverted Changes:
I4c204a848:Change Ethernet API to use OutcomeReceiver
I7c46545a4:Change Ethernet API to use OutcomeReceiver
Id8fadfed9:Change network management listener to outcome rece...

Change-Id: I45af594f7233ed89113f4cf7f977092271980672
2022-03-17 15:20:53 +00:00
Patrick Rohr
fd9b76cc50 Merge "Change Ethernet API to use OutcomeReceiver" am: a7b1911815
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2028164

Change-Id: I03793f5a79fc869b5ddcd28b1fdc22c496359e63
2022-03-17 14:18:32 +00:00
Patrick Rohr
a7b1911815 Merge "Change Ethernet API to use OutcomeReceiver" 2022-03-17 13:53:18 +00:00
Neil Fuller
187c975af9 Add the ability to configure NTP port for tests
Add the ability to configure NTP port for tests via the command line and
the associated plumbing / knock-ons.

In-progress CTS tests will run a fake NTP server on the device itself.
Binding to NTP's default port of 123 is restricted. Therefore, we need
to be able to override the port for tests.

adb shell cmd network_time_update_service set_server_config --port 9999
adb shell dumpsys network_time_update_service
<observe port value>
adb shell cmd network_time_update_service force_refresh
<observe false>

adb shell cmd network_time_update_service set_server_config
adb shell dumpsys network_time_update_service
<observe port value>
adb shell cmd network_time_update_service force_refresh
<observe true>

Bug: 213393821
Test: See above
Change-Id: I21e8b735fab268df0d617848b8a562f86560ad16
2022-03-17 11:36:19 +00:00
Etienne Ruffieux
1de1157d4e Merge "[API Review] Replace usage of getUuids by new SystemApi" am: e2b00d3a7d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2020438

Change-Id: Ic33a98c771788a08938012fef1f82cc19c69de35
2022-03-17 10:26:52 +00:00
Etienne Ruffieux
e2b00d3a7d Merge "[API Review] Replace usage of getUuids by new SystemApi" 2022-03-17 09:44:51 +00:00
Patrick Rohr
eea9edf76d Change Ethernet API to use OutcomeReceiver
This change addresses API review feedback. In addition, it changes the
returned result from Network to the interface name. The current API
returning a Network object is racy and cannot be implemented correctly.
Users should instead use the ConnectivityManager#requestNetwork() API to
get hold of the Network for a given interface.

Bug: 220017952
Test: TH
Change-Id: I7c46545a47034be409071c2ec007d9e1480c6ed0
2022-03-17 08:20:45 +01:00
Patrick Rohr
3c088fc9cf Merge "Add Nullable IpConfiguration to ethernet update request" am: bc1479af8f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2025283

Change-Id: I198fac5840238cf5e5d02b7a0305614ab7d41622
2022-03-17 07:03:43 +00:00
Patrick Rohr
bc1479af8f Merge "Add Nullable IpConfiguration to ethernet update request" 2022-03-17 06:17:02 +00:00
SongFerng Wang
78d86dc33b Merge "Add the API to get the AudioLocation" am: 919194578b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2027930

Change-Id: I610a180cfaee503e34396dd7990ba38ed8c2c637
2022-03-17 03:51:56 +00:00
SongFerng Wang
919194578b Merge "Add the API to get the AudioLocation" 2022-03-17 03:11:20 +00:00
Ling Ma
4a0307dedf Merge "Unhide API isPersistent and getProfileId" am: 012ace16da
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2028924

Change-Id: Ic69ba34fbf1077eb2c364a2c2c9c6c785d8613ba
2022-03-17 00:17:46 +00:00
Bernardo Rufino
0b0a4d71a2 Merge "Add safer Intent extra APIs and deprecate old ones" am: 30e41a64b2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2020758

Change-Id: I040e1490a52221314111babd74f8fc3656b66d26
2022-03-17 00:14:48 +00:00
Ling Ma
012ace16da Merge "Unhide API isPersistent and getProfileId" 2022-03-16 23:50:28 +00:00
Eric Biggers
bf9e19c56c Remove support for converting from FDE to FBE
Devices that launched with Android 10 or later require FBE (File Based
Encryption) from the beginning, so there's no need to support converting
to FBE after the fact anymore.  This was only ever a developer option,
so it probably wasn't used much.  And in any case, it's not used
anymore, as isConvertibleToFBE() is hard-coded to return false.  Besides
the fact that FBE has been required for several releases now, this
functionality was only ever available on devices that use FDE (Full Disk
Encryption), but FDE support has been removed from Android.

Therefore, remove this unused code.

Bug: 208476087
Change-Id: I1f56c8e05fb3fba09aab4bf5f8609b0f552b8999
2022-03-16 23:17:11 +00:00
Bernardo Rufino
30e41a64b2 Merge "Add safer Intent extra APIs and deprecate old ones" 2022-03-16 23:16:37 +00:00
Ling Ma
5a093a0132 Unhide API isPersistent and getProfileId
Test: cts ApnSettingTest
Bug: 223599330
Change-Id: I1aaf0903e2b27b3a3c919e5c08c509a60053e74e
Merged-In: I1aaf0903e2b27b3a3c919e5c08c509a60053e74e
2022-03-16 19:31:02 +00:00
Patrick Rohr
edae1f6478 Add Nullable IpConfiguration to ethernet update request
This is not currently used by anyone, but will allow us to only update
NetworkCapabilities in the future. This could be useful for testing.

Test: atest EthernetServiceTests
Bug: 220017952
Change-Id: I9697399bad2bfe66c6f328064be75f4dfa10af81
2022-03-16 20:28:45 +01:00
Sooraj Sasindran
591578331e Merge "Use int array for included and excluded uids" am: fd8ac5ce94
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2019627

Change-Id: Ic9432694c0cfe8adce586fe627c4a25055f884d3
2022-03-16 18:22:46 +00:00
Sooraj Sasindran
fd8ac5ce94 Merge "Use int array for included and excluded uids" 2022-03-16 17:56:08 +00:00
Patrick Rohr
580f7ebbce Merge "Split out the ethernet API surface and use framework-connectivity-t" am: c02e97dcdd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958559

Change-Id: Icf47f5e5294dcc3f368237c312263481e4a678bd
2022-03-16 17:13:42 +00:00
Patrick Rohr
c02e97dcdd Merge "Split out the ethernet API surface and use framework-connectivity-t" 2022-03-16 16:03:30 +00:00
Evan Laird
b38d7f3d06 Merge "SystemUI: Fix signal bar icon overlay issue" am: ad9993d551
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2008755

Change-Id: I68f593feaa9bdf8e24c241914c1aa544b394877c
2022-03-16 15:18:02 +00:00
Evan Laird
ad9993d551 Merge "SystemUI: Fix signal bar icon overlay issue" 2022-03-16 14:55:07 +00:00
Frank Li
acb77010ac Merge "[DU04-2]Appropriate changes to the NetworkPolicyManager API" am: c48d90e91b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2007132

Change-Id: I95ac7442751dca1f4e469edbe950b38aca6c720a
2022-03-16 12:54:39 +00:00
Frank Li
c48d90e91b Merge "[DU04-2]Appropriate changes to the NetworkPolicyManager API" 2022-03-16 12:28:24 +00:00
SongFerngWang
b35ca2b570 Add the API to get the AudioLocation
1.Add the API(getAudioLocation) to get the AudioLocation of LE audio
device at LeAudioProfile.
2.Add LeAudio summary state

Bug: 218626547
Test: build pass
Change-Id: I3655d1771f0ee9d60f65406e83b42e40307bd4f3
Merged-In: I3655d1771f0ee9d60f65406e83b42e40307bd4f3
2022-03-16 18:09:27 +08:00
Sooraj Sasindran
39558844fa Use int array for included and excluded uids
Bug: 217365439
Test: presubmit
Change-Id: Ida507186aab1514e45c9531eec79ac78b19e247e
2022-03-16 07:18:40 +00:00
Frank
7c43d8fcac [DU04-2]Appropriate changes to the NetworkPolicyManager API
Divide the NetworkPolicyManager API
notifyStatsProviderWarningOrLimitReached into the following two APIs:
1. notifyStatsProviderWarningReached()
2. notifyStatsProviderLimitReached()

Bug: 216474563
Test: atest NetworkStatsServiceTest NetworkPolicyManagerTest
            NetworkPolicyManagerServiceTest OffloadControllerTest
Change-Id: Ic413eb532b5e24d4a7e2afabdcf643ab6607b1ed
2022-03-16 14:23:50 +08:00
Sewook Seo
6b3f890916 Merge "API review: Additional comment for QosApi." am: 634b3fec76
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2019630

Change-Id: Id188f5f6dd8fe26e3c3b37da0319faf05d556ba6
2022-03-16 03:52:34 +00:00
Sewook Seo
634b3fec76 Merge "API review: Additional comment for QosApi." 2022-03-16 03:20:55 +00:00
Allen Hair
3e53e056ee Merge "Add tool for injecting tracing code into a method." am: a7006818d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2016118

Change-Id: I6d0a417824c7f3b22a96f14400d540b73dd377ed
2022-03-16 01:29:18 +00:00
Sewook Seo
cb5633803c Merge "API review: Additional documentation & annotation" am: 04c1004ef4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2019623

Change-Id: I0087dae04f29f790dd31114f9486d7fcef7c99fb
2022-03-16 01:28:22 +00:00
Allen Hair
a7006818d3 Merge "Add tool for injecting tracing code into a method." 2022-03-16 01:14:36 +00:00
Sewook Seo
04c1004ef4 Merge "API review: Additional documentation & annotation" 2022-03-16 01:01:34 +00:00