1/*
2 * Copyright (C) 2017 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.deprecated@1.0;
18
19import android.hardware.radio@1.0::types;
20
21/**
22 * Interface declaring response functions to solicited oem hook requests.
23 * Response functions defined in this interface are as per following convention:
24 * <xyz>Response is response to IOemHook.<xyz>
25 */
26interface IOemHookResponse {
27    /**
28     * @param info Response info struct containing response type, serial no. and error
29     * @param data data returned by oem
30     *
31     * Valid errors returned:
32     *   RadioError:NONE
33     *   RadioError:RADIO_NOT_AVAILABLE
34     *   RadioError:INVALID_ARGUMENTS
35     *   RadioError:OEM_ERROR_X
36     */
37    oneway sendRequestRawResponse(RadioResponseInfo info, vec<uint8_t> data);
38
39    /**
40     * @param info Response info struct containing response type, serial no. and error
41     * @param data data returned by oem
42     *
43     * Valid errors returned:
44     *   RadioError:NONE
45     *   RadioError:RADIO_NOT_AVAILABLE
46     *   RadioError:INVALID_ARGUMENTS
47     *   RadioError:OEM_ERROR_X
48     */
49    oneway sendRequestStringsResponse(RadioResponseInfo info, vec<string> data);
50};
51