/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidSpellCheckerSession.java | 129 final SentenceSuggestionsInfo[] retval = splitAndSuggest(textInfos, suggestionsLimit); in onGetSentenceSuggestionsMultiple() local 130 if (retval == null || retval.length != textInfos.length) { in onGetSentenceSuggestionsMultiple() 131 return retval; in onGetSentenceSuggestionsMultiple() 133 for (int i = 0; i < retval.length; ++i) { in onGetSentenceSuggestionsMultiple() 135 fixWronglyInvalidatedWordWithSingleQuote(textInfos[i], retval[i]); in onGetSentenceSuggestionsMultiple() 137 retval[i] = tempSsi; in onGetSentenceSuggestionsMultiple() 140 return retval; in onGetSentenceSuggestionsMultiple() 177 final SentenceSuggestionsInfo[] retval = new SentenceSuggestionsInfo[infosSize]; in splitAndSuggest() local 188 retval[i] = SentenceLevelAdapter.reconstructSuggestions( in splitAndSuggest() 192 return retval; in splitAndSuggest() [all …]
|
D | AndroidWordLevelSpellCheckerSession.java | 318 final SuggestionsInfo retval = new SuggestionsInfo(flags, result.mSuggestions); in onGetSuggestionsInternal() local 320 return retval; in onGetSuggestionsInternal()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | MatrixUtilsTests.java | 41 final float[][] retval = new float[2][2]; in testMulti() local 43 MatrixUtils.multiply(matrixA, matrixB, retval); in testMulti() 48 MatrixUtils.dump("multi", retval); in testMulti() 50 assertEquals(retval[0][0], 19, EPSILON); in testMulti() 51 assertEquals(retval[0][1], 22, EPSILON); in testMulti() 52 assertEquals(retval[1][0], 43, EPSILON); in testMulti() 53 assertEquals(retval[1][1], 50, EPSILON); in testMulti() 68 final float[][] retval = new float[N][N]; in testInverse() local 75 MatrixUtils.multiply(matrix, inverse, retval); in testInverse() 81 assertEquals(((i == j) ? 1.0f : 0.0f), retval[i][j], EPSILON); in testInverse()
|
D | SmoothingUtilsTests.java | 40 final float[][] retval = new float[4][1]; in testGet3DParamaters() local 42 SmoothingUtils.get3DParameters(xs, ys, retval); in testGet3DParamaters() 44 MatrixUtils.dump("3d", retval); in testGet3DParamaters() 47 assertEquals(retval[i][0], 1.0f, 0.001f); in testGet3DParamaters()
|
/packages/services/BuiltInPrintService/jni/lib/ |
D | printer.c | 91 status_t retval = OK; in _send_data() local 98 while ((length > 0) && (retval != -1)) { in _send_data() 101 retval = ERROR; in _send_data() 112 while ((length > 0) && (retval == OK)) { in _send_data() 120 retval = ERROR; in _send_data() 126 retval = ERROR; in _send_data() 133 retval = ERROR; in _send_data() 136 retval = (print_job->timeout_enabled ? ERROR : OK); in _send_data() 137 if (retval == ERROR) { in _send_data() 144 print_job->job_status = retval; in _send_data() [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | DataQueue.cpp | 62 bool retval = mQueue.empty(); in isEmpty() local 64 return retval; in isEmpty() 83 bool retval = false; in enqueue() local 93 retval = true; in enqueue() 98 return retval; in enqueue() 118 bool retval = false; in dequeue() local 138 retval = true; in dequeue() 141 return retval; in dequeue()
|
D | PowerSwitch.cpp | 150 bool retval = false; in setLevel() local 157 retval = true; in setLevel() 181 retval = setPowerOffSleepState(false); in setLevel() 187 retval = setPowerOffSleepState(true); in setLevel() 192 retval = true; in setLevel() 206 return retval; in setLevel() 280 bool retval = false; in setPowerOffSleepState() local 342 retval = true; in setPowerOffSleepState() 345 << StringPrintf("%s: exit; return %u", fn, retval); in setPowerOffSleepState() 346 return retval; in setPowerOffSleepState()
|
D | NfcTag.cpp | 1014 bool retval = false; in isP2pDiscovered() local 1021 retval = true; in isP2pDiscovered() 1025 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: return=%u", fn, retval); in isP2pDiscovered() 1026 return retval; in isP2pDiscovered() 1267 bool retval = false; in isMifareUltralight() local 1279 retval = true; in isMifareUltralight() 1284 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: return=%u", fn, retval); in isMifareUltralight() 1285 return retval; in isMifareUltralight() 1299 bool retval = false; in isMifareDESFire() local 1309 retval = true; in isMifareDESFire() [all …]
|
D | RouteDataSet.cpp | 162 bool retval = false; in import() local 221 retval = true; in import() 227 << StringPrintf("%s: exit; return=%u", fn, retval); in import() 228 return retval; in import() 245 bool retval = false; in saveToFile() local 257 retval = actualWritten == strlen(routesXml); in saveToFile() 261 if (retval == false) LOG(ERROR) << StringPrintf("%s: error during write", fn); in saveToFile() 267 return retval; in saveToFile()
|
D | NativeLlcpSocket.cpp | 157 jint retval = 0; in nativeLlcpSocket_doReceive() local 159 retval = actualLen; in nativeLlcpSocket_doReceive() 161 retval = -1; in nativeLlcpSocket_doReceive() 164 << StringPrintf("%s: exit; actual len=%d", __func__, retval); in nativeLlcpSocket_doReceive() 165 return retval; in nativeLlcpSocket_doReceive()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 182 int retval = GROW_NONE; in getHit() local 194 retval = GROW_TOP_EDGE; in getHit() 196 retval = GROW_BOTTOM_EDGE; in getHit() 200 retval = GROW_LEFT_EDGE; in getHit() 202 retval = GROW_RIGHT_EDGE; in getHit() 206 retval = MOVE; in getHit() 208 retval = GROW_NONE; in getHit() 220 retval |= GROW_LEFT_EDGE; in getHit() 223 retval |= GROW_RIGHT_EDGE; in getHit() 226 retval |= GROW_TOP_EDGE; in getHit() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
D | AccountUtils.java | 38 final ArrayList<String> retval = new ArrayList<>(); in getDeviceAccountsEmailAddresses() local 42 retval.add(name); in getDeviceAccountsEmailAddresses() 43 retval.add(name.split("@")[0]); in getDeviceAccountsEmailAddresses() 46 return retval; in getDeviceAccountsEmailAddresses() 57 final ArrayList<String> retval = new ArrayList<>(); in getDeviceAccountsWithDomain() local 61 retval.add(account.name); in getDeviceAccountsWithDomain() 64 return retval; in getDeviceAccountsWithDomain()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | SmoothingUtils.java | 45 final float[][] retval) throws MatrixOperationFailedException { in get3DParameters() argument 47 if (retval.length != COEFF_COUNT || retval[0].length != 1) { in get3DParameters() 48 Log.d(TAG, "--- invalid length of 3d retval " + retval.length + ", " in get3DParameters() 49 + retval[0].length); in get3DParameters() 97 MatrixUtils.multiply(m0Invxm1, m2, retval); in get3DParameters() 99 MatrixUtils.dump("result", retval); in get3DParameters()
|
D | MatrixUtils.java | 124 final float[][] retval) throws MatrixOperationFailedException { in multiply() argument 132 if (retval.length != m0h || retval[0].length != m1w) { in multiply() 134 "--- invalid length of retval " + retval.length + ", " + retval[0].length); in multiply() 138 Arrays.fill(retval[i], 0); in multiply() 141 retval[i][j] += m0[i][k] * m1[k][j]; in multiply()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | ByteArrayDictBuffer.java | 41 final int retval = readUnsignedByte(); in readUnsignedShort() local 42 return (retval << 8) + readUnsignedByte(); in readUnsignedShort() 47 final int retval = readUnsignedShort(); in readUnsignedInt24() local 48 return (retval << 8) + readUnsignedByte(); in readUnsignedInt24() 53 final int retval = readUnsignedShort(); in readInt() local 54 return (retval << 16) + readUnsignedShort(); in readInt()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | InCallPresenter.java | 911 DialerCall retval = callList.getActiveCall(); in getCallToDisplay() local 912 if (retval != null && retval != ignore) { in getCallToDisplay() 913 return retval; in getCallToDisplay() 918 retval = callList.getSecondActiveCall(); in getCallToDisplay() 919 if (retval != null && retval != ignore) { in getCallToDisplay() 920 return retval; in getCallToDisplay() 927 retval = callList.getDisconnectingCall(); in getCallToDisplay() 928 if (retval != null && retval != ignore) { in getCallToDisplay() 929 return retval; in getCallToDisplay() 931 retval = callList.getDisconnectedCall(); in getCallToDisplay() [all …]
|
D | StatusBarNotifier.java | 505 boolean retval = in checkForChangeAndSaveData() 535 retval = true; in checkForChangeAndSaveData() 547 if (retval) { in checkForChangeAndSaveData() 552 return retval; in checkForChangeAndSaveData()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CreateConnectionProcessor.java | 588 int retval = 0; in sortSimPhoneAccountsForEmergency() local 621 retval = (slotId1 != SubscriptionManager.INVALID_SIM_SLOT_INDEX) ? -1 : 1; in sortSimPhoneAccountsForEmergency() 623 if (retval != 0) { in sortSimPhoneAccountsForEmergency() 624 return retval; in sortSimPhoneAccountsForEmergency() 647 retval = pkg1.compareTo(pkg2); in sortSimPhoneAccountsForEmergency() 648 if (retval != 0) { in sortSimPhoneAccountsForEmergency() 649 return retval; in sortSimPhoneAccountsForEmergency() 655 retval = label1.compareTo(label2); in sortSimPhoneAccountsForEmergency() 656 if (retval != 0) { in sortSimPhoneAccountsForEmergency() 657 return retval; in sortSimPhoneAccountsForEmergency()
|
D | TelecomServiceImpl.java | 995 boolean retval = false; 997 retval = getTelephonyManager( 1004 return retval; 1033 boolean retval = false; 1040 retval = getTelephonyManager(subId) 1045 return retval; 1071 String retval = "content://icc/adn/"; 1075 retval = retval + "subId/" + subId; 1080 return Uri.parse(retval);
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | PhoneAccountSettingsFragment.java | 313 int retval = 0; in initAccountList() 319 retval = isSim1 ? -1 : 1; in initAccountList() 326 retval = (mSubscriptionManager.getSlotIndex(subId1) < in initAccountList() 331 if (retval == 0) { in initAccountList() 334 retval = pkg1.compareTo(pkg2); in initAccountList() 338 if (retval == 0) { in initAccountList() 341 retval = label1.compareTo(label2); in initAccountList() 345 if (retval == 0) { in initAccountList() 346 retval = account1.hashCode() - account2.hashCode(); in initAccountList() 348 return retval; in initAccountList()
|
/packages/apps/Dialer/java/com/android/incallui/call/ |
D | CallList.java | 379 DialerCall retval = getIncomingCall(); in getIncomingOrActive() local 380 if (retval == null) { in getIncomingOrActive() 381 retval = getActiveCall(); in getIncomingOrActive() 383 return retval; in getIncomingOrActive() 387 DialerCall retval = getOutgoingCall(); in getOutgoingOrActive() local 388 if (retval == null) { in getOutgoingOrActive() 389 retval = getActiveCall(); in getOutgoingOrActive() 391 return retval; in getOutgoingOrActive() 522 DialerCall retval = null; in getCallWithState() local 527 retval = call; in getCallWithState() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | EmojiCategory.java | 434 final Key[][] retval = new Key[pageCount][maxPageCount]; in sortKeysIntoPages() local 436 retval[i / maxPageCount][i % maxPageCount] = keys.get(i); in sortKeysIntoPages() 438 return retval; in sortKeysIntoPages()
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
D | StateTransitionAnimation.java | 117 boolean retval = super.calculate(currentTimeMillis); in calculate() 125 return retval; in calculate()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseWrapper.java | 308 final long retval = in queryNumEntries() local 314 selection, retval)); in queryNumEntries() 316 return retval; in queryNumEntries()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderUtils.java | 78 final int retval = readUnsignedByte(); in readUnsignedInt24() local 79 return (retval << 16) + readUnsignedShort(); in readUnsignedInt24()
|