Searched refs:cls (Results 1 - 11 of 11) sorted by relevance
/system/extras/tests/net_test/ |
H A D | multinetwork_base.py | 142 def UidRangeForNetid(cls, netid): 144 cls.UID_RANGE_SIZE * netid, 145 cls.UID_RANGE_SIZE * (netid + 1) - 1 149 def UidForNetid(cls, netid): 150 return random.randint(*cls.UidRangeForNetid(netid)) 153 def _TableForNetid(cls, netid): 154 if cls.AUTOCONF_TABLE_OFFSET and netid in cls.ifindices: 155 return cls.ifindices[netid] + (-cls [all...] |
H A D | cstruct.py | 65 def __len__(cls): 66 return cls._length 68 def __init__(cls, unused_name, unused_bases, namespace): 70 type.__init__(cls, namespace["_name"], unused_bases, namespace) 143 def __len__(cls): 144 return cls._length
|
H A D | multinetwork_test.py | 53 def _SetInboundMarking(cls, netid, is_add): 56 iface = cls.GetInterfaceName(netid) 67 def setUpClass(cls): 68 super(InboundMarkingTest, cls).setUpClass() 69 for netid in cls.tuns: 70 cls._SetInboundMarking(netid, True) 73 def tearDownClass(cls): 74 for netid in cls.tuns: 75 cls._SetInboundMarking(netid, False) 76 super(InboundMarkingTest, cls) [all...] |
H A D | neighbour_test.py | 57 def setUpClass(cls): 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)
|
H A D | ping6_test.py | 189 def setUpClass(cls): 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 [all...] |
/system/sepolicy/tools/ |
H A D | sepolicy-check.c | 119 class_datum_t *cls = NULL; local 145 cls = hashtab_search(policy->p_classes.table, c); 146 if (cls == NULL) { 152 perm = hashtab_search(cls->permissions.table, p); 154 if (cls->comdatum == NULL) { 158 perm = hashtab_search(cls->comdatum->permissions.table, p); 171 key.target_class = cls->s.value;
|
/system/sepolicy/tools/sepolicy-analyze/ |
H A D | neverallow.c | 191 class_datum_t *cls = NULL; local 250 cls = hashtab_search(policydb->p_classes.table, id); 251 if (!cls) { 260 node->tclass = cls->s.value; 335 cls = policydb->class_val_to_struct[node->tclass-1]; 336 perm = hashtab_search(cls->permissions.table, id); 337 if (cls->comdatum && !perm) 338 perm = hashtab_search(cls->comdatum->permissions.table, id);
|
/system/webservd/webservd/ |
H A D | request.cc | 39 static int PostDataIterator(void* cls, argument 48 auto self = reinterpret_cast<Request*>(cls); 53 static int ValueCallback(void* cls, argument 57 auto self = reinterpret_cast<Request*>(cls); 318 ssize_t Request::ResponseDataCallback(void *cls, uint64_t /* pos */, char *buf, argument 320 Request* self = static_cast<Request*>(cls);
|
H A D | request.h | 176 static ssize_t ResponseDataCallback(void* cls, uint64_t pos, char* buf,
|
H A D | protocol_handler.cc | 41 static int ConnectionHandler(void *cls, argument 49 auto handler = reinterpret_cast<ProtocolHandler*>(cls); 73 static void RequestCompleted(void* /* cls */,
|
/system/core/toolbox/ |
H A D | newfs_msdos.c | 263 u_int fat, bss, rds, cls, dir, lsn, x, x1, x2; local 608 cls = (bpb.bsec - x1) / bpb.spc; 610 if (cls > x) 611 cls = x; 613 warnx("warning: sectors/FAT limits file system to %u clusters", cls); 614 if (cls < mincls(fat)) 615 errx(1, "%u clusters too few clusters for FAT%u, need %u", cls, fat, mincls(fat)); 616 if (cls > maxcls(fat)) { 617 cls = maxcls(fat); 618 bpb.bsec = x1 + (cls [all...] |
Completed in 202 milliseconds