Commit graph

661 commits

Author SHA1 Message Date
Malcolm Chen
e61e3b7c09 Define CBRS HAL interfaces in IRadio 1.3 and IRadioConfig 1.1.
Bug: 117805040
Test: build and telephony unittest
Change-Id: I79e188ef742c3d5167f32c359e86e435f55f4a75
2018-11-30 11:12:41 -08:00
Malcolm Chen
00707641c0 Migration of IRadioConfig 1.1 types to 1.2.
To better test CBRS, we want IRadio 1.1 to be Android P plus CBRS
HAL interfaces, while 1.2 will be 1.1 plus all other Android Q
interfaces. So we are creating V1_2 folder and moving everything
currently defined in android.hardware.radio.config.V1_1 there.

Bug: 117805040
Test: build and telephony unittest
Change-Id: Ia221258b62351d1190e78fa0e5faafc36163f4a9
2018-11-27 18:51:05 +00:00
Malcolm Chen
193a6f3c79 Migration of IRadio 1.3 types to 1.4.
To better test CBRS, we want IRadio 1.3 to be Android P plus CBRS
HAL interfaces, while 1.4 will be 1.3 plus all other Android Q
interfaces. So we are creating V1_4 folder and moving everything
currently defined in android.hardware.radio.V1_3 there.

Part 2: re-create 1.3 folder.

Bug: 117805040
Test: build and telephony unittest
Change-Id: If177cd24d8275e22c18d9b5b907cd65ac13a4461
2018-11-26 23:26:19 +00:00
Malcolm Chen
2e656462b6 Migration of IRadio 1.3 types to 1.4.
To better test CBRS, we want IRadio 1.3 to be Android P plus CBRS
HAL interfaces, while 1.4 will be 1.3 plus all other Android Q
interfaces. So we are creating V1_4 folder and moving everything
currently defined in android.hardware.radio.V1_3 there.

Part 2: move 1.3 to 1.4.

Bug: 117805040
Test: build and telephony unittest
Change-Id: I9fc36f1af0e7cc4d2a5878531aae5746823e1bb4
2018-11-26 23:18:47 +00:00
Pengquan Meng
7687650635 Add data call mapping to physicalChannelConfig
- Add 5G NR rat type
- Add data call mapping to PhysicalChannelConfig

Bug: 111453000
Test: build
Change-Id: I8da7185305b46781cccd114721d53167a2e1798a
2018-11-21 19:12:53 +00:00
Jordan Liu
398e84dd6f Add EID to 1.3::CardStatus
The EID should be reported for any GSM compliant eUICCs.

Test: make
Bug: 116656814
Change-Id: I3090f13084b474a9236b43bfb96da3db4003b382
2018-11-13 11:00:06 -08:00
Pengquan Meng
bfdbd58097 Merge "HAL change for 5G NSA only" 2018-11-13 18:21:38 +00:00
Pengquan Meng
1d4e8ae51e HAL change for 5G NSA only
Add the parameters for 5G NSA and change related type & API.

Bug: 111453000
Test: Build
Change-Id: I97aab866993cc84d6f3fd30d33a0273f661e4c2d
2018-11-12 14:30:21 -08:00
Jordan Liu
57cb7b832f Add EID to types 1.1
The EID should be reported for any GSMA compliant eUICCs.

Test: make
Bug: 116656814
Change-Id: I90bdddfcb968ee4a575d8cafd5362095e00e1d55
2018-10-26 14:12:57 -07:00
Jack Yu
4b5371de99 Restored 'maxConnsTime' and 'maxConns' in data profile
These two fields are still needed for some carriers. Should
not be removed in 1.3. Reverted back to what we have in 1.0.

Test: Telephony sanity tests
Bug: 73659459
Change-Id: I33e7b9b0cb26b56fc3c0e011557657136cb38a6c
2018-10-15 09:55:12 -07:00
Steven Moreland
dec5272582 Add monostate to optional safe unions.
Bug: 116156870
Test: hidl_test, hidl_test_java
Change-Id: Ie17a80dee982775e267a39086016071ac2361fb5
2018-10-11 11:02:25 -07:00
Jack Yu
e7de00c5f5 Added 1.3 DataProfileInfo
1. Deprecated the fields 'mvnoType', 'mvnoMatchData', 'maxConnsTime',
   and 'maxConns'.
2. Added a new flag 'preferred' indicating if this data profile
   is preferred for default data connection setup.
3. Move modemCognative flag from setupDataCall and setInitialAttachApn
   into the struct DataProfileInfo and rename it to 'persistent'.
4. Removed isRoaming flag in setupDataCall, setInitialAttachApn, and
   setDataProfile.

Test: Telephony sanity tests
Bug: 73659459
Change-Id: Ia28715e85755b47a1ee870b5c90e5505a7fd8c4a
2018-10-05 14:49:08 -07:00
sqian
968f531267 Emergency Function HAL (continued)
- Add Emergency Number source for Emergency number, which is critical for
management and display priority.
- Remove solicited request for getting emergency number list.
- Rephrasing the documentations.

Test: Treehugger (will add VTS later)
Bug: 112657134
Change-Id: Idbfebf8d246de06fd91e8de89088f5cc2c70227b
2018-10-02 12:18:10 -07:00
Amruth Ramachandran
d146a72e2f Radio HAL: Add VoPS network support
Update 1.3 HAL:
 - Added DataRegStateResult
 - Added LteVopsInfo
 - Added getDataRegistrationStateResponse_1_3

Bug:112194535
Test: Compiled. VTS tests to be added in separate gerrit

Change-Id: I1996bb0dbfb1c585668b097c206296d5d8e3c8d0
2018-09-20 09:37:01 -07:00
Shuo Qian
5bc9799808 Merge "Add IRadioResponse/Indication 1.3 and Emergency Function HAL" 2018-09-05 18:44:31 +00:00
sqian
8ffbfa5358 Add IRadioResponse/Indication 1.3 and Emergency Function HAL
- Add IRadioResponse/Indication in 1.3
- Add Emergency Functions:
1) getCurrentEmergencyNumberList/getCurrentEmergencyNumberListResponse
2) emergencyDial/emergencyDialResponse
3) currentEmergencyNumberList
4) EmergencyNumber/EmergencyServiceCategory

Test: compile (will add VTS later)
Bug: 112657134
Change-Id: Iafe12d5fd0e4c28fcf6e4d8e61cfb954db7fa68a
2018-09-04 12:50:05 -07:00
Youming Ye
f11cccda3b Correct the comments for radio hal types
The type of mcc and mnc is String instead of Int now. They should be an
empty string if unknown. Also added a test case for their values.

Bug: 111703979
Test: Vts
Change-Id: Ie0426453dc426ccc6cf203b315806e78511ce14d
2018-09-04 11:10:32 -07:00
Xin Li
b390ad2d90 Merge pie-vts-dev into master
Bug: 112170540
Merged-In: I48551f5469289b9fcfc47dd9fd2e455779640329
Change-Id: Icd613751ccf1dc8a0f879525f1d65b11dda7d357
2018-08-16 00:17:15 +00:00
sqian
a8b8b6b1b3 Patch for setSimCardPower_1_1
Do not expect its affect on cardStatus if it is not successfully returned.
Check the response error before updating sim card status.

Test: sanity
Bug: 111661946
Change-Id: I48551f5469289b9fcfc47dd9fd2e455779640329
Merged-In: I48551f5469289b9fcfc47dd9fd2e455779640329
(cherry picked from commit 7e787e192cd4700d8f4e7cc5f55501bc37590245)
2018-08-15 05:49:52 +00:00
sqian
6fb73ec891 Patch for setSimCardPower_1_1
Do not expect its affect on cardStatus if it is not successfully returned.
Check the response error before updating sim card status.

Test: sanity
Bug: 111661946
Change-Id: I48551f5469289b9fcfc47dd9fd2e455779640329
2018-08-15 05:49:28 +00:00
Treehugger Robot
c1db422723 Merge "Fix setSimCardPower_1_1" into pie-vts-dev 2018-08-14 20:13:47 +00:00
sqian
e5bf3a268e Check INVALID_SIM_STATE for sim permanent lock status
PUK1 and PUK2 can get permanent blocked when it inputs wrong
passwords more than 10 times.

Bug: 111211929
Test: sanity
Change-Id: I736873b1b181b88f279df7dc1c09e18e0fc76af3
Merged-In: I736873b1b181b88f279df7dc1c09e18e0fc76af3
(cherry picked from commit cb9e9d10462cc82ee6e7074f8d4c831b6348b3ea)
2018-08-14 19:24:17 +00:00
Treehugger Robot
248276659c Merge "Loose startNetworkScan cases" 2018-08-14 19:22:17 +00:00
Treehugger Robot
268dee8d0f Merge "Fix setSimCardPower_1_1" 2018-08-14 19:21:59 +00:00
Treehugger Robot
ed8cf648cd Merge "Fix setAllowedCarrier" 2018-08-14 19:19:19 +00:00
Treehugger Robot
c417c54960 Merge "Add REQUEST_NOT_SUPPORTED for pin and pin2 Icc VTS" 2018-08-14 19:16:07 +00:00
sqian
f25e996302 Fix setSimCardPower_1_1
If the function isn't executed successfully, do not expect its effect
of cardStatus.

Bug: 111661946
Test: run vts
Change-Id: I952728311b595149b449280e73142f2f82af544d
Merged-In: I952728311b595149b449280e73142f2f82af544d
(cherry picked from commit 934243085a)
(cherry picked from commit c02dd2562f)
2018-08-14 12:15:35 -07:00
Treehugger Robot
0061a578e6 Merge "Added IRadio 1.3 interface" 2018-08-14 18:43:46 +00:00
sqian
8f32c6416e Loose startNetworkScan cases
startNetworkScan:
Some vendor may not support the required manual GSM search
functionality.

startNetworkScan_GoodRequest1 and startNetworkScan_GoodRequest2:
Some vendor may not support max search time of 360s.

Test: sanity
Bug: 109765420
Change-Id: I456847815057d76561bfb3e840016619ac753476
Merged-In: I456847815057d76561bfb3e840016619ac753476
(cherry picked from commit 12f7d6127b)
2018-08-14 11:37:41 -07:00
sqian
b2f6aa1e51 Fix setAllowedCarrier
If function is not supported or executed successfully, do not
expect its effect on cardStatus.

Bug: 112008372
Test: run vts
Change-Id: I4532a39af2cfcf0e44eafe29c3c7f6779ae101f5
Merged-In: I4532a39af2cfcf0e44eafe29c3c7f6779ae101f5
(cherry picked from commit 44b129f728)
2018-08-14 11:35:10 -07:00
sqian
c02dd2562f Fix setSimCardPower_1_1
If the function isn't executed successfully, do not expect its effect
of cardStatus.

Bug: 111661946
Test: run vts
Change-Id: I952728311b595149b449280e73142f2f82af544d
Merged-In: I952728311b595149b449280e73142f2f82af544d
(cherry picked from commit 934243085a)
2018-08-14 11:33:28 -07:00
sqian
3c608789e0 Add REQUEST_NOT_SUPPORTED for pin and pin2 Icc VTS
Bug: 111222834
Test: sanity
Change-Id: Ia3b96e83d6173c2c80bdbf7763a876883b167af9
Merged-In: Ia3b96e83d6173c2c80bdbf7763a876883b167af9
(cherry picked from commit c0a06f34c8)
2018-08-14 11:30:57 -07:00
Jack Yu
15c429921d Added IRadio 1.3 interface
Added UNKNOWN into the existing enum AccessNetwork

Test: Telephony sanity tests
Bug: 110872637
Change-Id: I47bc8939a06023c9972c4e157b8e355cfad775ee
2018-08-14 09:50:35 -07:00
sqian
f3791f6a3f Add SIM_PUK2 for Icc VTS tests
Add SIM_PUK2 for supplyIccPin2ForApp and changeIccPin2ForApp if sim
card is in the puk2 state.

Bug: 111211929
Test: sanity
Change-Id: I80d924cc4a61565887cbd2a65ee5927a42ad656e
Merged-In: I80d924cc4a61565887cbd2a65ee5927a42ad656e
(cherry picked from commit 4ed0a216ad)
2018-08-13 18:46:51 -07:00
sqian
2d0ba0f61b Check INVALID_SIM_STATE for sim permanent lock status
PUK1 and PUK2 can get permanent blocked when it inputs wrong
passwords more than 10 times.

Bug: 111211929
Test: sanity
Change-Id: I736873b1b181b88f279df7dc1c09e18e0fc76af3
2018-08-13 17:36:54 -07:00
sqian
9da8a72744 resolve merge conflicts of 898d05a713 to pie-vts-dev
Test: I solemnly swear I tested this conflict resolution.
Bug: 72075328
Change-Id: I5d7c124bc3905f899e63f080ac94def4e06fe9c2
Merged-In: I8c993cd2fa95c961dc7f976b5bd85a2826b42889
2018-08-13 16:32:59 -07:00
Eric Schwarzenbach
a22fea6160 Call notify for voiceReg and dataReg VTS tests
Bug: 80554443
Test: vts
Merged-In: I19f7131f7b65323065f3c283a89668ff761815e3
Change-Id: I19f7131f7b65323065f3c283a89668ff761815e3
(cherry picked from commit 2bb626a297)
2018-08-10 00:48:52 +00:00
sqian
70afa883ae Add REQUEST_NOT_SUPPORTED for changeIccPinForApp and changeIccPin2ForApp
Bug: 110037298
Test: run vts -m VtsHalRadioV1_0Target
Merged-In: Iaba800814c5a6950d086a2f105714d01fdaa14a4
Change-Id: Iaba800814c5a6950d086a2f105714d01fdaa14a4
(cherry picked from commit 7470cbd04d)
2018-08-10 00:48:45 +00:00
Shuo Qian
185e46a234 Revert "Fixed VTS failure in no SIM case"
am: 9d0f0635b9

Change-Id: I2c85ff48e47094810bc4350197611969f94954e7
2018-08-02 12:17:38 -07:00
Shuo Qian
9d0f0635b9 Revert "Fixed VTS failure in no SIM case"
Since the EMERGENCY-type APN is a must set in the radio
setupDataCall request for modem to perform Emergency call,
and the given VTS test case does not set that emergency bit,
I think modem should treat the request as a normal call
request, and should not return "NONE" for no-sim.

This reverts commit 431eb118f8.

Reason for revert: after further discussion, NONE
is not acceptable given the test case.

Bug: 109767888
Change-Id: I3d1cc96120d53a9be0ae5059c26b091bf82dc352
Merged-In: I3d1cc96120d53a9be0ae5059c26b091bf82dc352
(cherry picked from commit 17fec3625d)
2018-08-02 17:16:36 +00:00
Amit Mahajan
7151988f62 Allow NOT_SUPPORTED for setLinkCapacityReportingCriteria on GERAN.
am: 8b833740b2

Change-Id: I6389dcaa6a48338cddb9d6e45519941f8e1cd9f8
2018-07-16 17:14:06 -07:00
Amit Mahajan
8b833740b2 Allow NOT_SUPPORTED for setLinkCapacityReportingCriteria on GERAN.
Test: run vts -m VtsHalRadioV1_2Target
Bug: 110716988
Change-Id: I9a5f014d498db00d818870cbd73e119f66562ef1
(cherry picked from commit c7896501db)
2018-07-16 12:29:47 -07:00
sqian
898d05a713 resolve merge conflicts of dfa79a6292 to oreo-mr1-vts-dev
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: I10919718b841fdb33ab0e873d1b4bbd787fafcd2
2018-07-16 08:36:50 -07:00
sqian
70805cffdd Add NONE for LceService
"Allow startLceService to succeed even in the
SIM_ABSENT case. The original RIL documentation
states that SUCCESS is valid for all LCE
operations, and there is no logical reason why
one of these operations must fail in a no-SIM
case (though a vendor may choose not to support
that configuration). Thus, a call to
startLceService should permit NONE when requested
in the no-SIM case for 1.0 VTS.

In addition, a successful call to startLceService
should also permit a successful call to
pullLceData, so also allow RadioError::NONE for
the pull operation. Ideally the tests would only
allow NONE for pull if startLceService also
returns NONE, but that's out of scope for now."

Bug: 110181475
Bug: 72075328
Test: confirmed in the discussion; compilation
2018-07-13 18:12:08 +00:00
sqian
abf6bdfa55 Fix missed refactor of serial
am: 0c3572e2f3

Change-Id: I308c5279fd50402efe6a2c06feaaf034cea4541d
2018-06-27 18:31:08 -07:00
sqian
0c3572e2f3 Fix missed refactor of serial
Bug: 109822806
Test: run vts
Change-Id: If88384699dbb4c2ddd1c580d2b35be38afd0f8e8
Merged-In: If88384699dbb4c2ddd1c580d2b35be38afd0f8e8
(cherry picked from commit c0e2e2b071)
2018-06-27 15:26:38 -07:00
Jack Yu
e79895b34f Fixed VTS failure in no SIM case
am: ac4e6051f9

Change-Id: I96717b5640c85223c5226e4b911e07d504623429
2018-06-27 13:14:54 -07:00
Jack Yu
ac4e6051f9 Fixed VTS failure in no SIM case
Added RadioError::NONE as a possible return value for data call
setup API. The data call could be setup for emergency purposes
when no SIM inserted.

Test: VTS
Bug: 109767888
Merged-In: I4469c371f999b99d35f4078df000f05ee1f3c84d
Change-Id: I4469c371f999b99d35f4078df000f05ee1f3c84d
(cherry picked from commit 431eb118f8)
2018-06-27 18:10:08 +00:00
Nathan Harold
a6b0fe7fdd Merge "Add docs for setSignalStrengthReportingCriteria" into stage-aosp-master 2018-06-27 17:13:05 +00:00
Nathan Harold
563a057bd2 Add docs for setSignalStrengthReportingCriteria
Because setSignalStrengthReportingCriteria only
supports a single measurement quantity, provide
further clarification on the applicability of the
API and how it may be used in various situations.

Bug: 110121199
Test: compilation - docstring-only change
Change-Id: If4236070fbc03368e5a78b0cf502cdc4a529a6ed
2018-06-27 01:22:20 +00:00