Home
last modified time | relevance | path

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

123

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorGrad.java84 FilterGradRepresentation rep = (FilterGradRepresentation) tmpRep; in reflectCurrentFilter() local
85 boolean f = rep.showParameterValue(); in reflectCurrentFilter()
87 mImageGrad.setRepresentation(rep); in reflectCurrentFilter()
91 public void updateSeekBar(FilterGradRepresentation rep) { in updateSeekBar() argument
103 FilterGradRepresentation rep = (FilterGradRepresentation) tmpRep; in onProgressChanged() local
104 int min = rep.getParameterMin(mSliderMode); in onProgressChanged()
106 rep.setParameter(mSliderMode, value); in onProgressChanged()
131 private void updateMenuItems(FilterGradRepresentation rep) { in updateMenuItems() argument
132 int n = rep.getNumberOfBands(); in updateMenuItems()
179 FilterGradRepresentation rep = getGradRepresentation(); in updateParameters() local
[all …]
DEditorVignette.java87 FilterRepresentation rep = getLocalRepresentation(); in reflectCurrentFilter() local
88 if (rep != null && getLocalRepresentation() instanceof FilterVignetteRepresentation) { in reflectCurrentFilter()
89 FilterVignetteRepresentation drawRep = (FilterVignetteRepresentation) rep; in reflectCurrentFilter()
98 FilterVignetteRepresentation rep = in reflectCurrentFilter() local
123 BasicParameterInt p = (BasicParameterInt) rep.getFilterParameter(mode[i]); in reflectCurrentFilter()
130 mImageVignette.setRepresentation(rep); in reflectCurrentFilter()
131 String text = mContext.getString(rep.getTextId()).toUpperCase(); in reflectCurrentFilter()
141 FilterRepresentation rep = getLocalRepresentation(); in calculateUserMessage() local
142 if (rep == null || !(rep instanceof FilterVignetteRepresentation)) { in calculateUserMessage()
145 FilterVignetteRepresentation csrep = (FilterVignetteRepresentation) rep; in calculateUserMessage()
[all …]
DEditorChanSat.java83 FilterRepresentation rep = getLocalRepresentation(); in calculateUserMessage() local
84 if (rep == null || !(rep instanceof FilterChanSatRepresentation)) { in calculateUserMessage()
87 FilterChanSatRepresentation csrep = (FilterChanSatRepresentation) rep; in calculateUserMessage()
142 FilterChanSatRepresentation rep = in reflectCurrentFilter() local
144 int value = rep.getValue(FilterChanSatRepresentation.MODE_MASTER); in reflectCurrentFilter()
147 value = rep.getValue(FilterChanSatRepresentation.MODE_RED); in reflectCurrentFilter()
150 value = rep.getValue(FilterChanSatRepresentation.MODE_YELLOW); in reflectCurrentFilter()
153 value = rep.getValue(FilterChanSatRepresentation.MODE_GREEN); in reflectCurrentFilter()
156 value = rep.getValue(FilterChanSatRepresentation.MODE_CYAN); in reflectCurrentFilter()
159 value = rep.getValue(FilterChanSatRepresentation.MODE_BLUE); in reflectCurrentFilter()
[all …]
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/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
180 FilterRepresentation rep = new FilterImageBorderRepresentation(0); in addBorders() local
181 mBorders.add(rep); in addBorders()
187 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_4x5); in addBorders()
188 borderList.add(rep); in addBorders()
190 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_brush); in addBorders()
[all …]
DFilterVignetteRepresentation.java73 FilterVignetteRepresentation rep = (FilterVignetteRepresentation) a; in useParametersFrom() local
74 mCenterX = rep.mCenterX; in useParametersFrom()
75 mCenterY = rep.mCenterY; in useParametersFrom()
76 mRadiusX = rep.mRadiusX; in useParametersFrom()
77 mRadiusY = rep.mRadiusY; in useParametersFrom()
78 mParamVignette.setValue(rep.mParamVignette.getValue()); in useParametersFrom()
79 mParamExposure.setValue(rep.mParamExposure.getValue()); in useParametersFrom()
80 mParamSaturation.setValue(rep.mParamSaturation.getValue()); in useParametersFrom()
81 mParamContrast.setValue(rep.mParamContrast.getValue()); in useParametersFrom()
82 mParamFalloff.setValue(rep.mParamFalloff.getValue()); in useParametersFrom()
[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()
DFilterGradRepresentation.java127 FilterGradRepresentation rep = (FilterGradRepresentation) a; in useParametersFrom() local
129 int n = (rep.mCurrentBand == null) ? 0 : rep.mBands.indexOf(rep.mCurrentBand); in useParametersFrom()
130 for (Band band : rep.mBands) { in useParametersFrom()
154 FilterGradRepresentation rep = (FilterGradRepresentation) representation; in equals() local
156 if (rep.getNumberOfBands() != n) { in equals()
161 Band b2 = rep.mBands.get(i); in equals()
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()
/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.java445 FilterMirrorRepresentation rep = in drawImageAndAnimate() local
455 if (rep.isHorizontal() && !rep.isVertical()) { in drawImageAndAnimate()
457 } else if (rep.isVertical() && !rep.isHorizontal()) { in drawImageAndAnimate()
459 } else if (rep.isHorizontal() && rep.isVertical()) { in drawImageAndAnimate()
465 if (rep.isHorizontal() && !rep.isVertical()) { in drawImageAndAnimate()
467 } else if (rep.isVertical() && !rep.isHorizontal()) { in drawImageAndAnimate()
469 } else if (rep.isHorizontal() && rep.isVertical()) { in drawImageAndAnimate()
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