/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/ |
D | Util.java | 75 private static final int ARRAY_LEN = 8192; field in Util 76 private static final byte[] ZERO_ARRAY = new byte[ARRAY_LEN]; 77 private static final byte[][] NULL_ARRAY = new byte[ARRAY_LEN][]; 85 while (remaining > ARRAY_LEN) { in zero() 86 System.arraycopy(ZERO_ARRAY, 0, bytes, off, ARRAY_LEN); in zero() 87 off += ARRAY_LEN; in zero() 88 remaining -= ARRAY_LEN; in zero() 103 while (remaining > ARRAY_LEN) { in clear() 104 System.arraycopy(NULL_ARRAY, 0, blocks, off, ARRAY_LEN); in clear() 105 off += ARRAY_LEN; in clear() [all …]
|
/external/toybox/toys/pending/ |
D | stty.c | 66 for (i=0;i<ARRAY_LEN(bauds);i++) if (bauds[i] == baud) break; in speed() 67 if (i == ARRAY_LEN(bauds)) error_exit("unknown speed: %d", baud); in speed() 234 if (!set_flag(&new->c_cflag, cflags, ARRAY_LEN(cflags), option, on) && in set_option() 235 !set_flag(&new->c_iflag, iflags, ARRAY_LEN(iflags), option, on) && in set_option() 236 !set_flag(&new->c_oflag, oflags, ARRAY_LEN(oflags), option, on) && in set_option() 237 !set_flag(&new->c_lflag, lflags, ARRAY_LEN(lflags), option, on)) in set_option() 266 for (j=0;j<ARRAY_LEN(chars)-2;j++) { in set_special_character() 399 for (j=0; j<ARRAY_LEN(synonyms); j++) { in stty_main() 430 for (i=j=0; i<ARRAY_LEN(chars); i++) { in stty_main() 454 show_flags(old.c_cflag, sane.c_cflag, cflags, ARRAY_LEN(cflags)); in stty_main() [all …]
|
D | brctl.c | 251 for (i = 0; i < ARRAY_LEN(ss); i++) { in br_set_stp() 254 if (i >= ARRAY_LEN(ss)) error_exit("invalid stp state"); in br_set_stp() 317 for (i = 0; i < ARRAY_LEN(cc); i++) { in brctl_main() 330 if (i == ARRAY_LEN(cc)) help_exit("invalid option '%s'", *toys.optargs); in brctl_main()
|
D | dd.c | 167 parse_flags("conv", arg, dd_conv, ARRAY_LEN(dd_conv), &TT.conv); in dd_main() 170 parse_flags("iflag", arg, dd_iflag, ARRAY_LEN(dd_iflag), &TT.iflag); in dd_main() 172 parse_flags("oflag", arg, dd_oflag, ARRAY_LEN(dd_oflag), &TT.oflag); in dd_main()
|
D | host.c | 109 for (i=0; i<ARRAY_LEN(rrt); i++) { in host_main() 165 switch (type<ARRAY_LEN(rrt) ? rrt[type].pl : 0) { in host_main()
|
D | openvt.c | 48 for (i = 0; i < ARRAY_LEN(console_name); i++) {
|
/external/toybox/lib/ |
D | tty.c | 72 for (i = 0; i < ARRAY_LEN(speeds); i++) if (speeds[i] == speed) break; in xsetspeed() 73 if (i == ARRAY_LEN(speeds)) error_exit("unknown speed: %d", speed); in xsetspeed() 118 for (i = 0; i < ARRAY_LEN(speeds); i++) if (speeds[i] == speed) break; in set_terminal() 119 if (i == ARRAY_LEN(speeds)) error_exit("unknown speed: %d", speed); in set_terminal() 210 for (i = 0; i<ARRAY_LEN(scan_key_list); i++) { in scan_key_getsize()
|
D | env.c | 121 for (i=0; i<ARRAY_LEN(stuff); i++) in reset_env() 124 for (i=0; i < ARRAY_LEN(stuff); i++) if (stuff[i]) xsetenv(stuff[i], 0); in reset_env()
|
/external/tpm2-tss/src/tss2-rc/ |
D | tss2_rc.c | 17 #define ARRAY_LEN(x) (sizeof(x)/sizeof(x[0])) macro 325 if (errnum < ARRAY_LEN(fmt1_err_strs)) { in tpm2_err_handler_fmt1() 653 ARRAY_LEN(fmt0_warn_strs) : ARRAY_LEN(fmt0_err_strs); in tpm2_err_handler_fmt0() 831 return (rc - 1u < ARRAY_LEN(errors)) ? errors[rc - 1u] : NULL; in tss_err_handler()
|
/external/toybox/toys/posix/ |
D | getconf.c | 194 int i, j, lens[] = {ARRAY_LEN(sysconfs), ARRAY_LEN(pathconfs), in getconf_main() 195 ARRAY_LEN(confstrs), ARRAY_LEN(limits), ARRAY_LEN(others)}; in getconf_main()
|
D | logger.c | 65 facility = arrayfind(TT.p, facilities, ARRAY_LEN(facilities)); in logger_main() 74 priority = arrayfind(s1, priorities, ARRAY_LEN(priorities)); in logger_main()
|
/external/toybox/toys/other/ |
D | chrt.c | 62 for (pol = 0; pol<ARRAY_LEN(polnames); pol++) if (polnames[pol]) in chrt_main() 75 if ((pol &= ~SCHED_RESET_ON_FORK)<ARRAY_LEN(polnames)) s = polnames[pol]; in chrt_main()
|
D | nsenter.c | 133 for (i = 0; i<ARRAY_LEN(flags); i++) in unshare_main() 148 for (i = 0; i<ARRAY_LEN(flags); i++) { in unshare_main()
|
D | blkid.c | 101 for (i=0; i<ARRAY_LEN(fstypes); i++) { in do_blkid() 118 if (i == ARRAY_LEN(fstypes)) { in do_blkid()
|
D | oneit.c | 70 for (i = 0; i<ARRAY_LEN(pipes); i++) xsignal(pipes[i], oneit_signaled); in oneit_main()
|
D | vconfig.c | 41 int i, j = ARRAY_LEN(types); in vconfig_main()
|
/external/toybox/toys/net/ |
D | rfkill.c | 53 for (i = 0; i < ARRAY_LEN(rftypes); i++) in rfkill_main() 55 if (i == ARRAY_LEN(rftypes)) idx = atolx_range(*optargs, 0, INT_MAX); in rfkill_main()
|
D | netstat.c | 139 int sz = ARRAY_LEN(state_label); in show_ip() 185 if (type>ARRAY_LEN(types)) type = 0; in show_unix_sockets() 186 if (state>ARRAY_LEN(states) || (state==1 && !flags)) state = 0; in show_unix_sockets() 288 for (dest = 0; dest < ARRAY_LEN(flagarray); dest++) in display_routes()
|
D | ifconfig.c | 143 for (i=0; i < ARRAY_LEN(types)-1; i++) in display_ifconfig() 180 for (i=0; i<ARRAY_LEN(addr); i++) { in display_ifconfig() 222 for (i=0; i<ARRAY_LEN(scopes); i++) in display_ifconfig() 492 } else for (i = 0; i<ARRAY_LEN(try); i++) { in ifconfig_main() 547 if (i == ARRAY_LEN(try)) help_exit("bad argument '%s'", *argv); in ifconfig_main()
|
/external/toybox/ |
D | main.c | 37 top = ARRAY_LEN(toy_list)-1; in toy_find() 75 toys.toycount = ARRAY_LEN(toy_list); in toy_singleinit() 204 for (i = 1; i<ARRAY_LEN(toy_list); i++) { in toybox_main()
|
D | toys.h | 129 #define ARRAY_LEN(array) (sizeof(array)/sizeof(*array)) macro
|
/external/flac/microbench/ |
D | benchmark_residual.c | 118 { FLAC__fixed_compute_residual_shift (data, ARRAY_LEN (data), bench_order, residual) ; in bench_shift() 123 { FLAC__fixed_compute_residual_mult (data, ARRAY_LEN (data), bench_order, residual) ; in bench_mult()
|
D | util.h | 32 #define ARRAY_LEN(x) ((sizeof (x) / sizeof (x [0]))) macro
|
/external/tpm2-tss/test/unit/ |
D | test_tss2_rc.c | 15 #define ARRAY_LEN(x) (sizeof(x)/sizeof(x[0])) macro 151 if (rc - 1u >= ARRAY_LEN(err_map)) { in custom_err_handler()
|
/external/toybox/toys/lsb/ |
D | mount.c | 123 for (i = 0; i < ARRAY_LEN(opts); i++) if (!strcasecmp(opts[i].name, new)) { 133 if (more && i == ARRAY_LEN(opts)) {
|