Commit Graph

687550 Commits

Author SHA1 Message Date
Jack He
69e560995c Merge "Shell: Grant BLUETOOTH_PRIVILEGED permission to Shell" 2022-03-19 00:04:53 +00:00
Sarah Chin
64eae25b91 Merge "PhysicalChannelConfig.Builder change IAE to error logs" 2022-03-18 22:17:13 +00:00
Benedict Wong
7d042ad402 Merge changes I67470903,Ia80da6d4,I332397f4
* changes:
  Define and implement getProvisionedVpnProfileState()
  Introduce VpnProfileState
  Define new constants of ACTION_VPN_MANAGER_EVENT
2022-03-18 21:47:47 +00:00
Sarah Chin
600bc1f2ef Merge "Handle null ApnSetting in PDCS" 2022-03-18 21:47:16 +00:00
Sarah Chin
f3ecc6182b Merge "Update getSubscriptionPlans documentation" 2022-03-18 21:22:49 +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
Sarah Chin
ed693056e0 Handle null ApnSetting in PDCS
ApnSetting is nullable in PDCS. TelephonyRegistry don't broadcast data
connection if ApnSetting is null.

Test: atest TelephonyRegistryTest
Bug: 221399355
Change-Id: I7a59d1d4bc6838b5032920e3a89b984336481562
Merged-In: I7a59d1d4bc6838b5032920e3a89b984336481562
2022-03-18 13:28:24 -07:00
Sarah Chin
4f0fbcea4b PhysicalChannelConfig.Builder change IAE to error logs
Test: atest PhysicalChannelConfigTest
Bug: 219586992
Change-Id: I4e777e31b005b30876a72c1e2efe57b86a1ffc9b
Merged-In: I4e777e31b005b30876a72c1e2efe57b86a1ffc9b
2022-03-18 13:17:10 -07:00
Sarah Chin
5fe695fbdd Update getSubscriptionPlans documentation
getSubscriptionPlans can return null if a plan has not been set for the
given subId yet. Change the annotation from @NonNull -> @Nullable and
update the documentation. SubscriptionManager#getSubscriptionPlans will
return the @NonNull plans instead.

Test: build
Bug: 213896944
Change-Id: I7b232a1a695d1db7cb0d0a177bb1090e9033b805
Merged-In: I7b232a1a695d1db7cb0d0a177bb1090e9033b805
2022-03-18 09:58:47 -07: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
72e04a7dc2 Merge "Add the ability to configure NTP port for tests" 2022-03-18 11:48:29 +00:00
lucaslin
0ae29f0cd5 Define and implement getProvisionedVpnProfileState()
CTS-Coverage-Bug: 225010642
Bug: 225010642
Test: CtsNetTestCases:Ikev2VpnTest
Change-Id: I67470903bba2f783e316be47a50c438e049ca856
2022-03-18 11:24:12 +00:00
lucaslin
f306a53e48 Introduce VpnProfileState
This class can provide the state of VPN, session key and the
settings of always-on and lockdown.

CTS-Coverage-Bug: 225010642
Bug: 225010642
Test: N/A
Change-Id: Ia80da6d4c165680f8c8c7cba0aa4246a5c5934da
2022-03-18 11:24:01 +00:00
lucaslin
836a3e3d83 Define new constants of ACTION_VPN_MANAGER_EVENT
CTS-Coverage-Bug: 225010642
Bug: 225010642
Test: N/A
Change-Id: I332397f4f65596740670d96c72c85ad216d2a1bc
2022-03-18 08:08:35 +00:00
Jack He
fedd79c9d7 Shell: Grant BLUETOOTH_PRIVILEGED permission to Shell
* So that we can run CTS test with Shell permission

Bug: 225250442
Test: make
Change-Id: I9bf52d9325732c8ea1fef102591da1198b8c4fae
2022-03-18 00:33:22 -07: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
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
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
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
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
bc1479af8f Merge "Add Nullable IpConfiguration to ethernet update request" 2022-03-17 06:17:02 +00:00
SongFerng Wang
919194578b Merge "Add the API to get the AudioLocation" 2022-03-17 03:11:20 +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
fd8ac5ce94 Merge "Use int array for included and excluded uids" 2022-03-16 17:56:08 +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
ad9993d551 Merge "SystemUI: Fix signal bar icon overlay issue" 2022-03-16 14:55:07 +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
634b3fec76 Merge "API review: Additional comment for QosApi." 2022-03-16 03:20:55 +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
sewookseo
81db932f12 API review: Additional comment for QosApi.
Adding comment to EpsBearerQosSessionAttribute javadoc.

Bug: 216368595
Test: build
Change-Id: Ie7b8722abb082743bb67f77797de900913cf2871
2022-03-16 00:09:42 +00:00
Lorenzo Colitti
b5a5e6ce75 Merge "Rename setUidForeground to noteUidForeground" 2022-03-15 23:33:26 +00:00
sewookseo
10f49a1072 API review: Additional documentation & annotation
Add annotation @RadioAccessNetwork for setupDataCall parameter.
Add comment to API documentation for start/cancelHandover.

Bug: 215240597
Test: build
Change-Id: Ibb4abfeea68d710815f59bce4c6edb2e832cc8bd
2022-03-15 22:32:12 +00:00
Eric Biggers
6a8f891205 Merge changes from topic "remove-auth-token"
* changes:
  Remove HardwareAuthToken parameter from unlockUserKey
  Remove HardwareAuthToken parameter from clearUserKeyAuth
  Remove HardwareAuthToken parameter from addUserKeyAuth
  Don't pass HardwareAuthToken to unlockUser() in non-SP verifyCredential
  Remove non-SP based setLockCredentialInternal()
  Remove HardwareAuthToken support from FakeStorageManager
2022-03-15 21:33:26 +00:00
Eric Biggers
841350e6ac Merge changes from topic "remove-fde"
* changes:
  Remove unused FDE methods from StorageManager
  Stop checking FDE password cache
  Remove checks for FDE in 'adb backup'
2022-03-15 17:23:08 +00:00
Steven Moreland
180aa227f6 Merge "ParcelableHolder: assert stability on read" 2022-03-15 17:00:57 +00:00
Jack Yu
71649aa3f4 Merge "Used single TCP configuration for devices" 2022-03-15 16:58:08 +00:00