Home
last modified time | relevance | path

Searched refs:preset (Results 1 – 25 of 37) 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 = MasterImage.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 …]
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()
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 …]
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 = MasterImage.getImage().getPreviewPreset(); in doInBackground() local
59 ImagePreset renderingPreset = preset.dequeuePreset(); in doInBackground()
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DCarRadioManagerTest.java72 CarRadioPreset preset = in onPropertySet() local
74 mRadioPresets.put(valueList[0], preset); in onPropertySet()
93 CarRadioPreset preset = mRadioPresets.get(valueList[0]); in onPropertyGet()
98 preset.getPresetNumber(), in onPropertyGet()
99 preset.getBand(), in onPropertyGet()
100 preset.getChannel(), in onPropertyGet()
101 preset.getSubChannel()}, 0); in onPropertyGet()
160 CarRadioPreset preset = new CarRadioPreset(1, RadioManager.BAND_FM, 1234, -1); in testSetAndGetPreset() local
163 mCarRadioManager.setPreset(preset); in testSetAndGetPreset()
170 assertEquals(preset, mCarRadioManager.getPreset(1)); in testSetAndGetPreset()
[all …]
/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/services/Car/service/src/com/android/car/hal/
DRadioHalService.java190 public boolean setRadioPreset(CarRadioPreset preset) { in setRadioPreset() argument
192 Log.d(TAG, "setRadioPreset with config " + preset); in setRadioPreset()
195 if (!isValidPresetNumber(preset.getPresetNumber()) || in setRadioPreset()
196 !isValidBand(preset.getBand())) { in setRadioPreset()
204 .addInt32Values(preset.getPresetNumber()) in setRadioPreset()
205 .addInt32Values(preset.getBand()) in setRadioPreset()
206 .addInt32Values(preset.getChannel()) in setRadioPreset()
207 .addInt32Values(preset.getSubChannel()) in setRadioPreset()
264 CarRadioPreset preset = in createCarRadioEvent() local
266 CarRadioEvent event = new CarRadioEvent(CarRadioEvent.RADIO_PRESET, preset); in createCarRadioEvent()
/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/services/Car/car-lib/src/android/car/hardware/radio/
DCarRadioManager.java186 CarRadioPreset preset = mService.getPreset(presetNumber); in getPreset() local
187 return preset; in getPreset()
206 public boolean setPreset(CarRadioPreset preset) throws IllegalArgumentException, in setPreset() argument
209 return mService.setPreset(preset); in setPreset()
DCarRadioEvent.java77 public CarRadioEvent(int type, CarRadioPreset preset) { in CarRadioEvent() argument
79 mPreset = preset; in CarRadioEvent()
/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()
279 ImagePreset preset = new ImagePreset(); in addLooks() local
280 preset.addFilter(fx); in addLooks()
282 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()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditor.java197 ImagePreset preset = MasterImage.getImage().getPreset(); in getLocalRepresentation() local
199 mLocalRepresentation = preset.getFilterRepresentationCopyFrom(filterRepresentation); in getLocalRepresentation()
233 ImagePreset preset = MasterImage.getImage().getPreset(); in commitLocalRepresentation() local
234 preset.updateFilterRepresentations(reps); in commitLocalRepresentation()
244 preset.fillImageStateAdapter(MasterImage.getImage().getState()); in commitLocalRepresentation()
/packages/services/Car/service/src/com/android/car/
DCarRadioService.java178 public boolean setPreset(CarRadioPreset preset) { in setPreset() argument
181 Log.d(TAG, "setPreset " + preset); in setPreset()
183 boolean status = mRadioHal.setRadioPreset(preset); in setPreset()
/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()
/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()

12