Cassie | 8c3011e | 2017-10-26 15:51:48 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.hardware.radio@1.2; |
| 18 | |
| 19 | import @1.0::RadioIndicationType; |
| 20 | import @1.1::IRadioIndication; |
| 21 | |
| 22 | /** |
| 23 | * Interface declaring unsolicited radio indications. |
| 24 | */ |
| 25 | interface IRadioIndication extends @1.1::IRadioIndication { |
| 26 | |
| 27 | /** |
| 28 | * Incremental network scan results |
| 29 | */ |
| 30 | oneway networkScanResult_1_2(RadioIndicationType type, NetworkScanResult result); |
Sandeep Gutta | 4a4d8cc | 2017-12-12 17:38:15 +0530 | [diff] [blame] | 31 | |
| 32 | /** |
Cassie | 3fb7617 | 2018-01-05 10:11:39 -0800 | [diff] [blame] | 33 | * Request all of the current cell information known to the radio. |
| 34 | * Same information as returned by getCellInfoList() in 1.0::IRadio. |
| 35 | * |
| 36 | * @param type Type of radio indication |
Nathan Harold | d0f9466 | 2018-02-09 18:05:40 -0800 | [diff] [blame] | 37 | * @param records Current cell information |
Cassie | 3fb7617 | 2018-01-05 10:11:39 -0800 | [diff] [blame] | 38 | */ |
| 39 | oneway cellInfoList_1_2(RadioIndicationType type, vec<CellInfo> records); |
Eric Schwarzenbach | 21c6dc3 | 2017-12-13 15:52:15 -0800 | [diff] [blame] | 40 | |
| 41 | /** |
| 42 | * Indicates current link capacity estimate. |
| 43 | * |
| 44 | * This replaces @1.0::IRadioIndication.lceData(). The framework must be able to handle |
| 45 | * either this function or @1.0::IRadioIndication.lceData(). Implementations supporting |
| 46 | * v1.2 must call this function instead of lceData(). |
| 47 | * |
| 48 | * This indication is sent whenever the reporting criteria, as set by |
| 49 | * @1.2::IRadio.setLinkCapacityReportingCriteria, are met and the indication is not |
| 50 | * suppressed by @1.2::IRadio.setIndicationFilter_1_2(). |
| 51 | * |
| 52 | * @param type Type of radio indication |
Nathan Harold | d0f9466 | 2018-02-09 18:05:40 -0800 | [diff] [blame] | 53 | * @param lce LinkCapacityEstimate |
Eric Schwarzenbach | 21c6dc3 | 2017-12-13 15:52:15 -0800 | [diff] [blame] | 54 | */ |
| 55 | oneway currentLinkCapacityEstimate(RadioIndicationType type, LinkCapacityEstimate lce); |
Eric Schwarzenbach | 20fd2c7 | 2017-12-18 10:26:32 -0800 | [diff] [blame] | 56 | |
| 57 | /** |
| 58 | * Indicates physical channel configurations. |
| 59 | * |
Eric Schwarzenbach | f9ec2f1 | 2018-02-22 10:41:01 -0800 | [diff] [blame] | 60 | * An empty configs list indicates that the radio is in idle mode. |
| 61 | * |
Eric Schwarzenbach | 20fd2c7 | 2017-12-18 10:26:32 -0800 | [diff] [blame] | 62 | * @param type Type of radio indication |
Nathan Harold | d0f9466 | 2018-02-09 18:05:40 -0800 | [diff] [blame] | 63 | * @param configs Vector of PhysicalChannelConfigs |
Eric Schwarzenbach | 20fd2c7 | 2017-12-18 10:26:32 -0800 | [diff] [blame] | 64 | */ |
| 65 | oneway currentPhysicalChannelConfigs(RadioIndicationType type, |
| 66 | vec<PhysicalChannelConfig> configs); |
Nathan Harold | d0f9466 | 2018-02-09 18:05:40 -0800 | [diff] [blame] | 67 | |
| 68 | /** |
| 69 | * Indicates current signal strength of the radio. |
| 70 | * |
| 71 | * @param type Type of radio indication |
| 72 | * @param signalStrength SignalStrength information |
| 73 | */ |
| 74 | oneway currentSignalStrength_1_2(RadioIndicationType type, SignalStrength signalStrength); |
Sandeep Gutta | 4a4d8cc | 2017-12-12 17:38:15 +0530 | [diff] [blame] | 75 | }; |