2019-10-02 20:38:13 +02:00
|
|
|
/*
|
|
|
|
* 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;
|
2019-12-23 23:34:26 +01:00
|
|
|
import @1.5::BarringInfo;
|
2019-12-09 23:02:56 +01:00
|
|
|
import @1.5::SetupDataCallResult;
|
2020-01-17 02:00:49 +01:00
|
|
|
import @1.5::RegStateResult;
|
2019-10-02 20:38:13 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface declaring response functions to solicited radio requests.
|
|
|
|
*/
|
|
|
|
interface IRadioResponse extends @1.4::IRadioResponse {
|
2019-11-13 03:26:30 +01:00
|
|
|
/**
|
|
|
|
* @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);
|
2019-11-13 04:03:12 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @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);
|
|
|
|
|
2019-11-01 21:19:31 +01:00
|
|
|
/**
|
|
|
|
* @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);
|
2019-11-06 00:39:32 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @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);
|
2019-12-17 03:53:58 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @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);
|
2019-12-27 21:58:32 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @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);
|
2019-12-23 23:34:26 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @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);
|
2020-01-17 02:00:49 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
|
|
* @param voiceRegResponse Current Voice registration response as defined by RegStateResult
|
|
|
|
* in types.hal
|
|
|
|
*
|
|
|
|
* Valid errors returned:
|
|
|
|
* RadioError:NONE
|
|
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
|
|
* RadioError:INTERNAL_ERR
|
|
|
|
*/
|
|
|
|
oneway getVoiceRegistrationStateResponse_1_5(RadioResponseInfo info,
|
|
|
|
RegStateResult voiceRegResponse);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param info Response info struct containing response type, serial no. and error
|
|
|
|
* @param dataRegResponse Current Data registration response as defined by RegStateResult in
|
|
|
|
* types.hal
|
|
|
|
*
|
|
|
|
* Valid errors returned:
|
|
|
|
* RadioError:NONE
|
|
|
|
* RadioError:RADIO_NOT_AVAILABLE
|
|
|
|
* RadioError:INTERNAL_ERR
|
|
|
|
* RadioError:NOT_PROVISIONED
|
|
|
|
*/
|
|
|
|
oneway getDataRegistrationStateResponse_1_5(RadioResponseInfo info,
|
|
|
|
RegStateResult dataRegResponse);
|
2019-10-02 20:38:13 +02:00
|
|
|
};
|