Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 47) 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/apps/Nfc/nci/jni/
DDataQueue.cpp61 bool retval = mQueue.empty(); in isEmpty() local
63 return retval; in isEmpty()
82 bool retval = false; in enqueue() local
92 retval = true; in enqueue()
97 return retval; in enqueue()
117 bool retval = false; in dequeue() local
137 retval = true; in dequeue()
140 return retval; in dequeue()
DPowerSwitch.cpp151 bool retval = false; in setLevel() local
158 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()
279 bool retval = false; in setPowerOffSleepState() local
340 retval = true; in setPowerOffSleepState()
342 LOG(DEBUG) << StringPrintf("%s: exit; return %u", fn, retval); in setPowerOffSleepState()
343 return retval; in setPowerOffSleepState()
DRouteDataSet.cpp160 bool retval = false; in import() local
216 retval = true; in import()
221 LOG(DEBUG) << StringPrintf("%s: exit; return=%u", fn, retval); in import()
222 return retval; in import()
239 bool retval = false; in saveToFile() local
251 retval = actualWritten == strlen(routesXml); in saveToFile()
254 if (retval == false) LOG(ERROR) << StringPrintf("%s: error during write", fn); in saveToFile()
260 return retval; in saveToFile()
DNfcTag.cpp1217 bool retval = false; in isMifareUltralight() local
1229 retval = true; in isMifareUltralight()
1234 LOG(DEBUG) << StringPrintf("%s: return=%u", fn, retval); in isMifareUltralight()
1235 return retval; in isMifareUltralight()
1249 bool retval = false; in isMifareDESFire() local
1258 retval = true; in isMifareDESFire()
1264 LOG(DEBUG) << StringPrintf("%s: return=%u", fn, retval); in isMifareDESFire()
1265 return retval; in isMifareDESFire()
1443 int retval = 1000; in getTransceiveTimeout() local
1445 retval = mTechnologyTimeoutsTable[techId]; in getTransceiveTimeout()
[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/services/BuiltInPrintService/jni/lib/
Dprinter.c92 status_t retval = OK; in _send_data() local
99 while ((length > 0) && (retval != -1)) { in _send_data()
102 retval = ERROR; in _send_data()
113 while ((length > 0) && (retval == OK)) { in _send_data()
121 retval = ERROR; in _send_data()
127 retval = ERROR; in _send_data()
134 retval = ERROR; in _send_data()
137 retval = (print_job->timeout_enabled ? ERROR : OK); in _send_data()
138 if (retval == ERROR) { in _send_data()
145 print_job->job_status = retval; in _send_data()
[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/audio_bluetooth_hw/
Ddevice_port_proxy_hidl.cc346 bool retval; in CondwaitState() local
354 retval = internal_cv_.wait_for( in CondwaitState()
357 retval = retval && state_ == BluetoothStreamState::STARTED; in CondwaitState()
364 retval = internal_cv_.wait_for( in CondwaitState()
367 retval = retval && state_ == BluetoothStreamState::STANDBY; in CondwaitState()
377 return retval; // false if any failure like timeout in CondwaitState()
391 bool retval = false; in Start() local
395 retval = CondwaitState(BluetoothStreamState::STARTING); in Start()
404 if (retval) { in Start()
416 return retval; // false if any failure like timeout in Start()
[all …]
Ddevice_port_proxy.cc427 bool retval; in CondwaitState() local
434 retval = internal_cv_.wait_for( in CondwaitState()
437 retval = retval && state_ == BluetoothStreamState::STARTED; in CondwaitState()
443 retval = internal_cv_.wait_for( in CondwaitState()
446 retval = retval && state_ == BluetoothStreamState::STANDBY; in CondwaitState()
455 return retval; // false if any failure like timeout in CondwaitState()
469 bool retval = false; in Start() local
473 retval = CondwaitState(BluetoothStreamState::STARTING); in Start()
481 if (retval) { in Start()
493 return retval; // false if any failure like timeout in Start()
[all …]
Dstream_apis.cc270 int retval = 0; in out_standby() local
278 retval = (out->bluetooth_output_->Suspend() ? 0 : -EIO); in out_standby()
285 retval = -EBUSY; in out_standby()
291 << " standby (suspend) retval=" << retval; in out_standby()
293 return retval; in out_standby()
306 int retval = 0; in out_set_parameters() local
313 if (params.empty()) return retval; in out_set_parameters()
419 << ", kvpairs=[" << kvpairs << "], retval=" << retval; in out_set_parameters()
420 return retval; in out_set_parameters()
636 int retval = 0; in out_pause() local
[all …]
/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/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/modules/Bluetooth/system/bta/ag/
Dbta_ag_swb_aptx.cc150 tBTA_AG_PEER_CODEC retval = BTM_SCO_CODEC_NONE; in bta_ag_parse_qac() local
162 retval |= BTA_AG_SCO_APTX_SWB_SETTINGS_Q0_MASK; in bta_ag_parse_qac()
165 retval |= BTA_AG_SCO_APTX_SWB_SETTINGS_Q1_MASK; in bta_ag_parse_qac()
168 retval |= BTA_AG_SCO_APTX_SWB_SETTINGS_Q2_MASK; in bta_ag_parse_qac()
171 retval |= BTA_AG_SCO_APTX_SWB_SETTINGS_Q3_MASK; in bta_ag_parse_qac()
178 return (retval); in bta_ag_parse_qac()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DFileSystemPermissionTest.java961 Set<File> retval = new HashSet<File>(); in getAllWritableFilesInDirAndSubDir() local
965 return retval; in getAllWritableFilesInDirAndSubDir()
978 retval.addAll(getAllWritableFilesInDirAndSubDir(f)); in getAllWritableFilesInDirAndSubDir()
988 return retval; in getAllWritableFilesInDirAndSubDir()
993 retval.add(f.getCanonicalFile()); in getAllWritableFilesInDirAndSubDir()
996 return retval; in getAllWritableFilesInDirAndSubDir()
1182 Set<File> retval = new HashSet<File>(); in getAllInsecureDevicesInDirAndSubdir() local
1186 return retval; in getAllInsecureDevicesInDirAndSubdir()
1199 retval.addAll(getAllInsecureDevicesInDirAndSubdir(f, type)); in getAllInsecureDevicesInDirAndSubdir()
1205 return retval; in getAllInsecureDevicesInDirAndSubdir()
[all …]
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java244 int retval = 0; in initAccountList()
250 retval = isSim1 ? -1 : 1; in initAccountList()
257 retval = (mSubscriptionManager.getSlotIndex(subId1) < in initAccountList()
262 if (retval == 0) { in initAccountList()
265 retval = pkg1.compareTo(pkg2); in initAccountList()
269 if (retval == 0) { in initAccountList()
272 retval = label1.compareTo(label2); in initAccountList()
276 if (retval == 0) { in initAccountList()
277 retval = account1.hashCode() - account2.hashCode(); in initAccountList()
279 return retval; in initAccountList()
/packages/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java657 int retval = 0; in sortSimPhoneAccountsForEmergency() local
690 retval = (slotId1 != SubscriptionManager.INVALID_SIM_SLOT_INDEX) ? -1 : 1; in sortSimPhoneAccountsForEmergency()
692 if (retval != 0) { in sortSimPhoneAccountsForEmergency()
693 return retval; in sortSimPhoneAccountsForEmergency()
716 retval = pkg1.compareTo(pkg2); in sortSimPhoneAccountsForEmergency()
717 if (retval != 0) { in sortSimPhoneAccountsForEmergency()
718 return retval; in sortSimPhoneAccountsForEmergency()
724 retval = label1.compareTo(label2); in sortSimPhoneAccountsForEmergency()
725 if (retval != 0) { in sortSimPhoneAccountsForEmergency()
726 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/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/
Dcommon.rs49 let retval = (self.offset, chunk_data_size); in next() localVariable
52 Some(retval) in next()

12