/system/extras/tests/net_test/ |
D | multinetwork_base.py | 142 def UidRangeForNetid(cls, netid): argument 144 cls.UID_RANGE_SIZE * netid, 145 cls.UID_RANGE_SIZE * (netid + 1) - 1 149 def UidForNetid(cls, netid): argument 150 return random.randint(*cls.UidRangeForNetid(netid)) 153 def _TableForNetid(cls, netid): argument 154 if cls.AUTOCONF_TABLE_OFFSET and netid in cls.ifindices: 155 return cls.ifindices[netid] + (-cls.AUTOCONF_TABLE_OFFSET) 181 def _MyIPv4Address(cls, netid): argument 185 def _MyIPv6Address(cls, netid): argument [all …]
|
D | cstruct.py | 65 def __len__(cls): argument 66 return cls._length 68 def __init__(cls, unused_name, unused_bases, namespace): argument 70 type.__init__(cls, namespace["_name"], unused_bases, namespace) 143 def __len__(cls): argument 144 return cls._length
|
D | ping6_test.py | 189 def setUpClass(cls): argument 190 super(Ping6Test, cls).setUpClass() 191 cls.netid = random.choice(cls.NETIDS) 192 cls.reply_thread = PingReplyThread( 193 cls.tuns[cls.netid], 194 cls.MyMacAddress(cls.netid), 195 cls.RouterMacAddress(cls.netid)) 196 cls.SetDefaultNetwork(cls.netid) 197 cls.reply_thread.start() 200 def tearDownClass(cls): argument [all …]
|
D | multinetwork_test.py | 53 def _SetInboundMarking(cls, netid, is_add): argument 56 iface = cls.GetInterfaceName(netid) 67 def setUpClass(cls): argument 68 super(InboundMarkingTest, cls).setUpClass() 69 for netid in cls.tuns: 70 cls._SetInboundMarking(netid, True) 73 def tearDownClass(cls): argument 74 for netid in cls.tuns: 75 cls._SetInboundMarking(netid, False) 76 super(InboundMarkingTest, cls).tearDownClass() [all …]
|
D | neighbour_test.py | 57 def setUpClass(cls): argument 58 super(NeighbourTest, cls).setUpClass() 59 for netid in cls.tuns: 60 iface = cls.GetInterfaceName(netid) 62 cls.SetSysctl( 64 cls.DELAY_TIME_MS / 1000)
|
/system/sepolicy/tools/ |
D | sepolicy-check.c | 119 class_datum_t *cls = NULL; in check_rule() local 145 cls = hashtab_search(policy->p_classes.table, c); in check_rule() 146 if (cls == NULL) { in check_rule() 152 perm = hashtab_search(cls->permissions.table, p); in check_rule() 154 if (cls->comdatum == NULL) { in check_rule() 158 perm = hashtab_search(cls->comdatum->permissions.table, p); in check_rule() 171 key.target_class = cls->s.value; in check_rule()
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | neverallow.c | 191 class_datum_t *cls = NULL; in read_classperms() local 250 cls = hashtab_search(policydb->p_classes.table, id); in read_classperms() 251 if (!cls) { in read_classperms() 260 node->tclass = cls->s.value; in read_classperms() 335 cls = policydb->class_val_to_struct[node->tclass-1]; in read_classperms() 336 perm = hashtab_search(cls->permissions.table, id); in read_classperms() 337 if (cls->comdatum && !perm) in read_classperms() 338 perm = hashtab_search(cls->comdatum->permissions.table, id); in read_classperms()
|
/system/webservd/webservd/ |
D | request.cc | 39 static int PostDataIterator(void* cls, in PostDataIterator() argument 48 auto self = reinterpret_cast<Request*>(cls); in PostDataIterator() 53 static int ValueCallback(void* cls, in ValueCallback() argument 57 auto self = reinterpret_cast<Request*>(cls); in ValueCallback() 318 ssize_t Request::ResponseDataCallback(void *cls, uint64_t /* pos */, char *buf, in ResponseDataCallback() argument 320 Request* self = static_cast<Request*>(cls); in ResponseDataCallback()
|
D | protocol_handler.cc | 41 static int ConnectionHandler(void *cls, in ConnectionHandler() argument 49 auto handler = reinterpret_cast<ProtocolHandler*>(cls); in ConnectionHandler()
|
D | request.h | 176 static ssize_t ResponseDataCallback(void* cls, uint64_t pos, char* buf,
|
/system/core/toolbox/ |
D | newfs_msdos.c | 263 u_int fat, bss, rds, cls, dir, lsn, x, x1, x2; in newfs_msdos_main() local 608 cls = (bpb.bsec - x1) / bpb.spc; in newfs_msdos_main() 610 if (cls > x) in newfs_msdos_main() 611 cls = x; in newfs_msdos_main() 613 warnx("warning: sectors/FAT limits file system to %u clusters", cls); in newfs_msdos_main() 614 if (cls < mincls(fat)) in newfs_msdos_main() 615 errx(1, "%u clusters too few clusters for FAT%u, need %u", cls, fat, mincls(fat)); in newfs_msdos_main() 616 if (cls > maxcls(fat)) { in newfs_msdos_main() 617 cls = maxcls(fat); in newfs_msdos_main() 618 bpb.bsec = x1 + (cls + 1) * bpb.spc - 1; in newfs_msdos_main() [all …]
|