Files
hardware_interfaces/media/bufferpool/2.0/IObserver.hal
Sungtak Lee 38235ee931 Add observer to bufferpool clients
Bufferpool clients are notified bufferpool events via FMQ messages.
Usually the messages are processed by pipeline via piggybacking. To
ensure process FMQ messages even if the process is in idle state,
Observer hidl interface is added. Buffer invalidation caused by
pipleline completion uses Observer interface in order to invalidate
buffers after all normal operations are finished.

Bug: 112203066
Change-Id: I2a4a172d78c6bcedcc809c559321929ebc91c30d
2018-10-05 15:04:38 -07:00

35 lines
1.2 KiB
Plaintext

/*
* 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
*/
oneway onMessage(int64_t connectionId);
};