Commit Graph

3222 Commits

Author SHA1 Message Date
Chen Xu
8229f4c5f8 Merge "new SystemAPI for preciseCallState and DisconnectCause" am: 6eacd30e8f
am: f034647231

Change-Id: I2320bd6f4b85ef55a2fe3b7c865ffde67d71d415
2018-12-20 20:19:15 -08:00
Chen Xu
6eacd30e8f Merge "new SystemAPI for preciseCallState and DisconnectCause" 2018-12-21 03:52:16 +00:00
Jack Yu
dba27b47b1 Merge "Moved data settings to phone" am: 9ceab92e6e
am: 95712322df

Change-Id: I74687df8a95bff2dfb355e215ff28b04f77ead5e
2018-12-20 19:12:00 -08:00
Jack Yu
9ceab92e6e Merge "Moved data settings to phone" 2018-12-21 02:29:43 +00:00
Malcolm Chen
71f85f597f Add APIs to remove sub from a group and get subs in the same gorup. am: be9240bcf0
am: 7e1f24c626

Change-Id: I0802842535ffd512efbe99e968d44fab1725c8d1
2018-12-20 16:52:54 -08:00
Malcolm Chen
7e1f24c626 Add APIs to remove sub from a group and get subs in the same gorup.
am: be9240bcf0

Change-Id: If82ec04193b9288ff56ac1850899beadaf392d48
2018-12-20 16:29:58 -08:00
Xiangyu/Malcolm Chen
90f496b14c Merge changes from topic "118349116"
* changes:
  Fix broken building offline-sdk-docs.
  Add APIs to remove sub from a group and get subs in the same gorup.
2018-12-21 00:04:57 +00:00
Jack Yu
5bf83d8e24 Moved data settings to phone
Since there are multiple DcTrackers, but we only have
one set of data settings. So we need to move them from
DcTracker to Phone.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: Ica24b708beb63156937e88198a4c915485771b0a
Change-Id: Ica24b708beb63156937e88198a4c915485771b0a
(cherry picked from commit 335860e44f)
2018-12-20 15:25:21 -08:00
chen xu
970d77913b new SystemAPI for preciseCallState and DisconnectCause
1. decouple disconnectCause and preciseDisconnectCuase from
 preciseCallState.
 2. expose preciseCallState to SystemAPI and expose
onPreciseCallStateChanged to System API
3. remove/hide ImsReasonInfo from PreciseDisconnectCuase
4. expose DiconnectCuase and PreciseDisconnectCause to System API
5. new onDisconnectCauseChanged API on PhoneStateListener for CS call
 and use ImsCallSessionListener for IMS call(imsreasonInfo)
6. add read_precise_phone_state to shell apk to enable GTS test

Bug: 119890559
Test: atest GtsGmscoreHostTestCases:TelephonyHostTest#testPhoneStateListener
Change-Id: If9256feff16b6bcaef1dfe194c2b0df2a48436b0
(cherry picked from commit 6a942d488a)
Merged-in: If9256feff16b6bcaef1dfe194c2b0df2a48436b0
2018-12-20 18:41:11 +00:00
Malcolm Chen
be9240bcf0 Add APIs to remove sub from a group and get subs in the same gorup.
Add APIs in SubscriptionController so that caller with permissions
can remove subscriptions from a group or get all subscriptions with
the same group.

Bug: 118349116
Test: unittest
Change-Id: Iba4d31b437b372b3f41a6ed23f03b96a685a324c
Merged-In: Iba4d31b437b372b3f41a6ed23f03b96a685a324c
2018-12-19 19:02:12 -08:00
Chen Xu
31cf647396 Merge "expose Carrier Id related APIs" am: 18b925a7af
am: 0031ae8145

Change-Id: I6e9837cffdcac094557ea99cde0736abdfff0ff9
2018-12-17 13:39:23 -08:00
Chen Xu
18b925a7af Merge "expose Carrier Id related APIs" 2018-12-17 20:56:54 +00:00
Meng Wang
4f7956f58c Merge "support vzw roaming default on" into pi-dev
am: 369d65b2e9

Change-Id: I056adbebe1efecb1a7d6f4fc09fbd94f1e4b52da
2018-12-14 10:45:56 -08:00
Sahin Caliskan
4929a0d782 Merge "Move RCS APIs to android.telephony.ims" 2018-12-13 20:48:34 +00:00
Sahin Caliskan
7719db2b16 Move RCS APIs to android.telephony.ims
This is due to being compatible with other RCS related changes by by other engineers.
Test: Existing tests pass

Bug: 109759350
Change-Id: Id56df22e9c313c5e0700eda3b2c489d2f84ea0cd
Merged-In: Id56df22e9c313c5e0700eda3b2c489d2f84ea0cd
2018-12-13 16:50:28 +00:00
chen xu
64c1d7649a expose Carrier Id related APIs
1. expose public API for preciseCarrierId and preciseCarrierIdName
2. expose public API for carrier id in CarrierIdentifier
3. New public broadcast for precise carrier identity changed
4. clean up

Bug: 110559381
Test: unit test & atest CtsTelephonyTestCases:TelephonyManagerTest
Change-Id: I18f8bc3252632bba699829c6c577d1041335fee9
Merged-in: I18f8bc3252632bba699829c6c577d1041335fee9
2018-12-12 14:34:09 -08:00
Jordan Liu
97c68169b8 Merge "Add API to get card ID for default eUICC" 2018-12-12 22:20:03 +00:00
Jordan Liu
2fe9e3748a Add API to get card ID for default eUICC
getCardIdForDefaultEuicc() returns the cardId of the default eUICC.

Bug: 80097562
Test: manual, UiccControllerTest
Change-Id: Iee001ce354184dff4862a92b6bda261797c19e56
2018-12-11 13:35:08 -08:00
Hall Liu
7d02a835ae Add fields for PhoneAccount to CallerInfo
Add fields to specify which outgoing phone account is stored in the
contacts db within the CallerInfo object.

Bug: 111455117
Test: manual, unit
Change-Id: Id402102e4605f6b414188a3eaf6442cf4282fcab
2018-12-10 18:46:07 -08:00
sqian
bf165bc25d Frame EmergencyNumber notifier in TelephonyRegistry
Test: Treehugger
Bug: 112657134
Change-Id: I9e2e0348b8e0e9ac473db354023a242087fbb2c3
Merged-In: I9e2e0348b8e0e9ac473db354023a242087fbb2c3
(cherry picked from commit bdc5a733b7)
2018-12-07 17:09:39 -08:00
fionaxu
79d77bb580 support vzw roaming default on
1. sms link handling by defaultcarrierapp under restricted NW
2. support launching defaultcarrierapp from carrier notification to
load captive portal page.
3. new carrier action to reset all actions
4. add a new app icon

Bug: 113114222
Test: manual test with cold SIM to trigger redirection signal
Change-Id: Ieb03244f222334068652e2fac8ee590082973670
2018-12-07 16:10:32 -08:00
Treehugger Robot
c3d4693f79 Merge "UpdateAvailableNetworks apis" 2018-12-05 19:16:39 +00:00
Hall Liu
138455f161 Add AIDL for number verification request API
Add the new method to ITelephony and call it in the
requestNumberVerification API.

Bug: 119675160
Test: GTS later + testapps
Change-Id: I89baba023cdae746bc4afd96432f8348114d47cf
2018-12-04 17:10:55 -08:00
Sooraj Sasindran
a3ab858fda UpdateAvailableNetworks apis
Provide API to inform available networks

Bug: 117982838
Test: make and unit test
Merged-In: I9de1f767560551914de80031c1675d7e03b09775
Change-Id: I9de1f767560551914de80031c1675d7e03b09775
2018-12-04 23:56:04 +00:00
Hall Liu
239b0de673 Merge "Add API scaffolding for number verification" 2018-12-04 17:58:28 +00:00
Brad Ebinger
539f4f44c1 Merge "Actually check for READ_PHONE_STATE permission for Voicemail query" 2018-11-30 18:28:51 +00:00
Treehugger Robot
98b78236d0 Merge "API to switch preferred data" 2018-11-30 01:29:39 +00:00
Hall Liu
5314036bb1 Add API scaffolding for number verification
Add the PhoneNumberRange and NumberVerificationCallback classes. Add a
method in TelephonyManager to activate the API, but it does nothing for
now.

Bug: 119675160
Test: todo
Change-Id: I3ccd62b47f02a3aa324b675fdb16c8e7a1e9feec
2018-11-29 17:20:02 -08:00
Brad Ebinger
7d0dbe6954 Actually check for READ_PHONE_STATE permission for Voicemail query
We were not checking READ_PHONE_STATE permission when callers
were querying for the number of voicemails the user had for a
subscription.

Removes old ITelephony#getVoiceMessageCount method from graylist
because it hasn't been used since kitkat and does not allow for
READ_PHONE_STATE permission checks.

Bug: 119884553
Test: manual
Change-Id: Ic6c29b123e192caf663d0e0c8da559116d1a78c9
2018-11-29 15:17:33 -08:00
Nazanin Bakhshi
b9b87be709 add setMetered in SubscriptionManager
Test: no tests
Bug: 119316354
Change-Id: I85224b4b5fdfee9391f673bb3950ad510b978133
2018-11-27 13:59:37 -08:00
Xiangyu/Malcolm Chen
103d515c80 Merge "Clean up SubMgr#getOpportunisticSubscriptions." 2018-11-27 18:01:58 +00:00
Xiangyu/Malcolm Chen
d413b5c713 Merge "Remove parentSubId and define API to set groupSubId" 2018-11-27 00:24:00 +00:00
Jordan Liu
0e706db965 Merge "Expose ApnService as a SystemApi and use subId arg" 2018-11-26 22:47:52 +00:00
Malcolm Chen
aea9b02a22 Remove parentSubId and define API to set groupSubId
Bug: 118349116
Test: unittest
Change-Id: I539a67df8f30c2f58d87a3417f78fef8b43ff56d
Merged-In: I539a67df8f30c2f58d87a3417f78fef8b43ff56d
2018-11-26 14:13:10 -08:00
Sooraj Sasindran
3535f43518 API to switch preferred data
Provide API to switch preferred data between default subscription
and opportunistic subscription.

Bug: 118491136
Test: make and called the APIs using setting app
Merged-In: Ic4f7a0aac6f7e1234c30aaee2fed177dbd5e53cd
Change-Id: Ic4f7a0aac6f7e1234c30aaee2fed177dbd5e53cd
2018-11-26 22:08:18 +00:00
Chen Xu
cc37384e58 Merge "integrate carrier id to carrier config" 2018-11-22 05:06:55 +00:00
chen xu
d95965ae1b integrate carrier id to carrier config
add carrierId and preciseCarrierId in CarrierIdentifier
which will be passed to carrier service to decide which carrier
info to look up

Bug: 110559381
Change-Id: I1b4a44dd32148ebdf5aa437c5938cb89656c27c2
Merged-in: I1b4a44dd32148ebdf5aa437c5938cb89656c27c2
2018-11-21 17:29:43 -08:00
Brad Ebinger
fd88080d22 Expose ImsMmTelManager APIs as SystemApi
Bug: 116493310
Bug: 112538960
Bug: 112866475
Test: Telephony unit tests
Change-Id: I698d9ab6000dc2e2e9be8d614e94d59b3a8e3028
2018-11-20 13:59:37 -08:00
Jordan Liu
2f2dd0a6e1 Expose ApnService as a SystemApi and use subId arg
IApnSourceService#getApns now takes a subId argument, and can be
implemented by extending ApnService.

Bug: 113075153
Test: unit tests and manual
Change-Id: I0202c1f0529ecef558f06a9f8a90a3906912f2f0
Merged-In: I9cfcf977c20f33abd2d773393780f9e54d75fe21
2018-11-19 17:26:09 -08:00
Nathan Harold
992aafb2bd Merge "Add Support for Async requestCellInfoUpdate()" 2018-11-16 19:13:36 +00: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
Amit Mahajan
668ce6bbef Define new intent ACTION_LINE1_NUMBER_ERROR_DETECTED
Test: build
Bug: 115843312
Merged-in: Ibcc9ce533fbc6980a371eb6239a53dc9cdebb22a
Change-Id: Ibcc9ce533fbc6980a371eb6239a53dc9cdebb22a
(cherry picked from commit 1bf4e92c50)
2018-11-14 01:12:15 +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
Brad Ebinger
0d36ed248f Expose ProvisioningManager API for IMS configurations
Bug: 117648104
Test: Manual
Change-Id: I71ef979cee6467fd3d70fe70e4b899dbee70e2ae
2018-11-13 12:49:28 -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
Calvin Pan
7e74c4e431 Merge "Create new API for MNO carrier id" 2018-11-12 18:09:25 +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