/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ConfigurationContainerTests.java | 61 assertEquals(EMPTY, root.getConfiguration()); in testConfigurationInit() 67 assertEquals(EMPTY, child1.getConfiguration()); in testConfigurationInit() 76 assertEquals(rootOverrideConfig, child2.getConfiguration()); in testConfigurationInit() 89 assertEquals(rootFullConfig, child3.getConfiguration()); in testConfigurationInit() 105 final Configuration mergedOverrideConfig = new Configuration(root.getConfiguration()); in testConfigurationChangeOnAddRemove() 112 assertEquals(mergedOverrideConfig, child.getConfiguration()); in testConfigurationChangeOnAddRemove() 117 assertEquals(rootOverrideConfig, root.getConfiguration()); in testConfigurationChangeOnAddRemove() 131 assertEquals(mergedOverrideConfig, child.getConfiguration()); in testConfigurationChangeOnAddRemove() 174 assertEquals(rootOverrideConfig, root.getConfiguration()); in testConfigurationChangePropagation() 178 assertEquals(mergedConfig1, child1.getConfiguration()); in testConfigurationChangePropagation() [all …]
|
D | WindowProcessControllerTests.java | 157 final Configuration expectedConfig = mService.mRootWindowContainer.getConfiguration(); in testConfigurationForSecondaryScreen() 158 expectedConfig.updateFrom(display.getConfiguration()); in testConfigurationForSecondaryScreen() 159 assertEquals(expectedConfig, mWpc.getConfiguration()); in testConfigurationForSecondaryScreen() 166 Configuration tmpConfig = new Configuration(mWpc.getConfiguration()); in testDelayingConfigurationChange() 171 Configuration originalConfig = new Configuration(mWpc.getConfiguration()); in testDelayingConfigurationChange() 178 Configuration newConfig = new Configuration(mWpc.getConfiguration()); in testDelayingConfigurationChange() 271 mRootWindowContainer.getConfiguration().seq = globalSeq; in testProcessLevelConfiguration() 272 invertOrientation(mWpc.getConfiguration()); in testProcessLevelConfiguration() 277 mWpc.getConfiguration().seq, globalSeq); in testProcessLevelConfiguration()
|
D | SizeCompatTests.java | 121 final int density = mActivity.getConfiguration().densityDpi; in testKeepBoundsWhenChangingFromFreeformToFullscreen() 132 assertEquals(density, mActivity.getConfiguration().densityDpi); in testKeepBoundsWhenChangingFromFreeformToFullscreen() 200 final int originalDpi = mActivity.getConfiguration().densityDpi; in testFixedScreenConfigurationWhenMovingToDisplay() 207 assertEquals(originalDpi, mActivity.getConfiguration().densityDpi); in testFixedScreenConfigurationWhenMovingToDisplay() 257 mActivity.onConfigurationChanged(mTask.getConfiguration()); in testLetterboxFullscreenBoundsAndNotImeAttachable() 400 mActivity.getConfiguration().screenLayout & layoutMask); in testFixedScreenLayoutSizeBits() 402 mTask.getConfiguration().screenLayout = Configuration.SCREENLAYOUT_LAYOUTDIR_RTL in testFixedScreenLayoutSizeBits() 404 mActivity.onConfigurationChanged(mTask.getConfiguration()); in testFixedScreenLayoutSizeBits() 408 mActivity.getConfiguration().screenLayout & layoutMask); in testFixedScreenLayoutSizeBits() 533 mActivity.mDisplayContent.getConfiguration().orientation); in testLaunchWithFixedRotationTransform() [all …]
|
D | ActivityRecordTests.java | 296 mTask.onRequestedOverrideConfigurationChanged(mTask.getConfiguration()); in testSetsRelaunchReason_NotDragResizing() 298 mActivity.getConfiguration())); in testSetsRelaunchReason_NotDragResizing() 301 final Configuration newConfig = new Configuration(mTask.getConfiguration()); in testSetsRelaunchReason_NotDragResizing() 319 mTask.onRequestedOverrideConfigurationChanged(mTask.getConfiguration()); in testSetsRelaunchReason_DragResizing() 321 mActivity.getConfiguration())); in testSetsRelaunchReason_DragResizing() 324 final Configuration newConfig = new Configuration(mTask.getConfiguration()); in testSetsRelaunchReason_DragResizing() 344 mTask.onRequestedOverrideConfigurationChanged(mTask.getConfiguration()); in testSetsRelaunchReason_NonResizeConfigChanges() 346 mActivity.getConfiguration())); in testSetsRelaunchReason_NonResizeConfigChanges() 349 final Configuration newConfig = new Configuration(mTask.getConfiguration()); in testSetsRelaunchReason_NonResizeConfigChanges() 371 mActivity.getConfiguration())); in testSetRequestedOrientationUpdatesConfiguration() [all …]
|
D | RecentsAnimationControllerTest.java | 159 mDefaultDisplay.getConfiguration().windowConfiguration.setRotation( in testIncludedApps_expectTargetAndVisible() 182 mDefaultDisplay.getConfiguration().windowConfiguration.setRotation( in testWallpaperIncluded_expectTarget() 205 mDefaultDisplay.getConfiguration().windowConfiguration.setRotation( in testWallpaperAnimatorCanceled_expectAnimationKeepsRunning() 341 mDefaultDisplay.getConfiguration().orientation); in testRecentViewInFixedPortraitWhenTopAppInLandscape() 349 homeActivity.getConfiguration().orientation); in testRecentViewInFixedPortraitWhenTopAppInLandscape() 462 mDefaultDisplay.getConfiguration().windowConfiguration.setRotation( in testWallpaperHasFixedRotationApplied() 482 wallpapers.get(0).getConfiguration().orientation); in testWallpaperHasFixedRotationApplied()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 158 assertEquals(expectedConfig, resources1.getConfiguration()); in testUpdateConfigurationUpdatesAllAssetManagers() 159 assertEquals(expectedConfig, resources2.getConfiguration()); in testUpdateConfigurationUpdatesAllAssetManagers() 160 assertEquals(expectedConfig, resources3.getConfiguration()); in testUpdateConfigurationUpdatesAllAssetManagers() 240 assertEquals(expectedConfig1, resources1.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 249 assertEquals(expectedConfig2, resources2.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 257 assertEquals(expectedConfig1, resources1.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 260 assertEquals(expectedConfig2, resources2.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 278 adjustments -> adjustments.getConfiguration().densityDpi = overrideDisplayDensity); in testOverrideDisplayAdjustments() 283 resources.getDisplayAdjustments().getConfiguration().densityDpi); in testOverrideDisplayAdjustments() 291 resources.getDisplayAdjustments().getConfiguration().densityDpi); in testOverrideDisplayAdjustments()
|
D | ResourcesLocaleTest.java | 79 resources.getConfiguration().getLocales().get(0)); in testEnglishIsAlwaysConsideredSupported() 96 resources.getConfiguration().getLocales().get(0)); in testSelectFirstSupportedLanguage()
|
D | ConfigurationBoundResourceCacheTest.java | 88 final Configuration cfg = res.getConfiguration(); in testVoidConfigChange() 111 final Configuration cfg = res.getConfiguration(); in testEffectiveConfigChange() 137 final Configuration cfg = res.getConfiguration(); in testConfigChangeMultipleResources() 179 final Configuration cfg = res.getConfiguration(); in testConfigChangeMultipleThemes()
|
/frameworks/av/media/libaaudio/src/client/ |
D | AudioStreamInternal.cpp | 108 request.getConfiguration().setFormat(AUDIO_FORMAT_PCM_FLOAT); in open() 116 request.getConfiguration().setDeviceId(getDeviceId()); in open() 117 request.getConfiguration().setSampleRate(getSampleRate()); in open() 118 request.getConfiguration().setSamplesPerFrame(getSamplesPerFrame()); in open() 119 request.getConfiguration().setDirection(getDirection()); in open() 120 request.getConfiguration().setSharingMode(getSharingMode()); in open() 122 request.getConfiguration().setUsage(getUsage()); in open() 123 request.getConfiguration().setContentType(getContentType()); in open() 124 request.getConfiguration().setInputPreset(getInputPreset()); in open() 125 request.getConfiguration().setPrivacySensitive(isPrivacySensitive()); in open() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayAdjustmentsTests.java | 44 assertEquals(Configuration.EMPTY, emptyAdjustments.getConfiguration()); in testDefaultConstructor_hasEmptyConfiguration() 51 assertEquals(Configuration.EMPTY, emptyAdjustments.getConfiguration()); in testConfigurationConstructor_nullConfigurationBecomesEmpty() 60 assertEquals(configuration, adjustments.getConfiguration()); in testConfigurationConstructor_copiesConfiguration() 71 assertEquals(configuration, newAdjustments.getConfiguration()); in testDisplayAdjustmentsConstructor_copiesConfiguration()
|
/frameworks/base/core/java/android/text/format/ |
D | DateFormat.java | 189 return is24HourLocale(context.getResources().getConfiguration().locale); in is24HourFormat() 264 final Locale locale = context.getResources().getConfiguration().locale; in getTimeFormat() 288 final LocaleData d = LocaleData.get(context.getResources().getConfiguration().locale); in getTimeFormatString() 300 final Locale locale = context.getResources().getConfiguration().locale; in getDateFormat() 311 final Locale locale = context.getResources().getConfiguration().locale; in getLongDateFormat() 322 final Locale locale = context.getResources().getConfiguration().locale; in getMediumDateFormat() 340 final Locale locale = context.getResources().getConfiguration().locale; in getDateFormatString()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | RotationUtils.java | 29 Configuration config = context.getResources().getConfiguration(); in getRotation() 42 Configuration config = context.getResources().getConfiguration(); in getExactRotation()
|
/frameworks/layoutlib/bridge/tests/src/com/android/ide/common/resources/deprecated/ |
D | ResourceFile.java | 44 public FolderConfiguration getConfiguration() { in getConfiguration() method in ResourceFile 45 return mFolder.getConfiguration(); in getConfiguration()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityThreadTest.java | 393 new Configuration(appContext.getResources().getConfiguration()); in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation() 409 .getConfiguration().orientation; in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation() 423 virtualDisplayContext.getResources().getConfiguration().orientation); in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation() 427 Configuration activityThreadConfig = activityThread.getConfiguration(); in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation() 431 .getConfiguration(); in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation() 446 new Configuration(activity.getResources().getConfiguration()); in testHandleConfigurationChanged_DoesntOverrideActivityConfig() 451 new Configuration(oldAppResources.getConfiguration()); in testHandleConfigurationChanged_DoesntOverrideActivityConfig() 474 oldActivityConfig, activity.getResources().getConfiguration()); in testHandleConfigurationChanged_DoesntOverrideActivityConfig() 482 newAppConfig, newAppResources.getConfiguration()); in testHandleConfigurationChanged_DoesntOverrideActivityConfig()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputDevice.h | 95 inline const PropertyMap& getConfiguration() { return mConfiguration; } in getConfiguration() function 216 inline void getConfiguration(PropertyMap* outConfiguration) const { in getConfiguration() function 217 return mEventHub->getConfiguration(mId, outConfiguration); in getConfiguration() 296 inline const PropertyMap& getConfiguration() { return mDevice.getConfiguration(); } in getConfiguration() function
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 53 final Configuration config = mContext.getResources().getConfiguration(); in getMaxActionButtons() 89 final Configuration configuration = mContext.getResources().getConfiguration(); in hasEmbeddedTabs()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | RotaryEncoderInputMapper.cpp | 41 if (!getDeviceContext().getConfiguration().tryGetProperty(String8("device.res"), res)) { in populateDeviceInfo() 44 if (!getDeviceContext().getConfiguration().tryGetProperty(String8("device.scalingFactor"), in populateDeviceInfo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputQuickSettingsDisablerTest.java | 75 Configuration c = new Configuration(mContext.getResources().getConfiguration()); in testChangeToLandscape() 86 Configuration c = new Configuration(mContext.getResources().getConfiguration()); in testChangeToPortrait()
|
/frameworks/base/core/java/android/accessibilityservice/util/ |
D | AccessibilityUtils.java | 120 final int screenWidthDp = resources.getConfiguration().screenWidthDp; in getScreenWidthPixels() 134 final int screenHeightDp = resources.getConfiguration().screenHeightDp; in getScreenHeightPixels()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | CompactExtractEditLayout.java | 86 if (getResources().getConfiguration().isScreenRound()) { in applyProportionalLayout() 114 Configuration cfg = res.getConfiguration(); in onAttachedToWindow()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/content/ |
D | OverlayConfigTest.java | 80 final OverlayConfig.Configuration config = overlayConfig.getConfiguration(packageName); in assertConfig() 345 OverlayConfig.Configuration o1 = overlayConfig.getConfiguration("one"); in testMerge() 351 OverlayConfig.Configuration o2 = overlayConfig.getConfiguration("two"); in testMerge() 357 OverlayConfig.Configuration o3 = overlayConfig.getConfiguration("three"); in testMerge() 363 OverlayConfig.Configuration o4 = overlayConfig.getConfiguration("four"); in testMerge()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/ |
D | BridgeContextTest.java | 56 Configuration configuration = RenderAction.getConfiguration(params); in basic() 103 Configuration configuration = RenderAction.getConfiguration(params); in checkNoErrorWhenUsingDefaults()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayArea.java | 172 mTmpConfiguration.setTo(getConfiguration()); in onConfigurationChanged() 175 if (mOrganizer != null && getConfiguration().diff(mTmpConfiguration) != 0) { in onConfigurationChanged() 189 info.configuration.setTo(getConfiguration()); in getDisplayAreaInfo()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiModeManagerServiceTest.java | 176 assertFalse(mUiManagerService.getConfiguration().isNightModeActive()); in setNightMoveActivated_overridesFunctionCorrectly() 187 assertTrue(mUiManagerService.getConfiguration().isNightModeActive()); in setNightMoveActivated_overridesFunctionCorrectly() 193 assertTrue(mUiManagerService.getConfiguration().isNightModeActive()); in setNightMoveActivated_overridesFunctionCorrectly() 199 assertFalse(mUiManagerService.getConfiguration().isNightModeActive()); in setNightMoveActivated_overridesFunctionCorrectly() 444 return (mUiManagerService.getConfiguration().uiMode in isNightModeActivated()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | StringUtil.java | 94 final Locale locale = context.getResources().getConfiguration().locale; in formatElapsedTime() 145 final Locale locale = context.getResources().getConfiguration().locale; in formatRelativeTime()
|