/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 …]
|
D | ndfdic.c | 155 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/Nfc/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 | 59 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 …]
|
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() 910 NFCSTATUS ret; in nfc_jni_Discovery_notification_callback() local [all …]
|
D | com_android_nfc_NativeLlcpServiceSocket.cpp | 71 NFCSTATUS ret = NFCSTATUS_SUCCESS; in com_NativeLlcpServiceSocket_doAccept() local 111 ret = phLibNfc_Llcp_Accept( hIncomingSocket, in com_NativeLlcpServiceSocket_doAccept() 118 if(ret != NFCSTATUS_PENDING) in com_NativeLlcpServiceSocket_doAccept() 122 ALOGD("phLibNfc_Llcp_Accept() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_NativeLlcpServiceSocket_doAccept() 125 TRACE("phLibNfc_Llcp_Accept() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); in com_NativeLlcpServiceSocket_doAccept() 177 NFCSTATUS ret; in com_NativeLlcpServiceSocket_doClose() local 192 ret = phLibNfc_Llcp_Close(hLlcpSocket); in com_NativeLlcpServiceSocket_doClose() 194 if(ret == NFCSTATUS_SUCCESS) in com_NativeLlcpServiceSocket_doClose()
|
D | com_android_nfc_NativeNfcSecureElement.cpp | 115 NFCSTATUS ret; in com_android_nfc_jni_open_secure_element_notification_callback() local 184 NFCSTATUS ret; in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() local 241 …ret = phLibNfc_Mgt_IoCtl(gHWRef,NFC_MEM_READ,&InParam, &OutParam,com_android_nfc_jni_ioctl_callbac… in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 243 if(ret!=NFCSTATUS_PENDING) in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 275 ret = phLibNfc_SE_GetSecureElementList( SE_List, &No_SE); in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 276 if (ret == NFCSTATUS_SUCCESS) in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 296 ret = phLibNfc_RemoteDev_NtfRegister(®istry_info, in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 300 if(ret != NFCSTATUS_SUCCESS) in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 309 ret = phLibNfc_SE_SetMode( SE_List[SmartMX_index].hSecureElement, in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() 314 if (ret != NFCSTATUS_PENDING ) in com_android_nfc_NativeNfcSecureElement_doOpenSecureElementConnection() [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/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/Contacts/tests/src/com/android/contacts/util/ |
D | HtmlUtilsTest.java | 97 private void checkPostProcess(Spanned ret) { in checkPostProcess() argument 99 assertEquals("01234", ret.toString()); in checkPostProcess() 104 ImageSpan[] imageSpans = ret.getSpans(0, ret.length(), ImageSpan.class); in checkPostProcess() 110 QuoteSpan[] quoteSpans = ret.getSpans(0, ret.length(), QuoteSpan.class); in checkPostProcess() 115 CustomSpan[] customSpans = ret.getSpans(0, ret.length(), CustomSpan.class); in checkPostProcess()
|
D | StreamItemEntryBuilder.java | 66 StreamItemEntry ret = StreamItemEntry.createForTest(mId, mText, mComment, mTimestamp, in build() local 68 ret.decodeHtml(context); in build() 69 return ret; in build()
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 90 int ret = fseek(file, (long)dictOffset, SEEK_SET); in latinime_BinaryDictionary_open() local 91 if (ret != 0) { in latinime_BinaryDictionary_open() 92 AKLOGE("DICT: Failure in fseek. ret=%d errno=%d", ret, errno); in latinime_BinaryDictionary_open() 95 ret = fread(dictBuf, sizeof(char) * dictSize, 1, file); in latinime_BinaryDictionary_open() 96 if (ret != 1) { in latinime_BinaryDictionary_open() 97 AKLOGE("DICT: Failure in fread. ret=%d errno=%d", ret, errno); in latinime_BinaryDictionary_open() 100 ret = fclose(file); in latinime_BinaryDictionary_open() 101 if (ret != 0) { in latinime_BinaryDictionary_open() 102 AKLOGE("DICT: Failure in fclose. ret=%d errno=%d", ret, errno); in latinime_BinaryDictionary_open() 238 int ret = munmap(dictBuf, length); in releaseDictBuf() local [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppUtility.java | 215 boolean ret = true; in isRecognizedFileType() 226 ret = false; in isRecognizedFileType() 228 return ret; in isRecognizedFileType() 258 String ret; in getStatusDescription() local 260 ret = context.getString(R.string.status_pending); in getStatusDescription() 262 ret = context.getString(R.string.status_running); in getStatusDescription() 264 ret = context.getString(R.string.status_success); in getStatusDescription() 266 ret = context.getString(R.string.status_not_accept); in getStatusDescription() 268 ret = context.getString(R.string.status_forbidden); in getStatusDescription() 270 ret = context.getString(R.string.status_canceled); in getStatusDescription() [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 …]
|
/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()
|
D | ContactsMockPackageManager.java | 102 final List<ProviderInfo> ret = Lists.newArrayList(); in queryContentProviders() local 103 if (mPackages == null) return ret; in queryContentProviders() 107 ret.add(providerInfo); in queryContentProviders() 110 return ret; in queryContentProviders()
|
/packages/apps/Phone/src/com/android/phone/ |
D | DataUsageListener.java | 218 String ret; in toReadable() local 221 ret = data + " bytes"; in toReadable() 223 ret = (data / KB) + " KB"; in toReadable() 225 ret = (data / MB) + " MB"; in toReadable() 227 ret = (data / GB) + " GB"; in toReadable() 229 ret = (data / TB) + " TB"; in toReadable() 231 return ret; in toReadable()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Alarm.java | 273 StringBuilder ret = new StringBuilder(); in toString() local 302 ret.append(dayList[DAY_MAP[i]]); in toString() 304 if (dayCount > 0) ret.append( in toString() 308 return ret.toString(); in toString() 333 boolean[] ret = new boolean[7]; in getBooleanArray() 335 ret[i] = isSet(i); in getBooleanArray() 337 return ret; in getBooleanArray()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | TestUtils.java | 47 byte[] ret = new byte[array.length]; in b() 48 for (int i = 0; i < ret.length; i++) { in b() 49 ret[i] = (byte) array[i]; in b() 51 return ret; in b()
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
D | DiscourseLoggerTest.java | 27 byte[] ret = new byte[chars.length()]; in b() 29 ret[i] = (byte) chars.charAt(i); in b() 31 return ret; in b()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/ |
D | MockAccountTypeManager.java | 73 final List<AccountType> ret = Lists.newArrayList(); in getAccountTypes() local 77 ret.add(type); in getAccountTypes() 81 return ret; in getAccountTypes()
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
D | DiscourseLogger.java | 99 String[] ret = new String[list.size()]; in getLines() local 100 list.toArray(ret); in getLines() 101 return ret; in getLines()
|