हमारा सुझाव है कि 27 मार्च, 2025 से 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 |
सार्वजनिक तरीके
मिटाएं
public void clear ()
getDescriptor
public String getDescriptor ()
शुरू करें
public void start ()
बंद करो
public void stop ()
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, 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"]]