Commit Graph

20974 Commits

Author SHA1 Message Date
Tyler Gunn
0b0d3022ee Merge "Change data types on CallIdentification API." am: 016982ae2f
am: d29c7d63a2

Change-Id: I902f8f14350567973ab007b407bfe72ef90c2b2d
2019-02-25 11:00:58 -08:00
Nathan Harold
2b5f9c6b20 Merge "Add Class-Filtered getCellSignalStrengths" am: c020cf5291
am: 2a1c372131

Change-Id: Ib397709e307d81ffabcdb54d2c0d51e6ed8eac6a
2019-02-25 10:50:03 -08:00
Nandana Dutt
a973019596 Merge "Add a new error code for disallowing concurrent bugreports" am: 2badc1e434
am: 1ae35be3e3

Change-Id: I7440be8e4605466958d072dd977e0019f13b2193
2019-02-25 10:20:50 -08:00
Michele Berionne
f9a69bc3f6 Merge "Add checks on multisim capabilities." am: 862821ede5
am: 811e1165c2

Change-Id: I37939825d83107fd45db6c1ffef8e28f2b48704c
2019-02-25 09:49:56 -08:00
Sooraj Sasindran
0acab502a0 Merge "Allow UiAutomation to adopt the shell permission indentity" am: 9f0115bb6e
am: 178684530b

Change-Id: If21a26f16b8c88f1dab56ac7fa7a804a1e9077b0
2019-02-25 09:25:50 -08:00
Tor Norbye
9bed52b751 Merge "Update MbmsDownloadServiceBase to reflect implements IInterface" am: 07037a86d3
am: 0287ddfde2

Change-Id: Ic80c694fd7587d8c25a78f3fe50af8602b42249f
2019-02-25 09:19:26 -08:00
Tyler Gunn
016982ae2f Merge "Change data types on CallIdentification API." 2019-02-22 21:13:28 +00:00
Nathan Harold
c020cf5291 Merge "Add Class-Filtered getCellSignalStrengths" 2019-02-22 20:42:03 +00:00
Tyler Gunn
b3bdb7c36c Change data types on CallIdentification API.
Per API council feedback update the call identification name, details,
description and app name to use CharSequence.

Test: Update apis, run tests.
Bug: 123241094
Merged-In: I42df17506535c1dd598ffd61a44cb0d0440b8159
Change-Id: I42df17506535c1dd598ffd61a44cb0d0440b8159
2019-02-22 11:18:05 -08:00
Nandana Dutt
2badc1e434 Merge "Add a new error code for disallowing concurrent bugreports" 2019-02-22 08:43:48 +00:00
Michele Berionne
862821ede5 Merge "Add checks on multisim capabilities." 2019-02-22 01:18:41 +00:00
Sooraj Sasindran
9f0115bb6e Merge "Allow UiAutomation to adopt the shell permission indentity" 2019-02-22 00:41:29 +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
Svet Ganov
c2841ec7fe Allow UiAutomation to adopt the shell permission indentity
For testing we often need to run shell commands. This can be done
today via running a shell command from an instrumentation test
started from the shell. However, this requires adding shell commands
which are not in the API contract, involve boilerplate code, require
string parsing, etc.

This change allows an instrumentation started from the shell to
adopt the shell UID permission state. As a result one can call APIs
protected by permissions normal apps cannot get by are granted to
the shell. This enables adding dedicated test APIs protected by
signatures permissions  granted to the shell.

Test: cts-tradefed run cts-dev -m CtsUiAutomationTestCases
          -t android.app.uiautomation.cts.UiAutomationTest#testAdoptShellPermissions

bug:80415658

Merged-In: I4bfd4b475225125512abf80ea98cd8fcacb6a1be
Change-Id: I4bfd4b475225125512abf80ea98cd8fcacb6a1be
2019-02-21 19:59:14 +00:00
Nandana Dutt
cfb3d4856e Add a new error code for disallowing concurrent bugreports
BUG:123571915
Test: manual
Change-Id: I8787137c3cfeb33aacfa439f6eab1a668977e572
2019-02-21 16:17:54 +00:00
Tor Norbye
ddc496d622 Update MbmsDownloadServiceBase to reflect implements IInterface
The interface is there in the stubs but was missing from the signature
file; this was added as a special case to be compatible with doclava
but the special case should have been removed when we switched to the
new signature file format.

This makes this signature match the other signature for
MbmsStreamingServiceBase:

  public class MbmsDownloadServiceBase extends android.os.Binder implements android.os.IInterface {
  public class MbmsStreamingServiceBase extends android.os.Binder implements android.os.IInterface {

Test: make update-api checkapi
Change-Id: I847066580248f47be609e2795db8904f58e550b8
2019-02-20 19:25:15 -08:00
Leland Miller
720a31725d Merge "Split RCS events into API and internal classes" am: 609ea873b7
am: 7b46efda19

Change-Id: I2fc31c0fdc1e8eb203830dff9a7914e56ebda413
2019-02-20 13:05:37 -08:00
Nathan Harold
0025fc3286 Merge "Expose the Radio HAL Version for Test Purposes" am: a6dda25ac9
am: 225ef93d21

Change-Id: Ie4b60e4ba25b69eaef298887ca803b428620e33d
2019-02-20 12:42:50 -08: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
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
Shuo Qian
a3360f911a Merge "Populate 'hasKnownUserIntentEmergency'" am: 59d8275546
am: b75330904e

Change-Id: I657738047be85983dd633322ac5abe8d48b32f44
2019-02-15 14:01:51 -08:00
Shuo Qian
59d8275546 Merge "Populate 'hasKnownUserIntentEmergency'" 2019-02-15 21:23:52 +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
Remi NGUYEN VAN
84d7c7e1ef Merge "Remove NetworkMonitor dependency on ICaptivePortal" am: bfe928d593
am: 8a4908c1ab

Change-Id: I60c67a42bce60615f7e0ce86aaafac4fbff19795
2019-02-15 00:34:13 -08:00
Remi NGUYEN VAN
bfe928d593 Merge "Remove NetworkMonitor dependency on ICaptivePortal" 2019-02-15 08:09:29 +00:00
Remi NGUYEN VAN
cfff01e2db Remove NetworkMonitor dependency on ICaptivePortal
ICaptivePortal is used in the framework and cannot be used as a
dependency in NetworkMonitor, as the framework class takes precedence
when linking.
Also fix NetworkMonitorTest that was not verifying the right
startCaptivePortalApp call.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 124033493
Change-Id: I8e7bb79e50650ae182a2e4277fb49abf5fb6d910
Merged-In: Ib6a89e54312628662b130fbeec18d11e139f09fa
2019-02-15 12:20:03 +09:00
Benedict Wong
dee889a825 Merge "Add Test Network and Transport types" am: 0dddb902ae
am: ffd15698c3

Change-Id: I371a4f3bdbbfd001e9694e29843b6b7119b938b0
2019-02-14 10:59:02 -08:00
Benedict Wong
0dddb902ae Merge "Add Test Network and Transport types" 2019-02-14 18:37:04 +00: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
Jordan Liu
7a39287ca0 Merge "Add UNINITIALIZED and rename INVALID" am: b8493ac5eb
am: aa20ef0836

Change-Id: I2ad19b617f0165e7bcabac567463dfe8f4b175c6
2019-02-13 16:52:32 -08:00
Hall Liu
74c000a5ba Merge "Implement more location checks" am: a3aae9fe4b
am: 8b98155789

Change-Id: Ic1ce05e5aab661de9fd461819c9b98f81ffa8763
2019-02-13 16:32:19 -08:00
Jordan Liu
b8493ac5eb Merge "Add UNINITIALIZED and rename INVALID" 2019-02-14 00:14:11 +00:00
Pengquan Meng
95abfa9328 Merge "Add getSlotsMapping to TelephonyManager" am: 600827273c
am: 0ccab45a19

Change-Id: Ia14126704a30a77a173cd307a48fb3261b317b1f
2019-02-13 15:43:47 -08:00
Hall Liu
a3aae9fe4b Merge "Implement more location checks" 2019-02-13 23:21:43 +00:00
Pengquan Meng
600827273c Merge "Add getSlotsMapping to TelephonyManager" 2019-02-13 22:23:16 +00:00
Hall Liu
ee313737e9 Implement more location checks
Make the following modifications to APIs and required permissions.
Move the following APIs from checking coarse permission to fine
permission (except for apps targeting pre-Q):
TelephonyManager.getCellLocation()
(deprecated) TelephonyManager.getNeighboringCellInfo()
TelephonyManager.getAllCellInfo()
TelephonyManager.requestCellInfoUpdate()
PhoneStateListener#onCellLocationChanged
PhoneStateListener#onCellInfoChanged

Start checking for fine permission on the following APIs:
(Note -- these will only be logged, not denied until a future CL)
TelephonyManager.requestNetworkScan()
TelephonyScanManager.requestNetworkScan()
NetworkScanCallback#onResults

Start checking for coarse permission on the following APIs:
(Note -- these will only be logged, not denied until a future CL)
TelephonyManager#getAvailableNetworks
TelephonyManager#getServiceStateForSubscriber and #getServiceState
PhoneStateListener#onServiceStateChanged

Bug: 116258458
Test: manual via testapps
Change-Id: I45326ddacbcf538da50ca544d67eed12cf0c0861
2019-02-13 11:07:37 -08:00
Nathan Harold
ceba42dca9 Merge "Add missing UARFCN Getter to CellIdentityTdscdma" am: 627900696f
am: ba147d2c80

Change-Id: I6e856b87b8b3b698fd4da0f4c779e39bd7bd6fbb
2019-02-13 10:47:40 -08:00
Nathan Harold
627900696f Merge "Add missing UARFCN Getter to CellIdentityTdscdma" 2019-02-13 18:17:36 +00:00
Jordan Liu
1f85a3ddf3 Add UNINITIALIZED and rename INVALID
UNINITIALIZED_CARD_ID is for before the card ID is ready.
INVALID_CARD_ID is renamed to UNSUPPORTED_CARD_ID and it is used if the
card ID is known to be unsupported.

Bug: 122978614
Test: atest UiccControllerTest
Change-Id: Ia2315d9b38ef35b30d9b96b6436c08fa4404e4df
Merged-In: Ia2315d9b38ef35b30d9b96b6436c08fa4404e4df
2019-02-13 09:54:30 -08:00
Po-Chien Hsueh
4ddcd60b84 Merge "Add DynamicAndroidClient" am: fa240e8054
am: 3699ba8e9f

Change-Id: I490f16ea9e123f6828d2e4d31e53fb9471a17f6f
2019-02-12 19:53:03 -08:00
Chen Xu
61c92a7da7 Merge "Address API feedbacks for networktypebitmask" am: 307f4cfeb1
am: acb14bcf46

Change-Id: Iaeb8fade7b168bd1b9b8e0edcea4f2faf5b313a9
2019-02-12 18:58:33 -08:00
Nathan Harold
44fc7e72c4 Merge "Add NR Cell Identity to CellIdentityNr" am: be5b40b90f
am: f193d1032b

Change-Id: Ifc61fe1227a5a87387b45e0fdc71c5107bf1204b
2019-02-12 18:49:53 -08:00
Po-Chien Hsueh
fa240e8054 Merge "Add DynamicAndroidClient" 2019-02-13 01:20:26 +00:00
Pengquan Meng
0c44939a95 Add getSlotsMapping to TelephonyManager
Bug: 123101769
Test: build
Merged-In: I416d741947b1a15e66ebf71b8104c4b2ec95e310
Change-Id: I416d741947b1a15e66ebf71b8104c4b2ec95e310
(cherry picked from commit 83e7b920de)
2019-02-12 16:24:22 -08:00
Chen Xu
307f4cfeb1 Merge "Address API feedbacks for networktypebitmask" 2019-02-12 23:27:36 +00:00
Nathan Harold
7e992ec284 Add Class-Filtered getCellSignalStrengths
Add a version of getCellSignalStrengths that allows
the caller to pass in a particular class version of
interest, which returns only valid matching signal
strengths of that type. A caller may now do:

for(CellSignalStrengthLte lte : ss.getCellSignalStrengths(
        CellSignalStrengthLte.class)) {
    return lte.getRssnr();
}

Bug: 123939399
Test: (cts) atest SignalStrengthTest
Change-Id: Ia64d25df4e782f76e6474b92ca7cd60c2f7d2f5e
2019-02-12 15:10:38 -08:00
Nathan Harold
da59b53907 Add missing UARFCN Getter to CellIdentityTdscdma
Add a method to get the UARFCN for CellIdentityTdscdma.
There is an equivalent method in all the other classes,
so this is simply correcting an oversight.

Bug: 123957505
Test: atest CellIdentityTdscdmaTest
Change-Id: I743d90b4532b86edb34d267ae55eca73de2a0086
2019-02-12 13:26:46 -08:00
Nathan Harold
e13c593c9f Add NR Cell Identity to CellIdentityNr
Add the NCI to CellIdentityNr.

Bug: 124126359
Test: atest CellIdentityNrTest
Change-Id: I628048c61d3d6b6e2439357e8233c483a3c0d1d4
2019-02-12 13:26:46 -08:00
chen xu
fdeb60bd74 Address API feedbacks for networktypebitmask
1. change networktypebitmask from int to long
2. right shift definition by 1 for each bitmask, in consistent with
NW bitmask used in APN settings
3. add missing definition for IWLAN

Bug: 119118373
Test: atest CtsTelephonyTestCases:TelephonyManagerTest#testGetRadioAccessFamily
Change-Id: Idf0f88225c20fc0ed10ae4fccb705f988a3bec60
(cherry picked from commit 75b486e4c8)
Merged-in: Idf0f88225c20fc0ed10ae4fccb705f988a3bec60
2019-02-12 19:13:09 +00:00