/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/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_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 …]
|
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_NativeLlcpServiceSocket.cpp | 73 NFCSTATUS ret = NFCSTATUS_SUCCESS; in com_NativeLlcpServiceSocket_doAccept() local 115 ret = phLibNfc_Llcp_Accept( hIncomingSocket, in com_NativeLlcpServiceSocket_doAccept() 122 if(ret != NFCSTATUS_PENDING) in com_NativeLlcpServiceSocket_doAccept() 126 ALOGD("phLibNfc_Llcp_Accept() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_NativeLlcpServiceSocket_doAccept() 129 TRACE("phLibNfc_Llcp_Accept() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_NativeLlcpServiceSocket_doAccept() 181 NFCSTATUS ret; in com_NativeLlcpServiceSocket_doClose() local 196 ret = phLibNfc_Llcp_Close(hLlcpSocket); in com_NativeLlcpServiceSocket_doClose() 198 if(ret == NFCSTATUS_SUCCESS) in com_NativeLlcpServiceSocket_doClose()
|
/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 …]
|
/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/Bluetooth/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 537 jboolean ret = env->CallBooleanMethod(sJniAdapterServiceObj, method_setWakeAlarm, in set_wake_alarm_callout() local 539 if (!ret) { in set_wake_alarm_callout() 548 return !!ret; in set_wake_alarm_callout() 564 jint ret = BT_STATUS_SUCCESS; in acquire_wake_lock_callout() local 569 if (!acquired) ret = BT_STATUS_WAKELOCK_ERROR; in acquire_wake_lock_callout() 573 ret = BT_STATUS_NOMEM; in acquire_wake_lock_callout() 580 return ret; in acquire_wake_lock_callout() 596 jint ret = BT_STATUS_SUCCESS; in release_wake_lock_callout() local 601 if (!released) ret = BT_STATUS_WAKELOCK_ERROR; in release_wake_lock_callout() 605 ret = BT_STATUS_NOMEM; in release_wake_lock_callout() [all …]
|
D | com_android_bluetooth_hid.cpp | 273 jboolean ret = JNI_TRUE; in connectHidNative() local 285 ret = JNI_FALSE; in connectHidNative() 289 return ret; in connectHidNative() 295 jboolean ret = JNI_TRUE; in disconnectHidNative() local 307 ret = JNI_FALSE; in disconnectHidNative() 311 return ret; in disconnectHidNative() 317 jboolean ret = JNI_TRUE; in getProtocolModeNative() local 330 ret = JNI_FALSE; in getProtocolModeNative() 334 return ret; in getProtocolModeNative() 340 jboolean ret = JNI_TRUE; in virtualUnPlugNative() local [all …]
|
D | com_android_bluetooth_sdp.cpp | 137 int ret; in sdpSearchNative() local 154 if ((ret = sBluetoothSdpInterface->sdp_search((bt_bdaddr_t *)addr, in sdpSearchNative() 156 ALOGE("SDP Search initialization failed: %d", ret); in sdpSearchNative() 160 result = (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in sdpSearchNative() 315 int ret = 0; in sdpCreateMapMasRecordNative() local 336 if ( (ret = sBluetoothSdpInterface->create_sdp_record(&record, &handle)) in sdpCreateMapMasRecordNative() 338 ALOGE("SDP Create record failed: %d", ret); in sdpCreateMapMasRecordNative() 357 int ret = 0; in sdpCreateMapMnsRecordNative() local 376 if ( (ret = sBluetoothSdpInterface->create_sdp_record(&record, &handle)) in sdpCreateMapMnsRecordNative() 378 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/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/TV/src/com/android/tv/data/ |
D | ChannelNumber.java | 91 ChannelNumber ret = new ChannelNumber(); in parseChannelNumber() local 103 ret.majorNumber = number; in parseChannelNumber() 104 if (!isInteger(ret.majorNumber)) { in parseChannelNumber() 108 ret.hasDelimiter = true; in parseChannelNumber() 109 ret.majorNumber = number.substring(0, indexOfDelimiter); in parseChannelNumber() 110 ret.minorNumber = number.substring(indexOfDelimiter + 1); in parseChannelNumber() 111 if (!isInteger(ret.majorNumber) || !isInteger(ret.minorNumber)) { in parseChannelNumber() 115 return ret; in parseChannelNumber()
|
/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/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppUtility.java | 241 boolean ret = true; in isRecognizedFileType() 252 ret = false; in isRecognizedFileType() 254 return ret; in isRecognizedFileType() 284 String ret; in getStatusDescription() local 286 ret = context.getString(R.string.status_pending); in getStatusDescription() 288 ret = context.getString(R.string.status_running); in getStatusDescription() 290 ret = context.getString(R.string.status_success); in getStatusDescription() 292 ret = context.getString(R.string.status_not_accept); in getStatusDescription() 294 ret = context.getString(R.string.status_forbidden); in getStatusDescription() 296 ret = context.getString(R.string.status_canceled); in getStatusDescription() [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/TV/usbtuner/src/com/android/usbtuner/data/ |
D | PsipData.java | 614 int ret = mEventId - item.getEventId(); in compareTo() local 615 if (ret != 0) { in compareTo() 616 return ret; in compareTo() 618 ret = StringUtils.compare(mTitleText, item.getTitleText()); in compareTo() 619 if (ret != 0) { in compareTo() 620 return ret; in compareTo() 634 ret = StringUtils.compare(mContentRating, item.getContentRating()); in compareTo() 635 if (ret != 0) { in compareTo() 636 return ret; in compareTo() 640 ret = StringUtils.compare(mBroadcastGenre, item.getBroadcastGenre()); in compareTo() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | mmapped_buffer.cpp | 88 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/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapFolderElement.java | 161 BluetoothMapFolderElement ret = findFolderById(id, subFolder); in findFolderById() local 162 if(ret != null) { in findFolderById() 163 return ret; in findFolderById() 380 int ret = mName.compareToIgnoreCase(another.mName); in compareTo() local 382 if(ret == 0) { in compareTo() 383 ret = mSubFolders.size() - another.mSubFolders.size(); in compareTo() 384 if(ret == 0) { in compareTo() 393 ret = subfolder.compareTo(subfolderAnother); in compareTo() 394 if(ret != 0) { in compareTo() 396 return ret; in compareTo() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | TestUtils.java | 38 final ContentValues ret = new ContentValues(); in cv() local 43 ret.putNull(name); in cv() 45 ret.put(name, (String) value); in cv() 47 ret.put(name, (Integer) value); in cv() 49 ret.put(name, (Long) value); in cv() 54 return ret; in cv()
|