Searched defs:test (Results 1 - 25 of 25) sorted by relevance

/system/extras/tests/bionic/libc/
H A DAndroid.mk15 # Build control file for Bionic's test programs
16 # define the BIONIC_TESTS environment variable to build the test programs
22 # used to define a simple test program and build it as a standalone
28 define device-test
43 # same as 'device-test' but builds a host executable instead
46 define host-test
71 $(call host-test, $(sources))
72 $(call device-test, $(sources))
80 $(call device-test, $(sources))
/system/core/libpixelflinger/tests/arch-arm64/disassembler/
H A Darm64_diassembler_test.cpp299 test_table_entry_t *test; local
300 test = &test_table[i];
301 arm64_disassemble(test->code, instr);
302 if(strcmp(instr, test->instr) != 0)
307 "Actual : %s\n", test->code, test->instr, instr);
/system/keymaster/
H A Dhmac_test.cpp28 namespace test { namespace in namespace:keymaster
50 "The test message for the MD2, MD5, and SHA-1 hashing algorithms.",
63 const HmacTest& test(kHmacTests[i]);
66 const string key = hex2str(test.key);
70 uint8_t digest_copy[sizeof(test.digest)];
71 memcpy(digest_copy, test.digest, sizeof(test.digest));
74 Buffer data_buffer(test.data, strlen(test.data));
83 } // namespace test
[all...]
H A Dhkdf_test.cpp28 namespace test { namespace in namespace:keymaster
37 // These test cases are taken from
69 const HkdfTest& test(kHkdfTests[i]);
70 const string key = hex2str(test.key_hex);
71 const string salt = hex2str(test.salt_hex);
72 const string info = hex2str(test.info_hex);
73 const string expected = hex2str(test.output_hex);
90 } // namespace test
H A Dauthorization_set_test.cpp26 namespace test { namespace in namespace:keymaster
272 // This sucks. This test, as written, requires intimate knowledge of the serialized layout of
273 // this particular set, which means it's brittle. But it's important to test that we handle
626 // The real test here is that valgrind reports no leak.
629 } // namespace test
H A Dandroid_keymaster_messages_test.cpp28 namespace test { namespace in namespace:keymaster
580 std::cout << "Seeding rand() with " << now << " for fuzz test." << std::endl;
633 } // namespace test
H A Dkey_blob_test.cpp35 namespace test { namespace in namespace:keymaster
291 // This test is especially useful when compiled for 32-bit mode and run under valgrind.
294 std::cout << "Seeding rand() with " << now << " for fuzz test." << std::endl;
361 } // namespace test
H A Dkeymaster_enforcement_test.cpp28 namespace test { namespace in namespace:keymaster
871 }; /* namespace test */
H A Dandroid_keymaster_test_utils.cpp152 namespace test { namespace in namespace:keymaster
639 } // namespace test
H A Dandroid_keymaster_test_utils.h52 namespace test { namespace in namespace:keymaster
152 * keymaster1_device_t to which test calls can be directed. It also provides a place to specify
447 } // namespace test
H A Dandroid_keymaster_test.cpp46 namespace test { namespace in namespace:keymaster
1094 string message = "This is a test using a larger than block-size key and a larger than "
2423 // These test vectors are taken from
2455 const AesCtrSp80038aTestVector& test(kAesCtrSp80038aTestVectors[i]);
2456 const string key = hex2str(test.key);
2457 const string nonce = hex2str(test.nonce);
2458 const string plaintext = hex2str(test.plaintext);
2459 const string ciphertext = hex2str(test.ciphertext);
3165 // There's no obvious way to test that entropy is actually added, but we can test tha
[all...]
/system/core/libdiskconfig/
H A Ddiskutils.c34 write_raw_image(const char *dst, const char *src, loff_t offset, int test) argument
50 if (!test) {
80 if (test)
H A Dwrite_lst.c70 wlist_commit(int fd, struct write_list *lst, int test) argument
78 if (!test) {
H A Ddiskconfig.c415 * Basically, this does the same thing as apply_disk_config in test mode,
435 apply_disk_config(struct disk_info *dinfo, int test) argument
446 if ((rv = wlist_commit(fd, wr_lst, test)) >= 0)
447 rv = test ? 0 : sync_ptable(fd);
/system/bt/btcore/test/
H A Ddevice_class_test.cpp21 #include "osi/test/AllocationTestHarness.h"
136 uint32_t *test = (uint32_t *)&dc; local
139 EXPECT_EQ((unsigned)0x00000000, *test & DC_MASK);
143 EXPECT_EQ((unsigned)0x00002000, *test & DC_MASK);
147 EXPECT_EQ((unsigned)0x00000000, *test & DC_MASK);
150 EXPECT_PRED_FORMAT2(check_bitfield, 0x00002000, *test & DC_MASK);
153 EXPECT_PRED_FORMAT2(check_bitfield, 0x00000000, *test & DC_MASK);
/system/core/fastboot/
H A Dusbtest.c130 int (*test)(usb_handle *usb); member in struct:__anon1315
194 if(tests[i].test) {
200 if(tests[i].test(usb)) {
/system/core/libion/
H A Dion_test.c38 int test = -1; variable
70 printf("ion alloc test: passed\n");
262 test = ALLOC_TEST;
265 test = MAP_TEST;
268 test = SHARE_TEST;
272 printf("test %d, len %zu, align %zu, map_flags %d, prot %d, heap_mask %d,"
273 " alloc_flags %d\n", test, len, align, map_flags, prot,
275 switch (test) {
286 printf("must specify a test (alloc, map, share)\n");
/system/core/libpixelflinger/tests/arch-arm64/col32cb16blend/
H A Dcol32cb16blend_test.c91 struct test_t test = tests[i]; local
93 printf("Testing - %s:",test.name);
98 for(j = 0; j < test.count; ++j)
100 dst_c[j] = test.dst_color;
101 dst_asm[j] = test.dst_color;
105 scanline_col32cb16blend_c(dst_c, test.src_color, test.count);
106 scanline_col32cb16blend_arm64(dst_asm, test.src_color, test.count);
114 for(j = 0; j < test
[all...]
/system/core/libpixelflinger/tests/arch-arm64/t32cb16blend/
H A Dt32cb16blend_test.c100 struct test_t test = tests[i]; local
102 printf("Testing - %s:",test.name);
107 for(j = 0; j < test.count; ++j)
109 dst_c[j] = test.dst_color;
110 dst_asm[j] = test.dst_color;
111 src[j] = test.src_color;
114 scanline_t32cb16blend_c(dst_c,src,test.count);
115 scanline_t32cb16blend_arm64(dst_asm,src,test.count);
123 for(j = 0; j < test.count; ++j)
/system/core/libpixelflinger/tests/gglmul/
H A Dgglmul_test.cpp59 gglClampx_test_t *test = &gglClampx_tests[i]; local
61 test->input, test->output);
62 if(gglClampx(test->input) == test->output)
90 gglClz_test_t *test = &gglClz_tests[i]; local
91 printf("Test input=0x%08x output=%2d :", test->input, test->output);
92 if(gglClz(test->input) == test
128 gglMulx_test_t *test = &gglMulx_tests[i]; local
171 gglMulAddx_test_t *test = &gglMulAddx_tests[i]; local
214 gglMulSubx_test_t *test = &gglMulSubx_tests[i]; local
256 gglMulii_test_t *test = &gglMulii_tests[i]; local
[all...]
/system/security/keystore/
H A Dauth_token_table.h28 namespace test { namespace in namespace:keymaster
30 } // namespace test
/system/security/keystore/tests/
H A Dauth_token_table_test.cpp36 namespace test { namespace in namespace:keymaster
97 // output during a test run. This test clock "ticks" one second every time it's called.
295 // Marking a nonexistent entry completed is ignored. This test is mainly for code coverage.
410 } // namespace test
/system/core/init/
H A Dinit_parser.cpp578 const char *test = cur_trigger->name + strlen("property:"); local
581 if (!strncmp(name, test, name_length) &&
582 test[name_length] == '=' &&
583 (!strcmp(test + name_length + 1, value) ||
584 !strcmp(test + name_length + 1, "*"))) {
589 const char* equals = strchr(test, '=');
593 int length = equals - test;
596 memcpy(prop_name, test, length);
/system/bt/stack/rfcomm/
H A Drfc_int.h104 } test; member in union:__anon1249::__anon1250
/system/core/libpixelflinger/tests/arch-arm64/assembler/
H A Darm64_assembler_test.cpp414 void dataOpTest(dataOpTest_t test, ARMAssemblerInterface *a64asm, uint32_t Rd = 0, argument
428 regs[Rd] = test.RdValue;
429 regs[Rn] = test.RnValue;
430 regs[Rs] = test.RsValue;
431 flags[test.preFlag] = 1;
434 if(test.immediate == true)
436 op2 = a64asm->imm(test.immValue);
438 else if(test.immediate == false && test.shiftAmount == 0)
441 regs[Rm] = test
520 dataTransferTest(dataTransferTest_t test, ARMAssemblerInterface *a64asm, uint32_t Rd = 0, uint32_t Rn = 1,uint32_t Rm = 2) argument
[all...]

Completed in 472 milliseconds