Home
last modified time | relevance | path

Searched full:path (Results 1 – 25 of 82) sorted by relevance

1234

/benchmark/integration-tests/macrobenchmark-target/src/main/res/drawable/
Dic_launcher.xml24 <path
27 <path
32 <path
37 <path
42 <path
47 <path
52 <path
57 <path
62 <path
67 <path
[all …]
/benchmark/benchmark-traceprocessor/src/commonMain/kotlin/androidx/benchmark/traceprocessor/
DPerfettoTrace.kt24 * Absolute file path of the trace. in <lambda>()
29 @get:RestrictTo(LIBRARY_GROUP) public val path: String in <lambda>() constant in androidx.benchmark.traceprocessor.PerfettoTrace
41 * Path to the trace. in <lambda>()
43 * When used with Android Benchmark, this is the relative path to the trace in the test in <lambda>()
46 public val path: String, in <lambda>() constant in androidx.benchmark.traceprocessor.PerfettoTrace.Link
54 * Path represented by the string in <lambda>()
56 * When used with Android Benchmark, this is the relative path to the trace in the test in <lambda>()
59 path: String, in <lambda>()
64 path = path, in <lambda>()
85 public val uri: String = "uri://$path$urlParamsEncoded" in <lambda>()
[all …]
/benchmark/benchmark-common/src/androidTest/java/androidx/benchmark/
DOutputsTest.kt115 relativePaths.forEach { path -> in <lambda>() method
116 assertFalse(path.startsWith("/"), "$path cannot start with a `/`.") in <lambda>()
118 path.startsWith(basePath), in <lambda>()
119 "Invalid relative path ($path), Base ($basePath)." in <lambda>()
123 for ((path, relativePath) in paths.zip(relativePaths)) { in <lambda>() method
124 assertEquals(path, relativePath, "$path != $relativePath") in <lambda>()
162 // simple way to get a unique path, not shared across runs in <lambda>()
164 val path = file.absolutePath in <lambda>() constant
167 Shell.executeScriptSilent("rm -f $path") in <lambda>()
169 Shell.executeScriptSilent("echo test > $path") in <lambda>()
[all …]
DMarkdownTest.kt30 test_file_link(label = "abc", path = "/d/e/f", expected = "[abc](file:///d/e/f)") in test_file_link_basic()
37 test_file_link(label = "abc [tag] (1)", path = "/d/e (1)/f [2]", expected = expected) in test_file_link_basic()
42 path = "/d/e \\(1\\)/f [2]", in test_file_link_basic()
47 private fun test_file_link(label: String, path: String, expected: String) { in test_file_link()
48 val actual = Markdown.createFileLink(label, path) in test_file_link()
DPerfettoTraceLinkTest.kt32 PerfettoTrace.Link(title = "bar", path = "foo.perfetto-trace", urlParamsEncoded = "") in benchmarkMarkdownLink_emptyString()
44 path = "foo.perfetto-trace", in benchmarkMarkdownLink_simpleString()
58 path = "foo.perfetto-trace", in benchmarkMarkdownLink_map()
72 path = "foo.perfetto-trace", in benchmarkMarkdownLink_mapEncode()
DShellTest.kt53 private fun CpuInfo.CoreDir.scalingMinFreqPath() = "$path/cpufreq/scaling_min_freq" in <lambda>()
71 // if the path exists, it should be readable by shell for every online core in <lambda>()
211 val path = in <lambda>() constant
217 Assert.assertEquals("foo\n", Shell.executeScriptCaptureStdout(path)) in <lambda>()
219 Shell.executeScriptCaptureStdout("rm $path") in <lambda>()
436path: /data/app/androidx.benchmark.test-C3VDUG1iLystEGyQTxcspA==/base.apk in <lambda>()
453path: /data/app/androidx.compose.foundation.layout.benchmark.test-pBhSh_spHfjDL-5jgzu_Jg==/base.apk in <lambda>()
469 path: .../SettingsGoogle.apk in <lambda>()
489path: /data/app/~~coMYW_NCkevOuZyH32n5Ag==/androidx.benchmark.test-kcNBMDGJ58lezaNWmNyTzQ==/base.a… in <lambda>()
/benchmark/benchmark-common/src/main/java/androidx/benchmark/
DCpuInfo.kt32 val path: String, in <lambda>() constant in androidx.benchmark.CpuInfo.CoreDir
55 val path = "${cpuDir.absolutePath}/$coreDir" in <lambda>() constant
59 path = path, in <lambda>()
62 online = readFileTextOrNull("$path/online") != "0", in <lambda>()
67 readFileTextOrNull("$path/cpufreq/scaling_available_frequencies") in <lambda>()
75 Shell.catProcFileLong("$path/cpufreq/scaling_setspeed") in <lambda>()
76 ?: readFileTextOrNull("$path/cpufreq/scaling_min_freq")?.toLong() in <lambda>()
79 readFileTextOrNull("$path/cpufreq/cpuinfo_max_freq")?.toLong() ?: -1L in <lambda>()
119 private fun readFileTextOrNull(path: String): String? { in <lambda>()
121 File(path).run { in <lambda>()
DShell.kt51 * relative path they were invoked from: in <lambda>()
66 processLabel.endsWith("/$processName") // executable with relative path in <lambda>()
79 fullProcessName.endsWith("/$processName") // executable with relative path in <lambda>()
90 fun catProcFileLong(path: String): Long? { in <lambda>()
91 return executeScriptCaptureStdoutStderr("cat $path").stdout.trim().run { in <lambda>()
102 * Get a checksum for a given path in <lambda>()
107 internal fun getChecksum(path: String): String { in <lambda>()
110 md5sum(path) in <lambda>()
113 return getFileSizeLsUnsafe(path) ?: "" in <lambda>()
117 val lsOutput = ShellImpl.executeCommandUnsafe("ls -l $path") in <lambda>()
[all …]
DMicrobenchmarkConfig.kt71 @Suppress("AutoBoxing") // null is distinct, and boxing cost is trivial (off critical path)
72 @get:Suppress("AutoBoxing") // null is distinct, and boxing cost is trivial (off critical path)
76 @Suppress("AutoBoxing") // null is distinct, and boxing cost is trivial (off critical path)
77 @get:Suppress("AutoBoxing") // null is distinct, and boxing cost is trivial (off critical path)
DOutputs.kt123 * @return The absolute path of the output [File]. in <lambda>()
179 fun relativePathFor(path: String): String { in <lambda>()
180 val hasOutputDirectoryPrefix = path.startsWith(outputDirectory.absolutePath) in <lambda>()
183 hasOutputDirectoryPrefix -> path.removePrefix("${outputDirectory.absolutePath}/") in <lambda>()
184 else -> path.removePrefix("${dirUsableByAppAndShell.absolutePath}/") in <lambda>()
186 check(relativePath != path) { "$relativePath == $path" } in <lambda>()
DMarkdownExtensions.kt41 fun createFileLink(label: String, path: String) = createLink(label, "file://$path")
DProfiler.kt48 * these however, in order to avoid the runtime visiting a new class in the hot path, when switching
199 val path = Outputs.testOutputFile(traceFileName).absolutePath in startRuntimeMethodTracing() constant
201 Log.d(TAG, "Profiling output file: $path") in startRuntimeMethodTracing()
202 InstrumentationResults.reportAdditionalFileToCopy("profiling_trace", path) in startRuntimeMethodTracing()
216 .also { Debug.startMethodTracingSampling(path, bufferSize, intervalUs) } in startRuntimeMethodTracing()
231 Debug.startMethodTracing(path, bufferSize, 0x10) in startRuntimeMethodTracing()
/benchmark/benchmark-darwin-xcode/projects/
Dcollection-benchmark-ios.yml10 path: App.plist
12 - path: '../iosSources/main'
26 path: Benchmark.plist
28 - path: '../iosAppUnitTests/main'
Dbenchmark-darwin-samples-xcode.yml10 path: App.plist
12 - path: '../iosSources/main'
26 path: Benchmark.plist
28 - path: '../iosAppUnitTests/main'
/benchmark/benchmark-macro/src/androidTest/java/androidx/benchmark/macro/
DStartupInsightsTest.kt42 path = "/fake/output/relative/path.perfetto-trace", in startupTraceLinkOf()
92 … "seen in iterations: [6](file:///fake/output/relative/path.perfetto-trace)(123305107ns)", in startupTraceLinkOf()
94 …"seen in iterations: [6](uri:///fake/output/relative/path.perfetto-trace?AndroidStartup%3ApackageN… in startupTraceLinkOf()
100 … "seen in iterations: [6](file:///fake/output/relative/path.perfetto-trace)(328462261ns)", in startupTraceLinkOf()
102 …"seen in iterations: [6](uri:///fake/output/relative/path.perfetto-trace?AndroidStartup%3ApackageN… in startupTraceLinkOf()
108 … "seen in iterations: [6](file:///fake/output/relative/path.perfetto-trace)(150 count)", in startupTraceLinkOf()
110 …"seen in iterations: [6](uri:///fake/output/relative/path.perfetto-trace?AndroidStartup%3ApackageN… in startupTraceLinkOf()
124 traceLinkPath = "/fake/output/relative/path.perfetto-trace" in startupTraceLinkOf()
134 traceLinkPath = "/fake/output/relative/path.perfetto-trace" in startupTraceLinkOf()
DCompilationModeTest.kt111 var path = Shell.pmPath(Packages.TARGET) in reinstallTargetPackageTest() variable
112 kotlin.test.assertTrue { path.isEmpty() } in reinstallTargetPackageTest()
117 path = Shell.pmPath(Packages.TARGET) in reinstallTargetPackageTest()
118 kotlin.test.assertTrue { path.isNotEmpty() } in reinstallTargetPackageTest()
DMacrobenchmarkScopeTest.kt216 // Note: rooted device will hit this path, unless `adb root` is invoked in <lambda>()
343 val path = MacrobenchmarkScope.getShaderCachePath(packageName) in <lambda>() constant
345 println("validating shader path $path") in <lambda>()
347 Shell.executeScriptCaptureStdout("find $path -type f | wc -l").trim().toInt() in <lambda>()
349 val files = Shell.executeScriptCaptureStdout("find $path -type f") in <lambda>()
350 assertEquals(0, fileCount, "Expected 0 files in $path, saw $fileCount (files = $files)") in <lambda>()
352 assertNotEquals(0, fileCount, "Expected >0 files in $path, saw $fileCount") in <lambda>()
/benchmark/benchmark-common/src/main/java/androidx/benchmark/perfetto/
DPerfettoCaptureWrapper.kt109 Shell.chmod(path = it.absolutePath, args = "777") in stop()
150 val path: String in record() constant
162 path = stop(fileLabel) in record()
166 inMemoryTrace.encode(FileOutputStream(path, /* append= */ true)) in record()
168 traceCallback?.invoke(path) in record()
170 return path in record()
DPerfettoHelper.kt87 // The actual location of the config path. in <lambda>()
90 val path = "$UNBUNDLED_PERFETTO_ROOT_DIR/config.pb" in <lambda>() constant
92 Shell.rm(path) in <lambda>()
97 Shell.executeScriptCaptureStdoutStderr("cp $configFilePath $path").also { in <lambda>()
106 Shell.cp(from = configFilePath, to = path) in <lambda>()
108 path in <lambda>()
179 val path: String = in <lambda>() constant
189 "Unable to find path to tracing_on (e.g. $TRACING_ON_PATH)", in <lambda>()
199 when (val output = Shell.executeScriptCaptureStdout("cat $path").trim()) { in <lambda>()
207 Log.i(LOG_TAG, "$path = 1, polled $it times, capture fully started") in <lambda>()
[all …]
DPerfettoCapture.kt81 * Stop collection, and record trace to the specified file path. in <lambda>()
83 * @param destinationPath Absolute path to write perfetto trace to. Must be shell-writable, such in <lambda>()
231 Shell.mkdir(dstFile.parentFile!!.path) in <lambda>()
232 Shell.mv(srcFile.path, dstFile.path) in <lambda>()
/benchmark/samples/src/main/java/androidx/benchmark/samples/
DTraceProcessorSample.kt34 loadTrace(PerfettoTrace("/path/to/trace.perfetto-trace")) { in traceProcessorRunServerSimple()
49 it.traceProcessor.startSession(PerfettoTrace("/path/to/trace.perfetto-trace")).use { in traceProcessorStartServerSimple()
64 loadTrace(PerfettoTrace("/path/to/trace.perfetto-trace")) { in TraceProcessor()
/benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/
DBaselineProfiles.kt263 // The path of the reference profile in extractProfileRooted()
265 // The path to the primary profile in extractProfileRooted()
273 Log.d(TAG, "APK Path: $apkPath") in extractProfileRooted()
289 // 2 locations. The `ref` profile path, or the `current` path. in profmanGetProfileRules()
290 // The `current` path is eventually merged into the `ref` path after background dexopt. in profmanGetProfileRules()
349 // Link to a path with timestamp to prevent studio from caching the file in summaryRecord()
/benchmark/benchmark-junit4/src/main/java/androidx/benchmark/junit4/
DPerfettoTraceRule.kt50 * When invoked via Gradle, files will be copied to host path like the following:
55 * You can additionally check logcat for messages tagged "PerfettoCapture:" for the path of each
105 Profiler.ResultFile.ofPerfettoTrace("Trace", it.path) in apply()
/benchmark/baseline-profile-gradle-plugin/src/test/kotlin/androidx/baselineprofile/gradle/utils/
DTestUtils.kt22 import kotlin.io.path.Path in <lambda>()
116 fun File.toUri() = Path(canonicalPath).toUri()
/benchmark/benchmark-common/src/main/java/androidx/benchmark/simpleperf/
DProfileSession.java246 private boolean isExecutableFile(@NonNull String path) { in isExecutableFile() argument
247 File file = new File(path); in isExecutableFile()
252 String path = "/data/local/tmp/simpleperf"; in findSimpleperfInTempDir() local
253 File file = new File(path); in findSimpleperfInTempDir()
261 .command("cp", path, toPath).start(); in findSimpleperfInTempDir()
332 * @param inputPath Path of the .data file within the simpleperf output directory
333 * @param outputPath Path to write the .trace proto format to.

1234