blob: 62f247e14af4ef505d5e7c9a271b339582fd326c [file] [log] [blame]
Sungtak Lee38235ee2018-10-01 15:23:21 -07001/*
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 android.hardware.media.bufferpool@2.0;
18
19/**
20 * IObserver listens on notifications from the buffer pool. On receiving
21 * notifications, FMQ messages from the specific buffer pool which are already
22 * in the FMQ are processed.
23 */
24interface IObserver {
25
26 /**
27 * The specific buffer pool sent a message to the client. Calling this
28 * method from the buffer pool enforces a buffer pool client process the
29 * message.
30 *
31 * @param connectionId the connection Id of the specific buffer pool client
Sungtak Lee1ae877d2018-10-18 13:34:14 -070032 * @param msgId Id of the most recent message
Sungtak Lee38235ee2018-10-01 15:23:21 -070033 */
Sungtak Lee1ae877d2018-10-18 13:34:14 -070034 oneway onMessage(int64_t connectionId, uint32_t msgId);
Sungtak Lee38235ee2018-10-01 15:23:21 -070035};