Home
last modified time | relevance | path

Searched refs:printf (Results 1 – 25 of 203) sorted by relevance

123456789

/system/core/trusty/keymaster/
Dtrusty_keymaster_main.cpp114 printf("===================\n"); in test_import_rsa()
115 printf("= RSA Import Test =\n"); in test_import_rsa()
116 printf("===================\n\n"); in test_import_rsa()
118 printf("=== Importing RSA keypair === \n"); in test_import_rsa()
123 printf("Error importing key pair: %d\n\n", error); in test_import_rsa()
128 printf("=== Signing with imported RSA key ===\n"); in test_import_rsa()
138 printf("Error signing data with imported RSA key: %d\n\n", error); in test_import_rsa()
143 printf("=== Verifying with imported RSA key === \n"); in test_import_rsa()
147 printf("Error verifying data with imported RSA key: %d\n\n", error); in test_import_rsa()
151 printf("\n"); in test_import_rsa()
[all …]
/system/extras/taskstats/
Dtaskstats.c136 printf("Basic task statistics\n"); in print_task_stats()
137 printf("---------------------\n"); in print_task_stats()
138 printf("%-25s%d\n", "Stats version:", s->version); in print_task_stats()
139 printf("%-25s%d\n", "Exit code:", s->ac_exitcode); in print_task_stats()
140 printf("%-25s0x%x\n", "Flags:", s->ac_flag); in print_task_stats()
141 printf("%-25s%d\n", "Nice value:", s->ac_nice); in print_task_stats()
142 printf("%-25s%s\n", "Command name:", s->ac_comm); in print_task_stats()
143 printf("%-25s%d\n", "Scheduling discipline:", s->ac_sched); in print_task_stats()
144 printf("%-25s%d\n", "UID:", s->ac_uid); in print_task_stats()
145 printf("%-25s%d\n", "GID:", s->ac_gid); in print_task_stats()
[all …]
/system/media/audio_utils/tests/
Dfifo_multiprocess.cpp36 printf("frontFd=%d\n", frontFd); in main()
39 printf("rearFd=%d\n", rearFd); in main()
42 printf("dataFd=%d\n", dataFd); in main()
48 printf("parent frontIndex=%p\n", frontIndex); in main()
53 printf("parent rearIndex=%p\n", rearIndex); in main()
58 printf("parent data=%p\n", data); in main()
62 printf("page size=%d\n", pageSize); in main()
66 printf("fork writer:\n"); in main()
75 printf("writer unmap front ok=%d\n", ok); in main()
77 printf("writer prot read front ok=%d\n", ok); in main()
[all …]
/system/core/libunwindstack/
Dunwind_info.cpp36 printf("No ARM Unwind Information.\n\n"); in DumpArm()
40 printf("ARM Unwind Information:\n"); in DumpArm()
43 printf(" PC Range 0x%" PRIx64 " - 0x%" PRIx64 "\n", entry.second.offset + load_bias, in DumpArm()
47 printf(" PC 0x%" PRIx64, addr + load_bias); in DumpArm()
50 printf(" <%s>", name.c_str()); in DumpArm()
52 printf("\n"); in DumpArm()
55 printf(" Cannot find entry for address.\n"); in DumpArm()
64 printf(" Error trying to extract data.\n"); in DumpArm()
70 printf(" Error trying to evaluate dwarf data.\n"); in DumpArm()
75 printf("\n"); in DumpArm()
[all …]
/system/extras/micro_bench/
Dmicro_bench.cpp152 printf("%s %zux%zu bytes took %.06f seconds (%f MB/s)\n", in printIter()
157 printf(" %s %zux%zu bytes average %.2f MB/s std dev %.4f min %.2f MB/s max %.2f MB/s\n", in printSummary()
186 printf("%s %zux%zux%zu bytes took %.06f seconds (%f MB/s)\n", in printColdIter()
193 printf(" %s %zux%zux%zu bytes average %.2f MB/s std dev %.4f min %.2f MB/s max %.2f MB/s\n", in printColdSummary()
252 printf("%s: Chosen options lead to no copies, aborting.\n", name); \
385 printf("sleep(%d) took %.06f seconds\n", delay, avg);, in benchmarkSleep()
386printf(" sleep(%d) average %.06f seconds std dev %f min %.06f seconds max %0.6f seconds\n", \ in benchmarkSleep()
471 if (retval != 0) printf("%s failed, return value %d\n", name, retval)); in benchmarkStrcmp()
488 if (retval != 0) printf("%s failed, return value %d\n", name, retval)); in benchmarkStrcmpCold()
500 printf("%s failed, expected %zu, got %zu\n", name, size, real_size); \ in benchmarkStrlen()
[all …]
/system/extras/tests/memtest/
Dmemtest.cpp39 printf("Usage: %s <test> <options>\n" in usage()
117 printf("size = %9zd failed\n", size); in malloc_test()
121 printf("size = %9zd, addr = %p (total = %9zd (%zd MB))\n", in malloc_test()
124 printf("filling...\n"); in malloc_test()
131 printf("done. allocated %zd MB\n", total / (1024*1024)); in malloc_test()
138 printf("Allocating %zd MB... ", size/(1024*1024)); fflush(stdout); in madvise_test()
140 printf("%p (%s)\n", addr1, addr1==(void*)-1 ? "failed" : "OK"); fflush(stdout); in madvise_test()
142 printf("touching %p...\n", addr1); fflush(stdout); in madvise_test()
145 printf("advising DONTNEED...\n"); fflush(stdout); in madvise_test()
148 printf("reading back %p...\n", addr1); fflush(stdout); in madvise_test()
[all …]
Dbandwidth.cpp76 printf("The option --%s requires an argument.\n", name); in processBandwidthOptions()
135 printf("Unknown type name %s\n", name); in createBandwidthBenchmarkObject()
140 printf("Failed to allocate buffers for benchmark.\n"); in createBandwidthBenchmarkObject()
222 printf("The size values must be a multiple of 64.\n"); in processThreadArgs()
226 printf("Must specify the type value.\n"); in processThreadArgs()
240 printf("Calculating optimum run time...\n"); in processThreadArgs()
268 printf("Failed to launch thread %d\n", i); in runThreadedTest()
286 printf("Thread %d failed to join.\n", i); in runThreadedTest()
289 printf("Thread %d: bandwidth using %s %0.2f MB/s\n", i, in runThreadedTest()
304 printf("Failed to get available cpu list.\n"); in per_core_bandwidth()
[all …]
/system/bt/embdrv/sbc/decoder/srce/
Dframing-sbc.c46 printf("SBC configuration\n"); in OI_CODEC_SBC_DumpConfig()
47 printf(" enhanced: %s\n", frameInfo->enhanced ? "true" : "false"); in OI_CODEC_SBC_DumpConfig()
48 printf(" frequency: %d\n", frameInfo->frequency); in OI_CODEC_SBC_DumpConfig()
49 printf(" subbands: %d\n", frameInfo->nrof_subbands); in OI_CODEC_SBC_DumpConfig()
50 printf(" blocks: %d\n", frameInfo->nrof_blocks); in OI_CODEC_SBC_DumpConfig()
51 printf(" channels: %d\n", frameInfo->nrof_channels); in OI_CODEC_SBC_DumpConfig()
52 printf(" mode: %s\n", OI_CODEC_SBC_ModeText[frameInfo->mode]); in OI_CODEC_SBC_DumpConfig()
53 printf(" alloc: %s\n", OI_CODEC_SBC_AllocText[frameInfo->alloc]); in OI_CODEC_SBC_DumpConfig()
54 printf(" bitpool: %d\n", frameInfo->bitpool); in OI_CODEC_SBC_DumpConfig()
/system/core/libpixelflinger/tests/gglmul/
Dgglmul_test.cpp56 printf("Testing gglClampx\n"); in gglClampx_test()
60 printf("Test input=0x%08x output=0x%08x :", in gglClampx_test()
63 printf("Passed\n"); in gglClampx_test()
65 printf("Failed\n"); in gglClampx_test()
87 printf("Testing gglClz\n"); in gglClz_test()
91 printf("Test input=0x%08x output=%2d :", test->input, test->output); in gglClz_test()
93 printf("Passed\n"); in gglClz_test()
95 printf("Failed\n"); in gglClz_test()
125 printf("Testing gglMulx\n"); in gglMulx_test()
129 printf("Test x=0x%08x y=0x%08x shift=%2d :", in gglMulx_test()
[all …]
/system/extras/procrank/
Dprocrank.cpp84 printf("Unable to open /proc/meminfo: %s\n", strerror(errno)); in get_mem_info()
92 printf("Empty /proc/meminfo"); in get_mem_info()
314 printf("%5s ", "PID"); in main()
316 printf("%5s ", "oom"); in main()
319 printf("%7s %7s %7s ", "WRss", "WPss", "WUss"); in main()
321 printf("%7s %7s %7s ", "WSwap", "WPSwap", "WUSwap"); in main()
323 printf("%7s ", "WZSwap"); in main()
327 printf("%8s %7s %7s %7s ", "Vss", "Rss", "Pss", "Uss"); in main()
329 printf("%7s %7s %7s ", "Swap", "PSwap", "USwap"); in main()
331 printf("%7s ", "ZSwap"); in main()
[all …]
/system/bt/tools/hci/
Dmain.c55 printf("No help command specified.\n"); in help()
61 printf("No command named '%s'.\n", argv[0]); in help()
65 printf("%s %s\n", argv[0], command->help); in help()
71 printf("Discoverable mode not specified.\n"); in set_discoverable()
76 printf("Invalid discoverable mode '%s'.\n", argv[0]); in set_discoverable()
88 printf("Device name not specified.\n"); in set_name()
94 printf("Device name cannot exceed 247 bytes.\n"); in set_name()
116 printf("PCM loopback mode not specified.\n"); in set_pcm_loopback()
121 printf("Invalid PCM mode '%s'.\n", argv[0]); in set_pcm_loopback()
133 printf("SCO route parameter must be specified.\n"); in set_sco_route()
[all …]
/system/extras/app-launcher/
Dcomputestatsf.c66 printf("%lf\n", data_items[num_data_items]); in main()
75 printf("Total items %lu\n", num_data_items); in main()
82 printf("\tMean %.4f\n", mean); in main()
84 printf("\tStd Dev %.4f (%.4f%% of mean)\n", in main()
103 printf("\tWithin 1 SD %.2f%%\n", in main()
105 printf("\tWithin 2 SD %.2f%%\n", in main()
107 printf("\tWithin 3 SD %.2f%%\n", in main()
109 printf("\tOutside 3 SD %.2f%%\n", in main()
113 printf("\t50th percentile %lf\n", data_items[num_data_items / 2]); in main()
114 printf("\t75th percentile %lf\n", data_items[(3 * num_data_items) / 4]); in main()
[all …]
Dcomputestats.c66 printf("%lu\n", data_items[num_data_items++]); in main()
75 printf("Total items %lu\n", num_data_items); in main()
82 printf("\tMean %lu\n", mean); in main()
84 printf("\tStd Dev %.2f (%.2f%% of mean)\n", in main()
103 printf("\tWithin 1 SD %.2f%%\n", in main()
105 printf("\tWithin 2 SD %.2f%%\n", in main()
107 printf("\tWithin 3 SD %.2f%%\n", in main()
109 printf("\tOutside 3 SD %.2f%%\n", in main()
113 printf("\t50th percentile %lu\n", data_items[num_data_items / 2]); in main()
114 printf("\t75th percentile %lu\n", data_items[(3 * num_data_items) / 4]); in main()
[all …]
/system/core/demangle/
Ddemangle.cpp30 printf("Usage: %s [-c] <NAME_TO_DEMANGLE>\n", prog_name); in usage()
31 printf(" -c\n"); in usage()
32 printf(" Compare the results of __cxa_demangle against the current\n"); in usage()
33 printf(" demangler.\n"); in usage()
75 printf("Must supply a single argument.\n\n"); in main()
83 printf("%s\n", demangled_name.c_str()); in main()
89 printf("Mismatch\n"); in main()
90 printf("cxa demangle: %s\n", cxa_demangle_str.c_str()); in main()
93 printf("Match\n"); in main()
/system/core/libsync/
Dsync_test.c47 printf("thread %d wait %d failed: %s\n", sync_data->thread_no, in sync_thread()
50 printf("thread %d wait %d done\n", sync_data->thread_no, i); in sync_thread()
55 printf(" fence %s %d\n", info->name, info->status); in sync_thread()
60 printf(" pt %s %s %d %d.%06d", pt_info->obj_name, in sync_thread()
64 printf(" val=%d\n", *(uint32_t *)pt_info->driver_data); in sync_thread()
66 printf("\n"); in sync_thread()
98 printf("can't create sync pt %d: %s", val, strerror(errno)); in main()
102 printf("sync_data[%d].fd[%d] = %d;\n", i, j, fd); in main()
112 printf("can't merge sync pts %d and %d: %s\n", in main()
124 printf("press enter to inc to %d\n", i+1); in main()
[all …]
/system/security/keystore/
Dkeystore_cli_v2.cpp42 printf("Usage: keystore_client_v2 <command> [options]\n"); in PrintUsageAndExit()
43 printf("Commands: brillo-platform-test [--prefix=<test_name_prefix>] [--test_for_0_3]\n" in PrintUsageAndExit()
65 printf(" %s\n", stringifyTag(iter->tag)); in PrintTags()
71 printf("Hardware:\n"); in PrintKeyCharacteristics()
73 printf("Software:\n"); in PrintKeyCharacteristics()
86 printf("[%s] %s\n", kBoldRedAbort, name.c_str()); in TestKey()
92 printf("[%s] %s\n", kBoldRedAbort, name.c_str()); in TestKey()
95 printf("===============================================================\n"); in TestKey()
96 printf("%s Key Characteristics:\n", name.c_str()); in TestKey()
108 printf("[%s] %s\n", in TestKey()
[all …]
/system/tpm/trunks/
Dtrunks_client.cc111 printf("Owner password set: %s\n", in DumpStatus()
113 printf("Endorsement password set: %s\n", in DumpStatus()
115 printf("Lockout password set: %s\n", in DumpStatus()
117 printf("Ownership status: %s\n", state->IsOwned() ? "true" : "false"); in DumpStatus()
118 printf("In lockout: %s\n", state->IsInLockout() ? "true" : "false"); in DumpStatus()
119 printf("Platform hierarchy enabled: %s\n", in DumpStatus()
121 printf("Storage hierarchy enabled: %s\n", in DumpStatus()
123 printf("Endorsement hierarchy enabled: %s\n", in DumpStatus()
125 printf("Is Tpm enabled: %s\n", state->IsEnabled() ? "true" : "false"); in DumpStatus()
126 printf("Was shutdown orderly: %s\n", in DumpStatus()
[all …]
/system/extras/verity/
Dgenerate_verity_key.c75 printf("Failed to open '%s'\n", pem_file); in convert_x509()
81 printf("Failed to read PEM certificate from file '%s'\n", pem_file); in convert_x509()
87 printf("Failed to extract public key from certificate '%s'\n", pem_file); in convert_x509()
93 printf("Failed to get the RSA public key from '%s'\n", pem_file); in convert_x509()
98 printf("Failed to write public key\n"); in convert_x509()
130 printf("Failed to allocate key\n"); in generate_key()
140 printf("Failed to open '%s'\n", file); in generate_key()
145 printf("Failed to write key\n"); in generate_key()
150 printf("Failed to write public key\n"); in generate_key()
166printf("Usage: generate_verity_key <path-to-key> | -convert <path-to-x509-pem> <path-to-key>\n"); in usage()
/system/extras/tests/directiotest/
Ddirectiotest.c146 printf("%08x ", i); in dump_hex()
147 printf("%02x ", val); in dump_hex()
150 printf(" %-16s\n", ascii_buf); in dump_hex()
157 printf(" "); in dump_hex()
158 printf(" %-16s\n", ascii_buf); in dump_hex()
165 printf("Testing area %d/%d (%6.2f%% complete)\r", current, total, in update_progress()
183 printf("Usage: directiotest blkdev_path\n"); in main()
225 printf("Warning: Device too large for test variables\n"); in main()
226 printf("Entire device will not be tested\n"); in main()
232 printf("Starting test\n"); in main()
[all …]
/system/core/libion/
Dion_test.c52 printf("%s failed: %s\n", __func__, strerror(ret)); in _ion_alloc_test()
66 printf("%s failed: %s %d\n", __func__, strerror(ret), handle); in ion_alloc_test()
70 printf("ion alloc test: passed\n"); in ion_alloc_test()
92 printf("%s failed wrote %zu read %d from mapped " in ion_map_test()
143 printf("share failed %s\n", strerror(errno)); in ion_share_test()
155 printf("master? [%10s] should be [master]\n", ptr); in ion_share_test()
156 printf("master sending msg 1\n"); in ion_share_test()
160 printf("master? [%10s] should be [child]\n", ptr); in ion_share_test()
164 printf("master->master? [%10s]\n", ptr); in ion_share_test()
191 printf("no cmsg rcvd in child"); in ion_share_test()
[all …]
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c161 printf("%s: repeat = %u\n", __func__, repeat); in connect_test()
185 printf("%s: done\n", __func__); in connect_test()
197 printf("%s: repeat = %u\n", __func__, repeat); in connect_foo()
210 printf("%s: done\n", __func__); in connect_foo()
223 printf("%s: repeat = %u\n", __func__, repeat); in closer1_test()
234 printf("%s: connected\n", __func__); in closer1_test()
240 printf("%s: done\n", __func__); in closer1_test()
252 printf("%s: repeat = %u\n", __func__, repeat); in closer2_test()
259 printf("failed to connect to '%s' service\n", "closer2"); in closer2_test()
269 printf("%s: done\n", __func__); in closer2_test()
[all …]
/system/core/liblog/include/android/
Dlog.h105 __attribute__((__format__(printf, 3, 4)))
108 __attribute__((__format__(printf, 3, 4)))
123 __attribute__((__format__(printf, 3, 0)))
126 __attribute__((__format__(printf, 3, 0)))
143 __attribute__((__format__(printf, 3, 4)))
146 __attribute__((__format__(printf, 3, 4)))
/system/core/include/android/
Dlog.h105 __attribute__((__format__(printf, 3, 4)))
108 __attribute__((__format__(printf, 3, 4)))
123 __attribute__((__format__(printf, 3, 0)))
126 __attribute__((__format__(printf, 3, 0)))
143 __attribute__((__format__(printf, 3, 4)))
146 __attribute__((__format__(printf, 3, 4)))
/system/extras/libfec/test/
Dtest_rs.c56 printf("%d errors\n", neras); in main()
67 printf("\tno erasures: %d\n", rc); in main()
72 printf("\t\terror at %d (%02x)\n", i, corr[i]); in main()
76 printf("\t\t%d errors in output\n", errors); in main()
80 printf("\terasures: %d\n", rc); in main()
85 printf("\t\terror at %d (%02x)\n", i, dupl[i]); in main()
89 printf("\t\t%d errors in output\n", errors); in main()
/system/extras/crypto-perf/
Dcrypto.cpp20 printf("--------------------------------------------------------------------------------\n"); in usage()
21 printf("Usage:"); in usage()
22 printf(" crypto [--cpu_to_lock CPU] [--locked_freq FREQ_IN_KHZ]\n\n"); in usage()
23 printf("!!!!!!Lock the desired core to a desired frequency before invoking this benchmark.\n"); in usage()
24 printf( in usage()
27 printf("--------------------------------------------------------------------------------\n"); in usage()
42 printf("Unknown option %s\n", argv[i]); in processOptions()
52 printf("The option %s requires one argument.\n", argv[i]); in processOptions()
146 printf("--------------------------------------------------------------------------------\n"); in main()

123456789