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 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); 31 32 /** 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 37 * @param records Current cell information 38 */ 39 oneway cellInfoList_1_2(RadioIndicationType type, vec<CellInfo> records); 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 53 * @param lce LinkCapacityEstimate 54 */ 55 oneway currentLinkCapacityEstimate(RadioIndicationType type, LinkCapacityEstimate lce); 56 57 /** 58 * Indicates physical channel configurations. 59 * 60 * An empty configs list indicates that the radio is in idle mode. 61 * 62 * @param type Type of radio indication 63 * @param configs Vector of PhysicalChannelConfigs 64 */ 65 oneway currentPhysicalChannelConfigs(RadioIndicationType type, 66 vec<PhysicalChannelConfig> configs); 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); 75}; 76