4bb9d310d4
Add an indication and request+response to get updated barring information for the current cell. Bug: 143231559 Bug: 143226991 Test: compilation && atest VtsHalRadioV1_5TargetTest Change-Id: I226cf66dd6b9b71a6c020cdd618fe5e2af0baa20
173 lines
5.8 KiB
Text
173 lines
5.8 KiB
Text
/*
|
|
* Copyright (C) 2019 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package android.hardware.radio@1.5;
|
|
|
|
import @1.0::RadioResponseInfo;
|
|
import @1.4::IRadioResponse;
|
|
import @1.5::BarringInfo;
|
|
import @1.5::SetupDataCallResult;
|
|
|
|
/**
|
|
* Interface declaring response functions to solicited radio requests.
|
|
*/
|
|
interface IRadioResponse extends @1.4::IRadioResponse {
|
|
/**
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
*
|
|
* Valid errors returned:
|
|
* RadioError:NONE
|
|
* RadioError:INVALID_ARGUMENTS
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
*/
|
|
oneway setSignalStrengthReportingCriteriaResponse_1_5(RadioResponseInfo info);
|
|
|
|
/**
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
*
|
|
* Valid errors returned:
|
|
* RadioError:NONE
|
|
* RadioError:SIM_ABSENT
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
* RadioError:INTERNAL_ERR
|
|
* RadioError:BUSY
|
|
*/
|
|
oneway enableUiccApplicationsResponse(RadioResponseInfo info);
|
|
|
|
/**
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
* @param enabled whether Uicc applications are enabled.
|
|
*
|
|
* Valid errors returned:
|
|
* RadioError:NONE
|
|
* RadioError:SIM_ABSENT
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
* RadioError:INTERNAL_ERR
|
|
*/
|
|
oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled);
|
|
|
|
/**
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
*
|
|
* Valid errors returned:
|
|
* RadioError:NONE
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
* RadioError:INTERNAL_ERR
|
|
* RadioError:INVALID_ARGUMENTS
|
|
*/
|
|
oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info);
|
|
|
|
/**
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
*
|
|
* Valid errors returned:
|
|
* RadioError:NONE
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
* RadioError:DEVICE_IN_USE
|
|
* RadioError:INTERNAL_ERR
|
|
* RadioError:MODEM_ERR
|
|
* RadioError:INVALID_ARGUMENTS
|
|
*/
|
|
oneway startNetworkScanResponse_1_5(RadioResponseInfo info);
|
|
|
|
/**
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
* @param dcResponse SetupDataCallResult defined in types.hal
|
|
*
|
|
* Valid errors returned:
|
|
* RadioError:NONE must be returned on both success and failure of setup with the
|
|
* DataCallResponse.status containing the actual status
|
|
* For all other errors the DataCallResponse is ignored.
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
* RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
|
|
* RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
|
|
* RadioError:REQUEST_NOT_SUPPORTED
|
|
* RadioError:INVALID_ARGUMENTS
|
|
* RadioError:INTERNAL_ERR
|
|
* RadioError:NO_RESOURCES
|
|
* RadioError:SIM_ABSENT
|
|
*/
|
|
oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse);
|
|
|
|
/**
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
*
|
|
* Valid errors returned:
|
|
* RadioError:NONE
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
* RadioError:SUBSCRIPTION_NOT_AVAILABLE
|
|
* RadioError:NO_MEMORY
|
|
* RadioError:INTERNAL_ERR
|
|
* RadioError:SYSTEM_ERR
|
|
* RadioError:MODEM_ERR
|
|
* RadioError:INVALID_ARGUMENTS
|
|
* RadioError:NOT_PROVISIONED
|
|
* RadioError:REQUEST_NOT_SUPPORTED
|
|
* RadioError:NO_RESOURCES
|
|
* RadioError:CANCELLED
|
|
*/
|
|
oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info);
|
|
|
|
/**
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
*
|
|
* Valid errors returned:
|
|
* RadioError:NONE
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
* RadioError:SUBSCRIPTION_NOT_AVAILABLE
|
|
* RadioError:INTERNAL_ERR
|
|
* RadioError:NO_MEMORY
|
|
* RadioError:NO_RESOURCES
|
|
* RadioError:CANCELLED
|
|
* RadioError:REQUEST_NOT_SUPPORTED
|
|
* RadioError:SIM_ABSENT
|
|
*/
|
|
oneway setDataProfileResponse_1_5(RadioResponseInfo info);
|
|
|
|
/**
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
*
|
|
* Valid errors returned:
|
|
* RadioError:NONE
|
|
* RadioError:INTERNAL_ERR
|
|
* RadioError:INVALID_ARGUMENTS
|
|
*/
|
|
oneway setRadioPowerResponse_1_5(RadioResponseInfo info);
|
|
|
|
/**
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
*
|
|
* Valid errors returned:
|
|
* RadioError:NONE
|
|
* RadioError:INVALID_ARGUMENTS
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
* RadioError:INTERNAL_ERR
|
|
* RadioError:SYSTEM_ERR
|
|
*/
|
|
oneway setIndicationFilterResponse_1_5(RadioResponseInfo info);
|
|
|
|
/**
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
* @param barringInfos a vector of barring info for all barring service types
|
|
*
|
|
* Valid errors returned:
|
|
* RadioError:NONE
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
* RadioError:INTERNAL_ERR
|
|
* RadioError:MODEM_ERR
|
|
*/
|
|
oneway getBarringInfoResponse(RadioResponseInfo info, vec<BarringInfo> barringInfos);
|
|
};
|