/external/rust/crates/tinyvec/tests/ |
D | arrayvec.rs | 31 let mut av: ArrayVec<[i32; 4]> = Default::default(); in ArrayVec_push_pop() localVariable 32 assert_eq!(av.len(), 0); in ArrayVec_push_pop() 33 assert_eq!(av.pop(), None); in ArrayVec_push_pop() 35 av.push(10_i32); in ArrayVec_push_pop() 36 assert_eq!(av.len(), 1); in ArrayVec_push_pop() 37 assert_eq!(av[0], 10); in ArrayVec_push_pop() 38 assert_eq!(av.pop(), Some(10)); in ArrayVec_push_pop() 39 assert_eq!(av.len(), 0); in ArrayVec_push_pop() 40 assert_eq!(av.pop(), None); in ArrayVec_push_pop() 42 av.push(10); in ArrayVec_push_pop() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_codeop.py | 60 av = self.assertValid 71 av("") 72 av("\n") 74 av("a = 1") 75 av("\na = 1") 76 av("a = 1\n") 77 av("a = 1\n\n") 78 av("\n\na = 1\n\n") 80 av("def x():\n pass\n") 81 av("if 1:\n pass\n") [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_codeop.py | 61 av = self.assertValid 72 av("") 73 av("\n") 75 av("a = 1") 76 av("\na = 1") 77 av("a = 1\n") 78 av("a = 1\n\n") 79 av("\n\na = 1\n\n") 81 av("def x():\n pass\n") 82 av("if 1:\n pass\n") [all …]
|
/external/python/cpython2/Lib/ |
D | sre_compile.py | 78 for op, av in pattern: 81 lo = _sre.getlower(av, flags) 97 emit(av) 107 _compile_charset(av, flags, code, fixup, fixes) 119 emit(av[0]) 120 emit(av[1]) 121 _compile(code, av[2], flags) 124 elif _simple(av) and op is not REPEAT: 130 emit(av[0]) 131 emit(av[1]) [all …]
|
/external/selinux/python/sepolgen/src/sepolgen/ |
D | access.py | 137 def merge(self, av): argument 139 self.perms.update(av.perms) 141 for op in av.xperms: 144 self.xperms[op].extend(av.xperms[op]) 220 for av in objs.values(): 221 yield av 255 for av in self: 256 l.append(av.to_list()) 269 for av in l: 270 self.add_av(AccessVector(av)) [all …]
|
D | policygen.py | 164 def __add_av_rule(self, av): argument 167 rule = refpolicy.AVRule(av) 173 rule.comment = str(refpolicy.Comment(explain_access(av, verbosity=self.explain))) 175 if av.type == audit2why.ALLOW: 178 if av.xperms: 181 if av.type == audit2why.DONTAUDIT: 184 if av.type == audit2why.BOOLEAN: 185 if len(av.data) > 1: 186 …avc can be allowed using one of the these booleans:\n# %s" % ", ".join([x[0] for x in av.data]) 188 … rule.comment += "\n#!!!! This avc can be allowed using the boolean '%s'" % av.data[0][0] [all …]
|
D | interfaces.py | 62 def __param_insert(name, type, av, params): argument 76 if av: 77 avobjs = [av.obj_class] 100 if av: 101 p.obj_classes.add(av.obj_class) 106 def av_extract_params(av, params): argument 144 if access.is_idparam(av.src_type): 145 if __param_insert(av.src_type, refpolicy.SRC_TYPE, av, params) == 1: 148 if access.is_idparam(av.tgt_type): 149 if __param_insert(av.tgt_type, refpolicy.TGT_TYPE, av, params) == 1: [all …]
|
/external/python/cpython3/Lib/ |
D | sre_compile.py | 90 for op, av in pattern: 94 emit(av) 97 emit(av) 98 elif not iscased(av): 100 emit(av) 102 lo = tolower(av) 120 charset, hascased = _optimize_charset(av, iscased, tolower, fixes) 140 if _simple(av[2]): 146 emit(av[0]) 147 emit(av[1]) [all …]
|
/external/ipsec-tools/src/racoon/ |
D | racoonctl.c | 255 main(ac, av) in main() argument 257 char **av; 262 pname = *av; 278 while ((c = getopt(ac, av, "lds:")) != -1) { 299 av += optind; 301 combuf = get_combuf(ac, av); 368 get_combuf(ac, av) in get_combuf() argument 370 char **av; 381 if (strcmp(*av, cp->str) == 0) { 386 printf("Invalid command [%s]\n", *av); [all …]
|
/external/libgsm/tst/ |
D | lin2txt.c | 66 main P2((ac, av), int ac, char ** av) 74 if (!(pname = av[0])) pname = "inp2txt"; 76 while ((opt = getopt(ac, av, "v")) != EOF) switch (opt) { 82 av += optind; 85 else for (; *av; av++) { 86 if (!(f = fopen(*av, "r"))) perror(*av); 88 process(f, *av);
|
D | cod2lin.c | 74 main P2((ac, av), int ac, char ** av) 82 if (!(pname = av[0])) pname = "cod2out"; 84 while ((opt = getopt(ac, av, "vwF")) != EOF) switch (opt) { 92 av += optind; 95 else for (; *av; av++) { 96 if (!(f = fopen(*av, "r"))) perror(*av); 98 process(f, *av);
|
D | lin2cod.c | 75 main P2((ac, av), int ac, char ** av) 83 if (!(pname = av[0])) pname = "inp2cod"; 85 while ((opt = getopt(ac, av, "vwF")) != EOF) switch (opt) { 93 av += optind; 96 else for (; *av; av++) { 97 if (!(f = fopen(*av, "r"))) perror(*av); 99 process(f, *av);
|
D | cod2txt.c | 71 main P2((ac, av), int ac, char ** av) 79 if (!(pname = av[0])) pname = "cod2txt"; 82 av++; 85 else for (; *av; av++) { 86 if (!(f = fopen(*av, "r"))) perror(*av); 88 process(f, *av);
|
D | gsm2cod.c | 70 main P2((ac, av), int ac, char ** av) 78 if (!(pname = av[0])) pname = "gsm2cod"; 81 av++; 84 else for (; *av; av++) { 85 if (!(f = fopen(*av, "r"))) perror(*av); 87 process(f, *av);
|
/external/strace/tests/ |
D | block_reset_raise_run.c | 36 main(int ac, char **av) in main() argument 43 const int signo = atoi(av[1]); in main() 45 perror_msg_and_fail("sigaddset: %s", av[1]); in main() 49 perror_msg_and_fail("signal: %s", av[1]); in main() 51 perror_msg_and_fail("raise: %s", av[1]); in main() 53 execvp(av[2], av + 2); in main() 54 perror_msg_and_fail("execvp: %s", av[2]); in main()
|
D | unix-pair-sendto-recvfrom.c | 51 main(int ac, char **av) in main() argument 54 const int len = strlen(av[1]); in main() 70 transpose(av[1], len); in main() 71 assert(sendto(0, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main() 72 assert(recvfrom(0, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main() 80 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main() 81 transpose(av[1], len); in main() 82 assert(sendto(1, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main() 83 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == 0); in main()
|
/external/strace/tests-mx32/ |
D | block_reset_raise_run.c | 36 main(int ac, char **av) in main() argument 43 const int signo = atoi(av[1]); in main() 45 perror_msg_and_fail("sigaddset: %s", av[1]); in main() 49 perror_msg_and_fail("signal: %s", av[1]); in main() 51 perror_msg_and_fail("raise: %s", av[1]); in main() 53 execvp(av[2], av + 2); in main() 54 perror_msg_and_fail("execvp: %s", av[2]); in main()
|
D | unix-pair-sendto-recvfrom.c | 51 main(int ac, char **av) in main() argument 54 const int len = strlen(av[1]); in main() 70 transpose(av[1], len); in main() 71 assert(sendto(0, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main() 72 assert(recvfrom(0, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main() 80 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main() 81 transpose(av[1], len); in main() 82 assert(sendto(1, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main() 83 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == 0); in main()
|
D | set_sigign.c | 36 main(int ac, char **av) in main() argument 41 const int ign = atoi(av[1]); in main() 42 const int signum = atoi(av[2]); in main() 45 perror_msg_and_fail("signal: %s", av[2]); in main() 47 execvp(av[3], av + 3); in main() 48 perror_msg_and_fail("execvp: %s", av[3]); in main()
|
/external/strace/tests-m32/ |
D | block_reset_raise_run.c | 36 main(int ac, char **av) in main() argument 43 const int signo = atoi(av[1]); in main() 45 perror_msg_and_fail("sigaddset: %s", av[1]); in main() 49 perror_msg_and_fail("signal: %s", av[1]); in main() 51 perror_msg_and_fail("raise: %s", av[1]); in main() 53 execvp(av[2], av + 2); in main() 54 perror_msg_and_fail("execvp: %s", av[2]); in main()
|
D | unix-pair-sendto-recvfrom.c | 51 main(int ac, char **av) in main() argument 54 const int len = strlen(av[1]); in main() 70 transpose(av[1], len); in main() 71 assert(sendto(0, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main() 72 assert(recvfrom(0, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main() 80 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == len); in main() 81 transpose(av[1], len); in main() 82 assert(sendto(1, av[1], len, MSG_DONTROUTE, NULL, 0) == len); in main() 83 assert(recvfrom(1, av[1], len, MSG_WAITALL, NULL, NULL) == 0); in main()
|
D | set_sigign.c | 36 main(int ac, char **av) in main() argument 41 const int ign = atoi(av[1]); in main() 42 const int signum = atoi(av[2]); in main() 45 perror_msg_and_fail("signal: %s", av[2]); in main() 47 execvp(av[3], av + 3); in main() 48 perror_msg_and_fail("execvp: %s", av[3]); in main()
|
/external/webrtc/api/ |
D | array_view_unittest.cc | 32 size_t Call(ArrayView<T> av) { in Call() argument 33 return av.size(); in Call() 37 void CallFixed(ArrayView<T, N> av) {} in CallFixed() argument 436 ArrayView<std::vector<std::vector<std::vector<std::string>>>> av; in TEST() local 437 EXPECT_EQ(av.begin(), av.end()); in TEST() 438 EXPECT_EQ(av.cbegin(), av.cend()); in TEST() 439 for (auto& e : av) { in TEST() 456 ArrayView<char> av(arr); in TEST() local 457 EXPECT_EQ('A', *av.begin()); in TEST() 458 EXPECT_EQ('A', *av.cbegin()); in TEST() [all …]
|
/external/oss-fuzz/projects/postgresql/fuzzer/ |
D | protocol_fuzzer.c | 54 static char *av[6]; variable 64 av[0] = "tmp_install/usr/local/pgsql/bin/postgres"; in LLVMFuzzerInitialize() 65 av[1] = "--single"; in LLVMFuzzerInitialize() 66 av[2] = "-D/tmp/protocol_db/data"; in LLVMFuzzerInitialize() 67 av[3] = "-F"; in LLVMFuzzerInitialize() 68 av[4] = "-k\"/tmp\""; in LLVMFuzzerInitialize() 69 av[5] = NULL; in LLVMFuzzerInitialize() 77 PostgresMain(5, av, "dbfuzz", "fuzzuser"); in LLVMFuzzerInitialize() 109 PostgresMain(5, av, "dbfuzz", "fuzzuser"); in LLVMFuzzerTestOneInput()
|
D | fuzzer_initialize.c | 46 char *av[5]; in FuzzerInitialize() local 61 av[0] = "tmp_install/usr/local/pgsql/bin/postgres"; in FuzzerInitialize() 62 av[1] = path_to_db; in FuzzerInitialize() 63 av[2] = "-F"; in FuzzerInitialize() 64 av[3] = "-k\"/tmp\""; in FuzzerInitialize() 65 av[4] = NULL; in FuzzerInitialize() 69 progname = get_progname(av[0]); in FuzzerInitialize() 72 InitStandaloneProcess(av[0]); in FuzzerInitialize() 75 process_postgres_switches(4, av, PGC_POSTMASTER, NULL); in FuzzerInitialize()
|