Home
last modified time | relevance | path

Searched refs:fromString (Results 1 – 22 of 22) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DTimeValTest.java32 assertEquals(0, TimeVal.fromString("0")); in testBasic()
33 assertEquals(1, TimeVal.fromString("1")); in testBasic()
35 assertEquals(1000, TimeVal.fromString("1000")); in testBasic()
36 assertEquals(1000, TimeVal.fromString("1000ms")); in testBasic()
37 assertEquals(1000, TimeVal.fromString("1000Ms")); in testBasic()
38 assertEquals(1000, TimeVal.fromString("1000mS")); in testBasic()
39 assertEquals(1000, TimeVal.fromString("1000MS")); in testBasic()
41 assertEquals(1000, TimeVal.fromString("1s")); in testBasic()
42 assertEquals(1000, TimeVal.fromString("1S")); in testBasic()
44 assertEquals(1000 * 60, TimeVal.fromString("1m")); in testBasic()
[all …]
DZipUtilTest.java264 assertEquals(PosixFilePermissions.fromString("rw-r--r--"), permissions); in testPartipUnzip()
296 assertEquals(PosixFilePermissions.fromString("rw-rw-rw-"), permissions); in testPartipUnzip()
315 assertEquals(PosixFilePermissions.fromString("rwxr-xr-x"), permissions); in testPartipUnzip()
334 assertEquals(PosixFilePermissions.fromString("r--r--r--"), permissions); in testPartipUnzip()
353 assertEquals(PosixFilePermissions.fromString("rwxr--r--"), permissions); in testPartipUnzip()
372 assertEquals(PosixFilePermissions.fromString("rwxr-xr-x"), permissions); in testPartipUnzip()
490 assertEquals(PosixFilePermissions.fromString("rw-r--r--"), permissions); in testPartialUnzipWithUseZip64()
521 assertEquals(PosixFilePermissions.fromString("rw-rw-rw-"), permissions); in testPartialUnzipWithUseZip64()
540 assertEquals(PosixFilePermissions.fromString("rwxr-xr-x"), permissions); in testPartialUnzipWithUseZip64()
559 assertEquals(PosixFilePermissions.fromString("r--r--r--"), permissions); in testPartialUnzipWithUseZip64()
[all …]
DZipUtil2Test.java62 Set<PosixFilePermission> expected = PosixFilePermissions.fromString(permString); in verifyFilePermission()
/tools/tradefederation/core/javatests/com/android/tradefed/result/
DTestDescriptionTest.java129 TestDescription fromString = TestDescription.fromString(td.toString()); in testFromString() local
130 assertThat(fromString).isEqualTo(td); in testFromString()
131 assertThat(fromString).isEquivalentAccordingToCompareTo(td); in testFromString()
/tools/ndkports/buildSrc/src/main/kotlin/com/android/ndkports/
DNdkVersion.kt31 private fun fromString(versionString: String): NdkVersion { in fromString() method
46 return fromString(it.groups.last()!!.value) in fromSourcePropertiesText()
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/
DHostOrchestratorUtilTest.java102 Mockito.doReturn(HostAndPort.fromString("host:2080")).when(mMockGceAvd).hostAndPort(); in testCreateHostOrchestratorTunnel_Oxygen_UseCVD()
115 Mockito.doReturn(HostAndPort.fromString("host:2080")).when(mMockGceAvd).hostAndPort(); in testPullCvdHostLogs_Oxygenation_Success()
148 Mockito.doReturn(HostAndPort.fromString("host:2080")).when(mMockGceAvd).hostAndPort(); in testPullCvdHostLogs_Oxygenation_CurlFailed()
195 Mockito.doReturn(HostAndPort.fromString("host:2080")).when(mMockGceAvd).hostAndPort(); in testPullCvdHostLogs_Oxygenation_CreateHOFailed()
232 Mockito.doReturn(HostAndPort.fromString("host:2080")).when(mMockGceAvd).hostAndPort(); in testPullCvdHostLogs_Oxygenation_404()
266 Mockito.doReturn(HostAndPort.fromString("host:2080")).when(mMockGceAvd).hostAndPort(); in testPowerwashGce()
339 Mockito.doReturn(HostAndPort.fromString("host:2080")).when(mMockGceAvd).hostAndPort(); in testPowerwashGce_CreateHOFailed()
384 Mockito.doReturn(HostAndPort.fromString("host:2080")).when(mMockGceAvd).hostAndPort(); in testPowerwashGce_ListCvdFailed()
432 Mockito.doReturn(HostAndPort.fromString("host:2080")).when(mMockGceAvd).hostAndPort(); in testPowerwashGce_ListCvd404()
480 Mockito.doReturn(HostAndPort.fromString("host:2080")).when(mMockGceAvd).hostAndPort(); in testPowerwashGce_NoCvdOutput()
DCommonLogRemoteFileUtilTest.java50 GceAvdInfo info = new GceAvdInfo("mock-instance", HostAndPort.fromString("192.0.2.2")); in testFetchCommonFilesWithLogsEntries()
75 GceAvdInfo info = new GceAvdInfo("mock-instance", HostAndPort.fromString("192.0.2.2")); in testFetchCommonFilesWithoutLogsEntries()
DOxygenClientTest.java129 HostAndPort.fromString("10.0.80.227").withDefaultPort(12345)); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/util/
DTimeVal.java58 mValue = fromString(value); in TimeVal()
84 public static long fromString(String value) throws NumberFormatException { in fromString() method in TimeVal
/tools/tradefederation/core/javatests/com/android/tradefed/result/skipped/
DSkipReasonTest.java33 SkipReason deserializedReason = SkipReason.fromString(skipReason.toString()); in parseFromString()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/build/
DBuildInfoKey.java75 public static BuildInfoFileKey fromString(String keyName) { in fromString() method in BuildInfoKey.BuildInfoFileKey
/tools/tradefederation/core/common_util/com/android/tradefed/result/skipped/
DSkipReason.java79 public static SkipReason fromString(String skipReasonMessage) { in fromString() method in SkipReason
/tools/tradefederation/core/src/com/android/tradefed/result/
DTestDescriptionsFile.java137 TestDescription test = TestDescription.fromString(line); in readTestsFromFile()
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
DTestDescription.java164 public static TestDescription fromString(String data) { in fromString() method in TestDescription
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceAvdInfo.java392 HostAndPort.fromString(ip).withDefaultPort(remoteAdbPort), in parseGceInfoFromString()
479 HostAndPort.fromString(serverUrl) in parseSucceedOxygenClientOutput()
DGceSshTunnelMonitor.java295 mLocalHostAndPort = HostAndPort.fromString(mDevice.getSerialNumber()); in run()
DGceManager.java417 HostAndPort.fromString(mGceHost) in startGceWithAcloud()
/tools/tradefederation/core/src/com/android/tradefed/result/skipped/
DSkipManager.java185 mDemotionFilters.put(filter, SkipReason.fromString(part.getValue())); in fetchDemotionInformation()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterHostUtil.java278 HostAndPort hostAndPort = HostAndPort.fromString(input); in isLocalhostIpPort()
/tools/tradefederation/core/src/com/android/tradefed/config/
DOptionSetter.java1094 return TimeVal.fromString(valueText); in translate()
1125 return Duration.ofMillis(TimeVal.fromString(valueText)); in translate()
/tools/tradefederation/core/src/com/android/tradefed/build/
DBuildInfo.java393 BuildInfoFileKey key = BuildInfoFileKey.fromString(name); in setFile()
/tools/tradefederation/core/javatests/com/android/tradefed/device/connection/
DAdbSshConnectionTest.java295 HostAndPort.fromString("127.0.0.1:6922"), in testPowerwashMultiInstance()