Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 157) sorted by relevance

1234567

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DBoundedRect.java184 RectF ret = new RectF(newInner); in resizeInner() local
210 ret.left = (p[0] > ret.left) ? p[0] : ret.left; in resizeInner()
211 ret.top = (p[1] > ret.top) ? p[1] : ret.top; in resizeInner()
215 ret.right = (p[0] < ret.right) ? p[0] : ret.right; in resizeInner()
216 ret.top = (p[1] > ret.top) ? p[1] : ret.top; in resizeInner()
220 ret.right = (p[0] < ret.right) ? p[0] : ret.right; in resizeInner()
221 ret.bottom = (p[1] < ret.bottom) ? p[1] : ret.bottom; in resizeInner()
225 ret.left = (p[0] > ret.left) ? p[0] : ret.left; in resizeInner()
226 ret.bottom = (p[1] < ret.bottom) ? p[1] : ret.bottom; in resizeInner()
233 float[] retCorners = CropMath.getCornersFromRect(ret); in resizeInner()
[all …]
DCropActivity.java441 Bitmap ret = getCroppedImage(img, mCrop, mPhoto); in doInBackground() local
442 if (ret != null) { in doInBackground()
443 ret = getDownsampledBitmap(ret, MAX_BMAP_IN_INTENT); in doInBackground()
445 if (ret == null) { in doInBackground()
452 Bitmap tmp = Bitmap.createBitmap(ret, 0, 0, ret.getWidth(), in doInBackground()
453 ret.getHeight(), m, true); in doInBackground()
455 ret = tmp; in doInBackground()
458 mResultIntent.putExtra(CropExtras.KEY_DATA, ret); in doInBackground()
639 Bitmap ret = Bitmap.createScaledBitmap(image, image.getWidth() >> shifts, in getDownsampledBitmap() local
641 if (ret == null) { in getDownsampledBitmap()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAdvertiseHelper.java52 ByteArrayOutputStream ret = new ByteArrayOutputStream(); in advertiseDataToBytes() local
69 ret.write(nameLength + 1); in advertiseDataToBytes()
70 ret.write(type); in advertiseDataToBytes()
71 ret.write(nameBytes, 0, nameLength); in advertiseDataToBytes()
90 ret.write(concated.length + 1); in advertiseDataToBytes()
91 ret.write(MANUFACTURER_SPECIFIC_DATA); in advertiseDataToBytes()
92 ret.write(concated, 0, concated.length); in advertiseDataToBytes()
96 ret.write(2 /* Length */); in advertiseDataToBytes()
97 ret.write(TX_POWER_LEVEL); in advertiseDataToBytes()
98 ret.write(0); // lower layers will fill this value. in advertiseDataToBytes()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DUtil.java41 Metadata ret = new Metadata(); in empty_data() local
42 ret.mediaId = "Not Provided"; in empty_data()
43 ret.title = "Not Provided"; in empty_data()
44 ret.artist = ""; in empty_data()
45 ret.album = ""; in empty_data()
46 ret.genre = ""; in empty_data()
47 ret.trackNum = "1"; in empty_data()
48 ret.numTracks = "1"; in empty_data()
49 ret.duration = "0"; in empty_data()
50 return ret; in empty_data()
[all …]
DPlayStatus.java40 PlayStatus ret = new PlayStatus(); in fromPlaybackState() local
41 if (state == null) return ret; in fromPlaybackState()
43 ret.state = playbackStateToAvrcpState(state.getState()); in fromPlaybackState()
44 ret.position = state.getPosition(); in fromPlaybackState()
45 ret.duration = duration; in fromPlaybackState()
46 return ret; in fromPlaybackState()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp525 jboolean ret = in set_wake_alarm_callout() local
528 if (!ret) { in set_wake_alarm_callout()
533 return (ret == JNI_TRUE); in set_wake_alarm_callout()
545 jint ret = BT_STATUS_SUCCESS; in acquire_wake_lock_callout() local
551 if (!acquired) ret = BT_STATUS_WAKELOCK_ERROR; in acquire_wake_lock_callout()
554 ret = BT_STATUS_NOMEM; in acquire_wake_lock_callout()
558 return ret; in acquire_wake_lock_callout()
570 jint ret = BT_STATUS_SUCCESS; in release_wake_lock_callout() local
576 if (!released) ret = BT_STATUS_WAKELOCK_ERROR; in release_wake_lock_callout()
579 ret = BT_STATUS_NOMEM; in release_wake_lock_callout()
[all …]
Dcom_android_bluetooth_hid_device.cpp292 bt_status_t ret = sHiddIf->register_app(&app_param, &in_qos, &out_qos); in registerAppNative() local
294 ALOGV("%s: register_app() returned %d", __FUNCTION__, ret); in registerAppNative()
296 if (ret == BT_STATUS_SUCCESS) { in registerAppNative()
322 bt_status_t ret = sHiddIf->unregister_app(); in unregisterAppNative() local
324 ALOGV("%s: unregister_app() returned %d", __FUNCTION__, ret); in unregisterAppNative()
326 if (ret == BT_STATUS_SUCCESS) { in unregisterAppNative()
353 bt_status_t ret = in sendReportNative() local
356 if (ret == BT_STATUS_SUCCESS) { in sendReportNative()
386 bt_status_t ret = in replyReportNative() local
389 ALOGV("%s: send_report() returned %d", __FUNCTION__, ret); in replyReportNative()
[all …]
Dcom_android_bluetooth_hid_host.cpp267 jboolean ret = JNI_TRUE; in connectHidNative() local
271 ret = JNI_FALSE; in connectHidNative()
275 return ret; in connectHidNative()
281 jboolean ret = JNI_TRUE; in disconnectHidNative() local
293 ret = JNI_FALSE; in disconnectHidNative()
297 return ret; in disconnectHidNative()
310 jboolean ret = JNI_TRUE; in getProtocolModeNative() local
317 ret = JNI_FALSE; in getProtocolModeNative()
321 return ret; in getProtocolModeNative()
334 jboolean ret = JNI_TRUE; in virtualUnPlugNative() local
[all …]
Dcom_android_bluetooth_sdp.cpp122 int ret = sBluetoothSdpInterface->sdp_search( in sdpSearchNative() local
124 if (ret != BT_STATUS_SUCCESS) { in sdpSearchNative()
125 ALOGE("SDP Search initialization failed: %d", ret); in sdpSearchNative()
130 return (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in sdpSearchNative()
262 int ret = sBluetoothSdpInterface->create_sdp_record(&record, &handle); in sdpCreateMapMasRecordNative() local
263 if (ret != BT_STATUS_SUCCESS) { in sdpCreateMapMasRecordNative()
264 ALOGE("SDP Create record failed: %d", ret); in sdpCreateMapMasRecordNative()
299 int ret = sBluetoothSdpInterface->create_sdp_record(&record, &handle); in sdpCreateMapMnsRecordNative() local
300 if (ret != BT_STATUS_SUCCESS) { in sdpCreateMapMnsRecordNative()
301 ALOGE("SDP Create record failed: %d", ret); in sdpCreateMapMnsRecordNative()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterGradRepresentation.java277 boolean[] ret = new boolean[mBands.size()]; in getMask()
280 ret[i++] = !point.mask; in getMask()
282 return ret; in getMask()
286 int[] ret = new int[mBands.size()]; in getXPos1() local
289 ret[i++] = point.xPos1; in getXPos1()
291 return ret; in getXPos1()
295 int[] ret = new int[mBands.size()]; in getYPos1() local
298 ret[i++] = point.yPos1; in getYPos1()
300 return ret; in getYPos1()
304 int[] ret = new int[mBands.size()]; in getXPos2() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackSource.java57 boolean ret = true; in insertStack()
63 ret = (-1 != database.insert(FilterStack.TABLE, null, val)); in insertStack()
68 return ret; in insertStack()
85 boolean ret = true; in removeStack()
88 ret = (0 != database.delete(FilterStack.TABLE, FilterStack._ID + " = ?", in removeStack()
94 return ret; in removeStack()
108 byte[] ret = null; in getStack()
117 ret = c.getBlob(0); in getStack()
126 return ret; in getStack()
130 ArrayList<FilterUserPresetRepresentation> ret = in getAllUserPresets() local
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DMosaic.cpp139 int ret = MOSAIC_RET_ERROR; in addFrame() local
158 ret = MOSAIC_RET_OK; in addFrame()
162 ret = MOSAIC_RET_FEW_INLIERS; in addFrame()
165 ret = MOSAIC_RET_LOW_TEXTURE; in addFrame()
168 ret = MOSAIC_RET_ERROR; in addFrame()
175 return ret; in addFrame()
196 int ret = Blend::BLEND_RET_ERROR; in createMosaic() local
201 ret = blender->runBlend((MosaicFrame **) frames, (MosaicFrame **) rframes, in createMosaic()
206 switch(ret) in createMosaic()
210 ret = MOSAIC_RET_ERROR; in createMosaic()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/sqlite/
DDatabaseAnalyzer.java46 final List<String> ret = new ArrayList<>(); in findTablesAndViews() local
50 ret.add(c.getString(0).toLowerCase()); in findTablesAndViews()
53 return ret; in findTablesAndViews()
60 final List<String> ret = new ArrayList<>(); in findColumns() local
67 ret.add(c.getColumnName(i).toLowerCase()); in findColumns()
72 return ret; in findColumns()
86 final List<String> ret = new ArrayList<>(tables); // Start with the table/view list. in findTableViewsAllowingColumns() local
96 if (ret.remove(c)) { in findTableViewsAllowingColumns()
101 return ret; in findTableViewsAllowingColumns()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifData.java256 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(); in getAllTags() local
262 ret.add(t); in getAllTags()
267 if (ret.size() == 0) { in getAllTags()
270 return ret; in getAllTags()
286 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(tags.length); in getAllTagsForIfd() local
288 ret.add(t); in getAllTagsForIfd()
290 if (ret.size() == 0) { in getAllTagsForIfd()
293 return ret; in getAllTagsForIfd()
301 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(); in getAllTagsForTagId() local
306 ret.add(t); in getAllTagsForTagId()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifData.java257 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(); in getAllTags() local
263 ret.add(t); in getAllTags()
268 if (ret.size() == 0) { in getAllTags()
271 return ret; in getAllTags()
287 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(tags.length); in getAllTagsForIfd() local
289 ret.add(t); in getAllTagsForIfd()
291 if (ret.size() == 0) { in getAllTagsForIfd()
294 return ret; in getAllTagsForIfd()
302 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(); in getAllTagsForTagId() local
307 ret.add(t); in getAllTagsForTagId()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppUtility.java256 boolean ret = true; in isRecognizedFileType()
271 ret = false; in isRecognizedFileType()
273 return ret; in isRecognizedFileType()
313 String ret; in getStatusDescription() local
315 ret = context.getString(R.string.status_pending); in getStatusDescription()
317 ret = context.getString(R.string.status_running); in getStatusDescription()
319 ret = context.getString(R.string.status_success); in getStatusDescription()
321 ret = context.getString(R.string.status_not_accept); in getStatusDescription()
323 ret = context.getString(R.string.status_forbidden); in getStatusDescription()
325 ret = context.getString(R.string.status_canceled); in getStatusDescription()
[all …]
/packages/apps/Camera2/src/com/android/camera/exif/
DExifData.java255 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(); in getAllTags() local
261 ret.add(t); in getAllTags()
266 return ret; in getAllTags()
282 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(tags.length); in getAllTagsForIfd() local
284 ret.add(t); in getAllTagsForIfd()
286 if (ret.size() == 0) { in getAllTagsForIfd()
289 return ret; in getAllTagsForIfd()
297 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(); in getAllTagsForTagId() local
302 ret.add(t); in getAllTagsForTagId()
306 if (ret.size() == 0) { in getAllTagsForTagId()
[all …]
/packages/apps/TV/src/com/android/tv/data/
DChannelNumber.java131 ChannelNumber ret = new ChannelNumber(); in parseChannelNumber() local
136 ret.majorNumber = number; in parseChannelNumber()
137 if (!isInteger(ret.majorNumber)) { in parseChannelNumber()
141 ret.hasDelimiter = true; in parseChannelNumber()
142 ret.majorNumber = number.substring(0, indexOfDelimiter); in parseChannelNumber()
143 ret.minorNumber = number.substring(indexOfDelimiter + 1); in parseChannelNumber()
144 if (!isInteger(ret.majorNumber) || !isInteger(ret.minorNumber)) { in parseChannelNumber()
148 return ret; in parseChannelNumber()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DPsipData.java789 int ret = mEventId - item.getEventId(); in compareTo() local
790 if (ret != 0) { in compareTo()
791 return ret; in compareTo()
793 ret = StringUtils.compare(mTitleText, item.getTitleText()); in compareTo()
794 if (ret != 0) { in compareTo()
795 return ret; in compareTo()
809 ret = StringUtils.compare(mContentRating, item.getContentRating()); in compareTo()
810 if (ret != 0) { in compareTo()
811 return ret; in compareTo()
815 ret = StringUtils.compare(mBroadcastGenre, item.getBroadcastGenre()); in compareTo()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DTestUtils.java78 final File ret; in getDatabaseFile() local
80 ret = sDatabasePath; in getDatabaseFile()
82 ret = new File(sDatabasePath, name); in getDatabaseFile()
83 Log.i(TAG, "Test DB file: " + ret); in getDatabaseFile()
85 return ret.getAbsolutePath(); in getDatabaseFile()
136 final ContentValues ret = new ContentValues(); in cv() local
141 ret.putNull(name); in cv()
143 ret.put(name, (String) value); in cv()
145 ret.put(name, (Integer) value); in cv()
147 ret.put(name, (Long) value); in cv()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapFolderElement.java163 BluetoothMapFolderElement ret = findFolderById(id, subFolder); in findFolderById() local
164 if (ret != null) { in findFolderById()
165 return ret; in findFolderById()
411 int ret = mName.compareToIgnoreCase(another.mName); in compareTo() local
413 if (ret == 0) { in compareTo()
414 ret = mSubFolders.size() - another.mSubFolders.size(); in compareTo()
415 if (ret == 0) { in compareTo()
426 ret = subfolder.compareTo(subfolderAnother); in compareTo()
427 if (ret != 0) { in compareTo()
431 return ret; in compareTo()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dmmapped_buffer.cpp88 int ret = munmap(mMmappedBuffer, mAlignedSize); in ~MmappedBuffer() local
89 if (ret != 0) { in ~MmappedBuffer()
90 AKLOGE("DICT: Failure in munmap. ret=%d errno=%d", ret, errno); in ~MmappedBuffer()
92 ret = close(mMmapFd); in ~MmappedBuffer()
93 if (ret != 0) { in ~MmappedBuffer()
94 AKLOGE("DICT: Failure in close. ret=%d errno=%d", ret, errno); in ~MmappedBuffer()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/usb/
DUsbDetailsFragment.java85 List<UsbDetailsController> ret = new ArrayList<>(); in createControllerList() local
86 ret.add(new UsbDetailsHeaderController(context, fragment, usbBackend)); in createControllerList()
87 ret.add(new UsbDetailsDataRoleController(context, fragment, usbBackend)); in createControllerList()
88 ret.add(new UsbDetailsFunctionsController(context, fragment, usbBackend)); in createControllerList()
89 ret.add(new UsbDetailsPowerRoleController(context, fragment, usbBackend)); in createControllerList()
90 return ret; in createControllerList()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDetailsFragment.java85 List<UsbDetailsController> ret = new ArrayList<>(); in createControllerList() local
86 ret.add(new UsbDetailsHeaderController(context, fragment, usbBackend)); in createControllerList()
87 ret.add(new UsbDetailsDataRoleController(context, fragment, usbBackend)); in createControllerList()
88 ret.add(new UsbDetailsFunctionsController(context, fragment, usbBackend)); in createControllerList()
89 ret.add(new UsbDetailsPowerRoleController(context, fragment, usbBackend)); in createControllerList()
90 return ret; in createControllerList()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DXmpPresets.java93 XMresults ret = new XMresults(); in extractXMPData() local
118 ret.originalimage = srcUri; in extractXMPData()
120 ret.preset = new ImagePreset(); in extractXMPData()
121 ret.presetString = filterString; in extractXMPData()
122 boolean ok = ret.preset.readJsonFromString(filterString); in extractXMPData()
126 return ret; in extractXMPData()

1234567