/packages/apps/FMRadio/jni/fmr/ |
D | common.cpp | 28 int ret = 0; in COM_open_dev() local 38 ret = -ERR_INVALID_FD; in COM_open_dev() 41 LOGI("%s, [fd=%d] [ret=%d]\n", __func__, *fd, ret); in COM_open_dev() 42 return ret; in COM_open_dev() 47 int ret = 0; in COM_close_dev() local 50 ret = close(fd); in COM_close_dev() 51 if (ret) { in COM_close_dev() 54 LOGD("%s, [fd=%d] [ret=%d]\n", __func__, fd, ret); in COM_close_dev() 55 return ret; in COM_close_dev() 60 int ret = 0; in COM_pwr_up() local [all …]
|
D | libfm_jni.cpp | 30 int ret = 0; in openDev() local 32 ret = FMR_open_dev(g_idx); // if success, then ret = 0; else ret < 0 in openDev() 34 LOGD("%s, [ret=%d]\n", __func__, ret); in openDev() 35 return ret?JNI_FALSE:JNI_TRUE; in openDev() 40 int ret = 0; in closeDev() local 42 ret = FMR_close_dev(g_idx); in closeDev() 44 LOGD("%s, [ret=%d]\n", __func__, ret); in closeDev() 45 return ret?JNI_FALSE:JNI_TRUE; in closeDev() 50 int ret = 0; in powerUp() local 55 ret = FMR_pwr_up(g_idx, tmp_freq); in powerUp() [all …]
|
D | fmr_core.cpp | 55 int ret = -1; in FMR_get_cfgs() local 72 ret = 0; in FMR_get_cfgs() 80 return ret; in FMR_get_cfgs() 98 int ret = 0; in FMR_init() local 135 ret = 0; in FMR_init() 148 int ret = 0; in FMR_open_dev() local 153 ret = FMR_cbk_tbl(idx).open_dev(FM_DEV_NAME, &FMR_fd(idx)); in FMR_open_dev() 154 if (ret || FMR_fd(idx) < 0) { in FMR_open_dev() 156 return ret; in FMR_open_dev() 160 ret = FMR_get_chip_id(idx, &real_chip); in FMR_open_dev() [all …]
|
/packages/apps/Nfc/nxp/jni/ |
D | com_android_nfc_NativeLlcpSocket.cpp | 114 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 …]
|
D | com_android_nfc_NativeNfcManager.cpp | 313 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 …]
|
D | com_android_nfc_NativeLlcpConnectionlessSocket.cpp | 60 NFCSTATUS ret; in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() local 83 ret = phLibNfc_Llcp_SendTo(hRemoteDevice, in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() 90 if(ret != NFCSTATUS_PENDING) in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() 92 ALOGE("phLibNfc_Llcp_SendTo() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() 95 TRACE("phLibNfc_Llcp_SendTo() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() 122 NFCSTATUS ret; in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() local 164 ret = phLibNfc_Llcp_RecvFrom(hRemoteDevice, in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() 170 if(ret != NFCSTATUS_PENDING && ret != NFCSTATUS_SUCCESS) in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() 172 ALOGE("phLibNfc_Llcp_RecvFrom() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() 175 TRACE("phLibNfc_Llcp_RecvFrom() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | neapi.c | 30 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 …]
|
D | ndapi.c | 127 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 241 … ret = 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 …]
|
D | ndldic.c | 165 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 …]
|
D | ndbdic.c | 1183 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 …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | BoundedRect.java | 184 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 …]
|
D | CropActivity.java | 441 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/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 513 jboolean ret = env->CallBooleanMethod(sJniAdapterServiceObj, method_setWakeAlarm, in set_wake_alarm_callout() local 515 if (!ret) { in set_wake_alarm_callout() 524 return !!ret; in set_wake_alarm_callout() 540 jboolean ret = JNI_FALSE; in acquire_wake_lock_callout() local 543 ret = env->CallBooleanMethod(sJniAdapterServiceObj, method_acquireWakeLock, lock_name_jni); in acquire_wake_lock_callout() 553 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL; in acquire_wake_lock_callout() 569 jboolean ret = JNI_FALSE; in release_wake_lock_callout() local 572 ret = env->CallBooleanMethod(sJniAdapterServiceObj, method_releaseWakeLock, lock_name_jni); in release_wake_lock_callout() 580 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL; in release_wake_lock_callout() 667 int ret = sBluetoothInterface->init(&sBluetoothCallbacks); in initNative() local [all …]
|
D | com_android_bluetooth_hid.cpp | 299 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 …]
|
D | com_android_bluetooth_sdp.cpp | 140 int ret; in sdpSearchNative() local 157 if ((ret = sBluetoothSdpInterface->sdp_search((bt_bdaddr_t *)addr, in sdpSearchNative() 159 ALOGE("SDP Search initialization failed: %d", ret); in sdpSearchNative() 163 result = (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in sdpSearchNative() 318 int ret = 0; in sdpCreateMapMasRecordNative() local 339 if ( (ret = sBluetoothSdpInterface->create_sdp_record(&record, &handle)) in sdpCreateMapMasRecordNative() 341 ALOGE("SDP Create record failed: %d", ret); in sdpCreateMapMasRecordNative() 360 int ret = 0; in sdpCreateMapMnsRecordNative() local 379 if ( (ret = sBluetoothSdpInterface->create_sdp_record(&record, &handle)) in sdpCreateMapMnsRecordNative() 381 ALOGE("SDP Create record failed: %d", ret); in sdpCreateMapMnsRecordNative() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | FilterGradRepresentation.java | 277 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/ |
D | FilterStackSource.java | 57 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/ |
D | Mosaic.cpp | 132 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/ |
D | BluetoothOppUtility.java | 237 boolean ret = true; in isRecognizedFileType() 248 ret = false; in isRecognizedFileType() 250 return ret; in isRecognizedFileType() 280 String ret; in getStatusDescription() local 282 ret = context.getString(R.string.status_pending); in getStatusDescription() 284 ret = context.getString(R.string.status_running); in getStatusDescription() 286 ret = context.getString(R.string.status_success); in getStatusDescription() 288 ret = context.getString(R.string.status_not_accept); in getStatusDescription() 290 ret = context.getString(R.string.status_forbidden); in getStatusDescription() 292 ret = context.getString(R.string.status_canceled); in getStatusDescription() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Mosaic.cpp | 139 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/Messaging/src/com/android/messaging/util/exif/ |
D | ExifData.java | 257 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/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
D | ExifData.java | 256 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/ |
D | ExifData.java | 256 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/Camera2/src/com/android/camera/exif/ |
D | ExifData.java | 255 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/Browser/tests/src/com/android/browser/tests/utils/ |
D | BP2TestCaseHelper.java | 120 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 …]
|