From 37ce22db2aa8dce5f6b05160c99b65cb3dfae0c1 Mon Sep 17 00:00:00 2001 From: Angus Kong Date: Tue, 4 Sep 2012 18:05:45 +0800 Subject: Move LightCycle checking to the closed source. bug:7076779 Change-Id: Ieebe0343a46257ca07f06483beb9391a90d7727a --- .../android/gallery3d/util/LightCycleHelper.java | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src_pd/com/android/gallery3d/util/LightCycleHelper.java (limited to 'src_pd/com/android/gallery3d/util') diff --git a/src_pd/com/android/gallery3d/util/LightCycleHelper.java b/src_pd/com/android/gallery3d/util/LightCycleHelper.java new file mode 100644 index 000000000..82bd647fd --- /dev/null +++ b/src_pd/com/android/gallery3d/util/LightCycleHelper.java @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2012 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.gallery3d.util; + +import android.app.Activity; +import android.content.Context; +import android.content.Intent; +import android.net.Uri; + +public class LightCycleHelper { + + public static void setupCaptureIntent(Intent it, String outputDir) { + /* Do nothing */ + } + + public static synchronized boolean hasLightCycleView(Context context) { + return false; + } + + public static synchronized boolean hasLightCycleCapture(Context context) { + return false; + } + + public static synchronized void onPackageAdded(Context context, String packageName) { + /* Do nothing */ + } + + public static synchronized void onPackageRemoved(Context context, String packageName) { + /* Do nothing */ + } + + public static synchronized void onPackageChanged(Context context, String packageName) { + /* Do nothing */ + } + + public static void viewPanorama(Activity activity, Uri uri, String type) { + /* Do nothing */ + } + + public static boolean isPanorama(String filename) { + return false; + } +} -- cgit v1.2.3