/external/selinux/libsepol/cil/test/unit/ |
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...] |
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...] |
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...] |
test_cil_tree.c | 37 void test_cil_tree_node_init(CuTest *tc) { 42 CuAssertPtrNotNull(tc, test_node); 43 CuAssertPtrEquals(tc, NULL, test_node->cl_head); 44 CuAssertPtrEquals(tc, NULL, test_node->cl_tail); 45 CuAssertPtrEquals(tc, NULL, test_node->parent); 46 CuAssertPtrEquals(tc, NULL, test_node->data); 47 CuAssertPtrEquals(tc, NULL, test_node->next); 48 CuAssertIntEquals(tc, 0, test_node->flavor); 49 CuAssertIntEquals(tc, 0, test_node->line); 54 void test_cil_tree_init(CuTest *tc) { [all...] |
test_cil_lexer.c | 37 void test_cil_lexer_setup(CuTest *tc) { 46 CuAssertIntEquals(tc, SEPOL_OK, rc); 51 void test_cil_lexer_next(CuTest *tc) { 64 CuAssertIntEquals(tc, SEPOL_OK, rc); 66 CuAssertIntEquals(tc, OPAREN, test_tok.type); 67 CuAssertStrEquals(tc, "(", test_tok.value); 68 CuAssertIntEquals(tc, 1, test_tok.line); 71 CuAssertIntEquals(tc, SEPOL_OK, rc); 73 CuAssertIntEquals(tc, SYMBOL, test_tok.type); 74 CuAssertStrEquals(tc, "test", test_tok.value) [all...] |
test_cil_fqn.h | 36 void test_cil_qualify_name_cil_flavor(CuTest *tc);
|
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)) 100 #define CuAssert(tc, ms, cond) CuAssert_Line((tc), __FILE__, __LINE__, (ms), (cond) [all...] |
test_cil.c | 38 void test_cil_symtab_array_init(CuTest *tc) { 43 CuAssertPtrNotNull(tc, test_new_db->symtab); 48 void test_cil_db_init(CuTest *tc) { 53 CuAssertPtrNotNull(tc, test_db->ast); 54 CuAssertPtrNotNull(tc, test_db->symtab); 55 CuAssertPtrNotNull(tc, test_db->symtab); 60 void test_cil_get_symtab_block(CuTest *tc) { 74 CuAssertIntEquals(tc, SEPOL_OK, rc); 75 CuAssertPtrNotNull(tc, symtab); 78 void test_cil_get_symtab_class(CuTest *tc) { [all...] |
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...] |
test_integration.c | 40 void test_integration(CuTest *tc) { 58 CuAssertIntEquals(tc, 1, WIFEXITED(status)); 59 CuAssertIntEquals(tc, 0, WEXITSTATUS(status)); 60 CuAssertIntEquals(tc, 1, WIFEXITED(status1)); 61 CuAssertIntEquals(tc, 0, WEXITSTATUS(status1)); 62 CuAssertIntEquals(tc, 1, WIFEXITED(status2)); 63 CuAssertIntEquals(tc, 0, WEXITSTATUS(status2)); 66 void test_min_policy(CuTest *tc) { 74 CuAssertIntEquals(tc, 1, WIFEXITED(status)); 75 CuAssertIntEquals(tc, 0, WEXITSTATUS(status)) [all...] |
/external/mesa3d/src/gallium/drivers/softpipe/ |
sp_tex_tile_cache.c | 49 struct softpipe_tex_tile_cache *tc; local 55 tc = CALLOC_STRUCT( softpipe_tex_tile_cache ); 56 if (tc) { 57 tc->pipe = pipe; 59 tc->entries[pos].addr.bits.invalid = 1; 61 tc->last_tile = &tc->entries[0]; /* any tile */ 63 return tc; 68 sp_destroy_tex_tile_cache(struct softpipe_tex_tile_cache *tc) 70 if (tc) { [all...] |
sp_tile_cache.c | 42 sp_alloc_tile(struct softpipe_tile_cache *tc); 86 struct softpipe_tile_cache *tc; local 99 tc = CALLOC_STRUCT( softpipe_tile_cache ); 100 if (tc) { 101 tc->pipe = pipe; 103 tc->tile_addrs[pos].bits.invalid = 1; 105 tc->last_tile_addr.bits.invalid = 1; 110 tc->tile = MALLOC_STRUCT( softpipe_cached_tile ); 111 if (!tc->tile) 113 FREE(tc); [all...] |
/external/iproute2/man/man8/ |
Makefile | 4 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 [all...] |
/external/expat/tests/ |
minicheck.c | 29 TCase *tc = (TCase *) calloc(1, sizeof(TCase)); local 30 if (tc != NULL) { 31 tc->name = name; 33 return tc; 37 suite_add_tcase(Suite *suite, TCase *tc) 40 assert(tc != NULL); 41 assert(tc->next_tcase == NULL); 43 tc->next_tcase = suite->tests; 44 suite->tests = tc; 48 tcase_add_checked_fixture(TCase *tc, 115 TCase *tc; local [all...] |
/external/ltp/testcases/kernel/syscalls/mincore/ |
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); 72 } TC[] = { 79 static void mincore_verify(struct test_case_t *tc); 81 int TST_TOTAL = ARRAY_SIZE(TC); 95 mincore_verify(&TC[i]); 102 static void setup1(struct test_case_t *tc) [all...] |
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/ |
BurstControlPane.java | 35 public BurstControlPane(TestingCamera21 tc, AttributeSet attrs, StatusListener listener) { 36 super(tc, attrs, listener, tc.getPaneTracker()); 38 this.setName(tc.getResources().getString(R.string.burst_pane_title)); 41 public BurstControlPane(TestingCamera21 tc, XmlPullParser configParser, StatusListener listener) 43 super(tc, null, listener, tc.getPaneTracker()); 45 this.setName(tc.getResources().getString(R.string.request_pane_title));
|
UtilControlPane.java | 34 public UtilControlPane(TestingCamera21 tc, AttributeSet attrs, StatusListener listener) { 35 super(tc, attrs, listener, tc.getPaneTracker()); 37 this.setName(tc.getResources().getString(R.string.util_pane_title)); 40 public UtilControlPane(TestingCamera21 tc, XmlPullParser configParser, StatusListener listener) 42 super(tc, null, listener, tc.getPaneTracker()); 44 this.setName(tc.getResources().getString(R.string.util_pane_title));
|
/external/libnl/lib/route/ |
tc.c | 2 * lib/route/tc.c Traffic Control 14 * @defgroup tc Traffic Control 19 #include <netlink-private/tc.h> 24 #include <netlink/route/tc.h> 25 #include <netlink-private/route/tc-api.h> 61 int rtnl_tc_msg_parse(struct nlmsghdr *n, struct rtnl_tc *tc) 70 tc->ce_msgtype = n->nlmsg_type; 80 rtnl_tc_set_kind(tc, kind); 83 tc->tc_family = tm->tcm_family; 84 tc->tc_ifindex = tm->tcm_ifindex 735 struct rtnl_tc *tc = TC_CAST(obj); local 818 struct rtnl_tc *tc = TC_CAST(obj); local 852 struct rtnl_tc *tc = TC_CAST(obj); local 874 struct rtnl_tc *tc = TC_CAST(obj); local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_texture.c | 52 /* Compute sc = +/-scale and tc = +/-scale. 58 const float tc = (2 * in_st[1] - 1) * scale; local 63 ry = -tc; 68 ry = -tc; 74 rz = tc; 79 rz = -tc; 83 ry = -tc; 88 ry = -tc;
|
/external/libnl/src/lib/ |
tc.c | 2 * src/lib/tc.c CLI Traffic Control Helpers 13 #include <netlink/cli/tc.h> 14 #include <netlink-private/route/tc-api.h> 21 void nl_cli_tc_parse_dev(struct rtnl_tc *tc, struct nl_cache *link_cache, char *name) 29 rtnl_tc_set_link(tc, link); 33 void nl_cli_tc_parse_parent(struct rtnl_tc *tc, char *arg) 42 rtnl_tc_set_parent(tc, parent); 45 void nl_cli_tc_parse_handle(struct rtnl_tc *tc, char *arg, int create) 50 parent = rtnl_tc_get_parent(tc); 61 rtnl_tc_set_handle(tc, handle) [all...] |
/external/libchrome/base/trace_event/ |
trace_config_unittest.cc | 51 void CheckDefaultTraceConfigBehavior(const TraceConfig& tc) { 52 EXPECT_EQ(RECORD_UNTIL_FULL, tc.GetTraceRecordMode()); 53 EXPECT_FALSE(tc.IsSamplingEnabled()); 54 EXPECT_FALSE(tc.IsSystraceEnabled()); 55 EXPECT_FALSE(tc.IsArgumentFilterEnabled()); 59 EXPECT_TRUE(tc.IsCategoryGroupEnabled("Category1")); 60 EXPECT_TRUE(tc.IsCategoryGroupEnabled("not-excluded-category")); 61 EXPECT_FALSE(tc.IsCategoryGroupEnabled("disabled-by-default-cc")); 63 EXPECT_TRUE(tc.IsCategoryGroupEnabled("Category1,not-excluded-category")); 64 EXPECT_TRUE(tc.IsCategoryGroupEnabled("Category1,disabled-by-default-cc")) 275 TraceConfig tc; local 545 TraceConfig tc; local 615 TraceConfig tc; local [all...] |
/external/ltp/testcases/kernel/syscalls/pwritev/ |
pwritev01.c | 56 struct tcase *tc = &tcases[n]; local 62 TEST(pwritev(fd, wr_iovec, tc->count, tc->offset)); 68 if (TEST_RETURN != tc->size) { 70 TEST_RETURN, tc->size); 79 SAFE_PREAD(1, fd, preadbuf, tc->size, tc->offset); 81 for (i = 0; i < tc->size; i++) { 86 if (i != tc->size) { 93 "with content 'a' expectedly ", tc->size) [all...] |
/external/ltp/testcases/kernel/syscalls/access/ |
access01.c | 96 static void verify_success(struct tcase *tc, const char *user) 101 tc->fname, tc->name, user); 105 tst_res(TPASS, "access(%s, %s) as %s", tc->fname, tc->name, user); 108 static void verify_failure(struct tcase *tc, const char *user) 112 tc->fname, tc->name, user); 116 if (TEST_ERRNO != tc->exp_errno) { 119 tc->fname, tc->name, user 140 struct tcase *tc = tcases + n; local [all...] |
/external/libnl/src/ |
nl-qdisc-add.c | 13 #include <netlink/cli/tc.h> 17 #include <netlink-private/route/tc-api.h> 52 struct rtnl_tc *tc; local 69 tc = (struct rtnl_tc *) qdisc; 102 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break; 103 case 'p': nl_cli_tc_parse_parent(tc, optarg); break; 115 if (!rtnl_tc_get_ifindex(tc)) 118 if (!rtnl_tc_get_parent(tc)) 122 nl_cli_tc_parse_handle(tc, id, 1); 127 rtnl_tc_set_kind(tc, kind) [all...] |
/external/ltp/testcases/kernel/syscalls/ipc/shmat/ |
shmat02.c | 83 static void setup_tc(int i, struct test_case_t *tc) 86 struct test_case_t TC[] = { 98 *tc = TC[i]; 105 struct test_case_t *tc; local 107 tc = NULL; 111 tc = malloc(sizeof(struct test_case_t)); 112 if (tc == NULL) 122 setup_tc(i, tc); 126 addr = shmat(*(tc->shmid), base_addr + tc->offset, 0) [all...] |