Home
last modified time | relevance | path

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

/external/drm_hwcomposer/
Dseperate_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<TNum>::max_elements) { in seperate_rects()
105 std::vector<std::pair<TNum, IdSet<TId> > > active_regions; in seperate_rects()
181 IdSet<TId> active_set; in seperate_rects()
202 for (std::vector<std::pair<TNum, IdSet> >::iterator it = in seperate_rects()
229 for (typename std::vector<std::pair<TNum, IdSet<TId> > >::iterator it = in seperate_rects()
232 IdSet<TId> region_set = it->second; in seperate_rects()
240 typename std::vector<std::pair<TNum, IdSet<TId> > >::iterator next_it = in seperate_rects()
[all …]
Dseperate_rects.h62 struct IdSet { struct
66 IdSet() : bitset(0) { in IdSet() argument
69 IdSet(TId id) : bitset(0) { in IdSet() argument
89 bool operator==(const IdSet<TId> &rhs) const { argument
93 bool operator<(const IdSet<TId> &rhs) const {
97 IdSet<TId> operator|(const IdSet<TId> &rhs) const {
98 IdSet ret; argument
103 IdSet<TId> operator|(TId id) const {
104 IdSet<TId> ret; argument
118 IdSet<TId> id_set; argument
[all …]
/external/selinux/sepolgen/src/sepolgen/
Drefpolicy.py246 class IdSet(set): class
346 self.perms = IdSet()
358 self.attributes = IdSet()
371 self.roleattributes = IdSet()
381 self.types = IdSet()
393 self.attributes = IdSet()
394 self.aliases = IdSet()
408 self.aliases = IdSet()
455 self.src_types = IdSet()
456 self.tgt_types = IdSet()
[all …]
Daccess.py87 self.perms = refpolicy.IdSet()
115 self.perms = refpolicy.IdSet(list[3:])
286 types = refpolicy.IdSet()
299 s = refpolicy.IdSet()
Dinterfaces.py41 self.obj_classes = refpolicy.IdSet()
446 new_perms = refpolicy.IdSet()
Drefparser.py908 s = refpolicy.IdSet()
/external/selinux/sepolgen/tests/
Dtest_access.py33 self.assertTrue(isinstance(a.perms, refpolicy.IdSet))
120 b.perms = refpolicy.IdSet(["read"])
124 b.perms = refpolicy.IdSet(["read", "write", "append"])
128 b.perms = refpolicy.IdSet(["read", "append"])
163 self.assertEquals(av.perms, refpolicy.IdSet(["read", "write"]))
206 self.assertEquals(av.perms, refpolicy.IdSet(["read", "write"]))
221 a.add("$1", "foo", "file", refpolicy.IdSet(["read", "write"]))
222 a.add("$1", "bar", "file", refpolicy.IdSet(["read", "write"]))
223 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"])
28 s = refpolicy.IdSet()