diff options
author | Kevin Gabayan <gabayan@google.com> | 2014-06-02 14:48:20 -0700 |
---|---|---|
committer | Kevin Gabayan <gabayan@google.com> | 2014-06-17 10:00:19 -0700 |
commit | fb33336bc6f4b70b0686b5e060819d6bd41f3b6f (patch) | |
tree | 35989d19d8efd9628bed2eec0ad80d86b1a8842a /src_pd | |
parent | daebadaabddabc7ee246251b711a7a137ca6042b (diff) | |
download | android_packages_apps_Camera2-fb33336bc6f4b70b0686b5e060819d6bd41f3b6f.tar.gz android_packages_apps_Camera2-fb33336bc6f4b70b0686b5e060819d6bd41f3b6f.tar.bz2 android_packages_apps_Camera2-fb33336bc6f4b70b0686b5e060819d6bd41f3b6f.zip |
MotionManager for motion-aware focus unlock in Camera2. Second revision.
Bug: 14222601
Change-Id: I36637483b0d7efa2950cd93482de8f1e83bfa8aa
Diffstat (limited to 'src_pd')
-rw-r--r-- | src_pd/com/android/camera/app/MotionManager.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src_pd/com/android/camera/app/MotionManager.java b/src_pd/com/android/camera/app/MotionManager.java new file mode 100644 index 000000000..d6851d467 --- /dev/null +++ b/src_pd/com/android/camera/app/MotionManager.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.camera.app; + +import android.content.Context; +import com.android.camera.debug.Log; + +import java.util.LinkedList; + +public class MotionManager { + public static interface MotionListener { + public void onMoving(); + } + + private final LinkedList<MotionListener> mListeners = + new LinkedList<MotionListener>(); + + public MotionManager(Context context) { + } + + public void addListener(MotionListener listener) { + } + + public void removeListener(MotionListener listener) { + } + + public void reset() { + } + + public void start() { + } + + public void stop() { + } + + public boolean isEnabled() { + return false; + } + + public void onGyroUpdate(long t, float x, float y, float z) { + } +} |