Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
TestRecordProtoUtil
public
class
TestRecordProtoUtil
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.proto.TestRecordProtoUtil
|
Utility to read the TestRecord
proto from a file.
Summary
Public methods |
static
TestRecordProto.TestRecord
|
readFromFile(File protoFile)
Read TestRecord from a file and return it.
|
static
TestRecordProto.TestRecord
|
readFromFile(File protoFile, boolean readDelimited)
Read TestRecord from a file and return it.
|
Public constructors
TestRecordProtoUtil
public TestRecordProtoUtil ()
Public methods
readFromFile
public static TestRecordProto.TestRecord readFromFile (File protoFile)
Read TestRecord
from a file and return it.
Parameters |
protoFile |
File : The ERROR(/File) containing the record |
Returns |
TestRecordProto.TestRecord |
a TestRecord created from the file. |
Throws |
|
InvalidProtocolBufferException |
readFromFile
public static TestRecordProto.TestRecord readFromFile (File protoFile,
boolean readDelimited)
Read TestRecord
from a file and return it.
Parameters |
protoFile |
File : The ERROR(/File) containing the record |
readDelimited |
boolean : True if the proto file in delimited format. False if the file is default
format. |
Returns |
TestRecordProto.TestRecord |
|
Throws |
|
InvalidProtocolBufferException |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-03-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-03-08 UTC."],[],[]]