Lines Matching refs:res

124 #define RETURN_BINDER_STATUS_IF_NOT_OK(logEntry, res) \  argument
126 if (!isOk((res))) { \
127 logErrorStatus((logEntry), (res)); \
128 return asBinderStatus((res)); \
290 int res = gCtls->bandwidthCtrl.setInterfaceQuota(ifName, bytes); in bandwidthSetInterfaceQuota() local
291 return statusFromErrcode(res); in bandwidthSetInterfaceQuota()
296 int res = gCtls->bandwidthCtrl.removeInterfaceQuota(ifName); in bandwidthRemoveInterfaceQuota() local
297 return statusFromErrcode(res); in bandwidthRemoveInterfaceQuota()
303 int res = gCtls->bandwidthCtrl.setInterfaceAlert(ifName, bytes); in bandwidthSetInterfaceAlert() local
304 return statusFromErrcode(res); in bandwidthSetInterfaceAlert()
309 int res = gCtls->bandwidthCtrl.removeInterfaceAlert(ifName); in bandwidthRemoveInterfaceAlert() local
310 return statusFromErrcode(res); in bandwidthRemoveInterfaceAlert()
315 int res = gCtls->bandwidthCtrl.setGlobalAlert(bytes); in bandwidthSetGlobalAlert() local
316 return statusFromErrcode(res); in bandwidthSetGlobalAlert()
322 int res = gCtls->bandwidthCtrl.addNaughtyApps(appStrUids); in bandwidthAddNaughtyApp() local
323 return statusFromErrcode(res); in bandwidthAddNaughtyApp()
329 int res = gCtls->bandwidthCtrl.removeNaughtyApps(appStrUids); in bandwidthRemoveNaughtyApp() local
330 return statusFromErrcode(res); in bandwidthRemoveNaughtyApp()
336 int res = gCtls->bandwidthCtrl.addNiceApps(appStrUids); in bandwidthAddNiceApp() local
337 return statusFromErrcode(res); in bandwidthAddNiceApp()
343 int res = gCtls->bandwidthCtrl.removeNiceApps(appStrUids); in bandwidthRemoveNiceApp() local
344 return statusFromErrcode(res); in bandwidthRemoveNiceApp()
758 int res = in idletimerAddInterface() local
760 return statusFromErrcode(res); in idletimerAddInterface()
767 int res = gCtls->idletimerCtrl.removeInterfaceIdletimer(ifName.c_str(), timeout, in idletimerRemoveInterface() local
769 return statusFromErrcode(res); in idletimerRemoveInterface()
789 int res = gCtls->strictCtrl.setUidCleartextPenalty((uid_t) uid, penalty); in strictUidCleartextPenalty() local
790 return statusFromErrcode(res); in strictUidCleartextPenalty()
796 int res = gCtls->clatdCtrl.startClatd(ifName.c_str(), nat64Prefix, v6Addr); in clatdStart() local
797 return statusFromErrcode(res); in clatdStart()
802 int res = gCtls->clatdCtrl.stopClatd(ifName.c_str()); in clatdStop() local
803 return statusFromErrcode(res); in clatdStop()
822 int res = (gCtls->tetherCtrl.enableForwarding(requester.c_str())) ? 0 : -EREMOTEIO; in ipfwdEnableForwarding() local
823 return statusFromErrcode(res); in ipfwdEnableForwarding()
828 int res = (gCtls->tetherCtrl.disableForwarding(requester.c_str())) ? 0 : -EREMOTEIO; in ipfwdDisableForwarding() local
829 return statusFromErrcode(res); in ipfwdDisableForwarding()
835 int res = RouteController::enableTethering(fromIface.c_str(), toIface.c_str()); in ipfwdAddInterfaceForward() local
836 return statusFromErrcode(res); in ipfwdAddInterfaceForward()
842 int res = RouteController::disableTethering(fromIface.c_str(), toIface.c_str()); in ipfwdRemoveInterfaceForward() local
843 return statusFromErrcode(res); in ipfwdRemoveInterfaceForward()
893 const auto& res = InterfaceController::setCfg(cfg); in interfaceSetCfg() local
894 RETURN_BINDER_STATUS_IF_NOT_OK(entry, res); in interfaceSetCfg()
903 int res = InterfaceController::setIPv6PrivacyExtensions(ifName.c_str(), enable); in interfaceSetIPv6PrivacyExtensions() local
904 return statusFromErrcode(res); in interfaceSetIPv6PrivacyExtensions()
909 int res = InterfaceController::clearAddrs(ifName.c_str()); in interfaceClearAddrs() local
910 return statusFromErrcode(res); in interfaceClearAddrs()
915 int res = InterfaceController::setEnableIPv6(ifName.c_str(), enable); in interfaceSetEnableIPv6() local
916 return statusFromErrcode(res); in interfaceSetEnableIPv6()
922 int res = InterfaceController::setMtu(ifName.c_str(), mtu.c_str()); in interfaceSetMtu() local
923 return statusFromErrcode(res); in interfaceSetMtu()
939 int res = gCtls->tetherCtrl.startTethering(config.usingLegacyDnsProxy, config.dhcpRanges); in tetherStartWithConfiguration() local
940 return statusFromErrcode(res); in tetherStartWithConfiguration()
945 int res = gCtls->tetherCtrl.stopTethering(); in tetherStop() local
946 return statusFromErrcode(res); in tetherStop()
957 int res = gCtls->tetherCtrl.tetherInterface(ifName.c_str()); in tetherInterfaceAdd() local
958 return statusFromErrcode(res); in tetherInterfaceAdd()
963 int res = gCtls->tetherCtrl.untetherInterface(ifName.c_str()); in tetherInterfaceRemove() local
964 return statusFromErrcode(res); in tetherInterfaceRemove()
978 int res = gCtls->tetherCtrl.setDnsForwarders(netId, dnsAddrs); in tetherDnsSet() local
979 return statusFromErrcode(res); in tetherDnsSet()
998 int res = gCtls->netCtrl.addRoute(netId, route.ifName.c_str(), route.destination.c_str(), in networkAddRouteParcel() local
1001 return statusFromErrcode(res); in networkAddRouteParcel()
1012 int res = gCtls->netCtrl.updateRoute(netId, route.ifName.c_str(), route.destination.c_str(), in networkUpdateRouteParcel() local
1015 return statusFromErrcode(res); in networkUpdateRouteParcel()
1030 int res = gCtls->netCtrl.addRoute(netId, ifName.c_str(), destination.c_str(), in networkAddRoute() local
1032 return statusFromErrcode(res); in networkAddRoute()
1041 int res = gCtls->netCtrl.removeRoute(netId, ifName.c_str(), destination.c_str(), in networkRemoveRoute() local
1043 return statusFromErrcode(res); in networkRemoveRoute()
1051 int res = gCtls->netCtrl.addRoute(netId, ifName.c_str(), destination.c_str(), in networkAddLegacyRoute() local
1054 return statusFromErrcode(res); in networkAddLegacyRoute()
1063 int res = gCtls->netCtrl.removeRoute(netId, ifName.c_str(), destination.c_str(), in networkRemoveLegacyRoute() local
1066 return statusFromErrcode(res); in networkRemoveLegacyRoute()
1077 int res = gCtls->netCtrl.setDefaultNetwork(netId); in networkSetDefault() local
1078 return statusFromErrcode(res); in networkSetDefault()
1084 int res = gCtls->netCtrl.setDefaultNetwork(netId); in networkClearDefault() local
1085 return statusFromErrcode(res); in networkClearDefault()
1107 int res = gCtls->netCtrl.setPermissionForNetworks(convertPermission(permission), netIds); in networkSetPermissionForNetwork() local
1108 return statusFromErrcode(res); in networkSetPermissionForNetwork()
1156 int res = gCtls->firewallCtrl.setFirewallType(type); in firewallSetFirewallType() local
1157 return statusFromErrcode(res); in firewallSetFirewallType()
1165 int res = gCtls->firewallCtrl.setInterfaceRule(ifName.c_str(), rule); in firewallSetInterfaceRule() local
1166 return statusFromErrcode(res); in firewallSetInterfaceRule()
1175 int res = gCtls->firewallCtrl.setUidRule(chain, uid, rule); in firewallSetUidRule() local
1176 return statusFromErrcode(res); in firewallSetUidRule()
1183 int res = gCtls->firewallCtrl.enableChildChains(chain, enable); in firewallEnableChildChain() local
1184 return statusFromErrcode(res); in firewallEnableChildChain()
1206 int res = gCtls->tetherCtrl.enableNat(intIface.c_str(), extIface.c_str()); in tetherAddForward() local
1207 return statusFromErrcode(res); in tetherAddForward()
1213 int res = gCtls->tetherCtrl.disableNat(intIface.c_str(), extIface.c_str()); in tetherRemoveForward() local
1214 return statusFromErrcode(res); in tetherRemoveForward()
1302 int res = gCtls->tetherCtrl.setTetherOffloadInterfaceQuota(ifIndex, quotaBytes); in tetherOffloadSetInterfaceQuota() local
1303 return statusFromErrcode(res); in tetherOffloadSetInterfaceQuota()