• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 IOemHookResponse;
20import IOemHookIndication;
21
22/**
23 * This interface has APIs for OEM-specific use-cases.
24 * USE OF THIS INTERFACE IS DISCOURATED. IT IS PRESENT ONLY FOR BACKWARD COMPATIBILITY AND WILL BE
25 * REMOVED IN O (ATTEMPTING TO REMOVE IT IN O, BUT IF NOT IN O WILL BE REMOVED IN P).
26 * ALSO NOTE THAT FRAMEWORK EXPECTS THE SERVICE IMPLEMENTING THIS INTERFACE TO RESIDE
27 * IN THE SAME PROCESS AS IRADIO SERVICE.
28 */
29interface IOemHook {
30    /**
31     * Set response functions for oem hook requests & oem hook indications.
32     *
33     * @param oemHookResponse Object containing response functions
34     * @param oemHookIndication Object containing oem hook indications
35     */
36    setResponseFunctions(IOemHookResponse oemHookResponse, IOemHookIndication oemHookIndication);
37
38    /**
39     * This request passes raw byte arrays between framework and vendor code.
40     *
41     * @param serial Serial number of request.
42     * @param data data passed as raw bytes
43     *
44     * Response function is IOemHookResponse.sendRequestRawResponse()
45     */
46    oneway sendRequestRaw(int32_t serial, vec<uint8_t> data);
47
48    /**
49     * This request passes strings between framework and vendor code.
50     *
51     * @param serial Serial number of request.
52     * @param data data passed as strings
53     *
54     * Response function is IOemHookResponse.sendRequestStringsResponse()
55     */
56    oneway sendRequestStrings(int32_t serial, vec<string> data);
57};