Commit Graph

4358 Commits

Author SHA1 Message Date
Shuo Qian
2709706a3f Merge "Support Call Forwarding and Call Waiting APIs for voice call." 2020-01-27 20:56:30 +00:00
Peter Wang
26d8cb3860 Remove WindowManager references in Stk
Bug: 65884891
Bug: 143536562
Change-Id: Iaeb07569534a501b66f381f68c6341270529231b
Fix: 143536562
Test: Build
2020-01-27 16:49:44 +08:00
Jayachandran C
6c77262b9e Remove intent ACTION_REPORT_RADIO_BUG and use AnomalyReporter API
instead

Bug: 148306558
Test: Basic telephony
Change-Id: I1e66597d9cdc847a9adb02b6f97e9e9b5795adf2
2020-01-25 00:45:18 +00:00
Shuo Qian
ce96e26c27 Support Call Forwarding and Call Waiting APIs for voice call.
Allows system apps to get/set call forwarding configuration including
 reason, status, number and timeout.

Allows system apps to get/set the status for call waiting function;
Call waiting function enables the waiting for the incoming call when
 it reaches the user who is busy to make another call and allows users
 to decide whether to switch to the incoming call.

Test: Cts; Treehugger; https://paste.googleplex.com/5810435984982016
Bug: 147920077
Change-Id: Iadeea607749c67209df8cb1313f8b134df0a5c4a
2020-01-24 23:56:17 +00:00
Automerger Merge Worker
f9ad8bd357 Merge "Support API to toggle IMS on and off." am: bae97dc91e am: f24dfaf17f am: f50402e897
Change-Id: I0a786d0ce08ca2fc1eb06aa9d424df5ae1d99cfd
2020-01-24 19:06:33 +00:00
Grace Jia
f24dfaf17f Merge "Support API to toggle IMS on and off."
am: bae97dc91e

Change-Id: Id7a1a75472b13d5fbfa520dbdefc29e9c3a9b90e
2020-01-24 10:45:36 -08:00
Grace Jia
6bde5e6f7a Support API to toggle IMS on and off.
Bug: 141929672
Test: atest CtsTelephonyTestCases:TelephonyManagerTest
Change-Id: Icac337d99b578d2667657c07ab5bd13fd3e17590
2020-01-24 01:43:41 +00:00
Sarah Chin
e2a186abe6 Merge "CDMA MO SMS follow on DC feature" 2020-01-24 01:15:04 +00:00
Jiashen Wang
f7fba6089c Merge "Add isEuiccSupportedCountry system API to EuiccManager" 2020-01-24 00:44:35 +00:00
Jiashen Wang
2c6545a1c5 Add isEuiccSupportedCountry system API to EuiccManager
Currently LPA passed supported/unsupported countries to Settings by
writing the value into properties which is not ideal. Instead, we need to
provide an API in EuiccManager to determine whether eUICC is supported
in a country.
Bug: 147674689
Test: 1) Manually tested by flashing the change to the device
2) Change LPA to override onGetIsEuiccSupportedCountry
3) Make sure LPA can get the request

Change-Id: Ic94a2d2c771fd1ec2e5899d9e0428bb70cde4249
2020-01-23 13:48:47 -08:00
Nazish Tabassum
bf5aeaa3b3 CDMA MO SMS follow on DC feature
Add new constant to send MO CDMA SMS with expectMore option.

Test: atest FrameworksTelephonyTests
Bug: 72613248
Change-Id: I4fbcaa13648c66482f6bb741c433aede2ec824c7
2020-01-23 11:17:27 -08:00
Automerger Merge Worker
41e47d5271 Merge "Add support to pass password in Call barring" am: 92e0799d58 am: 7704c379e5 am: 1a35208aff
Change-Id: Iaecfd6f71418ce05b8ad6b1226df3f4e5a47a2b3
2020-01-23 03:41:35 +00:00
Sarah Chin
7704c379e5 Merge "Add support to pass password in Call barring"
am: 92e0799d58

Change-Id: I6e94f8cefc8ad614d642fad32296b2e45fc6ec42
2020-01-22 19:12:35 -08:00
Sarah Chin
92e0799d58 Merge "Add support to pass password in Call barring" 2020-01-23 01:58:20 +00:00
Shi Lu
6bc3f6ba3e Merge "Exposing Manual Network Selection Config" 2020-01-23 00:13:26 +00:00
Meng Wang
45a91b17f7 Merge "Use system API ACTION_SERVICE_PROVIDERS_UPDATED" 2020-01-23 00:01:57 +00:00
Sarah Chin
5819cbcbe3 Merge changes from topics "nr_band", "nw_sel"
* changes:
  Manual network selection by RAN type
  Added NR band support
2020-01-22 20:03:33 +00:00
shilu
defa60e05a Exposing Manual Network Selection Config
Bug: 143187230

Test: Manual
Change-Id: I0de1947b155162e0ebe4934adb9fca6c9d5450c2
2020-01-22 11:21:13 -08:00
Meng Wang
57f5655794 Use system API ACTION_SERVICE_PROVIDERS_UPDATED
Bug: 147921202
Test: make
Change-Id: I0a92f9a1beb13c7a7e8516462284e7723922f384
2020-01-22 10:49:38 -08:00
Automerger Merge Worker
406fbe5db2 Merge "Use Intent.EXTRA_REBROADCAST_ON_UNLOCK instead of hidden API" am: 9222283997 am: 7961f0d579 am: 20e328e78e
Change-Id: I9c19d1002e9f9feb1d88e54bcd630fd92e72cf68
2020-01-22 18:36:15 +00:00
Ying Xu
6fc642806f Merge "[Telephony Mainline] Telephony uses own user activity notification" 2020-01-22 18:30:06 +00:00
Meng Wang
7961f0d579 Merge "Use Intent.EXTRA_REBROADCAST_ON_UNLOCK instead of hidden API"
am: 9222283997

Change-Id: I2df7a271747582d519e6fade06e3e8ee599dc764
2020-01-22 10:12:31 -08:00
Meng Wang
9222283997 Merge "Use Intent.EXTRA_REBROADCAST_ON_UNLOCK instead of hidden API" 2020-01-22 17:54:35 +00:00
Automerger Merge Worker
8248661d25 Merge "New system API to create SMS PDU and expose copyMessageToIcc()" am: ca45896352 am: 57eefb695e am: bf98945d31
Change-Id: I0a4b1df54e6097b5436c0ffea2b22f39db40ed1e
2020-01-22 17:26:59 +00:00
Automerger Merge Worker
b534eb7c60 Merge "Cleanup code and documentation for SMS EF records" am: e27d58f0cd am: 443c2e678c am: 952b58ef7f
Change-Id: I815802532da085d88336a602e1578c715c543f33
2020-01-22 17:26:26 +00:00
Taesu Lee
57eefb695e Merge "New system API to create SMS PDU and expose copyMessageToIcc()"
am: ca45896352

Change-Id: I0a71827058f5ef75e164135516c6228649cfe072
2020-01-22 09:17:14 -08:00
Taesu Lee
443c2e678c Merge "Cleanup code and documentation for SMS EF records"
am: e27d58f0cd

Change-Id: I123472b4c8cd8fb89d7df1fecc152d571466f95e
2020-01-22 09:13:26 -08:00
Treehugger Robot
ca45896352 Merge "New system API to create SMS PDU and expose copyMessageToIcc()" 2020-01-22 16:57:44 +00:00
Treehugger Robot
e27d58f0cd Merge "Cleanup code and documentation for SMS EF records" 2020-01-22 16:56:33 +00:00
Sarah Chin
ccb14fbe63 Manual network selection by RAN type
Support new API for setNetworkSelectionModeManual with ran parameter

Bug: 68116277
Test: atest FrameworksTelephonyTests
Change-Id: I0e8b78b1b16d4bf6a6c0f39eedc48b253ca7a810
2020-01-22 07:28:29 -08:00
Automerger Merge Worker
0fff065736 Merge "Expose ImsConfig constants as part of API." am: 48f7f07d52 am: 7bb16100a4 am: 969feb570e
Change-Id: I2d9a1db2b952f9c1a3a0df2541a2468d261f3ba8
2020-01-22 07:36:59 +00:00
Tyler Gunn
7bb16100a4 Merge "Expose ImsConfig constants as part of API."
am: 48f7f07d52

Change-Id: I186a61a907571f9ae4b842230e6745246a5482f0
2020-01-21 23:06:06 -08:00
Tyler Gunn
48f7f07d52 Merge "Expose ImsConfig constants as part of API." 2020-01-22 06:50:17 +00:00
Suresh Koleti
ec1da29510 Add support to pass password in Call barring
- Adding password support for call barring over IMS

Test: Manual
Bug: 112248618
Change-Id: Ibdf159fbeb8eb5d80846db711fbff8979887733b
2020-01-22 10:52:51 +05:30
Tyler Gunn
30eee35a57 Expose ImsConfig constants as part of API.
Moving the config keys in ImsConfig to ProvisioningManager and defining
appropriate allowed values for all.  Old values are now deprecated.

Bug: 147732815
Test: Created and ran new CTS test to verify get/set of the new parameter
values.
Change-Id: Ifa7e1b6bcd21b4dfac541c258e1c53ee1515fa3d
2020-01-22 04:22:37 +00:00
Sarah Chin
8e7540eb88 Merge "Modify PhoneCapabilities for device capabilities" 2020-01-22 04:20:43 +00:00
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
Peter Wang
6a92dd47ba [Telephony Mainline] Telephony uses own user activity notification
Bug: 143536562
Test: Build
Change-Id: I9b25d63ff33d5b643dbf5bf0b7b509ce49b57a8f
2020-01-21 14:38:26 -08:00
Sarah Chin
b1264fe56b Modify PhoneCapabilities for device capabilities
Updated PhoneCapability from 1.3 RadioConfig HAL
New SimSlotCapability
Add getPhoneCapability API

Test: atest FrameworksTelephonyTests
Bug: 143238237
Bug: 143238191
Change-Id: I3349c3e50a806fb7bfd65b1bf16079878a5aeb06
2020-01-21 10:38:07 -08:00
Calvin Pan
2ffecdb9fd Merge "Redesign the setPreferredNetworkType" 2020-01-20 08:00:05 +00:00
zoey chen
16a1821f9c [Settings] To avoid use APIs in IccCard directly, moving APIs into TelephonyManager.
IccCard#changeIccLockPassword
IccCard#setIccLockEnabled
IccCard#getIccLockEnabled
Bug: 146983487
Test: manual

Change-Id: I1a3c3b15063ea00d0ca59bd5395f2bca8cdfe391
2020-01-19 00:02:10 +08:00
Shuo Qian
93642d4433 Support always reporting signal strength phone state listener
We should not allow other stack (such as Bluetooth) to directly control
 modem indication reporting. The hidden API
 TelephonyManager.setRadioIndicationUpdateMode added before do not
 support multiple clients and do not support the case when clients'
 process die.

The new solution would be adding a new listener
 PhoneStateListener.LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH and let
 telephony registry (which is running under system process) to tell
 telephony whether to always turn on signal strength update if any client
 is listening to this event.

Introduce a new system API for TelephonyRegistry
to tell Telephony module this listening mechanism.

Introduce a new permision for this function

Test: WIP (Have this CL out to try to catch up the API deadline)
Bug: 147322848

Change-Id: Iaee832c75b29d89dbc9e5c6659e1a7e89c4a467f
2020-01-17 22:25:46 -08:00
Meng Wang
0e8d91a230 Use Intent.EXTRA_REBROADCAST_ON_UNLOCK instead of hidden API
Bug: 147912059
Test: make
Change-Id: Iae022db9c8ae39e9f55034c91b98ca82869933c9
2020-01-17 15:58:13 -08:00
Daniel Bright
2f7dc20d92 Merge "Make string version of APN_TYPEs a @SystemApi" 2020-01-17 23:38:56 +00:00
Tom Taylor
086de218b9 Merge "Let sms app pass a logging id to telephony" 2020-01-17 22:11:53 +00:00
Automerger Merge Worker
782b1edcb7 Merge "Add call barring constants to ImsUtImplBase" am: 87cf4b146e am: c27cece2a5 am: 80191c2775
Change-Id: I5b476a1e0af70d65ba6b04d775ef54ae812d198d
2020-01-17 21:48:58 +00:00
Automerger Merge Worker
c27cece2a5 Merge "Add call barring constants to ImsUtImplBase" am: 87cf4b146e
Change-Id: I847cbce27c37731798809503c95152db0d1c6b69
2020-01-17 19:58:26 +00:00
Tom Taylor
66afc8fab2 Let sms app pass a logging id to telephony
Bug: 135755360

Test: manually test sending and receiving sms's and mms's via the
Messaging app and verify the messageId is passed back and forth.
Change-Id: I5a0d2cd9b8e5e75062cc895512da1a3357c57dbf
2020-01-17 08:01:05 -08:00
calvinpan
d11c1218d5 Redesign the setPreferredNetworkType
Some APPs(like OMA DM) might enable or disable 5G settings, so redesign
the setPreferredNetworkType behavior.

1. Create allowed_network_type in telephonyprovider
2. Create get/set allowed network type API
3. When APPs call setPreferredNetworkType() that will AND with allowed
network type.

Bug: 136730709
Test: By Manual
1. setAllowedNetwork to disable 5G
2. setPreferredNetworkTypeBitmask to set NR_LTE_GSM_WCDMA
3. framework set LTE_GSM_WCDMA to modem
Change-Id: Ia257e6ddaa33c32bc09340a59c9daf71ce1fa8cf
2020-01-17 20:56:41 +08:00