Home
last modified time | relevance | path

Searched refs:cats (Results 1 – 25 of 54) sorted by relevance

123

/external/selinux/python/chcat/
Dchcat80 cats = []
85 cats = expandCats(top[1].split(','))
88 if i not in cats:
89 cats.append(i)
91 if len(cats) > 0:
92 new_serange = "%s-%s:%s" % (serange[0], top[0], ",".join(cats))
131 cats = clist[1:]
132 cats.sort()
133 cat_string = cats[0]
134 for c in cats[1:]:
[all …]
/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c222 static inline void cil_reset_cats(struct cil_cats *cats) in cil_reset_cats() argument
224 if (cats != NULL) { in cil_reset_cats()
225 cats->evaluated = CIL_FALSE; in cil_reset_cats()
226 cil_list_destroy(&cats->datum_expr, CIL_FALSE); in cil_reset_cats()
233 cil_reset_cats(senscat->cats); in cil_reset_senscat()
238 cil_reset_cats(catset->cats); in cil_reset_catset()
243 cil_reset_cats(level->cats); in cil_reset_level()
Dcil.c1263 static int cil_cats_to_ebitmap(struct cil_cats *cats, struct ebitmap* cats_ebitmap) in cil_cats_to_ebitmap() argument
1272 if (cats == NULL) { in cil_cats_to_ebitmap()
1277 cil_list_for_each(i, cats->datum_expr) { in cil_cats_to_ebitmap()
1281 cil_list_for_each(j, cs->cats->datum_expr) { in cil_cats_to_ebitmap()
1317 rc = cil_cats_to_ebitmap(low->cats, &elow); in cil_level_equals()
1322 rc = cil_cats_to_ebitmap(high->cats, &ehigh); in cil_level_equals()
1338 struct cil_cats *cats = lvl->cats; in __cil_level_strlen() local
1347 if (cats && cats->datum_expr != NULL) { in __cil_level_strlen()
1349 cil_list_for_each(item, cats->datum_expr) { in __cil_level_strlen()
1390 struct cil_cats *cats = lvl->cats; in __cil_level_to_string() local
[all …]
Dcil_write_ast.c264 static int cil_unfill_cats(struct cil_cats *cats, char **out_str) { in cil_unfill_cats() argument
265 return cil_unfill_expr(cats->str_expr, out_str, 0); in cil_unfill_cats()
271 char *sens, *cats = NULL; in cil_unfill_level() local
274 if (lvl->cats != NULL) { in cil_unfill_level()
275 rc = cil_unfill_cats(lvl->cats, &cats); in cil_unfill_level()
278 len += strlen(cats) + 1; in cil_unfill_level()
281 if (cats == NULL) { in cil_unfill_level()
288 if (sprintf(*out_str, "(%s %s)", sens, cats) < 0) { in cil_unfill_level()
296 free(cats); in cil_unfill_level()
883 char *cats = NULL; in cil_write_senscat() local
[all …]
Dcil_post.c87 if (a->cats != b->cats) { in level_compare()
88 return cats_compare(a->cats, b->cats); in level_compare()
1082 static int __evaluate_cat_expression(struct cil_cats *cats, struct cil_db *db) in __evaluate_cat_expression() argument
1089 if (cats->evaluated == CIL_TRUE) { in __evaluate_cat_expression()
1093 if (cil_verify_is_list(cats->datum_expr, CIL_CAT)) { in __evaluate_cat_expression()
1098 rc = __cil_expr_to_bitmap(cats->datum_expr, &bitmap, db->num_cats, db); in __evaluate_cat_expression()
1115 cil_list_destroy(&cats->datum_expr, CIL_FALSE); in __evaluate_cat_expression()
1116 cats->datum_expr = new; in __evaluate_cat_expression()
1118 cats->evaluated = CIL_TRUE; in __evaluate_cat_expression()
1136 if (catset->cats->evaluated == CIL_FALSE) { in __cil_cat_to_bitmap()
[all …]
Dcil_verify.c447 int __cil_is_cat_in_cats(struct cil_cat *cat, struct cil_cats *cats) in __cil_is_cat_in_cats() argument
451 cil_list_for_each(i, cats->datum_expr) { in __cil_is_cat_in_cats()
462 int __cil_verify_cat_in_cats(struct cil_cat *cat, struct cil_cats *cats) in __cil_verify_cat_in_cats() argument
464 if (__cil_is_cat_in_cats(cat, cats) != CIL_TRUE) { in __cil_verify_cat_in_cats()
472 int __cil_verify_cats_associated_with_sens(struct cil_sens *sens, struct cil_cats *cats) in __cil_verify_cats_associated_with_sens() argument
477 if (!cats) { in __cil_verify_cats_associated_with_sens()
486 cil_list_for_each(i, cats->datum_expr) { in __cil_verify_cats_associated_with_sens()
572 rc = __cil_verify_levelrange_cats(lr->low->cats, lr->high->cats); in __cil_verify_levelrange()
577 rc = __cil_verify_cats_associated_with_sens(lr->low->sens, lr->low->cats); in __cil_verify_levelrange()
583 rc = __cil_verify_cats_associated_with_sens(lr->high->sens, lr->high->cats); in __cil_verify_levelrange()
Dcil_internal.h684 struct cil_cats *cats; member
693 struct cil_cats *cats; member
700 struct cil_cats *cats; member
1030 void cil_cats_init(struct cil_cats **cats);
Dcil_tree.c538 void cil_tree_print_cats(struct cil_cats *cats) in cil_tree_print_cats() argument
540 cil_tree_print_expr(cats->datum_expr, cats->str_expr); in cil_tree_print_cats()
606 cil_tree_print_cats(level->cats); in cil_tree_print_level()
1277 cil_tree_print_cats(catset->cats); in cil_tree_print_node()
1308 cil_tree_print_cats(senscat->cats); in cil_tree_print_node()
Dcil_copy_ast.c941 cil_copy_cats(db, orig->cats, &new->cats); in cil_copy_catset()
957 cil_copy_cats(db, orig->cats, &new->cats); in cil_copy_senscat()
1000 if (orig->cats != NULL) { in cil_copy_fill_level()
1001 cil_copy_cats(db, orig->cats, &(*new)->cats); in cil_copy_fill_level()
/external/python/cpython2/Tools/unicode/
Dmkstringprep.py6 def gen_category(cats): argument
8 if unicodedata.category(unichr(i)) in cats:
11 def gen_bidirectional(cats): argument
13 if unicodedata.bidirectional(unichr(i)) in cats:
/external/python/cpython3/Tools/unicode/
Dmkstringprep.py7 def gen_category(cats): argument
9 if unicodedata.category(chr(i)) in cats:
12 def gen_bidirectional(cats): argument
14 if unicodedata.bidirectional(chr(i)) in cats:
/external/perfetto/src/trace_processor/
Dslice_tracker_unittest.cc66 EXPECT_EQ(slices.cats()[0], 0); in TEST()
90 EXPECT_EQ(slices.cats()[idx], 0); in TEST()
98 EXPECT_EQ(slices.cats()[idx], 0); in TEST()
Dslice_tracker.cc127 if (cat && slices->cats()[slice_idx] != cat) in End()
177 s.append(reinterpret_cast<const char*>(&slices.cats()[slice_idx]), in GetStackHash()
178 sizeof(slices.cats()[slice_idx])); in GetStackHash()
Dslice_table.cc39 .AddStringColumn("cat", &slices.cats(), &storage_->string_pool()) in CreateStorageSchema()
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/tests/yui/out/
Dbug2527974.out1 body{yo:cats}ul[id$=foo] label:hover{yo:yo}
Dbug2527974.out.b1 …LastChangedDate: 2009-05-27 17:41:02 +0100 (Wed, 27 May 2009) $ */body{yo:cats}ul[id$=foo] label:h…
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/tests/yui/
Dbug2527974.css.min1 …LastChangedDate: 2009-05-27 17:41:02 +0100 (Wed, 27 May 2009) $ */body{yo:cats}ul[id$=foo] label:h…
Dbug2527974.css8 yo: cats;
/external/selinux/libsepol/src/
Dkernel_to_cil.c989 static size_t cats_ebitmap_len(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_len() argument
996 ebitmap_for_each_bit(cats, node, i) { in cats_ebitmap_len()
997 if (!ebitmap_get_bit(cats, i)) in cats_ebitmap_len()
1005 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_len()
1027 static char *cats_ebitmap_to_str(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_to_str() argument
1035 remaining = (int)cats_ebitmap_len(cats, val_to_name); in cats_ebitmap_to_str()
1047 ebitmap_for_each_bit(cats, node, i) { in cats_ebitmap_to_str()
1048 if (!ebitmap_get_bit(cats, i)) in cats_ebitmap_to_str()
1056 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_to_str()
1088 char *name, *cats; in write_sensitivitycategory_rules_to_cil() local
[all …]
Dkernel_to_conf.c974 static size_t cats_ebitmap_len(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_len() argument
981 ebitmap_for_each_bit(cats, node, i) { in cats_ebitmap_len()
982 if (!ebitmap_get_bit(cats, i)) in cats_ebitmap_len()
990 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_len()
1004 static char *cats_ebitmap_to_str(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_to_str() argument
1013 remaining = (int)cats_ebitmap_len(cats, val_to_name); in cats_ebitmap_to_str()
1023 ebitmap_for_each_bit(cats, node, i) { in cats_ebitmap_to_str()
1024 if (!ebitmap_get_bit(cats, i)) in cats_ebitmap_to_str()
1032 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_to_str()
1066 char *name, *cats; in write_level_rules_to_conf() local
[all …]
/external/libchrome/base/containers/
Dspan_unittest.nc79 // Cat** cats = GetCats();
80 // Animals** animals = cats;
/external/swiftshader/third_party/llvm-subzero/lib/Support/
Dregcomp.c1298 cat_t *cats = g->categories; in categorize() local
1308 if (cats[c] == 0 && isinsets(g, c)) { in categorize()
1310 cats[c] = cat; in categorize()
1312 if (cats[c2] == 0 && samesets(g, c, c2)) in categorize()
1313 cats[c2] = cat; in categorize()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
Dregcomp.c1425 cat_t *cats = g->categories; in categorize() local
1435 if (cats[c] == 0 && isinsets(g, c)) { in categorize()
1437 cats[c] = cat; in categorize()
1439 if (cats[c2] == 0 && samesets(g, c, c2)) in categorize()
1440 cats[c2] = cat; in categorize()
/external/llvm/lib/Support/
Dregcomp.c1298 cat_t *cats = g->categories; in categorize() local
1308 if (cats[c] == 0 && isinsets(g, c)) { in categorize()
1310 cats[c] = cat; in categorize()
1312 if (cats[c2] == 0 && samesets(g, c, c2)) in categorize()
1313 cats[c2] = cat; in categorize()
/external/swiftshader/third_party/LLVM/lib/Support/
Dregcomp.c1260 cat_t *cats = g->categories; in categorize() local
1270 if (cats[c] == 0 && isinsets(g, c)) { in categorize()
1272 cats[c] = cat; in categorize()
1274 if (cats[c2] == 0 && samesets(g, c, c2)) in categorize()
1275 cats[c2] = cat; in categorize()

123