Commit Graph

4550 Commits

Author SHA1 Message Date
Jack Yu
4d3d43d006 Merge "Stop exposing reasons through phone state listener" am: 26ebccdcff
am: d05f403adc

Change-Id: I12080acebc37dc496f9b016784fc8ef6e611f1d4
2019-01-07 07:54:34 -08:00
Jack Yu
f05919ab76 Stop exposing reasons through phone state listener
The data connection reasons are implementation details
of telephony and should not be exposed externally. The
data connection fail cause, which is different from
reasons, are still available.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: Ia005abf19664e6213118ee932495950af118456d
Change-Id: Ia005abf19664e6213118ee932495950af118456d
(cherry picked from commit 4d1c945000)
2019-01-07 06:39:38 +00:00
Sahin Caliskan
36f0d9b96a Merge "Implement RcsThread querying (base)" am: 7ec9e6849e
am: 57d3db1230

Change-Id: I409f34fddeb833802be67cc2c49767ba8157af24
2019-01-05 13:42:35 -08:00
Sahin Caliskan
7ec9e6849e Merge "Implement RcsThread querying (base)" 2019-01-05 21:19:09 +00:00
Nathan Harold
8339fc246b Merge "Fix WCDMA Level Calculation for Default CC" am: 3ada51469a
am: e3db7cfb12

Change-Id: I1772eed2663d6e421a17a268f9fb4844d0118c36
2019-01-04 17:53:11 -08:00
Nathan Harold
3ada51469a Merge "Fix WCDMA Level Calculation for Default CC" 2019-01-05 01:25:14 +00:00
Sahin Caliskan
424945e010 Implement RcsThread querying (base)
This change does a first pass to introduce RcsThread querying. We can
now insert threads and query them back.

Test: Added unit test

Bug: 109759350
Change-Id: Ib116cd533a19ce4d099864a095f585ac47cdc9f6
2019-01-04 23:53:58 +00:00
Nathan Harold
549c3ba3b5 Fix WCDMA Level Calculation for Default CC
The default carrier config was setting the level
calculation method to an empty string, which caused
the level to be set forcibly to NONE/UNKNOWN due to
the logic failing to account for empty strings. This
patch sets the default to something sane "rssi" that
matches legacy behavior and also adds guards so that
an empty string will be considered default, and a non
empty but otherwise invalid string will also try to
use RSSI instead of simply failing to display signal
bars.

-Add protection against invalid array sizes
-Fix a bug where RSCP could use RSSI thresholds
-Add fallback for RSCP thresholds being null when the
 measurement type is set to RSCP.
-Define RSCP thresholds as constants.

Bug: 118800169
Test: atest CellSignalStrengthWcdmaTest
Change-Id: I8d6261bc5adab6bf9b0a88f7d59b259d338a49e9
2019-01-04 13:34:02 -08:00
Sahin Caliskan
2f1e9b45a8 Merge "Skeleton implementation of RCS APIs" am: 94d92dc3cf
am: ac974d0b0d

Change-Id: If442615ddbd0d46e7dd1a4f667534f4413324a22
2019-01-03 16:37:34 -08:00
Sahin Caliskan
94d92dc3cf Merge "Skeleton implementation of RCS APIs" 2019-01-04 00:04:43 +00:00
Sahin Caliskan
ec851b1f98 Skeleton implementation of RCS APIs
This change adds the classes for RCS Storage APIs. There
is no business logic implemented yet, and the parcelable boilerplate
code doesn't really do anything.

This was needed as these APIs are meant to be interconnected, i.e. to
use an RcsPart, the app developer will need an RcsMessage, and for
that they will need the RcsThread etc.

Test: Builds fine. Tests will be added as I add business logic.

Bug: 109759350
Change-Id: I20897946dc1d9218f60274c7e3242194c7e2ac32
2019-01-03 14:18:06 -08:00
Mathew Inwood
8501ae1763 Merge "Limit access to suspected false positives." am: aeda49d185
am: 152d5a5dcd

Change-Id: I8e10322e69d2d479079df5cf8fec0287c7c117f1
2019-01-02 05:00:54 -08:00
Mathew Inwood
aeda49d185 Merge "Limit access to suspected false positives." 2019-01-02 12:30:32 +00:00
Shuo Qian
65008ba65b Merge "Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check" am: 8336204f99
am: 9038699348

Change-Id: I2e749228e6ff119c2dbd3962889ff6637d3575bf
2018-12-28 12:32:35 -08:00
sqian
c18b326a5b Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check
Bug: 112657134
Test: Treehugger
Change-Id: I297334be370688fd9a9d46920a09152f57152039
Merged-In: I297334be370688fd9a9d46920a09152f57152039
(cherry picked from commit 6279e97c43)
2018-12-28 11:00:26 -08:00
Shuo Qian
d78fdd83b2 Merge "EmergencyNumber enhancement" am: b158b12cbb
am: 8af07a9e24

Change-Id: I17931c9ef06a9e192a6c7f7c28563045daf37e2d
2018-12-28 10:33:42 -08:00
Mathew Inwood
55418eada5 Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 14:26:35 +00:00
Shuo Qian
47eb930d87 Merge "Add Emergency service categories in ImsCallProfile" am: cfc6518c48
am: 128f421992

Change-Id: Ifa177a7348108dc3bd19fc37826c684b60b38898
2018-12-27 14:32:21 -08:00
Shuo Qian
945180736b Merge "Make some SubscriptionManager APIs system APIs" am: 755f2a38ac
am: ca9ce0df60

Change-Id: Ifca1ad29ce283d083619c5d0f11cb02d246007d6
2018-12-27 14:27:32 -08:00
sqian
46c0c303fa EmergencyNumber enhancement
1) Add Database source for EmergencyNumber
2) add mergeEmergencyNumber for merging two emergency numbers
3) enable Listener.EmergencyNumber enhancement
4) no need to pass any parameter to PhoneNotifier
5) modify API documentation
6) deprecate PhoneNumberUtils.isEmergencyNumber
7) modify API documentation for security exception and backward
compatibility
9) introduce some utils in EmergencyNumber for merging number purposes
10) add mnc into EmergencyNumber

Bug: 112657134
Test: Treehugger
Change-Id: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
Merged-In: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
(cherry picked from commit 9f93a12e1f)
2018-12-27 22:16:25 +00:00
Shuo Qian
cfc6518c48 Merge "Add Emergency service categories in ImsCallProfile" 2018-12-27 22:03:45 +00:00
Shuo Qian
755f2a38ac Merge "Make some SubscriptionManager APIs system APIs" 2018-12-27 21:58:00 +00:00
Nathan Harold
af24817935 Merge "Fix BSIC Check in CellIdentityGsm" am: 7d615aae59
am: d34107b272

Change-Id: I565c33a88a34950bb788a1c0af6f270342d8c79b
2018-12-26 18:03:35 -08:00
Nathan Harold
b635fb8eb3 Fix BSIC Check in CellIdentityGsm
Because Java uses signed bytes, a comparison between
a byte and 0xFF will always fail after integer
promotion. Fix this by forcing 0xFF to be treated as
a byte for comparison.

Bug: 119224773
Test: fixes build breakage

Change-Id: I9615667a6b442060f1d43084d56bc9c3fdb3ba35
2018-12-27 01:40:40 +00:00
Nathan Harold
47872bf7e5 Merge "Refactor CellInfo Constructors" am: bd9da6de04
am: 1d2825ce8e

Change-Id: I98f792d178813cc93c0123ba73486d3d18a4874f
2018-12-26 15:40:04 -08:00
Nathan Harold
7ce5baf9a9 Refactor CellInfo Constructors
Bug: 119224773
Test: atest FrameworksTelephonyTests
Change-Id: Ibf56797b5be2508656409a3437ff79210334bfd6
2018-12-26 09:45:31 -08:00
Jordan Liu
da2cdd3596 Merge "Add UiccCardInfo APIs" am: 8acece0441
am: a1ce4f0ec9

Change-Id: I24b89cb46f6d9d8e4e0f9f24cde49090615ed007
2018-12-26 08:35:35 -08:00
Jordan Liu
8acece0441 Merge "Add UiccCardInfo APIs" 2018-12-26 16:16:02 +00:00
Nathan Harold
b7d3f47536 Merge "Refactor SignalStrength" am: 0f1bf44c99
am: 77a7e552e6

Change-Id: If6529167138e2d7521179a6b26389752dde6fe45
2018-12-21 17:04:24 -08:00
Nathan Harold
0f1bf44c99 Merge "Refactor SignalStrength" 2018-12-22 00:38:05 +00:00
Jordan Liu
5151b7df4e Merge "SubscriptionInfo contains int cardId" am: 97c9aba888
am: 212e2576e1

Change-Id: I5bee233bf3603a11f7da8b04a51919da838cb130
2018-12-21 14:19:19 -08:00
Jordan Liu
97c9aba888 Merge "SubscriptionInfo contains int cardId" 2018-12-21 21:55:07 +00:00
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
Calvin Pan
b000ae8707 Merge "Public SIM_APN_URI uri and deprecated mcc, mnc, mvno_type, mvno_data" am: d839b0d384
am: faf8c714b7

Change-Id: I8e043242130824f6702b765cae8596c0b431d06d
2018-12-20 18:21:00 -08:00
Calvin Pan
d839b0d384 Merge "Public SIM_APN_URI uri and deprecated mcc, mnc, mvno_type, mvno_data" 2018-12-21 01:31:44 +00:00
Xiangyu/Malcolm Chen
fdae9d3f01 Merge "Add APIs to indicate which subscriptions should be hidden from user" am: 00baab3d29
am: 477d3989d3

Change-Id: I159f2fa823f93ba8540dfa8ef5367b7b813cfee1
2018-12-20 17:12:31 -08:00
Xiangyu/Malcolm Chen
e5af4b656e Merge changes from topic "118349116" am: 90f496b14c
am: 14823f0ced

Change-Id: I35bf3e4ca0b829f7bced78924036054b8c170f43
2018-12-20 16:58:32 -08: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
00baab3d29 Merge "Add APIs to indicate which subscriptions should be hidden from user" 2018-12-21 00:05:17 +00: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
Nathan Harold
f23153f166 Refactor SignalStrength
Refactor SignalStrength as a container of
individual CellSignalStrength objects for each
radio technology.

-Change SignalStrength to contain CellSignalStrength
 rather than individual measurements.
-Change the constructors for SignalStrength to take
 CellSignalStrength objects.
-Consolidate all the logic for calculating the getLevel()
 function to CellSignalStrength.
-Store the level value in SignalStrengths rather than
 compute it on the fly when needed.
-Add a few missing functions needed by SignalStrength:
     -CellSignalStrengthCdma#getEvdoAsuLevel()
     -CellSignalStrengthTdscdma#getRscp()
-Convert CellSignalStrength classes to take actual values
 instead of ASU values.

Bug: 25984037
Test: atest SignalStrengthTest
Change-Id: I302e7a8c6f68559dc69a3138061eec739ee7561f
2018-12-20 13:53:43 -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
Chen Xu
9a8b822096 Merge "refactor dataFailCause" am: 9371864133
am: ab7ada8060

Change-Id: I33f628f04da1402fe402c5234a78d4cf9d436d00
2018-12-19 23:26:59 -08:00
calvinpan
5e27237f59 Public SIM_APN_URI uri and deprecated mcc, mnc, mvno_type, mvno_data
Deprecated legacy mno and mvno columns to support carrier id and public
the SIM_APN_URI to provide app more simplier query current SIM's APN.

Bug: 120031619
Test: Build pass.
Change-Id: Ie06dfc55248b871c45ff3274de17d6eafd82d846
2018-12-20 15:16:23 +08:00
chen xu
5e499effba refactor dataFailCause
1. add comments for each data fail cause.
2. refactor dataFailCause from enum to int

Bug: 119891533
Test: Build & unit test
Change-Id: Ic453f80a3d0ccd22c6c4c1f4b2c90e2bf40cfbe1
(cherry picked from commit 3016167192)
Merged-in: Ic453f80a3d0ccd22c6c4c1f4b2c90e2bf40cfbe1
2018-12-19 21:59:50 -08:00
Malcolm Chen
0db9aa1693 Add APIs to indicate which subscriptions should be hidden from user
Bug: 120573892
Test: manual
Change-Id: I46b20241b71fef2938d7340fcf0b02173d83ed87
Merged-In: I46b20241b71fef2938d7340fcf0b02173d83ed87
2018-12-19 19:18:55 -08:00
Malcolm Chen
18350e409e Fix broken building offline-sdk-docs.
TelephonyManager#hasCarrierPrivileges(int) is hidden API so it
shouldn't be referenced in public API descriptions.

Bug: 120622105
Test: none
Change-Id: Ia6b6ec2c16b824b8eb092920089cb77cdc54bfb7
Merged-In: Ia6b6ec2c16b824b8eb092920089cb77cdc54bfb7
2018-12-19 19:17:30 -08: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