• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2014 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 android.content.Context;
20 import com.android.camera.debug.Log;
21 
22 import java.util.LinkedList;
23 
24 public class MotionManager {
25     public static interface MotionListener {
onMoving()26         public void onMoving();
27     }
28 
29     private final LinkedList<MotionListener> mListeners =
30         new LinkedList<MotionListener>();
31 
MotionManager(Context context)32     public MotionManager(Context context) {
33     }
34 
addListener(MotionListener listener)35     public void addListener(MotionListener listener) {
36     }
37 
removeListener(MotionListener listener)38     public void removeListener(MotionListener listener) {
39     }
40 
reset()41     public void reset() {
42     }
43 
start()44     public void start() {
45     }
46 
stop()47     public void stop() {
48     }
49 
isEnabled()50     public boolean isEnabled() {
51         return false;
52     }
53 
onGyroUpdate(long t, float x, float y, float z)54     public void onGyroUpdate(long t, float x, float y, float z) {
55     }
56 }
57