Home
last modified time | relevance | path

Searched refs:toString (Results 1 – 25 of 251) sorted by relevance

1234567891011

/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DICamera2Helper.java45 public String toString() { in toString() method in ICamera2Helper.ModeType
56 if (mode.toString().equals(name)) return mode; in fromString()
76 public String toString() { in toString() method in ICamera2Helper.CameraType
87 if (camera.toString().equals(name)) return camera; in fromString()
109 public String toString() { in toString() method in ICamera2Helper.TestOptionKey
DIGoogleHelper.java38 public String toString() { in toString() method in IGoogleHelper.NavigationTab
60 public String toString() { in toString() method in IGoogleHelper.SearchResultTab
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DAppStartupHelperTest.java134 assertEquals(1, appLaunchMetrics.get(coldLaunchMetricKey).toString().split(",").length); in testSingleColdLaunchMetric()
135 assertEquals(1, Integer.parseInt(appLaunchMetrics.get(coldLaunchCountPkgKey).toString())); in testSingleColdLaunchMetric()
137 .toString())); in testSingleColdLaunchMetric()
145 appLaunchMetrics.get(coldLaunchTransitionMetricKey).toString().split(",").length); in testSingleColdLaunchMetric()
154 appLaunchMetrics.get(coldLaunchProcessMetricKey).toString().split(",").length); in testSingleColdLaunchMetric()
156 Integer.parseInt(appLaunchMetrics.get(coldLaunchProcessCountPkgKey).toString())); in testSingleColdLaunchMetric()
161 .toString())); in testSingleColdLaunchMetric()
168 appLaunchMetrics.get(sourceEventDelayMetricKey).toString().split(",").length); in testSingleColdLaunchMetric()
191 assertEquals(2, appLaunchMetrics.get(coldLaunchMetricKey).toString().split(",").length); in testMultipleColdLaunchMetric()
192 assertEquals(2, Integer.parseInt(appLaunchMetrics.get(coldLaunchCountPkgKey).toString())); in testMultipleColdLaunchMetric()
[all …]
/platform_testing/libraries/motion/src/platform/test/motion/testing/
DJsonSubject.kt39 .that(actual.toString(PRETTY_PRINT_INDENT)) in <lambda>()
40 .isEqualTo(expected.toString(PRETTY_PRINT_INDENT)) in <lambda>()
43 .that(actual.toString(PRETTY_PRINT_INDENT)) in <lambda>()
44 .isEqualTo(expected.toString(PRETTY_PRINT_INDENT)) in <lambda>()
/platform_testing/libraries/audio-test-harness/utilities/src/com/android/media/audiotestharness/utilities/
DAudioSystemDiagnostic.java54 diagnosticStringBuilder.append("Mixers Array = " + Arrays.toString(mixers) + "\n"); in buildAudioSystemDiagnosticString()
61 "----- Start Mixer (#" + Integer.toString(i) + ") -----\n"); in buildAudioSystemDiagnosticString()
68 "----- End Mixer (#" + Integer.toString(i) + ") -----\n"); in buildAudioSystemDiagnosticString()
71 return diagnosticStringBuilder.toString(); in buildAudioSystemDiagnosticString()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/
DFact.kt23 override fun toString(): String { in toString() method in android.tools.flicker.assertions.Fact
24 val valueStr = value?.toString() ?: "" in toString()
/platform_testing/libraries/motion/src/platform/test/motion/golden/
DDataPoint.kt65 override fun toString(): String = "$value (${type.typeName})" in <lambda>() method
86 override fun toString(): String = "null" in toString() method in platform.test.motion.golden.NullDataPoint
101 override fun toString(): String = "{{not_found}}" in toString() method in platform.test.motion.golden.NotFoundDataPoint
119 override fun toString(): String = "{{unknown_type}}" in asJson() method in platform.test.motion.golden.UnknownType
/platform_testing/libraries/flicker/src/android/tools/flicker/
DScenarioInstanceImpl.kt57 this["Scenario Start"] = startTimestamp.toString() in <lambda>()
58 this["Scenario End"] = endTimestamp.toString() in <lambda>()
59 this["Associated CUJ"] = associatedCuj.toString() in <lambda>()
60 this["Associated Transition"] = associatedTransition.toString() in <lambda>()
74 override fun toString() = key in <lambda>() method in android.tools.flicker.ScenarioInstanceImpl
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DGoldenPathManager.kt189 File(context.filesDir, "platform_screenshots").toString() in getDeviceOutputDirectory()
208 fun getAPIVersion() = "API" + Build.VERSION.SDK_INT.toString() in getAPIVersion()
211 context.resources.displayMetrics.densityDpi.toString() + "dpi" in getAPIVersion()
213 fun getScreenOrientation(context: Context) = context.resources.configuration.orientation.toString() in getAPIVersion()
216 val heightdp = context.resources.configuration.screenHeightDp.toString() in getAPIVersion()
217 val widthdp = context.resources.configuration.screenWidthDp.toString() in getAPIVersion()
/platform_testing/libraries/collectors-helper/power/src/com/android/helpers/
DPwrStatsUtilHelper.java53 Log.e(LOG_TAG, e.toString()); in startCollecting()
65 Log.e(LOG_TAG, e.toString()); in startCollecting()
81 Log.e(LOG_TAG, e.toString()); in stopCollecting()
87 Log.e(LOG_TAG, e.toString()); in stopCollecting()
131 Log.e(LOG_TAG, e.toString()); in processMetricsFromLogFile()
137 Log.e(LOG_TAG, e.toString()); in processMetricsFromLogFile()
/platform_testing/libraries/flicker/utils/test/src/android/tools/datatypes/
DDatatypeTest.kt31 Assert.assertEquals(expectedValueAString, valueTest.toString()) in testToString()
36 Assert.assertEquals("[empty]", valueEmpty.toString()) in testEmptyToString()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/
DFlickerSubjectException.kt40 appendLine(timestamp.toString().prependIndent("\t")) in <lambda>()
44 facts.forEach { appendLine(it.toString().prependIndent("\t")) } in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/exceptions/
DExceptionMessageBuilder.kt58 fun setExpected(value: Any?) = apply { expected = value?.toString() ?: "null" } in <lambda>()
62 fun setActual(value: Any?) = setActual(listOf(value?.toString() ?: "null")) in setActual()
80 appendLine(timestamp.toString().prependIndent("\t")) in <lambda>()
103 extraDescription.forEach { appendLine(it.toString().prependIndent("\t")) } in <lambda>()
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DOverlayFsUtils.java88 String dirHash = Hashing.md5().hashString(dir, StandardCharsets.UTF_8).toString(); in makeWritable()
89 int pathPrefixLength = WRITABLE_DIR.toString().length() + 1 + OVERLAYFS_PREFIX.length(); in makeWritable()
116 Path tempimg = tempdir.getParent().resolve(tempdir.getFileName().toString() + ".img"); in makeWritable()
117 dirs.add(tempimg.toString()); in makeWritable()
118 dirs.add(tempdir.toString()); in makeWritable()
132 String upperdir = tempdir.resolve("upper").toString(); in makeWritable()
133 String workdir = tempdir.resolve("workdir").toString(); in makeWritable()
/platform_testing/libraries/automotive-helpers/phone-helper/src/android/platform/helpers/
DPhoneHelperImpl.java58 .findUiObject(getUiElementFromConfig(Character.toString(ch))); in dialNumberOnDialpad()
60 numberButton = getSpectatioUiUtil().findUiObject(Character.toString(ch)); in dialNumberOnDialpad()
64 numberButton, String.format("Number %s", Character.toString(ch))); in dialNumberOnDialpad()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/inputmethod/
DImeClientEntry.kt45 get() = timestamp.toString()
46 override fun toString(): String = name in toString() method in android.tools.traces.inputmethod.ImeClientEntry
/platform_testing/libraries/flicker/utils/src/android/tools/traces/component/
DExactComponentIdMatcher.kt37 windows.any { it.token == windowId.toString(16) } in windowMatchesAnyOf()
44 activities.any { it.token == windowId.toString(16) } in activityMatchesAnyOf()
DFullComponentIdMatcher.kt39 it.token == windowId.toString(16) -> true in windowMatchesAnyOf()
50 activities.any { it.token == windowId.toString(16) } in activityMatchesAnyOf()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DBaselineProfileCollectorTest.java68 new File(getOutputDir().toPath().resolve(filename).toString()).createNewFile(); in createFileInOutputDir()
93 getOutputDir().toPath().resolve(profileFilename).toString()); in testBaselineProfile_isReportedIfOneExists()
112 getOutputDir().toPath().resolve(profile1Filename).toString()); in testBaselineProfile_areAllReportedIfManyExists()
116 getOutputDir().toPath().resolve(profile2Filename).toString()); in testBaselineProfile_areAllReportedIfManyExists()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/datastore/
DDataStoreTest.kt54 assertExceptionMessage(failure, TEST_SCENARIO.toString()) in throwsErrorAddElementTwice()
67 assertExceptionMessage(failure, TEST_SCENARIO.toString()) in getsElementThrowErrorDoesNotExist()
84 assertExceptionMessage(failure, TEST_SCENARIO.toString()) in replacesElementThrowErrorDoesNotExist()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/
DResourceFile.java74 public String toString() { in toString() method in ResourceFile
75 return mFile.toString(); in toString()
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/
DFlagsParameterizationTest.java37 assertEquals(params1.toString(), params2.toString()); in toStringIsOrderIndependent()
45 assertNotEquals(params1.toString(), params2.toString()); in toStringIsDifferent()
52 assertNotEquals("", params.toString()); in toStringIsNotEmpty()
/platform_testing/libraries/flicker/utils/src/android/tools/
DFloatFormatter.kt27 return ((value * 1000).toInt() / 1000.0).toString() in format()
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/
DDumpsysServiceHelperTest.java90 .toString(); in testCollectDumpsys_oneService()
107 .toString(); in testCollectDumpsys_multipleServices()
114 .toString(); in testCollectDumpsys_multipleServices()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DRootWindowContainer.kt27 override fun toString(): String { in <lambda>() method

1234567891011