/external/selinux/libsepol/cil/test/unit/ |
D | test_cil_build_ast.h | 130 void test_cil_gen_classmap_perm_dbnull_neg(CuTest *tc); 131 void test_cil_gen_classmap_perm_currnull_neg(CuTest *tc); 132 void test_cil_gen_classmap_perm_astnull_neg(CuTest *tc); 138 void test_cil_gen_classmap_dbnull_neg(CuTest *tc); 139 void test_cil_gen_classmap_currnull_neg(CuTest *tc); 140 void test_cil_gen_classmap_astnull_neg(CuTest *tc); 149 void test_cil_gen_classmapping_dbnull_neg(CuTest *tc); 150 void test_cil_gen_classmapping_currnull_neg(CuTest *tc); 151 void test_cil_gen_classmapping_astnull_neg(CuTest *tc); 154 void test_cil_gen_common_dbnull_neg(CuTest *tc); [all …]
|
D | test_cil_copy_ast.h | 41 void test_cil_copy_node_helper_block(CuTest *tc); 42 void test_cil_copy_node_helper_block_merge(CuTest *tc); 45 void test_cil_copy_node_helper_perm(CuTest *tc); 46 void test_cil_copy_node_helper_perm_neg(CuTest *tc); 49 void test_cil_copy_node_helper_class(CuTest *tc); 50 void test_cil_copy_node_helper_class_dup_neg(CuTest *tc); 53 void test_cil_copy_node_helper_common(CuTest *tc); 54 void test_cil_copy_node_helper_common_dup_neg(CuTest *tc); 57 void test_cil_copy_node_helper_classcommon(CuTest *tc); 60 void test_cil_copy_node_helper_sid(CuTest *tc); [all …]
|
D | test_cil_post.h | 35 void test_cil_post_filecon_compare_meta_a_not_b(CuTest *tc); 36 void test_cil_post_filecon_compare_meta_b_not_a(CuTest *tc); 37 void test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b(CuTest *tc); 38 void test_cil_post_filecon_compare_meta_a_and_b_strlen_b_greater_a(CuTest *tc); 39 void test_cil_post_filecon_compare_type_atype_greater_btype(CuTest *tc); 40 void test_cil_post_filecon_compare_type_btype_greater_atype(CuTest *tc); 41 void test_cil_post_filecon_compare_stemlen_a_greater_b(CuTest *tc); 42 void test_cil_post_filecon_compare_stemlen_b_greater_a(CuTest *tc); 43 void test_cil_post_filecon_compare_equal(CuTest *tc); 45 void test_cil_post_portcon_compare_atotal_greater_btotal(CuTest *tc); [all …]
|
D | test_cil_resolve_ast.h | 41 void test_cil_resolve_rolebounds(CuTest *tc); 42 void test_cil_resolve_rolebounds_exists_neg(CuTest *tc); 43 void test_cil_resolve_rolebounds_role1_neg(CuTest *tc); 44 void test_cil_resolve_rolebounds_role2_neg(CuTest *tc); 218 void test_cil_resolve_ast_node_helper_filecon(CuTest *tc); 219 void test_cil_resolve_ast_node_helper_filecon_neg(CuTest *tc); 225 void test_cil_resolve_ast_node_helper_portcon(CuTest *tc); 226 void test_cil_resolve_ast_node_helper_portcon_neg(CuTest *tc); 232 void test_cil_resolve_ast_node_helper_genfscon(CuTest *tc); 233 void test_cil_resolve_ast_node_helper_genfscon_neg(CuTest *tc); [all …]
|
D | test_cil_build_ast.c | 63 void test_cil_parse_to_list(CuTest *tc) { in test_cil_parse_to_list() argument 89 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_parse_to_list() 94 void test_cil_parse_to_list_currnull_neg(CuTest *tc) { in test_cil_parse_to_list_currnull_neg() argument 120 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_parse_to_list_currnull_neg() 125 void test_cil_parse_to_list_listnull_neg(CuTest *tc) { in test_cil_parse_to_list_listnull_neg() argument 149 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_parse_to_list_listnull_neg() 154 void test_cil_set_to_list(CuTest *tc) { in test_cil_set_to_list() argument 167 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_set_to_list() 168 CuAssertStrEquals(tc, "foo1", (char*)cil_l->head->data); in test_cil_set_to_list() 169 CuAssertStrEquals(tc, "foo2", (char*)cil_l->head->next->data); in test_cil_set_to_list() [all …]
|
D | test_cil_copy_ast.c | 56 void test_cil_copy_list(CuTest *tc) { in test_cil_copy_list() argument 71 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_list() 72 CuAssertStrEquals(tc, copy_list->head->data, cil_l->head->data); in test_cil_copy_list() 73 CuAssertStrEquals(tc, copy_list->head->next->data, cil_l->head->next->data); in test_cil_copy_list() 74 CuAssertIntEquals(tc, copy_list->head->flavor, cil_l->head->flavor); in test_cil_copy_list() 75 CuAssertIntEquals(tc, copy_list->head->next->flavor, cil_l->head->next->flavor); in test_cil_copy_list() 78 void test_cil_copy_list_sublist(CuTest *tc) { in test_cil_copy_list_sublist() argument 93 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_list_sublist() 94 CuAssertStrEquals(tc, copy_list->head->data, cil_l->head->data); in test_cil_copy_list_sublist() 95 CuAssertStrEquals(tc, copy_list->head->next->data, cil_l->head->next->data); in test_cil_copy_list_sublist() [all …]
|
D | CuTest.h | 78 void CuTestRun(CuTest* tc); 82 void CuFail_Line(CuTest* tc, const char* file, int line, const char* message2, const char* message); 83 void CuAssert_Line(CuTest* tc, const char* file, int line, const char* message, int condition); 84 void CuAssertStrEquals_LineMsg(CuTest* tc, 87 void CuAssertIntEquals_LineMsg(CuTest* tc, 90 void CuAssertDblEquals_LineMsg(CuTest* tc, 93 void CuAssertPtrEquals_LineMsg(CuTest* tc, 99 #define CuFail(tc, ms) CuFail_Line( (tc), __FILE__, __LINE__, NULL, (ms)) argument 100 #define CuAssert(tc, ms, cond) CuAssert_Line((tc), __FILE__, __LINE__, (ms), (cond)) argument 101 #define CuAssertTrue(tc, cond) CuAssert_Line((tc), __FILE__, __LINE__, "assert faile… argument [all …]
|
D | test_cil_lexer.c | 37 void test_cil_lexer_setup(CuTest *tc) { in test_cil_lexer_setup() argument 46 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_setup() 51 void test_cil_lexer_next(CuTest *tc) { in test_cil_lexer_next() argument 64 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next() 66 CuAssertIntEquals(tc, OPAREN, test_tok.type); in test_cil_lexer_next() 67 CuAssertStrEquals(tc, "(", test_tok.value); in test_cil_lexer_next() 68 CuAssertIntEquals(tc, 1, test_tok.line); in test_cil_lexer_next() 71 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next() 73 CuAssertIntEquals(tc, SYMBOL, test_tok.type); in test_cil_lexer_next() 74 CuAssertStrEquals(tc, "test", test_tok.value); in test_cil_lexer_next() [all …]
|
D | test_cil_post.c | 39 void test_cil_post_filecon_compare_meta_a_not_b(CuTest *tc) { in test_cil_post_filecon_compare_meta_a_not_b() argument 54 CuAssertTrue(tc, rc < 0); in test_cil_post_filecon_compare_meta_a_not_b() 57 void test_cil_post_filecon_compare_meta_b_not_a(CuTest *tc) { in test_cil_post_filecon_compare_meta_b_not_a() argument 72 CuAssertTrue(tc, rc > 0); in test_cil_post_filecon_compare_meta_b_not_a() 75 void test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b(CuTest *tc) { in test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b() argument 90 CuAssertTrue(tc, rc > 0); in test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b() 93 void test_cil_post_filecon_compare_type_atype_greater_btype(CuTest *tc) { in test_cil_post_filecon_compare_type_atype_greater_btype() argument 109 CuAssertTrue(tc, rc > 0); in test_cil_post_filecon_compare_type_atype_greater_btype() 112 void test_cil_post_filecon_compare_type_btype_greater_atype(CuTest *tc) { in test_cil_post_filecon_compare_type_btype_greater_atype() argument 129 CuAssertTrue(tc, rc < 0); in test_cil_post_filecon_compare_type_btype_greater_atype() [all …]
|
D | test_cil_tree.c | 37 void test_cil_tree_node_init(CuTest *tc) { in test_cil_tree_node_init() argument 42 CuAssertPtrNotNull(tc, test_node); in test_cil_tree_node_init() 43 CuAssertPtrEquals(tc, NULL, test_node->cl_head); in test_cil_tree_node_init() 44 CuAssertPtrEquals(tc, NULL, test_node->cl_tail); in test_cil_tree_node_init() 45 CuAssertPtrEquals(tc, NULL, test_node->parent); in test_cil_tree_node_init() 46 CuAssertPtrEquals(tc, NULL, test_node->data); in test_cil_tree_node_init() 47 CuAssertPtrEquals(tc, NULL, test_node->next); in test_cil_tree_node_init() 48 CuAssertIntEquals(tc, 0, test_node->flavor); in test_cil_tree_node_init() 49 CuAssertIntEquals(tc, 0, test_node->line); in test_cil_tree_node_init() 54 void test_cil_tree_init(CuTest *tc) { in test_cil_tree_init() argument [all …]
|
D | test_cil.c | 38 void test_cil_symtab_array_init(CuTest *tc) { in test_cil_symtab_array_init() argument 43 CuAssertPtrNotNull(tc, test_new_db->symtab); in test_cil_symtab_array_init() 48 void test_cil_db_init(CuTest *tc) { in test_cil_db_init() argument 53 CuAssertPtrNotNull(tc, test_db->ast); in test_cil_db_init() 54 CuAssertPtrNotNull(tc, test_db->symtab); in test_cil_db_init() 55 CuAssertPtrNotNull(tc, test_db->symtab); in test_cil_db_init() 60 void test_cil_get_symtab_block(CuTest *tc) { in test_cil_get_symtab_block() argument 74 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_get_symtab_block() 75 CuAssertPtrNotNull(tc, symtab); in test_cil_get_symtab_block() 78 void test_cil_get_symtab_class(CuTest *tc) { in test_cil_get_symtab_class() argument [all …]
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_tile_cache.c | 42 sp_alloc_tile(struct softpipe_tile_cache *tc); 93 struct softpipe_tile_cache *tc; in sp_create_tile_cache() local 107 tc = CALLOC_STRUCT( softpipe_tile_cache ); in sp_create_tile_cache() 108 if (tc) { in sp_create_tile_cache() 109 tc->pipe = pipe; in sp_create_tile_cache() 110 for (pos = 0; pos < ARRAY_SIZE(tc->tile_addrs); pos++) { in sp_create_tile_cache() 111 tc->tile_addrs[pos].bits.invalid = 1; in sp_create_tile_cache() 113 tc->last_tile_addr.bits.invalid = 1; in sp_create_tile_cache() 118 tc->tile = MALLOC_STRUCT( softpipe_cached_tile ); in sp_create_tile_cache() 119 if (!tc->tile) in sp_create_tile_cache() [all …]
|
D | sp_tex_tile_cache.c | 49 struct softpipe_tex_tile_cache *tc; in sp_create_tex_tile_cache() local 55 tc = CALLOC_STRUCT( softpipe_tex_tile_cache ); in sp_create_tex_tile_cache() 56 if (tc) { in sp_create_tex_tile_cache() 57 tc->pipe = pipe; in sp_create_tex_tile_cache() 58 for (pos = 0; pos < ARRAY_SIZE(tc->entries); pos++) { in sp_create_tex_tile_cache() 59 tc->entries[pos].addr.bits.invalid = 1; in sp_create_tex_tile_cache() 61 tc->last_tile = &tc->entries[0]; /* any tile */ in sp_create_tex_tile_cache() 63 return tc; in sp_create_tex_tile_cache() 68 sp_destroy_tex_tile_cache(struct softpipe_tex_tile_cache *tc) in sp_destroy_tex_tile_cache() argument 70 if (tc) { in sp_destroy_tex_tile_cache() [all …]
|
/external/libnl/lib/route/ |
D | tc.c | 61 int rtnl_tc_msg_parse(struct nlmsghdr *n, struct rtnl_tc *tc) in rtnl_tc_msg_parse() argument 70 tc->ce_msgtype = n->nlmsg_type; in rtnl_tc_msg_parse() 80 rtnl_tc_set_kind(tc, kind); in rtnl_tc_msg_parse() 83 tc->tc_family = tm->tcm_family; in rtnl_tc_msg_parse() 84 tc->tc_ifindex = tm->tcm_ifindex; in rtnl_tc_msg_parse() 85 tc->tc_handle = tm->tcm_handle; in rtnl_tc_msg_parse() 86 tc->tc_parent = tm->tcm_parent; in rtnl_tc_msg_parse() 87 tc->tc_info = tm->tcm_info; in rtnl_tc_msg_parse() 89 tc->ce_mask |= (TCA_ATTR_FAMILY | TCA_ATTR_IFINDEX | TCA_ATTR_HANDLE| in rtnl_tc_msg_parse() 93 tc->tc_opts = nl_data_alloc_attr(tb[TCA_OPTIONS]); in rtnl_tc_msg_parse() [all …]
|
/external/libchrome/base/trace_event/ |
D | trace_config_unittest.cc | 67 void CheckDefaultTraceConfigBehavior(const TraceConfig& tc) { in CheckDefaultTraceConfigBehavior() argument 68 EXPECT_EQ(RECORD_UNTIL_FULL, tc.GetTraceRecordMode()); in CheckDefaultTraceConfigBehavior() 69 EXPECT_FALSE(tc.IsSystraceEnabled()); in CheckDefaultTraceConfigBehavior() 70 EXPECT_FALSE(tc.IsArgumentFilterEnabled()); in CheckDefaultTraceConfigBehavior() 74 EXPECT_TRUE(tc.IsCategoryGroupEnabled("Category1")); in CheckDefaultTraceConfigBehavior() 75 EXPECT_TRUE(tc.IsCategoryGroupEnabled("not-excluded-category")); in CheckDefaultTraceConfigBehavior() 76 EXPECT_FALSE(tc.IsCategoryGroupEnabled("disabled-by-default-cc")); in CheckDefaultTraceConfigBehavior() 78 EXPECT_TRUE(tc.IsCategoryGroupEnabled("Category1,not-excluded-category")); in CheckDefaultTraceConfigBehavior() 79 EXPECT_TRUE(tc.IsCategoryGroupEnabled("Category1,disabled-by-default-cc")); in CheckDefaultTraceConfigBehavior() 80 EXPECT_FALSE(tc.IsCategoryGroupEnabled( in CheckDefaultTraceConfigBehavior() [all …]
|
/external/mesa3d/src/gallium/drivers/ilo/shader/ |
D | toy_compiler.h | 174 tc_alloc_vrf(struct toy_compiler *tc, int count) in tc_alloc_vrf() argument 176 const int vrf = tc->next_vrf; in tc_alloc_vrf() 178 tc->next_vrf += count; in tc_alloc_vrf() 187 tc_alloc_tmp(struct toy_compiler *tc) in tc_alloc_tmp() argument 189 return tdst(TOY_FILE_VRF, tc_alloc_vrf(tc, 1), 0); in tc_alloc_tmp() 196 tc_alloc_tmp4(struct toy_compiler *tc, struct toy_dst *tmp) in tc_alloc_tmp4() argument 198 tmp[0] = tc_alloc_tmp(tc); in tc_alloc_tmp4() 199 tmp[1] = tc_alloc_tmp(tc); in tc_alloc_tmp4() 200 tmp[2] = tc_alloc_tmp(tc); in tc_alloc_tmp4() 201 tmp[3] = tc_alloc_tmp(tc); in tc_alloc_tmp4() [all …]
|
D | ilo_shader_fs.c | 41 struct toy_compiler tc; member 73 struct toy_compiler *tc = &fcc->tc; in fetch_position() local 96 tmp_uw = tdst_uw(tc_alloc_tmp(tc)); in fetch_position() 97 tmp = tc_alloc_tmp(tc); in fetch_position() 100 tc_ADD(tc, tmp_uw, subspan_x, tsrc_imm_v(0x10101010)); in fetch_position() 101 tc_MOV(tc, tmp, tsrc_from(tmp_uw)); in fetch_position() 103 tc_MOV(tc, real_dst[0], tsrc_from(tmp)); in fetch_position() 105 tc_ADD(tc, real_dst[0], tsrc_from(tmp), tsrc_imm_f(0.5f)); in fetch_position() 108 tc_ADD(tc, tmp_uw, subspan_y, tsrc_imm_v(0x11001100)); in fetch_position() 109 tc_MOV(tc, tmp, tsrc_from(tmp_uw)); in fetch_position() [all …]
|
D | ilo_shader_gs.c | 48 struct toy_compiler tc; member 112 gs_COPY8(struct toy_compiler *tc, struct toy_dst dst, struct toy_src src) in gs_COPY8() argument 116 inst = tc_MOV(tc, dst, src); in gs_COPY8() 122 gs_COPY4(struct toy_compiler *tc, in gs_COPY4() argument 128 inst = tc_MOV(tc, in gs_COPY4() 136 gs_COPY1(struct toy_compiler *tc, in gs_COPY1() argument 142 inst = tc_MOV(tc, in gs_COPY1() 152 struct toy_compiler *tc = &gcc->tc; in gs_init_vars() local 158 gs_COPY8(tc, dst, gcc->payload.header); in gs_init_vars() 175 tc_MOV(tc, gcc->vars.so_written, tsrc_imm_d(0)); in gs_init_vars() [all …]
|
D | toy_legalize.c | 38 toy_compiler_lower_to_send(struct toy_compiler *tc, struct toy_inst *inst, in toy_compiler_lower_to_send() argument 77 toy_compiler_lower_math(struct toy_compiler *tc, struct toy_inst *inst) in toy_compiler_lower_math() argument 95 tmp = tdst_type(tc_alloc_tmp(tc), inst->src[i].type); in toy_compiler_lower_math() 96 tc_MOV(tc, tmp, inst->src[i]); in toy_compiler_lower_math() 108 tc_move_inst(tc, inst); in toy_compiler_lower_math() 115 tmp = tc_alloc_tmp(tc); in toy_compiler_lower_math() 119 inst2 = tc_MOV(tc, dst, tsrc_from(tmp)); in toy_compiler_lower_math() 177 validate_imm(struct toy_compiler *tc, struct toy_inst *inst) in validate_imm() argument 209 tmp = tc_alloc_tmp(tc); in validate_imm() 211 tc_MOV(tc, tmp, inst->src[i]); in validate_imm() [all …]
|
D | ilo_shader_vs.c | 41 struct toy_compiler tc; member 62 struct toy_compiler *tc = &vcc->tc; in vs_lower_opcode_tgsi_in() local 74 tc_MOV(tc, dst, src); in vs_lower_opcode_tgsi_in() 78 tc_MOV(tc, dst, tsrc_imm_f(0.0f)); in vs_lower_opcode_tgsi_in() 98 tc_MOV(&vcc->tc, dst, src); in vs_lower_opcode_tgsi_const_pcb() 113 struct toy_compiler *tc = &vcc->tc; in vs_lower_opcode_tgsi_const_gen6() local 122 inst = tc_MOV(tc, header, r0); in vs_lower_opcode_tgsi_const_gen6() 126 tc_MOV(tc, block_offsets, idx); in vs_lower_opcode_tgsi_const_gen6() 132 desc = tsrc_imm_mdesc_data_port(tc, false, msg_len, 1, true, false, in vs_lower_opcode_tgsi_const_gen6() 135 tc_SEND(tc, dst, tsrc_from(header), desc, vcc->const_cache); in vs_lower_opcode_tgsi_const_gen6() [all …]
|
/external/expat/tests/ |
D | minicheck.c | 59 TCase *tc = (TCase *) calloc(1, sizeof(TCase)); in tcase_create() local 60 if (tc != NULL) { in tcase_create() 61 tc->name = name; in tcase_create() 63 return tc; in tcase_create() 67 suite_add_tcase(Suite *suite, TCase *tc) in suite_add_tcase() argument 70 assert(tc != NULL); in suite_add_tcase() 71 assert(tc->next_tcase == NULL); in suite_add_tcase() 73 tc->next_tcase = suite->tests; in suite_add_tcase() 74 suite->tests = tc; in suite_add_tcase() 78 tcase_add_checked_fixture(TCase *tc, in tcase_add_checked_fixture() argument [all …]
|
/external/ltp/testcases/kernel/syscalls/mincore/ |
D | mincore01.c | 61 static void setup1(struct test_case_t *tc); 62 static void setup2(struct test_case_t *tc); 63 static void setup3(struct test_case_t *tc); 64 static void setup4(struct test_case_t *tc); 71 void (*setupfunc) (struct test_case_t *tc); 79 static void mincore_verify(struct test_case_t *tc); 102 static void setup1(struct test_case_t *tc) in setup1() argument 104 tc->addr = global_pointer + 1; in setup1() 105 tc->len = global_len; in setup1() 106 tc->vector = global_vec; in setup1() [all …]
|
/external/tensorflow/tensorflow/contrib/labeled_tensor/python/ops/ |
D | core.py | 38 from tensorflow.contrib.labeled_tensor.python.ops import _typecheck as tc unknown 49 LabelsLike = tc.Union(np.ndarray, range, list, tuple) 52 DimensionLike = tc.Optional(tc.Union(tensor_shape.Dimension, int)) 55 AxisValue = tc.Union(LabelsLike, DimensionLike) 58 Scalar = tc.Union(numbers.Number, bool, binary_type, text_type) 72 @tc.accepts(object, string_types, AxisValue) 113 @tc.returns(string_types) 117 @tc.returns(string_types) 123 @tc.returns(bool) 131 @tc.returns(bool) [all …]
|
D | ops.py | 26 from tensorflow.contrib.labeled_tensor.python.ops import _typecheck as tc unknown 38 @tc.returns(core.LabeledTensor) 39 @tc.accepts(core.LabeledTensor, ops.Tensor, core.Axis, 40 tc.Optional(string_types)) 51 @tc.returns(core.LabeledTensor) 52 @tc.accepts(core.LabeledTensorLike, 53 tc.Mapping(string_types, 54 tc.Union(slice, collections.Hashable, list)), 55 tc.Optional(string_types)) 144 @tc.returns(core.LabeledTensor) [all …]
|
/external/ltp/testcases/kernel/syscalls/mq_timedsend/ |
D | mq_timedsend01.c | 141 const struct test_case *tc = &tcase[i]; in do_test() local 148 if (tc->signal) in do_test() 149 pid = set_sig(tc->rq); in do_test() 151 if (tc->timeout) in do_test() 152 set_timeout(tc->rq); in do_test() 154 if (tc->send) { in do_test() 156 send_msg(*tc->fd, tc->len, tc->prio); in do_test() 159 TEST(mq_timedsend(*tc->fd, smsg, tc->len, tc->prio, tc->rq)); in do_test() 165 if (tc->err != TEST_ERRNO) in do_test() 168 tst_strerrno(tc->err)); in do_test() [all …]
|