Searched refs:IdSet (Results 1 – 9 of 9) sorted by relevance
/external/drm_hwcomposer/ |
D | separate_rects.cpp | 32 IdSet<TId> id_set; 65 std::ostream &operator<<(std::ostream &os, const IdSet<TUInt> &obj) { in operator <<() 66 int bits = IdSet<TUInt>::max_elements; in operator <<() 88 if (in.size() > IdSet<TNum>::max_elements) { in separate_rects() 105 std::vector<std::pair<TNum, IdSet<TId>>> active_regions; in separate_rects() 186 IdSet<TId> active_set; in separate_rects() 207 for (std::vector<std::pair<TNum, IdSet>>::iterator it = in separate_rects() 234 for (typename std::vector<std::pair<TNum, IdSet<TId>>>::iterator it = in separate_rects() 237 IdSet<TId> region_set = it->second; in separate_rects() 245 typename std::vector<std::pair<TNum, IdSet<TId>>>::iterator next_it = it; in separate_rects() [all …]
|
D | separate_rects.h | 89 struct IdSet { struct 93 IdSet() : bitset(0) { in IdSet() argument 96 IdSet(TId id) : bitset(0) { in IdSet() function 116 bool operator==(const IdSet<TId> &rhs) const { argument 120 bool operator<(const IdSet<TId> &rhs) const { 124 IdSet<TId> operator|(const IdSet<TId> &rhs) const { 125 IdSet ret; argument 130 IdSet<TId> operator|(TId id) const { 131 IdSet<TId> ret; argument 145 IdSet<TId> id_set; argument [all …]
|
/external/selinux/sepolgen/src/sepolgen/ |
D | refpolicy.py | 245 class IdSet(set): class 345 self.perms = IdSet() 357 self.attributes = IdSet() 370 self.roleattributes = IdSet() 380 self.types = IdSet() 392 self.attributes = IdSet() 393 self.aliases = IdSet() 407 self.aliases = IdSet() 454 self.src_types = IdSet() 455 self.tgt_types = IdSet() [all …]
|
D | access.py | 89 self.perms = refpolicy.IdSet() 120 self.perms = refpolicy.IdSet(list[3:]) 287 types = refpolicy.IdSet() 300 s = refpolicy.IdSet()
|
D | interfaces.py | 41 self.obj_classes = refpolicy.IdSet() 446 new_perms = refpolicy.IdSet()
|
D | refparser.py | 907 s = refpolicy.IdSet()
|
/external/selinux/sepolgen/tests/ |
D | test_access.py | 33 self.assertTrue(isinstance(a.perms, refpolicy.IdSet)) 139 b.perms = refpolicy.IdSet(["read"]) 143 b.perms = refpolicy.IdSet(["read", "write", "append"]) 146 b.perms = refpolicy.IdSet(["read", "append"]) 180 self.assertEqual(av.perms, refpolicy.IdSet(["read", "write"])) 223 self.assertEqual(av.perms, refpolicy.IdSet(["read", "write"])) 238 a.add("$1", "foo", "file", refpolicy.IdSet(["read", "write"])) 239 a.add("$1", "bar", "file", refpolicy.IdSet(["read", "write"])) 240 a.add("what", "bar", "file", refpolicy.IdSet(["read", "write"]))
|
D | test_interfaces.py | 50 self.assertEqual(p.obj_classes, refpolicy.IdSet(["file"])) 60 self.assertEqual(p.obj_classes, refpolicy.IdSet(["process"])) 70 self.assertEqual(p.obj_classes, refpolicy.IdSet(["dir"])) 80 self.assertEqual(p.obj_classes, refpolicy.IdSet(["dir"]))
|
D | test_refpolicy.py | 26 s = refpolicy.IdSet(["read", "write", "getattr"]) 32 s = refpolicy.IdSet()
|