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.media.soundtrigger_middleware; 17 18 import android.media.soundtrigger_middleware.SoundModelType; 19 import android.os.ParcelFileDescriptor; 20 21 /** 22 * Base sound model descriptor. This struct can be extended for various specific types by way of 23 * aggregation. 24 * {@hide} 25 */ 26 parcelable SoundModel { 27 /** Model type. */ 28 SoundModelType type; 29 /** Unique sound model ID. */ 30 String uuid; 31 /** 32 * Unique vendor ID. Identifies the engine the sound model 33 * was build for */ 34 String vendorUuid; 35 /** Opaque data transparent to Android framework. May be null if dataSize is 0. */ 36 @nullable ParcelFileDescriptor data; 37 /** Size of the above data, in bytes. */ 38 int dataSize; 39 } 40