/system/core/adb/daemon/ |
D | shell_service_test.cpp | 96 int ReadShellProtocol(int fd, std::string* stdout, std::string* stderr) { in ReadShellProtocol() argument 98 stdout->clear(); in ReadShellProtocol() 105 stdout->append(protocol->data(), protocol->data_length()); in ReadShellProtocol() 181 std::string stdout, stderr; in TEST_F() local 182 EXPECT_EQ(24, ReadShellProtocol(command_fd_, &stdout, &stderr)); in TEST_F() 183 ExpectLinesEqual(stdout, {"foo", "baz"}); in TEST_F() 195 std::string stdout, stderr; in TEST_F() local 196 EXPECT_EQ(50, ReadShellProtocol(command_fd_, &stdout, &stderr)); in TEST_F() 197 ExpectLinesEqual(stdout, {"foo", "bar", "baz"}); in TEST_F() 220 std::string stdout, stderr; in TEST_F() local [all …]
|
/system/bt/tools/bdtool/ |
D | adapter.c | 104 fprintf(stdout, "Bond state changed callback addr:%s state:%s\n", in bond_state_changed() 112 fprintf(stdout, "Device found num_properties:%d\n", num_properties); in device_found() 134 fprintf(stdout, "Discover state %s\n", state_name); in discovery_state_changed() 143 fprintf(stdout, "Device found bdaddr:%s num_properties:%d\n", in remote_device_properties() 173 fprintf(stdout, in ssp_request() 177 fprintf(stdout, "Device found:%s %s\n", in ssp_request() 180 fprintf(stdout, "auto-accepting bond\n"); in ssp_request() 195 if (name) fprintf(stdout, " name:%s\n", name->name); in parse_properties() 202 fprintf(stdout, " addr:%s\n", in parse_properties() 211 fprintf(stdout, " uuid:%zd: ", i); in parse_properties() [all …]
|
D | bdtool.c | 93 fprintf(stdout, "Bringing up bluetooth adapter\n"); in main() 101 fprintf(stdout, "BT adapter is up\n"); in main() 103 fprintf(stdout, "Starting to start discovery\n"); in main() 105 fprintf(stdout, "Started discovery for %d seconds\n", timeout_in_sec); in main() 109 fprintf(stdout, "Starting to cancel discovery\n"); in main() 111 fprintf(stdout, "Cancelled discovery after %d seconds\n", timeout_in_sec); in main() 116 fprintf(stdout, "BT adapter is up\n"); in main() 122 fprintf(stdout, "Set rc:%d device as discoverable for %d seconds\n", rc, in main() 139 fprintf(stdout, "BT adapter is up\n"); in main() 143 fprintf(stdout, "Started bonding:%d for %d seconds\n", rc, timeout_in_sec); in main() [all …]
|
/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 …]
|
D | dump_metrics_ascii.py | 100 shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, 132 stdout, stderr = dump_metrics() 133 stdout = stdout.strip() 135 bluetooth_log = get_bluetooth_metrics(stdout, bluetooth_proto_module)
|
/system/update_engine/common/ |
D | subprocess.cc | 126 record->stdout.append(buf, bytes_read); in OnStdoutReady() 156 if (!record->stdout.empty()) { in ChildExitedCallback() 157 LOG(INFO) << "Subprocess output:\n" << record->stdout; in ChildExitedCallback() 160 record->callback.Run(info.si_status, record->stdout); in ChildExitedCallback() 237 string* stdout) { in SynchronousExec() argument 241 cmd, kRedirectStderrToStdout | kSearchPath, return_code, stdout); in SynchronousExec() 247 string* stdout) { in SynchronousExecFlags() argument 257 if (stdout) { in SynchronousExecFlags() 258 stdout->clear(); in SynchronousExecFlags() 271 if (stdout) in SynchronousExecFlags() [all …]
|
D | subprocess.h | 93 std::string* stdout); 97 std::string* stdout); 126 std::string stdout; member
|
/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/chre/build/ |
D | print_current_chre_api_version.c | 21 fprintf(stdout, "DEFAULT_CHRE_API_VERSION_MAJOR = 0x%02x\n", in main() 23 fprintf(stdout, "DEFAULT_CHRE_API_VERSION_MINOR = 0x%02x\n", in main()
|
/system/extras/tests/memeater/ |
D | memeater.c | 63 fflush(stdout); in main() 78 fflush(stdout); in main()
|
/system/extras/systrace_analysis/ |
D | analyze_trace.py | 52 js_args=js_args_arg, stdout=sys.stdout, stdin=sys.stdin);
|
/system/core/adb/client/ |
D | line_printer.cpp | 57 setvbuf(stdout, nullptr, _IONBF, 0); in LinePrinter() 67 fwrite(s.data(), 1, s.size(), stdout); in Out() 119 fflush(stdout); in Print()
|
/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() 486 fprintf(stdout, "\33[m\33[K"); in printline() 493 fwrite(line->dat + a, line->len - a, 1, stdout); in printline() 497 fwrite(line->dat, line->len, 1, stdout); in printline()
|
/system/update_engine/scripts/ |
D | payload_info_unittest.py | 179 stdout = sys.stdout 181 sys.stdout = StringIO.StringIO() 182 yield sys.stdout 184 sys.stdout = stdout
|
/system/security/keystore/ |
D | keystore_cli.cpp | 145 fwrite(&data[0], data.size(), 1, stdout); \ 146 fflush(stdout); \ 187 fwrite(&data[0], data.size(), 1, stdout); \ 188 fflush(stdout); \
|
/system/extras/simpleperf/ |
D | test_util.h | 93 fflush(stdout); in Start() 107 fflush(stdout); in Finish()
|
/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/testing/gtest_extras/ |
D | Test.cpp | 74 fflush(stdout); in PrintGtestFormat() 109 fflush(stdout); in Print()
|
/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/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)
|
/system/extras/tests/cpueater/ |
D | cpueater.c | 57 fflush(stdout); in main()
|
/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/core/adb/ |
D | test_adb.py | 118 stdout=subprocess.PIPE, 182 stdout=subprocess.PIPE, 189 stdout=subprocess.PIPE, 240 stdout=subprocess.PIPE, 247 args=(proc.stdout, stdout_event)) 435 stdout=subprocess.PIPE,
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | preopt2cachename.te | 8 # Allow write to stdout.
|