2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
LogReceiver
public
class
LogReceiver
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.log.LogReceiver
|
요약
공개 생성자
LogReceiver
public LogReceiver (ITestDevice device,
String cmd,
String desc)
매개변수 |
device |
ITestDevice |
cmd |
String |
desc |
String |
LogReceiver
public LogReceiver (ITestDevice device,
String cmd,
String desc,
long logcat_size,
int delay_secs)
매개변수 |
device |
ITestDevice |
cmd |
String |
desc |
String |
logcat_size |
long |
delay_secs |
int |
공개 메서드
getDescriptor
public String getDescriptor ()
start
public void start ()
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# LogReceiver\n===========\n\n\n`\npublic\n\n\nclass\nLogReceiver\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|--------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.log.LogReceiver |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[LogReceiver](../../../../../../reference/tradefed/com/android/tradefed/log/LogReceiver.html#LogReceiver(com.android.tradefed.device.ITestDevice,%20java.lang.String,%20java.lang.String))`(`[ITestDevice](../../../../../../reference/tradefed/com/android/tradefed/device/ITestDevice.html)` device, String cmd, String desc) ` |\n| ` `[LogReceiver](../../../../../../reference/tradefed/com/android/tradefed/log/LogReceiver.html#LogReceiver(com.android.tradefed.device.ITestDevice,%20java.lang.String,%20java.lang.String,%20long,%20int))`(`[ITestDevice](../../../../../../reference/tradefed/com/android/tradefed/device/ITestDevice.html)` device, String cmd, String desc, long logcat_size, int delay_secs) ` |\n\n| ### Public methods ||\n|-----------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[clear](../../../../../../reference/tradefed/com/android/tradefed/log/LogReceiver.html#clear())`() ` |\n| ` `[InputStreamSource](../../../../../../reference/tradefed/com/android/tradefed/result/InputStreamSource.html) | ` `[getData](../../../../../../reference/tradefed/com/android/tradefed/log/LogReceiver.html#getData())`() ` |\n| ` String` | ` `[getDescriptor](../../../../../../reference/tradefed/com/android/tradefed/log/LogReceiver.html#getDescriptor())`() ` |\n| ` `[InputStreamSource](../../../../../../reference/tradefed/com/android/tradefed/result/InputStreamSource.html) | ` `[getLogcatData](../../../../../../reference/tradefed/com/android/tradefed/log/LogReceiver.html#getLogcatData(int))`(int maxBytes) ` |\n| ` void` | ` `[postLog](../../../../../../reference/tradefed/com/android/tradefed/log/LogReceiver.html#postLog(com.android.tradefed.result.ITestInvocationListener))`(`[ITestInvocationListener](../../../../../../reference/tradefed/com/android/tradefed/result/ITestInvocationListener.html)` listener) ` |\n| ` void` | ` `[start](../../../../../../reference/tradefed/com/android/tradefed/log/LogReceiver.html#start())`() ` |\n| ` void` | ` `[stop](../../../../../../reference/tradefed/com/android/tradefed/log/LogReceiver.html#stop())`() ` |\n\nPublic constructors\n-------------------\n\n### LogReceiver\n\n```\npublic LogReceiver (ITestDevice device, \n String cmd, \n String desc)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|----------------------|\n| `device` | `ITestDevice` \u003cbr /\u003e |\n| `cmd` | `String` \u003cbr /\u003e |\n| `desc` | `String` \u003cbr /\u003e |\n\n### LogReceiver\n\n```\npublic LogReceiver (ITestDevice device, \n String cmd, \n String desc, \n long logcat_size, \n int delay_secs)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|----------------------|\n| `device` | `ITestDevice` \u003cbr /\u003e |\n| `cmd` | `String` \u003cbr /\u003e |\n| `desc` | `String` \u003cbr /\u003e |\n| `logcat_size` | `long` \u003cbr /\u003e |\n| `delay_secs` | `int` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### clear\n\n```\npublic void clear ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### getData\n\n```\npublic InputStreamSource getData ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------------------------------------------------------------------------------------------------------|--------|\n| [InputStreamSource](../../../../../../reference/tradefed/com/android/tradefed/result/InputStreamSource.html) | \u003cbr /\u003e |\n\n### getDescriptor\n\n```\npublic String getDescriptor ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getLogcatData\n\n```\npublic InputStreamSource getLogcatData (int maxBytes)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|--------------|\n| `maxBytes` | `int` \u003cbr /\u003e |\n\n| Returns ||\n|--------------------------------------------------------------------------------------------------------------|--------|\n| [InputStreamSource](../../../../../../reference/tradefed/com/android/tradefed/result/InputStreamSource.html) | \u003cbr /\u003e |\n\n### postLog\n\n```\npublic void postLog (ITestInvocationListener listener)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|----------------------------------|\n| `listener` | `ITestInvocationListener` \u003cbr /\u003e |\n\n### start\n\n```\npublic void start ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### stop\n\n```\npublic void stop ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]