Home
last modified time | relevance | path

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

12345678910>>...17

/aosp14/system/core/libstats/push_compat/include/
H A Dstats_event_list.h47 int ret; variable
61 ret = retval; in close()
75 ret = retval; in begin()
77 return ret; in begin()
84 return ret; in end()
153 if ((ret == -EBUSY) || (ret > 0)) {
154 ret = 0;
158 if (!ret) {
161 return ret;
208 return ret; in AppendString()
[all …]
/aosp14/system/core/libsuspend/
H A Dautosuspend.c46 int ret; in autosuspend_enable() local
49 if (ret) { in autosuspend_enable()
50 return ret; in autosuspend_enable()
60 if (ret) { in autosuspend_enable()
69 int ret; in autosuspend_disable() local
72 if (ret) { in autosuspend_disable()
83 if (ret) { in autosuspend_disable()
92 int ret; in autosuspend_force_suspend() local
95 if (ret) { in autosuspend_force_suspend()
105 int ret; in autosuspend_set_wakeup_callback() local
[all …]
H A Dautosuspend_wakeup_count.cpp137 if (ret < 0) { in autosuspend_init()
148 if (ret < 0) { in autosuspend_init()
154 if (ret) { in autosuspend_init()
175 if (ret < 0) { in autosuspend_wakeup_count_enable()
177 return ret; in autosuspend_wakeup_count_enable()
181 if (ret < 0) { in autosuspend_wakeup_count_enable()
187 return ret; in autosuspend_wakeup_count_enable()
199 if (ret < 0) { in autosuspend_wakeup_count_disable()
205 return ret; in autosuspend_wakeup_count_disable()
212 if (ret < 0) { in force_suspend()
[all …]
/aosp14/system/core/libsparse/
H A Dsparse_read.cpp110 int ret; in GetCrc32() local
215 int ret; in process_raw_chunk() local
249 int ret; in process_fill_chunk() local
329 int ret; in process_chunk() local
337 ret = in process_chunk()
378 int ret; in sparse_file_read_sparse() local
462 int ret; in do_sparse_file_read_normal() local
508 int ret; in sparse_file_read_normal() local
521 int ret; in sparse_file_read_hole() local
596 int ret; in sparse_file_import_source() local
[all …]
H A Doutput_file.cpp135 int ret; in file_pad() local
229 int ret; in gz_file_write() local
267 int ret; in callback_file_skip() local
307 int ret; in read_all() local
346 int ret; in write_sparse_skip_chunk() local
372 int ret; in write_sparse_fill_chunk() local
402 int ret; in write_sparse_data_chunk() local
453 int ret; in write_sparse_fd_chunk() local
507 int ret; in write_sparse_end_chunk() local
539 int ret; in write_normal_data_chunk() local
[all …]
H A Dsparse.cpp111 return ret; in sparse_file_write_block()
118 int ret = 0; in write_all_blocks() local
126 if (ret) return ret; in write_all_blocks()
147 int ret; in sparse_file_write() local
153 if (ret) return ret; in sparse_file_write()
165 return ret; in sparse_file_write()
170 int ret; in sparse_file_callback() local
183 return ret; in sparse_file_callback()
222 if (ret) return ret; in sparse_file_foreach_chunk()
237 int ret; in sparse_file_len() local
[all …]
/aosp14/system/core/trusty/keymaster/set_attestation_key/
H A Dset_attestation_key.cpp120 int ret; in set_attestation_key_or_cert_bin() local
128 if (ret) { in set_attestation_key_or_cert_bin()
138 int ret; in set_attestation_key_or_cert_pem() local
174 int ret; in set_attestation_key_or_cert_iecs() local
228 int ret; in set_attestation_key_or_cert() local
232 if (ret) { in set_attestation_key_or_cert()
248 int ret; in clear_cert_chain() local
253 if (ret) { in clear_cert_chain()
258 if (ret) { in clear_cert_chain()
266 int ret; in process_xml() local
[all …]
/aosp14/system/core/libstats/push_compat/
H A Dstatsd_writer.c78 int i, ret = 0; in statsdOpen() local
91 ret = -errno; in statsdOpen()
118 if ((ret >= 0) && (ret != sock)) { in statsdOpen()
121 ret = 0; in statsdOpen()
126 return ret; in statsdOpen()
157 ssize_t ret; in statsdWrite() local
248 ret = sock; in statsdWrite()
251 if (ret < 0) { in statsdWrite()
252 ret = -errno; in statsdWrite()
255 switch (ret) { in statsdWrite()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
H A DThermalManagerServiceMockingTest.java112 assertNotNull(ret); in verifyWrapperStatusOnCallbackError()
191 assertNotNull(ret); in getCurrentTemperatures_nullResult_aidl()
197 assertNotNull(ret); in getCurrentTemperatures_nullResult_aidl()
228 assertNotNull(ret); in getCurrentTemperatures_illegalArgument_aidl()
236 assertNotNull(ret); in getCurrentTemperatures_illegalArgument_aidl()
245 assertNotNull(ret); in getCurrentTemperatures_illegalState_aidl()
253 assertNotNull(ret); in getCurrentTemperatures_illegalState_aidl()
296 assertNotNull(ret); in getCurrentCoolingDevices_nullResult_aidl()
302 assertNotNull(ret); in getCurrentCoolingDevices_nullResult_aidl()
359 assertNotNull(ret); in getCurrentCoolingDevices_illegalArgument_aidl()
[all …]
/aosp14/system/core/trusty/utils/rpmb_dev/
H A Drpmb_dev.c117 int ret; in rpmb_file_seek() local
128 int ret; in rpmb_dev_program_key() local
138 if (ret) { in rpmb_dev_program_key()
163 int ret; in rpmb_dev_data_write() local
182 if (ret) { in rpmb_dev_data_write()
198 if (ret) { in rpmb_dev_data_write()
217 int ret; in rpmb_dev_data_read() local
226 if (ret != 0 && ret != RPMB_PACKET_DATA_SIZE) { in rpmb_dev_data_read()
446 int ret; in handle_conn() local
511 int ret; in main() local
[all …]
/aosp14/system/core/fastboot/fuzzy_fastboot/
H A Dtransport_sniffer.cpp23 if (ret < 0) { in Read()
28 return ret; in Read()
37 return ret; in Read()
44 if (ret != len) { in Write()
49 return ret; in Write()
58 return ret; in Write()
72 return ret; in Reset()
98 ret += '"'; in CreateTrace()
100 ret.insert(ret.end(), buf.begin(), iter); in CreateTrace()
152 if (ret.back() != '\n') ret += '\n'; in CreateTrace()
[all …]
/aosp14/system/core/libcutils/
H A Drecord_stream.cpp48 RecordStream *ret; in record_stream_new() local
54 ret->fd = fd; 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
138 if (ret != NULL) { in record_stream_get_next()
139 *p_outRecord = ret; in record_stream_get_next()
179 if (ret == NULL) { in record_stream_get_next()
[all …]
/aosp14/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
H A DIccUtils.java151 ret = ret.replaceAll("F", ""); in bcdPlmnToString()
153 return ret; in bcdPlmnToString()
232 int ret = 0; in gsmBcdByteToInt() local
243 return ret; in gsmBcdByteToInt()
255 int ret = 0; in cdmaBcdByteToInt() local
266 return ret; in cdmaBcdByteToInt()
301 return ret; in stringToAdnStringField()
454 byte[] ret; in hexStringToBytes()
467 return ret; in hexStringToBytes()
509 String ret; in networkNameToString() local
[all …]
/aosp14/frameworks/base/cmds/interrupter/
H A Dinterrupter.h29 #define CALL_FUNCTION_1(sym, ret, type1) \ argument
30 ret (*real_##sym)(type1) = NULL; \
31 ret sym(type1 arg1) { \
36 #define CALL_FUNCTION_2(sym, ret, type1, type2) \ argument
37 ret (*real_##sym)(type1, type2) = NULL; \
38 ret sym(type1 arg1, type2 arg2) { \
44 ret (*real_##sym)(type1, type2, type3) = NULL; \
45 ret sym(type1 arg1, type2 arg2, type3 arg3) { \
51 ret (*real_##sym)(type1, type2, type3, type4) = NULL; \
64 #define DEFINE_INTERCEPT_N(N, sym, ret, ...) \ argument
[all …]
/aosp14/system/core/trusty/metrics/
H A Dmetrics_test.cpp62 auto ret = Open(); in SetUp() local
63 ASSERT_TRUE(ret.ok()) << ret.error(); in SetUp()
73 auto ret = HandleEvent(); in DrainEvents() local
74 ASSERT_TRUE(ret.ok()) << ret.error(); in DrainEvents()
79 auto ret = WaitForEvent(30000 /* 30 second timeout */); in WaitForAndHandleEvent() local
80 ASSERT_TRUE(ret.ok()) << ret.error(); in WaitForAndHandleEvent()
82 ret = HandleEvent(); in WaitForAndHandleEvent()
83 ASSERT_TRUE(ret.ok()) << ret.error(); in WaitForAndHandleEvent()
125 auto ret = HandleEvent(); in TEST_F() local
126 ASSERT_TRUE(ret.ok()) << ret.error(); in TEST_F()
/aosp14/system/core/trusty/fuzz/
H A Dtipc_fuzzer.cpp56 auto ret = kTrustyApp.Connect(); in LLVMFuzzerInitialize() local
57 if (!ret.ok()) { in LLVMFuzzerInitialize()
58 std::cerr << ret.error() << std::endl; in LLVMFuzzerInitialize()
68 ret = record->Open(); in LLVMFuzzerInitialize()
69 if (!ret.ok()) { in LLVMFuzzerInitialize()
70 std::cerr << ret.error() << std::endl; in LLVMFuzzerInitialize()
82 auto ret = kTrustyApp.Write(data, size); in LLVMFuzzerTestOneInput() local
83 if (ret.ok()) { in LLVMFuzzerTestOneInput()
89 ret = kTrustyApp.Connect(); in LLVMFuzzerTestOneInput()
90 if (!ret.ok()) { in LLVMFuzzerTestOneInput()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/DisplayUtils/src/com/android/settingslib/display/
H A DBrightnessUtils.java57 final float ret; in convertGammaToLinear() local
59 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinear()
61 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinear()
66 return Math.round(MathUtils.lerp(min, max, ret / 12)); in convertGammaToLinear()
80 final float ret; in convertGammaToLinearFloat() local
82 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinearFloat()
84 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinearFloat()
89 final float normalizedRet = MathUtils.constrain(ret, 0, 12); in convertGammaToLinearFloat()
133 final float ret; in convertLinearToGammaFloat() local
135 ret = MathUtils.sqrt(normalizedVal) * R; in convertLinearToGammaFloat()
[all …]
/aosp14/frameworks/base/libs/usb/tests/accessorytest/
H A Dusb.c46 int ret = 0; in read_thread() local
48 while (current_device && ret >= 0) { in read_thread()
52 if (ret < 0 && errno == ETIMEDOUT) in read_thread()
53 ret = 0; in read_thread()
54 if (ret > 0) { in read_thread()
65 int ret = 0; in write_thread() local
67 while (ret >= 0) { in write_thread()
88 int ret; in usb_device_added() local
159 if (ret < 0) { in usb_device_added()
176 if (ret < 0) in usb_device_added()
[all …]
/aosp14/frameworks/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp38 int ret; in get_block_device_size() local
40 ret = ioctl(fd, BLKGETSIZE64, &size); in get_block_device_size()
42 if (ret) in get_block_device_size()
51 int ret; in wipe_block_device() local
60 ret = ioctl(fd, BLKSECDISCARD, &range); in wipe_block_device()
61 if (ret < 0) { in wipe_block_device()
65 ret = ioctl(fd, BLKDISCARD, &range); in wipe_block_device()
66 if (ret < 0) { in wipe_block_device()
76 return ret; in wipe_block_device()
101 const int ret = wipe_block_device(fd); in com_android_server_PersistentDataBlockService_wipe() local
[all …]
/aosp14/frameworks/base/native/android/
H A Dperformance_hint.cpp126 if (!ret.isOk()) { in create()
128 ret.exceptionMessage().c_str()); in create()
141 binder::Status ret = in createSession() local
143 if (!ret.isOk() || !session) { in createSession()
174 if (!ret.isOk()) { in ~APerformanceHintSession()
185 if (!ret.isOk()) { in updateTargetWorkDuration()
231 binder::Status ret = in reportActualWorkDuration() local
233 if (!ret.isOk()) { in reportActualWorkDuration()
260 if (!ret.isOk()) { in sendHint()
275 if (!ret.isOk()) { in setThreads()
[all …]
/aosp14/system/core/libnetutils/
H A Difc_utils.c101 int ret; in string_to_ip() local
119 ret = (ret == EAI_SYSTEM) ? -errno : -EINVAL; in string_to_ip()
122 return ret; in string_to_ip()
127 int ret; in ifc_init() local
139 return ret; in ifc_init()
220 return ret; in ifc_up()
227 return ret; in ifc_down()
241 int ret; in ifc_set_addr() local
248 return ret; in ifc_set_addr()
286 if (ret) { in ifc_act_on_address()
[all …]
/aosp14/system/core/libsync/
H A Dsync.c127 int ret; in sync_wait() local
151 return ret; in sync_wait()
157 int ret; in legacy_sync_merge() local
162 if (ret < 0) in legacy_sync_merge()
170 int ret; in modern_sync_merge() local
178 if (ret < 0) in modern_sync_merge()
186 int ret; in sync_merge() local
206 return ret; in sync_merge()
414 int ret; in sw_sync_timeline_create() local
417 if (ret < 0) in sw_sync_timeline_create()
[all …]
/aosp14/frameworks/base/core/jni/
H A Dandroid_os_SystemProperties.cpp84 jstring ret = defJ; in SystemProperties_getSS() local
93 return ret; in SystemProperties_getSS()
100 T ret = defJ; in SystemProperties_get_integral() local
104 return ret; in SystemProperties_get_integral()
108 jboolean ret; in jbooleanFromParseBoolResult() local
111 ret = defJ; in jbooleanFromParseBoolResult()
120 return ret; in jbooleanFromParseBoolResult()
150 jstring ret; in SystemProperties_getH() local
155 return ret; in SystemProperties_getH()
161 T ret = defJ; in SystemProperties_get_integralH() local
[all …]
/aosp14/system/core/fastboot/
H A Dusb_windows.cpp108 if (nullptr == ret->adb_interface) { in do_usb_open()
115 ret->adb_read_pipe = in do_usb_open()
119 if (nullptr != ret->adb_read_pipe) { in do_usb_open()
121 ret->adb_write_pipe = in do_usb_open()
125 if (nullptr != ret->adb_write_pipe) { in do_usb_open()
142 return ret; in do_usb_open()
150 usb_cleanup_handle(ret.get()); in do_usb_open()
160 int ret; in Write() local
171 if (ret == 0) { in Write()
199 int ret; in Read() local
[all …]
/aosp14/system/core/storaged/
H A Dstoraged.cpp86 HealthServicePair ret; in get() local
99 ret.aidl_health = ndk::SharedRefBase::make<HealthShim>(ret.hidl_health); in get()
106 return ret; in get()
148 if (!ret.isOk()) { in init_health_service()
159 if (!ret.isOk()) { in init_health_service()
166 if (!ret.isOk()) { in init_health_service()
174 if (ret != STATUS_OK) { in init_health_service()
312 ssize_t ret; in flush_proto_data() local
318 if (ret <= 0) { in flush_proto_data()
331 size -= ret; in flush_proto_data()
[all …]

12345678910>>...17