Home
last modified time | relevance | path

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

12345678910>>...23

/system/media/camera/src/
Dcamera_metadata_tag_info.c851 int ret = -1; in camera_metadata_enum_snprint() local
858 ret = 0; in camera_metadata_enum_snprint()
862 ret = 0; in camera_metadata_enum_snprint()
866 ret = 0; in camera_metadata_enum_snprint()
883 ret = 0; in camera_metadata_enum_snprint()
887 ret = 0; in camera_metadata_enum_snprint()
891 ret = 0; in camera_metadata_enum_snprint()
906 ret = 0; in camera_metadata_enum_snprint()
910 ret = 0; in camera_metadata_enum_snprint()
914 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/core/liblog/
Dlogd_reader.cpp68 ssize_t ret; in SendLogdControlMessage() local
78 ret = TEMP_FAILURE_RETRY(write(sock, buf, len)); in SendLogdControlMessage()
79 if (ret <= 0) { in SendLogdControlMessage()
85 while ((ret = TEMP_FAILURE_RETRY(read(sock, cp, len))) > 0) { in SendLogdControlMessage()
88 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) { in SendLogdControlMessage()
92 len -= ret; in SendLogdControlMessage()
93 cp += ret; in SendLogdControlMessage()
100 ret = TEMP_FAILURE_RETRY(poll(&p, 1, 20)); in SendLogdControlMessage()
102 if (ret <= 0) { in SendLogdControlMessage()
107 ret = 0; in SendLogdControlMessage()
[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()
Dlog_time.cpp51 char* ret = const_cast<char*>(s); in strptime() local
56 ret = ::strptime(ret, f, ptm); in strptime()
69 ret = ::strptime(ret, f, ptm); in strptime()
70 if (!ret) { in strptime()
75 while (isdigit(*ret)) { in strptime()
76 tv_sec = tv_sec * 10 + *ret - '0'; in strptime()
77 ++ret; in strptime()
98 ret = ::strptime(ret, f, ptm); in strptime()
99 if (!ret) { in strptime()
108 while (isdigit(*ret) && num && (mul > 1)) { in strptime()
[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/bpf/libbpf_android/
DLoader.cpp109 int ret = 0; in readSectionHeadersAll() local
111 ret = readElfHeader(elfFile, &eh); in readSectionHeadersAll()
112 if (ret) return ret; in readSectionHeadersAll()
128 int entries, ret = 0; in readSectionByIdx() local
130 ret = readSectionHeadersAll(elfFile, shTable); in readSectionByIdx()
131 if (ret) return ret; in readSectionByIdx()
146 int ret = 0; in readSectionHeaderStrtab() local
148 ret = readElfHeader(elfFile, &eh); in readSectionHeaderStrtab()
149 if (ret) return ret; in readSectionHeaderStrtab()
151 ret = readSectionByIdx(elfFile, eh.e_shstrndx, strtab); in readSectionHeaderStrtab()
[all …]
/system/core/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/security/keystore/
Dkeystore_cli.cpp57 int32_t ret = -1; \
58 service->cmd(String16(argv[2]), &ret); \
59 if (ret < 0) { \
60 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
63 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
76 int32_t ret = -1; \
77 service->cmd(atoi(argv[2]), &ret); \
78 if (ret < 0) { \
79 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
82 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
[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/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/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/tools/aidl/tests/
Daidl_test_client_primitives.cpp187 String16 ret; in ConfirmReverseBinderLists() local
190 status = named_callback->GetName(&ret); in ConfirmReverseBinderLists()
197 if (ret != names[i]) { in ConfirmReverseBinderLists()
204 String16 ret; in ConfirmReverseBinderLists() local
207 status = named_callback->GetName(&ret); in ConfirmReverseBinderLists()
214 if (ret != names[2 - i]) { in ConfirmReverseBinderLists()
225 bool ret = true; in ConfirmIntfConstantExpressions() local
229 ret = false; in ConfirmIntfConstantExpressions()
233 ret = false; in ConfirmIntfConstantExpressions()
237 ret = false; in ConfirmIntfConstantExpressions()
[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/libstats/socket/
Dstatsd_writer.c80 int i, ret = 0; in statsdOpen() local
93 ret = -errno; in statsdOpen()
107 ret = -errno; in statsdOpen()
108 switch (ret) { in statsdOpen()
112 i = atomic_exchange(&statsdLoggerWrite.sock, ret); in statsdOpen()
119 ret = atomic_exchange(&statsdLoggerWrite.sock, sock); in statsdOpen()
120 if ((ret >= 0) && (ret != sock)) { in statsdOpen()
121 close(ret); in statsdOpen()
123 ret = 0; in statsdOpen()
128 return ret; in statsdOpen()
[all …]
/system/bt/btif/src/
Dbtif_sock_util.cc67 ssize_t ret; in sock_send_all() local
68 OSI_NO_INTR(ret = send(sock_fd, buf, s, 0)); in sock_send_all()
69 if (ret <= 0) { in sock_send_all()
70 BTIF_TRACE_ERROR("sock fd:%d send errno:%d, ret:%d", sock_fd, errno, ret); in sock_send_all()
73 buf += ret; in sock_send_all()
74 s -= ret; in sock_send_all()
82 ssize_t ret; in sock_recv_all() local
83 OSI_NO_INTR(ret = recv(sock_fd, buf, r, MSG_WAITALL)); in sock_recv_all()
84 if (ret <= 0) { in sock_recv_all()
85 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/libfmq/tests/
Dmsgq_test_client.cpp61 [fmq](bool ret, const MQDescriptorUnsync<uint16_t>& in) { in getQueue() argument
62 ASSERT_TRUE(ret); in getQueue()
106 [this](bool ret, const MQDescriptorUnsync<uint16_t>& in) { in SetUp() argument
107 ASSERT_TRUE(ret); in SetUp()
160 auto ret = testService->requestWriteFmqUnsync(numMessagesMax); in TEST_F() local
161 ASSERT_TRUE(ret.isOk()); in TEST_F()
162 ASSERT_TRUE(ret); in TEST_F()
164 ret = testService->requestWriteFmqUnsync(1); in TEST_F()
165 ASSERT_TRUE(ret.isOk()); in TEST_F()
166 ASSERT_TRUE(ret); in TEST_F()
[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/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 …]

12345678910>>...23