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.PipeOffloadConfigOffloadType; 19 import android.automotive.computepipe.runner.PipeOffloadConfigOffloadDesc; 20 21 /** 22 * Offload configs 23 * 24 * Structure that describes the offload options that a graph can use. 25 * This is determined at graph creation time by the developer. 26 * A graph can advertise different combinations of offload options that it 27 * can use. A client can choose amongst the combinations of offload options, for 28 * any given iteration of the graph execution. 29 * 30 * This is provided by the HIDL implementation to the client 31 */ 32 @VintfStability 33 parcelable PipeOffloadConfig { 34 /** 35 * Offload descriptor that the graph can support. 36 */ 37 PipeOffloadConfigOffloadDesc desc; 38 /** 39 * identifier for the option. 40 */ 41 String configId; 42 } 43 44