Home
last modified time | relevance | path

Searched refs:preset (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DCachingPipeline.java163 private void setupEnvironment(ImagePreset preset, boolean highResPreview) { in setupEnvironment() argument
173 mEnvironment.setImagePreset(preset); in setupEnvironment()
180 ImagePreset preset = PrimaryImage.getImage().getPreset(); in setOriginal() local
181 setupEnvironment(preset, false); in setOriginal()
182 updateOriginalAllocation(preset); in setOriginal()
185 private synchronized boolean updateOriginalAllocation(ImagePreset preset) { in updateOriginalAllocation() argument
186 if (preset == null) { in updateOriginalAllocation()
205 mResizedOriginalBitmap = preset.applyGeometry(originalBitmap, mEnvironment); in updateOriginalAllocation()
220 ImagePreset preset = request.getImagePreset(); in renderHighres() local
221 setupEnvironment(preset, false); in renderHighres()
[all …]
DImagePreset.java216 public boolean same(ImagePreset preset) { in same() argument
217 if (preset == null) { in same()
221 if (preset.mFilters.size() != mFilters.size()) { in same()
225 if (mDoApplyGeometry != preset.mDoApplyGeometry) { in same()
229 if (mDoApplyFilters != preset.mDoApplyFilters) { in same()
230 if (mFilters.size() > 0 || preset.mFilters.size() > 0) { in same()
235 if (mDoApplyFilters && preset.mDoApplyFilters) { in same()
236 for (int i = 0; i < preset.mFilters.size(); i++) { in same()
237 FilterRepresentation a = preset.mFilters.elementAt(i); in same()
249 public boolean equals(ImagePreset preset) { in equals() argument
[all …]
DRenderingRequest.java50 public static void post(Context context, Bitmap source, ImagePreset preset, in post() argument
52 RenderingRequest.post(context, source, preset, type, caller, null, null); in post()
55 public static void post(Context context, Bitmap source, ImagePreset preset, int type, in post() argument
59 || preset == null || caller == null) { in post()
61 + " or preset: " + preset + " or caller: " + caller); in post()
71 bitmap = pipeline.renderGeometryIcon(source, preset); in post()
79 ImagePreset passedPreset = new ImagePreset(preset); in post()
80 request.setOriginalImagePreset(preset); in post()
96 ImagePreset preset, in postIconRequest() argument
98 if (preset == null || caller == null) { in postIconRequest()
[all …]
DProcessingService.java94 public void postHighresRenderingRequest(ImagePreset preset, float scaleFactor, in postHighresRenderingRequest() argument
98 ImagePreset passedPreset = new ImagePreset(preset); in postHighresRenderingRequest()
99 request.setOriginalImagePreset(preset); in postHighresRenderingRequest()
107 public void postFullresRenderingRequest(ImagePreset preset, float scaleFactor, in postFullresRenderingRequest() argument
111 ImagePreset passedPreset = new ImagePreset(preset); in postFullresRenderingRequest()
112 request.setOriginalImagePreset(preset); in postFullresRenderingRequest()
143 public static Intent getSaveIntent(Context context, ImagePreset preset, File destination, in getSaveIntent() argument
157 preset.getJsonString(ImagePreset.JASON_SAVED)); in getSaveIntent()
212 ImagePreset preset = new ImagePreset(); in onStartCommand() local
213 preset.readJsonFromString(presetJson); in onStartCommand()
[all …]
DImageSavingTask.java36 ImagePreset preset; field in ImageSavingTask.SaveRequest
68 File destinationFile, ImagePreset preset, in saveImage() argument
75 request.preset = preset; in saveImage()
90 ImagePreset preset = request.preset; in doInBackground() local
96 updateBitmap.bitmap = createNotificationBitmap(previewImage, sourceUri, preset); in doInBackground()
117 Uri uri = saveImage.processAndSaveImage(preset, flatten, in doInBackground()
148 private Bitmap createNotificationBitmap(Bitmap preview, Uri sourceUri, ImagePreset preset) { in createNotificationBitmap() argument
158 return pipeline.renderFinalImage(bitmap, preset); in createNotificationBitmap()
DSharedPreset.java26 public synchronized void enqueuePreset(ImagePreset preset) { in enqueuePreset() argument
27 if (mProducerPreset == null || (!mProducerPreset.same(preset))) { in enqueuePreset()
28 mProducerPreset = new ImagePreset(preset); in enqueuePreset()
30 mProducerPreset.updateWith(preset); in enqueuePreset()
DBuffer.java82 public void setPreset(ImagePreset preset) { in setPreset() argument
83 if ((mPreset == null) || (!mPreset.same(preset))) { in setPreset()
84 mPreset = new ImagePreset(preset); in setPreset()
86 mPreset.updateWith(preset); in setPreset()
DUpdatePreviewTask.java58 SharedPreset preset = PrimaryImage.getImage().getPreviewPreset(); in doInBackground() local
59 ImagePreset renderingPreset = preset.dequeuePreset(); in doInBackground()
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java227 for (short preset = 0; preset < mEQNumPresets; preset++) { in initEffectsPreferences()
228 mEQPresetNames[preset] = equalizerEffect.getPresetName(preset); in initEffectsPreferences()
229 equalizerEffect.usePreset(preset); in initEffectsPreferences()
231 mEQPresetOpenSLESBandLevel[preset][band] = equalizerEffect in initEffectsPreferences()
257 for (short preset = 0; preset < mEQNumPresets; preset++) { in initEffectsPreferences()
259 mEQPresetNames[preset] = prefs.getString( in initEffectsPreferences()
260 Key.eq_preset_name.toString() + preset, in initEffectsPreferences()
261 EQUALIZER_PRESET_NAME_DEFAULT + preset); in initEffectsPreferences()
262 mEQPresetOpenSLESBandLevel[preset] = Arrays.copyOf( in initEffectsPreferences()
305 for (short preset = 0; preset < mEQNumPresets; preset++) { in initEffectsPreferences()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java221 public Object getPanoramaXMPData(Uri source, ImagePreset preset) { in getPanoramaXMPData() argument
223 if (preset.isPanoramaSafe()) { in getPanoramaXMPData()
288 private Uri resetToOriginalImageIfNeeded(ImagePreset preset, boolean doAuxBackup) { in resetToOriginalImageIfNeeded() argument
290 if (!preset.hasModifications()) { in resetToOriginalImageIfNeeded()
328 public Uri processAndSaveImage(ImagePreset preset, boolean flatten, in processAndSaveImage() argument
333 uri = resetToOriginalImageIfNeeded(preset, !flatten); in processAndSaveImage()
356 Object xmp = getPanoramaXMPData(newSourceUri, preset); in processAndSaveImage()
368 Object xmp = getPanoramaXMPData(newSourceUri, preset); in processAndSaveImage()
378 mDestinationFile, preset); in processAndSaveImage()
415 bitmap = pipeline.renderFinalImage(bitmap, preset); in processAndSaveImage()
[all …]
DXmpPresets.java47 public ImagePreset preset; field in XmpPresets.XMresults
61 Context context, Uri srcUri, File dstFile, ImagePreset preset) { in writeFilterXMP() argument
80 XMP_FILTERSTACK, preset.getJsonString(ImagePreset.JASON_SAVED)); in writeFilterXMP()
120 ret.preset = new ImagePreset(); in extractXMPData()
122 boolean ok = ret.preset.readJsonFromString(filterString); in extractXMPData()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DCategoryAdapter.java197 public void reflectImagePreset(ImagePreset preset) { in reflectImagePreset() argument
198 if (preset == null) { in reflectImagePreset()
204 int pos = preset.getPositionForType(FilterRepresentation.TYPE_FX); in reflectImagePreset()
206 rep = preset.getFilterRepresentation(pos); in reflectImagePreset()
209 int pos = preset.getPositionForType(FilterRepresentation.TYPE_BORDER); in reflectImagePreset()
211 rep = preset.getFilterRepresentation(pos); in reflectImagePreset()
DAction.java155 ImagePreset preset = new ImagePreset(); in postNewIconRenderRequest() local
156 preset.addFilter(mRepresentation); in postNewIconRenderRequest()
157 RenderingRequest.postIconRequest(mContext, w, h, preset, this); in postNewIconRenderRequest()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/history/
DHistoryManager.java129 public void addHistoryItem(HistoryItem preset) { in addHistoryItem() argument
130 insert(preset, 0); in addHistoryItem()
134 private void insert(HistoryItem preset, int position) { in insert() argument
148 mHistoryItems.insertElementAt(preset, position); in insert()
DHistoryItem.java30 public HistoryItem(ImagePreset preset, FilterRepresentation representation) { in HistoryItem() argument
31 mImagePreset = preset; // just keep a pointer to the current preset in HistoryItem()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DBaseFiltersManager.java97 public void freeFilterResources(ImagePreset preset) { in freeFilterResources() argument
98 if (preset == null) { in freeFilterResources()
101 Vector<ImageFilter> usedFilters = preset.getUsedFilters(this); in freeFilterResources()
266 ImagePreset preset = new ImagePreset(); in addLooks() local
267 preset.addFilter(fx); in addLooks()
269 context.getString(fxNameid[i]), preset, -1); in addLooks()
DFilterUserPresetRepresentation.java27 public FilterUserPresetRepresentation(String name, ImagePreset preset, int id) { in FilterUserPresetRepresentation() argument
32 mPreset = preset; in FilterUserPresetRepresentation()
DImageFilterTinyPlanet.java80 ImagePreset preset = getEnvironment().getImagePreset(); in apply() local
82 if (preset != null) { in apply()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditor.java197 ImagePreset preset = PrimaryImage.getImage().getPreset(); in getLocalRepresentation() local
200 mLocalRepresentation = preset.getFilterRepresentationCopyFrom(filterRepresentation); in getLocalRepresentation()
234 ImagePreset preset = PrimaryImage.getImage().getPreset(); in commitLocalRepresentation() local
235 preset.updateFilterRepresentations(reps); in commitLocalRepresentation()
245 preset.fillImageStateAdapter(PrimaryImage.getImage().getState()); in commitLocalRepresentation()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackSource.java149 ImagePreset preset = new ImagePreset(); in getAllUserPresets() local
150 preset.readJsonFromString(json); in getAllUserPresets()
152 new FilterUserPresetRepresentation(name, preset, id); in getAllUserPresets()
DUserPresetsManager.java89 public void save(ImagePreset preset, String name) { in save() argument
92 op.json = preset.getJsonString(ImagePreset.JASON_SAVED); in save()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java669 ImagePreset preset = PrimaryImage.getImage().getPreset(); in showRepresentation() local
670 if (preset.getRepresentation(representation) != null) { in showRepresentation()
672 ImagePreset copy = new ImagePreset(preset); in showRepresentation()
706 ImagePreset preset = mPrimaryImage.getPreset(); in updateCategories() local
707 mCategoryLooksAdapter.reflectImagePreset(preset); in updateCategories()
708 mCategoryBordersAdapter.reflectImagePreset(preset); in updateCategories()
1198 ImagePreset preset = new ImagePreset(); // empty in setDefaultPreset() local
1199 mPrimaryImage.setPreset(preset, preset.getLastRepresentation(), true); in setDefaultPreset()
1426 mOriginalPreset = res.preset; in extractXMPData()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DPrimaryImage.java254 public synchronized void setPreset(ImagePreset preset, in setPreset() argument
258 preset.showFilters(); in setPreset()
260 mPreset = preset; in setPreset()
817 public void setLoadedPreset(ImagePreset preset) { in setLoadedPreset() argument
818 mLoadedPreset = preset; in setLoadedPreset()
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DPresetSettingsListener.java37 final String preset = sharedPreferences.getString(key, "standard"); in onSharedPreferenceChanged() local
40 switch (preset) { in onSharedPreferenceChanged()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStateView.java329 ImagePreset preset = image != null ? image.getCurrentPreset() : null; in onTouchEvent() local
331 && image != null && preset != null in onTouchEvent()
333 && preset.getRepresentation(representation) != null) { in onTouchEvent()

12