/external/selinux/python/chcat/ |
chcat | 84 cats = [] 89 cats.append(top[1]) 90 cats = expandCats(cats) 93 if i not in cats: 94 cats.append(i) 96 if len(cats) > 0: 97 new_serange = "%s-%s:%s" % (serange[0], top[0], ",".join(cats)) 136 cats = clist[1:] 137 cats.sort( [all...] |
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
PrefState.java | 54 ArrayList<Cat> cats = new ArrayList<>(); local 61 cats.add(cat); 64 return cats;
|
NekoService.java | 78 List<Cat> cats = prefs.getCats(); local 82 if (cats.size() == 0 || rng.nextFloat() <= new_cat_prob) { 88 cat = cats.get(rng.nextInt(cats.size()));
|
NekoLand.java | 100 Cat[] cats; local 102 cats = new Cat[50]; 103 for (int i = 0; i < cats.length; i++) { 104 cats[i] = Cat.create(this); 119 cats = list.toArray(new Cat[0]); 121 mAdapter.setCats(cats); 122 return cats.length; 177 public void setCats(Cat[] cats) { 178 mCats = cats;
|
/external/selinux/libsepol/cil/src/ |
cil_reset_ast.c | 221 static inline void cil_reset_cats(struct cil_cats *cats) 223 if (cats != NULL) { 224 cats->evaluated = CIL_FALSE; 225 cil_list_destroy(&cats->datum_expr, CIL_FALSE); 232 cil_reset_cats(senscat->cats); 237 cil_reset_cats(catset->cats); 242 cil_reset_cats(level->cats);
|
cil_write_ast.c | 264 static int cil_unfill_cats(struct cil_cats *cats, char **out_str) { 265 return cil_unfill_expr(cats->str_expr, out_str, 0); 271 char *sens, *cats = NULL; local 274 if (lvl->cats != NULL) { 275 rc = cil_unfill_cats(lvl->cats, &cats); 278 len += strlen(cats) + 1; 281 if (cats == NULL) { 288 if (sprintf(*out_str, "(%s %s)", sens, cats) < 0) { 296 free(cats); 865 char *cats = NULL; local [all...] |
cil.c | 1313 struct cil_cats *cats = lvl->cats; local 1365 struct cil_cats *cats = lvl->cats; local [all...] |
cil_verify.c | 447 int __cil_is_cat_in_cats(struct cil_cat *cat, struct cil_cats *cats) 451 cil_list_for_each(i, cats->datum_expr) { 462 int __cil_verify_cat_in_cats(struct cil_cat *cat, struct cil_cats *cats) 464 if (__cil_is_cat_in_cats(cat, cats) != CIL_TRUE) { 472 int __cil_verify_cats_associated_with_sens(struct cil_sens *sens, struct cil_cats *cats) 477 if (!cats) { 486 cil_list_for_each(i, cats->datum_expr) { 572 rc = __cil_verify_levelrange_cats(lr->low->cats, lr->high->cats); 577 rc = __cil_verify_cats_associated_with_sens(lr->low->sens, lr->low->cats); [all...] |
cil_post.c | 834 static int __evaluate_cat_expression(struct cil_cats *cats, struct cil_db *db) 841 if (cats->evaluated == CIL_TRUE) { 845 if (cil_verify_is_list(cats->datum_expr, CIL_CAT)) { 850 rc = __cil_expr_to_bitmap(cats->datum_expr, &bitmap, db->num_cats, db); 867 cil_list_destroy(&cats->datum_expr, CIL_FALSE); 868 cats->datum_expr = new; 870 cats->evaluated = CIL_TRUE; 888 if (catset->cats->evaluated == CIL_FALSE) { 889 rc = __evaluate_cat_expression(catset->cats, db); 892 for (curr = catset->cats->datum_expr->head; curr; curr = curr->next) [all...] |
cil_internal.h | 668 struct cil_cats *cats; member in struct:cil_catset 677 struct cil_cats *cats; member in struct:cil_senscat 684 struct cil_cats *cats; member in struct:cil_level 997 void cil_cats_init(struct cil_cats **cats);
|
cil_copy_ast.c | 918 cil_copy_cats(db, orig->cats, &new->cats); 934 cil_copy_cats(db, orig->cats, &new->cats); 977 if (orig->cats != NULL) { 978 cil_copy_cats(db, orig->cats, &(*new)->cats); [all...] |
cil_tree.c | 534 void cil_tree_print_cats(struct cil_cats *cats) 536 cil_tree_print_expr(cats->datum_expr, cats->str_expr); 602 cil_tree_print_cats(level->cats); 1262 cil_tree_print_cats(catset->cats); 1293 cil_tree_print_cats(senscat->cats); [all...] |
cil_build_ast.h | 221 int cil_fill_cats(struct cil_tree_node *curr, struct cil_cats **cats); 222 void cil_destroy_cats(struct cil_cats *cats);
|
cil_resolve_ast.c | [all...] |
cil_policy.c | 195 static void cil_cats_to_policy(FILE *out, struct cil_cats *cats) 201 cil_list_for_each(i1, cats->datum_expr) { 244 if (level->cats != NULL) { 246 cil_cats_to_policy(out, level->cats); 256 if (l1->sens == l2->sens && (l1->cats == NULL && l2->cats == NULL)) [all...] |
cil_build_ast.c | [all...] |
cil_binary.c | 2934 struct cil_cats *cats = curr->data; local 2955 struct cil_cats *cats = cil_level->cats; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/ |
mkstringprep.py | 6 def gen_category(cats):
8 if unicodedata.category(unichr(i)) in cats:
11 def gen_bidirectional(cats):
13 if unicodedata.bidirectional(unichr(i)) in cats:
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/policyrep/ |
mls.py | 116 cats = sens_split[1] 120 for group in cats.split(","): 290 cats = sorted(self.categories(), key=lambda k: k._value) 292 if cats: 295 for _, i in itertools.groupby(cats, key=lambda k,
|
/external/llvm/lib/Support/ |
regcomp.c | 1298 cat_t *cats = g->categories; local 1308 if (cats[c] == 0 && isinsets(g, c)) { 1310 cats[c] = cat; 1312 if (cats[c2] == 0 && samesets(g, c, c2)) 1313 cats[c2] = cat; [all...] |
/external/swiftshader/third_party/LLVM/lib/Support/ |
regcomp.c | 1260 cat_t *cats = g->categories; local 1270 if (cats[c] == 0 && isinsets(g, c)) { 1272 cats[c] = cat; 1274 if (cats[c2] == 0 && samesets(g, c, c2)) 1275 cats[c2] = cat; [all...] |
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
regcomp.c | 1608 cat_t *cats; local [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
AppErrors.java | 408 final Set<String> cats = task.intent.getCategories(); local 409 if (cats != null && cats.contains(Intent.CATEGORY_LAUNCHER)) { [all...] |
/external/selinux/checkpolicy/ |
policy_define.c | [all...] |
/external/selinux/libsepol/src/ |
module_to_cil.c | 2941 char *cats = NULL; local [all...] |