Home
last modified time | relevance | path

Searched refs:exists (Results 1 – 25 of 42) sorted by relevance

12

/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DScreenshotTestRuleTest.kt82 assertThat(rule.getPathOnDeviceFor(IMAGE_ACTUAL, goldenIdentifier).exists()).isTrue() in goldenIdentifierResolver()
83 assertThat(rule.getPathOnDeviceFor(IMAGE_DIFF, goldenIdentifier).exists()).isFalse() in goldenIdentifierResolver()
84 assertThat(rule.getPathOnDeviceFor(IMAGE_EXPECTED, goldenIdentifier).exists()).isTrue() in goldenIdentifierResolver()
85 assertThat(rule.getPathOnDeviceFor(RESULT_BIN_PROTO, goldenIdentifier).exists()).isTrue() in goldenIdentifierResolver()
104 assertThat(customizedRule.getPathOnDeviceFor(IMAGE_ACTUAL, goldenIdentifier).exists()) in goldenIdentifierResolver()
106 assertThat(customizedRule.getPathOnDeviceFor(IMAGE_DIFF, goldenIdentifier).exists()) in goldenIdentifierResolver()
108 assertThat(customizedRule.getPathOnDeviceFor(IMAGE_EXPECTED, goldenIdentifier).exists()) in goldenIdentifierResolver()
110 assertThat(customizedRule.getPathOnDeviceFor(RESULT_BIN_PROTO, goldenIdentifier).exists()) in goldenIdentifierResolver()
130 assertThat(rule.getPathOnDeviceFor(IMAGE_ACTUAL, goldenIdentifier).exists()).isTrue() in goldenIdentifierResolver()
131 assertThat(rule.getPathOnDeviceFor(IMAGE_DIFF, goldenIdentifier).exists()).isFalse() in goldenIdentifierResolver()
[all …]
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DIncidentReportListenerTest.java85 assertFalse(REPORT_DEST.exists()); in testCreateDirectoryAtStart()
86 assertFalse(REPORT_FILE.exists()); in testCreateDirectoryAtStart()
88 assertTrue(REPORT_DEST.exists()); in testCreateDirectoryAtStart()
100 assertFalse(REPORT_FILE.exists()); in testCollectFullReportAtEnd()
102 assertTrue(REPORT_FILE.exists()); in testCollectFullReportAtEnd()
122 assertFalse(REPORT_DEST.exists()); in testFailCollectIfNoDestinationDirectory()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/layers/
DLayerSubject.kt86 layer ?: return exists() in <lambda>()
100 fun exists(): LayerSubject = apply { in <lambda>() method
117 layer ?: return exists() in <lambda>()
129 layer ?: return exists() in <lambda>()
139 layer ?: return exists() in <lambda>()
149 layer ?: return exists() in <lambda>()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/monitor/
DScreenRecorderTest.kt64 .that(Files.exists(file)) in videoIsRecorded()
74 Truth.assertWithMessage("Trace file $trace not found").that(Files.exists(trace)).isTrue() in videoCanBeSaved()
DTraceMonitorTest.kt86 Truth.assertWithMessage("File $testFile exists").that(testFile.exists()).isTrue() in captureTrace()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/monitor/
DScreenRecorder.kt97 require(!Files.exists(sourceFile)) { "Could not delete old trace file" } in startTracing()
108 } while (!Files.exists(sourceFile) && remainingTime > 0) in startTracing()
110 require(Files.exists(sourceFile)) { in startTracing()
DTraceMonitor.kt55 require(Files.exists(outputFile)) { "Unable to save trace file $outputFile" } in startTracing()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DIncidentReportListener.java73 if (!REPORT_DIRECTORY.toFile().exists()) { in onTestRunEnd()
101 if (!destination.exists()) { in onTestRunEnd()
DScreenshotOnFailureCollector.java141 if (img.exists()) { in takeScreenshot()
171 if (uixFile.exists()) { in collectUiXml()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/windowmanager/
DWindowStateSubject.kt69 windowState ?: return exists() in <lambda>()
83 fun exists(): WindowStateSubject = apply { in <lambda>() method
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/windowmanager/
DWindowStateSubjectTest.kt37 .exists() in exceptionContainsDebugInfoImaginary()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DPinnerHelper.java70 if (directory.exists()) { in startCollecting()
71 if (file.exists() && !file.delete()) { in startCollecting()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DDexTestRunner.java312 if (jarFile.exists()) { in parseDexedJarPaths()
331 if (new File(jar).exists() && new File(jar).canRead()) { in makeLoader()
345 if (optDir.exists() || optDir.mkdirs()) { in makeLoader()
DFilesystemUtil.java102 if (!outputDir.exists()) { in dumpMeminfo()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/layers/
DLayerSubjectTest.kt43 .exists() in exceptionContainsDebugInfoImaginary()
/platform_testing/libraries/junitxml/src/com/android/junitxml/
DJUnitXmlRunner.java65 if (outputFile.exists()) { in getAtestRunListener()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/rules/
DWMFlickerServiceRule.kt81 if (Files.exists(outputDir)) { in <lambda>()
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationHelper.java203 public boolean checkNotificationExistence(int id, boolean exists) throws Exception { in checkNotificationExistence() argument
214 if (isFound == exists) { in checkNotificationExistence()
220 return isFound == exists; in checkNotificationExistence()
/platform_testing/libraries/audio-test-harness/instrumentation/src/com/android/media/audiotestharness/instrumentation/
DAudioTestHarnessCaptureTest.java158 if (outputFile.exists()) { in writeSamplesToAppStorage()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ui/
DUiSearch.java187 if (getUiDevice().findObject(selector).exists()) { in search()
DUiSearch2.java193 if (getUiDevice().findObject(selector).exists()) { in search()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/service/
DFlickerCollectionHelper.kt116 if (!Files.exists(outputDir)) { in <lambda>()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DScreenRecordRule.kt149 ensureThat("Recording output created") { exists() } in <lambda>()
/platform_testing/libraries/collectors-helper/perfetto/src/com/android/helpers/
DPerfettoHelper.java211 if (!directory.exists()) { in copyFileOutput()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DUtils.kt136 .that(Files.exists(archivePath)).isTrue() in assertArchiveContainsAllTraces()

12