Home
last modified time | relevance | path

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

12345678910>>...15

/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/tools/hidl/test/version_test/
DAndroid.bp7 " -r test.version:system/tools/hidl/test/version_test/good" +
8 " test.version.version@1.0" +
9 " test.version.version@2.2" +
10 " test.version.version@2.3" +
11 " test.version.version@2.4" +
12 " test.version.version@2.5" +
13 " test.version.version@3.0" +
14 " test.version.version@3.1" +
17 " -r test.version:system/tools/hidl/test/version_test/bad1" +
18 " test.version.version@2.3 2>&1 | grep \"Cannot enforce minor version\" > /dev/null)" +
[all …]
/system/testing/gtest_extras/
DIsolate.cpp174 int Isolate::ChildProcessFn(const std::tuple<std::string, std::string>& test) { in ChildProcessFn() argument
180 std::string filter("--gtest_filter=" + GetTestName(test)); in ChildProcessFn()
220 Test* test = new Test(tests_[cur_test_index_], cur_test_index_, run_index, read_fd.release()); in LaunchTests() local
221 running_by_pid_.emplace(pid, test); in LaunchTests()
222 running_[run_index] = test; in LaunchTests()
223 running_by_test_index_[cur_test_index_] = test; in LaunchTests()
226 pollfd->fd = test->fd(); in LaunchTests()
241 Test* test = running_[i]; in ReadTestsOutput() local
242 if (!test->Read()) { in ReadTestsOutput()
243 test->CloseFd(); in ReadTestsOutput()
[all …]
/system/core/libpixelflinger/tests/arch-mips64/assembler/
Dmips64_assembler_test.cpp371 void dataOpTest(dataOpTest_t test, ArmToMips64Assembler *a64asm, uint32_t Rd = R_v1, in dataOpTest() argument
385 regs[Rd] = test.RdValue; in dataOpTest()
386 regs[Rn] = test.RnValue; in dataOpTest()
387 regs[Rs] = test.RsValue; in dataOpTest()
389 if (test.preCond.mode) { in dataOpTest()
390 a64asm->set_condition(test.preCond.mode, test.preCond.Rcond1, test.preCond.Rcond2); in dataOpTest()
391 regs[test.preCond.Rcond1] = test.preCond.Rcond1Value; in dataOpTest()
392 regs[test.preCond.Rcond2] = test.preCond.Rcond2Value; in dataOpTest()
395 if(test.immediate == true) in dataOpTest()
397 op2 = a64asm->imm(test.immValue); in dataOpTest()
[all …]
/system/bt/osi/
DAndroid.bp18 "test/AllocationTestHarness.cc",
30 "test/AlarmTestHarness.cc",
95 "test/AlarmTestHarness.cc",
96 "test/AllocationTestHarness.cc",
97 "test/alarm_test.cc",
98 "test/allocation_tracker_test.cc",
99 "test/allocator_test.cc",
100 "test/array_test.cc",
101 "test/config_test.cc",
102 "test/fixed_queue_test.cc",
[all …]
DBUILD.gn63 "test/AlarmTestHarness.cc",
64 "test/AllocationTestHarness.cc",
65 "test/alarm_test.cc",
66 "test/allocation_tracker_test.cc",
67 "test/allocator_test.cc",
68 "test/array_test.cc",
69 "test/config_test.cc",
70 "test/future_test.cc",
71 "test/hash_map_utils_test.cc",
72 "test/list_test.cc",
[all …]
/system/tools/sysprop/tests/
DJavaGenTest.cpp47 api_name: "test.string"
49 prop_name: "vendor.test.string"
55 api_name: "test.enum"
57 prop_name: "vendor.test.enum"
65 prop_name: "ro.vendor.test.b"
89 api_name: "test.strlist"
239 String value = SystemProperties.get("vendor.test.string");
245 SystemProperties.set("vendor.test.string", value == null ? "" : value.toString());
268 String value = SystemProperties.get("vendor.test.enum");
274 SystemProperties.set("vendor.test.enum", value == null ? "" : value.getPropValue());
[all …]
DCppGenTest.cpp48 api_name: "test.string"
50 prop_name: "android.test.string"
56 api_name: "test.enum"
58 prop_name: "android.test.enum"
66 prop_name: "ro.android.test.b"
90 api_name: "test.strlist"
244 …LOG_ALWAYS_FATAL("Invalid value %d for property android.test.enum", static_cast<std::int32_t>(*val…
420 return GetProp<std::optional<std::string>>("android.test.string");
424 return __system_property_set("android.test.string", value ? value->c_str() : "") == 0;
428 return GetProp<std::optional<test_enum_values>>("android.test.enum");
[all …]
/system/bt/test/
Dgen_coverage.py146 for test in tests:
147 test_name = test['test_name']
148 covered_files = test['covered_files']
149 json_results = generate_coverage_json(test)
230 def generate_coverage_html(test): argument
233 test_name = test['test_name']
234 file_list = test['covered_files']
260 logging.info('Generating coverage report for ' + test['test_name'])
263 logging.error('Failed to generate coverage for ' + test['test_name'])
267 def generate_coverage_json(test): argument
[all …]
/system/core/fastboot/fuzzy_fastboot/
Dextensions.cpp106 const std::string test = XMLAttribute(part, "test"); in ExtractPartitions() local
116 bool allowed = test == "yes" || test == "no-writes" || test == "no"; in ExtractPartitions()
122 part_info.test = (test == "yes") in ExtractPartitions()
124 : (test == "no-writes") ? Configuration::PartitionInfo::NO_WRITES in ExtractPartitions()
163 const tinyxml2::XMLElement* test = part->FirstChildElement("test") in ExtractPacked() local
166 while (test) { in ExtractPacked()
168 packed_test.packed_img = XMLAttribute(test, "packed"); in ExtractPacked()
169 packed_test.unpacked_dir = XMLAttribute(test, "unpacked"); in ExtractPacked()
170 const std::string expect = XMLAttribute(test, "expect", "okay"); in ExtractPacked()
172 if (XMLAssert(!packed_test.packed_img.empty(), test, in ExtractPacked()
[all …]
/system/core/init/
Dueventd_parser_test.cpp26 void TestSubsystems(const Subsystem& expected, const Subsystem& test) { in TestSubsystems() argument
27 EXPECT_EQ(expected.name_, test.name_); in TestSubsystems()
28 EXPECT_EQ(expected.devname_source_, test.devname_source_) << expected.name_; in TestSubsystems()
29 EXPECT_EQ(expected.dir_name_, test.dir_name_) << expected.name_; in TestSubsystems()
32 void TestPermissions(const Permissions& expected, const Permissions& test) { in TestPermissions() argument
33 EXPECT_EQ(expected.name_, test.name_); in TestPermissions()
34 EXPECT_EQ(expected.perm_, test.perm_) << expected.name_; in TestPermissions()
35 EXPECT_EQ(expected.uid_, test.uid_) << expected.name_; in TestPermissions()
36 EXPECT_EQ(expected.gid_, test.gid_) << expected.name_; in TestPermissions()
37 EXPECT_EQ(expected.prefix_, test.prefix_) << expected.name_; in TestPermissions()
[all …]
/system/tools/aidl/build/
DAndroid.bp51 // Copy of test-piece-1 as test only. Creating a separate library because 'vendor_available' is
54 name: "test-vendor",
65 name: "test-piece-1",
72 api_dir: "api/test-piece-1",
77 name: "test-piece-2",
84 "test-piece-1",
86 api_dir: "api/test-piece-2",
91 name: "test-piece-3",
97 "test-piece-2",
99 api_dir: "api/test-piece-3",
[all …]
/system/keymaster/tests/
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()
/system/core/libpixelflinger/tests/arch-arm64/assembler/
Darm64_assembler_test.cpp413 void dataOpTest(dataOpTest_t test, ARMAssemblerInterface *a64asm, uint32_t Rd = 0, in dataOpTest() argument
427 regs[Rd] = test.RdValue; in dataOpTest()
428 regs[Rn] = test.RnValue; in dataOpTest()
429 regs[Rs] = test.RsValue; in dataOpTest()
430 flags[test.preFlag] = 1; in dataOpTest()
433 if(test.immediate == true) in dataOpTest()
435 op2 = a64asm->imm(test.immValue); in dataOpTest()
437 else if(test.immediate == false && test.shiftAmount == 0) in dataOpTest()
440 regs[Rm] = test.RmValue; in dataOpTest()
444 op2 = a64asm->reg_imm(Rm, test.shiftMode, test.shiftAmount); in dataOpTest()
[all …]
/system/sepolicy/tests/
Dsepolicy_tests.py104 if options.test is None or "TestDataTypeViolations" in options.test:
106 if options.test is None or "TestProcTypeViolations" in options.test:
108 if options.test is None or "TestSysfsTypeViolations" in options.test:
110 if options.test is None or "TestSystemTypeViolations" in options.test:
112 if options.test is None or "TestDebugfsTypeViolations" in options.test:
114 if options.test is None or "TestVendorTypeViolations" in options.test:
116 if options.test is None or "TestCoreDataTypeViolations" in options.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/tools/hidl/test/hash_test/
DAndroid.bp8 " -r test.hash:system/tools/hidl/test/hash_test/good" +
9 " test.hash.hash@1.0" +
13 " -r test.hash:system/tools/hidl/test/hash_test/bad" +
14 " test.hash.hash@1.0 2> /dev/null)" +
18 " -r test.hash:system/tools/hidl/test/hash_test/bad" +
19 " test.hash.hash@1.0 > /dev/null" +
/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/bt/service/
DAndroid.bp59 // Main unit test sources. These get built for host and target.
65 "test/a2dp_sink_unittest.cc",
66 "test/adapter_unittest.cc",
67 "test/advertise_data_unittest.cc",
68 "test/fake_hal_util.cc",
69 "test/gatt_client_unittest.cc",
70 "test/gatt_server_unittest.cc",
71 "test/low_energy_advertiser_unittest.cc",
72 "test/low_energy_client_unittest.cc",
73 "test/low_energy_scanner_unittest.cc",
[all …]
/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/extras/simpleperf/runtest/
Druntest.py211 for test in root:
212 assert test.tag == 'test'
213 test_name = test.attrib['name']
221 for test_item in test:
479 def check_report_file(self, test, report_file, has_callgraph): argument
481 if not self._check_symbol_overhead_requirements(test, symbols):
484 if not self._check_symbol_children_overhead_requirements(test, symbols):
486 if not self._check_symbol_relation_requirements(test, symbols):
490 def _check_symbol_overhead_requirements(self, test, symbols): argument
492 matched = [False] * len(test.symbol_overhead_requirements)
[all …]

12345678910>>...15