Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 584) sorted by relevance

12345678910>>...24

/system/media/camera/src/
Dcamera_metadata_tag_info.c934 int ret = -1; in camera_metadata_enum_snprint() local
941 ret = 0; in camera_metadata_enum_snprint()
945 ret = 0; in camera_metadata_enum_snprint()
949 ret = 0; in camera_metadata_enum_snprint()
966 ret = 0; in camera_metadata_enum_snprint()
970 ret = 0; in camera_metadata_enum_snprint()
974 ret = 0; in camera_metadata_enum_snprint()
989 ret = 0; in camera_metadata_enum_snprint()
993 ret = 0; in camera_metadata_enum_snprint()
997 ret = 0; in camera_metadata_enum_snprint()
[all …]
/system/core/libsuspend/
Dautosuspend.c46 int ret; in autosuspend_enable() local
48 ret = autosuspend_init(); in autosuspend_enable()
49 if (ret) { in autosuspend_enable()
50 return ret; in autosuspend_enable()
59 ret = autosuspend_ops->enable(); in autosuspend_enable()
60 if (ret) { in autosuspend_enable()
61 return ret; in autosuspend_enable()
69 int ret; in autosuspend_disable() local
71 ret = autosuspend_init(); in autosuspend_disable()
72 if (ret) { in autosuspend_disable()
[all …]
Dautosuspend_wakeup_count.cpp87 int ret = sem_wait(&suspend_lockout); in suspend_thread_func() local
88 if (ret < 0) { in suspend_thread_func()
107 ret = sem_post(&suspend_lockout); in suspend_thread_func()
108 if (ret < 0) { in suspend_thread_func()
136 int ret = init_state_fd(); in autosuspend_init() local
137 if (ret < 0) { in autosuspend_init()
147 ret = sem_init(&suspend_lockout, 0, 0); in autosuspend_init()
148 if (ret < 0) { in autosuspend_init()
153 ret = pthread_create(&suspend_thread, NULL, suspend_thread_func, NULL); in autosuspend_init()
154 if (ret) { in autosuspend_init()
[all …]
/system/memory/libion/
Dion.c66 int ret = close(fd); in ion_close() local
67 if (ret < 0) return -errno; in ion_close()
68 return ret; in ion_close()
72 int ret = ioctl(fd, req, arg); in ion_ioctl() local
73 if (ret < 0) { in ion_ioctl()
74 ALOGE("ioctl %x failed with code %d: %s", req, ret, strerror(errno)); in ion_ioctl()
77 return ret; in ion_ioctl()
82 int ret = 0; in ion_is_using_modular_heaps() local
84 ret = ion_ioctl(fd, ION_IOC_ABI_VERSION, &ion_abi_version); in ion_is_using_modular_heaps()
85 return (ret == 0 && ion_abi_version >= ION_ABI_VERSION_MODULAR_HEAPS); in ion_is_using_modular_heaps()
[all …]
/system/core/libstats/push_compat/include/
Dstats_event_list.h47 int ret; variable
53 explicit stats_event_list(int tag) : ret(0) { in stats_event_list()
61 ret = retval; in close()
70 int status() const { return ret; } in status()
75 ret = retval; in begin()
77 return ret; in begin()
82 ret = retval; in end()
84 return ret; in end()
90 ret = retval;
98 ret = retval;
[all …]
/system/logging/liblog/
Dlogd_reader.cpp81 ssize_t ret; in SendLogdControlMessage() local
91 ret = TEMP_FAILURE_RETRY(write(sock, buf, len)); in SendLogdControlMessage()
92 if (ret <= 0) { in SendLogdControlMessage()
98 while ((ret = TEMP_FAILURE_RETRY(read(sock, cp, len))) > 0) { in SendLogdControlMessage()
101 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) { in SendLogdControlMessage()
105 len -= ret; in SendLogdControlMessage()
106 cp += ret; in SendLogdControlMessage()
113 ret = TEMP_FAILURE_RETRY(poll(&p, 1, 20)); in SendLogdControlMessage()
115 if (ret <= 0) { in SendLogdControlMessage()
120 ret = 0; in SendLogdControlMessage()
[all …]
Dlog_time.cpp47 char* ret = const_cast<char*>(s); in strptime() local
52 ret = ::strptime(ret, f, ptm); in strptime()
65 ret = ::strptime(ret, f, ptm); in strptime()
66 if (!ret) { in strptime()
71 while (isdigit(*ret)) { in strptime()
72 tv_sec = tv_sec * 10 + *ret - '0'; in strptime()
73 ++ret; in strptime()
94 ret = ::strptime(ret, f, ptm); in strptime()
95 if (!ret) { in strptime()
104 while (isdigit(*ret) && num && (mul > 1)) { in strptime()
[all …]
Dlog_event_write.cpp27 int ret = -EINVAL; in __android_log_error_write() local
32 ret = -ENOMEM; in __android_log_error_write()
34 ret = android_log_write_string8_len(ctx, subTag, MAX_SUBTAG_LEN); in __android_log_error_write()
35 if (ret >= 0) { in __android_log_error_write()
36 ret = android_log_write_int32(ctx, uid); in __android_log_error_write()
37 if (ret >= 0) { in __android_log_error_write()
38 ret = android_log_write_string8_len(ctx, data, dataLen); in __android_log_error_write()
39 if (ret >= 0) { in __android_log_error_write()
40 ret = android_log_write_list(ctx, LOG_ID_EVENTS); in __android_log_error_write()
47 return ret; in __android_log_error_write()
/system/logging/liblog/include/log/
Dlog_event_list.h106 int ret; variable
112 explicit android_log_event_list(int tag) : ret(0) { in android_log_event_list()
121 if (retval < 0) ret = retval; in close()
132 return ret; in status()
137 if (retval < 0) ret = retval; in begin()
138 return ret; in begin()
142 if (retval < 0) ret = retval; in end()
143 return ret; in end()
148 if (retval < 0) ret = retval;
154 if (retval < 0) ret = retval;
[all …]
/system/gatekeeper/tests/
Dgatekeeper_device_test.cpp40 int ret; in gatekeeper_device_initialize() local
42 ret = hw_get_module_by_class(GATEKEEPER_HARDWARE_MODULE_ID, NULL, &mod); in gatekeeper_device_initialize()
44 ASSERT_EQ(0, ret); in gatekeeper_device_initialize()
46 ret = gatekeeper_open(mod, dev); in gatekeeper_device_initialize()
48 ASSERT_EQ(0, ret); in gatekeeper_device_initialize()
61 int ret; in TEST_F() local
63 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
66 ASSERT_EQ(0, ret); in TEST_F()
70 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
73 ASSERT_EQ(0, ret); in TEST_F()
[all …]
/system/bpf/libbpf_android/
DLoader.cpp68 string ret = spath.back(); in pathToFilename() local
71 size_t lastindex = ret.find_last_of('.'); in pathToFilename()
72 return ret.substr(0, lastindex); in pathToFilename()
74 return ret; in pathToFilename()
124 int ret = 0; in readSectionHeadersAll() local
126 ret = readElfHeader(elfFile, &eh); in readSectionHeadersAll()
127 if (ret) return ret; in readSectionHeadersAll()
143 int ret = readSectionHeadersAll(elfFile, shTable); in readSectionByIdx() local
144 if (ret) return ret; in readSectionByIdx()
158 int ret = readElfHeader(elfFile, &eh); in readSectionHeaderStrtab() local
[all …]
/system/netd/server/
DPhysicalNetwork.cpp32 if (int ret = RouteController::addInterfaceToDefaultNetwork(interface.c_str(), permission)) { in addToDefault() local
34 return ret; in addToDefault()
36 if (int ret = delegate->addFallthrough(interface, permission)) { in addToDefault() local
37 return ret; in addToDefault()
44 if (int ret = RouteController::removeInterfaceFromDefaultNetwork(interface.c_str(), in removeFromDefault() local
47 return ret; in removeFromDefault()
49 if (int ret = delegate->removeFallthrough(interface, permission)) { in removeFromDefault() local
50 return ret; in removeFromDefault()
77 if (int ret = sd.destroySocketsLackingPermission(mNetId, permission, in destroySocketsLackingPermission() local
80 mNetId, permission, strerror(-ret)); in destroySocketsLackingPermission()
[all …]
/system/tools/hidl/build/
Dutils.go19 ret := make([]string, len(strs))
21 ret[i] = prefix + v + suffix
23 return ret
28 var ret []string
30 ret = append(ret, v...)
32 return ret
36 var ret []string
39 ret = append(ret, v)
42 return ret
/system/core/trusty/keymaster/set_attestation_key/
Dset_attestation_key.cpp120 int ret; in set_attestation_key_or_cert_bin() local
127 ret = trusty_keymaster_send(cmd, req, &rsp); in set_attestation_key_or_cert_bin()
128 if (ret) { in set_attestation_key_or_cert_bin()
129 fprintf(stderr, "trusty_keymaster_send cmd 0x%x failed %d\n", cmd, ret); in set_attestation_key_or_cert_bin()
130 return ret; in set_attestation_key_or_cert_bin()
138 int ret; in set_attestation_key_or_cert_pem() local
163 ret = set_attestation_key_or_cert_bin(cmd, algorithm, key, keylen); in set_attestation_key_or_cert_pem()
169 return ret; in set_attestation_key_or_cert_pem()
174 int ret; in set_attestation_key_or_cert_iecs() local
207 ret = set_attestation_key_or_cert_bin(cmd, algorithm, key, keylen); in set_attestation_key_or_cert_iecs()
[all …]
/system/core/libstats/push_compat/
Dstatsd_writer.c78 int i, ret = 0; in statsdOpen() local
91 ret = -errno; in statsdOpen()
105 ret = -errno; in statsdOpen()
106 switch (ret) { in statsdOpen()
110 i = atomic_exchange(&statsdLoggerWrite.sock, ret); in statsdOpen()
117 ret = atomic_exchange(&statsdLoggerWrite.sock, sock); in statsdOpen()
118 if ((ret >= 0) && (ret != sock)) { in statsdOpen()
119 close(ret); in statsdOpen()
121 ret = 0; in statsdOpen()
126 return ret; in statsdOpen()
[all …]
/system/core/libsparse/
Doutput_file.cpp118 off64_t ret; in file_skip() local
121 ret = lseek64(outn->fd, cnt, SEEK_CUR); in file_skip()
122 if (ret < 0) { in file_skip()
130 int ret; in file_pad() local
133 ret = ftruncate64(outn->fd, len); in file_pad()
134 if (ret < 0) { in file_pad()
142 ssize_t ret; in file_write() local
146 ret = write(outn->fd, data, len); in file_write()
147 if (ret < 0) { in file_write()
155 data = (char*)data + ret; in file_write()
[all …]
Dsparse_read.cpp107 int ret; in GetCrc32() local
110 ret = read_all(fd, copybuf, chunk); in GetCrc32()
111 if (ret < 0) { in GetCrc32()
112 return ret; in GetCrc32()
177 int ret; in process_raw_chunk() local
188 ret = source->AddToSparseFile(s, len, block); in process_raw_chunk()
189 if (ret < 0) { in process_raw_chunk()
190 return ret; in process_raw_chunk()
194 ret = source->GetCrc32(crc32, len); in process_raw_chunk()
195 if (ret < 0) { in process_raw_chunk()
[all …]
/system/bt/btif/src/
Dbtif_sock_util.cc54 ssize_t ret; in sock_send_all() local
55 OSI_NO_INTR(ret = send(sock_fd, buf, s, 0)); in sock_send_all()
56 if (ret <= 0) { in sock_send_all()
57 BTIF_TRACE_ERROR("sock fd:%d send errno:%d, ret:%d", sock_fd, errno, ret); in sock_send_all()
60 buf += ret; in sock_send_all()
61 s -= ret; in sock_send_all()
69 ssize_t ret; in sock_recv_all() local
70 OSI_NO_INTR(ret = recv(sock_fd, buf, r, MSG_WAITALL)); in sock_recv_all()
71 if (ret <= 0) { in sock_recv_all()
72 BTIF_TRACE_ERROR("sock fd:%d recv errno:%d, ret:%d", sock_fd, errno, ret); in sock_recv_all()
[all …]
/system/bt/include/hardware/avrcp/
Davrcp_common.h161 size_t ret = 0; in kHeaderSize() local
162 ret += 4; // Size of attribute field in kHeaderSize()
163 ret += 2; // Size of length field in kHeaderSize()
164 ret += 2; // Size of character encoding field in kHeaderSize()
165 return ret; in kHeaderSize()
205 size_t ret = 0; in kHeaderSize() local
206 ret += 1; // Media Player Type in kHeaderSize()
207 ret += 2; // Item Length in kHeaderSize()
208 ret += 2; // Player Id in kHeaderSize()
209 ret += 1; // Player Type in kHeaderSize()
[all …]
/system/memory/libmeminfo/
Dshowmap_test.sh11 ret=$?
12 if [[ $ret != 0 ]]; then
21 ret=$?
22 if [[ $ret != 0 ]]; then
31 ret=$?
32 if [[ $ret != 0 ]]; then
41 ret=$?
42 if [[ $ret != 0 ]]; then
55 ret=$?
56 if [[ $ret != 0 ]]; then
[all …]
/system/core/libcutils/
Drecord_stream.cpp48 RecordStream *ret; in record_stream_new() local
52 ret = (RecordStream *)calloc(1, sizeof(RecordStream)); in record_stream_new()
54 ret->fd = fd; in record_stream_new()
55 ret->maxRecordLen = maxRecordLen; in record_stream_new()
56 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE); in record_stream_new()
58 ret->unconsumed = ret->buffer; in record_stream_new()
59 ret->read_end = ret->buffer; in record_stream_new()
60 ret->buffer_end = ret->buffer + maxRecordLen + HEADER_SIZE; in record_stream_new()
62 return ret; in record_stream_new()
131 void *ret; in record_stream_get_next() local
[all …]
/system/bt/gd/os/android/
Dsystem_properties_test.cc32 auto ret = GetSystemProperty("persist.bluetooth.factoryreset"); in TEST() local
33 ASSERT_TRUE(ret); in TEST()
34 ASSERT_EQ(ret, "true"); in TEST()
36 ret = GetSystemProperty("persist.bluetooth.factoryreset"); in TEST()
37 ASSERT_TRUE(ret); in TEST()
38 ASSERT_EQ(ret, "false"); in TEST()
39 ret = GetSystemProperty("persist.bluetooth.factoryreset_do_not_exist"); in TEST()
40 ASSERT_FALSE(ret); in TEST()
53 auto ret = GetSystemProperty("persist.bluetooth.factoryreset"); in TEST() local
54 ASSERT_TRUE(ret); in TEST()
[all …]
/system/memory/libdmabufheap/
DBufferAllocator.cpp78 auto ret = dmabuf_heap_fds_.insert({heap_name, android::base::unique_fd(fd)}); in OpenDmabufHeap() local
79 CHECK(ret.second); in OpenDmabufHeap()
93 int ret = ion_query_heap_cnt(ion_fd_, &heap_count); in QueryIonHeaps() local
94 if (ret == 0) { in QueryIonHeaps()
96 ret = ion_query_get_heaps(ion_fd_, heap_count, ion_heap_info_.data()); in QueryIonHeaps()
100 CHECK(ret == 0) in QueryIonHeaps()
145 auto ret = GetIonHeapIdByName(ion_heap_name, &ion_heap_id); in MapNameToIonName() local
146 if (ret < 0) in MapNameToIonName()
147 return ret; in MapNameToIonName()
164 int ret = OpenDmabufHeap(heap_name); in MapNameToIonHeap() local
[all …]
/system/core/fastboot/fuzzy_fastboot/
Dtransport_sniffer.cpp22 ssize_t ret = transport_->Read(data, len); in Read() local
23 if (ret < 0) { in Read()
28 return ret; in Read()
32 std::vector<char> buf(cdata, cdata + ret); in Read()
37 return ret; in Read()
43 size_t ret = transport_->Write(data, len); in Write() local
44 if (ret != len) { in Write()
49 return ret; in Write()
58 return ret; in Write()
67 int ret = transport_->Reset(); in Reset() local
[all …]
/system/memory/libdmabufheap/tests/
Ddmabuf_heap_bench.c48 int ret, fd; in ion_heap_open() local
51 ret = sprintf(buf, "%s", ION_DEVPATH); in ion_heap_open()
52 if (ret < 0) { in ion_heap_open()
54 return ret; in ion_heap_open()
64 int ret; in ion_heap_alloc() local
72 ret = ioctl(ionfd, ION_IOC_NEW_ALLOC, &alloc_data); in ion_heap_alloc()
76 return ret; in ion_heap_alloc()
80 int ret, fd; in dmabuf_heap_open() local
83 ret = sprintf(buf, "%s/%s", HEAP_DEVPATH, name); in dmabuf_heap_open()
84 if (ret < 0) { in dmabuf_heap_open()
[all …]

12345678910>>...24