Home
last modified time | relevance | path

Searched refs:representation (Results 1 – 25 of 66) sorted by relevance

123

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DImagePreset.java81 FilterRepresentation representation = null; in getFilterRepresentation() local
83 representation = mFilters.elementAt(position).copy(); in getFilterRepresentation()
85 return representation; in getFilterRepresentation()
103 public int getPositionForRepresentation(FilterRepresentation representation) { in getPositionForRepresentation() argument
105 if (sameSerializationName(mFilters.elementAt(i), representation)) { in getPositionForRepresentation()
140 FilterRepresentation representation = mFilters.elementAt(position); in getFilterRepresentationCopyFrom() local
141 if (representation != null) { in getFilterRepresentationCopyFrom()
142 representation = representation.copy(); in getFilterRepresentationCopyFrom()
144 return representation; in getFilterRepresentationCopyFrom()
185 for (FilterRepresentation representation : mFilters) { in contains()
[all …]
DCacheProcessing.java43 public void add(FilterRepresentation representation) { in add() argument
44 representations.add(representation); in add()
47 public boolean canMergeWith(FilterRepresentation representation) { in canMergeWith() argument
49 if (!rep.canMergeWith(representation)) { in canMergeWith()
74 FilterRepresentation representation = filters.elementAt(i); in buildSteps() local
75 if (step.canMergeWith(representation)) { in buildSteps()
76 step.add(representation.copy()); in buildSteps()
80 step.add(representation.copy()); in buildSteps()
97 for (FilterRepresentation representation : representations) { in apply()
98 if (representation.getFilterType() != FilterRepresentation.TYPE_GEOMETRY) { in apply()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterRepresentation.java57 FilterRepresentation representation = new FilterRepresentation(mName); in copy() local
58 representation.useParametersFrom(this); in copy()
59 return representation; in copy()
62 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument
63 representation.setName(getName()); in copyAllParameters()
64 representation.setFilterClass(getFilterClass()); in copyAllParameters()
65 representation.setFilterType(getFilterType()); in copyAllParameters()
66 representation.setSupportsPartialRendering(supportsPartialRendering()); in copyAllParameters()
67 representation.setTextId(getTextId()); in copyAllParameters()
68 representation.setEditorId(getEditorId()); in copyAllParameters()
[all …]
DFilterFxRepresentation.java47 FilterFxRepresentation representation = new FilterFxRepresentation(getName(),0,0); in copy() local
48 copyAllParameters(representation); in copy()
49 return representation; in copy()
53 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument
54 super.copyAllParameters(representation); in copyAllParameters()
55 representation.useParametersFrom(this); in copyAllParameters()
61 FilterFxRepresentation representation = (FilterFxRepresentation) a; in useParametersFrom() local
62 setName(representation.getName()); in useParametersFrom()
63 setSerializationName(representation.getSerializationName()); in useParametersFrom()
64 setBitmapResource(representation.getBitmapResource()); in useParametersFrom()
[all …]
DFilterImageBorderRepresentation.java41 FilterImageBorderRepresentation representation = in copy() local
43 copyAllParameters(representation); in copy()
44 return representation; in copy()
48 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument
49 super.copyAllParameters(representation); in copyAllParameters()
50 representation.useParametersFrom(this); in copyAllParameters()
55 FilterImageBorderRepresentation representation = (FilterImageBorderRepresentation) a; in useParametersFrom() local
56 setName(representation.getName()); in useParametersFrom()
57 setDrawableResource(representation.getDrawableResource()); in useParametersFrom()
62 public boolean equals(FilterRepresentation representation) { in equals() argument
[all …]
DFilterBasicRepresentation.java52 FilterBasicRepresentation representation = new FilterBasicRepresentation(getName(),0,0,0); in copy() local
53 copyAllParameters(representation); in copy()
54 return representation; in copy()
58 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument
59 super.copyAllParameters(representation); in copyAllParameters()
60 representation.useParametersFrom(this); in copyAllParameters()
66 FilterBasicRepresentation representation = (FilterBasicRepresentation) a; in useParametersFrom() local
67 setMinimum(representation.getMinimum()); in useParametersFrom()
68 setMaximum(representation.getMaximum()); in useParametersFrom()
69 setValue(representation.getValue()); in useParametersFrom()
[all …]
DFilterColorBorderRepresentation.java79 FilterColorBorderRepresentation representation = in copy() local
81 copyAllParameters(representation); in copy()
82 return representation; in copy()
86 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument
87 super.copyAllParameters(representation); in copyAllParameters()
88 representation.useParametersFrom(this); in copyAllParameters()
93 FilterColorBorderRepresentation representation = (FilterColorBorderRepresentation) a; in useParametersFrom() local
94 setName(representation.getName()); in useParametersFrom()
95 setColor(representation.getColor()); in useParametersFrom()
96 mParamColor.copyPalletFrom(representation.mParamColor); in useParametersFrom()
[all …]
DFilterTinyPlanetRepresentation.java42 FilterTinyPlanetRepresentation representation = new FilterTinyPlanetRepresentation(); in copy() local
43 copyAllParameters(representation); in copy()
44 return representation; in copy()
48 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument
49 super.copyAllParameters(representation); in copyAllParameters()
50 representation.useParametersFrom(this); in copyAllParameters()
55 FilterTinyPlanetRepresentation representation = (FilterTinyPlanetRepresentation) a; in useParametersFrom() local
57 mAngle = representation.mAngle; in useParametersFrom()
58 setZoom(representation.getZoom()); in useParametersFrom()
82 public boolean equals(FilterRepresentation representation) { in equals() argument
[all …]
DImageFilterWBalance.java33 FilterRepresentation representation = new FilterDirectRepresentation("WBalance"); in getDefaultRepresentation() local
34 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
35 representation.setFilterClass(ImageFilterWBalance.class); in getDefaultRepresentation()
36 representation.setFilterType(FilterRepresentation.TYPE_WBALANCE); in getDefaultRepresentation()
37 representation.setTextId(R.string.wbalance); in getDefaultRepresentation()
38 representation.setShowParameterValue(false); in getDefaultRepresentation()
39 representation.setEditorId(ImageOnlyEditor.ID); in getDefaultRepresentation()
40 representation.setSupportsPartialRendering(true); in getDefaultRepresentation()
41 representation.setIsBooleanFilter(true); in getDefaultRepresentation()
42 return representation; in getDefaultRepresentation()
[all …]
DImageFilterKMeans.java35 …FilterBasicRepresentation representation = (FilterBasicRepresentation) super.getDefaultRepresentat… in getDefaultRepresentation() local
36 representation.setName("KMeans"); in getDefaultRepresentation()
37 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
38 representation.setFilterClass(ImageFilterKMeans.class); in getDefaultRepresentation()
39 representation.setMaximum(20); in getDefaultRepresentation()
40 representation.setMinimum(2); in getDefaultRepresentation()
41 representation.setValue(4); in getDefaultRepresentation()
42 representation.setDefaultValue(4); in getDefaultRepresentation()
43 representation.setPreviewValue(4); in getDefaultRepresentation()
44 representation.setTextId(R.string.kmeans); in getDefaultRepresentation()
[all …]
DImageFilterDownsample.java38 …FilterBasicRepresentation representation = (FilterBasicRepresentation) super.getDefaultRepresentat… in getDefaultRepresentation() local
39 representation.setName("Downsample"); in getDefaultRepresentation()
40 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
42 representation.setFilterClass(ImageFilterDownsample.class); in getDefaultRepresentation()
43 representation.setMaximum(100); in getDefaultRepresentation()
44 representation.setMinimum(1); in getDefaultRepresentation()
45 representation.setValue(50); in getDefaultRepresentation()
46 representation.setDefaultValue(50); in getDefaultRepresentation()
47 representation.setPreviewValue(3); in getDefaultRepresentation()
48 representation.setTextId(R.string.downsample); in getDefaultRepresentation()
[all …]
DImageFilterShadows.java31 FilterBasicRepresentation representation = in getDefaultRepresentation() local
33 representation.setName("Shadows"); in getDefaultRepresentation()
34 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
35 representation.setFilterClass(ImageFilterShadows.class); in getDefaultRepresentation()
36 representation.setTextId(R.string.shadow_recovery); in getDefaultRepresentation()
37 representation.setMinimum(-100); in getDefaultRepresentation()
38 representation.setMaximum(100); in getDefaultRepresentation()
39 representation.setDefaultValue(0); in getDefaultRepresentation()
40 representation.setSupportsPartialRendering(true); in getDefaultRepresentation()
41 return representation; in getDefaultRepresentation()
DImageFilterVibrance.java30 FilterBasicRepresentation representation = in getDefaultRepresentation() local
32 representation.setName("Vibrance"); in getDefaultRepresentation()
33 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
34 representation.setFilterClass(ImageFilterVibrance.class); in getDefaultRepresentation()
35 representation.setTextId(R.string.vibrance); in getDefaultRepresentation()
36 representation.setMinimum(-100); in getDefaultRepresentation()
37 representation.setMaximum(100); in getDefaultRepresentation()
38 representation.setDefaultValue(0); in getDefaultRepresentation()
39 representation.setSupportsPartialRendering(true); in getDefaultRepresentation()
40 return representation; in getDefaultRepresentation()
DImageFilterNegative.java15 FilterRepresentation representation = new FilterDirectRepresentation("Negative"); in getDefaultRepresentation() local
16 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
17 representation.setFilterClass(ImageFilterNegative.class); in getDefaultRepresentation()
18 representation.setTextId(R.string.negative); in getDefaultRepresentation()
19 representation.setShowParameterValue(false); in getDefaultRepresentation()
20 representation.setEditorId(ImageOnlyEditor.ID); in getDefaultRepresentation()
21 representation.setSupportsPartialRendering(true); in getDefaultRepresentation()
22 representation.setIsBooleanFilter(true); in getDefaultRepresentation()
23 return representation; in getDefaultRepresentation()
29 public void useRepresentation(FilterRepresentation representation) { in useRepresentation() argument
DImageFilterContrast.java31 FilterBasicRepresentation representation = in getDefaultRepresentation() local
33 representation.setName("Contrast"); in getDefaultRepresentation()
34 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
36 representation.setFilterClass(ImageFilterContrast.class); in getDefaultRepresentation()
37 representation.setTextId(R.string.contrast); in getDefaultRepresentation()
38 representation.setMinimum(-100); in getDefaultRepresentation()
39 representation.setMaximum(100); in getDefaultRepresentation()
40 representation.setDefaultValue(0); in getDefaultRepresentation()
41 representation.setSupportsPartialRendering(true); in getDefaultRepresentation()
42 return representation; in getDefaultRepresentation()
DImageFilterExposure.java30 FilterBasicRepresentation representation = in getDefaultRepresentation() local
32 representation.setName("Exposure"); in getDefaultRepresentation()
33 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
34 representation.setFilterClass(ImageFilterExposure.class); in getDefaultRepresentation()
35 representation.setTextId(R.string.exposure); in getDefaultRepresentation()
36 representation.setMinimum(-100); in getDefaultRepresentation()
37 representation.setMaximum(100); in getDefaultRepresentation()
38 representation.setDefaultValue(0); in getDefaultRepresentation()
39 representation.setSupportsPartialRendering(true); in getDefaultRepresentation()
40 return representation; in getDefaultRepresentation()
DImageFilterSaturated.java31 FilterBasicRepresentation representation = in getDefaultRepresentation() local
33 representation.setName("Saturated"); in getDefaultRepresentation()
34 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
35 representation.setFilterClass(ImageFilterSaturated.class); in getDefaultRepresentation()
36 representation.setTextId(R.string.saturation); in getDefaultRepresentation()
37 representation.setMinimum(-100); in getDefaultRepresentation()
38 representation.setMaximum(100); in getDefaultRepresentation()
39 representation.setDefaultValue(0); in getDefaultRepresentation()
40 representation.setSupportsPartialRendering(true); in getDefaultRepresentation()
41 return representation; in getDefaultRepresentation()
DImageFilterHue.java34 FilterBasicRepresentation representation = in getDefaultRepresentation() local
36 representation.setName("Hue"); in getDefaultRepresentation()
37 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
38 representation.setFilterClass(ImageFilterHue.class); in getDefaultRepresentation()
39 representation.setMinimum(-180); in getDefaultRepresentation()
40 representation.setMaximum(180); in getDefaultRepresentation()
41 representation.setTextId(R.string.hue); in getDefaultRepresentation()
42 representation.setEditorId(BasicEditor.ID); in getDefaultRepresentation()
43 representation.setSupportsPartialRendering(true); in getDefaultRepresentation()
44 return representation; in getDefaultRepresentation()
DImageFilterHighlights.java35 FilterBasicRepresentation representation = in getDefaultRepresentation() local
37 representation.setName("Highlights"); in getDefaultRepresentation()
38 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
39 representation.setFilterClass(ImageFilterHighlights.class); in getDefaultRepresentation()
40 representation.setTextId(R.string.highlight_recovery); in getDefaultRepresentation()
41 representation.setMinimum(-100); in getDefaultRepresentation()
42 representation.setMaximum(100); in getDefaultRepresentation()
43 representation.setDefaultValue(0); in getDefaultRepresentation()
44 representation.setSupportsPartialRendering(true); in getDefaultRepresentation()
45 return representation; in getDefaultRepresentation()
DFilterCurvesRepresentation.java37 FilterCurvesRepresentation representation = new FilterCurvesRepresentation(); in copy() local
38 copyAllParameters(representation); in copy()
39 return representation; in copy()
43 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument
44 super.copyAllParameters(representation); in copyAllParameters()
45 representation.useParametersFrom(this); in copyAllParameters()
54 FilterCurvesRepresentation representation = (FilterCurvesRepresentation) a; in useParametersFrom() local
57 Spline sp = representation.mSplines[i]; in useParametersFrom()
78 public boolean equals(FilterRepresentation representation) { in equals() argument
79 if (!super.equals(representation)) { in equals()
[all …]
DImageFilterBwFilter.java33 …FilterBasicRepresentation representation = (FilterBasicRepresentation) super.getDefaultRepresentat… in getDefaultRepresentation() local
34 representation.setName("BW Filter"); in getDefaultRepresentation()
35 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
37 representation.setFilterClass(ImageFilterBwFilter.class); in getDefaultRepresentation()
38 representation.setMaximum(180); in getDefaultRepresentation()
39 representation.setMinimum(-180); in getDefaultRepresentation()
40 representation.setTextId(R.string.bwfilter); in getDefaultRepresentation()
41 representation.setSupportsPartialRendering(true); in getDefaultRepresentation()
42 return representation; in getDefaultRepresentation()
DFilterDrawRepresentation.java188 FilterDrawRepresentation representation = new FilterDrawRepresentation(); in copy() local
189 copyAllParameters(representation); in copy()
190 return representation; in copy()
194 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument
195 super.copyAllParameters(representation); in copyAllParameters()
196 representation.useParametersFrom(this); in copyAllParameters()
207 FilterDrawRepresentation representation = (FilterDrawRepresentation) a; in useParametersFrom() local
208 mParamColor.copyPalletFrom(representation.mParamColor); in useParametersFrom()
210 if (representation.mCurrent != null) { in useParametersFrom()
211 mCurrent = (StrokeData) representation.mCurrent.clone(); in useParametersFrom()
[all …]
DImageFilterEdge.java30 FilterRepresentation representation = super.getDefaultRepresentation(); in getDefaultRepresentation() local
31 representation.setName("Edge"); in getDefaultRepresentation()
32 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation()
33 representation.setFilterClass(ImageFilterEdge.class); in getDefaultRepresentation()
34 representation.setTextId(R.string.edge); in getDefaultRepresentation()
35 representation.setSupportsPartialRendering(true); in getDefaultRepresentation()
36 return representation; in getDefaultRepresentation()
DFilterDirectRepresentation.java23 FilterDirectRepresentation representation = new FilterDirectRepresentation(getName()); in copy() local
24 copyAllParameters(representation); in copy()
25 return representation; in copy()
29 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument
30 super.copyAllParameters(representation); in copyAllParameters()
31 representation.useParametersFrom(this); in copyAllParameters()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java300 public void loadEditorPanel(FilterRepresentation representation, in loadEditorPanel() argument
302 if (representation.getEditorId() == ImageOnlyEditor.ID) { in loadEditorPanel()
463 for (FilterRepresentation representation : filtersRepresentations) { in fillEffects()
464 if (representation.getTextId() != 0) { in fillEffects()
465 representation.setName(getString(representation.getTextId())); in fillEffects()
467 mCategoryFiltersAdapter.add(new Action(this, representation)); in fillEffects()
479 for (FilterRepresentation representation : filtersRepresentations) { in fillTools()
480 mCategoryGeometryAdapter.add(new Action(this, representation)); in fillTools()
481 if (representation instanceof FilterDrawRepresentation) { in fillTools()
486 FilterRepresentation representation = new FilterDrawRepresentation(); in fillTools() local
[all …]

123