Home
last modified time | relevance | path

Searched refs:receiver (Results 1 – 25 of 35) sorted by relevance

12

/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DNativeLeakCollector.java87 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in tearDown() local
89 writeToReceiver(String.format(OUTPUT_HEADER, allCommand), receiver); in tearDown() local
90 device.executeShellCommand(allCommand, receiver, mDumpTimeout, TimeUnit.MILLISECONDS, 1); in tearDown()
95 writeToReceiver(String.format(OUTPUT_HEADER, procCommand), receiver); in tearDown() local
96 device.executeShellCommand(procCommand, receiver, mAdditionalDumpTimeout, in tearDown()
100 if (receiver.getOutput() != null && !receiver.getOutput().isEmpty()) { in tearDown()
103 new ByteArrayInputStreamSource(receiver.getOutput().getBytes()); in tearDown()
107 CLog.w("No test logger available, printing output here:\n%s", receiver.getOutput()); in tearDown()
112 private void writeToReceiver (String msg, CollectingOutputReceiver receiver) { in writeToReceiver() argument
115 receiver.addOutput(msgBytes, 0, byteCount); in writeToReceiver()
DRunCommandTargetPreparer.java83 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in setUp() local
85 new BackgroundDeviceAction(bgCmd, bgCmd, device, receiver, 0); in setUp()
87 mBgDeviceActionsMap.put(mBgDeviceAction, receiver); in setUp()
96 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in setUp() local
98 cmd, receiver, mRunCmdTimeout, TimeUnit.MILLISECONDS, 0); in setUp()
99 CLog.v("cmd: '%s', returned:\n%s", cmd, receiver.getOutput()); in setUp()
DPushFileInvoker.java73 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in setUp() local
74 device.executeShellCommand(devicePath, receiver, in setUp()
76 CLog.d("Executed perf setup script\noutput:\n%s\nEND", receiver.getOutput()); in setUp()
/tools/test/connectivity/acts/tests/google/coex/stress_tests/
DCoexBtMultiProfileStressTest.py33 self.receiver = self.relay_devices[1]
40 self.receiver.setup()
41 self.receiver.power_on()
42 self.receiver.pairing_mode()
48 self.receiver.clean_up()
65 self.pri_ad, self.receiver.mac_address,
79 self.pri_ad, self.receiver.mac_address,
82 self.receiver.mac_address))
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DSubprocessResultsReporterTest.java108 SubprocessTestResultsParser receiver = in testPrintEvent_printToSocket() local
113 Integer.toString(receiver.getSocketServerPort())); in testPrintEvent_printToSocket()
125 receiver.joinReceiver(500); in testPrintEvent_printToSocket()
128 receiver.close(); in testPrintEvent_printToSocket()
137 try (SubprocessTestResultsParser receiver = in testTestLog() argument
141 "subprocess-report-port", Integer.toString(receiver.getSocketServerPort())); in testTestLog()
151 receiver.joinReceiver(500); in testTestLog()
170 try (SubprocessTestResultsParser receiver = in testTestLog_disabled() argument
174 "subprocess-report-port", Integer.toString(receiver.getSocketServerPort())); in testTestLog_disabled()
179 receiver.joinReceiver(500); in testTestLog_disabled()
DLegacySubprocessResultsReporterTest.java65 SubprocessTestResultsParser receiver = in testPrintEvent_printToSocket() local
70 "subprocess-report-port", Integer.toString(receiver.getSocketServerPort())); in testPrintEvent_printToSocket()
82 receiver.joinReceiver(500); in testPrintEvent_printToSocket()
85 receiver.close(); in testPrintEvent_printToSocket()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DMockTestDeviceHelper.java44 IShellOutputReceiver receiver = (IShellOutputReceiver)EasyMock in injectShellResponse()
47 receiver.addOutput(inputData, 0, inputData.length); in injectShellResponse()
48 receiver.flush(); in injectShellResponse()
89 IShellOutputReceiver receiver = (IShellOutputReceiver)EasyMock in injectShellResponse()
92 receiver.addOutput(inputData, 0, inputData.length); in injectShellResponse()
93 receiver.flush(); in injectShellResponse()
DMockDeviceHelper.java44 IShellOutputReceiver receiver = in injectShellResponse()
47 receiver.addOutput(inputData, 0, inputData.length); in injectShellResponse()
48 receiver.flush(); in injectShellResponse()
DTestDeviceTest.java1227 InstallReceiver receiver = new InstallReceiver(); in testInstallPackages()
1228 receiver.processNewLines(new String[] {"Success"}); in testInstallPackages()
1229 return receiver; in testInstallPackages()
1342 InstallReceiver receiver = new InstallReceiver(); in testInstallPackage_default_runtimePermissionNotSupported()
1343 receiver.processNewLines(new String[] {"Success"}); in testInstallPackage_default_runtimePermissionNotSupported()
1344 return receiver; in testInstallPackage_default_runtimePermissionNotSupported()
1370 InstallReceiver receiver = new InstallReceiver(); in testInstallPackage_default_runtimePermissionSupported()
1371 receiver.processNewLines(new String[] {"Success"}); in testInstallPackage_default_runtimePermissionSupported()
1372 return receiver; in testInstallPackage_default_runtimePermissionSupported()
1400 InstallReceiver receiver = new InstallReceiver(); in testinstallPackageForUser_default_runtimePermissionNotSupported()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DStubDevice.java79 public void executeShellCommand(String command, IShellOutputReceiver receiver) in executeShellCommand() argument
91 public void executeShellCommand(String command, IShellOutputReceiver receiver, in executeShellCommand() argument
238 InstallReceiver receiver, in installPackage() argument
249 InstallReceiver receiver, in installPackage() argument
279 String remoteFilePath, boolean reinstall, InstallReceiver receiver, String... extraArgs) in installRemotePackage() argument
289 InstallReceiver receiver, in installRemotePackage() argument
360 public void runEventLogService(LogReceiver receiver) throws TimeoutException, in runEventLogService() argument
369 public void runLogService(String logname, LogReceiver receiver) throws TimeoutException, in runLogService() argument
493 public void executeShellCommand(String command, IShellOutputReceiver receiver, in executeShellCommand() argument
504 IShellOutputReceiver receiver, in executeShellCommand() argument
[all …]
DBatteryTemperature.java74 DumpsysBatteryTemperatureReceiver receiver = new DumpsysBatteryTemperatureReceiver(); in getBatteryTemperature() local
77 device.executeShellCommand("dumpsys battery", receiver); in getBatteryTemperature()
85 return receiver.getDeviceBatteryTemp(); in getBatteryTemperature()
DDeviceStateMonitor.java50 final CollectingOutputReceiver receiver = createOutputReceiver(); in waitForPmResponsive() local
53 getIDevice().executeShellCommand(cmd, receiver, MAX_OP_TIME, TimeUnit.MILLISECONDS); in waitForPmResponsive()
54 String output = receiver.getOutput(); in waitForPmResponsive()
DNativeDeviceStateMonitor.java167 final CollectingOutputReceiver receiver = createOutputReceiver(); in waitForDeviceShell() local
170 getIDevice().executeShellCommand(cmd, receiver, MAX_OP_TIME, TimeUnit.MILLISECONDS); in waitForDeviceShell()
171 String output = receiver.getOutput(); in waitForDeviceShell()
282 final CollectingOutputReceiver receiver = createOutputReceiver(); in waitForStoreMount() local
299 getIDevice().executeShellCommand(checkCmd, receiver, in waitForStoreMount()
305 String output = receiver.getOutput(); in waitForStoreMount()
343 CollectingOutputReceiver receiver = createOutputReceiver(); in getMountPoint() local
345 getIDevice().executeShellCommand("echo $" + mountName, receiver); in getMountPoint()
346 return receiver.getOutput().trim(); in getMountPoint()
DManagedTestDeviceFactory.java106 CollectingOutputReceiver receiver = createOutputReceiver(); in checkFrameworkSupport() local
114 idevice.executeShellCommand(cmd, receiver, timeout, TimeUnit.MILLISECONDS); in checkFrameworkSupport()
115 String output = receiver.getOutput().trim(); in checkFrameworkSupport()
123 + "output: %s", receiver.getOutput()); in checkFrameworkSupport()
DTestDevice.java135 InstallReceiver receiver = createInstallReceiver(); in internalInstallPackage()
140 receiver, in internalInstallPackage()
145 if (receiver.isSuccessfullyCompleted()) { in internalInstallPackage()
147 } else if (receiver.getErrorMessage() == null) { in internalInstallPackage()
153 response[0] = receiver.getErrorMessage(); in internalInstallPackage()
262 InstallReceiver receiver = createInstallReceiver(); in installPackage()
267 receiver, in installPackage()
272 if (receiver.isSuccessfullyCompleted()) { in installPackage()
274 } else if (receiver.getErrorMessage() == null) { in installPackage()
280 response[0] = receiver.getErrorMessage(); in installPackage()
[all …]
DBackgroundDeviceAction.java62 IShellOutputReceiver receiver, int startDelay) { in BackgroundDeviceAction() argument
67 mReceiver = receiver; in BackgroundDeviceAction()
DNativeDevice.java605 public void executeShellCommand(final String command, final IShellOutputReceiver receiver) in executeShellCommand() argument
611 getIDevice().executeShellCommand(command, receiver, in executeShellCommand()
623 public void executeShellCommand(final String command, final IShellOutputReceiver receiver, in executeShellCommand() argument
630 getIDevice().executeShellCommand(command, receiver, in executeShellCommand()
642 final IShellOutputReceiver receiver, in executeShellCommand() argument
657 receiver, in executeShellCommand()
672 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in executeShellCommand() local
673 executeShellCommand(command, receiver); in executeShellCommand()
674 String output = receiver.getOutput(); in executeShellCommand()
2008 CollectingByteOutputReceiver receiver = new CollectingByteOutputReceiver(); in getLogcatSince() local
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLevelUtility.java35 final CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in extractDeviceHeadsetLevelFromAdbShell() local
38 ADB_SHELL_DUMPSYS_AUDIO, receiver, 300, TimeUnit.MILLISECONDS, 1); in extractDeviceHeadsetLevelFromAdbShell()
39 final String shellOutput = receiver.getOutput(); in extractDeviceHeadsetLevelFromAdbShell()
DAudioJitterTest.java103 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in run() local
104 device.executeShellCommand(JITTER_BINARY_DEVICE_PATH, receiver, in run()
106 String resultStr = receiver.getOutput(); in run()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSimplePerfUtil.java109 public void executeCommand(String command, IShellOutputReceiver receiver) in executeCommand() argument
111 mDevice.executeShellCommand(commandStringPreparer(command), receiver); in executeCommand() local
131 public void executeCommand(String command, IShellOutputReceiver receiver, in executeCommand() argument
134 mDevice.executeShellCommand(commandStringPreparer(command), receiver, in executeCommand() local
DDeviceConcurrentUtil.java118 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in call() local
119 mDevice.executeShellCommand(mCommand, receiver, mTimeout, TimeUnit.MILLISECONDS, 1); in call()
120 String output = receiver.getOutput(); in call()
DBluetoothUtils.java73 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in runBluetoothInstrumentation() local
74 device.executeShellCommand(String.format(BT_INSTR_CMD, command), receiver); in runBluetoothInstrumentation() local
75 String output = receiver.getOutput(); in runBluetoothInstrumentation()
/tools/tradefederation/core/tests/src/com/android/tradefed/proto/
DPlatformProtosFuncTest.java66 CollectingByteOutputReceiver receiver = new CollectingByteOutputReceiver(); in testDumpAndReadBatteryStatsProto() local
67 getDevice().executeShellCommand(CMD_DUMP_BATTERYSTATS, receiver); in testDumpAndReadBatteryStatsProto()
69 byte[] protoBytes = receiver.getOutput(); in testDumpAndReadBatteryStatsProto()
/tools/tradefederation/core/prod-tests/src/com/android/graphics/tests/
DFlatlandTest.java133 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in run() local
135 receiver, SHELL_TIMEOUT, TimeUnit.MILLISECONDS, 2); in run() local
136 String result = receiver.getOutput(); in run()
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
DGeekbenchTest.java117 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in run() local
119 GEEKBENCH_BINARY_DEVICE_PATH, GEEKBENCH_RESULT_DEVICE_PATH), receiver, in run()
121 CLog.v(receiver.getOutput()); in run()

12