Commit Graph

4479 Commits

Author SHA1 Message Date
Hall Liu
1059cd57f0 API tweaks round 2
Add nullability annotations and change a static constant to a method
that returns a value.

Fixes: 126702861
Fixes: 126699926
Fixes: 126698717
Fixes: 126699057
Fixes: 126701443
Fixes: 126700882
Test: compiles
Change-Id: I96396eb8890b8b5148cf74447e08c31983398e47
2019-02-28 18:54:15 -08:00
Jordan Liu
eee18bd546 Merge "Implement isRemovable" 2019-02-27 20:40:31 +00:00
Amruth Ramachandran
d5386dfe1f Merge "Expose DataSpecificRegistrationState as System API" 2019-02-27 19:00:44 +00:00
Nathan Harold
fd8cb59cc1 Merge "Add Documentation for ACTION_DEBUG_EVENT" 2019-02-27 18:39:59 +00:00
Nathan Harold
b609e1cc83 Add Documentation for ACTION_DEBUG_EVENT
The debug event action lost out on the documentation
for DebugEventReporter when it migrated to TM. This
change adds documentation for ACTION_DEBUG_EVENT
EXTRA_DEBUG_EVENT_ID, and EXTRA_DEBUG_EVENT_DESCRIPTION

Bug: 126178766
Test: make offline-sdk-docs (docstring-only change)
Change-Id: I6073d8b181c1258dbd7b47e8d5a45732d619396a
2019-02-26 16:42:54 -08:00
Amruth Ramachandran
e4cbd119d4 Expose DataSpecificRegistrationState as System API
LteVopsSupportInfo is currently not accessible for telephony
  APK since DataSpecificRegistrationState is @hide api. This info is
  required to determine if current LTE network support IMS. This
  change exposes DataSpecificRegistrationState and LteVops info
  as System API.

Bug: 112194535
Test: atest

Change-Id: Iec5c42ccef88b66c3f8ef05f8f96b2a4133ca63f
2019-02-26 14:16:40 -08:00
Hall Liu
3d7b3fb737 Merge "Rename the RTT audio flag in ImsStreamMediaProfile" 2019-02-26 21:54:40 +00:00
Jordan Liu
0fe6845f7d Implement isRemovable
Add resource non_removable_euicc_slots which lists the slot indexes
which refer to non-removable eUICCs chips.

Test: EuiccCardTest
Bug: 122738148
Change-Id: I8836e25acf37527bbb067538902de056e1465b31
Merged-In: I8836e25acf37527bbb067538902de056e1465b31
2019-02-26 13:30:15 -08:00
Nathan Harold
11cbc3b9f2 Fix Order of Operations for Converting RSSI to ASU
Due to the wrong order of operations, the conversion
from RSSI to ASU was returning bad results. Fix the
equation so that the ASU is correctly calculated.

Bug: 126199198
Test: (force device to GSM) - atest CellInfoTest
      verified on aosp_taimen

Change-Id: Iaeb9a2a6d8efb5b39fc1f81e8d2969694cc06422
2019-02-26 01:55:40 +00:00
Chen Xu
7db49c554a Merge "getSimLocale should return locale rather than string tag" 2019-02-25 22:26:05 +00:00
chen xu
f98efc3961 getSimLocale should return locale rather than string tag
Bug: 124767220
Test: Build
Change-Id: Ib4938652f2e6541b44894ae1a2b0cb2ea4c899be
Merged-in: I850108ce0905d16e538e46ccd4bbf92a2bcfba42
2019-02-25 18:33:08 +00:00
Sahin Caliskan
35e3d8e897 Merge "Hide RcsMessageStore APIs" 2019-02-22 21:56:31 +00:00
Chen Xu
e05a1cb5db Merge "API council feedbacks for preciseCall APIs" 2019-02-22 21:52:00 +00:00
Nathan Harold
c020cf5291 Merge "Add Class-Filtered getCellSignalStrengths" 2019-02-22 20:42:03 +00:00
chen xu
7621ff222f API council feedbacks for preciseCall APIs
Bug: 125346540
Test: Build
Change-Id: I3a9a8d3e2168d937f085624b80a891b6baddd0e5
2019-02-22 11:09:07 -08:00
Jack Yu
e8eb967389 Merge "Fixed incorrect data network type when device is on IWLAN" 2019-02-22 17:35:15 +00:00
Sooraj Sasindran
233b4f140b Merge "use putLong for long config" 2019-02-22 06:16:45 +00:00
Michele Berionne
862821ede5 Merge "Add checks on multisim capabilities." 2019-02-22 01:18:41 +00:00
Sahin Caliskan
9a7e40eb3e Hide RcsMessageStore APIs
This feature is punted from Android Q. This change hides the APIs.

Test: infeasible

Bug: 109759350
Change-Id: Ic278d45ab573b267a7cbf4c930496cc2044fa855
2019-02-21 16:28:48 -08:00
Jack Yu
c9747b94f0 Fixed incorrect data network type when device is on IWLAN
When the device is configured as AP-assisted mode, the cellular
network service should reports the cellular data RAT instead of
IWLAN. However, before we clean up all usages of
ServiceState.getDataNetworkType(), we still need to simulate the
old behavior, which is reporting IWLAN as the data network type.
Once all places are cleaned up, we can remove this temporary
solution.

Test: Manual
Bug: 124994459
Merged-In: I37256517af3bcf7330cefe55a33d6f09af7e1353
Change-Id: I37256517af3bcf7330cefe55a33d6f09af7e1353
(cherry picked from commit 2bd032071b)
2019-02-21 15:57:32 -08:00
Sooraj Sasindran
9e9d49c8ce use putLong for long config
use putLong for long config
Bug: 124800330
Test: make


Merged-In: Ibb3e9e2fefcc82eab1deecd65ee81aab0fec8c5e
Change-Id: Ibb3e9e2fefcc82eab1deecd65ee81aab0fec8c5e
2019-02-21 23:55:45 +00: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
Treehugger Robot
4b93dd3ff7 Merge "Add documentation for inserting RCS 1-on-1 thread" 2019-02-20 22:07:36 +00:00
Nathan Harold
adcb75d38b Debug Event for Malformed PLMN ID in CellIdentity
Add a debug event to catch the case where the modem
reports a PLMN-ID that is either malformed or incomplete.

Bug: 124332651
Test: compilation
Change-Id: Iffea47349ff999aade2aa26e30f00e5007ba7b4e
2019-02-20 21:07:52 +00:00
Treehugger Robot
609ea873b7 Merge "Split RCS events into API and internal classes" 2019-02-20 20:01:14 +00:00
Nathan Harold
a6dda25ac9 Merge "Expose the Radio HAL Version for Test Purposes" 2019-02-20 17:50:41 +00:00
Xin Li
4ba3b12efb Merge changes from topic "PPRL.190205.001"
* changes:
  Fix merge problems with cherry-picking "Add notification settings to backup&restore" change into pi-dev
  DO NOT MERGE - Merge PPRL.190205.001 into master
2019-02-20 16:25:58 +00:00
Leland Miller
db2337f779 Add documentation for inserting RCS 1-on-1 thread
Test: None, documentation only
Bug: 124781386
Change-Id: I1ab521aa6ceb54dc513a219b238f66a59fbfab97
2019-02-20 07:53:49 -08:00
Xiangyu/Malcolm Chen
f2cf09c945 Merge "Adding validate before switch feature." 2019-02-20 05:25:00 +00:00
Xiangyu/Malcolm Chen
7d6e085229 Merge "Move getPhoneCount implementation back to TelephonyManager." 2019-02-20 02:58:09 +00: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
Hall Liu
5bc4949f3f Merge "Turn on enforcing mode for Q-based location APIs" 2019-02-20 01:08:04 +00:00
Malcolm Chen
1a1689a32c Move getPhoneCount implementation back to TelephonyManager.
Moving it inside iTelephony creates problems. Some components call
getPhoneCount during initialization while iTelephony service is not
even running, which will cause phone process to crash.

Bug: 123667461
Test: manual
Change-Id: I51199eaf0bd87055c21fe61af50f4c353137d621
Merged-In: I51199eaf0bd87055c21fe61af50f4c353137d621
2019-02-20 00:49:58 +00:00
sqian
6473542b4d Add 'hasKnownUserIntentEmergency' into ImsCallProfile Parcel
Test: Treehugger
Bug: 123999640
Change-Id: Ie68a02a7e0f9aabe5dbc37806a495169feb63765
Merged-In: Ie68a02a7e0f9aabe5dbc37806a495169feb63765
(cherry picked from commit 0c86fbf491)
2019-02-19 15:25:02 -08:00
Leland Miller
c39f23c1a6 Split RCS events into API and internal classes
This will allow us to inject dependencies into the API classes that are
not parcelable or do not come from ircs.

Bug: 123699565
Test: Unit tests pass
Change-Id: Iab4e6ea3fd983eef7fb0cba7311175ea82a444ff
2019-02-19 11:39:49 -08:00
Hall Liu
c54582e1f0 Turn on enforcing mode for Q-based location APIs
Also fix some logging.

Bug: 116258458
Test: manual, unit
Change-Id: I370aae906760365d9cd2a35b456d8ff8522c0902
2019-02-15 17:31:29 -08:00
Shuo Qian
b75330904e Merge "Populate 'hasKnownUserIntentEmergency'"
am: 59d8275546

Change-Id: If7167ecae8c4de2cfb3a8032beb350fe1e327f32
2019-02-15 13:43:51 -08:00
Shuo Qian
59d8275546 Merge "Populate 'hasKnownUserIntentEmergency'" 2019-02-15 21:23:52 +00:00
Leland Miller
122d78ddac Merge "Move RCS table creation flag to contract class"
am: 0c8bc10ab2

Change-Id: I81f0a24320171fee4d20b661c08d8144e84df181
2019-02-15 10:37:18 -08:00
Leland Miller
0c8bc10ab2 Merge "Move RCS table creation flag to contract class" 2019-02-15 18:16:12 +00:00
Nathan Harold
69e0ed19e1 Expose the Radio HAL Version for Test Purposes
To properly check that values are being populated by
devices supporting newer HALs, it is necessary to
avoid enforcement on devices using older HAL versions.
Exposing the HAL version for test purposes allows that.

Bug: 122834594
Test: compilation
Change-Id: Idadc2fc8dd4f7b4765af90d92b62eea3e017a843
2019-02-15 09:56:00 -08:00
Brad Ebinger
e652e8dc45 Merge "SMS: Add a compatible API getRecipientAddress for 3GPP2 SMS"
am: ca2abcf735

Change-Id: I64c5a75551809204b6eb6a4d67faf248cc27f6bf
2019-02-14 16:09:08 -08:00
Brad Ebinger
ca2abcf735 Merge "SMS: Add a compatible API getRecipientAddress for 3GPP2 SMS" 2019-02-14 23:40:44 +00:00
Xin Li
07ec9dbec5 Merge "DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master" into stage-aosp-master 2019-02-14 22:11:32 +00:00
Xin Li
0e71b4f19b DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into
stage-aosp-master

Bug: 124234733
Change-Id: Ic4f67fde0835da0b1c363906cccef0d244e38393
2019-02-14 09:48:06 -08:00
sqian
5e5d303982 Populate 'hasKnownUserIntentEmergency'
This is only used to specify when the dialed number is ambiguous,
identified as both emergency number and any other non-emergency number;
e.g. in some situation, 611 could be both an emergency number in a
country and a non-emergency number of a carrier's customer service hotline.

Test: Manual
Bug: 123999640
Change-Id: I7b1a8832ab86b3e7d8f9af24eb4f7bde7d566612
Merged-In: I7b1a8832ab86b3e7d8f9af24eb4f7bde7d566612
(cherry picked from commit 6d9e7457da)
2019-02-13 19:30:40 -08:00
Hall Liu
7ba07b0c65 Rename the RTT audio flag in ImsStreamMediaProfile
Change-Id: I6a086f656fc241035a4ce50955410094c5d7dcc2
Fixes: 123938874
Test: manual
2019-02-13 17:38:14 -08:00
sqian
a31ef445e9 Call e.rethrowFromSystemServer() to exception of setDefaultSmsSubId
Test: Treehugger
Bug: 123927534
Change-Id: Ica15965cb904b758e078b8439e5e9d3f39b9c0a2
Merged-In: Ica15965cb904b758e078b8439e5e9d3f39b9c0a2
(cherry picked from commit 04e94fcb0a)
2019-02-13 17:06:05 -08:00
Jordan Liu
b8493ac5eb Merge "Add UNINITIALIZED and rename INVALID" 2019-02-14 00:14:11 +00:00
Hall Liu
a3aae9fe4b Merge "Implement more location checks" 2019-02-13 23:21:43 +00:00