blob: 02361603057da7ee99af123812065b3c42767303 [file] [log] [blame]
Anthony Stangee351e3b2020-12-15 11:06:14 -05001/*
2 * Copyright (C) 2020 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.contexthub@1.2;
18
19import @1.0::IContexthubCallback;
20
21interface IContexthubCallback extends @1.0::IContexthubCallback {
22 /**
23 * This callback is passed by the Contexthub service to the HAL
24 * implementation to allow the HAL to send asynchronous messages back
25 * to the service and registered clients of the ContextHub service.
26 *
27 * @param msg message that should be delivered to host app clients
28 *
29 */
30 handleClientMsg_1_2(ContextHubMsg msg);
31
32 /**
33 * This callback is passed by the Contexthub service to the HAL
34 * implementation to allow the HAL to send information about the
35 * currently loaded and active nanoapps on the hub.
36 *
37 * @param appInfo vector of HubAppinfo structure for each nanoApp
38 * on the hub that can be enabled, disabled and
39 * unloaded by the service. Any nanoApps that cannot
40 * be controlled by the service must not be reported.
41 * All nanoApps that can be controlled by the service
42 * must be reported.
43 */
44 handleAppsInfo_1_2(vec<HubAppInfo> appInfo);
45};