Home
last modified time | relevance | path

Searched defs:ret (Results 1 – 25 of 404) sorted by relevance

12345678910>>...17

/system/netd/server/
DPhysicalNetwork.cpp32 if (int ret = RouteController::addInterfaceToDefaultNetwork(interface.c_str(), permission)) { in addToDefault() local
36 if (int ret = delegate->addFallthrough(interface, permission)) { in addToDefault() local
45 if (int ret = RouteController::removeInterfaceFromDefaultNetwork(interface.c_str(), in removeFromDefault() local
50 if (int ret = delegate->removeFallthrough(interface, permission)) { in removeFromDefault() local
80 if (int ret = sd.destroySocketsLackingPermission(mNetId, permission, in destroySocketsLackingPermission() local
112 if (int ret = RouteController::modifyPhysicalNetworkPermission(mNetId, interface.c_str(), in setPermission() local
122 if (int ret = addToDefault(mNetId, interface, permission, mDelegate)) { in setPermission() local
125 if (int ret = removeFromDefault(mNetId, interface, mPermission, mDelegate)) { in setPermission() local
143 if (int ret = addToDefault(mNetId, interface, mPermission, mDelegate)) { in addAsDefault() local
156 if (int ret = removeFromDefault(mNetId, interface, mPermission, mDelegate)) { in removeAsDefault() local
[all …]
DVirtualNetwork.cpp60 if (int ret = sd.destroySockets(uidRanges, protectableUsers, true /* excludeLoopback */)) { in maybeCloseSockets() local
73 if (int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addUsers() local
88 if (int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(), in removeUsers() local
106 if (int ret = RouteController::addInterfaceToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addInterface() local
119 if (int ret = RouteController::removeInterfaceFromVirtualNetwork(mNetId, interface.c_str(), in removeInterface() local
DRouteController.cpp242 if (int ret = padInterfaceName(iif, iifName, &iifLength, &iifPadding)) { in modifyIpRule() local
245 if (int ret = padInterfaceName(oif, oifName, &oifLength, &oifPadding)) { in modifyIpRule() local
300 if (int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr)) { in modifyIpRule() local
416 int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr); in modifyIpRoute() local
553 if (int ret = modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_VPN_OVERRIDE_OIF, in modifyOutputInterfaceRules() local
624 if (int ret = modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_LEGACY_SYSTEM, ROUTE_TABLE_LEGACY_SYSTEM, in addLegacyRouteRules() local
628 if (int ret = modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_LEGACY_NETWORK, in addLegacyRouteRules() local
643 if (int ret = modifyExplicitNetworkRule(localNetId, ROUTE_TABLE_LOCAL_NETWORK, PERMISSION_NONE, in addLocalNetworkRules() local
667 int ret = ifc_up(interface); in configureDummyNetwork() local
717 if (int ret = modifyIncomingPacketMark(netId, interface, PERMISSION_NONE, add)) { in modifyLocalNetwork() local
[all …]
/system/extras/bootctl/
Dbootctl.cpp83 static int handle_return(const Return<void> &ret, CommandResult cr, const char* errStr) { in handle_return()
97 Return<void> ret = module->markBootSuccessful(generate_callback(&cr)); in do_mark_boot_successful() local
105 Return<void> ret = module->setActiveBootSlot(slot_number, generate_callback(&cr)); in do_set_active_boot_slot() local
113 Return<void> ret = module->setSlotAsUnbootable(slot_number, generate_callback(&cr)); in do_set_slot_as_unbootable() local
117 static int handle_return(const Return<BoolResult> &ret, const char* errStr) { in handle_return()
132 Return<BoolResult> ret = module->isSlotBootable(slot_number); in do_is_slot_bootable() local
139 Return<BoolResult> ret = module->isSlotMarkedSuccessful(slot_number); in do_is_slot_marked_successful() local
148 Return<void> ret = module->getSuffix(slot_number, cb); in do_get_suffix() local
165 uint64_t ret = strtoul(argv[pos], NULL, 10); in parse_slot() local
177 int ret; in main() local
/system/libfmq/tests/
Dmsgq_test_client.cpp61 [fmq](bool ret, const MQDescriptorUnsync<uint16_t>& in) { in getQueue()
79 bool ret, const MQDescriptorSync<uint16_t>& in) { in SetUp()
104 [this](bool ret, const MQDescriptorUnsync<uint16_t>& in) { in SetUp()
158 auto ret = testService->requestWriteFmqUnsync(numMessagesMax); in TEST_F() local
212 auto ret = testService->requestWriteFmqUnsync(dataLen); in TEST_F() local
241 bool ret = mQueue->writeBlocking(data, in TEST_F() local
268 bool ret = mQueue->writeBlocking(&data[0], in TEST_F() local
298 bool ret = mQueue->writeBlocking( in TEST_F() local
326 bool ret = mQueue->writeBlocking( in TEST_F() local
353 bool ret = mQueue->writeBlocking( in TEST_F() local
[all …]
/system/core/libion/tests/
Dinvalid_values_test.cpp60 int ret = ion_alloc(0, 4096, 0, m_firstHeap, 0, &handle); in TEST_F() local
83 int ret = ion_alloc_fd(0, 4096, 0, m_firstHeap, 0, &fd); in TEST_F() local
105 int ret = ion_free(0, m_validHandle); in TEST_F() local
121 int ret = ion_map(0, m_validHandle, 4096, PROT_READ, 0, 0, &ptr, &map_fd); in TEST_F() local
146 int ret = ion_share(0, m_validHandle, &share_fd); in TEST_F() local
163 int ret = ion_import(0, m_validShareFd, &handle); in TEST_F() local
178 int ret = ion_sync_fd(0, m_validShareFd); in TEST_F() local
/system/update_engine/
Dboot_control_recovery.cc58 int ret; in Init() local
143 int ret = module_->isSlotBootable(module_, slot); in IsSlotBootable() local
153 int ret = module_->setSlotAsUnbootable(module_, slot); in MarkSlotUnbootable() local
163 int ret = module_->setActiveBootSlot(module_, slot); in SetActiveBootSlot() local
173 int ret = module_->markBootSuccessful(module_); in MarkBootSuccessfulAsync() local
Dboot_control_android.cc114 Return<void> ret = module_->getSuffix(slot, store_suffix_cb); in GetPartitionDevice() local
133 Return<BoolResult> ret = module_->isSlotBootable(slot); in IsSlotBootable() local
149 auto ret = module_->setSlotAsUnbootable(slot, StoreResultCallback(&result)); in MarkSlotUnbootable() local
165 auto ret = module_->setActiveBootSlot(slot, StoreResultCallback(&result)); in SetActiveBootSlot() local
181 auto ret = module_->markBootSuccessful(StoreResultCallback(&result)); in MarkBootSuccessfulAsync() local
/system/bt/tools/mcap_tool/
Dmcap_test_mdl.cc65 tMCA_RESULT ret = _mcap_test_interface->close_mdl_request(_mdl_handle); in UpdateContext() local
75 tMCA_RESULT ret = _mcap_test_interface->create_mdl_request( in Create() local
87 tMCA_RESULT ret = _mcap_test_interface->close_mdl_request(_mdl_handle); in Close() local
93 tMCA_RESULT ret = _mcap_test_interface->reconnect_mdl_request( in Reconnect() local
100 tMCA_RESULT ret = _mcap_test_interface->reconnect_mdl_response( in ReconnectResponse() local
108 tMCA_RESULT ret = _mcap_test_interface->create_mdl_response( in CreateResponse() local
/system/core/libcutils/
Dashmem-dev.c51 int ret; in __ashmem_open_locked() local
152 int ret, save_errno; in ashmem_create_region() local
185 int ret = __ashmem_is_ashmem(fd, 1); in ashmem_set_prot_region() local
197 int ret = __ashmem_is_ashmem(fd, 1); in ashmem_pin_region() local
209 int ret = __ashmem_is_ashmem(fd, 1); in ashmem_unpin_region() local
219 int ret = __ashmem_is_ashmem(fd, 1); in ashmem_get_size_region() local
Dstrdup8to16.c45 char16_t *ret; in strdup8to16() local
114 uint32_t ret; in getUtf32FromUtf8() local
157 uint32_t ret; in strcpy8to16() local
194 uint32_t ret; in strcpylen8to16() local
Dpartition_utils.c28 int i, ret; in only_one_char() local
43 int fd, ret; in partition_wiped() local
/system/core/libmemunreachable/
DLeakPipe.h39 int ret = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sv_); in LeakPipe() local
102 ssize_t ret = TEMP_FAILURE_RETRY(write(fd_, &value, sizeof(T))); in Send() local
121 ssize_t ret = TEMP_FAILURE_RETRY(write(fd_, vector.data(), size)); in SendVector() local
140 ssize_t ret = TEMP_FAILURE_RETRY(read(fd_, reinterpret_cast<void*>(value), sizeof(T))); in Receive() local
163 ssize_t ret = TEMP_FAILURE_RETRY(read(fd_, ptr, size)); in ReceiveVector() local
DScopedPipe.h29 int ret = pipe2(pipefd_, O_CLOEXEC); variable
60 int ret = Receiver(); in ReleaseReceiver() local
66 int ret = Sender(); in ReleaseSender() local
/system/core/libion/
Dion.c45 int ret = close(fd); in ion_close() local
53 int ret = ioctl(fd, req, arg); in ion_ioctl() local
65 int ret; in ion_alloc() local
94 int ret; in ion_map() local
124 int ret; in ion_share() local
146 int ret; in ion_alloc_fd() local
158 int ret; in ion_import() local
/system/bt/bta/hd/
Dbta_hd_act.cc86 tHID_STATUS ret; in bta_hd_api_enable() local
121 tHID_STATUS ret; in bta_hd_api_disable() local
157 tBTA_HD ret; in bta_hd_register_act() local
271 tHID_STATUS ret; in bta_hd_connect_act() local
305 tHID_STATUS ret; in bta_hd_disconnect_act() local
396 tHID_STATUS ret; in bta_hd_report_error_act() local
417 tHID_STATUS ret; in bta_hd_vc_unplug_act() local
503 tBTA_HD_INTR_DATA ret; in bta_hd_intr_data_act() local
540 tBTA_HD_GET_REPORT ret = {0, 0, 0}; in bta_hd_get_report_act() local
589 tBTA_HD_SET_REPORT ret = {0, 0, 0, NULL}; in bta_hd_set_report_act() local
/system/chre/platform/linux/
Dsystem_timer.cc48 int ret = timer_delete(mTimerId); in ~SystemTimer() local
66 int ret = timer_create(CLOCK_MONOTONIC, &sigevt, &mTimerId); in init() local
107 int ret = timer_gettime(mTimerId, &spec); in isActive() local
126 int ret = timer_settime(mTimerId, kFlags, &spec, nullptr); in setInternal() local
/system/gatekeeper/tests/
Dgatekeeper_device_test.cpp40 int ret; in gatekeeper_device_initialize() local
61 int ret; in TEST_F() local
85 int ret; in TEST_F() local
112 int ret; in TEST_F() local
156 int ret; in TEST_F() local
181 int ret; in TEST_F() local
208 int ret; in TEST_F() local
232 int ret; in TEST_F() local
/system/core/libsuspend/
Dautosuspend_wakeup_count.c63 int ret; in suspend_thread_func() local
123 int ret; in autosuspend_wakeup_count_enable() local
142 int ret; in autosuspend_wakeup_count_disable() local
174 int ret; in autosuspend_wakeup_count_init() local
/system/libfmq/benchmarks/
Dmsgq_benchmark_client.cpp94 service->configureClientOutboxSyncReadWrite([this](bool ret, in SetUp()
95 const MQDescriptorSync<uint8_t>& out) { in SetUp()
159 bool ret = service->requestWrite(kQueueSize); in TEST_F() local
193 bool ret = service->requestWrite(kQueueSize); in TEST_F() local
226 bool ret = service->requestWrite(kQueueSize); in TEST_F() local
258 bool ret = service->requestWrite(kQueueSize); in TEST_F() local
304 bool ret = service->requestRead(kQueueSize); in TEST_F() local
337 bool ret = service->requestRead(kQueueSize); in TEST_F() local
369 bool ret = service->requestRead(kQueueSize); in TEST_F() local
405 bool ret = service->requestRead(kQueueSize); in TEST_F() local
/system/security/keystore/
DIKeystoreService.cpp129 ResponseCode ret = ResponseCode(reply.readInt32()); in getState() local
588 ResponseCode ret = ResponseCode(reply.readInt32()); in generateKey() local
615 ResponseCode ret = ResponseCode(reply.readInt32()); in getKeyCharacteristics() local
643 ResponseCode ret = ResponseCode(reply.readInt32()); in importKey() local
870 ResponseCode ret = ResponseCode(reply.readInt32()); in attestKey() local
895 ResponseCode ret = ResponseCode(reply.readInt32()); in attestDeviceIds() local
933 int32_t ret = getState(userId); in onTransact() local
943 auto ret = get(name, uid, &out); in onTransact() local
959 int32_t ret = insert(name, in.value(), uid, flags); in onTransact() local
968 int32_t ret = del(name, uid); in onTransact() local
[all …]
/system/bt/osi/src/
Dsocket.cc52 socket_t* ret = (socket_t*)osi_calloc(sizeof(socket_t)); in socket_new() local
80 socket_t* ret = (socket_t*)osi_calloc(sizeof(socket_t)); in socket_new_from_fd() local
127 socket_t* ret = (socket_t*)osi_calloc(sizeof(socket_t)); in socket_accept() local
137 ssize_t ret; in socket_read() local
147 ssize_t ret; in socket_write() local
180 ssize_t ret; in socket_write_and_transfer_fd() local
/system/extras/tests/storage/
Dwipe_blkdev.c41 int ret; in get_block_device_size() local
54 int ret; in wipe_block_device() local
87 int ret; in main() local
/system/core/libsparse/
Doutput_file.c128 off64_t ret; in file_skip() local
141 int ret; in file_pad() local
154 ssize_t ret; in file_write() local
205 off64_t ret; in gz_file_skip() local
218 off64_t ret; in gz_file_pad() local
242 int ret; in gz_file_write() local
284 int ret; in callback_file_skip() local
328 int ret; in read_all() local
350 int ret; in write_sparse_skip_chunk() local
378 int ret; in write_sparse_fill_chunk() local
[all …]
/system/extras/tests/directiotest/
Ddirectiotest.c54 void *ret = mmap(NULL, size, PROT_READ | PROT_WRITE, in pagealign_alloc() local
66 int ret = munmap(addr, size); in pagealign_free() local
73 ssize_t ret; in do_read() local
95 ssize_t ret; in do_write() local
172 int ret = 1; in main() local

12345678910>>...17