blob: 4caddd906d0ac00f21270ab3378e6cd439abf7d8 [file] [log] [blame]
Cassie8c3011e2017-10-26 15:51:48 -07001/*
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
17package android.hardware.radio@1.2;
18
19import @1.0::RadioIndicationType;
20import @1.1::IRadioIndication;
21
22/**
23 * Interface declaring unsolicited radio indications.
24 */
25interface IRadioIndication extends @1.1::IRadioIndication {
26
27 /**
28 * Incremental network scan results
29 */
30 oneway networkScanResult_1_2(RadioIndicationType type, NetworkScanResult result);
Sandeep Gutta4a4d8cc2017-12-12 17:38:15 +053031
32 /**
Cassie3fb76172018-01-05 10:11:39 -080033 * 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 Haroldd0f94662018-02-09 18:05:40 -080037 * @param records Current cell information
Cassie3fb76172018-01-05 10:11:39 -080038 */
39 oneway cellInfoList_1_2(RadioIndicationType type, vec<CellInfo> records);
Eric Schwarzenbach21c6dc32017-12-13 15:52:15 -080040
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 Haroldd0f94662018-02-09 18:05:40 -080053 * @param lce LinkCapacityEstimate
Eric Schwarzenbach21c6dc32017-12-13 15:52:15 -080054 */
55 oneway currentLinkCapacityEstimate(RadioIndicationType type, LinkCapacityEstimate lce);
Eric Schwarzenbach20fd2c72017-12-18 10:26:32 -080056
57 /**
58 * Indicates physical channel configurations.
59 *
Eric Schwarzenbachf9ec2f12018-02-22 10:41:01 -080060 * An empty configs list indicates that the radio is in idle mode.
61 *
Eric Schwarzenbach20fd2c72017-12-18 10:26:32 -080062 * @param type Type of radio indication
Nathan Haroldd0f94662018-02-09 18:05:40 -080063 * @param configs Vector of PhysicalChannelConfigs
Eric Schwarzenbach20fd2c72017-12-18 10:26:32 -080064 */
65 oneway currentPhysicalChannelConfigs(RadioIndicationType type,
66 vec<PhysicalChannelConfig> configs);
Nathan Haroldd0f94662018-02-09 18:05:40 -080067
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 Gutta4a4d8cc2017-12-12 17:38:15 +053075};