/system/netd/ |
UidMarkMap.h | 27 bool add(int uid_start, int uid_end, int mark); 28 bool remove(int uid_start, int uid_end, int mark); 35 int uid_end; member in struct:UidMarkMap::UidMarkEntry 37 UidMarkEntry(int uid_start, int uid_end, int mark);
|
UidMarkMap.cpp | 21 uid_end(end), 25 bool UidMarkMap::add(int uid_start, int uid_end, int mark) { 27 if (uid_start > uid_end) { 33 if (entry->uid_start <= uid_end && uid_start <= entry->uid_end) { 38 UidMarkEntry *e = new UidMarkEntry(uid_start, uid_end, mark); 43 bool UidMarkMap::remove(int uid_start, int uid_end, int mark) { 48 if (entry->uid_start == uid_start && entry->uid_end == uid_end && entry->mark == mark) { 62 if (entry->uid_start <= uid && entry->uid_end >= uid) [all...] |
ResolverController.h | 36 int setDnsInterfaceForUidRange(const char* iface, int uid_start, int uid_end); 37 int clearDnsInterfaceForUidRange(int uid_start, int uid_end);
|
ResolverController.cpp | 100 int ResolverController::setDnsInterfaceForUidRange(const char* iface, int uid_start, int uid_end) { 102 ALOGD("setDnsIfaceForUidRange iface = %s, range = [%d,%d]\n", iface, uid_start, uid_end); 105 return _resolv_set_iface_for_uid_range(iface, uid_start, uid_end); 108 int ResolverController::clearDnsInterfaceForUidRange(int uid_start, int uid_end) { 110 ALOGD("clearDnsIfaceForUidRange range = [%d,%d]\n", uid_start, uid_end); 113 return _resolv_clear_iface_for_uid_range(uid_start, uid_end);
|
SecondaryTableController.h | 48 int addUidRule(const char *iface, int uid_start, int uid_end); 49 int removeUidRule(const char *iface, int uid_start, int uid_end); 72 int setUidRule(const char* iface, int uid_start, int uid_end, bool add);
|
SecondaryTableController.cpp | 570 int SecondaryTableController::addUidRule(const char *iface, int uid_start, int uid_end) { 571 return setUidRule(iface, uid_start, uid_end, true); 574 int SecondaryTableController::removeUidRule(const char *iface, int uid_start, int uid_end) { 575 return setUidRule(iface, uid_start, uid_end, false); 578 int SecondaryTableController::setUidRule(const char *iface, int uid_start, int uid_end, bool add) { 586 if (!mUidMarkMap->add(uid_start, uid_end, mark)) { 591 if (!mUidMarkMap->remove(uid_start, uid_end, mark)) { 598 snprintf(uid_str, sizeof(uid_str), "%d-%d", uid_start, uid_end);
|
/bionic/libc/private/ |
resolv_iface.h | 84 extern int _resolv_set_iface_for_uid_range(const char* ifname, int uid_start, int uid_end); 88 extern int _resolv_clear_iface_for_uid_range(int uid_start, int uid_end);
|
/frameworks/base/core/java/android/os/ |
INetworkManagementService.aidl | 351 * Set all packets from users [uid_start,uid_end] to go through interface iface 354 void setUidRangeRoute(String iface, int uid_start, int uid_end); 357 * Clears the special routing rules for users [uid_start,uid_end] 359 void clearUidRangeRoute(String iface, int uid_start, int uid_end); 418 void setDnsInterfaceForUidRange(String iface, int uid_start, int uid_end); 423 void clearDnsInterfaceForUidRange(int uid_start, int uid_end);
|
/bionic/libc/netbsd/resolv/ |
res_cache.c | 1263 int uid_end; member in struct:resolv_uidiface_info [all...] |
/frameworks/base/services/java/com/android/server/ |
NetworkManagementService.java | [all...] |