Home
last modified time | relevance | path

Searched refs:rep (Results 1 – 25 of 54) sorted by relevance

123

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DBaseFiltersManager.java52 FilterRepresentation rep = in init() local
54 if (rep != null) { in init()
55 addRepresentation(rep); in init()
66 public void addRepresentation(FilterRepresentation rep) { in addRepresentation() argument
67 mRepresentationLookup.put(rep.getSerializationName(), rep); in addRepresentation() local
167 FilterRepresentation rep = new FilterImageBorderRepresentation(0); in addBorders() local
168 mBorders.add(rep); in addBorders()
174 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_4x5); in addBorders()
175 borderList.add(rep); in addBorders()
177 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_brush); in addBorders()
[all …]
DFilterTinyPlanetRepresentation.java102 public void deSerializeRepresentation(String[][] rep) { in deSerializeRepresentation() argument
103 super.deSerializeRepresentation(rep); in deSerializeRepresentation()
104 for (int i = 0; i < rep.length; i++) { in deSerializeRepresentation()
105 if (SERIAL_VALUE.equals(rep[i][0])) { in deSerializeRepresentation()
106 setValue(Integer.parseInt(rep[i][1])); in deSerializeRepresentation()
107 } else if (SERIAL_ANGLE.equals(rep[i][0])) { in deSerializeRepresentation()
108 setAngle(Float.parseFloat(rep[i][1])); in deSerializeRepresentation()
DFilterRepresentation.java229 String[][] rep = serializeRepresentation(); in serializeRepresentation() local
230 for (int k = 0; k < rep.length; k++) { in serializeRepresentation()
231 writer.name(rep[k][0]); in serializeRepresentation()
232 writer.value(rep[k][1]); in serializeRepresentation()
259 public void deSerializeRepresentation(String[][] rep) { in deSerializeRepresentation() argument
260 for (int i = 0; i < rep.length; i++) { in deSerializeRepresentation()
261 if (NAME_TAG.equals(rep[i][0])) { in deSerializeRepresentation()
262 mName = rep[i][1]; in deSerializeRepresentation()
DFilterBasicRepresentation.java187 public void deSerializeRepresentation(String[][] rep) { in deSerializeRepresentation() argument
188 super.deSerializeRepresentation(rep); in deSerializeRepresentation()
189 for (int i = 0; i < rep.length; i++) { in deSerializeRepresentation()
190 if (SERIAL_VALUE.equals(rep[i][0])) { in deSerializeRepresentation()
191 mValue = Integer.parseInt(rep[i][1]); in deSerializeRepresentation()
DFilterStraightenRepresentation.java63 public boolean equals(FilterRepresentation rep) { in equals() argument
64 if (!(rep instanceof FilterStraightenRepresentation)) { in equals()
67 FilterStraightenRepresentation straighten = (FilterStraightenRepresentation) rep; in equals()
DFilterRotateRepresentation.java161 public boolean equals(FilterRepresentation rep) { in equals() argument
162 if (!(rep instanceof FilterRotateRepresentation)) { in equals()
165 FilterRotateRepresentation rotate = (FilterRotateRepresentation) rep; in equals()
DFilterMirrorRepresentation.java90 public boolean equals(FilterRepresentation rep) { in equals() argument
91 if (!(rep instanceof FilterMirrorRepresentation)) { in equals()
94 FilterMirrorRepresentation mirror = (FilterMirrorRepresentation) rep; in equals()
DFilterCropRepresentation.java63 public boolean equals(FilterRepresentation rep) { in equals() argument
64 if (!(rep instanceof FilterCropRepresentation)) { in equals()
67 FilterCropRepresentation crop = (FilterCropRepresentation) rep; in equals()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DBasicEditor.java69 FilterBasicRepresentation rep = getBasicRepresentation(); in getMaximum() local
70 if (rep == null) { in getMaximum()
73 return rep.getMaximum(); in getMaximum()
78 FilterBasicRepresentation rep = getBasicRepresentation(); in getMinimum() local
79 if (rep == null) { in getMinimum()
82 return rep.getMinimum(); in getMinimum()
92 FilterBasicRepresentation rep = getBasicRepresentation(); in getValue() local
93 if (rep == null) { in getValue()
96 return rep.getValue(); in getValue()
106 FilterBasicRepresentation rep = getBasicRepresentation(); in setValue() local
[all …]
DEditorColorBorder.java66 FilterColorBorderRepresentation rep = getColorBorderRep(); in calculateUserMessage() local
67 if (rep == null) { in calculateUserMessage()
74 String val = rep.getValueString(); in calculateUserMessage()
87 FilterRepresentation rep = getLocalRepresentation(); in reflectCurrentFilter() local
88 if (rep != null && getLocalRepresentation() instanceof FilterColorBorderRepresentation) { in reflectCurrentFilter()
146 FilterColorBorderRepresentation rep = getColorBorderRep(); in selectMenuItem() local
147 if (rep == null) { in selectMenuItem()
155 rep.setPramMode(FilterColorBorderRepresentation.PARAM_SIZE); in selectMenuItem()
158 rep.setPramMode(FilterColorBorderRepresentation.PARAM_RADIUS); in selectMenuItem()
161 rep.setPramMode(FilterColorBorderRepresentation.PARAM_COLOR); in selectMenuItem()
[all …]
DEditorDraw.java89 FilterDrawRepresentation rep = getDrawRep(); in calculateUserMessage() local
94 if (rep == null) { in calculateUserMessage()
104 String val = rep.getValueString(); in calculateUserMessage()
121 FilterRepresentation rep = getLocalRepresentation(); in reflectCurrentFilter() local
122 if (rep != null && getLocalRepresentation() instanceof FilterDrawRepresentation) { in reflectCurrentFilter()
201 FilterDrawRepresentation rep = getDrawRep(); in selectMenuItem() local
202 if (rep == null) { in selectMenuItem()
211 rep.setPramMode(FilterDrawRepresentation.PARAM_SIZE); in selectMenuItem()
214 rep.setPramMode(FilterDrawRepresentation.PARAM_STYLE); in selectMenuItem()
217 rep.setPramMode(FilterDrawRepresentation.PARAM_COLOR); in selectMenuItem()
[all …]
DEditorTinyPlanet.java46 FilterRepresentation rep = getLocalRepresentation(); in reflectCurrentFilter() local
47 if (rep != null && rep instanceof FilterTinyPlanetRepresentation) { in reflectCurrentFilter()
48 FilterTinyPlanetRepresentation drawRep = (FilterTinyPlanetRepresentation) rep; in reflectCurrentFilter()
DEditorMirror.java59 FilterRepresentation rep = getLocalRepresentation(); in reflectCurrentFilter() local
60 if (rep == null || rep instanceof FilterMirrorRepresentation) { in reflectCurrentFilter()
61 mImageMirror.setFilterMirrorRepresentation((FilterMirrorRepresentation) rep); in reflectCurrentFilter()
DEditorStraighten.java63 FilterRepresentation rep = getLocalRepresentation(); in reflectCurrentFilter() local
64 if (rep == null || rep instanceof FilterStraightenRepresentation) { in reflectCurrentFilter()
66 .setFilterStraightenRepresentation((FilterStraightenRepresentation) rep); in reflectCurrentFilter()
DEditorRotate.java59 FilterRepresentation rep = getLocalRepresentation(); in reflectCurrentFilter() local
60 if (rep == null || rep instanceof FilterRotateRepresentation) { in reflectCurrentFilter()
61 mImageRotate.setFilterRotateRepresentation((FilterRotateRepresentation) rep); in reflectCurrentFilter()
DParametricEditor.java157 protected Parameter getParameterToEdit(FilterRepresentation rep) { in getParameterToEdit() argument
160 } else if (rep instanceof Parameter) { in getParameterToEdit()
161 return ((Parameter) rep); in getParameterToEdit()
170 FilterRepresentation rep = getLocalRepresentation(); in setUtilityPanelUI() local
171 Parameter param = getParameterToEdit(rep); in setUtilityPanelUI()
DEditorRedEye.java53 FilterRepresentation rep = getLocalRepresentation(); in reflectCurrentFilter() local
54 if (rep != null && getLocalRepresentation() instanceof FilterRedEyeRepresentation) { in reflectCurrentFilter()
55 FilterRedEyeRepresentation redEyeRep = (FilterRedEyeRepresentation) rep; in reflectCurrentFilter()
DEditorCrop.java90 FilterRepresentation rep = getLocalRepresentation(); in reflectCurrentFilter() local
91 if (rep == null || rep instanceof FilterCropRepresentation) { in reflectCurrentFilter()
92 mImageCrop.setFilterCropRepresentation((FilterCropRepresentation) rep); in reflectCurrentFilter()
DEditorCurves.java57 FilterRepresentation rep = getLocalRepresentation(); in reflectCurrentFilter() local
58 if (rep != null && getLocalRepresentation() instanceof FilterCurvesRepresentation) { in reflectCurrentFilter()
59 FilterCurvesRepresentation drawRep = (FilterCurvesRepresentation) rep; in reflectCurrentFilter()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DUserPresetsAdapter.java64 FilterRepresentation rep = action.getRepresentation(); in deletePreset() local
65 if (rep instanceof FilterUserPresetRepresentation) { in deletePreset()
66 mDeletedRepresentations.add((FilterUserPresetRepresentation) rep); in deletePreset()
73 FilterRepresentation rep = action.getRepresentation(); in changePreset() local
74 rep.setName(action.getName()); in changePreset()
75 if (rep instanceof FilterUserPresetRepresentation) { in changePreset()
76 mChangedRepresentations.add((FilterUserPresetRepresentation) rep); in changePreset()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DImagePreset.java153 public void updateOrAddFilterRepresentation(FilterRepresentation rep) { in updateOrAddFilterRepresentation() argument
154 int pos = getPositionForRepresentation(rep); in updateOrAddFilterRepresentation()
156 mFilters.elementAt(pos).useParametersFrom(rep); in updateOrAddFilterRepresentation()
158 addFilter(rep.copy()); in updateOrAddFilterRepresentation()
352 FilterRepresentation rep = preset.getFilterRepresentationForType( in addFilter() local
354 addFilter(rep); in addFilter()
371 FilterRepresentation rep = mFilters.elementAt(index); in addFilter() local
372 if (rep.getFilterType() != FilterRepresentation.TYPE_GEOMETRY) { in addFilter()
406 FilterRepresentation rep = mFilters.elementAt(i); in addFilter() local
407 if (rep.getFilterType() == FilterRepresentation.TYPE_BORDER) { in addFilter()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java446 FilterMirrorRepresentation rep = in drawImageAndAnimate() local
456 if (rep.isHorizontal() && !rep.isVertical()) { in drawImageAndAnimate()
458 } else if (rep.isVertical() && !rep.isHorizontal()) { in drawImageAndAnimate()
460 } else if (rep.isHorizontal() && rep.isVertical()) { in drawImageAndAnimate()
466 if (rep.isHorizontal() && !rep.isVertical()) { in drawImageAndAnimate()
468 } else if (rep.isVertical() && !rep.isHorizontal()) { in drawImageAndAnimate()
470 } else if (rep.isHorizontal() && rep.isVertical()) { in drawImageAndAnimate()
DImageMirror.java43 public void setFilterMirrorRepresentation(FilterMirrorRepresentation rep) { in setFilterMirrorRepresentation() argument
44 mLocalRep = (rep == null) ? new FilterMirrorRepresentation() : rep; in setFilterMirrorRepresentation()
DImageRotate.java43 public void setFilterRotateRepresentation(FilterRotateRepresentation rep) { in setFilterRotateRepresentation() argument
44 mLocalRep = (rep == null) ? new FilterRotateRepresentation() : rep; in setFilterRotateRepresentation()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DCategoryAdapter.java202 FilterRepresentation rep = null; in reflectImagePreset() local
206 rep = preset.getFilterRepresentation(pos); in reflectImagePreset()
211 rep = preset.getFilterRepresentation(pos); in reflectImagePreset()
214 if (rep != null) { in reflectImagePreset()
220 if (rep.getName().equalsIgnoreCase( in reflectImagePreset()

123