Home
last modified time | relevance | path

Searched refs:uiMode (Results 1 – 25 of 34) sorted by relevance

12

/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverTest.java207 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions()
218 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions()
234 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions()
268 (getContext().getResources().getConfiguration().uiMode in testGlobalSettings()
295 (getContext().getResources().getConfiguration().uiMode in testDeviceConfig()
323 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig()
331 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig()
341 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/display/
DDisplay.kt53 val uiMode = TestApis.context().androidContextAsUser( in display() constant
56 return when (uiMode) { in display()
59 else -> throw Exception("Unsupported display theme value $uiMode") in display()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DProtoExtractors.java46 config.uiMode = proto.uiMode; in extract()
DBarTestUtils.java99 return (config.uiMode & Configuration.UI_MODE_TYPE_MASK) in isRunningInVr()
/cts/tests/app/src/android/app/cts/
DUiModeManagerTest.java321 int uiMode = getContext().getResources().getConfiguration().uiMode & in testSetNightModeActivatedForCustomMode_modeAuto_activateAtBedtime_shouldNotActivateNightMode() local
327 assertVisibleNightModeInConfiguration(uiMode); in testSetNightModeActivatedForCustomMode_modeAuto_activateAtBedtime_shouldNotActivateNightMode()
333 int uiMode = getContext().getResources().getConfiguration().uiMode & in testSetNightModeActivatedForCustomMode_customTypeSchedule_activateAtBedtime_shouldNotActivateNightMode() local
339 assertVisibleNightModeInConfiguration(uiMode); in testSetNightModeActivatedForCustomMode_customTypeSchedule_activateAtBedtime_shouldNotActivateNightMode()
966 int uiMode = getContext().getResources().getConfiguration().uiMode; in assertVisibleNightModeInConfiguration() local
967 int flags = uiMode & Configuration.UI_MODE_NIGHT_MASK; in assertVisibleNightModeInConfiguration()
/cts/tests/tests/nativehardware/src/android/hardware/nativehardware/cts/
DHardwareBufferVrTest.java29 boolean mIsVrHeadset = (getContext().getResources().getConfiguration().uiMode in testLayeredBuffersForVr()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt98 if (resources.configuration.uiMode != mode) { in hashCode()
100 newConfig.uiMode = mode in hashCode()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt92 if (resources.configuration.uiMode != mode) { in hashCode()
94 newConfig.uiMode = mode in hashCode()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFeatureUtil.java102 int maskedUiMode = (getConfiguration().uiMode & Configuration.UI_MODE_TYPE_MASK); in isVrHeadset()
/cts/tests/tests/theme/src/android/theme/cts/
DWatchPercentageScreenDimenTest.java43 return mConfig.isScreenRound() && (mConfig.uiMode & Configuration.UI_MODE_TYPE_WATCH) in isRoundWatch()
/cts/tests/tests/systemintents/src/android/systemintents/cts/
DTestSystemIntents.java114 if ((config.uiMode & Configuration.UI_MODE_TYPE_WATCH) != 0) { in testSystemIntents()
/cts/tests/sensor/src/android/hardware/cts/
DSensorSupportTest.java57 mIsVrHeadset = (getContext().getResources().getConfiguration().uiMode in setUp()
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/
DUtils.java54 return (getContext().getResources().getConfiguration().uiMode in isWatch()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DAbstractTestListActivity.java94 if ((getResources().getConfiguration().uiMode & Configuration.UI_MODE_TYPE_MASK) in onCreate()
/cts/tests/tests/content/src/android/content/res/cts/
DConfigurationTest.java252 cfg1.uiMode = Configuration.UI_MODE_TYPE_WATCH in testGenerateDiff()
254 cfg2.uiMode = Configuration.UI_MODE_TYPE_NORMAL in testGenerateDiff()
387 config.uiMode = 1; in testDiff()
503 assertEquals(Configuration.UI_MODE_TYPE_UNDEFINED, config.uiMode); in testSetToDefaults()
533 assertEquals(Configuration.UI_MODE_TYPE_UNDEFINED, config.uiMode); in testUnset()
DResourcesTest.java530 dayConfiguration.uiMode = dayConfiguration.uiMode in testGetDrawable_ColorStateListConfigurations()
534 nightConfiguration.uiMode = nightConfiguration.uiMode in testGetDrawable_ColorStateListConfigurations()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DActivityManagerGetConfigTests.java279 config.uiMode, resConfig.configuration.uiMode); in checkResourceConfig()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DHandleSplashScreenExitActivity.java125 final int configNightMode = newConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK; in onConfigurationChanged()
/cts/tests/tests/content/src/android/content/res/cts/config/
DOverrideConfigTest.kt61 (context.resources.configuration.uiMode and Configuration.UI_MODE_TYPE_MASK in setUpRotation()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DSuspendPackageTest.java161 return (getInstrumentation().getContext().getResources().getConfiguration().uiMode in isWatch()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DAlertWindowsImportanceTests.java259 if ((context.getResources().getConfiguration().uiMode & Configuration.UI_MODE_TYPE_MASK) in isRunningInVR()
/cts/tests/tests/content/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/
DCtsSyncAccountAccessOtherCertTestCases.java238 return ((context.getResources().getConfiguration().uiMode & in isRunningInVR()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java226 return (context.getResources().getConfiguration().uiMode & in isRunningInVR()
/cts/tests/tests/opengl/src/android/opengl/cts/
DOpenGlEsVersionTest.java187 final boolean isVrHeadset = (mActivity.getResources().getConfiguration().uiMode in testRequiredExtensionsForVrHighPerformance()
/cts/tests/tests/telecom/src/android/telecom/cts/
DBaseTelecomTestWithMockServices.java2266 public void assertUiMode(final int uiMode) {
2271 return uiMode;
2280 "Expected ui mode " + uiMode

12