Home
last modified time | relevance | path

Searched refs:DeviceInfo (Results 1 – 25 of 37) sorted by relevance

12

/benchmark/benchmark-common/src/androidTest/java/androidx/benchmark/
DDeviceInfoTest.kt46 DeviceInfo.misconfiguredForTracing, in misconfiguredForTracing()
57 assertTrue(DeviceInfo.isLowRamDevice) in artMainlineVersionWembley()
60 assertFalse(DeviceInfo.methodTracingAffectsMeasurements) in artMainlineVersionWembley()
61 assertEquals(DeviceInfo.ART_MAINLINE_VERSION_UNDETECTED, DeviceInfo.artMainlineVersion) in artMainlineVersionWembley()
67 assertFalse(DeviceInfo.willMethodTracingAffectMeasurements(25, -1)) in willMethodTracingAffectMeasurements()
68 assertTrue(DeviceInfo.willMethodTracingAffectMeasurements(26, -1L)) in willMethodTracingAffectMeasurements()
69 assertTrue(DeviceInfo.willMethodTracingAffectMeasurements(30, -1L)) in willMethodTracingAffectMeasurements()
70 assertFalse(DeviceInfo.willMethodTracingAffectMeasurements(31, 310000000L)) in willMethodTracingAffectMeasurements()
73 assertFalse(DeviceInfo.willMethodTracingAffectMeasurements(33, 330000000L)) in willMethodTracingAffectMeasurements()
74 assertTrue(DeviceInfo.willMethodTracingAffectMeasurements(33, 340000000L)) in willMethodTracingAffectMeasurements()
[all …]
DCpuEventCounterTest.kt43 assumeFalse(DeviceInfo.isEmulator && Build.VERSION.SDK_INT == 28) // see b/357101113 in <lambda>()
80 if (DeviceInfo.isEmulator) { in <lambda>()
/benchmark/benchmark-common/src/main/java/androidx/benchmark/
DErrors.kt80 if (DeviceInfo.isEmulator) {
118 if (!DeviceInfo.isEmulator && DeviceInfo.isRooted && !CpuInfo.locked) {
172 } else if (Build.VERSION.SDK_INT == Build.VERSION_CODES.P && !DeviceInfo.isRooted) {
183 DeviceInfo.profileableEnforced &&
236 DeviceInfo.isRooted &&
DProfilerConfig.kt65 DeviceInfo.methodTracingAffectsMeasurements
DMicrobenchmark.kt181 check(DeviceInfo.artMainlineVersion != DeviceInfo.ART_MAINLINE_VERSION_UNDETECTED_ERROR) { in checkForErrors()
187 !DeviceInfo.methodTracingAffectsMeasurements || in checkForErrors()
250 enableTracing = !Arguments.dryRunMode && !DeviceInfo.misconfiguredForTracing,
/benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/
DBatteryCharge.kt20 import androidx.benchmark.DeviceInfo
28 if (DeviceInfo.initialBatteryPercent >= MIN_BATTERY_PERCENT) { in hasMinimumCharge()
DCompilationMode.kt25 import androidx.benchmark.DeviceInfo in <lambda>()
105 compileResetErrorString(packageName, output, DeviceInfo.isEmulator) in <lambda>()
255 return DeviceInfo.supportsRuntimeImages in <lambda>()
460 compileResetErrorString(packageName, output, DeviceInfo.isEmulator) in <lambda>()
505 DeviceInfo.isRooted && this == CompilationMode.Interpreted -> in assumeSupportedWithVmSettings()
512 DeviceInfo.isRooted && this != CompilationMode.Interpreted -> in assumeSupportedWithVmSettings()
DMacrobenchmark.kt28 import androidx.benchmark.DeviceInfo in <lambda>()
75 DeviceInfo.errors + in checkErrors()
99 DeviceInfo.profileableEnforced && in checkErrors()
155 hasError = DeviceInfo.misconfiguredForTracing, in checkErrors()
227 DeviceInfo.isEmulator in macrobenchmark()
DBaselineProfiles.kt25 import androidx.benchmark.DeviceInfo in <lambda>()
163 require(DeviceInfo.supportsBaselineProfileCaptureError == null) { in buildMacrobenchmarkScope()
164 DeviceInfo.supportsBaselineProfileCaptureError!! in buildMacrobenchmarkScope()
376 if (DeviceInfo.isEmulator) { in <lambda>()
DMacrobenchmarkScope.kt26 import androidx.benchmark.DeviceInfo in <lambda>()
372 if (DeviceInfo.verifyClearsRuntimeImage) { in <lambda>()
405 if (dropError != null && !DeviceInfo.isEmulator) { in <lambda>()
554 if (DeviceInfo.isRooted && !Shell.isSessionRooted()) { in <lambda>()
/benchmark/benchmark-macro/src/androidTest/java/androidx/benchmark/macro/
DKillSystemProcessTest.kt19 import androidx.benchmark.DeviceInfo
38 assumeTrue(DeviceInfo.isRooted && !DeviceInfo.isEmulator) in killSystemUiTest()
DRuntimeImageTest.kt20 import androidx.benchmark.DeviceInfo
73 assumeTrue("Test requires runtime image support", DeviceInfo.supportsRuntimeImages) in classLoadCount()
74 assumeTrue("Test requires class load tracing", DeviceInfo.supportsClassLoadTracing) in classLoadCount()
DArtMetricTest.kt19 import androidx.benchmark.DeviceInfo
50 artMainlineVersion = DeviceInfo.ART_MAINLINE_MIN_VERSION_CLASS_LOAD_TRACING - 1, in basic()
60 artMainlineVersion = DeviceInfo.ART_MAINLINE_MIN_VERSION_CLASS_LOAD_TRACING, in basic()
DBaselineProfilesTest.kt19 import androidx.benchmark.DeviceInfo
90 if (DeviceInfo.isEmulator) { in deviceSpecifier()
DMacrobenchmarkScopeTest.kt24 import androidx.benchmark.DeviceInfo in <lambda>()
105 if (DeviceInfo.isEmulator) { in <lambda>()
150 assumeTrue(DeviceInfo.isRooted) // codepath only works with root in <lambda>()
207 assumeTrue(Build.VERSION.SDK_INT > 23 || !DeviceInfo.isRooted) in <lambda>()
362 assumeTrue(Shell.isSessionRooted() && !DeviceInfo.isEmulator) in <lambda>()
DCompilationModeTest.kt20 import androidx.benchmark.DeviceInfo
105 assumeFalse(DeviceInfo.isEmulator) // Don't run these tests on an emulator. in reinstallTargetPackageTest()
DStartupTimingMetricTest.kt23 import androidx.benchmark.DeviceInfo in <lambda>()
191 assumeFalse(DeviceInfo.isEmulator) // TODO(b/255754739): address failures on Cuttlefish in <lambda>()
199 assumeFalse(DeviceInfo.isEmulator) // TODO(b/255754739): address failures on Cuttlefish in <lambda>()
/benchmark/benchmark-macro-junit4/src/androidTest/java/androidx/benchmark/macro/junit4/
DBaselineProfileRuleTest.kt22 import androidx.benchmark.DeviceInfo in <lambda>()
75 DeviceInfo.supportsBaselineProfileCaptureError, in <lambda>()
76 DeviceInfo.supportsBaselineProfileCaptureError == null in <lambda>()
113 DeviceInfo.supportsBaselineProfileCaptureError, in <lambda>()
114 DeviceInfo.supportsBaselineProfileCaptureError == null in <lambda>()
/benchmark/integration-tests/baselineprofile-library-producer/src/main/java/androidx/benchmark/integration/baselineprofile/library/producer/
DBaselineProfileTest.kt21 import androidx.benchmark.DeviceInfo
37 assumeTrue(DeviceInfo.isRooted || Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) in startupBaselineProfile()
/benchmark/integration-tests/baselineprofile-flavors-producer/src/paid/java/androidx/benchmark/integration/baselineprofile/flavors/producer/
DBaselineProfileTest.kt21 import androidx.benchmark.DeviceInfo
37 assumeTrue(DeviceInfo.isRooted || Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) in startupBaselineProfile()
/benchmark/integration-tests/baselineprofile-flavors-producer/src/free/java/androidx/benchmark/integration/baselineprofile/flavors/producer/
DBaselineProfileTest.kt21 import androidx.benchmark.DeviceInfo
37 assumeTrue(DeviceInfo.isRooted || Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) in startupBaselineProfile()
/benchmark/integration-tests/baselineprofile-producer/src/main/java/androidx/benchmark/integration/baselineprofile/producer/
DBaselineProfileTest.kt21 import androidx.benchmark.DeviceInfo
38 assumeTrue(DeviceInfo.isRooted || Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) in setUp()
/benchmark/benchmark/src/androidTest/java/androidx/benchmark/benchmark/
DCpuEventCounterBenchmark.kt22 import androidx.benchmark.DeviceInfo in <lambda>()
48 assumeFalse(DeviceInfo.isEmulator && Build.VERSION.SDK_INT == 28) // see b/357101113 in <lambda>()
/benchmark/benchmark-junit4/src/main/java/androidx/benchmark/junit4/
DBenchmarkRuleLegacy.kt26 import androidx.benchmark.DeviceInfo
184 DeviceInfo.isEmulator in <lambda>()
235 enableTracing = !Arguments.dryRunMode && !DeviceInfo.misconfiguredForTracing, in <lambda>()
DBenchmarkRule.kt24 import androidx.benchmark.DeviceInfo in <lambda>()
190 DeviceInfo.isEmulator in <lambda>()

12