4244 Commits

Author SHA1 Message Date
Sooraj Sasindran
c5659cae01 Support Signal strength offset
Support feature to offset LTE rsrp
for higher freaquency lte bands.

Test: Verified on device that signal bars increased
Bug=30628343
Merged-In: Id0b54901a1e8832fb48ba509e6a380c43f4c9497
Change-Id: Id0b54901a1e8832fb48ba509e6a380c43f4c9497
2017-03-15 15:41:03 -07:00
Joachim Sauer
dd0f47a9da Merge "Change Czech Republic to Czechia" am: 027a67062e am: 14bcec27a0
am: 9b30497243

Change-Id: I78d646c5052e29662f523dc4ae6ce3ecb5d4768d
2017-03-15 12:07:40 +00:00
Joachim Sauer
14bcec27a0 Merge "Change Czech Republic to Czechia"
am: 027a67062e

Change-Id: I51fc6fde5647b1fd8ecc677da7f6ec7a248a3b38
2017-03-15 11:57:28 +00:00
Treehugger Robot
027a67062e Merge "Change Czech Republic to Czechia" 2017-03-15 11:45:45 +00:00
Ammar Aijazi
11b4498aa5 Add carrier config keys to control the data cycle.
Adds the following keys: KEY_MONTHLY_DATA_CYCLE_DAY,
KEY_DATA_WARNING_THRESHOLD, and KEY_DATA_LIMIT_THRESHOLD.

This allows carrier apps to control the monthly data cycle reset date,
as well as fill in data warnings and limits based on plan details.

Bug: b/34385985
Test: No explicit tests for the API additions, but will add tests to the
follow up review which adds functionality that depends on these fields.
Change-Id: I2aee5cdbc4b707e28062830f1143c694ccae13cd
2017-03-14 10:45:27 -07:00
TreeHugger Robot
76c27d8b04 Merge "Update VVM API" 2017-03-10 18:40:00 +00:00
Brad Ebinger
6202c5e005 Merge "Disable a phone number log for user build" am: 59a40691a5 am: d31314d550
am: c906a167cb

Change-Id: I0c1bef7c7b436dcee5dfc8a06e8141f7757d7199
2017-03-10 00:03:18 +00:00
Brad Ebinger
d31314d550 Merge "Disable a phone number log for user build"
am: 59a40691a5

Change-Id: I9b2a14b29fe5e096b734b6e3f1d4b65806753646
2017-03-09 21:46:39 +00:00
Brad Ebinger
59a40691a5 Merge "Disable a phone number log for user build" 2017-03-09 21:39:00 +00:00
Brad Ebinger
5fe6fbcaad Merge "Return generic Binder on onBind" am: c6613f7206 am: 2a71bd5150
am: 2fca3afd4b

Change-Id: Ic668d9bb43f58f28c096083f89c6bec30cf9640a
2017-03-08 20:11:04 +00:00
Brad Ebinger
2a71bd5150 Merge "Return generic Binder on onBind"
am: c6613f7206

Change-Id: Ibc8cce3c63b93820f6bdd842e6a751233240874d
2017-03-08 20:02:03 +00:00
Joachim Sauer
8416a4dfd1 Change Czech Republic to Czechia
This commit only contains changes to comments.

Bug: 34964100
Test: m buildcheck
Change-Id: I174eb8bf8ed7ac36198bd40bda925c6274933315
2017-03-08 17:38:58 +00:00
Anju Mathapati
7e177da50c IMS: RTT interface changes
Changes to implement RTT feature

Test: compilation
Change-Id: I6ce6993f5ecc321b91642cab297efb35cda3de2b
2017-03-07 16:21:05 -08:00
Ta-wei Yen
3f5858efa0 Update VVM API
+ TelephonyManager.getVisualVoicemailPackageName() uses pinned subId
  from the manager.
+ TelephonyManager.getNetworkSpecifier() updated doc to explain what
  a network specifier is.
+ TelephonyManager.getCarrierConfig() Annotated with @WorkerThread
  specified failure behavior.
+ VisualVoicemailSms.getFields() Doc specified values are carrier
  dependent.

- Hide DEFAULT_* from VisualVociemaliSmsFitelrSettings

Test: CTS TelephonyManagerTest
Bug: 35766748
Fixes: 35766370
Fixes: 35766489
Change-Id: If48d48a0cf588bcb59c7b77ce6a452d2fda7bfa5
2017-03-07 14:29:49 -08:00
TreeHugger Robot
cce5466f93 Merge "Throw SecurityException in sendVisualVoicemailSms()" 2017-03-07 21:18:18 +00:00
Ta-wei Yen
9f2888d9cc Merge "Add EXTRA_PHONE_ACCOUNT_HANDLE for ACTION_SHOW_VOICEMAIL_NOTIFICATION" 2017-03-07 00:31:09 +00:00
youhei.x.miyoshi
b3cd7b51d3 Disable a phone number log for user build
A phone number is privacy data. Therefore, it should be prevented
from logging in user build.

Test: manual - checked log
Bug: 34582911
Change-Id: Id040653dbfd236250e7eb07c9c2e9587ded3d63f
2017-03-06 14:53:10 +09:00
Ta-wei Yen
49f3756b59 Throw SecurityException in sendVisualVoicemailSms()
Previously if the caller is not the active VVM service, the exception
will be consumed by the Binder because it is a oneway method.

This CL changes the method to non-oneway so the caller will receive
the exception. Docs are also updated.

Change-Id: Iedf96539be3958a92e151b926ee069d6edfc4d09
Fixes: 35854031
Test: CTS - VisualVoicemailServiceTest
2017-03-03 16:36:05 -08:00
Brad Ebinger
d2369792dd Return generic Binder on onBind
By returning a generic Binder on onBind in
ImsServiceBase, we can detect when the process
crashes and restart the service, if necessary.

Test: Telephony Unit Tests
Change-Id: I2fbe2708c3df37704f0c526210267a35c75ee1eb
2017-03-03 10:15:09 -08:00
Abhijith Shastry
448c12c2f3 Permit privileged system apps to send SMS without persisting.
The system app needs to have MODIFY_PHONE_STATE permission.

Original Change-Id: Ic9242972a211c90378c183c3abf95672c2816ac7
BUG: 35325136
Test: API visibility change, Manual

Change-Id: I37b185feaa72e330a0845eff137ea310ad0dca08
2017-03-03 10:10:08 -08:00
Nathan Harold
b94d28acb5 Move newFromRil() function to a utility class
Remove a dependency on frameworks/opt from SmsMessage for CDMA

-Code move to frameworks/opt/telephony../cdma/SmsMessageConverter

Bug: 33414487
Test: Manually verified GSM and CDMA SMS: MO and MT
Change-Id: I730d292c4aad6524b03b18c0751738a73a71ecf7
2017-03-03 10:10:08 -08:00
Nathan Harold
016e9c6a78 Move OTASP_* Consts from ServiceStateTracker to TelephonyManager
-Move the OTASP_* constants from SST
-Update references to those constants in TelephonyRegistry

Bug: 33414487
Test: compilation
Change-Id: I9516a8dfa9623d69d7e051749815e91ed3d013fa
2017-03-03 10:10:08 -08:00
Nathan Harold
5a0618ead1 Port Utility Functions from DefaultPhoneNotifier
-Move static utility functions from frameworks/opt/telephony/
 ..DefaultPhoneNotifier to a new utility class in frameworks/base

-Update TelephonyRegistry to point to the new functions.

Bug: 33414487
Test: compilation
Change-Id: I36a113cb5122569d451ec3a2dfa71d72d590fa52
2017-03-03 10:10:08 -08:00
Nathan Harold
e97d1c6a8f Remove dependency on IccConstants from SmsManager
-Redefine the length of the SmsRecord in SmsManager

Bug: 33414487
Test: compilation
Change-Id: I941085e96f45164152528c123102a59930859546
2017-03-03 10:10:08 -08:00
Dan Willemsen
4980bf4aff Merge branch 'stage-telephony-refactor' into master
Bug: 33644781
Change-Id: If571e3ad9432035811714e3a92d9dfff39311c61
2017-03-03 10:10:08 -08:00
Elliott Hughes
6f00e6e977 Merge "Remove the name length limit for system properties."
am: c657b769ab

Change-Id: I700b379c0482d7d9609183a39a5c9664746ea5aa
2017-03-03 00:30:10 +00:00
Elliott Hughes
c657b769ab Merge "Remove the name length limit for system properties." 2017-03-03 00:22:31 +00:00
Elliott Hughes
33cc60ccc9 Remove the name length limit for system properties.
Bug: http://b/33926793
Test: builds
Change-Id: Ib89b66b7abebc9a28961a0c9032b99947e3db0d6
Merged-In: Ib89b66b7abebc9a28961a0c9032b99947e3db0d6
2017-03-02 14:17:03 -08:00
Elliott Hughes
cb0629eaa1 Merge "Remove the name length limit for system properties." 2017-03-02 22:15:21 +00:00
Jack Yu
01cfdb4f3a Merge "Added two new RIL commands support"
am: d7b60d7869

Change-Id: I28f1e0192db63a302daa69c2e6b13762fcbfb37b
2017-03-02 06:11:24 +00:00
Elliott Hughes
c77001de51 Remove the name length limit for system properties.
Bug: http://b/33926793
Test: builds
Change-Id: Ib89b66b7abebc9a28961a0c9032b99947e3db0d6
2017-03-01 21:16:43 -08:00
Jack Yu
1bab118bed Added two new RIL commands support
Added RIL_REQUEST_SEND_DEVICE_STATE and
RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER RIL requests support.

Test: telephony sanity tests
bug: 32223897, 20125037, 28294587

Merged-In: I148a4322dfab2d8d84faf6505fb89dfc290411e3
Change-Id: I148a4322dfab2d8d84faf6505fb89dfc290411e3
2017-03-02 03:29:07 +00:00
Jack Yu
da70ca69fd Added two new RIL commands support
Added RIL_REQUEST_SEND_DEVICE_STATE and
RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER RIL requests support.

Test: telephony sanity tests
bug: 32223897, 20125037, 28294587

Change-Id: I148a4322dfab2d8d84faf6505fb89dfc290411e3
2017-03-01 19:21:22 -08:00
nharold
d03ccf89bf Merge changes from topic 'query-fplmn-sync' am: 0dc62c6dd3 am: 1f7f262920
am: 3243ec0614

Change-Id: I3da03980792e5fa898b7109dbb2cea7147f7ee94
2017-03-01 23:38:30 +00:00
nharold
1f7f262920 Merge changes from topic 'query-fplmn-sync'
am: 0dc62c6dd3

Change-Id: Ibc08427e8de920f7f95a6a530b45cfcf8402d203
2017-03-01 21:37:58 +00:00
nharold
0dc62c6dd3 Merge changes from topic 'query-fplmn-sync'
* changes:
  Provide a public API for TelephonyManager.getForbiddenPlmns()
  Add support for querying Forbidden PLMNs
2017-03-01 20:25:17 +00:00
Tyler Gunn
b455f0deed resolve merge conflicts of 81a28efd1b16 to stage-aosp-master
Change-Id: Ic4c1ca055db8e70db49d9fc91dfc705da6136a5d
2017-03-01 08:44:32 -08:00
Tyler Gunn
81a28efd1b Merge "Support confirmation of international calls while on WFC only." 2017-03-01 16:08:40 +00:00
Brad Ebinger
5463895805 Merge "Send the IMS_SERVICE_UP intent when it is STATE_READY" am: b987777f20 am: 59282ad8df
am: 81f7d06a5e

Change-Id: I006cb9e34093cfccbfb036c82c95adc91d8cc28e
2017-02-28 23:00:28 +00:00
Brad Ebinger
59282ad8df Merge "Send the IMS_SERVICE_UP intent when it is STATE_READY"
am: b987777f20

Change-Id: I6c33449b917b6d0c2a3396eea40065c2b0bc6862
2017-02-28 22:50:38 +00:00
Tyler Gunn
ef5a401b7e Support confirmation of international calls while on WFC only.
Add new carrier config which enables a confirmation message when the user
dials an international number while on WFC only.

Add new @hide PhoneNumberUtils method which is used to determine if a
number dialed is an international number.

Test: Manual, unit.
Bug: 33272455
Merged-In: Ia7ffe10eee7d782ddc3355db616af0a48f19556e
Change-Id: Ia7ffe10eee7d782ddc3355db616af0a48f19556e
2017-02-28 13:08:22 -08:00
Brad Ebinger
e0a7345c6a Send the IMS_SERVICE_UP intent when it is STATE_READY
The ImsService must send the IMS_SERVICE_UP intent when it
signals that it is in the STATE_READY state and
IMS_SERVICE_DOWN when it is STATE_INITIALIZING or
STATE_NOT_AVAILABLE.

Also, add READ_PRIVILEGED_PHONE_STATE check

Bug: 35736451
Test: Unit tests added in frameworks/opt/telephony
Change-Id: I03d4398cf7008cf8c51b78d99eb029aa99c63f62
2017-02-28 10:56:14 -08:00
TreeHugger Robot
b70ef8d79b Merge "Support confirmation of international calls while on WFC only." 2017-02-28 18:37:35 +00:00
Tyler Gunn
662ae090a2 Support confirmation of international calls while on WFC only.
Add new carrier config which enables a confirmation message when the user
dials an international number while on WFC only.

Add new @hide PhoneNumberUtils method which is used to determine if a
number dialed is an international number.

Test: Manual, unit.
Bug: 33272455
Change-Id: Ia7ffe10eee7d782ddc3355db616af0a48f19556e
2017-02-28 08:37:42 -08:00
Jeff Davidson
dc9a6fb9a9 Rename getDataEnabled() to isDataEnabled().
The old API is reverted back to @SystemApi and marked deprecated to
avoid breaking any compilation.

Also clean up the Javadoc by making the permissions requirements
clearer and noting that this API does not take per-app data
restrictions into account.

Change-Id: I5baacc1fd7e75d54e1d6521c24f792f427d9e228
Test: TreeHugger build/boot
Fixes: 35766530
2017-02-27 16:54:40 -08:00
Nathan Harold
6a7c9333b9 Provide a public API for TelephonyManager.getForbiddenPlmns()
Bug: 33296073
Test: none
Change-Id: I4f1bce663669c18098755c386456e6e9687a3cfb
2017-02-27 16:34:40 -08:00
Nathan Harold
f56cd70734 Add support for querying Forbidden PLMNs
Bug: 32277497
Test: Verified via public API for: missing SIM and working SIM
Change-Id: Ib7838a4be81853ef336e4f3d527c483b49cd2167
2017-02-27 16:01:57 -08:00
Brad Ebinger
eb422ead0c Merge "Adds read/modify permission checks to ImsService" am: 3e64003641 am: 175213e1ee
am: 055adc457a

Change-Id: I41289905222c0bc83fe1d6b075427b79afe9b0db
2017-02-27 21:34:30 +00:00
Brad Ebinger
175213e1ee Merge "Adds read/modify permission checks to ImsService"
am: 3e64003641

Change-Id: Ia4cb2c789a13658de86c0a36648a09e7abceb621
2017-02-27 21:26:50 +00:00
Brad Ebinger
3e64003641 Merge "Adds read/modify permission checks to ImsService" 2017-02-27 21:19:18 +00:00