CtsLaunchControlProvider

public class CtsLaunchControlProvider
extends LaunchControlProvider implements IDiscoverDependencies

java.lang.Object
   ↳ com.google.android.tradefed.build.LaunchControlProvider
     ↳ com.google.android.tradefed.build.CtsLaunchControlProvider


LaunchControlProvider לבניית CTS.

מאחזר ומחלץ קובץ ZIP של CTS משרת בניית Android. ה-CTS שחולץ מיוצג כ-IFolderBuildInfo.

סיכום

שדות

public static final Set<String> CONFIG_ONLY_REGEX

public static final Set<String> JARS_AND_CONFIG_REGEX

‫constructors ציבוריים

CtsLaunchControlProvider()

‫methods ציבוריים

void cleanExtra()
void cleanUp(IBuildInfo info)

מפנים את כל קובצי ה-build הזמניים.

boolean getForceCas()
Set<String> reportTestZipFileFilter()
void setCtsExtra(List<String> ctsExtra)
void setCtsExtraAltPath(File altPath)
void setCtsForcePartialDownloadRegex(Set<String> ctsForcePartialDownloadRegex)
void setCtsPackageName(String ctsZipName)
void setCtsUsePartialDownload(boolean shouldUsePartialDownload)
void setDefaultRollout(boolean defaultRollout)
void setDelayDownloadinSharding(boolean delayDownload)
void setForceDisablePartialDownloadExperiment(boolean forceDisablePartialDownloadExperiment)
void setPartialDownloadDefaultRollout(Set<String> partialDownloadDefaultRollout)
void setPartialDownloadDisallowList(Set<String> partialDownloadDisallowList)
void setPartialDownloadRolloutArtifact(String partialDownloadRolloutArtifact)
void setThrowIfExtraNotFound(boolean shouldThrow)

שיטות מוגנות

IBuildInfo downloadBuildFiles(RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)

מורידים את מפתחות הקבצים הנדרשים כפי שהוגדרו ב-‎--download-build-key מ-remoteBuild, ושומרים אותם ב-IBuildInfo.

RemoteBuildInfo queryForBuild()

מבצעים את שאילתת בקרת ההפעלה, ומנסים שוב ושוב במקרה של שגיאה.

שדות

CONFIG_ONLY_REGEX

public static final Set<String> CONFIG_ONLY_REGEX

JARS_AND_CONFIG_REGEX

public static final Set<String> JARS_AND_CONFIG_REGEX

‫constructors ציבוריים

CtsLaunchControlProvider

public CtsLaunchControlProvider ()

‫methods ציבוריים

cleanExtra

public void cleanExtra ()

cleanUp

public void cleanUp (IBuildInfo info)

מפנים את כל קובצי ה-build הזמניים.

פרמטרים
info IBuildInfo

getForceCas

public boolean getForceCas ()

החזרות
boolean

reportTestZipFileFilter

public Set<String> reportTestZipFileFilter ()

החזרות
Set<String>

setCtsExtra

public void setCtsExtra (List<String> ctsExtra)

פרמטרים
ctsExtra List

setCtsExtraAltPath

public void setCtsExtraAltPath (File altPath)

פרמטרים
altPath File

setCtsForcePartialDownloadRegex

public void setCtsForcePartialDownloadRegex (Set<String> ctsForcePartialDownloadRegex)

פרמטרים
ctsForcePartialDownloadRegex Set

setCtsPackageName

public void setCtsPackageName (String ctsZipName)

פרמטרים
ctsZipName String

setCtsUsePartialDownload

public void setCtsUsePartialDownload (boolean shouldUsePartialDownload)

פרמטרים
shouldUsePartialDownload boolean

setDefaultRollout

public void setDefaultRollout (boolean defaultRollout)

פרמטרים
defaultRollout boolean

setDelayDownloadinSharding

public void setDelayDownloadinSharding (boolean delayDownload)

פרמטרים
delayDownload boolean

setForceDisablePartialDownloadExperiment

public void setForceDisablePartialDownloadExperiment (boolean forceDisablePartialDownloadExperiment)

פרמטרים
forceDisablePartialDownloadExperiment boolean

setPartialDownloadDefaultRollout

public void setPartialDownloadDefaultRollout (Set<String> partialDownloadDefaultRollout)

פרמטרים
partialDownloadDefaultRollout Set

setPartialDownloadDisallowList

public void setPartialDownloadDisallowList (Set<String> partialDownloadDisallowList)

פרמטרים
partialDownloadDisallowList Set

setPartialDownloadRolloutArtifact

public void setPartialDownloadRolloutArtifact (String partialDownloadRolloutArtifact)

פרמטרים
partialDownloadRolloutArtifact String

setThrowIfExtraNotFound

public void setThrowIfExtraNotFound (boolean shouldThrow)

פרמטרים
shouldThrow boolean

שיטות מוגנות

downloadBuildFiles

protected IBuildInfo downloadBuildFiles (RemoteBuildInfo remoteBuild, 
                String testTargetName, 
                String buildName, 
                IFileDownloader downloader)

מורידים את מפתחות הקבצים הנדרשים כפי שהוגדרו ב-‎--download-build-key מ-remoteBuild, ושומרים אותם ב-IBuildInfo.

פרמטרים
remoteBuild RemoteBuildInfo: תגובת השרת של כלי ההפעלה

testTargetName String: שם יעד הבדיקה

buildName String: השם של הגרסה, כפי שהוגדר על ידי בקר ההשקה

downloader IFileDownloader: IFileDownloader שמשמש להורדת קובצי build

החזרות
IBuildInfo IBuildInfo מאוכלס בגרסאות מקומיות של קובצי build

הקפצת הודעות שגיאה (throw)
BuildRetrievalError

queryForBuild

protected RemoteBuildInfo queryForBuild ()

מבצעים את שאילתת בקרת ההפעלה, ומנסים שוב ושוב במקרה של שגיאה.

החזרות
RemoteBuildInfo הערך RemoteBuildInfo שאוחזר מ-Launch Control

הקפצת הודעות שגיאה (throw)
BuildRetrievalError