/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | TimeValTest.java | 32 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 …]
|
D | ZipUtilTest.java | 264 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 …]
|
D | ZipUtil2Test.java | 62 Set<PosixFilePermission> expected = PosixFilePermissions.fromString(permString); in verifyFilePermission()
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/ |
D | TestDescriptionTest.java | 129 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/ |
D | NdkVersion.kt | 31 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/ |
D | HostOrchestratorUtilTest.java | 102 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()
|
D | CommonLogRemoteFileUtilTest.java | 50 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()
|
D | OxygenClientTest.java | 129 HostAndPort.fromString("10.0.80.227").withDefaultPort(12345)); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | TimeVal.java | 58 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/ |
D | SkipReasonTest.java | 33 SkipReason deserializedReason = SkipReason.fromString(skipReason.toString()); in parseFromString()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/build/ |
D | BuildInfoKey.java | 75 public static BuildInfoFileKey fromString(String keyName) { in fromString() method in BuildInfoKey.BuildInfoFileKey
|
/tools/tradefederation/core/common_util/com/android/tradefed/result/skipped/ |
D | SkipReason.java | 79 public static SkipReason fromString(String skipReasonMessage) { in fromString() method in SkipReason
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | TestDescriptionsFile.java | 137 TestDescription test = TestDescription.fromString(line); in readTestsFromFile()
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/ |
D | TestDescription.java | 164 public static TestDescription fromString(String data) { in fromString() method in TestDescription
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | GceAvdInfo.java | 392 HostAndPort.fromString(ip).withDefaultPort(remoteAdbPort), in parseGceInfoFromString() 479 HostAndPort.fromString(serverUrl) in parseSucceedOxygenClientOutput()
|
D | GceSshTunnelMonitor.java | 295 mLocalHostAndPort = HostAndPort.fromString(mDevice.getSerialNumber()); in run()
|
D | GceManager.java | 417 HostAndPort.fromString(mGceHost) in startGceWithAcloud()
|
/tools/tradefederation/core/src/com/android/tradefed/result/skipped/ |
D | SkipManager.java | 185 mDemotionFilters.put(filter, SkipReason.fromString(part.getValue())); in fetchDemotionInformation()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterHostUtil.java | 278 HostAndPort hostAndPort = HostAndPort.fromString(input); in isLocalhostIpPort()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | OptionSetter.java | 1094 return TimeVal.fromString(valueText); in translate() 1125 return Duration.ofMillis(TimeVal.fromString(valueText)); in translate()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | BuildInfo.java | 393 BuildInfoFileKey key = BuildInfoFileKey.fromString(name); in setFile()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/connection/ |
D | AdbSshConnectionTest.java | 295 HostAndPort.fromString("127.0.0.1:6922"), in testPowerwashMultiInstance()
|