Commit Graph

4669 Commits

Author SHA1 Message Date
Treehugger Robot
4ae4e50def Merge "Do not show SMS SIM pick UI for Cell Broadcast Config change" 2019-03-29 22:52:00 +00:00
Xiangyu/Malcolm Chen
dc4cb81c83 Merge changes from topics "128455935", "123661746"
* changes:
  Better description and parameter name of setPreferredDataSubscriptionId
  Remove SubscriptionManager#setMetered API.
2019-03-29 21:48:10 +00:00
Brad Ebinger
099d985844 Do not show SMS SIM pick UI for Cell Broadcast Config change
If the user did not pick their default SIM subscription for
SMS, we were showing many dialogs to the user whenever
SmsManager#getSubscriptionId was called for cell broadcast
related APIs.

Instead, if we instantiate the SmsManager using
SmsManager.getDefault() and the user has not set a default,
use the default Phone and do not show SIM picker activity
(consistent with legacy implementation).

Bug: 129315610
Test: set up DSDS, disable eSIM operator in settings
Change-Id: I3cc4839632eede75c8943836432b07978d0efda0
2019-03-29 13:23:11 -07:00
sqian
7cf1017c39 Check permissions and carrier privilege in notifyActiveDataSubIdChanged
Bug: 127978132
Test: Treehugger
Merged-In: I1d9c5d1b242953a2af3e56718ef82761941d8d9c
(cherry picked from commit 9e9ed18772)

Change-Id: Ia25472063d6f42c36f429e725d364ecf4f16fec1
2019-03-29 11:35:29 -07:00
Brad Ebinger
54fffdc876 Merge "Change ProvisioningManager API as per review" 2019-03-29 18:23:35 +00:00
Shuo Qian
e5709bf75f Merge "Emergency Number format" 2019-03-29 18:11:26 +00:00
Sooraj Sasindran
ae1e2eef9e Merge "Update documentation for updateAvailableNetworks" 2019-03-29 17:21:54 +00:00
sqian
70d83725fc Emergency Number format
Use PhoneNumberUtils#isDialable to check each character.

Bug: 123241078
Test: Treehugger
Change-Id: Icc9083ed4d6cdae22c3ede9433433ac8eeec4918
Merged-In: Icc9083ed4d6cdae22c3ede9433433ac8eeec4918
(cherry picked from commit 0197a96e8a)
2019-03-28 19:04:35 -07:00
Malcolm Chen
fe577d3c4d Better description and parameter name of setPreferredDataSubscriptionId
Bug: 128455935 128456058
Test: build
Change-Id: I41ae6752756d998739fd7635bcc7765f255806d7
Merged-In: I41ae6752756d998739fd7635bcc7765f255806d7
2019-03-28 18:06:01 -07:00
Malcolm Chen
9b932fa1a4 Remove SubscriptionManager#setMetered API.
Bug: 123661746
Test: sanity
Change-Id: Ia6772dee1bd566e0be6b06455d92c923d2c01b12
Merged-In: Ia6772dee1bd566e0be6b06455d92c923d2c01b12
2019-03-28 18:01:09 -07:00
Sooraj Sasindran
4c91debee8 Update documentation for updateAvailableNetworks
Update documentation for updateAvailableNetworks
Bug: 128902411
Test: make

Change-Id: Ib6b6d72db3320e6c95f74b9371483f57bc90fee1
2019-03-29 00:17:43 +00:00
Brad Ebinger
47e5ce9c3e Change ProvisioningManager API as per review
Bug: 129344996
Test: Manual
Change-Id: I1c41cf1ae622ee24b4bed91c15d194518f91dac7
2019-03-28 15:08:16 -07:00
Evan Tyra
f0c8f19325 Change Values for Opportunistic Entry & Exit Thresholds
Due to the generally higher quality of these networks, we expanded the
entry and exit criteria of opportunistic networks.

Test: Make
Change-Id: Iaac1641db1d6a07bcce6dd194765c79c83a92070
Merged-In: Iaac1641db1d6a07bcce6dd194765c79c83a92070
2019-03-28 21:09:06 +00:00
Jayachandran Chinnakkannu
6eab01bf59 Merge "Revert "improve mism support for phonestatelistner"" 2019-03-28 18:05:53 +00:00
Jayachandran Chinnakkannu
e7f42fa203 Revert "improve mism support for phonestatelistner"
This reverts commit 2506ceb71e.

Reason for revert: DSDS system UI issues (b/129426477)

Change-Id: Ic0fde0d3bd412868917cdbe74504c3f9cebdc712
2019-03-28 16:31:19 +00:00
Malcolm Chen
6ec5ffe7f3 Show signal strength of current active subscription
For grouped primary and opportunistic use-case, if both are active,
mobile signal bar should by default show which one is currently
used for Internet data. Unless carrier set it otherwise -- if they
want to always show signal bar of primary subscription.

Bug: 123780907
Test: manual
Change-Id: I62e298e7b9bdc82dd44f0c8ae783c623e101b0ef
Merged-In: I62e298e7b9bdc82dd44f0c8ae783c623e101b0ef
2019-03-27 14:50:04 -07:00
Malcolm Chen
aeb06221ba Update document of setSubscriptionEnabled public API.
Bug: 126391008
Test: build
Change-Id: Iffb7895f94f8d0b2d071edb1e06c8e99be14be4f
Merged-In: Iffb7895f94f8d0b2d071edb1e06c8e99be14be4f
2019-03-27 14:20:15 -07:00
Malcolm Chen
d1b4a81a38 Clean up shouldHideSubscription API
Combine shouldHideSubscription and isInvisibleSubscription
for better readability.

Bug: 126637721
Test: manual - use test app to call SubscriptionManager APIs to make
sure they return correct values.

Change-Id: I0deb463430a6825db40ec00abac49cb662e79437
Merged-In: I0deb463430a6825db40ec00abac49cb662e79437
2019-03-27 14:17:33 -07:00
Xiangyu/Malcolm Chen
42914720d8 Merge changes I592d3538,I791fd630
* changes:
  Add @Nullable on SubscriptionInfo#getGroupUuid
  Adding nullability annotation.
2019-03-27 19:06:12 +00:00
Hayden Gomes
2b7db36a14 Merge "Moving BT SMS logic to internal telephony" 2019-03-27 19:01:48 +00:00
Jack Yu
12a29b5621 Renamed DataSpecificRegistrationState
Renamed DataSpecificRegistrationState to
DataSpecificRegistrationInfo. And added some
APIs to test API so they can be accessed by
CTS.

Test: Manual
Bug: 127657991

Merged-In: I1a623c18f02cfd19ca1af9df912d859b363f42d1
Change-Id: I1a623c18f02cfd19ca1af9df912d859b363f42d1
(cherry picked from commit dba103204c)
2019-03-26 22:17:15 -07:00
Treehugger Robot
c365007e5f Merge "Hide blocking pay phone option use carrier config" 2019-03-26 22:10:58 +00:00
Amit Mahajan
cd24e832e8 Merge "Device could not use wifi hotspot when data card switch to sim2" 2019-03-26 21:18:23 +00:00
Calvin Pan
f5bc344375 Merge "Marked nullable in setter argument" 2019-03-25 02:01:52 +00:00
Treehugger Robot
e1dda15d6c Merge "Annotate Data and Voice Roaming setters with @TestApi." 2019-03-23 01:03:31 +00:00
Brad Ebinger
dedc27142d Merge "Query isEmergencySmsMode API when checking if emergency for GPS" 2019-03-22 17:18:47 +00:00
Hayden Gomes
7a3d8a4f00 Moving BT SMS logic to internal telephony
- Move Bluetooth SMS logic to BtSmsInterfaceManager
- Move subscription check to SmsController

Bug: 127331685
Test: Manually sent SMS through connected bluetooth device
Change-Id: Icb0fc1cc8339ec3f0b5402ea9b8e15650d8972e5
2019-03-22 08:34:19 -07:00
Andrei Onea
fbc8cfdc94 Add @UnsupportedAppUsage annotations
For packages:
  android.companion
  android.filterfw
  android.hardware.camera2.utils
  android.inputmethodservice
  android.net.nsd
  android.os
  android.preference
  android.security.keymaster
  android.service.dreams
  android.telecom
  android.telephony.ims.compat.feature
  android.telephony
  android.util
  android.view.accessibility
  android.media.effect

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
Merged-In: I9c2f8347952f3cc65759472b0e1a2717b285e44e
Change-Id: I14793863cf815fa3383fec6c6bf5a9365c2e17eb
2019-03-22 11:43:11 +00:00
Jack Yu
ac3406f9c6 Merge changes from topic "iwlan_api_review"
* changes:
  IWLAN API review changes
  Unhide methods required for Parcelable class
  Added annotations to the API
2019-03-22 00:29:07 +00:00
Brad Ebinger
0b6c77167e Merge "Fix build due to no explanatory comment." 2019-03-22 00:25:11 +00:00
Treehugger Robot
9a1888ce62 Merge "Add "from" extra for ACTION_TOGGLE_SUBSCRIPTION_PRIVILEGED" 2019-03-21 23:35:39 +00:00
Nathan Harold
0b88e07ea5 Merge "Expose CellInfoTdscdma" 2019-03-21 23:19:43 +00:00
Brad Ebinger
ef44a92a73 Fix build due to no explanatory comment.
Test: manual build
Change-Id: Ibfb3a114c74d673eb94dd2fa1fc9b9918283e9db
2019-03-21 15:31:01 -07:00
Treehugger Robot
18870b2e4e Merge "Deprecate SystemApi that was accidently made public in P" 2019-03-21 21:46:25 +00:00
Jack Yu
c876b65663 IWLAN API review changes
Made several API changes per API council
suggestions.

Test: Manual + unit tests
Bug: 127812471
Bug: 128607082

Merged-In: I0f93c07207b10b566e9f858361e55b18dc0881a0
Change-Id: I0f93c07207b10b566e9f858361e55b18dc0881a0
(cherry picked from commit 806b64228d)
2019-03-21 14:12:24 -07:00
Jack Yu
aff62b8a32 Unhide methods required for Parcelable class
Those methods were already public in the base class.

Test: Build
FIXES: 126702898

Merged-In: Ibce8f9bf5d1a3ebf9225fa46422dc3c78e29b1f6
Change-Id: Ibce8f9bf5d1a3ebf9225fa46422dc3c78e29b1f6
(cherry picked from commit 654bb21f70)
2019-03-21 13:40:37 -07:00
Jack Yu
22241e1788 Added annotations to the API
Added @NonNull and @Nullable to APIs.

Test: Build
Bug: 126702898

Merged-In: I697298837858829bb0851aba389159701fa0fc5e
Change-Id: I697298837858829bb0851aba389159701fa0fc5e
(cherry picked from commit 1eb3f0cdae)
2019-03-21 13:39:21 -07:00
Michele Berionne
c5461c4490 Merge "Modified MultiSim APIs" 2019-03-21 18:53:11 +00:00
Patrick Huang
d1385242ad Add "from" extra for ACTION_TOGGLE_SUBSCRIPTION_PRIVILEGED
Bug: 126242076
Test: Test on phone to ensure the extra is received by LPA
Change-Id: I1367fa988dbc71eb30631ebf9903309eba3ef96d
Merged-In: I1367fa988dbc71eb30631ebf9903309eba3ef96d
2019-03-21 11:22:39 -07:00
Jordan Liu
ae25b62203 Merge "Update documentation" 2019-03-21 17:36:14 +00:00
calvinpan
f31d83904c Marked nullable in setter argument
Marked nullable in setter argument

Bug: 128703423
Test: build pass
Change-Id: I2c50d59bacbcdc5190658ae7ad48920908655b97
2019-03-21 18:27:34 +08:00
苗苗 (Miao Miao)
3be9888e5a Device could not use wifi hotspot when data card switch to sim2
STEPS TO REPRODUCE:
1. Test devide insert two sim card into the phone,Sim1 do not support DUN APN and sim2 support DUP APN
2. Switch data card to sim2
2. Enable wifi hotspot
3. Reference phone connect test device wifi hotspot and access website

OBSERVED RESULTS:
Reference phone could connect to test device wifi hotspot but could not access to Internet

Test: Whether wifi hotspot available when sim2 which support DUN APN is data card
Change-Id: I733ccea273b03efc6bbc59c3308d0b7941eb282b
2019-03-21 16:20:05 +08:00
Michele
8e17c7064d Modified MultiSim APIs
Capitalize S in Multisim.
isMultiSimSupported should return three states, to describe the three possible cases
(hardware not supported, hardware supported but carrier restricted, available)

Bug: 128524079
Test: compilation
Change-Id: Icbd36f714c577a965d39336d54d7224c8c2c7cd2
Merged-In: Icbd36f714c577a965d39336d54d7224c8c2c7cd2
2019-03-20 23:04:52 -07:00
Patrick Huang
4bcdd78d56 Merge "Document type of euicc privileged action extras." 2019-03-21 02:09:20 +00:00
Treehugger Robot
7e2e333769 Merge "Document permissions for euicc privileged actions." 2019-03-21 01:41:23 +00:00
Nathan Harold
b2bfb29595 Expose CellInfoTdscdma
Expose CellInfoTdscdma and CellSignalStrengthTdscdma
which are both returned by existing public APIs.
This corrects an oversight whereby the values returned
by the public API could not be used by callers.

Existing CTS tests already validate these structures as
though they were public (which was the intention).

Note, this was also requested as feedback in the public
beta.

Bug: 128880490
Test: cts - atest CellInfoTest; atest SignalStrengthTest
Merged-In: Ia75ea9af52796729e26b85ca04fd97b6c9b80f8e
Change-Id: Ia75ea9af52796729e26b85ca04fd97b6c9b80f8e
2019-03-21 01:10:18 +00:00
Youming Ye
9592a42c68 Hide blocking pay phone option use carrier config
Change-Id: I9f92f90d5375d8b9a7e9ae61b30ab44a570ae864
Bug: 128907408
Test: Manual
2019-03-20 18:04:37 -07:00
Treehugger Robot
84ea11384d Merge "API review feedback changes" 2019-03-20 23:22:20 +00:00
Patrick Huang
c78c89d055 Document type of euicc privileged action extras.
Bug: 128317614
Test: Test on phone
Change-Id: Ib7978807376c7987d3aa8a7e3d1dc4bc6c814c6a
Merged-In: Ib7978807376c7987d3aa8a7e3d1dc4bc6c814c6a
2019-03-20 15:57:55 -07:00
Patrick Huang
dafb87c957 Document permissions for euicc privileged actions.
Bug: 128317064
Test: Test on phone
Change-Id: I285597e48e97f1b4ffe4b4eb4ac68010905f4e1f
Merged-In: I285597e48e97f1b4ffe4b4eb4ac68010905f4e1f
2019-03-20 15:35:14 -07:00