1 /* 2 * Copyright (C) 2013 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 17 package com.android.camera.app; 18 19 import com.android.camera.remote.RemoteShutterListener; 20 import com.android.camera.session.CaptureSessionManager; 21 import com.android.camera.settings.SettingsManager; 22 23 /** 24 * Functionality available to all modules and services. 25 */ 26 public interface CameraServices { 27 28 /** 29 * Returns the capture session manager instance that modules use to store 30 * temporary or final capture results. 31 */ 32 public CaptureSessionManager getCaptureSessionManager(); 33 34 /** 35 * Returns the memory manager which can be used to get informed about memory 36 * status updates. 37 */ 38 public MemoryManager getMemoryManager(); 39 40 /** 41 * Returns the motion manager which senses when significant motion of the 42 * camera should unlock a locked focus. 43 */ 44 public MotionManager getMotionManager(); 45 46 /** 47 * Returns the media saver instance. 48 * <p> 49 * Deprecated. Use {@link #getCaptureSessionManager()} whenever possible. 50 * This direct access to media saver will go away. 51 */ 52 @Deprecated 53 public MediaSaver getMediaSaver(); 54 55 /** 56 * @return A listener to be informed by events interesting for remote 57 * capture apps. Will never return null. 58 */ 59 public RemoteShutterListener getRemoteShutterListener(); 60 61 /** 62 * @return The settings manager which allows get/set of all app settings. 63 */ 64 public SettingsManager getSettingsManager(); 65 } 66