/system/core/adb/ |
D | shell_service_test.cpp | 114 int ReadShellProtocol(int fd, std::string* stdout, std::string* stderr) { in ReadShellProtocol() argument 116 stdout->clear(); in ReadShellProtocol() 123 stdout->append(protocol->data(), protocol->data_length()); in ReadShellProtocol() 200 std::string stdout, stderr; in TEST_F() local 201 EXPECT_EQ(24, ReadShellProtocol(subprocess_fd_, &stdout, &stderr)); in TEST_F() 202 ExpectLinesEqual(stdout, {"foo", "baz"}); in TEST_F() 214 std::string stdout, stderr; in TEST_F() local 215 EXPECT_EQ(50, ReadShellProtocol(subprocess_fd_, &stdout, &stderr)); in TEST_F() 216 ExpectLinesEqual(stdout, {"foo", "bar", "baz"}); in TEST_F() 239 std::string stdout, stderr; in TEST_F() local [all …]
|
D | line_printer.cpp | 55 setvbuf(stdout, NULL, _IONBF, 0); in LinePrinter() 65 fwrite(s.data(), 1, s.size(), stdout); in Out() 114 fflush(stdout); in Print()
|
D | test_adb.py | 59 p = subprocess.Popen(['adb', 'tcpip'], stdout=subprocess.PIPE, 65 p = subprocess.Popen(['adb', 'tcpip', 'foo'], stdout=subprocess.PIPE, 103 stdin=subprocess.PIPE, stdout=subprocess.PIPE, 110 args=(p.stdout, stdout_event))
|
/system/bt/tools/bdtool/ |
D | adapter.c | 105 fprintf(stdout, "Bond state changed callback addr:%s state:%s\n", in bond_state_changed() 113 fprintf(stdout, "Device found num_properties:%d\n", num_properties); in device_found() 135 fprintf(stdout, "Discover state %s\n", state_name); in discovery_state_changed() 144 fprintf(stdout, "Device found bdaddr:%s num_properties:%d\n", in remote_device_properties() 175 fprintf(stdout, in ssp_request() 179 fprintf(stdout, "Device found:%s %s\n", in ssp_request() 182 fprintf(stdout, "auto-accepting bond\n"); in ssp_request() 197 if (name) fprintf(stdout, " name:%s\n", name->name); in parse_properties() 204 fprintf(stdout, " addr:%s\n", in parse_properties() 213 fprintf(stdout, " uuid:%zd: ", i); in parse_properties() [all …]
|
D | bdtool.c | 94 fprintf(stdout, "Bringing up bluetooth adapter\n"); in main() 102 fprintf(stdout, "BT adapter is up\n"); in main() 104 fprintf(stdout, "Starting to start discovery\n"); in main() 106 fprintf(stdout, "Started discovery for %d seconds\n", timeout_in_sec); in main() 110 fprintf(stdout, "Starting to cancel discovery\n"); in main() 112 fprintf(stdout, "Cancelled discovery after %d seconds\n", timeout_in_sec); in main() 117 fprintf(stdout, "BT adapter is up\n"); in main() 123 fprintf(stdout, "Set rc:%d device as discoverable for %d seconds\n", rc, in main() 140 fprintf(stdout, "BT adapter is up\n"); in main() 144 fprintf(stdout, "Started bonding:%d for %d seconds\n", rc, timeout_in_sec); in main() [all …]
|
/system/extras/tests/memtest/ |
D | memtest.cpp | 125 fflush(stdout); 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() 157 printf("Allocating %zd MB... ", size/(1024*1024)); fflush(stdout); in madvise_test() 159 printf("%p (%s)\n", addr2, addr2==(void*)-1 ? "failed" : "OK"); fflush(stdout); in madvise_test() 161 printf("touching %p...\n", addr2); fflush(stdout); in madvise_test() 164 printf("unmap %p ...\n", addr2); fflush(stdout); in madvise_test() [all …]
|
D | thumb.cpp | 10 fflush(stdout); in trace_function()
|
/system/bt/tools/scripts/ |
D | btsnooz.py | 81 sys.stdout.write('btsnoop\x00\x00\x00\x00\x01\x00\x00\x03\xea') 108 sys.stdout.write(struct.pack('>II', length, length)) 109 sys.stdout.write(struct.pack('>II', type_to_direction(type), 0)) 110 …sys.stdout.write(struct.pack('>II', (first_timestamp_ms >> 32), (first_timestamp_ms & 0xFFFFFFFF))) 111 sys.stdout.write(type_to_hci(type)) 112 sys.stdout.write(decompressed[offset : offset + length - 1]) 135 sys.stdout.write(struct.pack('>II', packet_length, length)) 136 sys.stdout.write(struct.pack('>II', type_to_direction(snooz_type), 0)) 137 …sys.stdout.write(struct.pack('>II', (first_timestamp_ms >> 32), (first_timestamp_ms & 0xFFFFFFFF))) 138 sys.stdout.write(type_to_hci(snooz_type)) [all …]
|
/system/tools/aidl/tests/ |
D | integration-test.py | 33 def __init__(self, exit_status, stdout, stderr): argument 41 self.stdout = stdout 49 for line in self.stdout.splitlines(): 100 return result.stdout.strip() 119 stdout=subprocess.PIPE, stderr=subprocess.PIPE, 121 stdout, stderr = p.communicate() 124 return ShellResult(p.returncode, stdout, stderr)
|
/system/update_engine/common/ |
D | subprocess.cc | 125 record->stdout.append(buf, bytes_read); in OnStdoutReady() 155 if (!record->stdout.empty()) { in ChildExitedCallback() 156 LOG(INFO) << "Subprocess output:\n" << record->stdout; in ChildExitedCallback() 159 record->callback.Run(info.si_status, record->stdout); in ChildExitedCallback() 235 string* stdout) { in SynchronousExec() argument 242 stdout); in SynchronousExec() 248 string* stdout) { in SynchronousExecFlags() argument 258 if (stdout) { in SynchronousExecFlags() 259 stdout->clear(); in SynchronousExecFlags() 272 if (stdout) in SynchronousExecFlags() [all …]
|
D | subprocess.h | 93 std::string* stdout); 97 std::string* stdout); 126 std::string stdout; member
|
D | subprocess_unittest.cc | 205 string stdout; in TEST_F() local 206 ASSERT_TRUE(Subprocess::SynchronousExec(cmd, &rc, &stdout)); in TEST_F() 208 EXPECT_EQ("stdout-herestderr-there", stdout); in TEST_F()
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | util.c | 451 fputs(line->file, stdout); in printline() 477 stdout); in printline() 479 fprintf(stdout, "\33[%sm\33[K", color); in printline() 483 stdout); in printline() 485 fprintf(stdout, "\33[m\33[K"); in printline() 492 fwrite(line->dat + a, line->len - a, 1, stdout); in printline() 496 fwrite(line->dat, line->len, 1, stdout); in printline()
|
/system/extras/systrace_analysis/ |
D | analyze_trace.py | 52 js_args=js_args_arg, stdout=sys.stdout, stdin=sys.stdin);
|
/system/security/keystore/ |
D | keystore_cli.cpp | 142 fwrite(&data[0], data.size(), 1, stdout); \ 143 fflush(stdout); \ 186 fwrite(&data[0], data.size(), 1, stdout); \ 187 fflush(stdout); \
|
/system/nvram/client/ |
D | nvram_client.c | 173 fputs(",", stdout); in HandleGetSpaceList() 177 fputs("\n", stdout); in HandleGetSpaceList() 218 fputs(",", stdout); in HandleGetSpaceControls() 222 fputs(name, stdout); in HandleGetSpaceControls() 227 fputs("", stdout); in HandleGetSpaceControls() 325 fwrite(buffer, sizeof(uint8_t), size, stdout); in HandleReadSpace() 326 fputs("\n", stdout); in HandleReadSpace()
|
/system/extras/bootctl/ |
D | bootctl.cpp | 56 fprintf(stdout, in do_hal_info() 66 fprintf(stdout, "%u\n", numSlots); in do_get_number_slots() 73 fprintf(stdout, "%u\n", curSlot); in do_get_current_slot() 146 fprintf(stdout, "%s\n", suffix.c_str()); in do_get_suffix()
|
/system/extras/procmem/ |
D | procmem.c | 174 fflush(stdout); in main() 185 fflush(stdout); in main() 199 fflush(stdout); in main() 205 fflush(stdout); in main()
|
/system/extras/pagecache/ |
D | pagecache.py | 276 sys.stdout.write('Done.\n') 285 def read_and_parse_trace_data_live(stdout, stderr, pagecache_stats, app_name): argument 290 stdout_thread = FileReaderThread(stdout, stdout_queue, 346 stdout.close() 395 atrace = subprocess.Popen(trace_cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, 401 read_and_parse_trace_data_live(atrace.stdout, atrace.stderr, pagecache_stats, options.app_name)
|
D | dumpcache.c | 160 fprintf(stdout, "%s: %zu cached pages (%.2f MB, %zu%% of total file size.)\n", info->name, in main() 166 fprintf(stdout, "TOTAL CACHED: %zu pages (%f MB)\n", g_total_cached, in main()
|
/system/libufdt/utils/src/ |
D | mkdtimg.c | 101 output_all_usage(stdout, prog_name); in handle_command_help() 111 info->usage(stdout, prog_name); in handle_command_help()
|
/system/sepolicy/tools/ |
D | post_process_mac_perms | 45 p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, 89 sys.stdout.write(line.replace('</policy>', mac_perms_string))
|
/system/extras/tests/cpueater/ |
D | cpueater.c | 57 fflush(stdout); in main()
|
/system/update_engine/scripts/ |
D | paycheck.py | 185 report_file = sys.stdout 209 payload.TraceBlock(options.root_block, options.skip, sys.stdout, False) 211 payload.TraceBlock(options.kern_block, options.skip, sys.stdout, True)
|
/system/sepolicy/public/ |
D | preopt2cachename.te | 8 # Allow write to stdout.
|