SimplePerfUtil
public
class
SimplePerfUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.SimplePerfUtil |
आसान निर्देश भेजने और नतीजे इकट्ठा करने के लिए यूटिलिटी क्लास
इन्हें भी देखें:
खास जानकारी
सार्वजनिक तरीके | |
---|---|
SimplePerfResult
|
executeCommand(String command)
दिए गए adb शेल कमांड को, simpleperf के साथ रैप करके चलाता है Simpleperf का नतीजा पार्स करके, कॉल करने वाले को भेजा जाएगा |
void
|
executeCommand(String command, IShellOutputReceiver receiver, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)
दिए गए adb शेल कमांड को, simpleperf के साथ रैप करके चलाता है कॉलर की ज़िम्मेदारी है कि वह रिसीवर की मदद से, simpleperf के नतीजे को पार्स करे |
void
|
executeCommand(String command, IShellOutputReceiver receiver)
दिए गए adb शेल कमांड को, simpleperf के साथ रैप करके चलाता है कॉलर की ज़िम्मेदारी है कि वह रिसीवर की मदद से, simpleperf के नतीजे को पार्स करे |
|
getArgumentList()
simpleperf कमांड के लिए आर्ग्युमेंट पाना |
static
SimplePerfUtil
|
newInstance(ITestDevice device, SimplePerfUtil.SimplePerfType type)
SimplePerfUtil का कंस्ट्रक्टर इंस्टेंस को शुरू करते समय, कॉलर को डिवाइस और simpleperf टाइप तय करना होगा |
void
|
setArgumentList(
simpleperf कमांड पर आर्ग्युमेंट सेट करना |
सुरक्षित तरीके | |
---|---|
String
|
commandStringPreparer(String command)
|
सार्वजनिक तरीके
executeCommand
public SimplePerfResult executeCommand (String command)
दिए गए adb शेल कमांड को, simpleperf के साथ रैप करके चलाता है
Simpleperf का नतीजा पार्स करके, कॉल करने वाले को भेजा जाएगा
पैरामीटर | |
---|---|
command |
String : डिवाइस पर चलाने के लिए निर्देश |
रिटर्न | |
---|---|
SimplePerfResult |
SimplePerfResult ऑब्जेक्ट में नतीजे की पूरी जानकारी होती है |
थ्रो | |
---|---|
DeviceNotAvailableException |
अगर डिवाइस से कनेक्ट नहीं हो पा रहा है और उसे कनेक्ट नहीं किया जा सकता |
executeCommand
public void executeCommand (String command, IShellOutputReceiver receiver, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)
दिए गए adb शेल कमांड को, simpleperf के साथ रैप करके चलाता है
कॉलर की ज़िम्मेदारी है कि वह रिसीवर की मदद से, simpleperf के नतीजे को पार्स करे
पैरामीटर | |
---|---|
command |
String : डिवाइस पर चलाने के लिए निर्देश |
receiver |
IShellOutputReceiver : IShellOutputReceiver ऑब्जेक्ट, जिस पर शेल आउटपुट को डायरेक्ट करना है |
maxTimeToOutputShellResponse |
long : वह ज़्यादा से ज़्यादा समय जिसके दौरान कमांड को कोई जवाब नहीं देना है. इसकी यूनिट timeUnit में बताई गई है |
timeUnit |
TimeUnit : maxTimeToOutputShellResponse के लिए timeUnit की इकाई, ERROR(/TimeUnit) देखें |
retryAttempts |
int : किसी अपवाद की वजह से, कमांड पूरा न होने पर, उसे फिर से चलाने की ज़्यादा से ज़्यादा संख्या. अगर retryAttempts को कई बार करने के बाद भी कोई जवाब नहीं मिलता है, तो DeviceNotResponsiveException का गड़बड़ी का कोड दिखेगा. |
थ्रो | |
---|---|
DeviceNotAvailableException |
अगर डिवाइस से कनेक्ट नहीं हो पा रहा है और उसे कनेक्ट नहीं किया जा सकता |
executeCommand
public void executeCommand (String command, IShellOutputReceiver receiver)
दिए गए adb शेल कमांड को, simpleperf के साथ रैप करके चलाता है
कॉलर की ज़िम्मेदारी है कि वह रिसीवर की मदद से, simpleperf के नतीजे को पार्स करे
पैरामीटर | |
---|---|
command |
String : डिवाइस पर चलाने के लिए निर्देश |
receiver |
IShellOutputReceiver : IShellOutputReceiver ऑब्जेक्ट, जिस पर शेल आउटपुट को डायरेक्ट करना है |
थ्रो | |
---|---|
DeviceNotAvailableException |
अगर डिवाइस से कनेक्ट नहीं हो पा रहा है और उसे कनेक्ट नहीं किया जा सकता |
getArgumentList
publicgetArgumentList ()
simpleperf कमांड के लिए आर्ग्युमेंट पाना
रिटर्न | |
---|---|
|
सब-कमांड और आर्ग्युमेंट की सूची (इसमें कोई वैल्यू नहीं हो सकती) |
newInstance
public static SimplePerfUtil newInstance (ITestDevice device, SimplePerfUtil.SimplePerfType type)
SimplePerfUtil का कंस्ट्रक्टर
इंस्टेंस को शुरू करते समय, कॉलर को डिवाइस और simpleperf टाइप तय करना होगा
पैरामीटर | |
---|---|
device |
ITestDevice : ITestDevice टेस्ट डिवाइस |
type |
SimplePerfUtil.SimplePerfType : SimplePerfType से पता चलता है कि simpleperf का कौनसा मोड |
रिटर्न | |
---|---|
SimplePerfUtil |
हाल ही में बनाया गया SimplePerfUtil इंस्टेंस |
setArgumentList
public void setArgumentList (arguList)
simpleperf कमांड पर आर्ग्युमेंट सेट करना
पैरामीटर | |
---|---|
arguList |
: सब-कमांड और आर्ग्युमेंट की सूची |
सुरक्षित तरीके
commandStringPreparer
protected String commandStringPreparer (String command)
पैरामीटर | |
---|---|
command |
String |
रिटर्न | |
---|---|
String |