Home
last modified time | relevance | path

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

123456

/packages/apps/Nfc/nxp/jni/
Dcom_android_nfc_NativeLlcpSocket.cpp114 NFCSTATUS ret; in com_android_nfc_NativeLlcpSocket_doConnect() local
133 ret = phLibNfc_Llcp_Connect(hRemoteDevice, in com_android_nfc_NativeLlcpSocket_doConnect()
139 if(ret != NFCSTATUS_PENDING) in com_android_nfc_NativeLlcpSocket_doConnect()
141 … ALOGE("phLibNfc_Llcp_Connect(%d) returned 0x%04x[%s]", nSap, ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpSocket_doConnect()
144 TRACE("phLibNfc_Llcp_Connect(%d) returned 0x%04x[%s]", nSap, ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpSocket_doConnect()
168 NFCSTATUS ret; in com_android_nfc_NativeLlcpSocket_doConnectBy() local
192 ret = phLibNfc_Llcp_ConnectByUri(hRemoteDevice, in com_android_nfc_NativeLlcpSocket_doConnectBy()
198 if(ret != NFCSTATUS_PENDING) in com_android_nfc_NativeLlcpSocket_doConnectBy()
200 ALOGE("phLibNfc_Llcp_ConnectByUri() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpSocket_doConnectBy()
203 TRACE("phLibNfc_Llcp_ConnectByUri() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpSocket_doConnectBy()
[all …]
Dcom_android_nfc_NativeNfcManager.cpp313 int ret = 0; in nfc_jni_initialize() local
322 ret = hw_get_module(NFC_HARDWARE_MODULE_ID, &hw_module); in nfc_jni_initialize()
323 if (ret) { in nfc_jni_initialize()
327 ret = nfc_pn544_open(hw_module, &pn544_dev); in nfc_jni_initialize()
328 if (ret) { in nfc_jni_initialize()
558 ret = phLibNfc_SE_NtfRegister(nfc_jni_transaction_callback,(void *)nat); in nfc_jni_initialize()
560 if(ret != NFCSTATUS_SUCCESS) in nfc_jni_initialize()
562 ALOGD("phLibNfc_SE_NtfRegister returned 0x%02x",ret); in nfc_jni_initialize()
565 TRACE("phLibNfc_SE_NtfRegister returned 0x%x\n", ret); in nfc_jni_initialize()
909 NFCSTATUS ret; in nfc_jni_Discovery_notification_callback() local
[all …]
Dcom_android_nfc_NativeLlcpConnectionlessSocket.cpp59 NFCSTATUS ret; in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() local
82 ret = phLibNfc_Llcp_SendTo(hRemoteDevice, in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo()
89 if(ret != NFCSTATUS_PENDING) in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo()
91 ALOGE("phLibNfc_Llcp_SendTo() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo()
94 TRACE("phLibNfc_Llcp_SendTo() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo()
121 NFCSTATUS ret; in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() local
163 ret = phLibNfc_Llcp_RecvFrom(hRemoteDevice, in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom()
169 if(ret != NFCSTATUS_PENDING && ret != NFCSTATUS_SUCCESS) in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom()
171 ALOGE("phLibNfc_Llcp_RecvFrom() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom()
174 TRACE("phLibNfc_Llcp_RecvFrom() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom()
[all …]
Dcom_android_nfc_NativeLlcpServiceSocket.cpp72 NFCSTATUS ret = NFCSTATUS_SUCCESS; in com_NativeLlcpServiceSocket_doAccept() local
114 ret = phLibNfc_Llcp_Accept( hIncomingSocket, in com_NativeLlcpServiceSocket_doAccept()
121 if(ret != NFCSTATUS_PENDING) in com_NativeLlcpServiceSocket_doAccept()
125 ALOGD("phLibNfc_Llcp_Accept() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_NativeLlcpServiceSocket_doAccept()
128 TRACE("phLibNfc_Llcp_Accept() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_NativeLlcpServiceSocket_doAccept()
180 NFCSTATUS ret; in com_NativeLlcpServiceSocket_doClose() local
195 ret = phLibNfc_Llcp_Close(hLlcpSocket); in com_NativeLlcpServiceSocket_doClose()
197 if(ret == NFCSTATUS_SUCCESS) in com_NativeLlcpServiceSocket_doClose()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dneapi.c30 NJ_INT16 ret; in njx_select() local
47 ret = set_previous_selection(iwnn, r_result); in njx_select()
48 if (ret < 0) { in njx_select()
49 return ret; in njx_select()
71 NJ_INT16 ret; in njx_get_candidate() local
88 ret = njd_get_candidate(iwnn, result, buf, buf_size); in njx_get_candidate()
93 ret = NJ_SET_ERR_VAL(NJ_FUNC_NJ_GET_CANDIDATE, NJ_ERR_INVALID_RESULT); in njx_get_candidate()
97 return ret; in njx_get_candidate()
101 NJ_INT16 ret; in njx_get_stroke() local
118 ret = njd_get_stroke(iwnn, result, buf, buf_size); in njx_get_stroke()
[all …]
Dndapi.c127 NJ_INT16 ret = 0; in search_word() local
153 ret = njd_b_search_word(&cursor->cond, loctset); in search_word()
157 ret = njd_l_search_word(iwnn, &cursor->cond, loctset, comp_flg); in search_word()
161 ret = njd_f_search_word(&cursor->cond, loctset); in search_word()
167 if (ret < 0) { in search_word()
168 return ret; in search_word()
170 if (ret == 0) { in search_word()
188 NJ_INT16 ret = -1; in get_word_and_search_next_word() local
241ret = njd_get_word_data(iwnn, cursor->cond.ds, loctset, (NJ_UINT16)i, &tmp_result.word); in get_word_and_search_next_word()
242 if (ret < 0) { in get_word_and_search_next_word()
[all …]
Dndldic.c165 NJ_INT16 ret; in njd_l_search_word() local
225 ret = get_cand_by_evaluate2(iwnn, con, loctset, con->operation, hIdx); in njd_l_search_word()
226 if (ret == NJ_SET_ERR_VAL(NJ_FUNC_SEARCH_RANGE_BY_YOMI, NJ_ERR_CACHE_NOT_ENOUGH)) { in njd_l_search_word()
229 ret = get_cand_by_evaluate2(iwnn, con, loctset, con->operation, hIdx); in njd_l_search_word()
231 return ret; in njd_l_search_word()
509 NJ_INT16 ret; in que_strcmp_complete_with_hyouki() local
537 ret = nj_strncmp(yomi, str, que_yomilen); in que_strcmp_complete_with_hyouki()
538 if (ret != 0) { in que_strcmp_complete_with_hyouki()
550 ret = nj_strncmp(hyouki, str, que_hyoukilen); in que_strcmp_complete_with_hyouki()
551 if (ret != 0) { in que_strcmp_complete_with_hyouki()
[all …]
Dndbdic.c1183 NJ_INT16 ret; in njd_b_search_word() local
1228 ret = search_node(con, loctset); in njd_b_search_word()
1229 if (ret < 1) { in njd_b_search_word()
1230 return ret; in njd_b_search_word()
1232 ret = bdic_search_data(con, loctset); in njd_b_search_word()
1233 if (ret < 1) { in njd_b_search_word()
1252 ret = search_node(con, loctset); in njd_b_search_word()
1253 if (ret < 1) { in njd_b_search_word()
1254 return ret; in njd_b_search_word()
1256 ret = bdic_search_fore_data(con, loctset); in njd_b_search_word()
[all …]
Dndfdic.c155 NJ_UINT16 i, idx, yib, ret; in convert_to_yomi() local
172 ret = 0; in convert_to_yomi()
179 if (((ret + char_len + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { in convert_to_yomi()
185 ret++; in convert_to_yomi()
189 if (((ret + 1 + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { in convert_to_yomi()
193 ret++; in convert_to_yomi()
198 return ret; in convert_to_yomi()
259 NJ_UINT16 ret; in njd_f_search_word() local
303 ret = search_data(con, loctset); in njd_f_search_word()
304 if (ret < 1) { in njd_f_search_word()
[all …]
/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/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp514 …jboolean ret = env->CallBooleanMethod(sJniAdapterServiceObj, method_setWakeAlarm, (jlong)delay_mil… in set_wake_alarm_callout() local
515 if (!ret) { in set_wake_alarm_callout()
524 return !!ret; in set_wake_alarm_callout()
542 jboolean ret = JNI_FALSE; in acquire_wake_lock_callout() local
545 ret = env->CallBooleanMethod(sJniAdapterServiceObj, method_acquireWakeLock, lock_name_jni); in acquire_wake_lock_callout()
555 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL; in acquire_wake_lock_callout()
573 jboolean ret = JNI_FALSE; in release_wake_lock_callout() local
576 ret = env->CallBooleanMethod(sJniAdapterServiceObj, method_releaseWakeLock, lock_name_jni); in release_wake_lock_callout()
586 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL; in release_wake_lock_callout()
746 int ret = sBluetoothInterface->init(&sBluetoothCallbacks); in initNative() local
[all …]
Dcom_android_bluetooth_hid.cpp299 jboolean ret = JNI_TRUE; in connectHidNative() local
311 ret = JNI_FALSE; in connectHidNative()
315 return ret; in connectHidNative()
321 jboolean ret = JNI_TRUE; in disconnectHidNative() local
333 ret = JNI_FALSE; in disconnectHidNative()
337 return ret; in disconnectHidNative()
343 jboolean ret = JNI_TRUE; in getProtocolModeNative() local
356 ret = JNI_FALSE; in getProtocolModeNative()
360 return ret; in getProtocolModeNative()
366 jboolean ret = JNI_TRUE; in virtualUnPlugNative() local
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DExchangeDirectoryProviderTests.java158 final int ret = comparator.compare(lhs, rhs); in testNameComparatorEqualsStringLhsIdGreater() local
159 assertEquals(ret, 1); in testNameComparatorEqualsStringLhsIdGreater()
167 final int ret = comparator.compare(lhs, rhs); in testNameComparatorEqualsStringRhsIdGreater() local
168 assertEquals(ret, -1); in testNameComparatorEqualsStringRhsIdGreater()
176 final int ret = comparator.compare(lhs, rhs); in testNameComparatorEqualsEverythingEqual() local
177 assertEquals(ret, 0); in testNameComparatorEqualsEverythingEqual()
185 final int ret = comparator.compare(lhs, rhs); in testNameComparatorLhsGreaterString() local
186 assertEquals(ret, 1); in testNameComparatorLhsGreaterString()
194 final int ret = comparator.compare(lhs, rhs); in testNameComparatorRhsGreaterString() local
195 assertEquals(ret, -1); in testNameComparatorRhsGreaterString()
[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/Camera/jni/feature_mos/src/mosaic/
DMosaic.cpp132 int ret = addFrame(imageYVU); in addFrameRGB() local
139 return ret; in addFrameRGB()
152 int ret = MOSAIC_RET_ERROR; in addFrame() local
171 ret = MOSAIC_RET_OK; in addFrame()
175 ret = MOSAIC_RET_FEW_INLIERS; in addFrame()
178 ret = MOSAIC_RET_LOW_TEXTURE; in addFrame()
181 ret = MOSAIC_RET_ERROR; in addFrame()
188 return ret; in addFrame()
209 int ret = Blend::BLEND_RET_ERROR; in createMosaic() local
214 ret = blender->runBlend((MosaicFrame **) frames, (MosaicFrame **) rframes, in createMosaic()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppUtility.java220 boolean ret = true; in isRecognizedFileType()
231 ret = false; in isRecognizedFileType()
233 return ret; in isRecognizedFileType()
263 String ret; in getStatusDescription() local
265 ret = context.getString(R.string.status_pending); in getStatusDescription()
267 ret = context.getString(R.string.status_running); in getStatusDescription()
269 ret = context.getString(R.string.status_success); in getStatusDescription()
271 ret = context.getString(R.string.status_not_accept); in getStatusDescription()
273 ret = context.getString(R.string.status_forbidden); in getStatusDescription()
275 ret = context.getString(R.string.status_canceled); in getStatusDescription()
[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/Launcher3/WallpaperPicker/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/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/Mms/src/com/android/mms/exif/
DExifData.java258 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(); in getAllTags() local
264 ret.add(t); in getAllTags()
269 if (ret.size() == 0) { in getAllTags()
272 return ret; in getAllTags()
288 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(tags.length); in getAllTagsForIfd() local
290 ret.add(t); in getAllTagsForIfd()
292 if (ret.size() == 0) { in getAllTagsForIfd()
295 return ret; in getAllTagsForIfd()
303 ArrayList<ExifTag> ret = new ArrayList<ExifTag>(); in getAllTagsForTagId() local
308 ret.add(t); in getAllTagsForTagId()
[all …]
/packages/apps/Browser/tests/src/com/android/browser/tests/utils/
DBP2TestCaseHelper.java120 boolean ret = mTriggered; in checkTriggered()
122 return ret; in checkTriggered()
128 Uri ret = getMockContentResolver().insert(uri, values); in mockInsert() local
130 return ret; in mockInsert()
136 int ret = getMockContentResolver().update(uri, values, where, selectionArgs); in mockUpdate() local
137 if (ret > 0) { in mockUpdate()
143 return ret; in mockUpdate()
156 Uri ret = mockInsert(Bookmarks.CONTENT_URI, values); in insertBookmark() local
159 return ret; in insertBookmark()
188 Uri ret = mockInsert(History.CONTENT_URI, values); in insertHistory() local
[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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnJAJP.java764 boolean ret; in onEvent()
765 ret = ((TextCandidatesViewManager)mCandidatesViewManager).onTouchSync(); in onEvent()
766 return ret; in onEvent()
978 boolean ret = false; in onEvent()
991 ret = true; in onEvent()
996 ret = true; in onEvent()
1011 ret = true; in onEvent()
1029 ret = true; in onEvent()
1068 ret = processKeyEvent(keyEvent); in onEvent()
1072 ret = processKeyEvent(keyEvent); in onEvent()
[all …]

123456