DeviceUpdateTargetPreparer

public abstract class DeviceUpdateTargetPreparer
extends DeviceBuildInfoBootStrapper

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.DeviceBuildInfoBootStrapper
       ↳ com.android.tradefed.targetprep.DeviceUpdateTargetPreparer


एक एब्स्ट्रैक्ट ITargetPreparer, जो डिवाइसों को अपडेट करने के सामान्य चरणों को ध्यान में रखता है. इसके लिए, डिवाइस इमेज फ़ाइल को किसी बाहरी सोर्स से लिया जाता है, न कि बिल्ड सेवा से. अपडेट करने का असल तरीका, सबक्लास लागू करने वाले को सौंपा जाता है.

खास जानकारी

पब्लिक कंस्ट्रक्टर

DeviceUpdateTargetPreparer()

सार्वजनिक तरीके

void setUp(TestInformation testInfo)

सुरक्षित तरीके

abstract File getDeviceUpdateImage()

अपडेट करने के लिए इस्तेमाल की जाने वाली डिवाइस इमेज फ़ाइल को दिखाने वाला ERROR(/File) इंस्टेंस उपलब्ध कराता है

abstract void performDeviceUpdate(File deviceUpdateImage, ITestDevice device)

डिवाइस पर डिवाइस इमेज अपडेट करता है

abstract void postUpdateActions(File deviceUpdateImage, ITestDevice device)

डिवाइस अपडेट होने के बाद, अपडेट के बाद सेटअप करने के चरणों को शुरू करने से पहले की जाने वाली कार्रवाइयां.

abstract void preUpdateActions(File deviceUpdateImage, ITestDevice device)

डिवाइस अपडेट होने से पहले की जाने वाली कार्रवाइयां.

पब्लिक कंस्ट्रक्टर

DeviceUpdateTargetPreparer

public DeviceUpdateTargetPreparer ()

सार्वजनिक तरीके

setUp

public void setUp (TestInformation testInfo)

पैरामीटर
testInfo TestInformation

थ्रो
BuildError
DeviceNotAvailableException
TargetSetupError

सुरक्षित तरीके

getDeviceUpdateImage

protected abstract File getDeviceUpdateImage ()

अपडेट करने के लिए इस्तेमाल की जाने वाली डिवाइस इमेज फ़ाइल को दिखाने वाला ERROR(/File) इंस्टेंस उपलब्ध कराता है

रिटर्न
File

performDeviceUpdate

protected abstract void performDeviceUpdate (File deviceUpdateImage, 
                ITestDevice device)

डिवाइस पर डिवाइस इमेज अपडेट करता है

थ्रो
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError

postUpdateActions

protected abstract void postUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

डिवाइस अपडेट होने के बाद, अपडेट के बाद सेटअप करने के चरणों को शुरू करने से पहले की जाने वाली कार्रवाइयां. इस तरीके को फ़्लैशिंग कंसिस्टेंसी कंट्रोल के बाहर से कॉल किया जाएगा.

थ्रो
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError

preUpdateActions

protected abstract void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

डिवाइस अपडेट होने से पहले की जाने वाली कार्रवाइयां. इस तरीके को फ़्लैशिंग कंसिस्टेंसी कंट्रोल के बाहर से कॉल किया जाएगा.

थ्रो
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError