SearchArtifactUtil

public class SearchArtifactUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.SearchArtifactUtil


คลาสยูทิลิตีที่ใช้ค้นหาสิ่งประดิษฐ์ทดสอบได้

สรุป

ฟิลด์

public static SearchArtifactUtil singleton

เครื่องมือสร้างสาธารณะ

SearchArtifactUtil()

เมธอดสาธารณะ

static File findModuleDir(String moduleName, boolean targetFirst)

ค้นหาไดเรกทอรีโมดูลที่ตรงกับชื่อโมดูลที่ระบุ

static File getModuleDirFromConfig(IInvocationContext moduleContext)
static File getModuleDirFromConfig()

แสดงไดเรกทอรีโมดูลหากมี เมื่อเรียกใช้ภายในขอบเขตโมดูล

static File getModuleDirFromConfig(ConfigurationDescriptor descriptor)
static File searchFile(String fileName, boolean targetFirst)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

static File searchFile(String fileName, boolean targetFirst, IAbi abi)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

static File searchFile(String fileName, boolean targetFirst, IAbi abi, List<File> altDirs, AltDirBehavior altDirBehavior, TestInformation testInfo, boolean includeDirectory)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

static File searchFile(String fileName, boolean targetFirst, TestInformation testInfo)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

static File searchFile(String fileName, boolean targetFirst, List<File> altDirs, AltDirBehavior altDirBehavior)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

static File searchFile(String fileName, boolean targetFirst, IAbi abi, List<File> altDirs, AltDirBehavior altDirBehavior, TestInformation testInfo, IBuildInfo buildInfo, boolean includeDirectory)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

static File searchFile(String fileName, boolean targetFirst, IAbi abi, List<File> altDirs, AltDirBehavior altDirBehavior, TestInformation testInfo)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

ทุ่ง

Singleton

public static SearchArtifactUtil singleton

เครื่องมือสร้างสาธารณะ

SearchArtifactUtil

public SearchArtifactUtil ()

เมธอดสาธารณะ

findModuleDir

public static File findModuleDir (String moduleName, 
                boolean targetFirst)

ค้นหาไดเรกทอรีโมดูลที่ตรงกับชื่อโมดูลที่ระบุ

พารามิเตอร์
moduleName String: ชื่อโมดูล

targetFirst boolean: เราจะให้ความสำคัญกับฝั่งเป้าหมายหรือฝั่งโฮสต์สำหรับการค้นหา

การคืนสินค้า
File ไดเรกทอรีโมดูล อาจเป็นค่าว่าง

getModuleDirFromConfig

public static File getModuleDirFromConfig (IInvocationContext moduleContext)

พารามิเตอร์
moduleContext IInvocationContext

การคืนสินค้า
File

getModuleDirFromConfig

public static File getModuleDirFromConfig ()

แสดงไดเรกทอรีโมดูลหากมี เมื่อเรียกใช้ภายในขอบเขตโมดูล

การคืนสินค้า
File

getModuleDirFromConfig

public static File getModuleDirFromConfig (ConfigurationDescriptor descriptor)

พารามิเตอร์
descriptor ConfigurationDescriptor

การคืนสินค้า
File

searchFile

public static File searchFile (String fileName, 
                boolean targetFirst)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

พารามิเตอร์
fileName String: ชื่อไฟล์ที่จะค้นหา

targetFirst boolean: เราจะเลือกไฟล์ฝั่งเป้าหมายหรือไฟล์ฝั่งโฮสต์สำหรับการค้นหา

การคืนสินค้า
File ไฟล์อาร์ติแฟกต์ที่พบหรือ Null หากไม่พบ

searchFile

public static File searchFile (String fileName, 
                boolean targetFirst, 
                IAbi abi)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

พารามิเตอร์
fileName String: ชื่อไฟล์ที่จะค้นหา

targetFirst boolean: เราจะเลือกไฟล์ฝั่งเป้าหมายหรือไฟล์ฝั่งโฮสต์สำหรับการค้นหา

abi IAbi: IAbi เพื่อให้ตรงกับไฟล์

การคืนสินค้า
File ไฟล์อาร์ติแฟกต์ที่พบหรือ Null หากไม่พบ

searchFile

public static File searchFile (String fileName, 
                boolean targetFirst, 
                IAbi abi, 
                List<File> altDirs, 
                AltDirBehavior altDirBehavior, 
                TestInformation testInfo, 
                boolean includeDirectory)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

พารามิเตอร์
fileName String: ชื่อไฟล์ที่จะค้นหา

targetFirst boolean: เราจะเลือกไฟล์ฝั่งเป้าหมายหรือไฟล์ฝั่งโฮสต์สำหรับการค้นหา

abi IAbi: IAbi เพื่อให้ตรงกับไฟล์

altDirs List: เส้นทางการค้นหาอื่นนอกเหนือจากเส้นทางการค้นหาเริ่มต้น

altDirBehavior AltDirBehavior: วิธีใช้เส้นทางการค้นหาสำรองกับเส้นทางเริ่มต้น: เป็น เส้นทางสำรองหรือเป็นการลบล้าง หากไม่ได้ระบุ ระบบจะใช้เส้นทางสำรอง

testInfo TestInformation: TestInformation ของการทดสอบปัจจุบันเมื่อพร้อมใช้งาน

includeDirectory boolean: จะรวมไดเรกทอรีไว้ในผลการค้นหาหรือไม่

การคืนสินค้า
File ไฟล์อาร์ติแฟกต์ที่พบหรือ Null หากไม่พบ

searchFile

public static File searchFile (String fileName, 
                boolean targetFirst, 
                TestInformation testInfo)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

พารามิเตอร์
fileName String: ชื่อไฟล์ที่จะค้นหา

targetFirst boolean: เราจะเลือกไฟล์ฝั่งเป้าหมายหรือไฟล์ฝั่งโฮสต์สำหรับการค้นหา

testInfo TestInformation: TestInformation ของการทดสอบปัจจุบันเมื่อพร้อมใช้งาน

การคืนสินค้า
File ไฟล์อาร์ติแฟกต์ที่พบหรือ Null หากไม่พบ

searchFile

public static File searchFile (String fileName, 
                boolean targetFirst, 
                List<File> altDirs, 
                AltDirBehavior altDirBehavior)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

พารามิเตอร์
fileName String: ชื่อไฟล์ที่จะค้นหา

targetFirst boolean: เราจะเลือกไฟล์ฝั่งเป้าหมายหรือไฟล์ฝั่งโฮสต์สำหรับการค้นหา

altDirs List: เส้นทางการค้นหาอื่นนอกเหนือจากเส้นทางการค้นหาเริ่มต้น

altDirBehavior AltDirBehavior: วิธีใช้เส้นทางการค้นหาสำรองกับเส้นทางเริ่มต้น: เป็น เส้นทางสำรองหรือเป็นการลบล้าง หากไม่ได้ระบุ ระบบจะใช้เส้นทางสำรอง

การคืนสินค้า
File ไฟล์อาร์ติแฟกต์ที่พบหรือ Null หากไม่พบ

searchFile

public static File searchFile (String fileName, 
                boolean targetFirst, 
                IAbi abi, 
                List<File> altDirs, 
                AltDirBehavior altDirBehavior, 
                TestInformation testInfo, 
                IBuildInfo buildInfo, 
                boolean includeDirectory)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

พารามิเตอร์
fileName String: ชื่อไฟล์ที่จะค้นหา

targetFirst boolean: เราจะเลือกไฟล์ฝั่งเป้าหมายหรือไฟล์ฝั่งโฮสต์สำหรับการค้นหา

abi IAbi: IAbi เพื่อให้ตรงกับไฟล์

altDirs List: เส้นทางการค้นหาอื่นนอกเหนือจากเส้นทางการค้นหาเริ่มต้น

altDirBehavior AltDirBehavior: วิธีใช้เส้นทางการค้นหาสำรองกับเส้นทางเริ่มต้น: เป็น เส้นทางสำรองหรือเป็นการลบล้าง หากไม่ได้ระบุ ระบบจะใช้เส้นทางสำรอง

testInfo TestInformation: TestInformation ของการทดสอบปัจจุบันเมื่อพร้อมใช้งาน

buildInfo IBuildInfo: IBuildInfo ของการทดสอบปัจจุบันเมื่อพร้อมใช้งาน

includeDirectory boolean: จะรวมไดเรกทอรีไว้ในผลการค้นหาหรือไม่

การคืนสินค้า
File ไฟล์อาร์ติแฟกต์ที่พบหรือ Null หากไม่พบ

searchFile

public static File searchFile (String fileName, 
                boolean targetFirst, 
                IAbi abi, 
                List<File> altDirs, 
                AltDirBehavior altDirBehavior, 
                TestInformation testInfo)

ค้นหาไฟล์อาร์ติแฟกต์/ทรัพยากร Dependency ของการทดสอบจากไดเรกทอรีการทดสอบ

พารามิเตอร์
fileName String: ชื่อไฟล์ที่จะค้นหา

targetFirst boolean: เราจะเลือกไฟล์ฝั่งเป้าหมายหรือไฟล์ฝั่งโฮสต์สำหรับการค้นหา

abi IAbi: IAbi เพื่อให้ตรงกับไฟล์

altDirs List: เส้นทางการค้นหาอื่นนอกเหนือจากเส้นทางการค้นหาเริ่มต้น

altDirBehavior AltDirBehavior: วิธีใช้เส้นทางการค้นหาสำรองกับเส้นทางเริ่มต้น: เป็น เส้นทางสำรองหรือเป็นการลบล้าง หากไม่ได้ระบุ ระบบจะใช้เส้นทางสำรอง

testInfo TestInformation: TestInformation ของการทดสอบปัจจุบันเมื่อพร้อมใช้งาน

การคืนสินค้า
File ไฟล์อาร์ติแฟกต์ที่พบหรือ Null หากไม่พบ