Home
last modified time | relevance | path

Searched refs:IdSet (Results 1 – 9 of 9) sorted by relevance

/external/drm_hwcomposer/
Dseparate_rects.cpp32 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<TId>::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 …]
Dseparate_rects.h89 struct IdSet { struct
93 IdSet() : bitset(0) { in IdSet() function
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/python/sepolgen/src/sepolgen/
Drefpolicy.py248 class IdSet(set): class
348 self.perms = IdSet()
360 self.attributes = IdSet()
373 self.roleattributes = IdSet()
383 self.types = IdSet()
395 self.attributes = IdSet()
396 self.aliases = IdSet()
410 self.aliases = IdSet()
457 self.src_types = IdSet()
458 self.tgt_types = IdSet()
[all …]
Daccess.py89 self.perms = refpolicy.IdSet()
120 self.perms = refpolicy.IdSet(list[3:])
287 types = refpolicy.IdSet()
300 s = refpolicy.IdSet()
Dinterfaces.py41 self.obj_classes = refpolicy.IdSet()
446 new_perms = refpolicy.IdSet()
Drefparser.py918 s = refpolicy.IdSet()
/external/selinux/python/sepolgen/tests/
Dtest_access.py33 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"]))
Dtest_interfaces.py50 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"]))
Dtest_refpolicy.py26 s = refpolicy.IdSet(["read", "write", "getattr"])
32 s = refpolicy.IdSet()