Commit Graph

4341 Commits

Author SHA1 Message Date
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
Daniel Bright
8bb56fc88c Make string version of APN_TYPEs a @SystemApi
The string version of Apn Types are used in the carrier config table.
Modules besides Telephony uses this table directly and so it made sense to expose
this as a @SystemApi

Test: ApnSettingsTest
Bug: 147465477
Change-Id: I1c344b3ff482d973b8bf51a33956a7f90f291634
2020-01-16 22:34:38 -08:00
Shuo Qian
4801bd0970 Merge "Refactor SmsManager not to use ActivityThread hidden API in Mainline" 2020-01-16 21:34:21 +00:00
Hall Liu
eb7a2ad408 Add call barring constants to ImsUtImplBase
Add call barring constants to ImsUtImplBase in order to expose them in
the system API surface.

Fixes: 147733594
Bug: 146834818
Test: build
Change-Id: Ieb701625b1ecf858d67648f5bb4c87f3e87c1f73
2020-01-16 10:25:59 -08:00
Taesu Lee
27e67c2eb0 New system API to create SMS PDU and expose copyMessageToIcc()
Expose copyMessageToIcc() with ACCESS_MESSAGES_ON_ICC permission and new
getSmsPdu() and getDeliverPdu() for both 3GPP and 3GPP2 are added for
use by TelephonyProvider.
It includes cleanup documentations for SMSC and getSubmitPdu() as well.

Test: Manual

Change-Id: I0bed6a961412c89025d5c70f59fef5cd163cbfbf
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-16 17:35:09 +09:00
Taesu Lee
ade283c436 Cleanup code and documentation for SMS EF records
Bug: 145683032
Test: Manual

Change-Id: Ide03fb636249e4609a7e133320f415ed29984086
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-16 16:24:18 +09:00
Xin Li
e13851556b DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master
Bug: 146167222
Change-Id: Ifeb003ec9b3bf824f04d31a117aea65d517241fb
2020-01-15 16:15:41 -08:00
Jayachandran Chinnakkannu
ff27c7aa44 Merge "Add new system API constant DEFAULT_PREFERRED_NETWORK_MODE" 2020-01-16 00:13:13 +00:00
Nathan Harold
bbc2aaeaaa Merge changes from topic "barring-info"
* changes:
  Add a BARRING_TYPE_UNKNOWN for Unreported Barring
  Add Callback to notify changes of barring status
2020-01-16 00:06:07 +00:00
Shuo Qian
24fded67fb Refactor SmsManager not to use ActivityThread hidden API in Mainline
Introduce a server API to get current package name to remove
 ActivityThread for Mailine

Test: Treehugger; no function change; Manual: tried to send a message to 22000,
      and observed that it pops out a notification window to ask me: "Messages
      would like to send a message to 22000, Cancel or Send?" I clicked on "Send".
      UI shows that SMS is sent successfully.
Bug: 145147528
Change-Id: I0a5ca7699c969585ea08c82ea7cafd26a73c08f9
2020-01-15 22:40:54 +00:00
Jayachandran C
f0a973b564 Add new system API constant DEFAULT_PREFERRED_NETWORK_MODE
Bug: 140768340
Test: Following tests have been done
atest packages/services/Telephony/tests/
atest frameworks/opt/telephony/tests/telephonytests/
Manual sanity to check basic telephony

Change-Id: Ia114e4546d88e294ed37b6632a1eae6a06fbf7bc
2020-01-15 13:45:07 -08:00
Automerger Merge Worker
d3cb54c8d9 Merge "[RCS] Implement notifyRcsAutoConfigurationReceived()" am: b498fbf860 am: b7336f1d23 am: f01f6aec2f
Change-Id: I93ebc67677fc326871ba151a4b6bae0bc60e197d
2020-01-15 03:36:50 +00:00