Home
last modified time | relevance | path

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

12345678910>>...17

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DConfigurationContainerTests.java63 assertEquals(EMPTY, root.getConfiguration()); in testConfigurationInit()
69 assertEquals(EMPTY, child1.getConfiguration()); in testConfigurationInit()
78 assertEquals(rootOverrideConfig, child2.getConfiguration()); in testConfigurationInit()
91 assertEquals(rootFullConfig, child3.getConfiguration()); in testConfigurationInit()
107 final Configuration mergedOverrideConfig = new Configuration(root.getConfiguration()); in testConfigurationChangeOnAddRemove()
114 assertEquals(mergedOverrideConfig, child.getConfiguration()); in testConfigurationChangeOnAddRemove()
119 assertEquals(rootOverrideConfig, root.getConfiguration()); in testConfigurationChangeOnAddRemove()
133 assertEquals(mergedOverrideConfig, child.getConfiguration()); in testConfigurationChangeOnAddRemove()
176 assertEquals(rootOverrideConfig, root.getConfiguration()); in testConfigurationChangePropagation()
180 assertEquals(mergedConfig1, child1.getConfiguration()); in testConfigurationChangePropagation()
[all …]
DActivityTaskManagerServiceTests.java457 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp; in testSupportsMultiWindow_nonResizable()
463 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_nonResizable()
502 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp; in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport()
508 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport()
532 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_landscape_checkActivityMinWidth()
533 tda.getConfiguration().screenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_landscape_checkActivityMinWidth()
534 tda.getConfiguration().orientation = ORIENTATION_LANDSCAPE; in testSupportsMultiWindow_landscape_checkActivityMinWidth()
539 tda.getConfiguration().screenWidthDp = (int) Math.ceil( in testSupportsMultiWindow_landscape_checkActivityMinWidth()
565 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_portrait_checkActivityMinHeight()
566 tda.getConfiguration().screenHeightDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_portrait_checkActivityMinHeight()
[all …]
DInputMethodDialogWindowContextTest.java100 return dc.getImeContainer().getConfiguration(); in setUp()
149 eq(mSecondaryDisplay.mFirstRoot.getConfiguration())); in testGetSettingsContextOnDualDisplayContent()
151 eq(mSecondaryDisplay.mFirstRoot.getConfiguration()), in testGetSettingsContextOnDualDisplayContent()
162 eq(mSecondaryDisplay.mSecondRoot.getConfiguration())); in testGetSettingsContextOnDualDisplayContent()
164 eq(mSecondaryDisplay.mSecondRoot.getConfiguration()), in testGetSettingsContextOnDualDisplayContent()
DWindowProcessControllerTests.java146 assertEquals(displayBounds, mWpc.getConfiguration().windowConfiguration.getBounds()); in testDisplayAreaConfigurationListener_verifyConfig()
152 assertEquals(resizeImeBounds, mWpc.getConfiguration().windowConfiguration.getBounds()); in testDisplayAreaConfigurationListener_verifyConfig()
157 assertEquals(displayBounds, mWpc.getConfiguration().windowConfiguration.getBounds()); in testDisplayAreaConfigurationListener_verifyConfig()
209 final Configuration expectedConfig = mAtm.mRootWindowContainer.getConfiguration(); in testConfigurationForSecondaryScreenDisplayArea()
210 expectedConfig.updateFrom(imeContainer.getConfiguration()); in testConfigurationForSecondaryScreenDisplayArea()
211 assertEquals(expectedConfig, mWpc.getConfiguration()); in testConfigurationForSecondaryScreenDisplayArea()
282 mRootWindowContainer.getConfiguration().seq = globalSeq; in testProcessLevelConfiguration()
283 invertOrientation(mWpc.getConfiguration()); in testProcessLevelConfiguration()
288 mWpc.getConfiguration().seq, globalSeq); in testProcessLevelConfiguration()
296 final Configuration newConfig = new Configuration(mWpc.getConfiguration()); in testCachedStateConfigurationChange()
DDisplayAreaGroupTest.java122 assertThat(mDisplayAreaGroup.getConfiguration().orientation) in testResolveOverrideConfiguration_reverseOrientationWhenDifferentFromParentRoot()
128 assertThat(mDisplayAreaGroup.getConfiguration().orientation) in testResolveOverrideConfiguration_reverseOrientationWhenDifferentFromParentRoot()
134 assertThat(mDisplayAreaGroup.getConfiguration().orientation) in testResolveOverrideConfiguration_reverseOrientationWhenDifferentFromParentRoot()
DSizeCompatTests.java405 final Rect opaqueBounds = mActivity.getConfiguration().windowConfiguration.getBounds(); in testApplyStrategyToTranslucentActivities()
462 final Rect opaqueBounds = mActivity.getConfiguration().windowConfiguration.getBounds(); in testApplyStrategyToMultipleTranslucentActivities()
663 final int originalDpi = mActivity.getConfiguration().densityDpi; in testFixedScreenConfigurationWhenMovingToDisplay()
670 assertEquals(originalDpi, mActivity.getConfiguration().densityDpi); in testFixedScreenConfigurationWhenMovingToDisplay()
712 assertEquals(ORIENTATION_LANDSCAPE, display.getConfiguration().orientation); in testFixedScreenBoundsWhenDisplaySizeChanged()
713 assertEquals(Configuration.ORIENTATION_PORTRAIT, mActivity.getConfiguration().orientation); in testFixedScreenBoundsWhenDisplaySizeChanged()
728 assertEquals(Configuration.ORIENTATION_PORTRAIT, display.getConfiguration().orientation); in testFixedScreenBoundsWhenDisplaySizeChanged()
729 assertEquals(Configuration.ORIENTATION_PORTRAIT, mActivity.getConfiguration().orientation); in testFixedScreenBoundsWhenDisplaySizeChanged()
766 mActivity.onConfigurationChanged(mTask.getConfiguration()); in testLetterboxFullscreenBoundsAndNotImeAttachable()
885 assertThat(mActivity.getConfiguration().windowConfiguration.getMaxBounds().height()) in testFixedOrientationRotateCutoutDisplay()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayAdjustmentsTests.java41 assertEquals(Configuration.EMPTY, emptyAdjustments.getConfiguration()); in testDefaultConstructor_hasEmptyConfiguration()
48 assertEquals(Configuration.EMPTY, emptyAdjustments.getConfiguration()); in testConfigurationConstructor_nullConfigurationBecomesEmpty()
57 assertEquals(configuration, adjustments.getConfiguration()); in testConfigurationConstructor_copiesConfiguration()
68 assertEquals(configuration, newAdjustments.getConfiguration()); in testDisplayAdjustmentsConstructor_copiesConfiguration()
/frameworks/av/services/oboeservice/fuzzer/
Doboeservice_fuzzer.cpp359 request.getConfiguration().setFormat((audio_format_t)( in process()
372 request.getConfiguration().setDeviceId(fdp.ConsumeIntegral<int32_t>()); in process()
373 request.getConfiguration().setSampleRate(fdp.ConsumeIntegral<int32_t>()); in process()
374 request.getConfiguration().setChannelMask((aaudio_channel_mask_t)( in process()
379 request.getConfiguration().setDirection( in process()
382 request.getConfiguration().setSharingMode( in process()
387 request.getConfiguration().setUsage( in process()
391 request.getConfiguration().setContentType( in process()
395 request.getConfiguration().setInputPreset( in process()
399 request.getConfiguration().setPrivacySensitive(fdp.ConsumeBool()); in process()
[all …]
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DTaskContainer.java91 mConfiguration = taskProperties.getConfiguration(); in TaskContainer()
111 Configuration getConfiguration() { in getConfiguration() method in TaskContainer
122 mConfiguration.setTo(info.getConfiguration()); in updateTaskFragmentParentInfo()
160 return getConfiguration().windowConfiguration.getWindowingMode(); in getWindowingMode()
242 Configuration getConfiguration() { in getConfiguration() method in TaskContainer.TaskProperties
267 activity.getResources().getConfiguration()); in getTaskPropertiesFromActivity()
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp104 request.getConfiguration().setFormat(AUDIO_FORMAT_PCM_FLOAT); in open()
119 request.getConfiguration().setDeviceId(getDeviceId()); in open()
120 request.getConfiguration().setSampleRate(getSampleRate()); in open()
121 request.getConfiguration().setDirection(getDirection()); in open()
122 request.getConfiguration().setSharingMode(getSharingMode()); in open()
123 request.getConfiguration().setChannelMask(getChannelMask()); in open()
125 request.getConfiguration().setUsage(getUsage()); in open()
126 request.getConfiguration().setContentType(getContentType()); in open()
127 request.getConfiguration().setSpatializationBehavior(getSpatializationBehavior()); in open()
128 request.getConfiguration().setIsContentSpatialized(isContentSpatialized()); in open()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/
DConfigurationInternalTest.java83 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_unrestricted()
109 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_unrestricted()
151 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_restricted()
178 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_restricted()
218 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_autoDetectNotSupported()
242 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_autoDetectNotSupported()
286 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_geoDetectNotSupported()
310 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_geoDetectNotSupported()
/frameworks/base/core/tests/coretests/src/com/android/internal/content/res/
DOverlayConfigTest.java84 final OverlayConfig.Configuration config = overlayConfig.getConfiguration(packageName); in assertConfig()
349 OverlayConfig.Configuration o1 = overlayConfig.getConfiguration("one"); in testMerge()
355 OverlayConfig.Configuration o2 = overlayConfig.getConfiguration("two"); in testMerge()
361 OverlayConfig.Configuration o3 = overlayConfig.getConfiguration("three"); in testMerge()
367 OverlayConfig.Configuration o4 = overlayConfig.getConfiguration("four"); in testMerge()
628 OverlayConfig.Configuration o1 = overlayConfig.getConfiguration("one"); in testOverlayManifest_withRequiredSystemPropertyAndValueNotMatched()
631 OverlayConfig.Configuration o2 = overlayConfig.getConfiguration("two"); in testOverlayManifest_withRequiredSystemPropertyAndValueNotMatched()
634 OverlayConfig.Configuration o3 = overlayConfig.getConfiguration("three"); in testOverlayManifest_withRequiredSystemPropertyAndValueNotMatched()
659 OverlayConfig.Configuration o1 = overlayConfig.getConfiguration("one"); in testOverlayManifest_withRequiredSystemPropertyAndValueMatched()
662 OverlayConfig.Configuration o2 = overlayConfig.getConfiguration("two"); in testOverlayManifest_withRequiredSystemPropertyAndValueMatched()
[all …]
/frameworks/base/core/tests/mockingcoretests/src/android/view/
DDisplayTest.java97 mApplicationContext.getResources().getConfiguration().windowConfiguration.setAppBounds( in setupTests()
99 mApplicationContext.getResources().getConfiguration().windowConfiguration.setMaxBounds( in setupTests()
101 mApplicationContext.getResources().getConfiguration().windowConfiguration in setupTests()
247 mApplicationContext.getResources().getConfiguration().windowConfiguration in testGetRealSize_resourcesPortraitSandboxed_matchesDisplayAreaSandboxBounds()
274 mApplicationContext.getResources().getConfiguration().windowConfiguration in testGetRealSize_resourcesLandscapeSandboxed_matchesDisplayAreaSandboxBounds()
367 mApplicationContext.getResources().getConfiguration().windowConfiguration in testGetRealMetrics_resourcesPortraitSandboxed_matchesDisplayAreaSandboxBounds()
394 mApplicationContext.getResources().getConfiguration().windowConfiguration in testGetRealMetrics_resourcesLandscapeSandboxed_matchesDisplayAreaSandboxBounds()
432 resources.getConfiguration().windowConfiguration.setMaxBounds(bounds); in setMaxBoundsSandboxed()
488 resources.getConfiguration().windowConfiguration.setDisplayRotation(rotation); in setLocalDisplayInConfig()
/frameworks/layoutlib/bridge/tests/src/com/android/ide/common/resources/deprecated/
DResourceFile.java43 public FolderConfiguration getConfiguration() { in getConfiguration() method in ResourceFile
44 return mFolder.getConfiguration(); in getConfiguration()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java179 assertEquals(expectedConfig, resources1.getConfiguration()); in testUpdateConfigurationUpdatesAllAssetManagers()
180 assertEquals(expectedConfig, resources2.getConfiguration()); in testUpdateConfigurationUpdatesAllAssetManagers()
181 assertEquals(expectedConfig, resources3.getConfiguration()); in testUpdateConfigurationUpdatesAllAssetManagers()
261 assertEquals(expectedConfig1, resources1.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
270 assertEquals(expectedConfig2, resources2.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
277 assertEquals(expectedConfig1, resources1.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
280 assertEquals(expectedConfig2, resources2.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
DResourcesLocaleTest.java81 resources.getConfiguration().getLocales().get(0)); in testEnglishIsAlwaysConsideredSupported()
98 resources.getConfiguration().getLocales().get(0)); in testSelectFirstSupportedLanguage()
/frameworks/base/core/java/android/text/format/
DDateFormat.java203 return is24HourLocale(context.getResources().getConfiguration().locale); in is24HourFormat()
282 final Locale locale = context.getResources().getConfiguration().locale; in getTimeFormat()
307 context.getResources().getConfiguration().locale); in getTimeFormatString()
320 final Locale locale = context.getResources().getConfiguration().locale; in getDateFormat()
331 final Locale locale = context.getResources().getConfiguration().locale; in getLongDateFormat()
342 final Locale locale = context.getResources().getConfiguration().locale; in getMediumDateFormat()
405 final Locale locale = context.getResources().getConfiguration().locale; in getDateFormatString()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityThreadTest.java426 new Configuration(appContext.getResources().getConfiguration()); in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation()
441 .getConfiguration().orientation; in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation()
458 virtualDisplayContext.getResources().getConfiguration().orientation); in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation()
462 Configuration activityThreadConfig = activityThread.getConfiguration(); in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation()
466 .getConfiguration(); in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation()
482 new Configuration(activity.getResources().getConfiguration()); in testActivityOrientationChanged_DoesntOverrideVirtualDisplayOrientation()
497 .getConfiguration().orientation; in testActivityOrientationChanged_DoesntOverrideVirtualDisplayOrientation()
515 virtualDisplayContext.getResources().getConfiguration().orientation); in testActivityOrientationChanged_DoesntOverrideVirtualDisplayOrientation()
526 new Configuration(activity.getResources().getConfiguration()); in testHandleConfigurationChanged_DoesntOverrideActivityConfig()
531 new Configuration(oldAppResources.getConfiguration()); in testHandleConfigurationChanged_DoesntOverrideActivityConfig()
[all …]
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java46 mConfiguration.setTo(daj.getConfiguration()); in DisplayAdjustments()
83 public Configuration getConfiguration() { in getConfiguration() method in DisplayAdjustments
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleIconFactory.java42 super(context, context.getResources().getConfiguration().densityDpi, in BubbleIconFactory()
54 int density = context.getResources().getConfiguration().densityDpi; in getBubbleDrawable()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBridgeContextTest.java63 Configuration configuration = RenderAction.getConfiguration(params); in basic()
110 Configuration configuration = RenderAction.getConfiguration(params); in checkNoErrorWhenUsingDefaults()
143 Configuration configuration = RenderAction.getConfiguration(params); in noExceptionForCustomService()
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java53 final Configuration config = mContext.getResources().getConfiguration(); in getMaxActionButtons()
89 final Configuration configuration = mContext.getResources().getConfiguration(); in hasEmbeddedTabs()
/frameworks/base/core/java/android/window/
DTaskFragmentParentInfo.java46 mConfiguration.setTo(info.getConfiguration()); in TaskFragmentParentInfo()
53 public Configuration getConfiguration() { in getConfiguration() method in TaskFragmentParentInfo
/frameworks/native/services/inputflinger/reader/mapper/
DRotaryEncoderInputMapper.cpp43 if (!getDeviceContext().getConfiguration().tryGetProperty(String8("device.res"), res)) { in populateDeviceInfo()
46 if (!getDeviceContext().getConfiguration().tryGetProperty(String8("device.scalingFactor"), in populateDeviceInfo()
/frameworks/base/core/java/android/accessibilityservice/util/
DAccessibilityUtils.java120 final int screenWidthDp = resources.getConfiguration().screenWidthDp; in getScreenWidthPixels()
134 final int screenHeightDp = resources.getConfiguration().screenHeightDp; in getScreenHeightPixels()

12345678910>>...17