summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/util
diff options
context:
space:
mode:
authorPuneet Lall <puneetl@google.com>2015-02-18 16:47:02 -0800
committerPuneet Lall <puneetl@google.com>2015-02-19 14:36:10 -0800
commit270990a7e3fcd1cf71b652c9ad1cc46598ddf4b3 (patch)
treecce77db86c4370a392cfd902bcee92e7b56cc33c /src/com/android/camera/util
parent251c60cbdfc6b221510a43dd25543ea16f9f582b (diff)
downloadandroid_packages_apps_Camera2-270990a7e3fcd1cf71b652c9ad1cc46598ddf4b3.tar.gz
android_packages_apps_Camera2-270990a7e3fcd1cf71b652c9ad1cc46598ddf4b3.tar.bz2
android_packages_apps_Camera2-270990a7e3fcd1cf71b652c9ad1cc46598ddf4b3.zip
Reset the camera after detecting repeated failure
Bug: 19061883 Change-Id: I913334e19fc248010bdeb2dab4ae1a6d05427f40
Diffstat (limited to 'src/com/android/camera/util')
-rw-r--r--src/com/android/camera/util/Provider.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/com/android/camera/util/Provider.java b/src/com/android/camera/util/Provider.java
new file mode 100644
index 000000000..959bb6458
--- /dev/null
+++ b/src/com/android/camera/util/Provider.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2015 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.util;
+
+/**
+ * TODO Replace with jsr330 Provider interface.
+ */
+public interface Provider<T> {
+ public T get();
+}