platform_hardware_interfaces/media/bufferpool/2.0/IObserver.hal
Sungtak Lee 1ae877d04a Add message id to interface
In order to synchronize message id when a new connection is made,
message Id is added as a return value. Also the last posted message Id
is given as paramter, when observer is notfied of new messages.

Bug: 112203066
Change-Id: Ic3921fd176aec1abc7de3ea88c730ad46182d28f
2018-10-18 13:34:14 -07:00

35 lines
1.2 KiB
Text

/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.hardware.media.bufferpool@2.0;
/**
* IObserver listens on notifications from the buffer pool. On receiving
* notifications, FMQ messages from the specific buffer pool which are already
* in the FMQ are processed.
*/
interface IObserver {
/**
* The specific buffer pool sent a message to the client. Calling this
* method from the buffer pool enforces a buffer pool client process the
* message.
*
* @param connectionId the connection Id of the specific buffer pool client
* @param msgId Id of the most recent message
*/
oneway onMessage(int64_t connectionId, uint32_t msgId);
};