Home
last modified time | relevance | path

Searched defs:expected (Results 1 – 25 of 86) sorted by relevance

1234

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DQuotationAwareTokenizerTest.java34 private static void verify(String input, String[] expected, String delimiter) in verify()
53 private static void verify(String input, String[] expected) throws IllegalArgumentException { in verify()
61 String[] expected = new String[] {"one", "two", "three"}; in testTokenizeLine_simple() local
74 String[] expected = new String[] {"--foo", "this is a config"}; in testTokenizeLine_whitespace() local
82 String[] expected = new String[] {"--foo", "bar"}; in testTokenizeLine_comma() local
90 String[] expected = new String[] {"--foo", "a,config"}; in testTokenizeLine_commaAndQuote() local
98 String[] expected = new String[] {"--foo", "this is a", "config"}; in testTokenizeLine_commaAndWhitespace() local
106 String[] expected = new String[] {"--firstFlag", "stringOne", "--secondFlag", "stringTwo"}; in testTokenizeLine_extraSpace() local
121 String[] expected = new String[] {"--bar", in testTokenizeLine_escapedQuotation() local
162 String[] expected = new String[] {"--test", "", "--test2"}; in testTokenize_emptyString() local
[all …]
DStringEscapeUtilsTest.java48 List<String> expected = new ArrayList<>(); in testParams_noQuotesNoSpaces() local
61 List<String> expected = new ArrayList<>(); in testParams_noQuotesWithSpaces() local
73 List<String> expected = new ArrayList<>(); in testParams_plainQuotes() local
85 List<String> expected = new ArrayList<>(); in testParams_escapedQuotes() local
DArrayUtilTest.java45 final String expected = "alpha, beta, gamma"; in testJoinCollection() local
54 final String expected = "alpha, beta, gamma"; in testJoinArray() local
62 final String expected = "alpha, beta, gamma"; in testJoinNormal() local
DFixedByteArrayOutputStreamTest.java80 String expected = text.substring(1); in testBufferPlusOne() local
87 String expected = TEXT.substring(TEXT.length() - BUF_SIZE); in testBufferPlusPlus() local
103 String expected = full.substring(full.length() - BUF_SIZE); in testWriteWithWrap() local
117 String expected = text.substring(offset); in testLessThanBufferWithOffset() local
137 String expected = full.substring(full.length() - BUF_SIZE); in testWriteWithOffsetAndWrap() local
DKernelModuleUtilsTest.java33 String[] expected = {"kunit_test", "time_test"}; in testGetDependentModules() local
/tools/tradefederation/core/avd_util/javatests/com/android/tradefed/util/avd/
DAcloudUtilTest.java63 List<String> expected = in testBuildGceCommand() local
110 List<String> expected = in testBuildGceCommandWithIpDevice() local
166 List<String> expected = in testBuildGceCommandWithEmulatorBuild() local
218 List<String> expected = in testBuildGceCommandWithSpecifiedImages() local
261 List<String> expected = in testBuildGceCommand_withPreconfiguredVirtualDevice() local
323 List<String> expected = in testBuildGceCommandWithExtraFiles() local
375 List<String> expected = in testBuildGceCommandWithKernelBuild() local
/tools/tradefederation/core/javatests/com/android/tradefed/lite/
DSampleTests.java34 int expected = 4; in testAddition() local
41 int expected = 4; in testMultiplication() local
48 int expected = 10; in testSubtraction() local
/tools/loganalysis/javatests/com/android/loganalysis/util/
DArrayUtilTest.java45 final String expected = "alpha, beta, gamma"; in testJoinCollection() local
55 final String expected = "alpha, beta, gamma"; in testJoinArray() local
64 final String expected = "alpha, beta, gamma"; in testJoinNormal() local
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/signature/
DMergeSignaturesCommandTest.kt133 val expected = in Test merging API signature files() constant
224 val expected = in Test merging API signature files with reverse dependency() constant
275 val expected = in Test merging 3 API signature files() constant
318 val expected = in Test can merge API signature files with duplicate class() constant
378 val expected = in Test can merge API signature files with duplicate class and different annotations() constant
/tools/platform-compat/javatest/android/processor/compat/changeid/
DXmlWriterTest.java39 String expected = HEADER + "<config/>"; in testNoChanges() local
55 String expected = HEADER + "<config>" in testOneChange() local
106 String expected = HEADER + "<config>" in testSomeChanges() local
/tools/platform-compat/java/com/android/class2nonsdklist/
DJavadocLinkSyntaxError.java20 public final String expected; field in JavadocLinkSyntaxError
24 public JavadocLinkSyntaxError(String expected, StringCursor sc) { in JavadocLinkSyntaxError()
DSignatureSyntaxError.java20 public final String expected; field in SignatureSyntaxError
23 public SignatureSyntaxError(String expected, StringCursor sc) { in SignatureSyntaxError()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DZipField.java77 private final Long expected; field in ZipField
112 ZipField(int offset, int size, long expected, @Nonnull String name) { in ZipField()
218 void verify(@Nonnull ByteBuffer bytes, long expected) throws IOException { in verify()
235 long expected, in verify()
333 F2(int offset, long expected, @Nonnull String name) { in F2()
360 F4(int offset, long expected, @Nonnull String name) { in F4()
/tools/apksig/src/test/java/com/android/apksig/internal/test/
DMoreAsserts.java30 public static void assertByteBufferEquals(byte[] expected, ByteBuffer actual) { in assertByteBufferEquals()
38 public static void assertByteBufferEquals(String message, byte[] expected, ByteBuffer actual) { in assertByteBufferEquals()
/tools/metalava/metalava-model-text/src/testFixtures/java/com/android/tools/metalava/model/text/
DSignatureFixtures.kt39 val expected = expectedContents.trimIndent() in assertSignatureContents() constant
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/tracing/
DTracePropagatingExecutorServiceTest.java71 ActiveTrace expected = startTracing(); in activeTracePropagatesToTask() local
81 ActiveTrace expected = startTracing(); in activeTracePropagatesToSubTask() local
94 ActiveTrace expected = startTracing(); in callerActiveTraceRestored() local
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/
DUtils.java12 public static void logError(String message, int expected, int actual) { in logError()
18 public static void logError(String message, byte[] expected, byte[] actual) { in logError()
/tools/platform-compat/javatest/com/android/class2nonsdklist/
DAnnotationPropertyWriterTest.java54 String expected = "signature,prop\n" in testExportPropertiesNoEscaping() local
70 String expected = "signature,prop\n" in testExportPropertiesEscapeQuotes() local
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DGTestXmlResultParserTest.java175 String expected = "Failed to get an xml output from tests, it probably crashed"; in testParseWithEmptyFile() local
198 String expected = "Test run incomplete. Expected 7 tests, received 6"; in testParseUnexpectedNumberTest() local
231 String expected = "Test run incomplete. Expected 6 tests, received 3"; in testParseSimpleFile_badXmltag() local
268 String expected = in testParseWithEmptyFile_AdditionalOutput() local
/tools/tradefederation/core/javatests/com/android/tradefed/device/internal/
DDeviceReleaseReporterTest.java77 Map<String, String> expected = Map.of(DEVICE_1_NAME, DEVICE_1_STATE.name()); in releaseDevices_oneDevice() local
99 Map<String, String> expected = in releaseDevices_multipleDevices() local
DEarlyDeviceReleaseFeatureTest.java93 Map<ITestDevice, FreeDeviceState> expected = Map.of(mTestDevice1, DEVICE_1_STATE); in testFeature_oneDevice() local
111 Map<ITestDevice, FreeDeviceState> expected = in testFeature_multipleDevices() local
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterDeviceMonitorTest.java203 Map<String, String> expected = new HashMap<>(); in testGetAdditionalHostInfo() local
217 Map<String, String> expected = new HashMap<>(); in testGetAdditionalHostInfo_noCommands() local
241 Map<String, String> expected = new HashMap<>(); in testGetAdditionalHostInfo_commandFailed() local
/tools/tradefederation/core/javatests/com/android/tradefed/command/
DConsoleTest.java218 String[] expected = new String[] {"--arg", "value", "config.xml"}; in testRunCommand() local
236 String[] expected = new String[] {"--arg", "value", "config.xml"}; in testRunCommand_shortcut() local
258 String[] expected = new String[] {"command", "--arg", "value", "config.xml"}; in testRunCommand_startsWithCommand() local
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DApiFlagsCreatorTest.kt66 val expected = in Test creation from config() constant
/tools/tradefederation/core/javatests/com/android/tradefed/build/
DBuildInfoTest.java105 String expected = "BuildInfo{bid=1, target=target, build_flavor=testFlavor, " in testToString() local
117 String expected = "BuildInfo{build_alias=NMR12, bid=1, target=target, " in testToString_withBuildAlias() local

1234