plateform
stringclasses
1 value
repo_name
stringclasses
2 values
name
stringlengths
1
78
ext
stringclasses
2 values
path
stringlengths
15
1.11k
size
int64
1
8.55M
source_encoding
stringclasses
11 values
md5
stringlengths
32
32
text
stringlengths
0
8.49M
google
android
tst_needs_cmds05
.c
platform/external/ltp/lib/newlib_tests/tst_needs_cmds05.c
406
utf_8
c65ae4174d399bb17844343731c4cf06
*/ /* * Test Illegal format by using version that has garbage. */ #include "tst_test.h" static void do_test(void) { tst_res(TFAIL, "Garbage version was parsed!"); } static struct tst_test test = { .test_all = do_test, .needs_cmds = (const char *[]) { "mkfs.ext4 > 1.43.0-1", NULL } };
google
android
tst_expiration_timer
.c
platform/external/ltp/lib/newlib_tests/tst_expiration_timer.c
565
utf_8
0decc148c3fe8d444ecdac008978bbea
*/ /* * Test for expiration timer the test should run for roughly 5 seconds * when executed as time ./tst_expiration_timer */ #include "tst_test.h" #include "tst_timer.h" static void do_test(void) { tst_timer_start(CLOCK_MONOTONIC); while (!tst_timer_expired_ms(5000)) usleep(1); tst_res(TPASS, "All done!"); } ...
google
android
test09
.c
platform/external/ltp/lib/newlib_tests/test09.c
866
utf_8
04598089545ed1981dc5978882a1df0e
*/ /* * Test that tst_atomic_inc works as expected. */ #include <pthread.h> #include "tst_test.h" #define THREADS 64 #define ITERATIONS 100000 static int atomic; static void *worker(void *id) { int i; (void) id; for (i = 0; i < ITERATIONS; i++) tst_atomic_inc(&atomic); return NULL; } static void do_test(void) ...
google
android
tst_needs_cmds08
.c
platform/external/ltp/lib/newlib_tests/tst_needs_cmds08.c
583
utf_8
83ff365b7f0f2367670a19a89ddf9787
*/ /* * Test mkfs.xfs that it doesn't have own parser and table_get function * at the version_parsers structure in lib/tst_cmd.c. * So it should report parser function for this cmd is not implemented. */ #include "tst_test.h" static void do_test(void) { tst_res(TFAIL, "Nonexisting parser function for mkfs.xfs is ...
google
android
tst_fuzzy_sync01
.c
platform/external/ltp/lib/newlib_tests/tst_fuzzy_sync01.c
6,619
utf_8
6e3a17e8cfb976e18aab38d67c52abc9
*/ /*\ * [Description] * * This verifies Fuzzy Sync's basic ability to reproduce a particular * outcome to a data race when the critical sections are not aligned. * * We make the simplifying assumptions that: * - Each thread contains a single contiguous critical section. * - The threads only interact through a...
google
android
tst_needs_cmds06
.c
platform/external/ltp/lib/newlib_tests/tst_needs_cmds06.c
384
utf_8
ecdb6c64bd6843d0ab9c3a87ed27f1b8
*/ /* * Test Illegal format with garbage. */ #include "tst_test.h" static void do_test(void) { tst_res(TFAIL, "Garbage format was parsed!"); } static struct tst_test test = { .test_all = do_test, .needs_cmds = (const char *[]) { "mkfs.ext4 > 1.43.0 2", NULL } };
google
android
tst_res_hexd
.c
platform/external/ltp/lib/newlib_tests/tst_res_hexd.c
325
utf_8
f7e809d18611f97ff55b9022919ea142
*/ #include <stdio.h> #include "tst_test.h" static void do_test(void) { char tmp[] = "Hello from tst_res_hexd"; tst_res_hexd(TPASS, tmp, sizeof(tmp), "%s%d", "dump", 1); } static struct tst_test test = { .test_all = do_test, };
google
android
test_exec
.c
platform/external/ltp/lib/newlib_tests/test_exec.c
713
utf_8
9e746589741641a9d70e199b8cda95f3
*/ /* * Assert that tst_res() from child started by exec() is propagated to the main * test process. * * This test should be executed as: * $ PATH=$PATH:$PWD ./test_exec */ #define _GNU_SOURCE #include <unistd.h> #include "tst_test.h" static void do_test(void) { char *const argv[] = {"test_exec_child", NULL}; ...
google
android
tst_safe_fileops
.c
platform/external/ltp/lib/newlib_tests/tst_safe_fileops.c
667
utf_8
c03aac68fb71b24189f0544764987bf3
*/ #include <stdio.h> #include "tst_test.h" static void do_test(void) { long free; long nproc; long dummy; SAFE_FILE_LINES_SCANF("/proc/meminfo", "MemFree: %ld", &free); if (FILE_LINES_SCANF("/proc/stat", "processes %ld", &nproc)) tst_brk(TBROK, "Could not parse processes"); tst_res(TPASS, "Free: %ld, nproc: %...
google
android
test_runtime02
.c
platform/external/ltp/lib/newlib_tests/test_runtime02.c
710
utf_8
68eb20e272e613e219fcf768ba5eee96
*/ /* * This test is set up so that the timeout is not long enough to guarantee * enough runtime for two iterations, i.e. the timeout without offset and after * scaling is too small and the tests ends up with TBROK. * * The default timeout in the test library is set to 30 seconds. The test * runtime is set to 5 ...
google
android
test_macros06
.c
platform/external/ltp/lib/newlib_tests/test_macros06.c
933
utf_8
192dbdfdb82e4ab0e10e2368c310542d
*/ /* * Test TST_EXP_VAL and TST_EXP_VAL_SILENT macro. */ #include "tst_test.h" static int fail_val(void) { errno = EINVAL; return 42; } static int pass_val(void) { return 42; } static void do_test(void) { tst_res(TINFO, "Testing TST_EXP_VAL macro"); TST_EXP_VAL(fail_val(), 40, "fail_val()"); tst_res(TINFO, "T...
google
android
test11
.c
platform/external/ltp/lib/newlib_tests/test11.c
308
utf_8
8b706e644fee630406de94fce740230b
*/ /* * Test for segfault. */ #include "tst_test.h" static void do_test(void) { volatile char *ptr = NULL; *ptr = 0; tst_res(TPASS, "Not reached"); } static struct tst_test test = { .test_all = do_test, };
google
android
tst_capability01
.c
platform/external/ltp/lib/newlib_tests/tst_capability01.c
1,152
utf_8
502d3aee37b03c05e5e3b1a73e813604
* * The user or file requires CAP_NET_RAW for this test to work. * e.g use "$ setcap cap_net_raw=pei tst_capability" */ #include <unistd.h> #include <sys/types.h> #include "tst_test.h" #include "tst_capability.h" #include "tst_safe_net.h" #include "lapi/socket.h" static void run(void) { TEST(socket(AF_INET, SOCK_R...
google
android
test04
.c
platform/external/ltp/lib/newlib_tests/test04.c
707
utf_8
0d34476547031f97363c262e72b5b670
*/ /* * Tests tst_run_as_child() */ #include "tst_test.h" static void child_fn(unsigned int i) { switch (i) { case 0: tst_res(TPASS, "PASSED message"); break; case 1: tst_brk(TBROK, "BROKEN message"); break; } } static void setup(void) { tst_res(TINFO, "setup() executed by pid %i", getpid()); } static voi...
google
android
tst_needs_cmds07
.c
platform/external/ltp/lib/newlib_tests/tst_needs_cmds07.c
397
utf_8
2ee7b36af3e849ff1e173aa301fe79f5
*/ /* * Test non-existed cmd whether still can be detected. */ #include "tst_test.h" static void do_test(void) { tst_res(TFAIL, "Nonexisting command is present!"); } static struct tst_test test = { .test_all = do_test, .needs_cmds = (const char *[]) { "mkfs.ext45", NULL } };
google
android
test_runtime01
.c
platform/external/ltp/lib/newlib_tests/test_runtime01.c
557
utf_8
bc18cf3bdef9ed74366dfb038b6aae30
* * Runs for 4 seconds for each test iteration. */ #include <stdlib.h> #include <unistd.h> #include "tst_test.h" static void run(void) { int runtime; tst_res(TINFO, "Running variant %i", tst_variant); do { runtime = tst_remaining_runtime(); tst_res(TINFO, "Remaining runtime %d", runtime); sleep(1); } while...
google
android
test_macros02
.c
platform/external/ltp/lib/newlib_tests/test_macros02.c
1,264
utf_8
ab4c2a281bbc652b888c62a3ae0f6208
*/ /* * Test TST_EXP_FAIL and TST_EXP_FAIL2 macro. */ #include "tst_test.h" static int fail_fn(void) { errno = EINVAL; return -1; } static int pass_fn(void) { return 0; } static int inval_ret_fn(void) { return 42; } static void do_test(void) { tst_res(TINFO, "Testing TST_EXP_FAIL macro"); TST_EXP_FAIL(fail_fn(...
google
android
tst_fuzzy_sync03
.c
platform/external/ltp/lib/newlib_tests/tst_fuzzy_sync03.c
2,310
utf_8
820466167372600b8a04222e27aed51d
*/ /* Basic functionality test for tst_fuzzy_sync.h similar to the atomic tests * (test15.c). One thread writes to the odd indexes of an array while the * other writes to the even. If the threads are not synchronised then they * will probably write to the wrong indexes as they share an index variable * which they ...
google
android
tst_cgroup01
.c
platform/external/ltp/lib/newlib_tests/tst_cgroup01.c
939
utf_8
fb40f364cb111fee6ec600843ccd9062
#include <stdio.h> #include "tst_test.h" static char *only_mount_v1; static char *no_cleanup; static struct tst_option opts[] = { {"v", &only_mount_v1, "-v\tOnly try to mount CGroups V1"}, {"n", &no_cleanup, "-n\tLeave CGroups created by test"}, {NULL, NULL, NULL}, }; struct tst_cg_opts cgopts; static void do_test(v...
google
android
variant
.c
platform/external/ltp/lib/newlib_tests/variant.c
1,017
utf_8
8e3e8539f02ed6546aef9433b8f26fc5
*/ #include "tst_test.h" static void do_test(void) { switch (tst_variant) { case 0: /* This is skipped after first iteration */ tst_brk(TCONF, "Test skipped"); break; case 1: /* This test is correctly looped with -i opt */ tst_res(TPASS, "Test passed"); break; case 2: /* This exits the test immediately...
google
android
test01
.c
platform/external/ltp/lib/newlib_tests/test01.c
329
utf_8
ffc3c38d9f6ecd24c064fcdd9fde3625
*/ /* * The test should abort when oldlib function is called from newlib. */ #include "tst_test.h" void tst_exit(void); static void do_test(void) { tst_exit(); } static struct tst_test test = { .test_all = do_test, };
google
android
test06
.c
platform/external/ltp/lib/newlib_tests/test06.c
681
utf_8
41c43ca1ff4ec7877990f00d9c893b9f
*/ /* * Test that child process does not trigger cleanup. */ #include "tst_test.h" static void setup(void) { tst_res(TINFO, "setup() executed by pid %i", getpid()); } static void cleanup(void) { tst_res(TINFO, "cleanup() executed by pid %i", getpid()); } static void do_test(void) { pid_t pid = SAFE_FORK(); switc...
google
android
test_children_cleanup
.c
platform/external/ltp/lib/newlib_tests/test_children_cleanup.c
830
utf_8
9dbd8290c32e2e1d97460c946cfaa475
*/ /*\ * Test whether the LTP library properly reaps any children left over when * the main test process dies. Run using test_children_cleanup.sh. */ #include <unistd.h> #include <signal.h> #include "tst_test.h" static void run(void) { pid_t child_pid, main_pid = getpid(); tst_res(TINFO, "Main process %d starting...
google
android
tst_bool_expr
.c
platform/external/ltp/lib/newlib_tests/tst_bool_expr.c
2,752
utf_8
52d4ce5aedc71b0582c0ea26eca1f6d5
*/ /* * Basic unit test for the bolean expression parser and evaluator. */ #include <string.h> #include <stdio.h> #include "tst_test.h" #include "tst_bool_expr.h" static int a, b, c; static int map(struct tst_expr_tok *var) { if (!strncmp(var->tok, "A", var->tok_len)) return a; if (!strncmp(var->tok, "B", var->t...
google
android
test_kconfig
.c
platform/external/ltp/lib/newlib_tests/test_kconfig.c
519
utf_8
a73d8173a440bbe9882128f61e326f2e
*/ #include "tst_test.h" #include "tst_kconfig.h" static void do_test(void) { tst_res(TPASS, "Test passed!"); } static const char *kconfigs[] = { "CONFIG_MMU", "CONFIG_EXT4_FS=m", "CONFIG_PGTABLE_LEVELS=4", "CONFIG_MMU & CONFIG_EXT4_FS=m", "CONFIG_EXT4_FS=m | CONFIG_MMU", "CONFIG_DEFAULT_HOSTNAME=\"(none)\"", ...
google
android
xlocale
.c
platform/external/libcxx_35a/src/support/solaris/xlocale.c
7,493
utf_8
48ecd420d24e1464923ba53641f90ff7
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // //===----------------------------------------------------------------------===// #ifdef __sun__ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <d...
google
android
hello
.c
platform/external/golang-x-tools/cmd/splitdwarf/internal/macho/testdata/hello.c
77
utf_8
16ac886f4f5d825a30306e935bbeb5a4
#include <stdio.h> int main(void) { printf("hello, world\n"); return 0; }
google
android
hb-fc-list
.c
platform/external/harfbuzz_ng/util/hb-fc-list.c
5,630
utf_8
454fc460e7ab4a25cd629227a89b703c
/* * * Google Author(s): Behdad Esfahbod */ #define HAVE_GETOPT_LONG 1 /* XXX */ #include "hb-fc.h" #include <fontconfig/fontconfig.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #ifdef HAVE_CONFIG_H #include <config.h> #else #ifdef linux #define HAVE_GETOPT_LONG 1 #endif #define H...
google
android
failing-alloc
.c
platform/external/harfbuzz_ng/src/failing-alloc.c
1,908
utf_8
171e68987ca60b8df7676a5adaedeba3
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include <stdlib.h> #include <stdio.h> #ifdef __cplusplus extern "C" { #endif int alloc_state = 0; __attribute__((no_sanitize("integer"))) static int fastrand () { if (!alloc_state) return 1; alloc_state = (214013 * alloc_state + 25310...
google
android
test-ot-glyphname
.c
platform/external/harfbuzz_ng/test/api/test-ot-glyphname.c
2,693
utf_8
b6986cb6c8addd42379d9b6fcf063b8e
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Adobe Author(s): Michiharu Ariza */ #include "hb-test.h" #include "hb-ot.h" static void test_one_glyph (hb_font_t *font, hb_codepoint_t gid, const char *name) { char buf[64]; hb_codepoint_t glyph; g_assert(hb_font_get_glyph_nam...
google
android
test-ot-color
.c
platform/external/harfbuzz_ng/test/api/test-ot-color.c
19,240
utf_8
4088e7242c4d19e3d913daef992a7c82
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Sascha Brawer */ #include "hb-test.h" #include <hb-ot.h> /* Unit tests for hb-ot-color.h */ /* Test font with the following CPAL v0 table, as TTX and manual disassembly: <CPAL> <version value="0"/> <numPalett...
google
android
test-baseline
.c
platform/external/harfbuzz_ng/test/api/test-baseline.c
3,588
utf_8
f2d304044f3f2aacf257d1e8550561cb
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <hb-ot.h> /* Unit tests for hb-ot-layout.h baseline */ static void test_ot_layout_base (void) { hb_face_t *face = hb_test_open_font_file ("fonts/base.ttf"); hb_font_t *font = hb_font_create (face); hb_po...
google
android
test-object
.c
platform/external/harfbuzz_ng/test/api/test-object.c
10,180
utf_8
52103cf8f86434f8fac52e5d9bd889d0
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #include "hb-test.h" /* Unit tests for hb-object-private.h */ static void * create_blob (void) { static char data[] = "test data"; return hb_blob_create (data, sizeof (data), HB_MEMORY_MODE_READO...
google
android
test-font
.c
platform/external/harfbuzz_ng/test/api/test-font.c
17,627
utf_8
b3bf0c0d22e667ef93962682d990b0d0
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #include "hb-test.h" /* Unit tests for hb-font.h */ static const char test_data[] = "test\0data"; static void test_face_empty (void) { hb_face_t *created_from_empty; hb_face_t *created_from_null;...
google
android
test-c
.c
platform/external/harfbuzz_ng/test/api/test-c.c
1,589
utf_8
33f2a72884b159c2cb8ac74a16f726d1
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ /* This file tests that all headers can be included from C files */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <hb.h> #include <hb-ot.h> #include <hb-aat.h> #ifdef HAVE_GLIB #include <h...
google
android
test-buffer
.c
platform/external/harfbuzz_ng/test/api/test-buffer.c
29,309
utf_8
f9544e6f844fb10d7f55854f5efb86a5
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #include "hb-test.h" /* Unit tests for hb-buffer.h */ static const char utf8[10] = "ab\360\240\200\200defg"; static const uint16_t utf16[8] = {'a', 'b', 0xD840, 0xDC00, 'd', 'e', 'f', 'g'}; static co...
google
android
test-blob
.c
platform/external/harfbuzz_ng/test/api/test-blob.c
9,193
utf_8
a2314be3fe068440c1fe98d8864301b5
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #include "hb-test.h" /* Unit tests for hb-blob.h */ #if defined(HAVE_SYS_MMAN_H) && defined(HAVE_MPROTECT) && defined(HAVE_MMAP) # define TEST_MMAP 1 #ifdef HAVE_SYS_MMAN_H #ifdef HAVE_UNISTD_H #incl...
google
android
test-be-num-glyphs
.c
platform/external/harfbuzz_ng/test/api/test-be-num-glyphs.c
2,177
utf_8
d8aeb764ecb165b0ab0d99a70ade7b4f
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <hb.h> static void test_maxp_and_loca (void) { hb_face_t *face; const char maxp_data[] = "\x00\x00\x50\x00" // version "\x00\x05" // numGlyphs ; #ifndef HB_NO_BEYOND_64K const char loca_data[...
google
android
test-ot-layout
.c
platform/external/harfbuzz_ng/test/api/test-ot-layout.c
7,520
utf_8
01741303c1c52c6d96127f28ffe1748e
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <hb.h> #include <hb-ot.h> #define STATIC_ARRAY_SIZE 255 static void test_ot_layout_table_get_script_tags (void) { hb_face_t *face = hb_test_open_font_file ("fonts/NotoNastaliqUrdu-Regular.ttf"); unsigned i...
google
android
test-subset
.c
platform/external/harfbuzz_ng/test/api/test-subset.c
7,808
utf_8
a173546bf516943b73389660151c94e1
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Garret Rieger */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for hb-subset-glyf.h */ static void test_subset_32_tables (void) { hb_face_t *face = hb_test_open_font_file ("../fuzzing/fonts/oom-6ef8c...
google
android
test-ot-metrics
.c
platform/external/harfbuzz_ng/test/api/test-ot-metrics.c
3,286
utf_8
8b07f1258f8ecf61493b40123fc248b1
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <hb-ot.h> #include <math.h> /* Unit tests for hb-ot-metrics.h */ static void test_ot_metrics_get_no_var (void) { hb_face_t *face = hb_test_open_font_file ("fonts/cpal-v0.ttf"); hb_font_t *font = hb_font_cr...
google
android
test-subset-hvar
.c
platform/external/harfbuzz_ng/test/api/test-subset-hvar.c
6,389
utf_8
e006ff71df2b362dd0bd8f03325888cf
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Adobe Author(s): Michiharu Ariza */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for HVAR subsetting */ static void test_subset_map_HVAR_noop (void) { hb_face_t *face_abc = hb_test_open_font_file("fonts/AdobeVFProtot...
google
android
test-shape
.c
platform/external/harfbuzz_ng/test/api/test-shape.c
5,647
utf_8
87394876fb73643b628408f7410f3bec
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #include "hb-test.h" /* Unit tests for hb-shape.h */ /* * This test provides a framework to test aspects of hb_shape() that are * font-independent. Please add tests for any feature that fits that ...
google
android
test-collect-unicodes
.c
platform/external/harfbuzz_ng/test/api/test-collect-unicodes.c
3,849
utf_8
34e72de7939627783d458b6083428263
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Garret Rieger */ #include "hb-test.h" #include "hb-subset-test.h" static void test_collect_unicodes_format4 (void) { hb_face_t *face = hb_test_open_font_file ("fonts/Roboto-Regular.abc.format4.ttf"); hb_set_t *code...
google
android
test-common
.c
platform/external/harfbuzz_ng/test/api/test-common.c
9,937
utf_8
68495fbd72c4a58e162b175b33856158
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #include "hb-test.h" /* Unit tests for hb-common.h */ static void test_types_int (void) { g_assert_cmpint (sizeof (int8_t), ==, 1); g_assert_cmpint (sizeof (uint8_t), ==, 1); g_assert_cmpint (s...
google
android
test-ot-math
.c
platform/external/harfbuzz_ng/test/api/test-ot-math.c
37,820
utf_8
e9b40272661d5b4e42b5cf2f72fcd952
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Igalia Author(s): Frédéric Wang */ #include "hb-test.h" #include "hb-ft.h" #include "hb-ot.h" /* Unit tests for hb-ot-math.h - OpenType MATH table */ static FT_Library ft_library; static FT_Face ft_face; static hb_font_t *hb_font; stat...
google
android
test-ot-meta
.c
platform/external/harfbuzz_ng/test/api/test-ot-meta.c
3,206
utf_8
474c7b123dabfffdbf623eb93ea67ebd
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <hb-ot.h> /* Unit tests for hb-ot-meta.h */ static void test_ot_meta_get_entries (void) { hb_face_t *face = hb_test_open_font_file ("fonts/meta.ttf"); hb_ot_meta_tag_t entries[2]; unsigned int entries_co...
google
android
test-subset-os2
.c
platform/external/harfbuzz_ng/test/api/test-subset-os2.c
1,895
utf_8
a8340174d35e6e75ac0e3fe9bf4911a1
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Garret Rieger */ #include "hb-test.h" #include "hb-subset-test.h" static void test_subset_os2 (void) { hb_face_t *face_abc = hb_test_open_font_file ("fonts/Roboto-Regular.abc.ttf"); hb_face_t *face_b = hb_test_open...
google
android
test-version
.c
platform/external/harfbuzz_ng/test/api/test-version.c
2,702
utf_8
619a471c005809b61b674aa3d97047f2
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #include "hb-test.h" /* Unit tests for hb-version.h */ static void test_version (void) { unsigned int major, minor, micro; char *s; hb_version (&major, &minor, &micro); g_assert_cmpint (major...
google
android
test-style
.c
platform/external/harfbuzz_ng/test/api/test-style.c
8,155
utf_8
27969b63751a30b5abd8d429d8894a6e
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <hb.h> /* Unit tests for hb-style.h */ #define assert_cmpfloat(n1, n2) g_assert_cmpint ((int) (n1 * 100.f), ==, (int) (n2 * 100.f)) static void test_empty_face (void) { hb_font_t *empty = hb_font_get_empty (...
google
android
test-multithread
.c
platform/external/harfbuzz_ng/test/api/test-multithread.c
4,194
utf_8
f24a34df3412cc427c860677555eecab
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * */ #include <pthread.h> #include <hb.h> #include <hb-ft.h> #include <hb-ot.h> #include "hb-test.h" static const char *font_path = "fonts/Inconsolata-Regular.abc.ttf"; static const char *text = "abc"; static int num_threads = 30; static int...
google
android
test-draw
.c
platform/external/harfbuzz_ng/test/api/test-draw.c
49,756
utf_8
286fe1aa004df201d3a2fe5bae5e56f7
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <math.h> #include <hb.h> #ifdef HAVE_FREETYPE #include <hb-ft.h> #endif typedef struct draw_data_t { char *str; unsigned size; unsigned consumed; } draw_data_t; /* Our modified itoa, why not using libc's...
google
android
test-subset-gpos
.c
platform/external/harfbuzz_ng/test/api/test-subset-gpos.c
3,046
utf_8
3ffa2f006c4554915f0e736360e1d740
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Adobe Author(s): Michiharu Ariza */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for GPOS subsetting */ static void test_subset_gpos_lookup_subtable (void) { hb_face_t *face_pwa = hb_test_open_font_file ("fonts/Robot...
google
android
test-aat-layout
.c
platform/external/harfbuzz_ng/test/api/test-aat-layout.c
4,379
utf_8
1d0db3e2827eb25bc1b60b08cbaeca0d
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <hb.h> #include <hb-ot.h> #include <hb-aat.h> /* Unit tests for hb-aat.h */ static hb_face_t *face; static hb_face_t *sbix; static void test_aat_get_feature_types (void) { hb_aat_layout_feature_type_t featur...
google
android
test-subset-cff2
.c
platform/external/harfbuzz_ng/test/api/test-subset-cff2.c
5,996
utf_8
e872d1edfee37ee5d108f9516457061a
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Adobe Author(s): Michiharu Ariza */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for CFF2 subsetting */ static void test_subset_cff2_noop (void) { hb_face_t *face_abc = hb_test_open_font_file("fonts/AdobeVFPrototype....
google
android
test-map
.c
platform/external/harfbuzz_ng/test/api/test-map.c
4,003
utf_8
0c2330139803870526844a40cf0e2e2a
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" /* Unit tests for hb-map.h */ static void test_map_basic (void) { hb_map_t *empty = hb_map_get_empty (); hb_map_t *m; g_assert (hb_map_is_empty (empty)); g_assert (!hb_map_allocation_successful (empty)); hb_m...
google
android
test-ot-ligature-carets
.c
platform/external/harfbuzz_ng/test/api/test-ot-ligature-carets.c
5,261
utf_8
1a35db8e98f17cdc089de4d44de6e796
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * */ #include "hb-test.h" #include <hb-ot.h> static void test_ot_layout_get_ligature_carets_ot_gdef (void) { hb_face_t *face = hb_test_open_font_file ("fonts/NotoNastaliqUrdu-Regular.ttf"); hb_font_t *font = hb_font_create (face); hb_f...
google
android
test-subset-cmap
.c
platform/external/harfbuzz_ng/test/api/test-subset-cmap.c
6,390
utf_8
e4b2d03b1cea31467276ee1ede91d8c9
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Roderick Sheeter */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for cmap subsetting */ static void test_subset_cmap (void) { hb_face_t *face_abc = hb_test_open_font_file ("fonts/Roboto-Regular.abc....
google
android
test-subset-colr
.c
platform/external/harfbuzz_ng/test/api/test-subset-colr.c
4,016
utf_8
4d6910020b65279bea210a750a758a81
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Calder Kitagawa */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for COLR subsetting */ static void test_subset_colr_noop (void) { hb_face_t *face = hb_test_open_font_file ("fonts/TwemojiMozilla.subs...
google
android
test-subset-repacker
.c
platform/external/harfbuzz_ng/test/api/test-subset-repacker.c
7,945
utf_8
ab1da8ca5e40bd00aae2c98625238b02
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * */ #include "hb-test.h" #include "hb-subset-test.h" #ifdef HB_EXPERIMENTAL_API #include "hb-subset-repacker.h" char test_gsub_data[106] = "\x0\x1\x0\x0\x0\xa\x0\x1e\x0\x2c\x0\x1\x6c\x61\x74\x6e\x0\x8\x0\x4\x0\x0\x0\x0\xff\xff\x0\x1\x0\x0\x...
google
android
test-unicode
.c
platform/external/harfbuzz_ng/test/api/test-unicode.c
31,750
utf_8
bc891f8fc39890ef28a72f52476666b3
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Codethink Author(s): Ryan Lortie * Google Author(s): Behdad Esfahbod */ #include "hb-test.h" /* Unit tests for hb-unicode.h */ /* Unit tests for hb-glib.h */ /* Unit tests for hb-icu.h */ #ifdef HAVE_GLIB #include <hb-glib.h> #endif #i...
google
android
test-font-scale
.c
platform/external/harfbuzz_ng/test/api/test-font-scale.c
1,838
utf_8
a595249caa225ce0a712f4910d3cf7fc
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Author(s): Matthias Clasen */ #include "hb-test.h" #include <hb.h> /* test for https://github.com/harfbuzz/harfbuzz/issues/3274 */ static void test_hb_scale (void) { hb_face_t *face = hb_test_open_font_file ("fonts/Cantarell.A.otf"); ...
google
android
test-subset-nameids
.c
platform/external/harfbuzz_ng/test/api/test-subset-nameids.c
4,242
utf_8
726a8ee9d9c38a19e7eb55195c7e0cab
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Garret Rieger */ #include "hb-test.h" #include "hb-subset-test.h" static void test_subset_nameids (void) { hb_face_t *face_origin = hb_test_open_font_file ("fonts/nameID.origin.ttf"); hb_face_t *face_expected = hb_...
google
android
test-subset-sbix
.c
platform/external/harfbuzz_ng/test/api/test-subset-sbix.c
2,587
utf_8
e878410fee2d55dc578b24f71703a4a8
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Calder Kitagawa */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for sbix subsetting */ static void test_subset_sbix_noop (void) { hb_face_t *face_XY = hb_test_open_font_file ("fonts/sbix.ttf"); hb...
google
android
test-ot-name
.c
platform/external/harfbuzz_ng/test/api/test-ot-name.c
4,091
utf_8
f68ea1a22ffe0e255d4e02edff665942
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * */ #include "hb-test.h" #include <hb-ot.h> static hb_face_t *face; static void test_ot_layout_feature_get_name_ids_and_characters (void) { hb_tag_t cv01 = HB_TAG ('c','v','0','1'); unsigned int feature_index; unsigned int num_named_p...
google
android
test-subset-hmtx
.c
platform/external/harfbuzz_ng/test/api/test-subset-hmtx.c
6,390
utf_8
194b88817c53e449c7a848a1b2bffdb0
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Roderick Sheeter */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for hmtx subsetting */ static void check_num_hmetrics(hb_face_t *face, uint16_t expected_num_hmetrics) { hb_blob_t *hhea_blob = hb_fa...
google
android
test-ot-face
.c
platform/external/harfbuzz_ng/test/api/test-ot-face.c
8,511
utf_8
5354708aa9071244b75e047c0d1652e6
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #ifndef TEST_OT_FACE_NO_MAIN #include "hb-test.h" #endif #include <hb-aat.h> #include <hb-ot.h> /* Unit tests for hb-ot-*.h */ /* Return some dummy result so that compiler won't just optimize things ...
google
android
test-subset-glyf
.c
platform/external/harfbuzz_ng/test/api/test-subset-glyf.c
13,775
utf_8
d5089ad9d2d0eeb4128869414927d5bf
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Garret Rieger */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for hb-subset-glyf.h */ static void check_maxp_field (uint8_t *raw_maxp, unsigned int offset, uint16_t expected_value) { uint16_t actual...
google
android
test-subset-gvar
.c
platform/external/harfbuzz_ng/test/api/test-subset-gvar.c
3,453
utf_8
4ef8848f0edfb7459a421d599ae2282f
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Adobe Author(s): Michiharu Ariza */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for gvar subsetting */ static void test_subset_gvar_noop (void) { hb_face_t *face_abc = hb_test_open_font_file("fonts/SourceSansVariabl...
google
android
test-ot-alternates
.c
platform/external/harfbuzz_ng/test/api/test-ot-alternates.c
1,828
utf_8
6dcdadaea9c41b27817afcfa08ad304e
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <hb.h> #include <hb-ot.h> static void test_ot_layout_lookup_get_glyph_alternates (void) { hb_face_t *face = hb_test_open_font_file ("fonts/SourceSansPro-Regular.otf"); hb_codepoint_t alternates[3]; unsig...
google
android
test-subset-vmtx
.c
platform/external/harfbuzz_ng/test/api/test-subset-vmtx.c
3,487
utf_8
dbac168e29699576dcb9844b7b6e7a7b
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Garret Rieger */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for hmtx subsetting */ static void check_num_vmetrics(hb_face_t *face, uint16_t expected_num_vmetrics) { hb_blob_t *vhea_blob = hb_face_...
google
android
test-subset-cbdt
.c
platform/external/harfbuzz_ng/test/api/test-subset-cbdt.c
5,758
utf_8
fa74d123a1cac05df98ca88b1ac37c43
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Calder Kitagawa */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for CBDT/CBLC subsetting */ static void test_subset_cbdt_noop (void) { hb_face_t *face = hb_test_open_font_file ("fonts/NotoColorEmoji...
google
android
test-var-coords
.c
platform/external/harfbuzz_ng/test/api/test-var-coords.c
3,355
utf_8
b1f3e06b4bd0f6150eb34f6d459bbcc1
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <hb-ot.h> /* Unit tests for hb_font_[gs]et_var_coords_ */ static void test_get_var_coords (void) { #ifndef G_APPROX_VALUE #define G_APPROX_VALUE(a, b, epsilon) \ (((a) > (b) ? (a) - (b) : (b) - (a)) < (epsil...
google
android
test-set
.c
platform/external/harfbuzz_ng/test/api/test-set.c
34,082
utf_8
b8aed8fa83199a1efd67d012d891c8e0
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #include "hb-test.h" /* Unit tests for hb-set.h */ static void test_empty (hb_set_t *s) { hb_codepoint_t next; g_assert_cmpint (hb_set_get_population (s), ==, 0); g_assert_cmpint (hb_set_get_mi...
google
android
test-subset-cff1
.c
platform/external/harfbuzz_ng/test/api/test-subset-cff1.c
12,785
utf_8
cc9740325d317c595635beaac66c1e0c
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Adobe Author(s): Michiharu Ariza */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for CFF subsetting */ static void test_subset_cff1_noop (void) { hb_face_t *face_abc = hb_test_open_font_file("fonts/SourceSansPro-Regu...
google
android
test-subset-post
.c
platform/external/harfbuzz_ng/test/api/test-subset-post.c
2,014
utf_8
a133ab90072b8755ab203444cbbfaef6
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Garret Rieger */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for hmtx subsetting */ static void test_post_drops_glyph_names (void) { hb_face_t *face_full = hb_test_open_font_file ("fonts/Mplus1p-Re...
google
android
test-ot-extents-cff
.c
platform/external/harfbuzz_ng/test/api/test-ot-extents-cff.c
7,035
utf_8
d963eb1e56333e82d1419d36f3ca685a
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Adobe Author(s): Michiharu Ariza */ #include "hb-test.h" #include <hb-ot.h> /* Unit tests for CFF/CFF2 glyph extents */ static void test_extents_cff1 (void) { hb_face_t *face = hb_test_open_font_file ("fonts/SourceSansPro-Regular.abc....
google
android
test-subset-drop-tables
.c
platform/external/harfbuzz_ng/test/api/test-subset-drop-tables.c
2,512
utf_8
0ae71d378855d84440feb5fb9b5de3b9
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Garret Rieger */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for hb-subset.cc drop tables functionality */ static void test_subset_drop_tables (void) { hb_face_t *face = hb_test_open_font_file ("fo...
google
android
test-ot-tag
.c
platform/external/harfbuzz_ng/test/api/test-ot-tag.c
22,388
utf_8
c12b11b743c791be3359524198dd45f0
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #include "hb-test.h" #include <hb-ot.h> /* Unit tests for hb-ot-tag.h */ /* https://docs.microsoft.com/en-us/typography/opentype/spec/scripttags */ static void test_simple_tags (const char *s, hb_scr...
google
android
test-subset-vvar
.c
platform/external/harfbuzz_ng/test/api/test-subset-vvar.c
3,483
utf_8
e143653507093b967b5dc7cb1cd81316
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Adobe Author(s): Michiharu Ariza */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for VVAR subsetting */ static void test_subset_VVAR_noop (void) { hb_face_t *face_abc = hb_test_open_font_file("fonts/SourceSerifVariab...
google
android
test-subset-hdmx
.c
platform/external/harfbuzz_ng/test/api/test-subset-hdmx.c
3,935
utf_8
73d0c41b034475c327b5226b70ec6c7a
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Garret Rieger */ #include "hb-test.h" #include "hb-subset-test.h" /* Unit tests for hdmx subsetting */ static void test_subset_hdmx_simple_subset (void) { hb_face_t *face_abc = hb_test_open_font_file ("fonts/Roboto-R...
google
android
test-ot-collect-glyphs
.c
platform/external/harfbuzz_ng/test/api/test-ot-collect-glyphs.c
15,304
utf_8
fff5a7941db6f91366b9c866d406a019
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <hb.h> #include <hb-ot.h> #define BEGIN(tag, idx) \ hb_ot_layout_lookup_collect_glyphs (face, tag, idx, before, input, after, output) \ #define END() \ hb_set_clear (before); \ hb_set_clear (input); \ ...
google
android
test-be-glyph-advance
.c
platform/external/harfbuzz_ng/test/api/test-be-glyph-advance.c
4,235
utf_8
bb5f5c197d17d7fc3f0b9016de64feee
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ #include "hb-test.h" #include <hb.h> static void test_maxp_and_hmtx (void) { hb_face_t *face; hb_font_t *font; const char maxp_data[] = "\x00\x00\x50\x00" // version "\x00\x05" // numGlyphs ; const char loca_data[18] = ...
google
android
test-ot-metrics-tt-var
.c
platform/external/harfbuzz_ng/test/api/test-ot-metrics-tt-var.c
8,173
utf_8
8a45f98f08a44831549903a04b2fa33b
/* * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Adobe Author(s): Michiharu Ariza */ #include "hb-test.h" #include <hb-ot.h> /* Unit tests for glyph advance widths and extents of TrueType variable fonts */ static void test_extents_tt_var (void) { hb_face_t *face = hb_test_open_font_...
google
android
lzf_d
.c
platform/external/liblzf/lzf_d.c
6,093
utf_8
b39530ccb9bca7f0b00582c0c09c9ef4
/* * the above. If you wish to allow the use of your version of this file */ #include "lzfP.h" #if AVOID_ERRNO # define SET_ERRNO(n) #else # include <errno.h> # define SET_ERRNO(n) errno = (n) #endif #if USE_REP_MOVSB /* small win on amd, big loss on intel */ #if (__i386 || __amd64) && __GNUC__ >= 3 # define lzf_movs...
google
android
lzf
.c
platform/external/liblzf/lzf.c
12,931
utf_8
ccf4882e7e2ddff75ee03cb838dcae20
/* * the above. If you wish to allow the use of your version of this file */ #include "config.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <limits.h> #include "lzf.h" #ifdef HAVE_GETOPT_H #...
google
android
lzf_c
.c
platform/external/liblzf/lzf_c.c
9,016
utf_8
44f588529294a3ff4103993961fed822
/* * the above. If you wish to allow the use of your version of this file */ #include "lzfP.h" #define HSIZE (1 << (HLOG)) /* * don't play with this unless you benchmark! * the data format is not dependent on the hash function. * the hash function might seem strange, just believe me, * it works ;) */ #ifndef FRS...
google
android
decoder
.c
platform/external/faad/decoder.c
21,075
utf_8
1452c114755a5afac98a1833d3ab8717
/************************* MPEG-2 NBC Audio Decoder ************************** * * * * ****************************************************************************/ #inc...
google
android
bits
.c
platform/external/faad/bits.c
2,812
utf_8
0bbe936b2b98471d135c68003a29b552
/* * FAAD - Freeware Advanced Audio Decoder * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Id: bits.c,v 1.6 2005/05/09 21:29:56 wmaycisco Exp $ */ #include <assert.h> #include "all.h" /* to mask the n least significant bits of an integer */ unsigned int faad_bit_msk[33] = { 0x000...
google
android
transfo
.c
platform/external/faad/transfo.c
14,133
utf_8
1acf92e1dca603b4a152d794ee29f68a
/************************* MPEG-2 NBC Audio Decoder ************************** * * * * ****************************************************************************/ /* ...
google
android
block
.c
platform/external/faad/block.c
12,023
utf_8
0ff55f14baaee21823fccbb1bed16e6a
/************************* MPEG-2 NBC Audio Decoder ************************** * * * * ****************************************************************************/ /* ...
google
android
huffdec
.c
platform/external/faad/huffdec.c
28,708
utf_8
e7cf61fe409644a840fcc2ac4139889e
/************************* MPEG-2 NBC Audio Decoder ************************** * * * * ****************************************************************************/ /* ...
google
android
monopred
.c
platform/external/faad/monopred.c
14,373
utf_8
c472143e436cbd9c893208f415283487
/************************* MPEG-2 NBC Audio Decoder ************************** * * * * ****************************************************************************/ /* ...
google
android
config
.c
platform/external/faad/config.c
19,751
utf_8
b604e769258c73222a45c3ba0b2fb9f0
/************************* MPEG-2 NBC Audio Decoder ************************** * * * * ****************************************************************************/ /* ...
google
android
stereo
.c
platform/external/faad/stereo.c
3,826
utf_8
0fb3fcbd70d7590386121039724ac87a
/************************* MPEG-2 NBC Audio Decoder ************************** * * * * ****************************************************************************/ /* ...
google
android
hufftables
.c
platform/external/faad/hufftables.c
91,137
utf_8
58147190c53ca958ab878ea66a951918
/* * FAAD - Freeware Advanced Audio Decoder * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Id: hufftables.c,v 1.6 2002/01/11 00:55:17 wmaycisco Exp $ */ #include "all.h" Huffman book1[] = { /* idx codeword len codew x y v w */ { /* 0: ...
google
android
util
.c
platform/external/faad/util.c
2,056
utf_8
1254803d2299f27222fa24648e6ecd7e
/* * FAAD - Freeware Advanced Audio Decoder * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Id: util.c,v 1.1 2001/06/28 23:54:22 wmaycisco Exp $ */ #include "all.h" /* * object_type dependent parameters */ int tns_max_bands(faacDecHandle hDecoder, int islong) { int i; /* ...
google
android
nok_lt_prediction
.c
platform/external/faad/nok_lt_prediction.c
6,528
utf_8
ba01be61cdd1da385d88760a2e4106d1
/************************************************************************** ***************************************************************************/ /* * $Id: nok_lt_prediction.c,v 1.9 2003/02/18 18:51:31 wmaycisco Exp $ */ #include "all.h" #include "tns.h" #include "block.h" #include "nok_ltp_common.h" #include ...
google
android
fastfft
.c
platform/external/faad/fastfft.c
81,190
utf_8
d69dc908b1e29d88f6c54857a113975d
/* * FAAD - Freeware Advanced Audio Decoder * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Id: fastfft.c,v 1.4 2002/01/11 00:55:17 wmaycisco Exp $ */ #include "fastfft.h" #include "all.h" #ifdef _MSC_VER #pragma warning(disable:4305) #endif static fftw_real K980785280[1] = {FFTW_K...
google
android
tns
.c
platform/external/faad/tns.c
7,723
utf_8
33fdaf643be96aa42477148ceb3e1b35
/************************* MPEG-2 NBC Audio Decoder ************************** * * * * ****************************************************************************/ /* ...