फ़ीचर फ़्लैग टारगेट प्रिपेयरर

public class FeatureFlagTargetPreparer
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.FeatureFlagTargetPreparer


DeviceConfig को अपडेट करता है (रिमोट सर्विस द्वारा ट्यून किए गए फीचर फ्लैग)।

इसका उपयोग किसी डिवाइस की स्थिति को पुन: उत्पन्न करने के लिए किया जा सकता है (`adb shell device_config list` का उपयोग करके फ़ाइल में सभी ध्वज मानों को डंप करके) या झंडे को सक्षम/अक्षम करने के लिए (ऑल-ऑन/ऑल-ऑफ टेस्टिंग)।

उदाहरण उपयोग:

  • ऑल-ऑन/ऑल-ऑफ परीक्षण के लिए उपयोग करने के लिए, आवश्यक फ़्लैग फ़ाइल निर्दिष्ट करें:
    --flag-file=flag_file_path
  • एक या अधिक फ़्लैग्स को ओवरराइड करने के लिए, उनके मान निर्दिष्ट करें (फ़्लैग फ़ाइलों के साथ जोड़ा जा सकता है):
    --flag-file=flag_file_path --flag-value=namespace/name=value
  • प्रतिवर्तीता परीक्षण के लिए उपयोग करने के लिए, ऑल-ऑन फ़ाइल के बाद ऑल-ऑफ़ फ़ाइल निर्दिष्ट करें, और दो फ़ाइलों के बीच रीबूटिंग सक्षम करें:
    --flag-file=all_on_file_path --flag-file=all_off_file_path --reboot-between-flag-files
           

परीक्षण के दौरान DeviceConfig सिंकिंग को अक्षम करने के लिए DeviceSetup संयोजन में उपयोग किया जाना चाहिए जो इस तैयारीकर्ता द्वारा किए गए परिवर्तनों को अधिलेखित कर सकता है।

सारांश

सार्वजनिक निर्माणकर्ता

FeatureFlagTargetPreparer ()

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

void setUp ( TestInformation testInformation)
void tearDown ( TestInformation testInformation, Throwable e)

सार्वजनिक निर्माणकर्ता

फ़ीचर फ़्लैग टारगेट प्रिपेयरर

public FeatureFlagTargetPreparer ()

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

स्थापित करना

public void setUp (TestInformation testInformation)

पैरामीटर
testInformation TestInformation

फेंकता
BuildError
DeviceNotAvailableException
TargetSetupError

चीथड़े कर दो

public void tearDown (TestInformation testInformation, 
                Throwable e)

पैरामीटर
testInformation TestInformation

e Throwable

फेंकता
DeviceNotAvailableException