Home
last modified time | relevance | path

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

/system/core/logd/
DLogBufferElement.cpp62 char *retval = NULL; in tidToName() local
76 retval = strdup(buffer); in tidToName()
83 if (!retval) { in tidToName()
84 retval = name; in tidToName()
91 size_t retval_len = strlen(retval); in tidToName()
94 if ((retval_len < name_len) && !strcmp(retval, name + name_len - retval_len)) { in tidToName()
95 free(retval); in tidToName()
96 retval = name; in tidToName()
101 return retval; in tidToName()
171 size_t retval = hdrLen + len; in populateDroppedMessage() local
[all …]
DLogStatistics.h48 const TEntry **retval = new const TEntry* [n]; in sort() local
49 memset(retval, 0, sizeof(*retval) * n); in sort()
55 while ((!retval[i] || (s > retval[i]->getSizes())) && (--i >= 0)) in sort()
60 memmove(&retval[i+1], &retval[i], b * sizeof(retval[0])); in sort()
62 retval[i] = &entry; in sort()
65 std::unique_ptr<const TEntry *[]> sorted(retval); in sort()
DLogKlog.cpp201 ssize_t retval = 0; in onDataAvailable() local
203 retval = read(cli->getSocket(), buffer + len, sizeof(buffer) - 1 - len); in onDataAvailable()
205 if ((retval == 0) && (len == 0)) { in onDataAvailable()
208 if (retval < 0) { in onDataAvailable()
211 len += retval; in onDataAvailable()
219 if (((tok + strlen(tok)) == ep) && (retval != 0) && full) { in onDataAvailable()
DLogStatistics.cpp42 char *retval = NULL; in pidToName() local
44 retval = strdup("logd"); in pidToName()
55 retval = strdup(buffer); in pidToName()
61 return retval; in pidToName()
DLogBuffer.cpp585 size_t retval = stats.sizes(id); in getSizeUsed() local
587 return retval; in getSizeUsed()
605 size_t retval = log_buffer_size(id); in getSize() local
607 return retval; in getSize()
/system/keymaster/
Dandroid_keymaster_utils.cpp30 uint8_t* retval = new (std::nothrow) uint8_t[size]; in dup_buffer() local
31 if (retval) in dup_buffer()
32 memcpy(retval, buf, size); in dup_buffer()
33 return retval; in dup_buffer()
Dandroid_keymaster_messages.cpp166 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle); in NonErrorDeserialize() local
167 if (retval && message_version > 0) in NonErrorDeserialize()
168 retval = output_params.Deserialize(buf_ptr, end); in NonErrorDeserialize()
169 return retval; in NonErrorDeserialize()
188 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle) && input.Deserialize(buf_ptr, end); in Deserialize() local
189 if (retval && message_version > 0) in Deserialize()
190 retval = additional_params.Deserialize(buf_ptr, end); in Deserialize()
191 return retval; in Deserialize()
218 bool retval = output.Deserialize(buf_ptr, end); in NonErrorDeserialize() local
219 if (retval && message_version > 0) in NonErrorDeserialize()
[all …]
Dandroid_keymaster_test_utils.h367 int retval = in counting_close_device() local
370 return retval; in counting_close_device()
/system/core/toolbox/upstream-netbsd/lib/libutil/
Draise_default_signal.c68 int retval, oerrno; in raise_default_signal() local
70 retval = -1; in raise_default_signal()
99 retval = 0; in raise_default_signal()
114 return retval; in raise_default_signal()
/system/media/camera/docs/
Dmetadata-parser-sanity-check37 local retval=$?
38 if [[ $retval -ne 0 ]]
45 return $retval
Dmetadata-generate171 local retval=$?
173 if [[ $retval -ne 0 ]]; then
179 return $retval
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h187 T retval = 0; in ntoh() local
189 retval <<= 8; in ntoh()
190 retval |= byte_ptr[i]; in ntoh()
192 return retval; in ntoh()
201 T retval; in hton() local
202 uint8_t* byte_ptr = reinterpret_cast<uint8_t*>(&retval); in hton()
207 return retval; in hton()
/system/core/fs_mgr/
Dfs_mgr_verity.c115 int retval = -1; in verify_table() local
137 retval = 0; in verify_table()
141 return retval; in verify_table()
214 int retval = FS_MGR_SETUP_VERITY_FAIL; in read_verity_metadata() local
242 retval = FS_MGR_SETUP_VERITY_DISABLED; in read_verity_metadata()
276 retval = FS_MGR_SETUP_VERITY_SUCCESS; in read_verity_metadata()
300 retval = FS_MGR_SETUP_VERITY_SUCCESS; in read_verity_metadata()
306 if (retval != FS_MGR_SETUP_VERITY_SUCCESS) { in read_verity_metadata()
316 return retval; in read_verity_metadata()
947 int retval = FS_MGR_SETUP_VERITY_FAIL; in fs_mgr_setup_verity() local
[all …]
/system/core/adb/
Dset_verity_enable_state_service.cpp87 int retval = -1; in set_verity_enabled_state() local
148 retval = 0; in set_verity_enabled_state()
152 return retval; in set_verity_enabled_state()
/system/core/logcat/
Dlogcat.cpp384 log_time retval(log_time::EPOCH); in lastLogTime() local
386 return retval; in lastLogTime()
441 if ((t < now) && (t > retval)) { in lastLogTime()
442 retval = t; in lastLogTime()
451 if (retval == log_time::EPOCH) { in lastLogTime()
452 return retval; in lastLogTime()
456 retval += modulo; in lastLogTime()
457 return retval; in lastLogTime()
/system/extras/micro_bench/
Dmicro_bench.cpp471 int retval; in benchmarkStrcmp() local
475retval = strcmp_func(reinterpret_cast<char*>(buf1), reinterpret_cast<char*>(buf2)); \ in benchmarkStrcmp()
476 if (retval != 0) printf("%s failed, return value %d\n", name, retval)); in benchmarkStrcmp()
484 int retval; in benchmarkStrcmpCold() local
492retval = strcmp_func(reinterpret_cast<char*>(buf1), reinterpret_cast<char*>(buf2)); \ in benchmarkStrcmpCold()
493 if (retval != 0) printf("%s failed, return value %d\n", name, retval)); in benchmarkStrcmpCold()
/system/bt/audio_a2dp_hw/
Daudio_a2dp_hw.c697 int retval; in out_set_parameters() local
707 retval = str_parms_get_str(parms, "closing", keyval, sizeof(keyval)); in out_set_parameters()
709 if (retval >= 0) in out_set_parameters()
720 retval = str_parms_get_str(parms, "A2dpSuspended", keyval, sizeof(keyval)); in out_set_parameters()
722 if (retval >= 0) in out_set_parameters()
1115 int retval = 0; in adev_set_parameters() local
1118 return retval; in adev_set_parameters()
1122 retval = out->stream.common.set_parameters((struct audio_stream *)out, kvpairs); in adev_set_parameters()
1124 return retval; in adev_set_parameters()
/system/bt/bta/ag/
Dbta_ag_cmd.c639 UINT8 retval = 0; in bta_ag_parse_chld() local
654 retval = (UINT8)idx; in bta_ag_parse_chld()
658 retval = BTA_AG_INVALID_CHLD; in bta_ag_parse_chld()
662 return (retval); in bta_ag_parse_chld()
677 tBTA_AG_PEER_CODEC retval = BTA_AG_CODEC_NONE; in bta_ag_parse_bac() local
699 case UUID_CODEC_CVSD: retval |= BTA_AG_CODEC_CVSD; break; in bta_ag_parse_bac()
700 case UUID_CODEC_MSBC: retval |= BTA_AG_CODEC_MSBC; break; in bta_ag_parse_bac()
712 return (retval); in bta_ag_parse_bac()
/system/bt/stack/btm/
Dbtm_devctl.c717 tBTM_STATUS retval = BTM_SUCCESS; in BTM_RegisterForVSEvents() local
753 retval = BTM_NO_RESOURCES; in BTM_RegisterForVSEvents()
757 return (retval); in BTM_RegisterForVSEvents()
/system/vold/
Dcryptfs.c1157 int retval = -1; local
1212 retval = 0;
1217 return retval;
1225 int retval = -1; local
1241 retval = 0;
1246 return retval;