Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 109) sorted by relevance

12345

/system/core/libpixelflinger/tests/gglmul/
Dgglmul_test.cpp59 gglClampx_test_t *test = &gglClampx_tests[i]; in gglClampx_test() local
61 test->input, test->output); in gglClampx_test()
62 if(gglClampx(test->input) == test->output) in gglClampx_test()
90 gglClz_test_t *test = &gglClz_tests[i]; in gglClz_test() local
91 printf("Test input=0x%08x output=%2d :", test->input, test->output); in gglClz_test()
92 if(gglClz(test->input) == test->output) in gglClz_test()
128 gglMulx_test_t *test = &gglMulx_tests[i]; in gglMulx_test() local
130 test->x, test->y, test->shift); in gglMulx_test()
131 actual = gglMulx(test->x, test->y, test->shift); in gglMulx_test()
133 ((int64_t)test->x * test->y + (1 << (test->shift-1))) >> test->shift; in gglMulx_test()
[all …]
/system/core/libpixelflinger/tests/arch-mips64/disassembler/
Dmips64_disassembler_test.cpp154 test_table_entry_t *test; in main() local
155 test = &test_table[i]; in main()
156 mips_disassem(&test->code, instr, 0); in main()
157 if(strcmp(instr, test->instr) != 0) in main()
162 "Actual : %s\n", test->code, test->instr, instr); in main()
168 test_branches_table_entry_t *test; in main() local
169 test = &test_branches_table[i]; in main()
170 mips_disassem(&test->code, instr, 0); in main()
172 uint64_t loc = (uint64_t)test + 4 + (test->offset << 2); in main()
175 strcpy(temp, test->instr); in main()
[all …]
/system/core/libpixelflinger/tests/arch-mips64/assembler/
Dmips64_assembler_test.cpp372 void dataOpTest(dataOpTest_t test, ArmToMips64Assembler *a64asm, uint32_t Rd = R_v1, in dataOpTest() argument
386 regs[Rd] = test.RdValue; in dataOpTest()
387 regs[Rn] = test.RnValue; in dataOpTest()
388 regs[Rs] = test.RsValue; in dataOpTest()
390 if (test.preCond.mode) { in dataOpTest()
391 a64asm->set_condition(test.preCond.mode, test.preCond.Rcond1, test.preCond.Rcond2); in dataOpTest()
392 regs[test.preCond.Rcond1] = test.preCond.Rcond1Value; in dataOpTest()
393 regs[test.preCond.Rcond2] = test.preCond.Rcond2Value; in dataOpTest()
396 if(test.immediate == true) in dataOpTest()
398 op2 = a64asm->imm(test.immValue); in dataOpTest()
[all …]
/system/bt/osi/
DBUILD.gn62 "test/AlarmTestHarness.cpp",
63 "test/AllocationTestHarness.cpp",
64 "test/alarm_test.cpp",
65 "test/allocation_tracker_test.cpp",
66 "test/allocator_test.cpp",
67 "test/array_test.cpp",
68 "test/config_test.cpp",
69 "test/data_dispatcher_test.cpp",
70 "test/eager_reader_test.cpp",
71 "test/future_test.cpp",
[all …]
/system/extras/simpleperf/runtest/
Druntest.py203 for test in root:
204 assert test.tag == 'test'
205 test_name = test.attrib['name']
211 for test_item in test:
424 def check_report_file(self, test, report_file, has_callgraph): argument
426 if not self._check_symbol_overhead_requirements(test, symbols):
429 if not self._check_symbol_children_overhead_requirements(test, symbols):
431 if not self._check_symbol_relation_requirements(test, symbols):
435 def _check_symbol_overhead_requirements(self, test, symbols): argument
437 matched = [False] * len(test.symbol_overhead_requirements)
[all …]
/system/core/libpixelflinger/tests/arch-arm64/assembler/
Darm64_assembler_test.cpp414 void dataOpTest(dataOpTest_t test, ARMAssemblerInterface *a64asm, uint32_t Rd = 0, in dataOpTest() argument
428 regs[Rd] = test.RdValue; in dataOpTest()
429 regs[Rn] = test.RnValue; in dataOpTest()
430 regs[Rs] = test.RsValue; in dataOpTest()
431 flags[test.preFlag] = 1; in dataOpTest()
434 if(test.immediate == true) in dataOpTest()
436 op2 = a64asm->imm(test.immValue); in dataOpTest()
438 else if(test.immediate == false && test.shiftAmount == 0) in dataOpTest()
441 regs[Rm] = test.RmValue; in dataOpTest()
445 op2 = a64asm->reg_imm(Rm, test.shiftMode, test.shiftAmount); in dataOpTest()
[all …]
/system/tpm/trunks/
Dtrunks_client.cc169 trunks::TrunksClientTest test; in main() local
171 if (!test.RNGTest()) { in main()
176 if (!test.SignTest()) { in main()
180 if (!test.DecryptTest()) { in main()
184 if (!test.ImportTest()) { in main()
188 if (!test.AuthChangeTest()) { in main()
192 if (!test.VerifyKeyCreationTest()) { in main()
197 if (!test.SealedDataTest()) { in main()
202 if (!test.PCRTest()) { in main()
207 if (!test.PolicyAuthValueTest()) { in main()
[all …]
/system/keymaster/
Dhmac_test.cpp28 namespace test { namespace
63 const HmacTest& test(kHmacTests[i]); in TEST() local
66 const string key = hex2str(test.key); in TEST()
70 uint8_t digest_copy[sizeof(test.digest)]; in TEST()
71 memcpy(digest_copy, test.digest, sizeof(test.digest)); in TEST()
74 Buffer data_buffer(test.data, strlen(test.data)); in TEST()
Dkdf2_test.cpp27 namespace test { namespace
68 for (auto& test : kKdf2Tests) { in TEST() local
69 const string key = hex2str(test.key_hex); in TEST()
70 const string info = hex2str(test.info_hex); in TEST()
71 const string expected_output = hex2str(test.expected_output_hex); in TEST()
77 kdf2.Init(test.digest_type, reinterpret_cast<const uint8_t*>(key.data()), key.size())); in TEST()
Dhkdf_test.cpp27 namespace test { namespace
61 for (auto& test : kHkdfTests) { in TEST() local
62 const string key = hex2str(test.key_hex); in TEST()
63 const string salt = hex2str(test.salt_hex); in TEST()
64 const string info = hex2str(test.info_hex); in TEST()
65 const string expected = hex2str(test.output_hex); in TEST()
Dkdf1_test.cpp27 namespace test { namespace
44 for (auto& test : kKdf1Tests) { in TEST() local
45 const string key = hex2str(test.key_hex); in TEST()
46 const string expected_output = hex2str(test.expected_output_hex); in TEST()
52 kdf1.Init(test.digest_type, reinterpret_cast<const uint8_t*>(key.data()), key.size())); in TEST()
/system/core/libpixelflinger/tests/arch-mips/col32cb16blend/
Dcol32cb16blend_test.c92 struct test_t test = tests[i]; in scanline_col32cb16blend_test() local
94 printf("Testing - %s:",test.name); in scanline_col32cb16blend_test()
99 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
101 dst_c[j] = test.dst_color; in scanline_col32cb16blend_test()
102 dst_asm[j] = test.dst_color; in scanline_col32cb16blend_test()
106 scanline_col32cb16blend_c(dst_c, test.src_color, test.count); in scanline_col32cb16blend_test()
107 scanline_col32cb16blend_mips(dst_asm, test.src_color, test.count); in scanline_col32cb16blend_test()
114 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
/system/core/libpixelflinger/tests/arch-mips64/col32cb16blend/
Dcol32cb16blend_test.c92 struct test_t test = tests[i]; in scanline_col32cb16blend_test() local
94 printf("Testing - %s:",test.name); in scanline_col32cb16blend_test()
99 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
101 dst_c[j] = test.dst_color; in scanline_col32cb16blend_test()
102 dst_asm[j] = test.dst_color; in scanline_col32cb16blend_test()
106 scanline_col32cb16blend_c(dst_c, test.src_color, test.count); in scanline_col32cb16blend_test()
107 scanline_col32cb16blend_mips64(dst_asm, test.src_color, test.count); in scanline_col32cb16blend_test()
114 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
/system/core/libpixelflinger/tests/arch-arm64/col32cb16blend/
Dcol32cb16blend_test.c91 struct test_t test = tests[i]; in scanline_col32cb16blend_test() local
93 printf("Testing - %s:",test.name); in scanline_col32cb16blend_test()
98 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
100 dst_c[j] = test.dst_color; in scanline_col32cb16blend_test()
101 dst_asm[j] = test.dst_color; in scanline_col32cb16blend_test()
105 scanline_col32cb16blend_c(dst_c, test.src_color, test.count); in scanline_col32cb16blend_test()
106 scanline_col32cb16blend_arm64(dst_asm, test.src_color, test.count); in scanline_col32cb16blend_test()
114 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
/system/core/libpixelflinger/tests/arch-arm64/disassembler/
Darm64_diassembler_test.cpp299 test_table_entry_t *test; in main() local
300 test = &test_table[i]; in main()
301 arm64_disassemble(test->code, instr); in main()
302 if(strcmp(instr, test->instr) != 0) in main()
307 "Actual : %s\n", test->code, test->instr, instr); in main()
/system/core/libpixelflinger/tests/arch-mips/t32cb16blend/
Dt32cb16blend_test.c100 struct test_t test = tests[i]; in scanline_t32cb16blend_test() local
102 printf("Testing - %s:",test.name); in scanline_t32cb16blend_test()
107 for(j = 0; j < test.count; ++j) in scanline_t32cb16blend_test()
109 dst_c[j] = test.dst_color; in scanline_t32cb16blend_test()
110 dst_asm[j] = test.dst_color; in scanline_t32cb16blend_test()
111 src[j] = test.src_color; in scanline_t32cb16blend_test()
114 scanline_t32cb16blend_c(dst_c,src,test.count); in scanline_t32cb16blend_test()
115 scanline_t32cb16blend_mips(dst_asm,src,test.count); in scanline_t32cb16blend_test()
123 for(j = 0; j < test.count; ++j) in scanline_t32cb16blend_test()
/system/core/libpixelflinger/tests/arch-arm64/t32cb16blend/
Dt32cb16blend_test.c100 struct test_t test = tests[i]; in scanline_t32cb16blend_test() local
102 printf("Testing - %s:",test.name); in scanline_t32cb16blend_test()
107 for(j = 0; j < test.count; ++j) in scanline_t32cb16blend_test()
109 dst_c[j] = test.dst_color; in scanline_t32cb16blend_test()
110 dst_asm[j] = test.dst_color; in scanline_t32cb16blend_test()
111 src[j] = test.src_color; in scanline_t32cb16blend_test()
114 scanline_t32cb16blend_c(dst_c,src,test.count); in scanline_t32cb16blend_test()
115 scanline_t32cb16blend_arm64(dst_asm,src,test.count); in scanline_t32cb16blend_test()
123 for(j = 0; j < test.count; ++j) in scanline_t32cb16blend_test()
/system/bt/hci/
DBUILD.gn49 "//osi/test/AllocationTestHarness.cpp",
50 "//osi/test/AlarmTestHarness.cpp",
51 "test/hci_hal_h4_test.cpp",
52 "test/hci_hal_mct_test.cpp",
53 "test/hci_layer_test.cpp",
54 "test/low_power_manager_test.cpp",
55 "test/packet_fragmenter_test.cpp",
63 "//osi/test",
/system/connectivity/shill/
DTESTING18 We test shill using two sets of tests: unit tests, and integration
28 (chroot)$ FEATURES=test emerge-${BOARD} shill
33 of the test failing.)
36 - You can restrict the test runs to only shill unittests by using
37 (chroot)$ P2_TEST_FILTER="shill::*" FEATURES=test emerge-${BOARD} shill
56 (chroot)$ MAKEFLAGS="--stop" cros_workon_make --test --board=${BOARD} \
71 The test binary is located at /data/nativetest/shill_test/shill_test.
74 you will need to grant execute permissions to the test binary using
90 - build a test image, suitable for a VM:
93 --noenable_rootfs_verification test
[all …]
/system/bt/tools/bdtool/
DAndroid.mk.disabled29 ../../test/suite/support/callbacks.c \
30 ../../test/suite/support/gatt.c \
31 ../../test/suite/support/hal.c \
32 ../../test/suite/support/pan.c
39 $(LOCAL_PATH)/../../test/suite \
/system/bt/btcore/
DBUILD.gn37 "test/bdaddr_test.cpp",
38 "test/device_class_test.cpp",
39 "test/property_test.cpp",
40 "test/uuid_test.cpp",
41 "//osi/test/AllocationTestHarness.cpp",
/system/extras/perfprofd/tests/
DREADME.txt6 1. One of the testpoints in this test suite performs a live 'perf'
7 run on the device; before invoking the test be sure that 'perf'
10 2. The daemon under test, perfprofd, is broken into a main function, a
33 it is impractical to try to test it directly. Instead we insert a
34 mock utilities layer and then have a test driver that invokes the
56 simply log the fact that they are called; the test driver can
/system/extras/tests/net_test/
DREADME10 - Fast test / boot cycle.
20 path/to/net_test/run_net_test.sh <test>
22 where <test> is the name of a test binary in the net_test directory. This can
32 boots, mounts the root filesystem read-only, runs the specified test from init, and then drops to a…
38 The VM mounts the host filesystem at /host, so the test can be modified and
66 net_test mounts the root filesystem read-only, and runs the test from init, but
76 Since the test mounts the filesystem read-only, tests cannot modify
/system/extras/tests/sdcard/
DREADME35 Run a simple test:
37 adb shell sdcard_perf_test --test=write --size=1000 --chunk-size=100 --procnb=1 --iterations=100
39 This test will write 1000kbyte (1M) files using writes of 100kbytes (so 10 writes per file) using
41 The test will not call sync to flush the writes.
42 At the end of the test, some stats for the 'open' and 'write' system calls are written.
46 …adb shell sdcard_perf_test --test=write --size=1000 --chunk-size=100 --procnb=1 --iterations=100 -…
/system/core/libdiskconfig/
Ddiskutils.c34 write_raw_image(const char *dst, const char *src, loff_t offset, int test) in write_raw_image() argument
50 if (!test) { in write_raw_image()
80 if (test) in write_raw_image()

12345