Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 171) 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.cpp291 bt_status_t ret = sHiddIf->register_app(&app_param, &in_qos, &out_qos); in registerAppNative() local
293 ALOGV("%s: register_app() returned %d", __FUNCTION__, ret); in registerAppNative()
295 if (ret == BT_STATUS_SUCCESS) { in registerAppNative()
321 bt_status_t ret = sHiddIf->unregister_app(); in unregisterAppNative() local
323 ALOGV("%s: unregister_app() returned %d", __FUNCTION__, ret); in unregisterAppNative()
325 if (ret == BT_STATUS_SUCCESS) { in unregisterAppNative()
352 bt_status_t ret = in sendReportNative() local
355 if (ret == BT_STATUS_SUCCESS) { in sendReportNative()
385 bt_status_t ret = in replyReportNative() local
388 ALOGV("%s: send_report() returned %d", __FUNCTION__, ret); in replyReportNative()
[all …]
Dcom_android_bluetooth_hid_host.cpp275 jboolean ret = JNI_TRUE; in connectHidNative() local
279 ret = JNI_FALSE; in connectHidNative()
283 return ret; in connectHidNative()
289 jboolean ret = JNI_TRUE; in disconnectHidNative() local
301 ret = JNI_FALSE; in disconnectHidNative()
305 return ret; in disconnectHidNative()
318 jboolean ret = JNI_TRUE; in getProtocolModeNative() local
325 ret = JNI_FALSE; in getProtocolModeNative()
329 return ret; in getProtocolModeNative()
342 jboolean ret = JNI_TRUE; in virtualUnPlugNative() local
[all …]
Dcom_android_bluetooth_sdp.cpp121 int ret = sBluetoothSdpInterface->sdp_search( in sdpSearchNative() local
123 if (ret != BT_STATUS_SUCCESS) { in sdpSearchNative()
124 ALOGE("SDP Search initialization failed: %d", ret); in sdpSearchNative()
129 return (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in sdpSearchNative()
261 int ret = sBluetoothSdpInterface->create_sdp_record(&record, &handle); in sdpCreateMapMasRecordNative() local
262 if (ret != BT_STATUS_SUCCESS) { in sdpCreateMapMasRecordNative()
263 ALOGE("SDP Create record failed: %d", ret); in sdpCreateMapMasRecordNative()
298 int ret = sBluetoothSdpInterface->create_sdp_record(&record, &handle); in sdpCreateMapMnsRecordNative() local
299 if (ret != BT_STATUS_SUCCESS) { in sdpCreateMapMnsRecordNative()
300 ALOGE("SDP Create record failed: %d", ret); in sdpCreateMapMnsRecordNative()
[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/apps/TV/tuner/src/com/android/tv/tuner/api/
DScanChannel.java67 Channel.DeliverySystemType ret; in lookupDeliveryStringToInt() local
70 ret = Channel.DeliverySystemType.DELIVERY_SYSTEM_ATSC; in lookupDeliveryStringToInt()
73 ret = Channel.DeliverySystemType.DELIVERY_SYSTEM_DVBC; in lookupDeliveryStringToInt()
76 ret = Channel.DeliverySystemType.DELIVERY_SYSTEM_DVBS; in lookupDeliveryStringToInt()
79 ret = Channel.DeliverySystemType.DELIVERY_SYSTEM_DVBS2; in lookupDeliveryStringToInt()
82 ret = Channel.DeliverySystemType.DELIVERY_SYSTEM_DVBT; in lookupDeliveryStringToInt()
85 ret = Channel.DeliverySystemType.DELIVERY_SYSTEM_DVBT2; in lookupDeliveryStringToInt()
89 ret = Channel.DeliverySystemType.DELIVERY_SYSTEM_UNDEFINED; in lookupDeliveryStringToInt()
92 return ret; in lookupDeliveryStringToInt()
/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/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/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/Bluetooth/src/com/android/bluetooth/util/
DGsmAlphabet.java145 StringBuilder ret = new StringBuilder(lengthSeptets); in gsm7BitPackedToString() local
189 ret.append(' '); // display ' ' for reserved double escape sequence in gsm7BitPackedToString()
193 ret.append(languageTableToChar.charAt(gsmVal)); in gsm7BitPackedToString()
195 ret.append(c); in gsm7BitPackedToString()
202 ret.append(languageTableToChar.charAt(gsmVal)); in gsm7BitPackedToString()
210 return ret.toString(); in gsm7BitPackedToString()
220 byte[] ret; in stringToGsm8BitPacked()
225 ret = new byte[septets]; in stringToGsm8BitPacked()
227 stringToGsm8BitUnpackedField(s, ret, 0, ret.length); in stringToGsm8BitPacked()
229 return ret; in stringToGsm8BitPacked()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppUtility.java275 boolean ret = true; in isRecognizedFileType()
290 ret = false; in isRecognizedFileType()
292 return ret; in isRecognizedFileType()
332 String ret; in getStatusDescription() local
334 ret = context.getString(R.string.status_pending); in getStatusDescription()
336 ret = context.getString(R.string.status_running); in getStatusDescription()
338 ret = context.getString(R.string.status_success); in getStatusDescription()
340 ret = context.getString(R.string.status_not_accept); in getStatusDescription()
342 ret = context.getString(R.string.status_forbidden); in getStatusDescription()
344 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/modules/DnsResolver/
Dres_query.cpp214 int ret, saved_herrno; in res_nsearch() local
232 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, anslen, herrno); in res_nsearch()
233 if (ret > 0 || trailing_dot) return ret; in res_nsearch()
258 ret = res_nquerydomain(statp, name, domain.c_str(), cl, type, answer, anslen, herrno); in res_nsearch()
259 if (ret > 0) return ret; in res_nsearch()
304 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, anslen, herrno); in res_nsearch()
305 if (ret > 0) return ret; in res_nsearch()
DDnsTlsSocket.cpp235 int ret = SSL_connect(ssl.get()); in sslConnect() local
236 LOG(DEBUG) << " SSL_connect returned " << ret << " with mark 0x" << std::hex << mMark; in sslConnect()
237 if (ret == 1) break; // SSL handshake complete; in sslConnect()
239 const int ssl_err = SSL_get_error(ssl.get(), ret); in sslConnect()
283 int ret = SSL_write(mSsl.get(), buffer.base(), buffer.size()); in sslWrite() local
284 if (ret == int(buffer.size())) break; // SSL write complete; in sslWrite()
286 if (ret < 1) { in sslWrite()
287 const int ssl_err = SSL_get_error(mSsl.get(), ret); in sslWrite()
448 int ret = SSL_read(mSsl.get(), buffer.limit() - remaining, remaining); in sslRead() local
449 if (ret == 0) { in sslRead()
[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()

1234567