2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
ILogcatReceiver
public
interface
ILogcatReceiver
com.android.tradefed.device.ILogcatReceiver
|
기기의 logcat 출력을 InputStreamSource
로 제공하는 클래스입니다.
요약
공개 메서드
지우기
public abstract void clear ()
getLogcatData
public InputStreamSource getLogcatData (int maxBytes,
int offset)
오프셋을 사용하여 현재 logcat 버퍼를 반환합니다.
매개변수 |
maxBytes |
int : 반환된 버퍼의 최대 크기입니다. |
offset |
int : 전체 버퍼의 오프셋입니다. |
start
public abstract void start ()
경유
public abstract void stop ()
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 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,["# ILogcatReceiver\n===============\n\n\n`\npublic\n\n\ninterface\nILogcatReceiver\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------|\n| com.android.tradefed.device.ILogcatReceiver |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [LogcatReceiver](../../../../../../reference/tradefed/com/android/tradefed/device/LogcatReceiver.html) |--------------------------------------------------------------------------------------------------------|-------------------------------------------| | [LogcatReceiver](../../../../../../reference/tradefed/com/android/tradefed/device/LogcatReceiver.html) | Class that collects logcat in background. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA class that provides the output of a device's logcat as an [InputStreamSource](../../../../../../reference/tradefed/com/android/tradefed/result/InputStreamSource.html).\n\nSummary\n-------\n\n| ### Public methods ||\n|--------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[clear](../../../../../../reference/tradefed/com/android/tradefed/device/ILogcatReceiver.html#clear())`() ` |\n| ` default `[InputStreamSource](../../../../../../reference/tradefed/com/android/tradefed/result/InputStreamSource.html) | ` `[getLogcatData](../../../../../../reference/tradefed/com/android/tradefed/device/ILogcatReceiver.html#getLogcatData(int,%20int))`(int maxBytes, int offset) ` Returns the current logcat buffer given an offset. |\n| ` abstract `[InputStreamSource](../../../../../../reference/tradefed/com/android/tradefed/result/InputStreamSource.html) | ` `[getLogcatData](../../../../../../reference/tradefed/com/android/tradefed/device/ILogcatReceiver.html#getLogcatData(int))`(int maxBytes) ` |\n| ` abstract `[InputStreamSource](../../../../../../reference/tradefed/com/android/tradefed/result/InputStreamSource.html) | ` `[getLogcatData](../../../../../../reference/tradefed/com/android/tradefed/device/ILogcatReceiver.html#getLogcatData())`() ` |\n| ` abstract void` | ` `[start](../../../../../../reference/tradefed/com/android/tradefed/device/ILogcatReceiver.html#start())`() ` |\n| ` abstract void` | ` `[stop](../../../../../../reference/tradefed/com/android/tradefed/device/ILogcatReceiver.html#stop())`() ` |\n\nPublic methods\n--------------\n\n### clear\n\n```\npublic abstract void clear ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### getLogcatData\n\n```\npublic InputStreamSource getLogcatData (int maxBytes, \n int offset)\n```\n\nReturns the current logcat buffer given an offset.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|---------------------------------------------------|\n| `maxBytes` | `int`: The max size of the returned buffer \u003cbr /\u003e |\n| `offset` | `int`: The offset of the full buffer. \u003cbr /\u003e |\n\n| Returns ||\n|--------------------------------------------------------------------------------------------------------------|--------------------------------------------------|\n| [InputStreamSource](../../../../../../reference/tradefed/com/android/tradefed/result/InputStreamSource.html) | The logcat buffer starting at the offset. \u003cbr /\u003e |\n\n### getLogcatData\n\n```\npublic abstract 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### getLogcatData\n\n```\npublic abstract InputStreamSource getLogcatData ()\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### start\n\n```\npublic abstract void start ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### stop\n\n```\npublic abstract void stop ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]