/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/ |
D | BatterySaverTest.java | 153 (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/ |
D | ApplyOverrideConfigurationTest.java | 57 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/ |
D | FeatureUtil.java | 102 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/ |
D | ResourcesTest.java | 83 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 …]
|
D | PluralResourcesTest.java | 44 config.updateFrom(mResources.getConfiguration()); in resourcesForLanguage()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | LocaleUtils.java | 28 Locale currentLocale = context.getResources().getConfiguration().locale; in isCurrentLocale()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | ConfigurationDeviceInfo.java | 29 Configuration con = getInstrumentation().getContext().getResources().getConfiguration(); in collectDeviceInfo()
|
D | ScreenDeviceInfo.java | 57 Configuration configuration = getContext().getResources().getConfiguration(); in collectDeviceInfo()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapDrawableTest.java | 72 final int densityDpi = res.getConfiguration().densityDpi; in testPreloadDensity() 144 config.setTo(res.getConfiguration()); in setResourcesDensity()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | OpenGlEsVersionTest.java | 191 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/ |
D | AssetBucketVerifier.java | 56 int deviceDensityDpi = context.getResources().getConfiguration().densityDpi; in verifyAssetBucket()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ContextThemeWrapperTest.java | 144 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/ |
D | HardwareBufferVrTest.java | 29 boolean mIsVrHeadset = (getContext().getResources().getConfiguration().uiMode in testLayeredBuffersForVr()
|
/cts/tests/tests/provider/src/android/provider/cts/settings/ |
D | Settings_SystemTest.java | 83 System.getConfiguration(cr, cfg); in testSystemSettings() 121 System.getConfiguration(cr, cfg); in testSystemSettings()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
D | AttachedContextActivity.java | 54 final Configuration configuration = resources.getConfiguration(); in applyLocale()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | VectorDrawableSizeTest.java | 69 final int densityDpi = mResources.getConfiguration().densityDpi; in testVectorDrawableSize()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | VulkanPreTransformCtsActivity.java | 62 if (getResources().getConfiguration().orientation in setActivityOrientation()
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | ThemeRebaseTest.java | 53 mInitialConfig = new Configuration(mContext.getResources().getConfiguration()); in before()
|
D | WatchPercentageScreenDimenTest.java | 50 mConfig = mContext.getResources().getConfiguration(); in setUp()
|
D | DeviceDefaultTest.java | 150 Configuration config = context.getResources().getConfiguration(); in isLargeScreen()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AutoTextTest.java | 51 Configuration config = mContext.getResources().getConfiguration(); in setup()
|
/cts/tests/tests/systemintents/src/android/systemintents/cts/ |
D | TestSystemIntents.java | 113 final Configuration config = mContext.getResources().getConfiguration(); in testSystemIntents()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | AbstractTestListActivity.java | 81 if ((getResources().getConfiguration().uiMode & Configuration.UI_MODE_TYPE_MASK) in onCreate()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | BarTestUtils.java | 110 final Configuration config = context.getResources().getConfiguration(); in isRunningInVr()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowMetricsActivityTests.java | 274 final boolean isFreeForm = activity.getResources().getConfiguration().windowConfiguration in assertMetricsMatchesLayout() 315 activity.getResources().getConfiguration().windowConfiguration in assertMetricsValidityForNonresizableActivity()
|