Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 49) sorted by relevance

12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DMatrixUtilsTests.java41 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()
DSmoothingUtilsTests.java40 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/modules/Bluetooth/system/stack/test/fuzzers/a2dp/codec/
Da2dpCodecHelperFunctions.h150 tBT_A2DP_OFFLOAD retval; in generateArbitrarytA2dpOffload() local
152 retval.codec_type = fdp->ConsumeIntegral<uint32_t>(); in generateArbitrarytA2dpOffload()
153 retval.max_latency = fdp->ConsumeIntegral<uint16_t>(); in generateArbitrarytA2dpOffload()
155 memcpy(&retval.scms_t_enable[0], scms_t_enable.data(), scms_t_enable.size()); in generateArbitrarytA2dpOffload()
156 retval.sample_rate = fdp->ConsumeIntegral<uint32_t>(); in generateArbitrarytA2dpOffload()
157 retval.bits_per_sample = fdp->ConsumeIntegral<uint8_t>(); in generateArbitrarytA2dpOffload()
158 retval.ch_mode = fdp->ConsumeIntegral<uint8_t>(); in generateArbitrarytA2dpOffload()
159 retval.encoded_audio_bitrate = fdp->ConsumeIntegral<uint32_t>(); in generateArbitrarytA2dpOffload()
160 retval.acl_hdl = fdp->ConsumeIntegral<uint16_t>(); in generateArbitrarytA2dpOffload()
161 retval.l2c_rcid = fdp->ConsumeIntegral<uint16_t>(); in generateArbitrarytA2dpOffload()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerSession.java129 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 …]
/packages/services/BuiltInPrintService/jni/lib/
Dprinter.c91 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/
DDataQueue.cpp62 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()
DPowerSwitch.cpp150 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()
DNfcTag.cpp1037 bool retval = false; in isP2pDiscovered() local
1044 retval = true; in isP2pDiscovered()
1048 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: return=%u", fn, retval); in isP2pDiscovered()
1049 return retval; in isP2pDiscovered()
1290 bool retval = false; in isMifareUltralight() local
1302 retval = true; in isMifareUltralight()
1307 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("%s: return=%u", fn, retval); in isMifareUltralight()
1308 return retval; in isMifareUltralight()
1322 bool retval = false; in isMifareDESFire() local
1332 retval = true; in isMifareDESFire()
[all …]
DNativeLlcpSocket.cpp157 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()
DRouteDataSet.cpp162 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()
/packages/modules/Bluetooth/system/audio_bluetooth_hw/
Ddevice_port_proxy.cc409 bool retval; in CondwaitState() local
416 retval = internal_cv_.wait_for( in CondwaitState()
419 retval = retval && state_ == BluetoothStreamState::STARTED; in CondwaitState()
425 retval = internal_cv_.wait_for( in CondwaitState()
428 retval = retval && state_ == BluetoothStreamState::STANDBY; in CondwaitState()
437 return retval; // false if any failure like timeout in CondwaitState()
451 bool retval = false; in Start() local
455 retval = CondwaitState(BluetoothStreamState::STARTING); in Start()
463 if (retval) { in Start()
475 return retval; // false if any failure like timeout in Start()
[all …]
Ddevice_port_proxy_hidl.cc347 bool retval; in CondwaitState() local
355 retval = internal_cv_.wait_for( in CondwaitState()
358 retval = retval && state_ == BluetoothStreamState::STARTED; in CondwaitState()
365 retval = internal_cv_.wait_for( in CondwaitState()
368 retval = retval && state_ == BluetoothStreamState::STANDBY; in CondwaitState()
378 return retval; // false if any failure like timeout in CondwaitState()
392 bool retval = false; in Start() local
396 retval = CondwaitState(BluetoothStreamState::STARTING); in Start()
405 if (retval) { in Start()
417 return retval; // false if any failure like timeout in Start()
[all …]
Dstream_apis.cc272 int retval = 0; in out_standby() local
280 retval = (out->bluetooth_output_->Suspend() ? 0 : -EIO); in out_standby()
287 retval = -EBUSY; in out_standby()
293 << " standby (suspend) retval=" << retval; in out_standby()
295 return retval; in out_standby()
308 int retval = 0; in out_set_parameters() local
315 if (params.empty()) return retval; in out_set_parameters()
396 << ", kvpairs=[" << kvpairs << "], retval=" << retval; in out_set_parameters()
397 return retval; in out_set_parameters()
613 int retval = 0; in out_pause() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DAccountUtils.java38 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/apps/Gallery/src/com/android/camera/
DHighlightView.java182 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/tests/src/com/android/inputmethod/latin/utils/
DByteArrayDictBuffer.java41 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DSmoothingUtils.java45 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()
DMatrixUtils.java124 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/modules/Bluetooth/system/stack/test/fuzzers/common/
DcommonFuzzHelpers.h55 RawAddress retval; in generateRawAddress() local
59 retval.address[i] = 0; in generateRawAddress()
63 std::vector<uint8_t> bytes = fdp->ConsumeBytes<uint8_t>(retval.kLength); in generateRawAddress()
64 memcpy(retval.address, bytes.data(), bytes.size()); in generateRawAddress()
66 return retval; in generateRawAddress()
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java238 int retval = 0; in initAccountList()
244 retval = isSim1 ? -1 : 1; in initAccountList()
251 retval = (mSubscriptionManager.getSlotIndex(subId1) < in initAccountList()
256 if (retval == 0) { in initAccountList()
259 retval = pkg1.compareTo(pkg2); in initAccountList()
263 if (retval == 0) { in initAccountList()
266 retval = label1.compareTo(label2); in initAccountList()
270 if (retval == 0) { in initAccountList()
271 retval = account1.hashCode() - account2.hashCode(); in initAccountList()
273 return retval; in initAccountList()
/packages/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java597 int retval = 0; in sortSimPhoneAccountsForEmergency() local
630 retval = (slotId1 != SubscriptionManager.INVALID_SIM_SLOT_INDEX) ? -1 : 1; in sortSimPhoneAccountsForEmergency()
632 if (retval != 0) { in sortSimPhoneAccountsForEmergency()
633 return retval; in sortSimPhoneAccountsForEmergency()
656 retval = pkg1.compareTo(pkg2); in sortSimPhoneAccountsForEmergency()
657 if (retval != 0) { in sortSimPhoneAccountsForEmergency()
658 return retval; in sortSimPhoneAccountsForEmergency()
664 retval = label1.compareTo(label2); in sortSimPhoneAccountsForEmergency()
665 if (retval != 0) { in sortSimPhoneAccountsForEmergency()
666 return retval; in sortSimPhoneAccountsForEmergency()
/packages/apps/Dialer/java/com/android/incallui/
DInCallPresenter.java911 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 …]
/packages/modules/Virtualization/tests/init/
Dmain.cc86 bool retval = m.LoadListedModules(); in LoadKernelModules() local
89 return retval; in LoadKernelModules()
94 bool retval = m.LoadListedModules(); in LoadKernelModules() local
97 return retval; in LoadKernelModules()
/packages/apps/Dialer/java/com/android/incallui/call/
DCallList.java379 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/modules/Virtualization/authfs/src/
Dcrypto.rs59 let retval = unsafe { in update() localVariable
62 if retval == 0 { in update()
83 let retval = unsafe { SHA256_Final(md.as_mut_ptr(), &mut self.ctx) }; localVariable
84 if retval == 0 {

12