summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/presets
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2012-10-23 11:26:38 -0700
committernicolasroard <nicolasroard@google.com>2012-10-23 11:26:38 -0700
commit983f612476c394dffcd2b73869ed3c92f531e5e1 (patch)
treea6b23f1cb5eb9bc55180ca12b505bf7006162a5b /src/com/android/gallery3d/filtershow/presets
parent3a6614628f8d33f8ce881d85355cebf2b9523252 (diff)
downloadandroid_packages_apps_Snap-983f612476c394dffcd2b73869ed3c92f531e5e1.tar.gz
android_packages_apps_Snap-983f612476c394dffcd2b73869ed3c92f531e5e1.tar.bz2
android_packages_apps_Snap-983f612476c394dffcd2b73869ed3c92f531e5e1.zip
Add copyright notices
bug:7387634 Change-Id: Iaac0b55c9857f609312b78a613d074d323174ea1
Diffstat (limited to 'src/com/android/gallery3d/filtershow/presets')
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePreset.java15
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePresetBW.java15
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePresetBWBlue.java15
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePresetBWGreen.java15
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePresetBWRed.java15
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java18
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePresetOld.java21
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePresetSaturated.java15
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePresetXProcessing.java21
9 files changed, 145 insertions, 5 deletions
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
index c1eb86f14..69875d9c6 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
@@ -1,3 +1,18 @@
+/*
+ * 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.presets;
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePresetBW.java b/src/com/android/gallery3d/filtershow/presets/ImagePresetBW.java
index f5eeb78fd..bfa6dacc7 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePresetBW.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePresetBW.java
@@ -1,3 +1,18 @@
+/*
+ * 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.presets;
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePresetBWBlue.java b/src/com/android/gallery3d/filtershow/presets/ImagePresetBWBlue.java
index 97d21e1e6..5d56aa1cd 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePresetBWBlue.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePresetBWBlue.java
@@ -1,3 +1,18 @@
+/*
+ * 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.presets;
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePresetBWGreen.java b/src/com/android/gallery3d/filtershow/presets/ImagePresetBWGreen.java
index 26588b9ac..d1b4e5d78 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePresetBWGreen.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePresetBWGreen.java
@@ -1,3 +1,18 @@
+/*
+ * 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.presets;
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePresetBWRed.java b/src/com/android/gallery3d/filtershow/presets/ImagePresetBWRed.java
index 299621edf..9653bed57 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePresetBWRed.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePresetBWRed.java
@@ -1,3 +1,18 @@
+/*
+ * 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.presets;
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java b/src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java
index fa207a6d0..95edc5d15 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java
@@ -1,15 +1,30 @@
+/*
+ * 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.presets;
import android.graphics.Bitmap;
-import com.android.gallery3d.filtershow.filters.ImageFilterBWRed;
import com.android.gallery3d.filtershow.filters.ImageFilterFx;
public class ImagePresetFX extends ImagePreset {
String name;
Bitmap fxBitmap;
+ @Override
public String name() {
return name;
}
@@ -20,6 +35,7 @@ public class ImagePresetFX extends ImagePreset {
setup();
}
+ @Override
public void setup() {
if (fxBitmap != null) {
mFilters.add(new ImageFilterFx(fxBitmap,name));
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePresetOld.java b/src/com/android/gallery3d/filtershow/presets/ImagePresetOld.java
index 56e1dab45..5e1db8336 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePresetOld.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePresetOld.java
@@ -1,16 +1,33 @@
+/*
+ * 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.presets;
-import com.android.gallery3d.filtershow.filters.ImageFilterGradient;
-
import android.graphics.Color;
+import com.android.gallery3d.filtershow.filters.ImageFilterGradient;
+
public class ImagePresetOld extends ImagePreset {
+ @Override
public String name() {
return "Old";
}
+ @Override
public void setup() {
ImageFilterGradient filter = new ImageFilterGradient();
filter.addColor(Color.BLACK, 0.0f);
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePresetSaturated.java b/src/com/android/gallery3d/filtershow/presets/ImagePresetSaturated.java
index 1a84bbf5d..ddfca7508 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePresetSaturated.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePresetSaturated.java
@@ -1,3 +1,18 @@
+/*
+ * 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.presets;
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePresetXProcessing.java b/src/com/android/gallery3d/filtershow/presets/ImagePresetXProcessing.java
index 3e744be77..7957b5e7c 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePresetXProcessing.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePresetXProcessing.java
@@ -1,16 +1,33 @@
+/*
+ * 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.presets;
-import com.android.gallery3d.filtershow.filters.ImageFilterGradient;
-
import android.graphics.Color;
+import com.android.gallery3d.filtershow.filters.ImageFilterGradient;
+
public class ImagePresetXProcessing extends ImagePreset {
+ @Override
public String name() {
return "X-Process";
}
+ @Override
public void setup() {
ImageFilterGradient filter = new ImageFilterGradient();
filter.addColor(Color.BLACK, 0.0f);