1/* 2 * Copyright (C) 2017 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 */ 16package [email protected]; 17 18import @1.0::PowerHint; 19 20/** Power hint identifiers passed to powerHintAsync_1_2() */ 21enum PowerHint : @1.0::PowerHint { 22 /** 23 * This hint indicates that audio stream is being started. Can be used 24 * for device specific optimizations during starting audio stream. The 25 * data parameter is non-zero when stream starts and zero when audio 26 * stream setup is complete. 27 */ 28 AUDIO_STREAMING, 29 30 /** 31 * This hint indicates that low latency audio is active. Can be used 32 * for device specific optimizations towards low latency audio. The 33 * data parameter is non-zero when low latency audio starts and 34 * zero when ends. 35 */ 36 AUDIO_LOW_LATENCY, 37 38 /** 39 * These hint indicates that camera is being launched. Can be used 40 * for device specific optimizations during camera launch. The data 41 * parameter is non-zero when camera launch starts and zero when launch 42 * is complete. 43 */ 44 CAMERA_LAUNCH, 45 46 /** 47 * This hint indicates that camera stream is being started. Can be used 48 * for device specific optimizations during starting camera stream. The 49 * data parameter is non-zero when stream starts and zero when ends. 50 */ 51 CAMERA_STREAMING, 52 53 /** 54 * This hint indicates that camera shot is being taken. Can be used 55 * for device specific optimizations during taking camera shot. The 56 * data parameter is non-zero when camera shot starts and zero when ends. 57 */ 58 CAMERA_SHOT, 59}; 60