Home
last modified time | relevance | path

Searched refs:getConfiguration (Results 1 – 25 of 85) sorted by relevance

1234

/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverTest.java153 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions()
164 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions()
180 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions()
210 (getContext().getResources().getConfiguration().uiMode in testGlobalSettings()
233 (getContext().getResources().getConfiguration().uiMode in testDeviceConfig()
257 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig()
265 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig()
275 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig()
/cts/tests/tests/app/src/android/app/cts/
DApplyOverrideConfigurationTest.java57 final Configuration config = getActivity().getResources().getConfiguration(); in testOverriddenConfigurationIsPassedIntoCallback()
70 final Configuration newConfig = getActivity().getResources().getConfiguration(); in testOverriddenConfigurationIsPassedIntoCallback()
99 return (context.getResources().getConfiguration().uiMode in isVrHeadset()
/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()
123 private static Configuration getConfiguration() { in getConfiguration() method in FeatureUtil
124 return getContext().getResources().getConfiguration(); in getConfiguration()
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java83 final Configuration c = r.getConfiguration(); in testResources()
251 final Configuration cfg = new Configuration(res.getConfiguration()); in testUpdateConfiguration()
256 assertEquals(5.0f, res.getConfiguration().fontScale, 0.001f); in testUpdateConfiguration()
261 res.getConfiguration().setLocales(null); in testUpdateConfiguration_emptyLocaleIsOverridden()
262 assertTrue(res.getConfiguration().getLocales().isEmpty()); in testUpdateConfiguration_emptyLocaleIsOverridden()
269 assertEquals(LocaleList.getDefault(), res.getConfiguration().getLocales()); in testUpdateConfiguration_emptyLocaleIsOverridden()
274 final Configuration cfg = new Configuration(res.getConfiguration()); in testUpdateConfiguration_copyLocales()
282 final LocaleList locales = res.getConfiguration().getLocales(); in testUpdateConfiguration_copyLocales()
289 final Configuration cfg = new Configuration(res.getConfiguration()); in testUpdateConfiguration_emptyAfterUpdate()
293 assertEquals(LocaleList.forLanguageTags("az-Arab"), res.getConfiguration().getLocales()); in testUpdateConfiguration_emptyAfterUpdate()
[all …]
DPluralResourcesTest.java44 config.updateFrom(mResources.getConfiguration()); in resourcesForLanguage()
/cts/tests/tests/text/src/android/text/format/cts/
DLocaleUtils.java28 Locale currentLocale = context.getResources().getConfiguration().locale; in isCurrentLocale()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DConfigurationDeviceInfo.java29 Configuration con = getInstrumentation().getContext().getResources().getConfiguration(); in collectDeviceInfo()
DScreenDeviceInfo.java57 Configuration configuration = getContext().getResources().getConfiguration(); in collectDeviceInfo()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapDrawableTest.java72 final int densityDpi = res.getConfiguration().densityDpi; in testPreloadDensity()
144 config.setTo(res.getConfiguration()); in setResourcesDensity()
/cts/tests/tests/opengl/src/android/opengl/cts/
DOpenGlEsVersionTest.java191 final boolean isVrHeadset = (mActivity.getResources().getConfiguration().uiMode in testRequiredExtensionsForVrHighPerformance()
297 boolean isHdrCapable = mActivity.getResources().getConfiguration().isScreenHdr(); in testRequiredEglExtensionsForHdrCapableDisplay()
324 mActivity.getResources().getConfiguration().isScreenWideColorGamut(); in testRequiredGLESVersion()
356 … boolean isWideColorCapable = mActivity.getResources().getConfiguration().isScreenWideColorGamut(); in testRequiredEglExtensionsForWideColorDisplay()
/cts/hostsidetests/theme/app/src/android/theme/app/
DAssetBucketVerifier.java56 int deviceDensityDpi = context.getResources().getConfiguration().densityDpi; in verifyAssetBucket()
/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java144 final int realDensity = mContext.getResources().getConfiguration().densityDpi; in testApplyOverrideConfiguration()
154 Configuration actualConfiguration = contextThemeWrapper.getResources().getConfiguration(); in testApplyOverrideConfiguration()
/cts/tests/tests/nativehardware/src/android/hardware/nativehardware/cts/
DHardwareBufferVrTest.java29 boolean mIsVrHeadset = (getContext().getResources().getConfiguration().uiMode in testLayeredBuffersForVr()
/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettings_SystemTest.java83 System.getConfiguration(cr, cfg); in testSystemSettings()
121 System.getConfiguration(cr, cfg); in testSystemSettings()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DAttachedContextActivity.java54 final Configuration configuration = resources.getConfiguration(); in applyLocale()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DVectorDrawableSizeTest.java69 final int densityDpi = mResources.getConfiguration().densityDpi; in testVectorDrawableSize()
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanPreTransformCtsActivity.java62 if (getResources().getConfiguration().orientation in setActivityOrientation()
/cts/tests/tests/theme/src/android/theme/cts/
DThemeRebaseTest.java53 mInitialConfig = new Configuration(mContext.getResources().getConfiguration()); in before()
DWatchPercentageScreenDimenTest.java50 mConfig = mContext.getResources().getConfiguration(); in setUp()
DDeviceDefaultTest.java150 Configuration config = context.getResources().getConfiguration(); in isLargeScreen()
/cts/tests/tests/text/src/android/text/cts/
DAutoTextTest.java51 Configuration config = mContext.getResources().getConfiguration(); in setup()
/cts/tests/tests/systemintents/src/android/systemintents/cts/
DTestSystemIntents.java113 final Configuration config = mContext.getResources().getConfiguration(); in testSystemIntents()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DAbstractTestListActivity.java81 if ((getResources().getConfiguration().uiMode & Configuration.UI_MODE_TYPE_MASK) in onCreate()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DBarTestUtils.java110 final Configuration config = context.getResources().getConfiguration(); in isRunningInVr()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowMetricsActivityTests.java274 final boolean isFreeForm = activity.getResources().getConfiguration().windowConfiguration in assertMetricsMatchesLayout()
315 activity.getResources().getConfiguration().windowConfiguration in assertMetricsValidityForNonresizableActivity()

1234