diff options
Diffstat (limited to 'src_pd')
14 files changed, 38 insertions, 520 deletions
diff --git a/src_pd/com/android/camera/PanoramaStitchingManager.java b/src_pd/com/android/camera/PanoramaStitchingManager.java index 5ba16b863..48f67ced2 100644 --- a/src_pd/com/android/camera/PanoramaStitchingManager.java +++ b/src_pd/com/android/camera/PanoramaStitchingManager.java @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2013 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; import android.content.Context; diff --git a/src_pd/com/android/camera/app/StitchingProgressManager.java b/src_pd/com/android/camera/app/StitchingProgressManager.java new file mode 100644 index 000000000..a9b796ad2 --- /dev/null +++ b/src_pd/com/android/camera/app/StitchingProgressManager.java @@ -0,0 +1,21 @@ +package com.android.camera.app; + +import android.content.Context; +import android.net.Uri; + +import com.android.camera.support.app.StitchingChangeListener; + +public class StitchingProgressManager { + public StitchingProgressManager(Context app) { + } + + public void addChangeListener(StitchingChangeListener l) { + } + + public void removeChangeListener(StitchingChangeListener l) { + } + + public Integer getProgress(Uri uri) { + return null; + } +} diff --git a/src_pd/com/android/gallery3d/util/HelpUtils.java b/src_pd/com/android/camera/util/HelpUtils.java index 7da3fca52..2ed3dca70 100644 --- a/src_pd/com/android/gallery3d/util/HelpUtils.java +++ b/src_pd/com/android/camera/util/HelpUtils.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.gallery3d.util; +package com.android.camera.util; import android.content.Context; import android.content.Intent; diff --git a/src_pd/com/android/gallery3d/util/LightCycleHelper.java b/src_pd/com/android/camera/util/PhotoSphereHelper.java index 5cd910f8f..570e95ff7 100644 --- a/src_pd/com/android/gallery3d/util/LightCycleHelper.java +++ b/src_pd/com/android/camera/util/PhotoSphereHelper.java @@ -1,20 +1,5 @@ -/* - * 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; +package com.android.camera.util; + import android.app.Activity; import android.content.ContentResolver; @@ -23,10 +8,9 @@ import android.content.Intent; import android.net.Uri; import com.android.camera.CameraModule; -import com.android.gallery3d.app.GalleryApp; -import com.android.gallery3d.app.StitchingProgressManager; +import com.android.camera.app.StitchingProgressManager; -public class LightCycleHelper { +public class PhotoSphereHelper { public static class PanoramaMetadata { // Whether a panorama viewer should be used public final boolean mUsePanoramaViewer; @@ -80,7 +64,7 @@ public class LightCycleHelper { return null; } - public static StitchingProgressManager createStitchingManagerInstance(GalleryApp app) { + public static StitchingProgressManager createStitchingManagerInstance(Context context) { return null; } diff --git a/src_pd/com/android/camera/util/RefocusHelper.java b/src_pd/com/android/camera/util/RefocusHelper.java new file mode 100644 index 000000000..4de7d1a8c --- /dev/null +++ b/src_pd/com/android/camera/util/RefocusHelper.java @@ -0,0 +1,10 @@ +package com.android.camera.util; + + +import com.android.camera.CameraModule; + +public class RefocusHelper { + public static CameraModule createRefocusModule() { + return null; + } +} diff --git a/src_pd/com/android/gallery3d/util/UsageStatistics.java b/src_pd/com/android/camera/util/UsageStatistics.java index 48fc6ae24..40f74a4ee 100644 --- a/src_pd/com/android/gallery3d/util/UsageStatistics.java +++ b/src_pd/com/android/camera/util/UsageStatistics.java @@ -1,20 +1,4 @@ -/* - * Copyright (C) 2013 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; +package com.android.camera.util; import android.content.Context; diff --git a/src_pd/com/android/gallery3d/app/StitchingProgressManager.java b/src_pd/com/android/gallery3d/app/StitchingProgressManager.java deleted file mode 100644 index 73868478e..000000000 --- a/src_pd/com/android/gallery3d/app/StitchingProgressManager.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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.app; - -import android.net.Uri; - -public class StitchingProgressManager { - public StitchingProgressManager(GalleryApp app) { - } - - public void addChangeListener(StitchingChangeListener l) { - } - - public void removeChangeListener(StitchingChangeListener l) { - } - - public Integer getProgress(Uri uri) { - return null; - } -} diff --git a/src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java b/src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java deleted file mode 100644 index 32664258a..000000000 --- a/src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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.filtershow.editors; - -import com.android.gallery3d.filtershow.EditorPlaceHolder; -import com.android.gallery3d.filtershow.editors.BasicEditor; -import com.android.gallery3d.filtershow.editors.EditorCurves; -import com.android.gallery3d.filtershow.editors.EditorZoom; - -public class EditorManager { - - public static void addEditors(EditorPlaceHolder editorPlaceHolder) { - editorPlaceHolder.addEditor(new EditorGrad()); - editorPlaceHolder.addEditor(new EditorChanSat()); - editorPlaceHolder.addEditor(new EditorZoom()); - editorPlaceHolder.addEditor(new EditorCurves()); - editorPlaceHolder.addEditor(new EditorTinyPlanet()); - editorPlaceHolder.addEditor(new EditorDraw()); - editorPlaceHolder.addEditor(new EditorVignette()); - editorPlaceHolder.addEditor(new EditorMirror()); - editorPlaceHolder.addEditor(new EditorRotate()); - editorPlaceHolder.addEditor(new EditorStraighten()); - editorPlaceHolder.addEditor(new EditorCrop()); - } - -} diff --git a/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java b/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java deleted file mode 100644 index 66372c27f..000000000 --- a/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright (C) 2013 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.filtershow.filters; - -import android.content.Context; -import android.content.res.Resources; -import android.graphics.Color; - -import com.android.gallery3d.R; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Vector; - -public class FiltersManager extends BaseFiltersManager { - private static FiltersManager sInstance = null; - private static FiltersManager sPreviewInstance = null; - private static FiltersManager sHighresInstance = null; - private static int mImageBorderSize = 4; // in percent - public FiltersManager() { - init(); - } - - public static FiltersManager getPreviewManager() { - if (sPreviewInstance == null) { - sPreviewInstance = new FiltersManager(); - } - return sPreviewInstance; - } - - public static FiltersManager getManager() { - if (sInstance == null) { - sInstance = new FiltersManager(); - } - return sInstance; - } - - @Override - public void addBorders(Context context) { - - // Do not localize - String[] serializationNames = { - "FRAME_4X5", - "FRAME_BRUSH", - "FRAME_GRUNGE", - "FRAME_SUMI_E", - "FRAME_TAPE", - "FRAME_BLACK", - "FRAME_BLACK_ROUNDED", - "FRAME_WHITE", - "FRAME_WHITE_ROUNDED", - "FRAME_CREAM", - "FRAME_CREAM_ROUNDED" - }; - - // The "no border" implementation - int i = 0; - FilterRepresentation rep = new FilterImageBorderRepresentation(0); - mBorders.add(rep); - - // Regular borders - ArrayList <FilterRepresentation> borderList = new ArrayList<FilterRepresentation>(); - - - rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_4x5); - borderList.add(rep); - - rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_brush); - borderList.add(rep); - - rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_grunge); - borderList.add(rep); - - rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_sumi_e); - borderList.add(rep); - - rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_tape); - borderList.add(rep); - - rep = new FilterColorBorderRepresentation(Color.BLACK, mImageBorderSize, 0); - borderList.add(rep); - - rep = new FilterColorBorderRepresentation(Color.BLACK, mImageBorderSize, - mImageBorderSize); - borderList.add(rep); - - rep = new FilterColorBorderRepresentation(Color.WHITE, mImageBorderSize, 0); - borderList.add(rep); - - rep = new FilterColorBorderRepresentation(Color.WHITE, mImageBorderSize, - mImageBorderSize); - borderList.add(rep); - - int creamColor = Color.argb(255, 237, 237, 227); - rep = new FilterColorBorderRepresentation(creamColor, mImageBorderSize, 0); - borderList.add(rep); - - rep = new FilterColorBorderRepresentation(creamColor, mImageBorderSize, - mImageBorderSize); - borderList.add(rep); - - for (FilterRepresentation filter : borderList) { - filter.setSerializationName(serializationNames[i++]); - addRepresentation(filter); - } - - } - - public static FiltersManager getHighresManager() { - if (sHighresInstance == null) { - sHighresInstance = new FiltersManager(); - } - return sHighresInstance; - } - - public static void reset() { - sInstance = null; - sPreviewInstance = null; - sHighresInstance = null; - } - - public static void setResources(Resources resources) { - FiltersManager.getManager().setFilterResources(resources); - FiltersManager.getPreviewManager().setFilterResources(resources); - FiltersManager.getHighresManager().setFilterResources(resources); - } -} diff --git a/src_pd/com/android/gallery3d/picasasource/PicasaSource.java b/src_pd/com/android/gallery3d/picasasource/PicasaSource.java deleted file mode 100644 index 5e800e23b..000000000 --- a/src_pd/com/android/gallery3d/picasasource/PicasaSource.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright (C) 2010 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.picasasource; - -import android.app.Activity; -import android.app.Dialog; -import android.content.Context; -import android.os.ParcelFileDescriptor; - -import com.android.gallery3d.app.GalleryApp; -import com.android.gallery3d.data.MediaItem; -import com.android.gallery3d.data.MediaObject; -import com.android.gallery3d.data.MediaSet; -import com.android.gallery3d.data.MediaSource; -import com.android.gallery3d.data.Path; -import com.android.gallery3d.data.PathMatcher; - -import java.io.FileNotFoundException; - -public class PicasaSource extends MediaSource { - private static final String TAG = "PicasaSource"; - - private static final int NO_MATCH = -1; - private static final int IMAGE_MEDIA_ID = 1; - - private static final int PICASA_ALBUMSET = 0; - private static final int MAP_BATCH_COUNT = 100; - - private GalleryApp mApplication; - private PathMatcher mMatcher; - - public static final Path ALBUM_PATH = Path.fromString("/picasa/all"); - - public PicasaSource(GalleryApp application) { - super("picasa"); - mApplication = application; - mMatcher = new PathMatcher(); - mMatcher.add("/picasa/all", PICASA_ALBUMSET); - mMatcher.add("/picasa/image", PICASA_ALBUMSET); - mMatcher.add("/picasa/video", PICASA_ALBUMSET); - } - - private static class EmptyAlbumSet extends MediaSet { - - public EmptyAlbumSet(Path path, long version) { - super(path, version); - } - - @Override - public String getName() { - return "picasa"; - } - - @Override - public long reload() { - return mDataVersion; - } - } - - @Override - public MediaObject createMediaObject(Path path) { - switch (mMatcher.match(path)) { - case PICASA_ALBUMSET: - return new EmptyAlbumSet(path, MediaObject.nextVersionNumber()); - default: - throw new RuntimeException("bad path: " + path); - } - } - - public static MediaItem getFaceItem(Context context, MediaItem item, int faceIndex) { - throw new UnsupportedOperationException(); - } - - public static boolean isPicasaImage(MediaObject object) { - return false; - } - - public static String getImageTitle(MediaObject image) { - throw new UnsupportedOperationException(); - } - - public static int getImageSize(MediaObject image) { - throw new UnsupportedOperationException(); - } - - public static String getContentType(MediaObject image) { - throw new UnsupportedOperationException(); - } - - public static long getDateTaken(MediaObject image) { - throw new UnsupportedOperationException(); - } - - public static double getLatitude(MediaObject image) { - throw new UnsupportedOperationException(); - } - - public static double getLongitude(MediaObject image) { - throw new UnsupportedOperationException(); - } - - public static int getRotation(MediaObject image) { - throw new UnsupportedOperationException(); - } - - public static long getPicasaId(MediaObject image) { - throw new UnsupportedOperationException(); - } - - public static String getUserAccount(Context context, MediaObject image) { - throw new UnsupportedOperationException(); - } - - public static ParcelFileDescriptor openFile(Context context, MediaObject image, String mode) - throws FileNotFoundException { - throw new UnsupportedOperationException(); - } - - public static void initialize(Context context) {/*do nothing*/} - - public static void requestSync(Context context) {/*do nothing*/} - - public static void showSignInReminder(Activity context) {/*do nothing*/} - - public static void onPackageAdded(Context context, String packageName) {/*do nothing*/} - - public static void onPackageRemoved(Context context, String packageName) {/*do nothing*/} - - public static void onPackageChanged(Context context, String packageName) {/*do nothing*/} - - public static Dialog getVersionCheckDialog(Activity activity){ - return null; - } -} diff --git a/src_pd/com/android/gallery3d/settings/GallerySettings.java b/src_pd/com/android/gallery3d/settings/GallerySettings.java deleted file mode 100644 index d30d755e3..000000000 --- a/src_pd/com/android/gallery3d/settings/GallerySettings.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2011 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.settings; - -import android.preference.PreferenceActivity; - -public class GallerySettings extends PreferenceActivity { - private static final String TAG = "GallerySettings"; -} diff --git a/src_pd/com/android/gallery3d/util/RefocusHelper.java b/src_pd/com/android/gallery3d/util/RefocusHelper.java deleted file mode 100644 index 39ded4740..000000000 --- a/src_pd/com/android/gallery3d/util/RefocusHelper.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2013 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 com.android.camera.CameraModule; - -public class RefocusHelper { - public static CameraModule createRefocusModule() { - return null; - } -} diff --git a/src_pd/com/android/gallery3d/util/XmpUtilHelper.java b/src_pd/com/android/gallery3d/util/XmpUtilHelper.java deleted file mode 100644 index 88b813dea..000000000 --- a/src_pd/com/android/gallery3d/util/XmpUtilHelper.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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 com.adobe.xmp.XMPMeta; - -import java.io.InputStream; - -public class XmpUtilHelper { - - public static XMPMeta extractXMPMeta(InputStream is) { - return null; - } - - public static boolean writeXMPMeta(String filename, Object meta) { - return false; - } - -} diff --git a/src_pd/com/android/photos/data/PhotoProviderAuthority.java b/src_pd/com/android/photos/data/PhotoProviderAuthority.java deleted file mode 100644 index 0ac76cb0e..000000000 --- a/src_pd/com/android/photos/data/PhotoProviderAuthority.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (C) 2013 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.photos.data; - -interface PhotoProviderAuthority { - public static final String AUTHORITY = "com.android.gallery3d.photoprovider"; -} |