Home
last modified time | relevance | path

Searched refs:tc (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_build_ast.h130 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 …]
Dtest_cil_copy_ast.h41 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 …]
Dtest_cil_post.h35 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 …]
Dtest_cil_resolve_ast.h41 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 …]
DCuTest.h78 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 …]
Dtest_cil_build_ast.c63 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 …]
Dtest_cil_lexer.c37 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 …]
Dtest_cil_copy_ast.c56 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 …]
Dtest_cil_tree.c37 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 …]
Dtest_cil.c38 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 …]
Dtest_cil_post.c39 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 …]
Dtest_cil_resolve_ast.c66 void test_cil_resolve_name(CuTest *tc) { in test_cil_resolve_name() argument
87 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_name()
90 void test_cil_resolve_name_invalid_type_neg(CuTest *tc) { in test_cil_resolve_name_invalid_type_neg() argument
111 CuAssertIntEquals(tc, SEPOL_ENOENT, rc); in test_cil_resolve_name_invalid_type_neg()
114 void test_cil_resolve_ast_curr_null_neg(CuTest *tc) { in test_cil_resolve_ast_curr_null_neg() argument
121 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_resolve_ast_curr_null_neg()
129 void test_cil_resolve_roleallow(CuTest *tc) { in test_cil_resolve_roleallow() argument
146 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_roleallow()
149 void test_cil_resolve_roleallow_srcdecl_neg(CuTest *tc) { in test_cil_resolve_roleallow_srcdecl_neg() argument
166 CuAssertIntEquals(tc, SEPOL_ENOENT, rc); in test_cil_resolve_roleallow_srcdecl_neg()
[all …]
Dtest_integration.c40 void test_integration(CuTest *tc) { in test_integration() argument
58 CuAssertIntEquals(tc, 1, WIFEXITED(status)); in test_integration()
59 CuAssertIntEquals(tc, 0, WEXITSTATUS(status)); in test_integration()
60 CuAssertIntEquals(tc, 1, WIFEXITED(status1)); in test_integration()
61 CuAssertIntEquals(tc, 0, WEXITSTATUS(status1)); in test_integration()
62 CuAssertIntEquals(tc, 1, WIFEXITED(status2)); in test_integration()
63 CuAssertIntEquals(tc, 0, WEXITSTATUS(status2)); in test_integration()
66 void test_min_policy(CuTest *tc) { in test_min_policy() argument
74 CuAssertIntEquals(tc, 1, WIFEXITED(status)); in test_min_policy()
75 CuAssertIntEquals(tc, 0, WEXITSTATUS(status)); in test_min_policy()
DCuTest.c147 CuTest* tc = CU_ALLOC(CuTest); in CuTestNew() local
148 CuTestInit(tc, name, function); in CuTestNew()
149 return tc; in CuTestNew()
159 void CuTestRun(CuTest* tc) in CuTestRun() argument
162 tc->jumpBuf = &buf; in CuTestRun()
165 tc->ran = 1; in CuTestRun()
166 (tc->function)(tc); in CuTestRun()
168 tc->jumpBuf = 0; in CuTestRun()
171 static void CuFailInternal(CuTest* tc, const char* file, int line, CuString* string) in CuFailInternal() argument
178 tc->failed = 1; in CuFailInternal()
[all …]
Dtest_cil_list.c36 void test_cil_list_init(CuTest *tc) { in test_cil_list_init() argument
43 CuAssertPtrNotNull(tc, test_avrule->classpermset->permset->perms_list_str); in test_cil_list_init()
48 void test_cil_list_append_item(CuTest *tc) { in test_cil_list_append_item() argument
73 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_append_item()
76 void test_cil_list_append_item_append(CuTest *tc) { in test_cil_list_append_item_append() argument
108 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_append_item_append()
109 CuAssertIntEquals(tc, SEPOL_OK, rc2); in test_cil_list_append_item_append()
112 void test_cil_list_append_item_append_extra(CuTest *tc) { in test_cil_list_append_item_append_extra() argument
149 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_append_item_append_extra()
150 CuAssertIntEquals(tc, SEPOL_OK, rc2); in test_cil_list_append_item_append_extra()
[all …]
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_tex_tile_cache.c49 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()
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()
76 if (tc->transfer) { in sp_destroy_tex_tile_cache()
[all …]
Dsp_tile_cache.c42 sp_alloc_tile(struct softpipe_tile_cache *tc);
86 struct softpipe_tile_cache *tc; in sp_create_tile_cache() local
99 tc = CALLOC_STRUCT( softpipe_tile_cache ); in sp_create_tile_cache()
100 if (tc) { in sp_create_tile_cache()
101 tc->pipe = pipe; in sp_create_tile_cache()
103 tc->tile_addrs[pos].bits.invalid = 1; in sp_create_tile_cache()
105 tc->last_tile_addr.bits.invalid = 1; in sp_create_tile_cache()
110 tc->tile = MALLOC_STRUCT( softpipe_cached_tile ); in sp_create_tile_cache()
111 if (!tc->tile) in sp_create_tile_cache()
113 FREE(tc); in sp_create_tile_cache()
[all …]
Dsp_tile_cache.h106 sp_destroy_tile_cache(struct softpipe_tile_cache *tc);
109 sp_tile_cache_set_surface(struct softpipe_tile_cache *tc,
113 sp_tile_cache_get_surface(struct softpipe_tile_cache *tc);
116 sp_tile_cache_map_transfers(struct softpipe_tile_cache *tc);
119 sp_tile_cache_unmap_transfers(struct softpipe_tile_cache *tc);
122 sp_flush_tile_cache(struct softpipe_tile_cache *tc);
125 sp_tile_cache_clear(struct softpipe_tile_cache *tc,
130 sp_find_cached_tile(struct softpipe_tile_cache *tc,
150 sp_get_cached_tile(struct softpipe_tile_cache *tc, in sp_get_cached_tile() argument
155 if (tc->last_tile_addr.value == addr.value) in sp_get_cached_tile()
[all …]
Dsp_tex_tile_cache.h107 sp_destroy_tex_tile_cache(struct softpipe_tex_tile_cache *tc);
111 sp_tex_tile_cache_map_transfers(struct softpipe_tex_tile_cache *tc);
114 sp_tex_tile_cache_unmap_transfers(struct softpipe_tex_tile_cache *tc);
117 sp_tex_tile_cache_set_sampler_view(struct softpipe_tex_tile_cache *tc,
121 sp_tex_tile_cache_validate_texture(struct softpipe_tex_tile_cache *tc);
124 sp_flush_tex_tile_cache(struct softpipe_tex_tile_cache *tc);
129 sp_find_cached_tile_tex(struct softpipe_tex_tile_cache *tc,
154 sp_get_cached_tile_tex(struct softpipe_tex_tile_cache *tc, in sp_get_cached_tile_tex() argument
157 if (tc->last_tile->addr.value == addr.value) in sp_get_cached_tile_tex()
158 return tc->last_tile; in sp_get_cached_tile_tex()
[all …]
/external/libchrome/base/trace_event/
Dtrace_config_unittest.cc229 TraceConfig tc(configs[i], ""); in TEST() local
230 EXPECT_EQ(0u, tc.GetSyntheticDelayValues().size()); in TEST()
236 TraceConfig tc; in TEST() local
237 EXPECT_STREQ(kDefaultTraceConfigString, tc.ToString().c_str()); in TEST()
238 EXPECT_EQ(RECORD_UNTIL_FULL, tc.GetTraceRecordMode()); in TEST()
239 EXPECT_FALSE(tc.IsSamplingEnabled()); in TEST()
240 EXPECT_FALSE(tc.IsSystraceEnabled()); in TEST()
241 EXPECT_FALSE(tc.IsArgumentFilterEnabled()); in TEST()
242 EXPECT_STREQ("-*Debug,-*Test", tc.ToCategoryFilterString().c_str()); in TEST()
244 EXPECT_FALSE(tc.IsCategoryEnabled("Category1")); in TEST()
[all …]
/external/iproute2/man/man8/
DMakefile4 tc.8 tc-bfifo.8 tc-bpf.8 tc-cbq.8 tc-cbq-details.8 tc-choke.8 tc-codel.8 \
5 tc-fq.8 \
6 tc-drr.8 tc-ematch.8 tc-fq_codel.8 tc-hfsc.8 tc-htb.8 tc-pie.8 \
7 tc-mqprio.8 tc-netem.8 tc-pfifo.8 tc-pfifo_fast.8 tc-prio.8 tc-red.8 \
8 tc-sfb.8 tc-sfq.8 tc-stab.8 tc-tbf.8 \
16 tc-basic.8 tc-cgroup.8 tc-flow.8 tc-flower.8 tc-fw.8 tc-route.8 \
17 tc-tcindex.8 tc-u32.8
/external/expat/tests/
Dminicheck.c28 TCase *tc = (TCase *) calloc(1, sizeof(TCase)); in tcase_create() local
29 if (tc != NULL) { in tcase_create()
30 tc->name = name; in tcase_create()
32 return tc; in tcase_create()
36 suite_add_tcase(Suite *suite, TCase *tc) in suite_add_tcase() argument
39 assert(tc != NULL); in suite_add_tcase()
40 assert(tc->next_tcase == NULL); in suite_add_tcase()
42 tc->next_tcase = suite->tests; in suite_add_tcase()
43 suite->tests = tc; in suite_add_tcase()
47 tcase_add_checked_fixture(TCase *tc, in tcase_add_checked_fixture() argument
[all …]
/external/libhevc/common/
Dihevc_deblk_edge_filter.c109 WORD32 beta, tc; in ihevc_deblk_luma_vert() local
131 tc = gai4_ihevc_tc_table[tc_indx]; in ihevc_deblk_luma_vert()
132 if(0 == tc) in ihevc_deblk_luma_vert()
162 && ABS(pu1_src[0] - pu1_src[-1]) < ((5 * tc + 1) >> 1)) in ihevc_deblk_luma_vert()
172 && ABS(pu1_src[0] - pu1_src[-1]) < ((5 * tc + 1) >> 1)) in ihevc_deblk_luma_vert()
181 if(tc <= 1) in ihevc_deblk_luma_vert()
205 pu1_src[0] - 2 * tc, in ihevc_deblk_luma_vert()
206 pu1_src[0] + 2 * tc); in ihevc_deblk_luma_vert()
210 pu1_src[1] - 2 * tc, in ihevc_deblk_luma_vert()
211 pu1_src[1] + 2 * tc); in ihevc_deblk_luma_vert()
[all …]
/external/valgrind/memcheck/tests/
Dcond_ld_st.c354 int i, Bool isLd, const TestCase* tc ) in do_test_case_steer() argument
357 if (i == 0) { fn(i,isLd,tc); return; }; in do_test_case_steer()
359 if (i == 1) { fn(i,isLd,tc); return; }; in do_test_case_steer()
361 if (i == 2) { fn(i,isLd,tc); return; }; in do_test_case_steer()
363 if (i == 3) { fn(i,isLd,tc); return; }; in do_test_case_steer()
365 if (i == 4) { fn(i,isLd,tc); return; }; in do_test_case_steer()
367 if (i == 5) { fn(i,isLd,tc); return; }; in do_test_case_steer()
369 if (i == 6) { fn(i,isLd,tc); return; }; in do_test_case_steer()
371 if (i == 7) { fn(i,isLd,tc); return; }; in do_test_case_steer()
373 if (i == 8) { fn(i,isLd,tc); return; }; in do_test_case_steer()
[all …]
/external/deqp/modules/gles3/functional/
Des3fScissorTests.cpp63 tcu::TestContext& tc = m_context.getTestContext(); in init() local
94 addChild(createPrimitiveTest(tc, in init()
104 …addChild(createClearTest(tc, rc, "clear_depth", "Depth buffer clear", Vec4(0.1f, 0.1f, 0.8f, 0.8f… in init()
105 …addChild(createClearTest(tc, rc, "clear_stencil", "Stencil buffer clear", Vec4(0.1f, 0.1f, 0.8f, 0… in init()
106 …addChild(createClearTest(tc, rc, "clear_color", "Color buffer clear", Vec4(0.1f, 0.1f, 0.8f, 0.8f… in init()
108 …addChild(createFramebufferClearTest(tc, rc, "clear_fixed_buffer", "Fixed point color clear", C… in init()
109 …addChild(createFramebufferClearTest(tc, rc, "clear_int_buffer", "Integer color clear", CLEAR… in init()
110 …addChild(createFramebufferClearTest(tc, rc, "clear_uint_buffer", "Unsigned integer buffer clear"… in init()
111 …addChild(createFramebufferClearTest(tc, rc, "clear_depth_buffer", "Depth buffer clear", CLEAR… in init()
112 …addChild(createFramebufferClearTest(tc, rc, "clear_stencil_buffer", "Stencil buffer clear", C… in init()
[all …]

12345678910>>...12