Commit graph

693 commits

Author SHA1 Message Date
Iris Chang
14ad821b0a VTS: fix RadioHidlTest.getAvailableNetworks issue
Analysis: VtsHalRadioV1_0Target's timeout is too short for
getAvailableNetworks, because this request duration depends on NW
environment or frequency.

Suggested solution: Add a timeout parameter to wait() and default
timeout value is 5 minutes in order to avoid timeout fail due to NW
environment.

Bug: 68834032
Test: getAvailableNetworks can be passed after we apply this patch and
      test result for all other telephony 1.0 test cases are not changed.

Change-Id: Iaef7e8eefa8fcfde0ff8030cba1f9753a28eac61
Merged-In: Iaae71e0abacd28275d86a19264813ff209ddb79c
2018-04-16 05:53:27 +00:00
sqian
7f3b78408c Fix Radio response/indication 1.2
Radio VTS client 1.2 radio response cannot be cast from radio response
in the service. To fix it, the client radio response and indication
should extend 1.2 IRadioResponse and IRadioIndication

Bug: 77815815
Test: ran it on the default service
Change-Id: Ib014af98d52d9f208d2139f4a239e9d61ea4d569
Merged-In: Ib014af98d52d9f208d2139f4a239e9d61ea4d569
(cherry picked from commit 79bafb943b)
2018-04-12 18:15:36 -07:00
Nathan Harold
8e7fc9f4f5 Add a Test for RadioBandMode to Ensure Auto Mode
The radio band mode is perilous because depending
on the setting and the detected locale, other
settings may be disabled. That can leave the modem
in a soft-brick state. Thus, BandMode = 0 = AUTOMATIC
should always be supported so that the modem can
update and select a band mode of its choosing.

Bug: 28124606
Test: vts radio - getAvailableBandModes
Change-Id: I1f25d9125ef06d290e3a89b5d2162c6bfe939eba
2018-04-11 17:16:24 -07:00
sqian
0de4d31569 Radio Sap 1.2 default implementation
Checked points:
- service is on
- vts can run on it
- provided a dummy implementation that a VTS test can pass it
- applied with recent update in radio 1.2 hal
- format repaired
- pass on a 1.0 VTS test, a 1.1 VTS test, and a 1.2 VTS test

Bug: 74114758
Test: run vts

Change-Id: I8a052e3cedb41db9028552ab88f1e26492718497
2018-04-11 21:33:02 +00:00
Nathan Harold
d07b5895e0 Add a Test for RadioBandMode to Ensure Auto Mode
The radio band mode is perilous because depending
on the setting and the detected locale, other
settings may be disabled. That can leave the modem
in a soft-brick state. Thus, BandMode = 0 = AUTOMATIC
should always be supported so that the modem can
update and select a band mode of its choosing.

Bug: 28124606
Test: vts radio - getAvailableBandModes
Merged-In: I1f25d9125ef06d290e3a89b5d2162c6bfe939eba
Change-Id: I1f25d9125ef06d290e3a89b5d2162c6bfe939eba
(cherry picked from commit c9e391801ba5ccd24b41481b26c2861b71ef03d0)
2018-04-11 13:00:05 -07:00
sqian
79bafb943b Fix Radio response/indication 1.2
Radio VTS client 1.2 radio response cannot be cast from radio response
in the service. To fix it, the client radio response and indication 
should extend 1.2 IRadioResponse and IRadioIndication

Bug: 77815815
Test: ran it on the default service
Change-Id: Ib014af98d52d9f208d2139f4a239e9d61ea4d569
2018-04-11 19:15:17 +00:00
Eric Schwarzenbach
b004dbc19f Update RegState for new CellIdentity types
Bug: 74826109
Test: make, make vts
Change-Id: I6350e5da5bc064e665e54d161ee589c3eadf901a
Merged-In: I6350e5da5bc064e665e54d161ee589c3eadf901a
(cherry picked from commit 74befb69b9)
2018-03-30 15:57:24 -07:00
Eric Schwarzenbach
74befb69b9 Update RegState for new CellIdentity types
Bug: 74826109
Test: make, make vts
Change-Id: I6350e5da5bc064e665e54d161ee589c3eadf901a
2018-03-29 12:37:42 -07:00
Nathan Harold
c2b7f42d7d Merge "Fix Copy+Paste Errors in TdscdmaSignalStrength" into pi-dev 2018-03-06 17:59:10 +00:00
Nathan Harold
6df3d8eb63 Fix Copy+Paste Errors in TdscdmaSignalStrength
When copying over from WcdmaSignalStrength, the
ranges and references were wrong. Sadly they
were carried over. Fixing before this gets
out of hand.

Bug: 18628145
Test: compilation - documentation-only change
Change-Id: I08a247674cf42ebeed26c721ff99a71db4152bbf
2018-03-05 14:48:20 -08:00
Jordan Liu
6f8e4d5593 Fix wcdma signal strength comments
As per the spec, the range should be 0-31, 99, and the section
should be 8.5.

Test: builds - No change to behavior
Bug: 71329173
Change-Id: Ib1ea54b19a7bcb33a0235b3ddb3fa09c4872890f
2018-03-05 20:30:18 +00:00
Cassie
72f409ce49 Merge "Add VTS test for getCellInfoList_1_2" am: 6a83645f64 am: a56b4090f8
am: af1fd9d4d7

Change-Id: I753d13a4505c661071ae88aea0e6450d69a71aea
2018-03-02 08:03:27 +00:00
Cassie
af1fd9d4d7 Merge "Add VTS test for getCellInfoList_1_2" am: 6a83645f64
am: a56b4090f8

Change-Id: Ic6841e7d46b02c271e56db91cf9be6a4bc0c69fe
2018-03-02 07:57:26 +00:00
Treehugger Robot
6a83645f64 Merge "Add VTS test for getCellInfoList_1_2" 2018-03-02 07:42:33 +00:00
yinxu
69177feacf Add vts response functions for Radio Response 1.2 am: 2e6ed18055 am: 1ef5301ca3
am: 8e14e19ef5

Change-Id: I3f9ca84d3db0399e319f8ff36aac12aee0eb1cde
2018-03-02 01:38:07 +00:00
yinxu
8e14e19ef5 Add vts response functions for Radio Response 1.2 am: 2e6ed18055
am: 1ef5301ca3

Change-Id: Iae1bf6feb0bd092cdce9b0e2a39aeecb5720a60e
2018-03-02 01:33:03 +00:00
Cassie
65a3ad31b8 Add VTS test for getCellInfoList_1_2
Bug: 63984327
Test: VTS test
Change-Id: Ie6987f885dfe34c94b30370e1d4853084ee4030b
2018-03-01 15:49:51 -08:00
yinxu
2e6ed18055 Add vts response functions for Radio Response 1.2
Bug: 67750232
Test: Compile and Run VTS
Change-Id: I866cea94b1505b05dee336a53ab72ab685c8f441
2018-03-01 14:15:32 -08:00
Jack Yu
668583d529 Added new VTS test cases for v1.2 data call APIs am: ac1844fac4 am: 67e9c401ec
am: 20d65fe38f

Change-Id: Ic4e1a3aa90769ab3568706f303a12acf5b6f6298
2018-03-01 07:13:53 +00:00
Jack Yu
20d65fe38f Added new VTS test cases for v1.2 data call APIs am: ac1844fac4
am: 67e9c401ec

Change-Id: If3627351c92fcf781c2f7c3b87255197e980d824
2018-03-01 07:08:16 +00:00
Jack Yu
ac1844fac4 Added new VTS test cases for v1.2 data call APIs
Test: VtsHalRadioV1_2Target
Bug: 64132030
Change-Id: I3b9d94985f42a5dd9b9a24e0592cf1657da237d5
2018-03-01 04:31:11 +00:00
Eric Schwarzenbach
10a76aa6ea Add VTS tests for 1.2 reporting criteria am: 8bdc4e04e2 am: 1c9406eb01
am: 35882a28ed

Change-Id: I1c92998d3356446598877f9b1858183f6997ad2c
2018-02-28 18:53:45 +00:00
Eric Schwarzenbach
35882a28ed Add VTS tests for 1.2 reporting criteria am: 8bdc4e04e2
am: 1c9406eb01

Change-Id: I08e4ca8ab25e41e6600f14c8ca04b4cfcb772693
2018-02-28 18:41:01 +00:00
Eric Schwarzenbach
8bdc4e04e2 Add VTS tests for 1.2 reporting criteria
Bug: 72115876
Test: make
Change-Id: I7a7633994888d2f1781ac7d5730727112eb0c86d
2018-02-27 17:29:40 -08:00
Eric Schwarzenbach
dd7fa72823 Merge "Update documentation for currentPhysicalChannelConfigs()" am: 115484976b am: 501a334235
am: 1505331206

Change-Id: Ie29ba4839bded9b8ae7fd56ef39d42a236f2c355
2018-02-23 21:51:14 +00:00
Eric Schwarzenbach
1505331206 Merge "Update documentation for currentPhysicalChannelConfigs()" am: 115484976b
am: 501a334235

Change-Id: Id5d20f5c4096bd68b20214fcb33a9eeff280ba9c
2018-02-23 21:36:24 +00:00
Treehugger Robot
115484976b Merge "Update documentation for currentPhysicalChannelConfigs()" 2018-02-23 20:00:22 +00:00
Cassie
538790de37 Merge "Dot allow error OPERATION_NOT_ALLOWED and REQUEST_NOT_SUPPORTED for startNetworkScan in VTS test." am: bc2e6fec16 am: 99c25f30b8
am: fea475e9f7

Change-Id: Iaf74f720be9e4966f7898509d070f6067a114fc1
2018-02-22 23:32:32 +00:00
Cassie
fea475e9f7 Merge "Dot allow error OPERATION_NOT_ALLOWED and REQUEST_NOT_SUPPORTED for startNetworkScan in VTS test." am: bc2e6fec16
am: 99c25f30b8

Change-Id: I2c0aab341e4308a2c00b33d0cb72fa57daec89a9
2018-02-22 23:19:17 +00:00
Treehugger Robot
bc2e6fec16 Merge "Dot allow error OPERATION_NOT_ALLOWED and REQUEST_NOT_SUPPORTED for startNetworkScan in VTS test." 2018-02-22 22:30:58 +00:00
Eric Schwarzenbach
f9ec2f19bf Update documentation for currentPhysicalChannelConfigs()
Bug: 73739331
Test: n/a, documentation-only change
Change-Id: Ib35af6bc54ee22aaab2f043f7524548f65af1b82
2018-02-22 11:43:09 -08:00
TreeHugger Robot
b7e90af3b4 Merge "Fix LTE Timing Advance Doc String" 2018-02-16 19:15:30 +00:00
Nathan Harold
6aae45015f Fix LTE Timing Advance Doc String
The LTE TA Doc string has been fixed to reflect
the actual reported value of the field. The spec
reference was previously incorrect, which would
have indicated a range of 0-63 as the incremental
timing advance; however the field actually reports
the absolute timing advance, which has a much
larger range of 0-1282. In addition, this CL
updates the comment to remove a link to a defunct
website and explicitly states the range extracted
from the updated spec reference. This does not
impact the current behavior of the API as the the
previously incorrect docstring was nonsensical.

Bug: 66751464
Test: compilation (doc only change)
Change-Id: I2fc90c08ed6dd14548b10c638bf805b37d5c34e8
2018-02-16 17:32:47 +00:00
Eric Schwarzenbach
b1a7e8475a Fix comments for link capacity and signal strength reporting. am: 591387fb4f am: f35e02a910
am: bc83e6b3f5

Change-Id: I27aa1f7945569d7947cf899177ea47b2e759b6ff
2018-02-16 06:05:23 +00:00
Eric Schwarzenbach
bc83e6b3f5 Fix comments for link capacity and signal strength reporting. am: 591387fb4f
am: f35e02a910

Change-Id: Iaacb981b7268db75d761b6612c1a6f99f77ee7f4
2018-02-16 05:49:27 +00:00
Eric Schwarzenbach
3061c171bd Merge "Use new AccessNetwork type in the reporting criteria API" am: e09fba4813 am: 5455d9fe4c
am: ef9caf1db4

Change-Id: I4caf6b8c82f1654c14ec80603d99eb24f63d0d91
2018-02-16 01:23:23 +00:00
nharold
76bd518ba1 Merge "Fixes to Align TdScdma Reports with All Others" am: 38dcd0c535 am: ff3eff3386
am: 4ce247b6ff

Change-Id: I8dc3dab1dc5dffa79843ef1cfc53e719c162e025
2018-02-16 01:01:02 +00:00
Eric Schwarzenbach
ef9caf1db4 Merge "Use new AccessNetwork type in the reporting criteria API" am: e09fba4813
am: 5455d9fe4c

Change-Id: Icd64418ba333adee2a541069643c1168d8cba204
2018-02-16 00:57:49 +00:00
nharold
4ce247b6ff Merge "Fixes to Align TdScdma Reports with All Others" am: 38dcd0c535
am: ff3eff3386

Change-Id: Iac37c78e2a00df15a9157da2cb2dc8aae60b6f0e
2018-02-16 00:49:25 +00:00
Eric Schwarzenbach
591387fb4f Fix comments for link capacity and signal strength reporting.
Bug: 72110413
Test: n/a
Change-Id: Ie808f4dcb559a50bee111051290266ba47f676da
2018-02-15 16:49:17 -08:00
Treehugger Robot
e09fba4813 Merge "Use new AccessNetwork type in the reporting criteria API" 2018-02-16 00:25:08 +00:00
nharold
c088a77208 Merge "Update WcdmaSignalStrength to add RAT-specific fields" am: 53603b473d am: 2f62f3de33
am: de7e444f85

Change-Id: I595fc2e5d139e2445fc94cd68c6a2180a642d6e7
2018-02-16 00:17:38 +00:00
nharold
de7e444f85 Merge "Update WcdmaSignalStrength to add RAT-specific fields" am: 53603b473d
am: 2f62f3de33

Change-Id: Iae59e0ac908903d96b907ed59b7e89b39348c627
2018-02-15 23:54:53 +00:00
Nathan Harold
d32f1487a9 Fixes to Align TdScdma Reports with All Others
-Add uarfn to CellIdentityTdscdma
-Add OperatorNames to CellIdentityTdscdma
-Rename TdScdmaSignalStrength to TdsdcmaSignalStrength
-Add support for RSSI and BER reporting to match all
 the other signal strength structures
-Change the reporting format for RSCP to use the ASU
 format that is reported for all the other techs.

Bug: 73177585
Bug: 73177467
Bug: 73177872
Test: compilation
Change-Id: I4200ca603b03f182293de4960b01067263833d4a
2018-02-15 01:31:39 +00:00
Nathan Harold
d0f9466801 Update WcdmaSignalStrength to add RAT-specific fields
-Add RSCP and ECNO to WcdmaSignalStrength
-Add WcdmaSignalStrength to SignalStrength struct.

With this change we can now report the correct WCDMA
ASU due to our ability to now differentiate the SS
based on the RAT without needing additional info.

Bug: 71329173
Test: runtest frameworks-telephony
Change-Id: Ibce0ba38bf2d7e4f3e6c09f53303c0ba83dc6080
2018-02-14 23:49:44 +00:00
Eric Schwarzenbach
0c40e16935 Use new AccessNetwork type in the reporting criteria API
Bug: 72117365
Test: n/a
Change-Id: I55edcf5a317a544148e800bcc5b24b4bd504cecc
2018-02-13 16:32:16 -08:00
Cassie
d19ee31e6c Dot allow error OPERATION_NOT_ALLOWED and REQUEST_NOT_SUPPORTED for startNetworkScan in VTS test.
Bug: 71636480
Test: VTS test
Change-Id: I067f9fe94e20399fd0f07c6b2b0713544b717959
2018-02-13 23:02:32 +00:00
Zhuoyao Zhang
749336bcc0 Merge "Convert radio hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-13 04:41:16 +00:00
Zhuoyao Zhang
21b0a0ad25 Convert radio hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalRadioV1_0Target
      vts-tradefed run vts -m VtsHalSapV1_0Target
      vts-tradefed run vts -m VtsHalRadioV1_1Target
      vts-tradefed run vts -m VtsHalRadioV1_2Target

Change-Id: I067ce9634e41c0400d9eb060065e9bb3bc511546
2018-02-12 15:22:32 -08:00
nharold
eb4c7ce68b Merge "Update HIDL makefiles" am: c01ecb318a am: bb21a0f555
am: 61f8d0be12

Change-Id: I8e06523b6c536d95384d22bf54d220c46e2fb930
2018-02-12 20:56:50 +00:00
nharold
61f8d0be12 Merge "Update HIDL makefiles" am: c01ecb318a
am: bb21a0f555

Change-Id: I5f0394a33781e5d5663fbb37b12a937fe6895371
2018-02-12 20:32:30 +00:00
Nathan Harold
01c807fcc7 Update HIDL makefiles
Bug: 73175801
Test: compilation
Change-Id: I41510ffc7b7db4c09ed4e4f390775b9b9d0f79d6
2018-02-09 16:54:59 -08:00
Takumi Hori
eec1544af3 Merge "Displaying HD audio indicator for GSM/CDMA calls" am: 62bd6006e9 am: 68bd6ae440
am: 1c57d9c53a

Change-Id: I986cf5d08147dc3dd72b9ff009b391a852a4d121
2018-02-02 06:58:25 +00:00
Takumi Hori
1c57d9c53a Merge "Displaying HD audio indicator for GSM/CDMA calls" am: 62bd6006e9
am: 68bd6ae440

Change-Id: I0ea2dba4f84c5be97b72b7724cf0243e994f692b
2018-02-02 04:22:43 +00:00
Jack Yu
f32d1978cd Merge "HIDL changes for IWLAN refactoring" am: 4365f2e6bc am: fd428d8f4d
am: c77519448b

Change-Id: Ia8f014fb1492eb9276ed56e80a23744000f90625
2018-01-26 01:45:58 +00:00
Takumi Hori
5e2330370f Displaying HD audio indicator for GSM/CDMA calls
Return audio quality information during a voice call along with call
details from RIL. This information is expected to be used to display
HD audio indicator when wide band speech codec is notified.
This feature is necessary to fulfill some carriers requirement.

Test: manual - Checked that HD audio indicator is displayed on UI in
GSM/CDMA calls.
Bug: 30207043

Change-Id: Ic6518b7b5c37c4b9cfcd83bd0c5b836acd3f60da
2018-01-25 15:22:23 -08:00
Jack Yu
c77519448b Merge "HIDL changes for IWLAN refactoring" am: 4365f2e6bc
am: fd428d8f4d

Change-Id: Id0f6e64d592cd362303cb366823d1c36f4457b76
2018-01-25 22:42:42 +00:00
sqian
985866db5c Merge "Add None into cancelPendingUssd" into oreo-vts-dev am: 4ccc3b0140 am: efebbbeeea am: e7da333a91
am: 9b544fb083

Change-Id: I9b54f0d11f9150f22ad79daaa4b32b551ee1e763
2018-01-25 03:44:52 +00:00
sqian
9b544fb083 Merge "Add None into cancelPendingUssd" into oreo-vts-dev am: 4ccc3b0140 am: efebbbeeea
am: e7da333a91

Change-Id: Ia62e2a8ae1e8975ef33203142a4ebe20b45d60b9
2018-01-25 03:10:50 +00:00
sqian
efebbbeeea Merge "Add None into cancelPendingUssd" into oreo-vts-dev
am: 4ccc3b0140

Change-Id: Iad35b1764095d6b4bdd52dfd8f8e6a73940bfab5
2018-01-25 02:40:26 +00:00
Jack Yu
76499e9be5 HIDL changes for IWLAN refactoring
Added few more parameters required for IWLAN handover to
the existing data call setup/deactive APIs.

Test: Telephony sanity tests
bug: 64132030
Change-Id: I7bb04fc5f32908fa064370d5123252022a166abc
2018-01-24 10:48:08 -08:00
Eric Schwarzenbach
6919c7be72 Add bandwidth to cell info. am: 0f2a7358d6 am: f8db2ebfc9
am: 2f366fbd91

Change-Id: I945669b31e42757deb70308c29bf54f1093bbfa0
2018-01-24 18:08:08 +00:00
Eric Schwarzenbach
ec64368354 Add physical channel configuration indication. am: 20fd2c70ff am: 7aa11892d8
am: 3e00f1e3cd

Change-Id: Id423d89faf7e48c015376f94df0ddd5aee192e53
2018-01-24 18:08:01 +00:00
Eric Schwarzenbach
510697241f Add reporting criteria to radio interface. am: 21c6dc3548 am: 816f2643aa
am: 6f2b113bb3

Change-Id: I9b5e30cb9af04e4726366dccc2a11dd4602833a4
2018-01-24 18:07:54 +00:00
Eric Schwarzenbach
2f366fbd91 Add bandwidth to cell info. am: 0f2a7358d6
am: f8db2ebfc9

Change-Id: I86d64c6817452570a18d2d6748b8db6e3ef4ec78
2018-01-24 18:05:51 +00:00
Eric Schwarzenbach
3e00f1e3cd Add physical channel configuration indication. am: 20fd2c70ff
am: 7aa11892d8

Change-Id: I8122c92e0464bec24c6436218db6c1e4c6101fac
2018-01-24 18:05:47 +00:00
Eric Schwarzenbach
6f2b113bb3 Add reporting criteria to radio interface. am: 21c6dc3548
am: 816f2643aa

Change-Id: I166cdd4fb5cca05f78074d3dbe675a79e4b3a3fc
2018-01-24 18:05:20 +00:00
Eric Schwarzenbach
0f2a7358d6 Add bandwidth to cell info.
Bug: 70638175
Test: make
Change-Id: I1a4259542176cf44556131bb2b57107d51b2410e
2018-01-24 03:06:55 +00:00
Eric Schwarzenbach
20fd2c70ff Add physical channel configuration indication.
Also adds the new requisite types and an IndicationFilter for reporting.

Bug: 70638175
Test: n/a
Change-Id: I29f5fba4d1b21af3e7fda876c9a5c911936aeada
2018-01-24 03:06:47 +00:00
Eric Schwarzenbach
21c6dc3548 Add reporting criteria to radio interface.
Enables setting various reporting criteria for unsolicited signal
strength and LCE reports. Creates a new LCE report including both up and
down bandwidths. Updates documentation for various IndicationFilter bits
to add clarity.

Bug: 70638175
Test: n/a
Change-Id: If8141fbd89baf85ed5ee65d589f111907a9bf8b4
2018-01-24 03:06:37 +00:00
yinxu
127d537520 Merge "Add default implementation for radio config HAL" am: 19940c6778 am: 80a245f007
am: 8a146f7890

Change-Id: I65452d9b2e530b41b0ead60110ff2e2f1bb7dc38
2018-01-24 02:39:11 +00:00
yinxu
8a146f7890 Merge "Add default implementation for radio config HAL" am: 19940c6778
am: 80a245f007

Change-Id: I9715e1b4e562f79adb3058a558e2f20d4f73001e
2018-01-24 02:34:40 +00:00
sqian
40c4ff77c6 Add None into cancelPendingUssd
Bug: 67834975
Test: Compile
2018-01-23 16:36:05 -08:00
sqian
d4c4a4edfb Set time delay in the vts test setup
Bug: 69398018
Test: run vts
Change-Id: Ibe1e8f1b08342f1b0b867bfa7bcf1b2fe4a85622
Merged-In: Ibe1e8f1b08342f1b0b867bfa7bcf1b2fe4a85622
(cherry picked from commit 1a5c25dd95)
2018-01-23 22:38:12 +00:00
sqian
1d93dbfb3b Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests
Bug: 65230472
Test: run vts
Merged-In: I1fab6f49f04a04a7f1cd3b613fe7049f927171d1
Change-Id: I1fab6f49f04a04a7f1cd3b613fe7049f927171d1
(cherry picked from commit 83cc3ab888)
2018-01-23 22:31:26 +00:00
Sanket Padawe
71620817a9 Fix VTS test which turns off radio.
Since the purpose of most of the test cases in current VTS is to check
if proper errors are returned and there is no crash seen in vendor code,
updating setRadioPower test case to turn on the radio instead of
turning off. We want to avoid test cases which turn off
radio or leads to modem shut down as those test cases affect other tests.

Test: VTS
Change-Id: I4fb9f18884f7ef21162015a0032c4431444f7025
Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025
Bug: 65230472
(cherry picked from commit 9a721b8087)
(cherry picked from commit 536818d17a)
2018-01-23 22:31:01 +00:00
sqian
40d93997b5 Add EMPTY_RECORD for getDeviceIdentity
Remove same unit test case with arguments "","0" for:
- sendEnvelope
- sendTerminalResponseToSim
- sendEnvelopeWithStatus

Test: verified by vendor, treehuger
Bug: 62926561
Change-Id: I5f535bdfc5821275a7ea2571d411374e0d7a8822
Merged-In: I5f535bdfc5821275a7ea2571d411374e0d7a8822
(cherry picked from commit 67901bf2ce)
2018-01-23 22:19:46 +00:00
sqian
fce53868fd Add corresponding error code to fix vts test
Test: run vts
Bug: 63152815
Bug: 62989786
Bug: 64041522
Change-Id: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab
Merged-In: Ifbd17f85b39221de31ec7884b30dc176e1cbd3ab
(cherry picked from commit 1e5b695016)
2018-01-23 22:11:47 +00:00
Legler Wu
a945baae7f Update VTS tests so that Mediatek pass more VTS for O.
Bug: b/62926561
Test: vts tests

Change-Id: Ic927f9efd437c6411fb14feac8c681334e4b5e60
Merged-in: Ic927f9efd437c6411fb14feac8c681334e4b5e60
(cherry picked from commit b36443a864)
2018-01-23 22:11:13 +00:00
sqian
4e81e1f726 Add Sim absent assertion in the 1.0 setup
Currently the VTS tests for radio are for Sim Absent only. Adding this
assertion in the set up before running VTS tests clarifies the current
tests running is for sim absent only.

Test: run vts
Bug: 63898623
Merged-In: Ie09fb8bcedfd0b35b14f0a70952f44b6f6b082aa
Change-Id: Ie09fb8bcedfd0b35b14f0a70952f44b6f6b082aa
(cherry picked from commit 69cfb0aa38)
2018-01-23 22:11:01 +00:00
sqian
44bd0bb4f4 Fix some VTS for 2017 devices
- sendDeviceState
- setIndicationFilter

Mentioned in b/63148938
- getNeighboringCids

Add Request_not_support for Apis mentioned in Bugs:
 - 62989786
 - 62986286
 - 62987946

Test: run vts
Bug: 63130111
Bug: 63148938
Bug: 62989786
Bug: 62986286
Bug: 62987946
Change-Id: Ib51f67d403bb27f409018a98c07d6aa6aa6d19f8
Merged-In: Ib51f67d403bb27f409018a98c07d6aa6aa6d19f8
(cherry picked from commit fe0699535e)
(cherry picked from commit c699ba3901)
2018-01-23 22:10:42 +00:00
sqian
01d37ff8a1 Update IRadioResponse.hal documentation
Update the error codes

A copy of https://partner-android-review.googlesource.com/#/c/836552/
+ some missed updated error codes
+ request_not_supported

Test: Manual
Bug: 35671595
Change-Id: I2880b442b5fd56149abc83949c12e2eba5ee67df
Merged-In: I2880b442b5fd56149abc83949c12e2eba5ee67df
(cherry picked from commit be63f4b89e)
2018-01-23 12:22:43 -08:00
yinxu
26487e7a11 Add default implementation for radio config HAL
Bug: 64131518
Test: Basic telephony sanity
Change-Id: I6bd6c6c46f8f70fd13b6c02ddfe399e04190133a
2018-01-23 10:29:28 -08:00
Ying Xu
23dc2b493d Merge "Migrate the slot related APIs" am: 92b3386572 am: 1d09401370
am: 4b88130367

Change-Id: I40a2716908da06f4f01008778cd2bb83bf6239e9
2018-01-23 02:36:46 +00:00
Ying Xu
4b88130367 Merge "Migrate the slot related APIs" am: 92b3386572
am: 1d09401370

Change-Id: I540bb4ada6bdf30f44c4ce7e581c945261df3d81
2018-01-23 02:24:57 +00:00
yinxu
7fd46a30f3 Migrate the slot related APIs
SIM slot related APIs are not related to any radio/modem, so they need
to be migrate to a different HAL which is not related to any
radio/modem.

Bug: 64131518
Test: Basic telephony sanity

Change-Id: I626f13c5f6fb39091f6bddd5b6d373f09561af90
2018-01-22 10:36:53 -08:00
Cassie Han
e94fe99745 Merge "Add cellInfoList_1_2 in 1.2/IRadioIndication.hal." am: ab6101db50 am: 04369bf047
am: d37fb504b2

Change-Id: Id5468c308927d96c1866a97be59eef637f5d93cc
2018-01-11 17:59:52 +00:00
Cassie Han
d37fb504b2 Merge "Add cellInfoList_1_2 in 1.2/IRadioIndication.hal." am: ab6101db50
am: 04369bf047

Change-Id: I53a62cf2196dafc7952db534cca5a92f706c0d9c
2018-01-11 17:56:45 +00:00
Cassie Han
ab6101db50 Merge "Add cellInfoList_1_2 in 1.2/IRadioIndication.hal." 2018-01-11 17:47:42 +00:00
Cassie
3fb7617b69 Add cellInfoList_1_2 in 1.2/IRadioIndication.hal.
As part of the new NetworkScan API project, we need to add V1_2
cellInfoList in RadioIndication to support the V1_2 CellInfo as well.

Bug: 63984327, 69058403
Test: Basic telephony sanity
Change-Id: I53deb0d3b6ba58a86a8f734618841ff91d6dc6fa
2018-01-10 09:46:20 -08:00
sqian
a598754bf7 Remove unused functions am: 910a238c21
am: 6d06a6f7a9

Change-Id: Id4a9cb4e5b01c0529abd63ce768070be1e7037d9
2018-01-04 21:40:35 +00:00
sqian
910a238c21 Remove unused functions
Test: Compile
Bug: 63760809
Change-Id: I582c259ca0787a701d434eea9592c9e8d7351f08
Merged-In: I582c259ca0787a701d434eea9592c9e8d7351f08
(cherry picked from commit 3ba20e6b6b)
2018-01-04 12:13:33 -08:00
Sandeep Gutta
2a4fba8b7a Merge "SIM slot related interface changes" am: 384fa7b6dc am: 8a52ba05e2
am: 14d0000c78

Change-Id: Idcb6b457289f4afc7959849cd8ffd882d4022745
2018-01-02 22:46:34 +00:00
Sandeep Gutta
14d0000c78 Merge "SIM slot related interface changes" am: 384fa7b6dc
am: 8a52ba05e2

Change-Id: I11e2bdfbf5e58f8095db017ffde9a643a5a8adaf
2018-01-02 22:36:04 +00:00
Treehugger Robot
384fa7b6dc Merge "SIM slot related interface changes" 2018-01-02 22:17:21 +00:00
sqian
e611e86fec Modify VTS error check so that the error code can be displayed am: 7fe9365e6f
am: e93516c086

Change-Id: I7079a49624a6aed546c01fa3affd15f25b14769d
2018-01-02 19:35:59 +00:00
sqian
7fe9365e6f Modify VTS error check so that the error code can be displayed
- Add AssertionResult in gtest to display logs
- Refactor all the error checks

- Replace INTERNAL_ERR with INVALID_ARGUMENT for
requestIsimAuthentication

- Add missing SIM_ABSENT from ag/2582439/

- Fix incorrect indentation

Bug: 63760809
Bug: 65150146
Test: run vts
Change-Id: Id3d876ea515f47998e3e45be11db5edf306ffc24
Merged-In: Id3d876ea515f47998e3e45be11db5edf306ffc24
(cherry picked from commit e986b85fdd)
2017-12-28 20:20:24 +00:00
Sandeep Gutta
4a4d8cc197 SIM slot related interface changes
Add below new interfaces, corresponding response interface and structures.
- getSimSlotsStatus()
- setSimSlotsMapping()
- simSlotsStatusChanged()

Bug: 68998818
Test: compliation

Change-Id: Ia532c502782ef4d08d27f18ee0321a3ceaa94dcf
2017-12-22 11:29:06 -08:00
sqian
3ba20e6b6b Remove unused functions
Test: Compile
Bug: 63760809
Change-Id: I582c259ca0787a701d434eea9592c9e8d7351f08
2017-12-21 21:36:20 +00:00
Nathan Harold
a26880319a Fix a typo in Enhanced Network Scan Request am: 9acbfc2e6b am: ba596a7181
am: 8070739edc

Change-Id: I44bbf0f3e5b3df2b5bcdd19f79a80c759d22a591
2017-12-15 01:56:17 +00:00
Nathan Harold
8070739edc Fix a typo in Enhanced Network Scan Request am: 9acbfc2e6b
am: ba596a7181

Change-Id: I248d668d8578d33b1dde549f128dbf4ded5b32ab
2017-12-15 01:52:38 +00:00
Nathan Harold
9acbfc2e6b Fix a typo in Enhanced Network Scan Request
Change RADIO_ACCESS_SPEFICIER_MAX_SIZE to
RADIO_ACCESS_SPECIFIER_MAX_SIZE

Bug: 63865942
Test: compliation
Change-Id: Idabac6ab42c90353a83d32483be46c77a85b7f1d
2017-12-14 13:13:22 -08:00
TreeHugger Robot
533c94cb70 Merge "Remove subdirs" into oc-mr1-dev-plus-aosp 2017-11-29 01:14:23 +00:00
sqian
ff785a0d24 Set time delay in the vts test setup am: a54dd6ca33
am: 88d5ef6944

Change-Id: I71bfb003f33fe9aa1c75f75191ade95ecf8b76ac
2017-11-29 00:09:52 +00:00
sqian
88d5ef6944 Set time delay in the vts test setup
am: a54dd6ca33

Change-Id: Ic6e95752069b452d81e5676999483bfb68249dd5
2017-11-29 00:06:38 +00:00
Steven Moreland
e5c6548346 Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:23:43 -08:00
Steven Moreland
8b76a6b90d Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:22:55 -08:00
Steven Moreland
fcca4e23b7 Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:22:43 -08:00
sqian
a54dd6ca33 Set time delay in the vts test setup
Bug: 69398018
Test: run vts
Change-Id: Ibe1e8f1b08342f1b0b867bfa7bcf1b2fe4a85622
Merged-In: Ibe1e8f1b08342f1b0b867bfa7bcf1b2fe4a85622
2017-11-27 14:22:28 -08:00
sqian
fe32af21bd Set time delay in the vts test setup
Bug: 69398018
Test: run vts
Change-Id: Ibe1e8f1b08342f1b0b867bfa7bcf1b2fe4a85622
2017-11-20 15:40:34 -08:00
sqian
5e5b441361 Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests
Bug: 65230472
Test: run vts
Change-Id: I1fab6f49f04a04a7f1cd3b613fe7049f927171d1
2017-11-16 19:57:27 +00:00
Iris Chang
8dc6db217d VTS: fix RadioHidlTest.getAvailableNetworks issue
Analysis: VtsHalRadioV1_0Target's timeout is too short for
getAvailableNetworks, because this request duration depends on NW
environment or frequency.

Suggested solution: Add a timeout parameter to wait() and default
timeout value is 5 minutes in order to avoid timeout fail due to NW
environment.

Bug: 68834032
Test: getAvailableNetworks can be passed after we apply this patch and
      test result for all other telephony 1.0 and 1.1 test cases are not
      changed.
Change-Id: Iaae71e0abacd28275d86a19264813ff209ddb79c
Merged-In: Iaae71e0abacd28275d86a19264813ff209ddb79c
(cherry picked from commit 6429f0677f)
2017-11-15 07:08:05 +00:00
Iris Chang
eddb1d9a01 Merge "VTS: fix RadioHidlTest.getAvailableNetworks issue" am: 89b2d24fb0 am: 0c9df89f88
am: 2d47467288

Change-Id: Id5ddb114f2a31d39d844409b4444fbd4ca77745e
2017-11-15 04:13:54 +00:00
Iris Chang
0c9df89f88 Merge "VTS: fix RadioHidlTest.getAvailableNetworks issue"
am: 89b2d24fb0

Change-Id: I96c5b3873c53fba6fca5905f0a5897a7f8801f4a
2017-11-15 04:10:23 +00:00
Treehugger Robot
89b2d24fb0 Merge "VTS: fix RadioHidlTest.getAvailableNetworks issue" 2017-11-15 04:06:29 +00:00
Xin Li
bb9e38fef9 Merge commit '1a06284b24f5eb7bb9c1fea0817da8898b3b1bff' from
oc-mr1-dev-plus-aosp into stage-aosp-master

Change-Id: I2a044eb8c9981d0a8198ffe2df55559afbd76341
Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025
2017-11-14 12:08:38 -08:00
Iris Chang
6429f0677f VTS: fix RadioHidlTest.getAvailableNetworks issue
Analysis: VtsHalRadioV1_0Target's timeout is too short for
getAvailableNetworks, because this request duration depends on NW
environment or frequency.

Suggested solution: Add a timeout parameter to wait() and default
timeout value is 5 minutes in order to avoid timeout fail due to NW
environment.

Bug: 68834032
Test: getAvailableNetworks can be passed after we apply this patch and
      test result for all other telephony 1.0 and 1.1 test cases are not
      changed.
Change-Id: Iaae71e0abacd28275d86a19264813ff209ddb79c
2017-11-14 01:08:03 +00:00
sqian
e986b85fdd Modify VTS error check so that the error code can be displayed
- Add AssertionResult in gtest to display logs
- Refactor all the error checks

- Replace INTERNAL_ERR with INVALID_ARGUMENT for
requestIsimAuthentication

Bug: 63760809
Bug: 65150146
Test: run vts
Change-Id: Id3d876ea515f47998e3e45be11db5edf306ffc24
2017-11-13 15:16:04 -08:00
Shuo Qian
d416d3db6c Merge "Revert "Modify VTS error check so that the error code can be displayed"" 2017-11-13 22:20:42 +00:00
Shuo Qian
33b550ce67 Revert "Modify VTS error check so that the error code can be displayed"
This reverts commit cf243eba43.

Change-Id: Idd42b12cdcbaab1476e460c34f3b4b60c38dead0
2017-11-13 22:17:42 +00:00
Shuo Qian
f8d4081827 Merge "Modify VTS error check so that the error code can be displayed" 2017-11-13 21:17:12 +00:00
sqian
cf243eba43 Modify VTS error check so that the error code can be displayed
- Add AssertionResult in gtest to display logs
- Refactor all the error checks

- Replace INTERNAL_ERR with INVALID_ARGUMENT for 
requestIsimAuthentication

Bug: 63760809
Bug: 65150146
Test: run vts
Change-Id: Iec4bdfd89ccd8d8d8c6e1bd8f720a88d67f23cb3
2017-11-13 19:08:43 +00:00
Steven Moreland
8db261bc99 Updating makefiles for hidl_interface.
Bug: 64487114
Test: manual
Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
2017-11-13 10:00:18 -08:00
Steven Moreland
a1169dd600 Update makefiles for hidl_interface.
Bug: 35570956
Test: manual
Change-Id: I7a220b78ee081240e1dc30ef5672ba39e3e98375
2017-11-10 09:06:55 -08:00
Sooraj Sasindran
8c77e2b7dc Merge "vts test for 1.2" am: 55e7774568 am: b0034bf5b9
am: 20ad34f084

Change-Id: Ia17ca32195c90b6e5b36abe25af82ad26117ec18
2017-11-03 00:39:34 +00:00
Sooraj Sasindran
20ad34f084 Merge "vts test for 1.2" am: 55e7774568
am: b0034bf5b9

Change-Id: Ic9e887d9a021f7e2dc32b8e7d1c12e733e38f456
2017-11-03 00:37:33 +00:00
Sooraj Sasindran
4547419e6c vts test for 1.2
Add VTS test for 1.2 interface

Test: verfied the test with a dummy radio service

Bug:67750232
Change-Id: Ieac680a303c79a9d4c8b314112121303b3aebcce
2017-11-02 14:44:57 -07:00
Cassie
c80f43c37b Merge "Added CellIdentity struct in types.hal" am: 94a12051a3 am: c5f398daed
am: 1195c9b627

Change-Id: Ib311125c3fcb4a47e29eeceb929963ad8e50ba79
2017-11-01 23:27:15 +00:00
Cassie
1195c9b627 Merge "Added CellIdentity struct in types.hal" am: 94a12051a3
am: c5f398daed

Change-Id: I2140211e496d233018d64179203e25bbe6332fc5
2017-11-01 23:23:29 +00:00
Cassie
8c3011e5c7 Added CellIdentity struct in types.hal
This change was made because the new scan API needs to include the human
readable operator name other than PLMN in the scan results.
In order to let teh operator name used by other structures and APIS, we added
the operator name alphaLong and alphaShort, which were actually included
in the OperatorInfo, into the CellIdentity.

Bug: 63984327
Test: Basic telephony sanity
Change-Id: I498b7f190b739c92975fe797e1c74e96d90ee823
2017-11-01 10:25:36 -07:00
Sanket Padawe
340619c703 Fix VTS test which turns off radio.
am: 536818d17a

Change-Id: I74ebfa3894e27bdf0e02671cbeccac83b1917424
2017-10-18 23:56:12 +00:00
Sanket Padawe
536818d17a Fix VTS test which turns off radio.
Since the purpose of most of the test cases in current VTS is to check
if proper errors are returned and there is no crash seen in vendor code,
updating setRadioPower test case to turn on the radio instead of
turning off. We want to avoid test cases which turn off
radio or leads to modem shut down as those test cases affect other tests.

Test: VTS
Change-Id: I4fb9f18884f7ef21162015a0032c4431444f7025
Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025
Bug: 65230472
(cherry picked from commit 9a721b8087)
2017-10-18 23:41:05 +00:00
sqian
18192d9b83 Merge "Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests" into oc-mr1-dev am: b70f1bda1f
am: e99541ac02

Change-Id: Ic93e6a45afa6d4d5aff27a4d8f9e7b29ba9ae587
2017-10-18 03:43:37 +00:00
sqian
e99541ac02 Merge "Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests" into oc-mr1-dev
am: b70f1bda1f

Change-Id: Ie8c2ee83c5c6102658a2627099c097c3f155feaa
2017-10-18 03:40:37 +00:00
sqian
bc1c9295a3 Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests
Bug: 65230472
Test: run vts
Change-Id: I1fab6f49f04a04a7f1cd3b613fe7049f927171d1
2017-10-17 16:02:04 -07:00
Sooraj Sasindran
c496974404 Merge "Enhanced network scan request" am: 8e5f008ae6 am: b49cd63a75 am: cb1467f935
am: da47be9351

Change-Id: Ied661795a18352f805bedaaf0ac974ae006cbbb2
2017-10-17 08:48:59 +00:00
Sooraj Sasindran
da47be9351 Merge "Enhanced network scan request" am: 8e5f008ae6 am: b49cd63a75
am: cb1467f935

Change-Id: I2370bea69898bff71d366ca358574f4b3e5a21be
2017-10-17 06:29:41 +00:00
Sooraj Sasindran
b49cd63a75 Merge "Enhanced network scan request"
am: 8e5f008ae6

Change-Id: I8903402f50c64b475ccda3839f0175fb2eaa12f6
2017-10-17 06:11:13 +00:00
Sooraj Sasindran
55092ae5a6 Enhanced network scan request
Bug=63865942

Test: Verified by making changes in settings app to call the api
      and confirmed that the new information is delivered to verndor
      code

Change-Id: I38f5e88302268bdda7483f5bc96bf8a72b940208
2017-10-16 19:31:00 -07:00
sqian
336a914eb3 Refactor radio folder for 1.0 and 1.1 am: 8735a7d935
am: 2576f3505f

Change-Id: I999a8edb0cc1c37405cef6c20dcf5aaf262c4228
2017-10-15 01:54:55 +00:00
sqian
8735a7d935 Refactor radio folder for 1.0 and 1.1
Remove unused environment variable.

Test: run vts
Bug: 63760809
Change-Id: Iff7919980d7bbe0e9f8a73a3679d37426faec679
Merged-In: Iff7919980d7bbe0e9f8a73a3679d37426faec679
2017-10-13 10:36:04 -07:00
sqian
39866c92ff Refactor radio folder for 1.0 and 1.1
Remove unused environment variable.

Test: run vts
Bug: 63760809
Change-Id: Iff7919980d7bbe0e9f8a73a3679d37426faec679
Merged-In: Iff7919980d7bbe0e9f8a73a3679d37426faec679
2017-10-11 15:10:14 -07:00
Shuo Qian
2baeaec51c Merge "Refactor radio folder for 1.0 and 1.1" 2017-10-11 21:48:44 +00:00
sqian
4ae4325659 Refactor radio folder for 1.0 and 1.1
Remove unused environment variable.

Test: run vts
Bug: 63760809
Change-Id: Iff7919980d7bbe0e9f8a73a3679d37426faec679
2017-10-11 10:13:08 -07:00
Steven Moreland
1d7374c5e1 Update for Soong java makefiles. am: c3e80fa01e am: 0fff75dee1 am: 6c811964a1
am: 116161d94e

Change-Id: I33643636e2511de77fdf7de57777eb67edee2e52
2017-10-11 16:39:21 +00:00
Steven Moreland
116161d94e Update for Soong java makefiles. am: c3e80fa01e am: 0fff75dee1
am: 6c811964a1

Change-Id: I85ccbb4a15cd18938607f5bca4e065b9d7e0182b
2017-10-11 16:31:07 +00:00
Steven Moreland
0fff75dee1 Update for Soong java makefiles.
am: c3e80fa01e

Change-Id: Ia8835f9c95bd98a96f5fd3aff11191e7d3726fb9
2017-10-11 16:23:54 +00:00
Steven Moreland
c3e80fa01e Update for Soong java makefiles.
Test: pass
Bug: 33420795
Change-Id: Id9b1919a19b8ff682738cfb0869a479b4dbb4293
2017-10-10 23:07:20 +00:00
Treehugger Robot
75d5cf515a Merge "Remove useless Android.mk files." 2017-10-05 21:40:27 +00:00
Steven Moreland
4b60470f1a Remove useless Android.mk files.
These have been c/p'd all over the place.

Test: m -j nothing
Bug: 33420795
Change-Id: I77979866dbb2345a41a873c84ec3fccd7b127510
2017-10-04 15:52:40 -07:00