Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 23 of 23) sorted by relevance

/cts/tests/tests/util/src/android/util/cts/
DPrintWriterPrinterTest.java62 PrintWriter pw = new PrintWriter(mFile); in testConstructor() local
63 new PrintWriterPrinter(pw); in testConstructor()
69 PrintWriter pw = new PrintWriter(mFile); in testPrintln() local
70 PrintWriterPrinter printWriterPrinter = new PrintWriterPrinter(pw); in testPrintln()
72 pw.flush(); in testPrintln()
73 pw.close(); in testPrintln()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCtsContentCaptureService.java494 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { in dump() argument
495 super.dump(fd, pw, args); in dump()
497 pw.print("sServiceWatcher: "); pw.println(getServiceWatcher()); in dump()
498 pw.print("sExceptions: "); pw.println(sExceptions); in dump()
499 pw.print("sIdCounter: "); pw.println(sIdCounter); in dump()
500 pw.print("mId: "); pw.println(mId); in dump()
501 pw.print("mConnectedLatch: "); pw.println(mConnectedLatch); in dump()
502 pw.print("mDisconnectedLatch: "); pw.println(mDisconnectedLatch); in dump()
503 pw.print("mAllSessions: "); pw.println(mAllSessions); in dump()
504 pw.print("mOpenSessions: "); pw.println(mOpenSessions); in dump()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DInstrumentedAutoFillService.java319 try (StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw)) { in dumpSelf()
320 dump(null, pw, null); in dumpSelf()
321 pw.flush(); in dumpSelf()
331 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { in dump() argument
332 pw.print("sConnected: "); pw.println(sConnected); in dump()
333 pw.print("mConnected: "); pw.println(mConnected); in dump()
334 pw.print("sInstance: "); pw.println(sInstance); in dump()
335 pw.println("sReplier: "); sReplier.dump(pw); in dump()
816 private void dump(PrintWriter pw) { in dump() argument
817 pw.print("mResponses: "); pw.println(mResponses); in dump()
[all …]
/cts/libs/input/src/com/android/cts/input/
DFailOnTestThreadRule.kt29 val pw = PrintWriter(sw) in <lambda>() constant
30 pw.write(e.message ?: "<no message>") in <lambda>()
32 e.printStackTrace(pw) in <lambda>()
33 pw.flush() in <lambda>()
/cts/hostsidetests/jdwpsecurity/src/android/jdwpsecurity/cts/
DJdwpSecurityHostTest.java174 PrintWriter pw = null; in createScriptTempFile() local
176 pw = new PrintWriter(tempFile); in createScriptTempFile()
181 pw.println(String.format("export ANDROID_DATA=%s", DEVICE_LOCATION)); in createScriptTempFile()
182 pw.println(String.format("export CLASSPATH=%s", getDeviceJarFilepath())); in createScriptTempFile()
183 pw.println(String.format("exec app_process /system/bin %s \"$@\"", in createScriptTempFile()
186 if (pw != null) { in createScriptTempFile()
187 pw.close(); in createScriptTempFile()
/cts/tests/process/src/android/os/cts/process/
DProcessTest2.java293 LogPrinter pw = new LogPrinter(Log.VERBOSE, Consts.TAG); in dumpApplicationInfo() local
294 dumpApplicationInfo(pw, PACKAGE_HELPER1); in dumpApplicationInfo()
295 dumpApplicationInfo(pw, Consts.PACKAGE_HELPER2); in dumpApplicationInfo()
296 dumpApplicationInfo(pw, Consts.PACKAGE_HELPER3); in dumpApplicationInfo()
297 dumpApplicationInfo(pw, Consts.PACKAGE_HELPER4); in dumpApplicationInfo()
300 private void dumpApplicationInfo(Printer pw, String packageName) throws Exception { in dumpApplicationInfo() argument
302 pw.println("Dumping " + packageName); in dumpApplicationInfo()
303 ai.dump(pw, " "); in dumpApplicationInfo()
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/
DProcessBroadcast.java160 PrintWriter pw = new PrintWriter(versionFile); in processUserData() local
161 pw.println(appVersion); in processUserData()
162 pw.println(userHandle); in processUserData()
163 pw.close(); in processUserData()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageItemInfoTest.java145 public void dumpFront(Printer pw, String prefix) { in dumpFront() argument
146 super.dumpFront(pw, prefix); in dumpFront()
149 public void dumpBack(Printer pw, String prefix) { in dumpBack() argument
150 super.dumpBack(pw, prefix); in dumpBack()
DComponentInfoTest.java310 public void dumpBack(Printer pw, String prefix) { in dumpBack() argument
311 super.dumpBack(pw, prefix); in dumpBack()
314 public void dumpFront(Printer pw, String prefix) { in dumpFront() argument
315 super.dumpFront(pw, prefix); in dumpFront()
/cts/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/
DBaseNetworkService.java68 PrintWriter pw = new PrintWriter(sw, false); in writeResult() local
69 where.printStackTrace(pw); in writeResult()
70 pw.flush(); in writeResult()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSafeCleanerRule.java143 try (StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw)) {
148 exception.printStackTrace(pw);
/cts/tests/tests/content/src/android/content/cts/
DMockContentProvider.java425 PrintWriter pw = null; in writeDataToPipe() local
427 pw = new PrintWriter(new OutputStreamWriter(fout, "UTF-8")); in writeDataToPipe()
428 pw.print(args); in writeDataToPipe()
432 if (pw != null) { in writeDataToPipe()
433 pw.flush(); in writeDataToPipe()
/cts/tests/tests/nfc/src/android/nfc/cts/
DNfcFServiceInfoTest.java151 PrintWriter pw = new PrintWriter(new ByteArrayOutputStream()); in test_Dump() local
152 nfcFServiceInfo.dump(pfd, pw, new String[0]); in test_Dump()
DApduServiceInfoTest.java216 PrintWriter pw = new PrintWriter(new ByteArrayOutputStream()); in test_Dump() local
217 apduServiceInfo.dump(pfd, pw, new String[0]); in test_Dump()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_DownloadsTest.java121 try (PrintWriter pw = new PrintWriter(downloadFile)) { in testScannedDownload() argument
122 pw.print(fileContents); in testScannedDownload()
196 try (PrintWriter pw = new PrintWriter(session.openOutputStream())) { in testInsertDownload() argument
197 pw.print(content); in testInsertDownload()
/cts/tests/tests/binder_ndk/src/android/binder/cts/
DTestImpl.java42 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { in dump() argument
44 pw.print(arg); in dump()
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/
DDalvikTestRunner.java343 try (PrintWriter pw = new PrintWriter(sw)) { in stringify() argument
344 error.printStackTrace(pw); in stringify()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlViewHostTests.java1357 PopupWindow pw = new PopupWindow(); in testPopupWindowReceivesInput() local
1358 mPopupWindow = pw; in testPopupWindowReceivesInput()
1363 pw.setWidth(DEFAULT_SURFACE_VIEW_WIDTH); in testPopupWindowReceivesInput()
1364 pw.setHeight(DEFAULT_SURFACE_VIEW_HEIGHT); in testPopupWindowReceivesInput()
1365 pw.setContentView(popupButton); in testPopupWindowReceivesInput()
1366 pw.showAsDropDown(mEmbeddedView); in testPopupWindowReceivesInput()
/cts/tests/tests/os/src/android/os/cts/
DHandlerTest.java132 MockPrinter pw = new MockPrinter(); in testDump() local
133 mHandler.dump(pw, prefix); in testDump()
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/
DFgsTimeoutMessage.java125 PrintWriter pw = new PrintWriter(sw);) { in setException()
126 e.printStackTrace(pw); in setException()
/cts/tests/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/
DShortFgsMessage.java137 PrintWriter pw = new PrintWriter(sw);) { in setException()
138 e.printStackTrace(pw); in setException()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java982 try (PrintWriter pw = new PrintWriter(session.openOutputStream())) { in createDownload() argument
983 pw.print(content); in createDownload()
/cts/tools/vm-tests-tf/lib/
Djunit.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/awtui/ junit/ ...