Home
last modified time | relevance | path

Searched refs:exp_range (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Modules/_decimal/tests/
Dranddec.py510 def all_unary(prec, exp_range, itr): argument
511 for a in un_close_to_pow10(prec, exp_range, itr):
513 for a in un_close_numbers(prec, exp_range, -exp_range, itr):
515 for a in un_incr_digits_tuple(prec, exp_range, itr):
524 yield (randdec(prec, exp_range),)
526 yield (randtuple(prec, exp_range),)
528 def unary_optarg(prec, exp_range, itr): argument
530 yield randdec(prec, exp_range), None
531 yield randdec(prec, exp_range), None, None
533 def all_binary(prec, exp_range, itr): argument
[all …]
Ddeccheck.py959 def test_unary(method, prec, exp_range, restricted_range, itr, stat): argument
962 exp_range = restricted_range
963 for op in all_unary(prec, exp_range, itr):
974 for op in unary_optarg(prec, exp_range, itr):
984 def test_binary(method, prec, exp_range, restricted_range, itr, stat): argument
987 exp_range = restricted_range
988 for op in all_binary(prec, exp_range, itr):
999 for op in binary_optarg(prec, exp_range, itr):
1009 def test_ternary(method, prec, exp_range, restricted_range, itr, stat): argument
1012 exp_range = restricted_range
[all …]
/external/selinux/libsepol/src/
Dexpand.c1006 &new_user->exp_range, in user_copy_callback()
1016 &new_user->exp_range.level[0], in user_copy_callback()
1017 &new_user->exp_range.level[1])) { in user_copy_callback()
1036 if (!mls_range_eq(&new_user->exp_range, &tmp_range) || in user_copy_callback()
1476 mls_range_t *r, *exp_range = NULL; in exp_rangetr_helper() local
1479 exp_range = calloc(1, sizeof(*exp_range)); in exp_rangetr_helper()
1480 if (!exp_range) { in exp_rangetr_helper()
1485 if (mls_semantic_range_expand(trange, exp_range, state->out, in exp_rangetr_helper()
1495 if (mls_range_eq(r, exp_range)) { in exp_rangetr_helper()
1497 mls_range_destroy(exp_range); in exp_rangetr_helper()
[all …]
Dusers.c77 if (mls_range_cpy(&context.range, &usrdatum->exp_range) < 0) { in user_to_record()
212 if (mls_range_cpy(&usrdatum->exp_range, &context.range) < 0) { in sepol_user_modify()
Dmls.c313 if (!usrdatum || !mls_range_contains(usrdatum->exp_range, c->range)) in mls_context_isvalid()
515 mls_level_t *user_low = &(user->exp_range.level[0]); in mls_setup_user_range()
516 mls_level_t *user_clr = &(user->exp_range.level[1]); in mls_setup_user_range()
Dpolicydb.c550 mls_range_init(&x->exp_range); in user_datum_init()
561 mls_range_destroy(&x->exp_range); in user_datum_destroy()
961 mls_range_destroy(&user->exp_range); in policydb_user_cache()
963 &user->exp_range, p, NULL)) { in policydb_user_cache()
3188 if (mls_read_range_helper(&usrdatum->exp_range, fp)) in user_read()
3193 if (mls_range_to_semantic(&usrdatum->exp_range, in user_read()
Dwrite.c1266 if (mls_write_range_helper(&usrdatum->exp_range, fp)) in user_write()
Dkernel_to_conf.c2325 range = range_to_str(pdb, &user->exp_range); in write_user_decl_rules_to_conf()
Dkernel_to_cil.c2446 range = range_to_str(pdb, &user->exp_range); in write_user_decl_rules_to_cil()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h210 mls_range_t exp_range; /* expanded range used for validation */ member
/external/selinux/libsepol/cil/src/
Dcil_binary.c2989 rc = __cil_levelrange_to_mls_range(pdb, cil_levelrange, &sepol_user->exp_range); in cil_userlevel_userrange_to_policydb()