Lines Matching refs:binder
70 binder::Status checkAnyPermission(const std::vector<const char*>& permissions) { in checkAnyPermission()
86 return binder::Status::ok(); in checkAnyPermission()
94 return binder::Status::ok(); in checkAnyPermission()
101 return binder::Status::ok(); in checkAnyPermission()
107 return binder::Status::fromExceptionCode(binder::Status::EX_SECURITY, err.c_str()); in checkAnyPermission()
112 binder::Status status = checkAnyPermission({__VA_ARGS__}); \
139 binder::Status asBinderStatus(const netdutils::Status& status) { in asBinderStatus()
141 return binder::Status::ok(); in asBinderStatus()
143 return binder::Status::fromServiceSpecificError(status.code(), status.msg().c_str()); in asBinderStatus()
147 binder::Status asBinderStatus(const base::Result<T> result) { in asBinderStatus()
148 if (result.ok()) return binder::Status::ok(); in asBinderStatus()
150 return binder::Status::fromServiceSpecificError(result.error().code(), in asBinderStatus()
154 inline binder::Status statusFromErrcode(int ret) { in statusFromErrcode()
156 return binder::Status::fromServiceSpecificError(-ret, strerror(-ret)); in statusFromErrcode()
158 return binder::Status::ok(); in statusFromErrcode()
191 const binder::Status dump_permission = checkAnyPermission({PERM_DUMP}); in dump()
262 binder::Status NetdNativeService::isAlive(bool *alive) { in isAlive()
267 return binder::Status::ok(); in isAlive()
270 binder::Status NetdNativeService::firewallReplaceUidChain(const std::string& chainName, in firewallReplaceUidChain()
277 return binder::Status::ok(); in firewallReplaceUidChain()
280 binder::Status NetdNativeService::bandwidthEnableDataSaver(bool enable, bool *ret) { in bandwidthEnableDataSaver()
284 return binder::Status::ok(); in bandwidthEnableDataSaver()
287 binder::Status NetdNativeService::bandwidthSetInterfaceQuota(const std::string& ifName, in bandwidthSetInterfaceQuota()
294 binder::Status NetdNativeService::bandwidthRemoveInterfaceQuota(const std::string& ifName) { in bandwidthRemoveInterfaceQuota()
300 binder::Status NetdNativeService::bandwidthSetInterfaceAlert(const std::string& ifName, in bandwidthSetInterfaceAlert()
307 binder::Status NetdNativeService::bandwidthRemoveInterfaceAlert(const std::string& ifName) { in bandwidthRemoveInterfaceAlert()
313 binder::Status NetdNativeService::bandwidthSetGlobalAlert(int64_t bytes) { in bandwidthSetGlobalAlert()
319 binder::Status NetdNativeService::bandwidthAddNaughtyApp(int32_t uid) { in bandwidthAddNaughtyApp()
326 binder::Status NetdNativeService::bandwidthRemoveNaughtyApp(int32_t uid) { in bandwidthRemoveNaughtyApp()
333 binder::Status NetdNativeService::bandwidthAddNiceApp(int32_t uid) { in bandwidthAddNiceApp()
340 binder::Status NetdNativeService::bandwidthRemoveNiceApp(int32_t uid) { in bandwidthRemoveNiceApp()
347 binder::Status NetdNativeService::networkCreatePhysical(int32_t netId, int32_t permission) { in networkCreatePhysical()
353 binder::Status NetdNativeService::networkCreateVpn(int32_t netId, bool secure) { in networkCreateVpn()
359 binder::Status NetdNativeService::networkDestroy(int32_t netId) { in networkDestroy()
366 binder::Status NetdNativeService::networkAddInterface(int32_t netId, const std::string& iface) { in networkAddInterface()
372 binder::Status NetdNativeService::networkRemoveInterface(int32_t netId, const std::string& iface) { in networkRemoveInterface()
378 binder::Status NetdNativeService::networkAddUidRanges( in networkAddUidRanges()
386 binder::Status NetdNativeService::networkRemoveUidRanges( in networkRemoveUidRanges()
394 binder::Status NetdNativeService::networkRejectNonSecureVpn( in networkRejectNonSecureVpn()
413 binder::Status NetdNativeService::socketDestroy(const std::vector<UidRangeParcel>& uids, in socketDestroy()
419 return binder::Status::fromServiceSpecificError(EIO, in socketDestroy()
427 return binder::Status::fromServiceSpecificError(-err, in socketDestroy()
430 return binder::Status::ok(); in socketDestroy()
433 binder::Status NetdNativeService::tetherApplyDnsInterfaces(bool *ret) { in tetherApplyDnsInterfaces()
436 return binder::Status::ok(); in tetherApplyDnsInterfaces()
493 binder::Status NetdNativeService::tetherGetStats( in tetherGetStats()
502 return binder::Status::ok(); in tetherGetStats()
505 binder::Status NetdNativeService::interfaceAddAddress(const std::string &ifName, in interfaceAddAddress()
511 return binder::Status::fromServiceSpecificError(-err, in interfaceAddAddress()
514 return binder::Status::ok(); in interfaceAddAddress()
517 binder::Status NetdNativeService::interfaceDelAddress(const std::string &ifName, in interfaceDelAddress()
523 return binder::Status::fromServiceSpecificError(-err, in interfaceDelAddress()
526 return binder::Status::ok(); in interfaceDelAddress()
531 std::tuple<binder::Status, const char*, const char*> getPathComponents(int32_t ipversion, in getPathComponents()
542 return {binder::Status::fromServiceSpecificError(EAFNOSUPPORT, "Bad IP version"), in getPathComponents()
555 return {binder::Status::fromServiceSpecificError(EINVAL, "Bad category"), nullptr, in getPathComponents()
559 return {binder::Status::ok(), ipversionStr, whichStr}; in getPathComponents()
564 binder::Status NetdNativeService::getProcSysNet(int32_t ipversion, int32_t which, in getProcSysNet()
580 binder::Status NetdNativeService::setProcSysNet(int32_t ipversion, int32_t which, in setProcSysNet()
597 binder::Status NetdNativeService::ipSecSetEncapSocketOwner(const ParcelFileDescriptor& socket, in ipSecSetEncapSocketOwner()
606 binder::Status NetdNativeService::ipSecAllocateSpi( in ipSecAllocateSpi()
622 binder::Status NetdNativeService::ipSecAddSecurityAssociation( in ipSecAddSecurityAssociation()
639 binder::Status NetdNativeService::ipSecDeleteSecurityAssociation( in ipSecDeleteSecurityAssociation()
649 binder::Status NetdNativeService::ipSecApplyTransportModeTransform( in ipSecApplyTransportModeTransform()
658 binder::Status NetdNativeService::ipSecRemoveTransportModeTransform( in ipSecRemoveTransportModeTransform()
665 binder::Status NetdNativeService::ipSecAddSecurityPolicy(int32_t transformId, int32_t selAddrFamily, in ipSecAddSecurityPolicy()
678 binder::Status NetdNativeService::ipSecUpdateSecurityPolicy( in ipSecUpdateSecurityPolicy()
689 binder::Status NetdNativeService::ipSecDeleteSecurityPolicy(int32_t transformId, in ipSecDeleteSecurityPolicy()
699 binder::Status NetdNativeService::ipSecAddTunnelInterface(const std::string& deviceName, in ipSecAddTunnelInterface()
708 return binder::Status::ok(); in ipSecAddTunnelInterface()
711 binder::Status NetdNativeService::ipSecUpdateTunnelInterface(const std::string& deviceName, in ipSecUpdateTunnelInterface()
720 return binder::Status::ok(); in ipSecUpdateTunnelInterface()
723 binder::Status NetdNativeService::ipSecRemoveTunnelInterface(const std::string& deviceName) { in ipSecRemoveTunnelInterface()
727 return binder::Status::ok(); in ipSecRemoveTunnelInterface()
730 binder::Status NetdNativeService::setIPv6AddrGenMode(const std::string& ifName, in setIPv6AddrGenMode()
736 binder::Status NetdNativeService::wakeupAddInterface(const std::string& ifName, in wakeupAddInterface()
743 binder::Status NetdNativeService::wakeupDelInterface(const std::string& ifName, in wakeupDelInterface()
750 binder::Status NetdNativeService::trafficSwapActiveStatsMap() { in trafficSwapActiveStatsMap()
755 binder::Status NetdNativeService::idletimerAddInterface(const std::string& ifName, int32_t timeout, in idletimerAddInterface()
763 binder::Status NetdNativeService::idletimerRemoveInterface(const std::string& ifName, in idletimerRemoveInterface()
772 binder::Status NetdNativeService::strictUidCleartextPenalty(int32_t uid, int32_t policyPenalty) { in strictUidCleartextPenalty()
793 binder::Status NetdNativeService::clatdStart(const std::string& ifName, in clatdStart()
800 binder::Status NetdNativeService::clatdStop(const std::string& ifName) { in clatdStop()
806 binder::Status NetdNativeService::ipfwdEnabled(bool* status) { in ipfwdEnabled()
809 return binder::Status::ok(); in ipfwdEnabled()
812 binder::Status NetdNativeService::ipfwdGetRequesterList(std::vector<std::string>* requesterList) { in ipfwdGetRequesterList()
817 return binder::Status::ok(); in ipfwdGetRequesterList()
820 binder::Status NetdNativeService::ipfwdEnableForwarding(const std::string& requester) { in ipfwdEnableForwarding()
826 binder::Status NetdNativeService::ipfwdDisableForwarding(const std::string& requester) { in ipfwdDisableForwarding()
832 binder::Status NetdNativeService::ipfwdAddInterfaceForward(const std::string& fromIface, in ipfwdAddInterfaceForward()
839 binder::Status NetdNativeService::ipfwdRemoveInterfaceForward(const std::string& fromIface, in ipfwdRemoveInterfaceForward()
854 binder::Status NetdNativeService::interfaceGetList(std::vector<std::string>* interfaceListResult) { in interfaceGetList()
863 return binder::Status::ok(); in interfaceGetList()
873 binder::Status NetdNativeService::interfaceGetCfg( in interfaceGetCfg()
884 return binder::Status::ok(); in interfaceGetCfg()
887 binder::Status NetdNativeService::interfaceSetCfg(const InterfaceConfigurationParcel& cfg) { in interfaceSetCfg()
897 return binder::Status::ok(); in interfaceSetCfg()
900 binder::Status NetdNativeService::interfaceSetIPv6PrivacyExtensions(const std::string& ifName, in interfaceSetIPv6PrivacyExtensions()
907 binder::Status NetdNativeService::interfaceClearAddrs(const std::string& ifName) { in interfaceClearAddrs()
913 binder::Status NetdNativeService::interfaceSetEnableIPv6(const std::string& ifName, bool enable) { in interfaceSetEnableIPv6()
919 binder::Status NetdNativeService::interfaceSetMtu(const std::string& ifName, int32_t mtuValue) { in interfaceSetMtu()
926 binder::Status NetdNativeService::tetherStart(const std::vector<std::string>& dhcpRanges) { in tetherStart()
933 binder::Status NetdNativeService::tetherStartWithConfiguration(const TetherConfigParcel& config) { in tetherStartWithConfiguration()
943 binder::Status NetdNativeService::tetherStop() { in tetherStop()
949 binder::Status NetdNativeService::tetherIsEnabled(bool* enabled) { in tetherIsEnabled()
952 return binder::Status::ok(); in tetherIsEnabled()
955 binder::Status NetdNativeService::tetherInterfaceAdd(const std::string& ifName) { in tetherInterfaceAdd()
961 binder::Status NetdNativeService::tetherInterfaceRemove(const std::string& ifName) { in tetherInterfaceRemove()
967 binder::Status NetdNativeService::tetherInterfaceList(std::vector<std::string>* ifList) { in tetherInterfaceList()
972 return binder::Status::ok(); in tetherInterfaceList()
975 binder::Status NetdNativeService::tetherDnsSet(int32_t netId, in tetherDnsSet()
982 binder::Status NetdNativeService::tetherDnsList(std::vector<std::string>* dnsList) { in tetherDnsList()
987 return binder::Status::ok(); in tetherDnsList()
990 binder::Status NetdNativeService::networkAddRouteParcel(int32_t netId, in networkAddRouteParcel()
1004 binder::Status NetdNativeService::networkUpdateRouteParcel(int32_t netId, in networkUpdateRouteParcel()
1018 binder::Status NetdNativeService::networkRemoveRouteParcel(int32_t netId, in networkRemoveRouteParcel()
1023 binder::Status NetdNativeService::networkAddRoute(int32_t netId, const std::string& ifName, in networkAddRoute()
1035 binder::Status NetdNativeService::networkRemoveRoute(int32_t netId, const std::string& ifName, in networkRemoveRoute()
1046 binder::Status NetdNativeService::networkAddLegacyRoute(int32_t netId, const std::string& ifName, in networkAddLegacyRoute()
1057 binder::Status NetdNativeService::networkRemoveLegacyRoute(int32_t netId, const std::string& ifName, in networkRemoveLegacyRoute()
1069 binder::Status NetdNativeService::networkGetDefault(int32_t* netId) { in networkGetDefault()
1072 return binder::Status::ok(); in networkGetDefault()
1075 binder::Status NetdNativeService::networkSetDefault(int32_t netId) { in networkSetDefault()
1081 binder::Status NetdNativeService::networkClearDefault() { in networkClearDefault()
1103 binder::Status NetdNativeService::networkSetPermissionForNetwork(int32_t netId, in networkSetPermissionForNetwork()
1111 binder::Status NetdNativeService::networkSetPermissionForUser(int32_t permission, in networkSetPermissionForUser()
1115 return binder::Status::ok(); in networkSetPermissionForUser()
1118 binder::Status NetdNativeService::networkClearPermissionForUser(const std::vector<int32_t>& uids) { in networkClearPermissionForUser()
1122 return binder::Status::ok(); in networkClearPermissionForUser()
1125 binder::Status NetdNativeService::NetdNativeService::networkSetProtectAllow(int32_t uid) { in networkSetProtectAllow()
1129 return binder::Status::ok(); in networkSetProtectAllow()
1132 binder::Status NetdNativeService::networkSetProtectDeny(int32_t uid) { in networkSetProtectDeny()
1136 return binder::Status::ok(); in networkSetProtectDeny()
1139 binder::Status NetdNativeService::networkCanProtect(int32_t uid, bool* ret) { in networkCanProtect()
1142 return binder::Status::ok(); in networkCanProtect()
1145 binder::Status NetdNativeService::trafficSetNetPermForUids(int32_t permission, in trafficSetNetPermForUids()
1149 return binder::Status::ok(); in trafficSetNetPermForUids()
1152 binder::Status NetdNativeService::firewallSetFirewallType(int32_t firewallType) { in firewallSetFirewallType()
1160 binder::Status NetdNativeService::firewallSetInterfaceRule(const std::string& ifName, in firewallSetInterfaceRule()
1169 binder::Status NetdNativeService::firewallSetUidRule(int32_t childChain, int32_t uid, in firewallSetUidRule()
1179 binder::Status NetdNativeService::firewallEnableChildChain(int32_t childChain, bool enable) { in firewallEnableChildChain()
1187 binder::Status NetdNativeService::firewallAddUidInterfaceRules(const std::string& ifName, in firewallAddUidInterfaceRules()
1195 binder::Status NetdNativeService::firewallRemoveUidInterfaceRules( in firewallRemoveUidInterfaceRules()
1202 binder::Status NetdNativeService::tetherAddForward(const std::string& intIface, in tetherAddForward()
1210 binder::Status NetdNativeService::tetherRemoveForward(const std::string& intIface, in tetherRemoveForward()
1217 binder::Status NetdNativeService::setTcpRWmemorySize(const std::string& rmemValues, in setTcpRWmemorySize()
1229 return binder::Status::ok(); in setTcpRWmemorySize()
1232 binder::Status NetdNativeService::registerUnsolicitedEventListener( in registerUnsolicitedEventListener()
1236 return binder::Status::ok(); in registerUnsolicitedEventListener()
1239 binder::Status NetdNativeService::getOemNetd(android::sp<android::IBinder>* listener) { in getOemNetd()
1243 return binder::Status::ok(); in getOemNetd()
1246 binder::Status NetdNativeService::getFwmarkForNetwork(int32_t netId, MarkMaskParcel* markMask) { in getFwmarkForNetwork()
1253 return binder::Status::ok(); in getFwmarkForNetwork()
1256 binder::Status NetdNativeService::tetherOffloadRuleAdd(const TetherOffloadRuleParcel& rule) { in tetherOffloadRuleAdd()
1262 binder::Status NetdNativeService::tetherOffloadRuleRemove(const TetherOffloadRuleParcel& rule) { in tetherOffloadRuleRemove()
1285 binder::Status NetdNativeService::tetherOffloadGetStats( in tetherOffloadGetStats()
1297 return binder::Status::ok(); in tetherOffloadGetStats()
1300 binder::Status NetdNativeService::tetherOffloadSetInterfaceQuota(int ifIndex, int64_t quotaBytes) { in tetherOffloadSetInterfaceQuota()
1306 binder::Status NetdNativeService::tetherOffloadGetAndClearStats( in tetherOffloadGetAndClearStats()
1314 return binder::Status::ok(); in tetherOffloadGetAndClearStats()