1/*
2 * Copyright (C) 2018 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 [email protected];
18
19import [email protected]::RadioResponseInfo;
20
21/**
22 * Interface declaring response functions to solicited radio config requests.
23 */
24interface IRadioConfigResponse {
25
26    /**
27     * @param info Response info struct containing response type, serial no. and error
28     * @param slotStatus Sim slot struct containing all the physical SIM slots info with size
29      *       equals to the number of physical slots on the device
30     *
31     * Valid errors returned:
32     *   RadioError:NONE
33     *   RadioError:RADIO_NOT_AVAILABLE
34     *   RadioError:NO_MEMORY
35     *   RadioError:INTERNAL_ERR
36     *   RadioError:MODEM_ERR
37     */
38    oneway getSimSlotsStatusResponse(RadioResponseInfo info, vec<SimSlotStatus> slotStatus);
39
40    /**
41     * @param info Response info struct containing response type, serial no. and error
42     *
43     * Valid errors returned:
44     *   RadioError:NONE
45     *   RadioError:RADIO_NOT_AVAILABLE
46     *   RadioError:NO_MEMORY
47     *   RadioError:INTERNAL_ERR
48     *   RadioError:MODEM_ERR
49     *   RadioError:INVALID_ARGUMENTS
50     */
51    oneway setSimSlotsMappingResponse(RadioResponseInfo info);
52};
53