1b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar/* 2b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * Copyright (C) 2015 The Android Open Source Project 3b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * 4b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * Licensed under the Apache License, Version 2.0 (the "License"); 5b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * you may not use this file except in compliance with the License. 6b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * You may obtain a copy of the License at 7b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * 8b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * http://www.apache.org/licenses/LICENSE-2.0 9b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * 10b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * Unless required by applicable law or agreed to in writing, software 11b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * distributed under the License is distributed on an "AS IS" BASIS, 12b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * See the License for the specific language governing permissions and 14b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * limitations under the License. 15b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar */ 16b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar 17b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekharpackage com.android.camera.burst; 18b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar 19b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar/** 20b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * Controls the framework the orientation lock. 21b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar */ 22b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekharpublic interface OrientationLockController { 23b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar /** 24b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * Lock the framework orientation to the current device orientation 25b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * rotation. 26b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar */ 27b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar void lockOrientation(); 28b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar 29b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar /** 30b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * Unlock the framework orientation, so it can change when the device 31b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar * rotates. 32b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar */ 33b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar void unlockOrientation(); 34b4b27f2c7738cd5e3f31a281d66a33f4698810b3Shashi Shekhar} 35