Commit Graph

3872 Commits

Author SHA1 Message Date
Nathan Harold
fe3124bb48 Merge "Add Conversion from CellIdentity to CellLocation"
am: 713eef404e

Change-Id: Icc3609ce4386079a84175b5dbdf1cbbb327d2a22
2018-08-23 16:17:34 -07:00
Nathan Harold
713eef404e Merge "Add Conversion from CellIdentity to CellLocation" 2018-08-23 23:01:23 +00:00
Mathew Inwood
e38a714d49 Merge "Add @UnsupportedAppUsage annotations"
am: 0d9029cf3c

Change-Id: I871ee5c3dbaf7413b8d9f0a8948d48c620733c46
2018-08-23 05:08:20 -07:00
Mathew Inwood
a838206e94 Add @UnsupportedAppUsage annotations
For packages:
  android.telephony
  android.telephony.cdma
  android.telephony.data
  android.telephony.euicc
  android.telephony.gsm
  android.telephony.ims
  android.telephony.ims.aidl
  android.telephony.ims.compat
  android.telephony.ims.compat.feature
  android.telephony.ims.compat.stub
  android.telephony.ims.feature
  android.telephony.ims.stub
  android.telephony.mbms
  android.telephony.mbms.vendor

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: I02d900d6d0ec9a6b2172a71911fec61d04e4d235
Merged-In: I22547ac0ed384d74d61cfd51d20c140e392a597f
2018-08-23 09:37:53 +01:00
Jack Yu
717e4eb21a Merge "Fixed java doc error"
am: 5831d309fa

Change-Id: I16e6228110512926af593fff2151cec0e99c9433
2018-08-22 20:40:03 -07:00
Jack Yu
5afeed5084 Merge "Added a new carrier config for data connection failed radio restart"
am: 2947e54c3d

Change-Id: I651d8092b3ee17fbcb8123f0cafedafeff68eb2c
2018-08-22 18:05:45 -07:00
Jack Yu
5831d309fa Merge "Fixed java doc error" 2018-08-23 00:23:54 +00:00
Jack Yu
a219efb6da Fixed java doc error
Test: Build
Bug: 111774203
Change-Id: Icced6451465d0a4e5c2a9eaf8203d3456a83ab08
2018-08-22 17:19:44 -07:00
Jack Yu
2947e54c3d Merge "Added a new carrier config for data connection failed radio restart" 2018-08-22 23:42:36 +00:00
Jack Yu
f02b6d6679 Merge "Added qualified networks services"
am: 63de9eabec

Change-Id: Iec9fd279b7e1c34ba7ded495e4d7a285a658991d
2018-08-22 15:25:51 -07:00
Jack Yu
3399f3644d Added a new carrier config for data connection failed radio restart
Added a new carrier config that can trigger modem restart when
receiving specific setup data fail cause code.

Test: Telephony sanity tests
Bug: 111774203
Change-Id: I39d648117f778a4548a3d50e624dbd841956c6cc
2018-08-22 14:16:47 -07:00
Jack Yu
63de9eabec Merge "Added qualified networks services" 2018-08-22 20:18:11 +00:00
Hall Liu
817c987602 Merge "Pass correct parameters to API sendMultipartTextMessage"
am: b29e727b32

Change-Id: I3aa4f8fd4e528165b9338c44132f0b2b5f0342c2
2018-08-21 18:22:01 -07:00
Jack Yu
a3ab5750a4 Added qualified networks services
Added the qualified networks service, which is a base
class for vendor's qualified network service to extend.
The service is to update frameworks the available
networks for data setup for each APN type.

Test: Manual
Bug: 73659459
Change-Id: I7238aeac8e48be2a17245de77239b242703bcb7e
2018-08-21 17:57:57 -07:00
Hall Liu
b29e727b32 Merge "Pass correct parameters to API sendMultipartTextMessage" 2018-08-21 22:27:27 +00:00
Nathan Harold
7590feeb3a Add Conversion from CellIdentity to CellLocation
Add OO conversion from CellIdentity to CellLocation
in the respective CellIdentity classes.

Bug: 67711865
Test: manual
Change-Id: I4e2dab7de5e5c5fa3bb42a22b14934874560c9fc
2018-08-21 20:44:25 +00:00
Malcolm Chen
edf51aebaf Merge "Add APIs in SubscriptionManager for opportunistic subscriptions"
am: c0a2488df6

Change-Id: Id826b13c39e594110f5813b632f1db4cec6baa4a
2018-08-16 17:35:07 -07:00
Treehugger Robot
ce7e53a943 Merge "Update docs and ensure PHONE_STATE is more predictable for unknown numbers." 2018-08-16 15:22:23 +00:00
Tyler Gunn
b8bd19ed45 Update docs and ensure PHONE_STATE is more predictable for unknown numbers.
In P the PHONE_STATE broadcast behavior changed due to new permission
requirements.  Updating the API docs for this broadcast to make it more
clear to developers how the broadcast will work given different permission
scenarios.

Also, made a minor change to how the "EXTRA_INCOMING_NUMBER" is populated
on the phone state broadcast.  Originally we opted to remove
EXTRA_INCOMING_NUMBER when the number is empty.  Developer feedback reveals
it is difficult to know for an unknown caller (where numer is empty)
whether the broadcast they're receiving is the one associated with the
broadcast for receivers with READ_CALL_LOG, or the one for receivers
without it.  This minor change eliminates the need to count broadcasts and
instead allows the developer to just focus on whether the extra is present
or not.

Test: make docs and verify the javadoc appears as expected.
Test: Used test app to confirm functionality.
Bug: 110190165
Merged-In: I55e3519fcbad4dcb7da041d0194bf4e1c7d38949
Change-Id: I35967d53274b99d66b63f4ff5acb60a689745f9d
2018-08-16 07:33:38 -07:00
Malcolm Chen
67c542f374 Merge "Abstract set APIs in SubscriptionManager"
am: 5165bbdeff

Change-Id: I4198e4ec09cb25ed0bf242c0f3bba7e2c8c6fdf1
2018-08-15 19:27:12 -07:00
Malcolm Chen
0ac24ef349 Add APIs in SubscriptionManager for opportunistic subscriptions
Bug: 92796390
Test: unittest
Change-Id: Id6d9454872e4d12a395cc568f7e2361c5b8c9a33
Merged-In: Id6d9454872e4d12a395cc568f7e2361c5b8c9a33
2018-08-15 17:01:44 -07:00
Malcolm Chen
bd4ae76753 Abstract set APIs in SubscriptionManager
Put common codes of set APIs in Subscription into an unified method.
So that later it's easier to add APIs.

Bug: 112167869
Test: unittest
Change-Id: Idd2312c98fc178f078c75937ba2d8c2e414f3c3a
Merged-In: Idd2312c98fc178f078c75937ba2d8c2e414f3c3a
2018-08-15 17:00:48 -07:00
Mathew Inwood
1b7a5028a0 Merge "Add @UnsupportedAppUsage annotations"
am: b558baa4cc

Change-Id: Id0ca3478dd2a29ded6ef0f8c8a9eabfe7a304449
2018-08-15 08:01:50 -07:00
Mathew Inwood
b558baa4cc Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 13:32:04 +00:00
Xiangyu/Malcolm Chen
a009bfe6e1 Merge "Remove old SubscriptionInfo constructors."
am: 03fcb263ab

Change-Id: I2971fc5506ee6ca0d70b9b952e420e5233b8c28f
2018-08-14 13:58:12 -07:00
Xiangyu/Malcolm Chen
03fcb263ab Merge "Remove old SubscriptionInfo constructors." 2018-08-14 18:58:25 +00:00
Malcolm Chen
fdcf6469f1 Remove old SubscriptionInfo constructors.
Bug: 92796390
Test: build
Change-Id: Id5ce174b43934e690f6c1682e502b3b7e344a865
Merged-In: Id5ce174b43934e690f6c1682e502b3b7e344a865
2018-08-13 16:33:18 -07:00
Nathan Harold
d827e4b6ad Merge "Merge CellInfo TYPE Enums" am: d3395b08c2
am: d21d855932

Change-Id: I6c6ac9d9d7808997d62130afa20ac3f9c088c4d7
2018-08-10 19:08:11 -07:00
Nathan Harold
d3395b08c2 Merge "Merge CellInfo TYPE Enums" 2018-08-10 23:56:54 +00:00
Youming Ye
a648cac07f Merge "Fix permission check for TelephonyManager#isTtyModeSupported." am: 2052fba20a
am: f8f559fcd8

Change-Id: Ia612212ae54e5ca0e3f56b3d48f5d66a829f0b2c
2018-08-10 14:35:01 -07:00
Youming Ye
2052fba20a Merge "Fix permission check for TelephonyManager#isTtyModeSupported." 2018-08-10 18:21:25 +00:00
Mathew Inwood
ba503117f4 Add @UnsupportedAppUsage annotations
For packages:
  android.providers.settings
  android.provider

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: I993adf36dc31a5e224e88217c9e8dc140b6ba880
Merged-In: I3865ac184fcb6f52c6bfab9729611b065b27722e
2018-08-10 09:37:35 +01:00
Hall Liu
a7cb9ccd59 Merge "Don't insert certain numbers into the call log" am: 01f0135ba4
am: e806a49791

Change-Id: I0d113a94a9b85b1725421dc29fe8898c36b9423e
2018-08-09 18:16:17 -07:00
Youming Ye
9b3eb9c9b5 Fix permission check for TelephonyManager#isTtyModeSupported.
TelephonyManager now calls TelecomManager#isTtySupported directly, instead of calling from its implementation PhoneInterfaceManager.

Bug: 79502396
Test: Manual
Change-Id: I686b93d31850103f1cfb7003fe0506d08a424f27
2018-08-09 17:32:11 -07:00
Hall Liu
01f0135ba4 Merge "Don't insert certain numbers into the call log" 2018-08-09 23:43:22 +00:00
Nathan Harold
53adaf88b9 Merge "Construct NeighboringCellInfo from CellInfo" am: 9257722c5c
am: 921acac430

Change-Id: I0f28057985625446af9a978867c77ae1702e74b7
2018-08-09 16:28:54 -07:00
Nathan Harold
65c4b15d42 Merge CellInfo TYPE Enums
CellIdentity and CellInfo had redundant enums to
designate the structure type. This CL merges the
better-formatted enums from CellIdentity to
CellInfo, removing the set from CellIdentity.
For cases where the structure type must be determined
at runtime based on a CellInfo record, (where
polymorphic behavior isn't/shouldn't be supported),
this provides a consistent mechanism for determining
the type without using RTTI.
In addition, this CL fixes two other minor issues:
1) The constructor for CellInfoWcdma() provided the
   wrong parcel type to the parent class.
2) The TYPE_TDSCDMA had a typo in CellInfo and was
   written as TYPE_TDCDMA.

Bug: 112003199
Bug: 67711865
Test: runtest frameworks-telephony
Change-Id: I5ca3c2de1433dfcef264e1273a658d1a0fe864b6
2018-08-09 23:26:01 +00:00
Hall Liu
430b670546 Merge "IMS: Adding support for TIR/TIP permanent provisioning" am: 1a622a4215
am: 24fd6dd4d6

Change-Id: Ibae3a2251f86ec60c54303fd274d8964d09a4393
2018-08-09 15:45:03 -07:00
Hall Liu
51c7daaa75 Don't insert certain numbers into the call log
For regulatory requirements, prevent certain sensitive numbers from
being logged in the call log. The numbers can either be specified in the
carrier config or in the mcc config for the device.

Bug: 111470439
Test: unit, manual
Change-Id: Icc4db12def802c2ce5485422a0ec199e3e7452fa
Merged-In: Icc4db12def802c2ce5485422a0ec199e3e7452fa
2018-08-09 21:57:57 +00:00
Nathan Harold
9257722c5c Merge "Construct NeighboringCellInfo from CellInfo" 2018-08-09 21:31:55 +00:00
Hall Liu
1a622a4215 Merge "IMS: Adding support for TIR/TIP permanent provisioning" 2018-08-09 20:24:18 +00:00
Ashit Sood
51832a756a IMS: Adding support for TIR/TIP permanent provisioning
- Adding ProvisionStatus to ImsSsInfo

Test: Manual
Bug: 79133104
Change-Id: I26bdfc573a64aaba7d853c1f9cd592fa95e294c0
2018-08-08 21:27:38 -07:00
Nathan Harold
45fb10525e Construct NeighboringCellInfo from CellInfo
As part of removing neighboring cell info this
CL adds support for constructing a NeighboringCellInfo
object from a CellInfo object.

Bug: 62490173
Test: tested manually using SL4A with both O-MR1 and current
    target SDKs
Change-Id: I278487e506b07ab97589da85f69f1188c73b6eb9
2018-08-08 11:02:28 -07:00
Nathan Harold
bb67bab55f Merge "Throw on revoked location permission - framework" 2018-08-02 22:16:07 +00:00
Svet Ganov
56c4148e41 Throw on revoked location permission - framework
When we fixed proper handling of location permisison gating
sensitive telephony calls we stopped throwing a security
exception when the permission is not held by the caller.
While this is not a security issue there is no reason to
change this behavior which is checked by CTS. This CL starts
throwing a security exception if the permission is not held.

Test: atest android.permission.cts.NoLocationPermissionTest

bug: 74074103

Merged-In: Ic891d62b408c692f84a345f24503f7f25d583e35
Change-Id: Ic891d62b408c692f84a345f24503f7f25d583e35
(cherry picked from commit 33b1509375)
2018-08-02 11:35:00 -07:00
Nathan Harold
3193926e6a Merge "Pass SdkVersion to getNeighboringCellInfo" am: cec3f1fafb
am: 8f4fdd4e78

Change-Id: I1397d457efe3c1758795aace2f05ed330a92e596
2018-08-01 16:13:48 -07:00
Nathan Harold
8f4fdd4e78 Merge "Pass SdkVersion to getNeighboringCellInfo"
am: cec3f1fafb

Change-Id: I46ede415a660852938506b9bd4eebff409da5929
2018-08-01 15:51:30 -07:00
Malcolm Chen
9afe59bf1c Have proper permission check in getConfigForSubId
In CarrierConfigManager, add pass context in constructor, so that
when calling CarrierConfigLoader#getConfigForSubId, it can pass
callingPackage.

Bug: 73136824
Test: regression
Change-Id: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
Merged-In: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
2018-07-31 18:43:01 -07:00
Mengjun Leng
353bed1155 Pass correct parameters to API sendMultipartTextMessage
1. Pass parameter priority, expectMore and validityPeriod
to API sendMultipartTextMessage.

2. Modify validity check algrithm for parameter priority and
validityPeriod, so that avoids the exception for invalid inputs.

Bug: 112013111

Change-Id: I7a90db6e427b3daf6589e6a2b6dad2c4b3458832
2018-07-31 15:38:07 +08:00
Nathan Harold
3892d05850 Pass SdkVersion to getNeighboringCellInfo
Bug: 62490173
Test: tested manually with SL4A (P and P+ SDK)
Change-Id: I65bae72ab8379f996486e7f4326eddf1b305658a
2018-07-30 17:19:59 -07:00