Home
last modified time | relevance | path

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

12

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DCachingPipeline.java105 private void setupEnvironment(ImagePreset preset, boolean highResPreview) { in setupEnvironment() argument
115 mEnvironment.setImagePreset(preset); in setupEnvironment()
122 ImagePreset preset = PrimaryImage.getImage().getPreset(); in setOriginal() local
123 setupEnvironment(preset, false); in setOriginal()
124 updateOriginalAllocation(preset); in setOriginal()
127 private synchronized boolean updateOriginalAllocation(ImagePreset preset) { in updateOriginalAllocation() argument
128 if (preset == null) { in updateOriginalAllocation()
137 mResizedOriginalBitmap = preset.applyGeometry(originalBitmap, mEnvironment); in updateOriginalAllocation()
144 ImagePreset preset = request.getImagePreset(); in renderHighres() local
145 setupEnvironment(preset, false); in renderHighres()
[all …]
DImagePreset.java215 public boolean same(ImagePreset preset) { in same() argument
216 if (preset == null) { in same()
220 if (preset.mFilters.size() != mFilters.size()) { in same()
224 if (mDoApplyGeometry != preset.mDoApplyGeometry) { in same()
228 if (mDoApplyFilters != preset.mDoApplyFilters) { in same()
229 if (mFilters.size() > 0 || preset.mFilters.size() > 0) { in same()
234 if (mDoApplyFilters && preset.mDoApplyFilters) { in same()
235 for (int i = 0; i < preset.mFilters.size(); i++) { in same()
236 FilterRepresentation a = preset.mFilters.elementAt(i); in same()
248 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.java64 public void setPreset(ImagePreset preset) { in setPreset() argument
65 if ((mPreset == null) || (!mPreset.same(preset))) { in setPreset()
66 mPreset = new ImagePreset(preset); in setPreset()
68 mPreset.updateWith(preset); in setPreset()
DUpdatePreviewTask.java58 SharedPreset preset = PrimaryImage.getImage().getPreviewPreset(); in doInBackground() local
59 ImagePreset renderingPreset = preset.dequeuePreset(); in doInBackground()
/packages/modules/Bluetooth/system/bta/has/
Dhas_types.h264 decltype(has_presets)::iterator preset = has_presets.find(preset_index);
265 if (writable_only) return preset->IsWritable() ? &*preset : nullptr;
266 return &*preset;
273 auto preset = *has_presets.find(index); in GetPresetInfo() local
274 return bluetooth::has::PresetInfo({.preset_index = preset.GetIndex(), in GetPresetInfo()
275 .writable = preset.IsWritable(), in GetPresetInfo()
276 .available = preset.IsAvailable(), in GetPresetInfo()
277 .preset_name = preset.GetName()}); in GetPresetInfo()
286 for (auto const& preset : has_presets) { in GetAllPresetInfo()
287 log::verbose("preset: {}", preset); in GetAllPresetInfo()
[all …]
Dhas_preset.cc37 HasPreset preset; in FromCharacteristicValue() local
38 STREAM_TO_UINT8(preset.index_, value); in FromCharacteristicValue()
40 STREAM_TO_UINT8(preset.properties_, value); in FromCharacteristicValue()
42 preset.name_ = std::string(value, value + len); in FromCharacteristicValue()
44 return preset; in FromCharacteristicValue()
80 HasPreset& preset) { in Deserialize() argument
103 STREAM_TO_UINT8(preset.index_, p_curr); in Deserialize()
104 STREAM_TO_UINT8(preset.properties_, p_curr); in Deserialize()
105 if (name_len) preset.name_ = std::string((const char*)p_curr, name_len); in Deserialize()
Dhas_client_test.cc912 uint16_t handle, const HasPreset& preset, in InjectNotifyReadPresetResponse() argument
921 preset.ToCharacteristicValue(value); in InjectNotifyReadPresetResponse()
927 const HasPreset& preset, uint8_t prev_index, in InjectPresetChanged() argument
940 preset.ToCharacteristicValue(value); in InjectPresetChanged()
946 value.push_back(preset.GetIndex()); in InjectPresetChanged()
963 auto preset = presets.find(index); in InjectNotifyReadPresetsResponse() local
964 while (preset == presets.end() && in InjectNotifyReadPresetsResponse()
966 preset = presets.find(index); in InjectNotifyReadPresetsResponse()
969 if (preset == presets.end()) { in InjectNotifyReadPresetsResponse()
984 preset == std::prev(presets.end()) || num_of_notif == num_of_indices; in InjectNotifyReadPresetsResponse()
[all …]
Dhas_ctp.cc40 ntf.preset = HasPreset::FromCharacteristicValue(len, value); in ParsePresetGenericUpdate()
66 ntf.preset = HasPreset::FromCharacteristicValue(len, value); in ParsePresetReadResponse()
253 if (ntf.preset.has_value()) { in operator <<()
254 out << ", \"preset\": " << ntf.preset.value(); in operator <<()
265 if (ntf.preset.has_value()) { in operator <<()
266 out << ", \"preset\": {" << ntf.preset.value() << "}"; in operator <<()
Dhas_client.cc861 auto* preset = device->GetPreset(preset_index); in GetPresetInfo() local
862 if (preset == nullptr) { in GetPresetInfo()
872 .writable = preset->IsWritable(), in GetPresetInfo()
873 .available = preset->IsAvailable(), in GetPresetInfo()
874 .preset_name = preset->GetName()}}); in GetPresetInfo()
982 for (auto const& preset : device.has_presets) { in NotifyHasDeviceValid() local
983 preset_indices.push_back(preset.GetIndex()); in NotifyHasDeviceValid()
1171 if (ntf.preset.has_value()) { in OnHasPresetReadResponseNotification()
1172 device.has_presets.erase(ntf.preset->GetIndex()); in OnHasPresetReadResponseNotification()
1173 device.has_presets.insert(ntf.preset.value()); in OnHasPresetReadResponseNotification()
[all …]
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java246 for (short preset = 0; preset < mEQNumPresets; preset++) { in initEffectsPreferences()
247 mEQPresetNames[preset] = equalizerEffect.getPresetName(preset); in initEffectsPreferences()
248 equalizerEffect.usePreset(preset); in initEffectsPreferences()
250 mEQPresetOpenSLESBandLevel[preset][band] = equalizerEffect in initEffectsPreferences()
276 for (short preset = 0; preset < mEQNumPresets; preset++) { in initEffectsPreferences()
278 mEQPresetNames[preset] = prefs.getString( in initEffectsPreferences()
279 Key.eq_preset_name.toString() + preset, in initEffectsPreferences()
280 EQUALIZER_PRESET_NAME_DEFAULT + preset); in initEffectsPreferences()
281 mEQPresetOpenSLESBandLevel[preset] = Arrays.copyOf( in initEffectsPreferences()
324 for (short preset = 0; preset < mEQNumPresets; preset++) { in initEffectsPreferences()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
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()
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 …]
/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()
/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()
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dtest_command_handler.cc253 rootcanal::configuration::ControllerPreset preset = in SetDeviceConfiguration() local
257 preset = rootcanal::configuration::ControllerPreset::DEFAULT; in SetDeviceConfiguration()
259 preset = rootcanal::configuration::ControllerPreset::LAIRD_BL654; in SetDeviceConfiguration()
261 preset = rootcanal::configuration::ControllerPreset::CSR_RCK_PTS_DONGLE; in SetDeviceConfiguration()
270 configuration.set_preset(preset); in SetDeviceConfiguration()
/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/Settings/src/com/android/settings/accessibility/
DCaptioningPresetController.java52 final int preset = mCaptionHelper.getRawUserStyle(); in displayPreference() local
53 preference.setValue(preset); in displayPreference()
/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()

12