Home
last modified time | relevance | path

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

12345678910>>...22

/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
44 if (int ret = RouteController::removeInterfaceFromDefaultNetwork(interface.c_str(), in removeFromDefault() local
49 if (int ret = delegate->removeFallthrough(interface, permission)) { in removeFromDefault() local
77 if (int ret = sd.destroySocketsLackingPermission(mNetId, permission, in destroySocketsLackingPermission() local
109 if (int ret = RouteController::modifyPhysicalNetworkPermission(mNetId, interface.c_str(), in setPermission() local
119 if (int ret = addToDefault(mNetId, interface, permission, mDelegate)) { in setPermission() local
122 if (int ret = removeFromDefault(mNetId, interface, mPermission, mDelegate)) { in setPermission() local
140 if (int ret = addToDefault(mNetId, interface, mPermission, mDelegate)) { in addAsDefault() local
153 if (int ret = removeFromDefault(mNetId, interface, mPermission, mDelegate)) { in removeAsDefault() local
[all …]
DRouteController.cpp261 if (int ret = padInterfaceName(iif, iifName, &iifLength, &iifPadding)) { in modifyIpRule() local
264 if (int ret = padInterfaceName(oif, oifName, &oifLength, &oifPadding)) { in modifyIpRule() local
319 if (int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr)) { in modifyIpRule() local
442 int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr); in modifyIpRoute() local
583 if (int ret = modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_VPN_OVERRIDE_OIF, in modifyOutputInterfaceRules() local
652 if (int ret = modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_LEGACY_SYSTEM, ROUTE_TABLE_LEGACY_SYSTEM, in addLegacyRouteRules() local
656 if (int ret = modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_LEGACY_NETWORK, in addLegacyRouteRules() local
671 if (int ret = modifyExplicitNetworkRule(localNetId, ROUTE_TABLE_LOCAL_NETWORK, PERMISSION_NONE, in addLocalNetworkRules() local
697 int ret = ifc_up(interface); in configureDummyNetwork() local
734 if (int ret = modifyIncomingPacketMark(netId, interface, PERMISSION_NONE, add)) { in modifyLocalNetwork() local
[all …]
DVirtualNetwork.cpp40 int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addUsers() local
55 int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(), mSecure, in removeUsers() local
70 if (int ret = RouteController::addInterfaceToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addInterface() local
83 if (int ret = RouteController::removeInterfaceFromVirtualNetwork(mNetId, interface.c_str(), in removeInterface() local
/system/core/libsuspend/
Dautosuspend.c46 int ret; in autosuspend_enable() local
69 int ret; in autosuspend_disable() local
92 int ret; in autosuspend_force_suspend() local
105 int ret; in autosuspend_set_wakeup_callback() local
Dautosuspend_wakeup_count.cpp87 int ret = sem_wait(&suspend_lockout); in suspend_thread_func() local
136 int ret = init_state_fd(); in autosuspend_init() local
174 int ret = autosuspend_init(); in autosuspend_wakeup_count_enable() local
197 int ret = sem_wait(&suspend_lockout); in autosuspend_wakeup_count_disable() local
211 int ret = init_state_fd(); in force_suspend() local
/system/libfmq/tests/
Dmsgq_test_client.cpp102 auto ret = mService->configureFmqSyncReadWrite(mq->dupeDesc(), &result); in configureFmqSyncReadWrite() local
107 auto ret = mService->requestReadFmqSync(dataLen, &result); in requestReadFmqSync() local
112 auto ret = mService->requestWriteFmqSync(dataLen, &result); in requestWriteFmqSync() local
131 auto ret = mService->configureFmqSyncReadWrite(*mq->getDesc()); in configureFmqSyncReadWrite() local
135 auto ret = mService->requestReadFmqSync(dataLen); in requestReadFmqSync() local
139 auto ret = mService->requestWriteFmqSync(dataLen); in requestWriteFmqSync() local
162 auto ret = service->getFmqUnsyncWrite(configureFmq, userFd, &desc, &result); in getFmqUnsyncWrite() local
177 auto ret = service->requestReadFmqUnsync(dataLen, &result); in requestReadFmqUnsync() local
182 auto ret = service->requestWriteFmqUnsync(dataLen, &result); in requestWriteFmqUnsync() local
213 [queue](bool ret, const MQDescriptorUnsync<int32_t>& in) { in getFmqUnsyncWrite()
[all …]
/system/bt/gd/os/android/
Dmetrics.cc54 int ret = android::util::stats_write( in LogMetricLinkLayerConnectionEvent() local
83 …int ret = android::util::stats_write(android::util::BLUETOOTH_HCI_TIMEOUT_REPORTED, static_cast<in… in LogMetricHciTimeoutEvent() local
91 int ret = android::util::stats_write( in LogMetricRemoteVersionInfo() local
112 int ret = android::util::stats_write( in LogMetricA2dpAudioUnderrunEvent() local
140 int ret = android::util::stats_write( in LogMetricA2dpAudioOverrunEvent() local
167 int ret = android::util::stats_write( in LogMetricA2dpPlaybackEvent() local
184 int ret = android::util::stats_write( in LogMetricReadRssiResult() local
203 int ret = android::util::stats_write( in LogMetricReadFailedContactCounterResult() local
227 int ret = android::util::stats_write( in LogMetricReadTxPowerLevelResult() local
251 int ret = android::util::stats_write( in LogMetricSmpPairingEvent() local
[all …]
Dsystem_properties_test.cc32 auto ret = GetSystemProperty("persist.bluetooth.factoryreset"); in TEST() local
53 auto ret = GetSystemProperty("persist.bluetooth.factoryreset"); in TEST() local
/system/memory/libion/
Dion.c66 int ret = close(fd); in ion_close() local
72 int ret = ioctl(fd, req, arg); in ion_ioctl() local
82 int ret = 0; in ion_is_using_modular_heaps() local
90 int ret = 0; in ion_alloc() local
116 int ret; in ion_map() local
142 int ret; in ion_share() local
163 int ret; in ion_alloc_fd() local
187 int ret; in ion_import() local
213 int ret; in ion_query_heap_cnt() local
227 int ret; in ion_query_get_heaps() local
/system/memory/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/hardware/interfaces/suspend/1.0/default/
DSystemSuspendAidlTest.cpp63 Status ret = suspendControlService->registerCallback(new WakeupCallback(), &isRegistered); in TEST_F() local
71 Status ret = suspendControlService->registerCallback(new WakeupCallback(), &isRegistered); in TEST_F() local
84 Status ret = suspendControlService->registerWakelockCallback(new WakelockCallback(), in TEST_F() local
94 Status ret = in TEST_F() local
110 Status ret = in TEST_F() local
127 Status ret = suspendControlService->registerWakelockCallback(callback1, kTestWakelockName, in TEST_F() local
/system/extras/bootctl/
Dbootctl.cpp95 static int handle_return(const Return<void>& ret, CommandResult cr, const char* errStr) { in handle_return()
108 Return<void> ret = module->markBootSuccessful(generate_callback(&cr)); in do_mark_boot_successful() local
120 Return<void> ret = module->setActiveBootSlot(slot_number, generate_callback(&cr)); in do_set_active_boot_slot() local
126 Return<void> ret = module->setSlotAsUnbootable(slot_number, generate_callback(&cr)); in do_set_slot_as_unbootable() local
130 static int handle_return(const Return<BoolResult>& ret, const char* errStr) { in handle_return()
144 Return<BoolResult> ret = module->isSlotBootable(slot_number); in do_is_slot_bootable() local
149 Return<BoolResult> ret = module->isSlotMarkedSuccessful(slot_number); in do_is_slot_marked_successful() local
201 MergeStatus ret = module->getSnapshotMergeStatus(); in do_get_snapshot_merge_status() local
212 Return<void> ret = module->getSuffix(slot_number, cb); in do_get_suffix() local
227 uint64_t ret = strtoul(argv[pos], NULL, 10); in parse_slot() 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/memory/libdmabufheap/
DBufferAllocator.cpp78 auto ret = dmabuf_heap_fds_.insert({heap_name, android::base::unique_fd(fd)}); in OpenDmabufHeap() local
93 int ret = ion_query_heap_cnt(ion_fd_, &heap_count); in QueryIonHeaps() local
145 auto ret = GetIonHeapIdByName(ion_heap_name, &ion_heap_id); in MapNameToIonName() local
164 int ret = OpenDmabufHeap(heap_name); in MapNameToIonHeap() local
178 int ret = 0; in GetIonConfig() local
218 auto ret = TEMP_FAILURE_RETRY(ioctl(fd, DMA_HEAP_IOCTL_ALLOC, &heap_data)); in DmabufAlloc() local
230 auto ret = GetIonConfig(heap_name, heap_config); in IonAlloc() local
272 auto ret = this->GetIonConfig(kDmabufSystemUncachedHeapName, heap_config); in AllocSystem() local
300 int ret = legacy_ion_cpu_sync_custom(new_ion_fd, dmabuf_fd, legacy_ion_custom_data); in LegacyIonCpuSync() local
324 int ret = DoSync(dmabuf_fd, true /* start */, sync_type, legacy_ion_cpu_sync_custom, in CpuSyncStart() local
[all …]
/system/bt/bta/hd/
Dbta_hd_act.cc84 tHID_STATUS ret; in bta_hd_api_enable() local
119 tHID_STATUS ret; in bta_hd_api_disable() local
157 tBTA_HD ret; in bta_hd_register_act() local
273 tHID_STATUS ret; in bta_hd_connect_act() local
307 tHID_STATUS ret; in bta_hd_disconnect_act() local
398 tHID_STATUS ret; in bta_hd_report_error_act() local
419 tHID_STATUS ret; in bta_hd_vc_unplug_act() local
505 tBTA_HD_INTR_DATA ret; in bta_hd_intr_data_act() local
544 tBTA_HD_GET_REPORT ret = {0, 0, 0}; in bta_hd_get_report_act() local
595 tBTA_HD_SET_REPORT ret = {0, 0, 0, NULL}; in bta_hd_set_report_act() local
/system/memory/libdmabufheap/tests/
Ddmabuf_heap_bench.c48 int ret, fd; in ion_heap_open() local
64 int ret; in ion_heap_alloc() local
80 int ret, fd; in dmabuf_heap_open() local
100 int ret; in dmabuf_heap_alloc() local
112 int ret; in dmabuf_sync() local
126 int ret; in ion_heap_bench() local
174 int ret; in dmabuf_heap_bench() local
/system/bpf/libbpf_android/
DBpfUtils.cpp70 int ret = -errno; in synchronizeKernelRCU() local
77 int ret = -errno; in synchronizeKernelRCU() local
99 int ret = uname(&buf); in kernelVersion() local
/system/update_engine/aosp/
Dboot_control_android.cc105 Return<BoolResult> ret = module_->isSlotBootable(slot); in IsSlotBootable() local
120 auto ret = module_->setSlotAsUnbootable(slot, StoreResultCallback(&result)); in MarkSlotUnbootable() local
135 auto ret = module_->setActiveBootSlot(slot, StoreResultCallback(&result)); in SetActiveBootSlot() local
151 auto ret = module_->markBootSuccessful(StoreResultCallback(&result)); in MarkBootSuccessfulAsync() local
166 Return<BoolResult> ret = module_->isSlotMarkedSuccessful(slot); in IsSlotMarkedSuccessful() 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/extras/ext4_utils/
Dext4_utils.cpp86 off64_t ret; in read_sb() local
185 int ret; in get_block_device_size() local
215 int ret; in get_file_size() local
242 ssize_t ret; in read_block_group_descriptors() local
279 off64_t ret; in read_ext() 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/core/libcutils/
Dpartition_utils.cpp30 int i, ret; in only_one_char() local
44 int fd, ret; in partition_wiped() 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/bt/osi/src/
Dsocket.cc52 socket_t* ret = (socket_t*)osi_calloc(sizeof(socket_t)); in socket_new() local
78 socket_t* ret = (socket_t*)osi_calloc(sizeof(socket_t)); in socket_new_from_fd() local
124 socket_t* ret = (socket_t*)osi_calloc(sizeof(socket_t)); in socket_accept() local
134 ssize_t ret; in socket_read() local
144 ssize_t ret; in socket_write() local
177 ssize_t ret; in socket_write_and_transfer_fd() local

12345678910>>...22