1 /* 2 * Copyright (C) 2019 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 package android.automotive.computepipe.runner; 17 18 import android.automotive.computepipe.runner.PacketDescriptor; 19 20 @VintfStability 21 interface IPipeStream { 22 /** 23 * Receives calls from the AIDL implementation each time a new packet is available. 24 * Semantic data is contaied in the packet descriptor. 25 * Only Zero copy data packets received by this method must be returned via calls to 26 * IPipeRunner::doneWithPacket(), using the bufId field in the descriptor. 27 * After the pipe execution has stopped this callback may continue to happen for sometime. 28 * Those packets must still be returned. Last frame will be indicated with 29 * a null packet. After that there will not be any further packets. 30 * 31 * @param: packet is a descriptor for the packet. 32 */ deliverPacket(in PacketDescriptor packet)33 oneway void deliverPacket(in PacketDescriptor packet); 34 } 35