Sungtak Lee | 38235ee | 2018-10-01 15:23:21 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package 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 | */ |
| 24 | interface 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 Lee | 1ae877d | 2018-10-18 13:34:14 -0700 | [diff] [blame^] | 32 | * @param msgId Id of the most recent message |
Sungtak Lee | 38235ee | 2018-10-01 15:23:21 -0700 | [diff] [blame] | 33 | */ |
Sungtak Lee | 1ae877d | 2018-10-18 13:34:14 -0700 | [diff] [blame^] | 34 | oneway onMessage(int64_t connectionId, uint32_t msgId); |
Sungtak Lee | 38235ee | 2018-10-01 15:23:21 -0700 | [diff] [blame] | 35 | }; |