Commit Graph

178 Commits

Author SHA1 Message Date
Lorenzo Colitti
c5f2057d02 Merge changes I28e39400,Ibada8b42
* changes:
  UserManager restricted profile SystemApis
  Improve testing of CONNECTIVITY_ACTION broadcasts.
2021-01-14 10:39:48 +00:00
Adam Bookatz
81762facae UserManager restricted profile SystemApis
Makes two new SystemApis:
getRestrictedProfileParent()
canHaveRestrictedProfile()

Temporarily disables VPN Tests that rely on the old APIs until those
tests are updated (b/175883995).

Bug: 171529940
Test: atest FrameworksNetTests:com.android.server.connectivity.VpnTest
Test: Tests for UserManager SystemApis are TODO awaiting completion of new user test infrastructure (b/163890431)
(cherry picked from commit 20ba13f5bc)
Change-Id: I28e39400039631e7d391dc7b0d003e8a38d1f06a
2021-01-14 17:39:13 +09:00
Treehugger Robot
7ae76a2f3f Merge "Add feature flag for app hibernation." 2021-01-14 00:01:19 +00:00
satayev
0e9334cb80 Revert "[VCN01] Add NOT_VCN_MANAGED capability"
This reverts commit 85e0ad7986.

Reason for revert: b/177411288 broken test

Bug: 177411288
Bug: 175662146
Change-Id: I02a25b83e62ab9a2ed22a98530d62b08de73f56e
2021-01-13 15:04:23 +00:00
junyulai
85e0ad7986 [VCN01] Add NOT_VCN_MANAGED capability
Add new capability to indicate whether a network is
managed by Virtual Carrier Network (VCN). This is needed
to identify networks between VCN managed network and
others. And this capability will be:
  1. mutable
  2. requestable
  3. set by default for network agents and requests
  4. allowed for test networks

Test: 1. atest FrameworksNetTests CtsNetTestCases
      2. adb shell dumpsys connectivity
      3. atest ConnectivityServiceTest#testLoseMutableAndRequestableCaps
Bug: 175662146

Change-Id: Ia5eeb3912a687164fa95d7ba5516fd73abca79ba
2021-01-13 11:05:40 +08:00
Hai Shalom
88baf235a9 Merge "Support for Venue URL and friendly name from Network agent" 2021-01-13 01:54:05 +00:00
James Lin
5b51530d0d Merge "[RCS UCE] Expose the RCS UCE publishing device's capabilities APIs" 2021-01-13 00:33:57 +00:00
Tomasz Wasilczyk
c353781098 Merge "Keep Vehicle internal network always up" 2021-01-12 22:40:50 +00:00
Tomasz Wasilczyk
ab315c597d Keep Vehicle internal network always up
Bug: 171801262
Test: Boot with and without overlay set and check ifconfig
Change-Id: I1fd332caf3e09924abcfec9c2c137363be7873e4
2021-01-12 10:33:38 -08:00
James.cf Lin
50c18c12c6 [RCS UCE] Expose the RCS UCE publishing device's capabilities APIs
The RCS publishing device's capabilities APIs are exposed to be the SystemAPI and add the CTS for these APIs.

bug: 174187744
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Change-Id: I731dbe64614b91efa0002ffccb638b4a10f7c5f4
2021-01-12 10:56:41 +08:00
Hai Shalom
ef5f5b1ea7 Support for Venue URL and friendly name from Network agent
Extend CaptivePortalData with a member to hold the venue friendly
name. If CaptivePortalData is initialized by both the network
agent and Capport, merge the two objects to include the venue
friendly name and prioritize the venue URL from the network
agent.

Bug: 162783305
Test: atest ConnectivityServiceTest
Test: atest CtsNetTestCasesLatestSdk:CaptivePortalDataTest
Test: End-to-end test
Change-Id: I4fdf356be42237c5b6c0ae5bacfd3cec4726861b
2021-01-11 18:45:34 -08:00
Kevin Han
f62a11079f Add feature flag for app hibernation.
Add feature flag for app hibernation so that we can begin implementing
behind a feature flag.

We use DeviceConfig as per instructions at go/android-flags-setup so
that we may eventually roll this out to dogfood devices using P/H and
Mendel.

Bug: 175829330
Test: Builds
Change-Id: I5c140ee6b20c887c9513f76254f752b1a9455a8a
Merged-In: I27b4bdd9b6ed25b06fc685183f0dc872094f1b5c
2021-01-11 13:46:33 -08:00
Treehugger Robot
ae4301b9ec Merge "Bluetooth: Implement API to get device identification information" 2021-01-08 21:42:32 +00:00
Junyu Lai
2960af3978 Revert "wifi: Add systemAPi:setSubscriberId in NetworkAgentConfig"
This reverts commit 7521c2277a.

Reason for revert: After discussion, we prefer to add a field in NetworkCapabilities instead. Sorry for inconvenience.

Change-Id: I2e8840a797df9d1594f2b8b576bcd45beb184fca
2021-01-08 19:22:28 +08:00
Fei Zheng
62d30f1a08 Bluetooth: Implement API to get device identification information
Submitted on behalf of a third-party: Samsung System LSI

License rights, if any, to the submission are granted solely by the
copyright owner of such submission under its applicable intellectual
property.

Copyright (C) 2015 Samsung System LSI
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Third Party code includes additions/modifications from Qualcomm Innovation Center, Inc.

Call BluetoothDevice.sdpSearch(BluetoothUuid.DIP) to search DIP information,
and receive intent BluetoothDevice.ACTION_SDP_RECORD to get SdpDipRecord from
BluetoothDevice.EXTRA_SDP_RECORD

Bug: 141666056
Test: atest BluetoothInstrumentationTests
Sponsor: alainv@
Tag: #feature

Change-Id: I82d0979b77d28ec36fde6616622d216a28310b4a
2021-01-08 10:59:46 +08:00
Les Lee
6ae2535ec6 Merge "wifi: Add systemAPi:setSubscriberId in NetworkAgentConfig" 2021-01-08 00:54:51 +00:00
Shuo Qian
077cefb9a9 Merge "Add Setting API to set/get enriched calling with call composer user option" 2021-01-07 18:32:44 +00:00
Treehugger Robot
1fb7770381 Merge "Introduce public APIs to check whether a remote bluetooth headset supports voice recognition as well as echo cancellation and/or noise reduction via the AT+BRSF bitmask" 2021-01-07 17:55:04 +00:00
Rahul Sabnis
2b2f76b7bb Introduce public APIs to check whether a remote bluetooth headset
supports voice recognition as well as echo cancellation and/or noise
reduction via the AT+BRSF bitmask

Tag: #feature
Bug: 172960943
Test: Manual
Change-Id: I40579d9b6d493d2b32fb260983eeb7c79cc0d525
2021-01-06 17:20:19 -08:00
Henry Fang
c8af272fb6 Merge "TvProvider API standardization for ARIB and DVB TvProvider" 2021-01-07 00:30:05 +00:00
Shuo Qian
bfd05221a3 Merge "Add CAPABILITY_TYPE_CALL_COMPOSER in MmTelFeature" 2021-01-06 00:48:00 +00:00
Shuo Qian
4260bc4f95 Merge "Add Call Composer Carrier Config keys" 2021-01-06 00:48:00 +00:00
Shuo Qian
a4524a936a Merge "Add call composer Extras for enriched calling" 2021-01-06 00:48:00 +00:00
Shuo Qian
b31c9b4702 Merge "Add CAPABILITY_CALL_COMPOSER in PhoneAccount for enriched calling." 2021-01-06 00:48:00 +00:00
Shuo Qian
6e419a49a7 Merge "Add Call Composer API extras in TelecomManager" 2021-01-06 00:48:00 +00:00
Daniel Bright
1948c69946 Merge changes from topics "apn_throttle", "rename_retry_interval"
* changes:
  Add apn throttle status notifications to QNS
  Renamed retry interval to retry duration
2021-01-06 00:43:25 +00:00
vichang
4eb4e375f7 Merge "Deprecate Patterns.IP_ADDRESS" 2021-01-05 22:18:48 +00:00
Daniel Bright
cc7c94c433 Merge "Add callSessionIntiating + callSessionInitatingFailed" 2021-01-05 21:55:59 +00:00
Daniel Bright
f2f714a0dc Add apn throttle status notifications to QNS
* Added wiring for the apn unthrottled indication
* Added method to QNS that is notified when there is a change to
  the way an APN is throttled.

Test: Ran telephony tests
Test: Booted up device
Test: Checked for log message in
      NetworkAvailabilityProvider#onReportApnThrottleStatusChanged
Bug: 167434852
Bug: 174850845
Merged-In: Ia4dd3036f583a97e42b6054019005df1b33dc33c
Change-Id: Ia4dd3036f583a97e42b6054019005df1b33dc33c
2021-01-05 11:36:34 -08:00
Jack Yu
133b7dc759 Renamed retry interval to retry duration
Fix: 171981823
Test: FrameworksTelephonyTests
Merged-In: I7c4bbe0a77301761525ae793892bb811637027b5
Change-Id: I7c4bbe0a77301761525ae793892bb811637027b5
2021-01-05 11:01:26 -08:00
Anton Hansson
5a4fc1d6e1 Merge "Unbundle ART API from android-non-updatable" 2020-12-29 10:31:44 +00:00
Paul Hu
6bc7032b85 Merge "Add DnsResolverServiceManager" 2020-12-29 02:14:59 +00:00
lesl
7521c2277a wifi: Add systemAPi:setSubscriberId in NetworkAgentConfig
The wifi (mainline module) need to set the subscriberId for specific
wifi network.

Bug: 176396812
Test: TreeHugger
Change-Id: Ie97d3dad81c87d41a360558e91c83278595ff475
2020-12-28 18:15:52 +08:00
Victor Chang
97006e6b51 Deprecate Patterns.IP_ADDRESS
Bug: 165470548
Test: n/a
Change-Id: Ic1e188ea118c87514815ec9581bb158ab66e22e4
2020-12-24 17:41:19 +00:00
Daniel Bright
f0e8399729 Add callSessionIntiating + callSessionInitatingFailed
* Add callSessionIntiating which occurs in between the session
  starting and the call session progressing.

Bug: 161218980
Test: FrameworksTelephonyTests
Change-Id: I745af44f83915b92e0cfa57b4edf4f11ca575f5d
2020-12-23 15:28:42 -08:00
Anton Hansson
fc948d8675 Unbundle ART API from android-non-updatable
Stop tracking the ART APIs in the non-updatable current.txt, and
instead add in the txt/srcjar/jar files produced by the art module's
java_sdk_library.

Bug: 173606718
Test: manual last_released check of merged api txt (b/174847574 to
      automate)
Change-Id: I446a381f2b364a114ce391b99a13742d6769f14d
2020-12-23 14:51:17 +00:00
Eric Laurent
f39726f262 AudioManager: Add communication device management APIs
Add new APIs to manage the audio device used for communication
use cases (Cellular calls, VoIP and Video calls).
These APIs are meant to replace specific APIs like setSpeakerPhoneOn()
and provide a single generic way of configuring the audio device selected
for calls.
They will be used for newly added device types (e.g. BLE audio) instead
of adding new specific APIs.
They will also offer more options like for instance allowing to select the
earpiece (handset) device when a wired headset is connected.
The new APIs are:
 - boolean setDeviceForCommunication(AudioDeviceInfo)
 - void clearDeviceForCommunication()
 - AudioDeviceInfo getDeviceForCommunication()

A listener is also added for applications to monitor current communication
device selection:
- OnCommunicationDeviceChangedListener
As well as listener registration and unregistration APIs:
- addOnCommunicationDeviceChangedListener()
- removeOnCommunicationDeviceChangedListener()

Bug: 161358428
Test: make && atest AudioCommunicationDeviceTest
Change-Id: I8028d842e4a8ca1abe0f87d03e3c5d57c46b9362
Merged-In: I8028d842e4a8ca1abe0f87d03e3c5d57c46b9362
2020-12-23 08:36:12 +00:00
Eric Laurent
617d14954d Merge "Support set/clear/get preferred device for capture preset." 2020-12-23 08:34:27 +00:00
Chiachang Wang
b1de9a09bd Merge "[IT02] Expose system api to report radio power state" 2020-12-23 05:19:51 +00:00
Shuo Qian
d8e09b9744 Add CAPABILITY_TYPE_CALL_COMPOSER in MmTelFeature
Test: cts
Bug: 173437870
Change-Id: Ife05ba75a3f23d0c18b3aa068881b6646dee6db5
Merged-In: Ife05ba75a3f23d0c18b3aa068881b6646dee6db5
(cherry picked from commit 89667c6bb2)
2020-12-23 02:17:23 +00:00
Shuo Qian
c0ddad5454 Add Call Composer Carrier Config keys
Test: cts
Bug: 173437870
Change-Id: I12d78f475b947cedb201ff1b379cc64a8f876e62
Merged-In: I12d78f475b947cedb201ff1b379cc64a8f876e62
(cherry picked from commit 136900101b)
2020-12-23 00:15:09 +00:00
Shuo Qian
856caa7371 Add call composer Extras for enriched calling
Test: unit test; cts
Bug: 173437870

Change-Id: I2af39eea48737df1bf629caea5b617736635f2aa
Merged-In: I2af39eea48737df1bf629caea5b617736635f2aa
(cherry picked from commit 36b3dbc3ab)
2020-12-23 00:14:46 +00:00
Shuo Qian
abee612ab0 Add CAPABILITY_CALL_COMPOSER in PhoneAccount for enriched calling.
Test: cts
Bug: 173437870
Change-Id: Ibd1b0f0bc66487cfdb05d3de46c7e8df74eeb8cc
Merged-In: Ibd1b0f0bc66487cfdb05d3de46c7e8df74eeb8cc
(cherry picked from commit d24aea3148)
2020-12-23 00:00:44 +00:00
Shuo Qian
631df95517 Add Setting API to set/get enriched calling with call composer user option
Test: cts
Bug: 173437870
Change-Id: Iaf2cb72864dca992249395103aedee93ff8d3ac0
Merged-In: Iaf2cb72864dca992249395103aedee93ff8d3ac0
(cherry picked from commit ccc5af201a)
2020-12-22 23:56:08 +00:00
Shuo Qian
850627f948 Add Call Composer API extras in TelecomManager
Test: cts
Bug: 173437870
Change-Id: I46cd9ee72de3d217fa23b368c0b88811cf8ce555
Merged-In: I46cd9ee72de3d217fa23b368c0b88811cf8ce555
(cherry picked from commit 3ed3883ff6)
2020-12-22 23:40:55 +00:00
Greg Kaiser
469e5b3317 Merge "Revert "Fix permission on TM#isDataEnabled"" 2020-12-22 19:36:50 +00:00
Jiabin Huang
a6421faaac Support set/clear/get preferred device for capture preset.
Support set/clear/get preferrd device for capture preset. The preferred
device will be used for audio routing when it is availabled. The
preferred device doesn't need to be present when setting.

Bug: 160352965
Test: atest AudioServiceTest
Test: atest AudioServiceHostTest
Test: atest CarAudioZonesHelperTest

Change-Id: Ib7aa142ad4c56a8138c7b440e8efbbf7a7ee38a6
Merged-In: Ib7aa142ad4c56a8138c7b440e8efbbf7a7ee38a6
2020-12-22 18:54:15 +00:00
Greg Kaiser
8ce575b256 Revert "Fix permission on TM#isDataEnabled"
This reverts commit f7dc3f6788.

Reason for revert: b/176163590, continual fatal exceptions in telephony on reboot
Bug: 176163590
Test: Local revert and the fatal exceptions go away

Change-Id: If7cbe3e5b8764f0ee72985830880157f64d71101
2020-12-22 17:35:44 +00:00
Eric Laurent
7f73ba815a Merge "Introduce device(s) role for strategy." 2020-12-22 17:11:45 +00:00
paulhu
b6fcddfd5d Add DnsResolverServiceManager
Add DnsResolverServiceManager to obtain android.net.IDnsResolver
IBinder for incoming connectivity service mainline.

Bug: 170598012
Test: atest FrameworksNetTests
Change-Id: Ibd7a678ceaaa550ff3d8eff1d0c4d3a5073b5527
2020-12-22 21:31:39 +08:00