Commit Graph

4112 Commits

Author SHA1 Message Date
Tony Zhu
c128fa0f93 Merge "[API Review]Clarify method that obtain a component name" 2018-11-20 02:36:32 +00:00
Chen Xu
71ca860ff7 Merge "Telephony light grey list clean up for Q" 2018-11-20 01:56:19 +00:00
sqian
91412858b7 Remove dummy subscription ids
Test: Treehugger
Bug: 119144366
Change-Id: Ied6d1bd084b2632e72ef60bd96c8a1e6c9d1a16e
Merged-In: Ied6d1bd084b2632e72ef60bd96c8a1e6c9d1a16e
(cherry picked from commit bfde48f4ed)
2018-11-19 12:54:44 -08:00
tonyzhu
6ac54dc519 [API Review]Clarify method that obtain a component name
Change JavaDoc in CarrierConfigManager.java. Clarify what format
string will be set and get from the key. Using ComponentName methods
to convert.

Bug: 118675660
Test: build success.
Change-Id: I47db5b665808ef7dbc9081e0112a04958497d6fd
2018-11-20 02:04:27 +08:00
chen xu
f4c5c6ee96 Telephony light grey list clean up for Q
Bug: 112477300
Test: Telehony unit test
Change-Id: I9485abba093a96c91816d77c7273e1a38cb5182a
2018-11-18 18:56:00 -08:00
Pengquan Meng
c49ec8d1e7 Merge "Add 5G NSA status to ServiceSate" 2018-11-16 20:40:12 +00:00
Nathan Harold
992aafb2bd Merge "Add Support for Async requestCellInfoUpdate()" 2018-11-16 19:13:36 +00:00
Nathan Harold
8aeeea135a Merge "Remove CDMA doc in setPreferredNetworkType()" 2018-11-16 19:13:15 +00:00
Nathan Harold
d1db62d59e Merge "Redirect Value Source of SignalStrength Constants" 2018-11-16 19:12:58 +00:00
Pengquan Meng
6aa5213eee Add 5G NSA status to ServiceSate
This added the 5G FrequencyRange to the ServiceState and 5G connection
status to NetworkRegisterationState.

Bug: 111453000
Test: atest FrameworksTelephonyTests
Merged-In: Iee824b2cfd9b48b56d6541b6eef617d23677a873
Change-Id: Iee824b2cfd9b48b56d6541b6eef617d23677a873
2018-11-16 10:47:00 -08:00
Sahin Caliskan
170c382729 Merge "Fix RcsManager and add empty RcsThread class" 2018-11-16 17:29:49 +00:00
Sahin Caliskan
1256486a8f Fix RcsManager and add empty RcsThread class
This change fixes the RcsManager setup and adds an empty RcsThread class. Please see go/rcs-in-telephony-doc for details.

Test: Builds fine
Bug: 109759350
Merged-in: Ie3fe476ab11d515ffab6dcc6ccf5ec801a4c9057
Change-Id: Ie3fe476ab11d515ffab6dcc6ccf5ec801a4c9057
2018-11-15 23:28:24 +00:00
Brad Ebinger
082bf0ccca Merge "Expose ProvisioningManager API for IMS configurations" 2018-11-15 22:07:29 +00:00
Nathan Harold
2aa2cc1b75 Add Support for Async requestCellInfoUpdate()
Add asynchronous calls to request CellInfo updates.
-Add a request for CellInfo
-Add a request for CellInfo that allows system apps
 such as the LocationProvider to bill the work to
 the app that initiated the location fix.
-Update the behavioral language for getAllCellInfo
 to indicate that depending on the API level of the
 caller, this API will only provide cached info, which
 means that apps can always request an update without
 possibly triggering a call to the modem. This also
 means that the binder will not block due to modem
 delay.

Bug: 37100068
Bug: 63737292
Bug: 26569588
Test: manual (via SL4A)
Change-Id: I25cbc3cecd5d396fc3baa21457c05cd6e273c9c3
2018-11-15 10:53:05 -08:00
Chen Xu
8715c1545e Merge "new Systeam API for CarrierConfig#KEY_CARRIER_SETUP_APP_STRING" 2018-11-15 16:59:44 +00:00
Chen Xu
16533c35d3 Merge "new System API for sim voice activation state." 2018-11-15 16:59:03 +00:00
Nathan Harold
a6d893e451 Redirect Value Source of SignalStrength Constants
SignalStrength contains a few hidden constants that
are identical to publicly exposed constants in
CellSignalStrength. Since the CellSignalStrength
values are public, redefine SignalStrength to point
to the public values and limit access to them
(since there is already a public alternative).

Bug: 30188945
Test: compilation
Change-Id: Ie7f295ef4d7849f7ce3a631cbdffe3d6670da5bd
2018-11-15 02:27:10 +00:00
Pengquan Meng
4d939359dc Merge "Add 5G NSA information" 2018-11-14 23:07:35 +00:00
Treehugger Robot
ee59e69b8b Merge "Catch SecurityException in EuiccCardController and trigger callback." 2018-11-14 22:30:54 +00:00
Pengquan Meng
b1458b20bd Use flatten component name for Carrier Settings activity
This change uses the flatten component name instead of the separate
package name and class name for carrier settings activity.

Bug: 115429501
Test: Build
Merged-In: Ia531c3322183a2eba6962c8ee139c7854e2560ec
Change-Id: Ia531c3322183a2eba6962c8ee139c7854e2560ec
2018-11-14 11:37:02 -08:00
Pengquan Meng
938905e05d Add 5G NSA information
Bug: 111453000
Test: atest FrameworksTelephonyTests
Merged-In: I5392bae0bcfaf231b67134a9c01c044f94f908b5
Change-Id: I5392bae0bcfaf231b67134a9c01c044f94f908b5
2018-11-14 11:23:34 -08:00
Nathan Harold
7af2e11f5c Remove CDMA doc in setPreferredNetworkType()
Removing an odd docstring from setPreferredNetworkType
that doesn't make any sense in the context.

Bug: 27295336
Test: compilation (docstring only change)
Change-Id: I9ed74c34970857c5b2f7c25a826f80872edee535
2018-11-14 10:07:25 -08:00
Nathan Harold
7fe6f36f16 Merge "Add Executor Support for PhoneStateListener" 2018-11-14 17:50:49 +00:00
Jayachandran C
32e712e0c0 Move the intent to SMS namespace for database corruption detection
Test: Simulated and verified the new intend is used
Bug: 118658558
Bug: 115990430
Merged-in: I07a58d0fe1c34106b3da85d1dfd4576b40da4bd5
Change-Id: I07a58d0fe1c34106b3da85d1dfd4576b40da4bd5
(cherry picked from commit 349b9ba16f)
2018-11-14 01:08:52 +00:00
Amit Mahajan
0c081a10ad Initial RCS CL.
This CL adds RcsManager with a dummy API.

Test: build
Bug: 109759350
Merged-in: Ib10a38fac9182ca010d3895431e419f5c1958d59
Change-Id: Ib10a38fac9182ca010d3895431e419f5c1958d59
(cherry picked from commit 7d496bc030)
2018-11-14 00:46:15 +00:00
Nathan Harold
7581efdb9d Add Executor Support for PhoneStateListener
Support an Executor so that PhoneStateListener
can invoke callbacks not only on a user's preferred
Looper but also on a preferred Handler or in another
thread management scheme.

PhoneStateListener uses an odd pattern for its API,
so to support the historical use cases of having the
internal callback instance be instantiated during
object construction, the Executor needs to be passed
in to the PhoneStateListener during construction. This
also permits the listen() method in TelephonyManager to
avoid odd situations of having a version with an
Executor be passed in when requesting to stop listening
for events.

Bug: 118350385
Test: atest PhoneStateListenerTest
      atest PhoneStateListenerExecutorTest
Change-Id: I8eeb2e156f6d67d192d17586e6aa5579ff6d675d
2018-11-13 15:08:56 -08:00
Brad Ebinger
0d36ed248f Expose ProvisioningManager API for IMS configurations
Bug: 117648104
Test: Manual
Change-Id: I71ef979cee6467fd3d70fe70e4b899dbee70e2ae
2018-11-13 12:49:28 -08:00
Amit Mahajan
3b5d52c11c Adding new intent ACTION_SMS_MMS_DB_CREATED.
Test: manual (verified from logcat that intent is broadcast)
Bug: 115990430
Merged-in: I660cf2d04a1b57a58c8cefd212e5f8d73b329890
Change-Id: I660cf2d04a1b57a58c8cefd212e5f8d73b329890
(cherry picked from commit 1b26e44ce0)
2018-11-13 11:24:51 -08:00
Xiangyu/Malcolm Chen
a97bdb957f Merge "Fix mis-ordered merge in PhoneStateListener.java" 2018-11-13 06:38:50 +00:00
Chen Xu
00496a1181 Merge "support parent carrier id" 2018-11-13 06:08:46 +00:00
Treehugger Robot
36ac46a915 Merge "Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist" 2018-11-13 03:48:59 +00:00
Malcolm Chen
27de0e51eb Fix mis-ordered merge in PhoneStateListener.java
Bug: 119131284
Test: build
Change-Id: I9ab7a0a992e4000efb1a1b89ec198f9da74876d9
2018-11-12 19:34:38 -08:00
Chen Xu
24df195e78 Merge "new SystemAPI for roamingType in NetworkRegistrationState" 2018-11-13 01:16:25 +00:00
chen xu
3901ea4923 do not link hidden intdef in the comments
Bug: 118351153
Bug: 119119026
Test: build
Change-Id: I26be8e6d83e205589d10e6b7bd71297907aa5119
2018-11-12 14:35:32 -08:00
chen xu
a8d3d48941 support parent carrier id
The parent-child relationship can be used to further differentiate a
single carrier by different networks, by prepaid v.s. postpaid
or even by 4G v.s. 3G plan. parent carrier id it's an optional field.
A carrier id with a valid parent_carrier_id is considered fine-grained carrier id,
will not be returned as API getSimCarrierId but will be returned as
new API getSimPreciseCarrierId.

Bug: 110559381
Change-Id: Ica273cbad16b4773edc41b79ff4bf7570de40ec1
2018-11-12 11:30:16 -08:00
chen xu
63b0a3401b new System API for sim voice activation state.
Bug: 119233925
Test: telephony unit test
Change-Id: I06e8de063d312b683261216326b1c8674ab4479e
2018-11-12 11:22:23 -08:00
Calvin Pan
7e74c4e431 Merge "Create new API for MNO carrier id" 2018-11-12 18:09:25 +00:00
Pengquan Meng
4a7a3934b6 Merge "Add 5G NR cellInfo" 2018-11-12 16:28:57 +00:00
andychou
d9b97ecefe Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist
Add ImsReasonInfo.CODE_SIP_TRANSACTION_DOES_NOT_EXIST and
PreciseDisconnectCause.SIP_TRANSACTION_DOES_NOT_EXIST
It will map by PRECISE_CAUSE_MAP in ImsPhoneCallTracker.java

Bug: 78204171
Test: local build pass
Change-Id: I10ec05256f748007657e4a8e60d07b1fd8a4f8b2
Merged-In: Iaa9673e4fa9568078161231df1b06735b862ca09
2018-11-12 15:21:41 +00:00
calvinpan
354b9771aa Create new API for MNO carrier id
New telephony APIs to getSimMnoCarrierId and GET_CURRENT_APN_LIST

Bug: 115709816
Test: Build pass
Change-Id: I415ee634d8392d5120d5d8f79d927c0349d9a42e
Merged-in: I415ee634d8392d5120d5d8f79d927c0349d9a42e
2018-11-12 08:07:10 +00:00
chen xu
d040f2d785 new Systeam API for CarrierConfig#KEY_CARRIER_SETUP_APP_STRING
SuW will consume this config and launches a carrier app to setup the
device or provision the SIM.

Bug: 119229895
Test: telephony unit test
Change-Id: Ibc3cc9913c20fd367f83854765a8aea378bb6622
2018-11-10 10:54:45 -08:00
Brad Ebinger
c10b96899e Merge "Expose SRVCC state changes as @SystemAPI" 2018-11-09 23:02:38 +00:00
Shuo Qian
5bdf255e0d Merge "Introduce getRssi() in CellSignalStrengthLte" 2018-11-09 22:07:50 +00:00
Calvin Pan
1df5ca6a71 Merge "Add CarrierId column in TelephonyProvider" 2018-11-09 13:30:51 +00:00
Youming Ye
777235c467 Merge "Add possibility to configure SPN during Wi-Fi Calling and Flight mode" 2018-11-09 01:01:28 +00:00
calvinpan
3689c96951 Add CarrierId column in TelephonyProvider
Add a column in provider to migrate mno and mvno to carrierid.

Bug: 115709816
Test: runtest --path tests/src/com/android/providers/telephony/TelephonyProviderTest.java
Change-Id: I9c0c0fd069acc7f182d94f422ff15f45ebf187a9
Merged-In: I9c0c0fd069acc7f182d94f422ff15f45ebf187a9
2018-11-08 23:45:23 +00:00
Pengquan Meng
f922b8e6ee Add 5G NR cellInfo
- Add CellInfoNr
- Add CellIdentityNr
- Add CellSignalStrengthNr

Bug:111453000
Test: atest FrameworksTelephonyTests:
Merged-In: I45a8042fcbeb9faa7f8cc8db45eeb2c85125397e
Change-Id: I45a8042fcbeb9faa7f8cc8db45eeb2c85125397e
2018-11-08 13:39:57 -08:00
sqian
5b76bfc0d0 Introduce getRssi() in CellSignalStrengthLte
Previous people designed that the lte signal strength from HAL is rssi
in ASU, but the new need of getRssi() API requires dBm unit.

Bug: 113074174
Test: Treehugger
Change-Id: I2982365a2e7fe1a56a393d123b9b0a30807d4d15
2018-11-08 10:54:41 -08:00
Brad Ebinger
efed9824e4 Expose SRVCC state changes as @SystemAPI
ImsService needs to be able to register for SRVCC state
changes.

Test: Telephony Unit tests
Bug: 117555643
Change-Id: I87631b51a19cdd46d6b4d15f3631345de03bb771
2018-11-08 10:14:04 -08:00
Chen Xu
9d4ebdf379 Merge "separate URL for WFC settings" 2018-11-08 03:23:20 +00:00