Commit Graph

15728 Commits

Author SHA1 Message Date
Parvathy Shanmugam
a28bba3ebe Merge changes from topic "IMS Threading Refactoring"
* changes:
  Fix for crash while merging 2 audio calls for initiating conference call
  (IMS Threading refactoring) Telephony IMS classes to schedule IMS callback on the main thread
2022-02-04 10:52:40 +00:00
Sarah Chin
fef5a2b0d0 Merge "Update documentation for onDataProfileUnthrottled" 2022-02-03 19:54:58 +00:00
Sarah Chin
b303bbf3fd Update documentation for onDataProfileUnthrottled
Test: build
Bug: 213174700
Change-Id: Ib3a6916fd8b16b0dca590766479e5a716b8602ea
2022-02-02 23:35:24 -08:00
Hunter Knepshield
73161658fe Expose grouping and opportunistic carrier config keys.
These have been fully functional since Q, but were not a part of the
public API at that time. This makes the keys public with a note that
they'll work all the way back to Q (API 29).

The security concern has been resolved in b/181053462.

Fix: 130676550
Test: m update-api && m offline-sdk-docs && m -j
Change-Id: Ie2e4370999d48543517346e933ac35f6d298a127
2022-02-01 07:42:50 -08:00
Parvathy Shanmugam
be7c8dca0d Fix for crash while merging 2 audio calls for initiating conference call
Null pointer exception occured while calling callsessionupdated on listener object.
Listener turned null at the time of executor method is on run. Null check is present before setting the call to executor.
Modified the null checks to be inside of the executor.

Test: Conference call in oriole userdebug
Bug: 210701681
Change-Id: Iffeedb669b4abb9b4f32f015aaea4ba3b99c00f5
Merged-In: Iffeedb669b4abb9b4f32f015aaea4ba3b99c00f5
2022-01-28 18:31:13 +00:00
Parvathy Shanmugam
add3b8d76e (IMS Threading refactoring) Telephony IMS classes to schedule IMS callback on the main thread
Modified to schedule callbacks on main thread or callback executor rather than on binder thread
Introducing utility api runWithCleanCallingIdentity to run the action in executor

Test: atest FrameworksTelephonyTests:ImsCallTest
Bug: 197989471
Change-Id: Icdb0750d63f242eb79351781a4b75ca745c30083
Merged-In: Icdb0750d63f242eb79351781a4b75ca745c30083
2022-01-28 08:58:24 +00:00
Treehugger Robot
35ac7e34ce Merge "Create EVENT_TRAFFIC_DESCRIPTORS_UPDATED" 2022-01-27 01:49:59 +00:00
Nathan Harold
5887444f2d Merge "Expose Constructor for ModemActivityInfoException" 2022-01-26 22:00:07 +00:00
Hyunho Shin
8bf02e51dc Merge "Add new publish trigger type" 2022-01-25 23:00:15 +00:00
Nathan Harold
10fc628397 Expose Constructor for ModemActivityInfoException
ModemActivityInfoException is a SystemApi but the constructor
is not. There's a longstanding need to expose it for testing.

Bug: 186152174
Test: make update-api && make offline-sdk-docs
Change-Id: I609b4a893e2f4fad54d29e09234da08a45efac78
2022-01-25 12:51:11 -08:00
Hyunho
67dc9a4cd3 Add new publish trigger type
Add a new type that is registered to IMS via Internet.
Bug: b/213613736
Test: Build

Change-Id: I6d4802ff12e4b3594cc81903cd83b6f9af6b88b0
Merged-In: I6d4802ff12e4b3594cc81903cd83b6f9af6b88b0
2022-01-25 00:03:09 +00:00
Eden Su
55d337b11b Merge "Add carrier config for EAP-AKA fast reauth feature" 2022-01-22 03:09:42 +00:00
Treehugger Robot
af4fc5fb39 Merge "Clarify number format expectations for get/setPhoneNumber" 2022-01-21 21:06:51 +00:00
EdenSu
8192e6ab08 Add carrier config for EAP-AKA fast reauth feature
Add config to enable/disable EAP-AKA fast reauth.

Bug: 195961691
Test: Fast reauth function was verified with lab testing
Change-Id: I62940050823b2306262a878a52c20895d1b552dc
2022-01-22 03:06:09 +08:00
Meng Wang
355b254c41 Clarify number format expectations for get/setPhoneNumber
.. based on API council feedback.

Bug: 206743433
Change-Id: I75db773bfb7997ab31f02ae92e66c9fb8dcb4eb8
2022-01-20 03:06:53 +00:00
Treehugger Robot
e02ea9b779 Merge "Modify KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY's description" 2022-01-18 23:21:56 +00:00
Meng Wang
7332dedcd1 Fix default value type : should be long instead of int ..
.. for KEY_TIME_TO_SWITCH_BACK_TO_PRIMARY_IF_OPPORTUNISTIC_OOS_LONG
and KEY_OPPORTUNISTIC_TIME_TO_SCAN_AFTER_CAPABILITY_SWITCH_TO_PRIMARY_LONG

Bug: 215048287
Test: make
Change-Id: Ic5505236dd10fad6f9a46e9cf24493d8b4cf8404
2022-01-18 04:57:29 +00:00
Ian Chang
71704ae7a5 Modify KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY's description
Describe the wildcard for the MESSAGE part in the "ORIGINAL_CODE|MESSAGE|NEW_CODE" format.

Bug: 208172486
Change-Id: Ide6741fa41e4b054aef3eec8548e361012faca7b
2022-01-17 08:20:54 +08:00
Sooraj Sasindran
2dd968d7ef Add ril constant for slicing config change
Add ril constant for slicing config change

Test: build
Bug: 194332512
Change-Id: I5e81a3ba9118537e3dba1c45a2db253ff5bbdc8b
2022-01-13 17:00:34 +00:00
Eden Su
2bc805e26d Merge "Add carrier config for Visited Country FQDN" 2022-01-13 08:07:46 +00:00
Jack Yu
fb2ac71bd6 Fixed NPE when local or remote port range does not exist
Added null check for local and remote port range.

Bug: 213523984
Bug: 213139361
Test: atest QosBearerSessionTest
Merged-In: I749f369c0daa5c840a77d37828f65e42262d85f5
Change-Id: I749f369c0daa5c840a77d37828f65e42262d85f5
(cherry picked from commit bc1ae5c28a)
2022-01-10 12:55:46 -08:00
EdenSu
2fad116e74 Add carrier config for Visited Country FQDN
Add resolution method type EPDG_ADDRESS_VISITED_COUNTRY.

Bug: 195384764
Test: Build & WFC works
      atest IwlanTests
Change-Id: I9b39775697a588bc4962ae62e734e3bb99eae95a
2022-01-11 00:01:53 +08:00
Meng Wang
886bf03a2d Merge changes from topic "phonenumber"
* changes:
  Update javadocs based on API council feedback.
  Deprecate get/setLine1Number in favor of get/setPhoneNumber
2022-01-07 00:31:23 +00:00
Grace Jia
e43f70afc7 Merge "Add new API for new feature of display name." 2022-01-06 18:59:37 +00:00
Meng Wang
72afc76a69 Update javadocs based on API council feedback.
Bug: 206743433
Bug: 193539271
Test: make
Change-Id: I24f5ebf228bf1ae28f4d7b32ddef222482114eae
Merged-In: I24f5ebf228bf1ae28f4d7b32ddef222482114eae
(cherry picked from commit bbb01fcb43)
2022-01-05 23:41:32 +00:00
Meng Wang
3e436616c6 Deprecate get/setLine1Number in favor of get/setPhoneNumber
Bug: 193539271
Test: make
Change-Id: I09bcdca9d44d6b6a6d4ca00b6d0bba4c45a39bac
Merged-In: I09bcdca9d44d6b6a6d4ca00b6d0bba4c45a39bac
(cherry picked from commit 8665b5105e)
2022-01-05 23:41:26 +00:00
Meng Wang
692533e342 Merge "Add getPhoneNumber/setPhoneNumber API" 2022-01-05 23:04:27 +00:00
Sarah Chin
569fbec7ef Merge "Add Constants for UsageSetting" 2022-01-05 20:06:20 +00:00
Chen Xu
ed021212d6 Merge "[MEP] eSIM API refactor to support MEP" 2022-01-04 18:50:09 +00:00
sandeepjs
6afa68e472 [MEP] eSIM API refactor to support MEP
Newly added UiccPortInfo and UiccSlotMapping classes and introduced
UiccPortInfo as a port list in UiccCardInfo and UiccSlotInfo,
Deprecated some constructors and updated callers.
Test: build
Bug: 159354974
Change-Id: I71e4e1ef649b7301d126dde23d53783761de940f
Merged-In: I71e4e1ef649b7301d126dde23d53783761de940f
2022-01-03 12:12:52 +00:00
Nathan Harold
cb861c0f76 Add Constants for UsageSetting
Bug: 210023167
Test: compilation
Merged-In: Ief078770b44719e105828bb61d3768ad24e277dd
Change-Id: Ief078770b44719e105828bb61d3768ad24e277dd
(cherry picked from commit 793736cced)
2021-12-29 09:42:12 -08:00
Sarah Chin
4036f73231 Update unthrottleApn calls to take in DataProfile
Test: atest FrameworksTelephonyTests
Bug: 208651109
Change-Id: I4e77e56296d6a9a8b1010167e260f4e9c1a40202
Merged-In: I4e77e56296d6a9a8b1010167e260f4e9c1a40202
2021-12-28 23:27:21 +00:00
Sarah Chin
a28f3d2066 Merge "Add new fields to ApnSetting/DataProfileInfo" 2021-12-28 23:06:10 +00:00
Shuo Qian
457bfa1180 Merge "Use Math.floor to convert RSSNR from ten db to DB" 2021-12-23 05:45:35 +00:00
Meng Wang
04dd910a49 Add getPhoneNumber/setPhoneNumber API
Bug: 193539271
Test: make
Change-Id: Iac651f2ca4269f20a2c7e87c7b6edf1d6c992867
Merged-In: Iac651f2ca4269f20a2c7e87c7b6edf1d6c992867
(cherry picked from commit 0594b4f490)
2021-12-21 22:23:33 +00:00
Etienne Ruffieux
4ec097baa6 Merge "SQLiteWrapper cleanup, removed unused checks." 2021-12-21 20:07:31 +00:00
Etienne Ruffieux
a8530fe5b5 SQLiteWrapper cleanup, removed unused checks.
Removed requery as it was unused, removed out-of-date
memory checks. All functionalities stay the same.
This change was initially made to prevent hidden APIs
usage in the library.

Tag: #feature
Bug: 190441152
Test: atest android.telephony.cts.MmsTest
NoNonSdkCheck: API usage is inside the class and removed with CL
Change-Id: I7498b0cd9e9955158094348acc2c94e0b2552b0d
2021-12-21 14:32:55 +00:00
Martijn Coenen
c7dc6dc0da Merge changes from topic "revert-1927643-mmtel_capability-TQUGHHKONR"
* changes:
  Revert "Added setup/tear down data support"
  Revert "Added a new network capability MMTEL"
2021-12-21 11:27:16 +00:00
Martijn Coenen
4a4b55fca3 Revert "Added setup/tear down data support"
Revert "Added a new network capability MMTEL"

Revert submission 1927643-mmtel_capability

Reason for revert: b/211586152
Reverted Changes:
Ifea8b1e40:Added a new network capability MMTEL
I38655bef2:Added a new network capability MMTEL
I837606d9e:Added setup/tear down data support
I2c7b291fe:Added a new network capability MMTEL

Change-Id: If4ab6dd27a995edcca037099ed3f68de917641cf
2021-12-21 11:24:01 +00:00
Martijn Coenen
bcfe8037e2 Revert "Added a new network capability MMTEL"
Revert "Added a new network capability MMTEL"

Revert submission 1927643-mmtel_capability

Reason for revert: b/211586152
Reverted Changes:
Ifea8b1e40:Added a new network capability MMTEL
I38655bef2:Added a new network capability MMTEL
I837606d9e:Added setup/tear down data support
I2c7b291fe:Added a new network capability MMTEL

Change-Id: Ifd818ba06bc8c6a10bf0393243443d049e5d7503
2021-12-21 11:24:01 +00:00
Treehugger Robot
4b07c1b401 Merge changes from topic "mmtel_capability"
* changes:
  Added a new network capability MMTEL
  Added setup/tear down data support
2021-12-21 10:42:37 +00:00
Xin Li
4932b0137f Merge SP1A.211205.008
Bug: 205056467
Merged-In: Id5cd4123f1bb7bdd85e564fc6997dfbc50652a5f
Change-Id: I2b614d13e18b8a03aaab041c058c1b2f0a21fcab
2021-12-20 14:13:38 -08:00
Hyunho Shin
db0515696f Merge "API description changed." 2021-12-17 03:28:43 +00:00
Hyunho
83d8141905 API description changed.
the api description changed to reflect what is expected to be done by the caller
Bug: b/210738734
Test: Build

Change-Id: I85cddad952cfb9f657b15c5c5e75bb0adc52188f
Merged-In: I85cddad952cfb9f657b15c5c5e75bb0adc52188f
2021-12-17 01:13:50 +00:00
Jack Yu
f705cb8db6 Added a new network capability MMTEL
Added NET_CAPABILITY_MMTEL to indicate a network
support MMTEL (Multimedia telephony). This is for
IMS service to request an IMS network that supports
voice or PS (VoPS for 4G, VoNR for 5G).

Bug: 210774375
Test: atest ConnectivityServiceTest
Change-Id: I2c7b291fee3450f588a282f7a252c183c374becf
(cherry picked from commit 1e6438b43a13c27d0f939ec417dc0a84597fe935)
2021-12-16 22:55:52 +00:00
Jack Yu
09c6189ae4 Added setup/tear down data support
1. Added setup data network support.
2. Hook validation status down to data stall recovery manager.
3. Prelimanary changes before removing TransportManager.
4. Added tear down network support.
5. Added initial attach APN support.
6. Added set data profiles at modem support.

Bug: 196597630
Test: atest DataNetworkControllerTest DataProfileManagerTest DataProfileTest DataNetworkTest
Merged-In: I837606d9e91339c66f2e2cff1a3a76d1029750c6
Change-Id: I837606d9e91339c66f2e2cff1a3a76d1029750c6
(cherry picked from commit 69af77931e)
2021-12-16 14:47:05 -08:00
Treehugger Robot
a7ab25609e Merge "Add mock modem service operations in Telephony" 2021-12-16 20:20:09 +00:00
Hunter Knepshield
d54e1126ab Merge "Create CarrierPrivilegesListener callback." 2021-12-16 19:00:24 +00:00
jimsun
6fb25dc35a Add mock modem service operations in Telephony
Bug: 205101043
Bug: 203241555
Test: manual
Change-Id: I65127fc43c62b52e3efaa99d06bf77855aab7bb0
Merged-In: I65127fc43c62b52e3efaa99d06bf77855aab7bb0
2021-12-16 17:02:34 +08:00
Rambo Wang
33acead6f6 Merge "Support subscription for CarrierService#onLoadConfig" 2021-12-16 04:10:31 +00:00