Commit Graph

3639 Commits

Author SHA1 Message Date
Jordan Liu
04c28872d1 Add slot based ICC channel APIs
These are SystemApis which require MODIFY_PHONE_STATE, and can be used
to open ICC channels when there is no available subscription, using the
slot index instead of subId.

Bug: 126578014
Test: builds
Change-Id: I3f47a8ac07813ea9e326c7d76123352708bfeea2
2019-03-12 22:09:31 +00:00
Shuo Qian
36ad7638dc Merge "Emergency API review" 2019-03-11 18:39:35 +00:00
TreeHugger Robot
9b9406f8c1 Merge "Use a boolean Consumer instead of RoleManagerCallback." 2019-03-11 17:22:40 +00:00
Sooraj Sasindran
153a235d10 Merge "Modify API return type and add callback." 2019-03-09 05:44:06 +00:00
Hai Zhang
f5e8ccd88f Use a boolean Consumer instead of RoleManagerCallback.
And use RemoteCallback for it under the hood. This removes one AIDL
interface and allows using lambda, while aligning with what
PermissionControllerService does.

Bug: 127691087
Test: manual
Change-Id: Ia94e5bac59773380b2a4764d766bf6ff1dd5b7ff
2019-03-08 15:51:02 -08:00
Chen Xu
556f2721d9 Merge "rename precise carrier id to specific carrier id" 2019-03-08 17:57:16 +00:00
danielwbhuang
1f2850c472 Modify API return type and add callback.
1. Modify the type from boolean to void for updateAvailableNetworks().
2. Adding callback for updateAvailableNetworks().
3. Define error codes for update available networks results.

Test: build pass
Bug: 124616182
Change-Id: I32fe1407deabe36485227ec75931bec334d85abe
2019-03-08 12:30:15 +08:00
sqian
613c3d5826 Emergency API review
1) Remove 'current' in Emergency APIs
2) Remove nullable
3) Handled the null Telephony service case
4) Hide getEmergencyServiceCategoryBitmask
5) Make getEmergencyUrns unmodifiable

Test: Treehugger
Bug: 122368381
Bug: 126699022
Bug: 126701211
Change-Id: I6eb1d8a3ae1625ff3f43f983c488c2969649713b
2019-03-07 15:49:20 -08:00
chen xu
45f6621391 rename precise carrier id to specific carrier id
Bug: 126727010
Test: atest CtsTelephonyTestCases

Change-Id: I4561ae8c15c429912695e0753b2ab3137a4e1e44
2019-03-06 17:54:01 -08:00
Sooraj Sasindran
6315e59275 Should not turn on validation for data
Should not turn on validation for data switch every time.
Provide result as a callback

Test: verified manually
Bug: 126264455
Change-Id: I5df2311d91fdab34563148b4466163696e52faf9
2019-03-05 22:16:57 +00:00
Amit Mahajan
cee0e5935e Merge "Adding new APN type for Mission Critical Services." am: 36791ef41e am: c45dc5916a
am: aec43bb247

Change-Id: Iaa216ae164b1bbc1c27be0549bd9e19fa9803cb8
2019-03-04 11:10:07 -08:00
Amit Mahajan
c45dc5916a Merge "Adding new APN type for Mission Critical Services."
am: 36791ef41e

Change-Id: I4ae43791c9444f792d69e27b76a5bf57f8dfb4c8
2019-03-04 10:43:30 -08:00
Amit Mahajan
36791ef41e Merge "Adding new APN type for Mission Critical Services." 2019-03-04 18:23:30 +00:00
Mark Chien
7c37a585d4 Merge "Change return value of getTetherApnRequired() to a boolean." am: 077a04828d am: 2b8bbdf659
am: abe8d50926

Change-Id: Id7dea6cc37c21a4ec0eae1ec2b086963a02d6295
2019-03-02 23:36:01 -08:00
Mark Chien
2b8bbdf659 Merge "Change return value of getTetherApnRequired() to a boolean."
am: 077a04828d

Change-Id: I493559087fc5bd3ace8db52bf9e6e5cc576e843f
2019-03-02 23:05:19 -08:00
Mark Chien
077a04828d Merge "Change return value of getTetherApnRequired() to a boolean." 2019-03-03 06:53:47 +00:00
Amit Mahajan
fd3ee5783e Adding new APN type for Mission Critical Services.
Test: build
Bug: 124447962
Change-Id: I9f608badd363703394432640dc892a4465660b6d
2019-03-01 16:52:17 -08:00
Brad Ebinger
5e7bfe1147 Merge "Fix ImsMmTelManager API in accordance with the council"
am: ea5bb6cd3b

Change-Id: Iddb4c85b71d8fd17fda049e6137eec7a91f18413
2019-03-01 09:37:40 -08:00
Nazanin Bakhshi
13952bc10c Merge "create getModemEnabled function in PhoneConfigurationManager" 2019-03-01 00:07:44 +00:00
Brad Ebinger
66cee391c3 Fix ImsMmTelManager API in accordance with the council
Bug: 121190195
Test: atest FrameworksTelephonyTests
Merged-In: I5d011e1875c082a4532747e30e8582ff3da4ee93
Change-Id: I5d011e1875c082a4532747e30e8582ff3da4ee93
2019-02-28 11:25:13 -08:00
Brad Ebinger
15eb8d8b9f Merge "Fix ImsMmTelManager API in accordance with the council" 2019-02-28 19:23:21 +00:00
Andrei-Valentin Onea
5ac2de02f6 Merge "Add @UnsupportedAppUsage annotations" 2019-02-28 16:44:23 +00:00
Andrei-Valentin Onea
b6965dfcc4 Merge "Add @UnsupportedAppUsage annotations" 2019-02-28 14:23:14 +00:00
Nazanin Bakhshi
63b728d1b7 create getModemEnabled function in PhoneConfigurationManager
Bug: 124402911
Test: build
Change-Id: I55ffeb865046296ccb7318dbb7a38680d7702f9f
2019-02-27 10:43:00 -08:00
Andrei Onea
fa152f9517 Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal.app
  com.android.internal.appwidget
  com.android.internal.location
  com.android.internal.os
  com.android.internal.policy
  com.android.internal.statusbar
  com.android.internal.telecom
  com.android.internal.telephony
  com.android.internal.widget

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I6eba34467b2492047e5264684312adfa029eb317
2019-02-27 16:42:54 +00:00
Andrei Onea
903da3725f Add @UnsupportedAppUsage annotations
For packages:
  com.android.ims
  com.android.ims.internal
  com.android.ims.internal.uce.options
  com.android.ims.internal.uce.presence
  com.android.ims.internal.uce.uceservice

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I13583455e85c78cfca5f4d67e4b982b58178104e
2019-02-27 15:45:38 +00:00
Annie Meng
9fbb8235fa Merge "Revert "create getModemEnabled function in PhoneConfigurationManager"" 2019-02-27 15:17:27 +00:00
Annie Meng
1d62729db9 Revert "create getModemEnabled function in PhoneConfigurationManager"
This reverts commit cc07b9ed2d.

Reason for revert: Broke presubmit

Change-Id: I329a1c509385789d189e1452c72fde55b11f1422
2019-02-27 11:20:55 +00:00
Nazanin Bakhshi
4c4c2a90db Merge "create getModemEnabled function in PhoneConfigurationManager" 2019-02-27 06:17:53 +00:00
Jordan Liu
6a5cd884a2 Merge "CallAttributes uses the call network type" am: 0a04598a39 am: f097910b87
am: a9ff4b51a9

Change-Id: Iddc6d4b9c454392f36e3648e56f0c6290e973c15
2019-02-25 23:44:21 -08:00
Jordan Liu
f097910b87 Merge "CallAttributes uses the call network type"
am: 0a04598a39

Change-Id: I05c392a2a53c295e1edca2341b2d618d5def0dc9
2019-02-25 23:07:03 -08:00
Jordan Liu
0a04598a39 Merge "CallAttributes uses the call network type" 2019-02-25 21:49:11 +00:00
Xin Li
f90d07b1b3 Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master 2019-02-23 00:39:16 +00:00
Michele Berionne
862821ede5 Merge "Add checks on multisim capabilities." 2019-02-22 01:18:41 +00:00
Xiangyu/Malcolm Chen
24328b0c59 Merge "Don't return hidden subscription in getActiveSubIdList" 2019-02-22 00:54:17 +00:00
Malcolm Chen
d91d6b24f8 Don't return hidden subscription in getActiveSubIdList
Now getActiveSubscriptionInfoList will not return hidden
subscriptions. And getActiveSubIdList should be consistent
with it. In the mean time, internal SubscriptionController
API should have a way to specify if caller wants hidden
subscriptions or not.

Bug: 124690005
Test: manual
Change-Id: I46ccae88167c2988d71a6e07da2937bf9644a1f0
2019-02-22 00:49:37 +00:00
Xin Li
b455c3a7f3 DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Bug: 120848293
Change-Id: I2f9a524f2ba552de3f62e343075cf0abf400bbae
2019-02-21 16:02:06 -08:00
Jordan Liu
65ed9d9227 CallAttributes uses the call network type
Instead of the ServiceState.getNetworkType(), since the service state
might not match the RAT of the specific call, we use the radio type from
the ImsCall.

Bug: 124785734
Test: manual
Change-Id: I33f84bb415c943d5b766fcd3a4e8257d8f7c1cfe
2019-02-21 15:52:36 -08:00
Brad Ebinger
4b292c85b6 Fix ImsMmTelManager API in accordance with the council
Bug: 121190195
Test: atest FrameworksTelephonyTests
Change-Id: I5d011e1875c082a4532747e30e8582ff3da4ee93
2019-02-21 14:47:47 -08:00
Nazanin Bakhshi
cc07b9ed2d create getModemEnabled function in PhoneConfigurationManager
Bug: 124402911
Test: build
Change-Id: I7b22c5b0dbe95a8e5be2e0cbf3199841d275dac7
2019-02-21 14:27:03 -08:00
Michele
c5e6e54a20 Add checks on multisim capabilities.
Rename method isMultisimCarrierRestricted to isMultisimSupported to
indicate extended scope that includes checks on the capabilities of the
hardware to support multi-SIM configuration.

Bug: 123537730
Test: Compilation, test application
Change-Id: I20860c7a25b054b8312c144544726337e09559e2
Merged-In: I20860c7a25b054b8312c144544726337e09559e2
2019-02-21 21:28:08 +00:00
Michele Berionne
f8bfbbb96a Merge "Add checks on multisim capabilities." 2019-02-21 21:24:44 +00:00
Nathan Harold
e3d149bbdd Merge "Expose the Radio HAL Version for Test Purposes" am: a6dda25ac9 am: 225ef93d21
am: 0025fc3286

Change-Id: I3fb947c31e5a6fb46d0216fed77e8655ac43492f
2019-02-20 13:10:40 -08:00
Nathan Harold
0025fc3286 Merge "Expose the Radio HAL Version for Test Purposes" am: a6dda25ac9
am: 225ef93d21

Change-Id: Ie4b60e4ba25b69eaef298887ca803b428620e33d
2019-02-20 12:42:50 -08:00
Nathan Harold
a6dda25ac9 Merge "Expose the Radio HAL Version for Test Purposes" 2019-02-20 17:50:41 +00:00
Xiangyu/Malcolm Chen
ad44dd90b1 Merge "Adding validate before switch feature." am: f2cf09c945
am: 86ca0ba02f

Change-Id: Ib886edf8fc3d1fa1703adcc0f91e8dff606face0
2019-02-19 21:47:24 -08:00
Xiangyu/Malcolm Chen
f2cf09c945 Merge "Adding validate before switch feature." 2019-02-20 05:25:00 +00:00
Xiangyu/Malcolm Chen
1995aaf852 Merge "Rename PREFERRED_DATA_SUBID_CHANGE to ACTIVE_DATA_SUB_CHANGE" 2019-02-20 05:07:30 +00:00
Xiangyu/Malcolm Chen
4d67623dad Merge "Move getPhoneCount implementation back to TelephonyManager." am: 7d6e085229
am: 2938bf23f7

Change-Id: Id5d2e92feb2a40c8cd6cc3206d3b2a563abd4117
2019-02-19 19:24:11 -08:00
Malcolm Chen
d78dac0bd1 Adding validate before switch feature.
In CBRS DSDS mode, switching data to CBRS network will require
validation first. Adding a component of CellularNetworkValidator
to trigger the validation and pass the result back to PhoneSwitcher.

Bug: 118348832
Test: manual
Change-Id: I689aa494f031834b5cee76906922ebdafa9c77ed
Merged-In: I689aa494f031834b5cee76906922ebdafa9c77ed
2019-02-20 02:52:14 +00:00