Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DConfigurationContainerTests.java61 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 …]
DActivityRecordTests.java280 mTask.onRequestedOverrideConfigurationChanged(mTask.getConfiguration()); in testSetsRelaunchReason_NotDragResizing()
282 mActivity.getConfiguration())); in testSetsRelaunchReason_NotDragResizing()
285 final Configuration newConfig = new Configuration(mTask.getConfiguration()); in testSetsRelaunchReason_NotDragResizing()
302 mTask.onRequestedOverrideConfigurationChanged(mTask.getConfiguration()); in testSetsRelaunchReason_DragResizing()
304 mActivity.getConfiguration())); in testSetsRelaunchReason_DragResizing()
307 final Configuration newConfig = new Configuration(mTask.getConfiguration()); in testSetsRelaunchReason_DragResizing()
326 mTask.onRequestedOverrideConfigurationChanged(mTask.getConfiguration()); in testSetsRelaunchReason_NonResizeConfigChanges()
328 mActivity.getConfiguration())); in testSetsRelaunchReason_NonResizeConfigChanges()
331 final Configuration newConfig = new Configuration(mTask.getConfiguration()); in testSetsRelaunchReason_NonResizeConfigChanges()
348 mTask.onRequestedOverrideConfigurationChanged(mTask.getConfiguration()); in testSetRequestedOrientationUpdatesConfiguration()
[all …]
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp103 request.getConfiguration().setFormat(AUDIO_FORMAT_PCM_FLOAT); in open()
111 request.getConfiguration().setDeviceId(getDeviceId()); in open()
112 request.getConfiguration().setSampleRate(getSampleRate()); in open()
113 request.getConfiguration().setSamplesPerFrame(getSamplesPerFrame()); in open()
114 request.getConfiguration().setDirection(getDirection()); in open()
115 request.getConfiguration().setSharingMode(getSharingMode()); in open()
117 request.getConfiguration().setUsage(getUsage()); in open()
118 request.getConfiguration().setContentType(getContentType()); in open()
119 request.getConfiguration().setInputPreset(getInputPreset()); in open()
121 request.getConfiguration().setBufferCapacity(builder.getBufferCapacity()); in open()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java157 assertEquals(expectedConfig, resources1.getConfiguration()); in testUpdateConfigurationUpdatesAllAssetManagers()
158 assertEquals(expectedConfig, resources2.getConfiguration()); in testUpdateConfigurationUpdatesAllAssetManagers()
159 assertEquals(expectedConfig, resources3.getConfiguration()); in testUpdateConfigurationUpdatesAllAssetManagers()
239 assertEquals(expectedConfig1, resources1.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
248 assertEquals(expectedConfig2, resources2.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
256 assertEquals(expectedConfig1, resources1.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
259 assertEquals(expectedConfig2, resources2.getConfiguration()); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
DResourcesLocaleTest.java79 resources.getConfiguration().getLocales().get(0)); in testEnglishIsAlwaysConsideredSupported()
96 resources.getConfiguration().getLocales().get(0)); in testSelectFirstSupportedLanguage()
DConfigurationBoundResourceCacheTest.java88 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/base/packages/SystemUI/src/com/android/systemui/util/leak/
DRotationUtils.java29 Configuration config = context.getResources().getConfiguration(); in getRotation()
42 Configuration config = context.getResources().getConfiguration(); in getExactRotation()
/frameworks/base/core/java/android/text/format/
DDateFormat.java188 return is24HourLocale(context.getResources().getConfiguration().locale); in is24HourFormat()
264 final Locale locale = context.getResources().getConfiguration().locale; in getTimeFormat()
289 context.getResources().getConfiguration().locale); in getTimeFormatString()
302 final Locale locale = context.getResources().getConfiguration().locale; in getDateFormat()
313 final Locale locale = context.getResources().getConfiguration().locale; in getLongDateFormat()
324 final Locale locale = context.getResources().getConfiguration().locale; in getMediumDateFormat()
387 final Locale locale = context.getResources().getConfiguration().locale; in getDateFormatString()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskStackLayoutAlgorithm.java152 return LegacyRecentsImpl.getConfiguration().isGridEnabled; in useGridLayout()
497 mMinScrollP = LegacyRecentsImpl.getConfiguration().isLowRamDevice in update()
500 mMaxScrollP = LegacyRecentsImpl.getConfiguration().isLowRamDevice in update()
511 } else if (LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in update()
530 … RecentsActivityLaunchState launchState = LegacyRecentsImpl.getConfiguration().getLaunchState(); in setTaskOverridesForInitialState()
623 … if (targetStackScroll == lastStackScroll || LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in updateFocusStateOnScroll()
668 … RecentsActivityLaunchState launchState = LegacyRecentsImpl.getConfiguration().getLaunchState(); in getInitialFocusState()
712 if (LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in computeStackVisibilityReport()
789 } else if (LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in getStackTransform()
971 if (LegacyRecentsImpl.getConfiguration().isLowRamDevice || overrideP == null) { in getStackScrollForTask()
[all …]
DRecentsView.java184 mStackActionButton = (TextView) inflater.inflate(LegacyRecentsImpl.getConfiguration() in RecentsView()
233 final RecentsConfiguration config = LegacyRecentsImpl.getConfiguration();
352 if (LegacyRecentsImpl.getConfiguration().getLaunchState().launchedFromPipApp) {
482 … RecentsActivityLaunchState launchState = LegacyRecentsImpl.getConfiguration().getLaunchState();
489 if (LegacyRecentsImpl.getConfiguration().isLowRamDevice
541 if (LegacyRecentsImpl.getConfiguration().isLowRamDevice) {
552 if (LegacyRecentsImpl.getConfiguration().isLowRamDevice) {
558 …updateVisibleDockRegions(LegacyRecentsImpl.getConfiguration().getDockStatesForCurrentOrientation(),
576 LegacyRecentsImpl.getConfiguration().getDockStatesForCurrentOrientation(),
697 … RecentsActivityLaunchState launchState = LegacyRecentsImpl.getConfiguration().getLaunchState();
[all …]
DTaskStackAnimationHelper.java118 mEnterAndExitFromHomeTranslationOffset = LegacyRecentsImpl.getConfiguration().isGridEnabled in TaskStackAnimationHelper()
127 RecentsConfiguration config = LegacyRecentsImpl.getConfiguration(); in prepareForEnterAnimation()
147 boolean isLandscape = appResources.getConfiguration().orientation in prepareForEnterAnimation()
151 final boolean isLowRamDevice = LegacyRecentsImpl.getConfiguration().isLowRamDevice; in prepareForEnterAnimation()
215 RecentsConfiguration config = LegacyRecentsImpl.getConfiguration(); in startEnterAnimation()
230 final boolean isLowRamDevice = LegacyRecentsImpl.getConfiguration().isLowRamDevice; in startEnterAnimation()
345 if (LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in startExitToHomeAnimation()
359 if (LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in startExitToHomeAnimation()
DTaskStackViewTouchHandler.java300 float maxOverscroll = LegacyRecentsImpl.getConfiguration().isLowRamDevice in handleTouchEvent()
343 !LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in handleTouchEvent()
356 if (LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in handleTouchEvent()
497 if (LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in onBeginDrag()
517 if (LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in onBeginDrag()
524 && !LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in onBeginDrag()
558 !LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in updateSwipeProgress()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/
DRecentsConfiguration.java116 boolean isLandscape = mAppContext.getResources().getConfiguration().orientation == in getDockStatesForCurrentOrientation()
118 RecentsConfiguration config = LegacyRecentsImpl.getConfiguration(); in getDockStatesForCurrentOrientation()
DRecentsActivity.java337 if (LegacyRecentsImpl.getConfiguration().isLowRamDevice) { in onCreate()
385 … RecentsActivityLaunchState launchState = LegacyRecentsImpl.getConfiguration().getLaunchState(); in onStart()
422 RecentsConfiguration config = LegacyRecentsImpl.getConfiguration(); in reloadStackView()
543 RecentsConfiguration config = LegacyRecentsImpl.getConfiguration(); in onStop()
653 … RecentsActivityLaunchState launchState = LegacyRecentsImpl.getConfiguration().getLaunchState(); in onBusEvent()
697 … RecentsActivityLaunchState launchState = LegacyRecentsImpl.getConfiguration().getLaunchState(); in onBusEvent()
805 RecentsConfiguration config = LegacyRecentsImpl.getConfiguration(); in reloadTaskStack()
/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/native/services/inputflinger/reader/mapper/
DRotaryEncoderInputMapper.cpp41 if (!mDevice->getConfiguration().tryGetProperty(String8("device.res"), res)) { in populateDeviceInfo()
44 if (!mDevice->getConfiguration().tryGetProperty(String8("device.scalingFactor"), in populateDeviceInfo()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DRemoteInputQuickSettingsDisablerTest.java76 Configuration c = new Configuration(mContext.getResources().getConfiguration()); in testChangeToLandscape()
87 Configuration c = new Configuration(mContext.getResources().getConfiguration()); in testChangeToPortrait()
/frameworks/base/core/java/android/inputmethodservice/
DCompactExtractEditLayout.java86 if (getResources().getConfiguration().isScreenRound()) { in applyProportionalLayout()
114 Configuration cfg = res.getConfiguration(); in onAttachedToWindow()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBridgeContextTest.java56 Configuration configuration = RenderAction.getConfiguration(params); in basic()
103 Configuration configuration = RenderAction.getConfiguration(params); in checkNoErrorWhenUsingDefaults()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java129 mParams.getAssets(), mParams.getLayoutlibCallback(), getConfiguration(mParams), in init()
247 IWindowManager iwm = new IWindowManagerImpl(getContext().getConfiguration(), in setUp()
332 public static Configuration getConfiguration(RenderParams params) { in getConfiguration() method in RenderAction
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java94 final Locale locale = context.getResources().getConfiguration().locale; in formatElapsedTime()
145 final Locale locale = context.getResources().getConfiguration().locale; in formatRelativeTime()
/frameworks/base/core/java/android/net/
DEthernetManager.java102 public IpConfiguration getConfiguration(String iface) { in getConfiguration() method in EthernetManager
104 return mService.getConfiguration(iface); in getConfiguration()
DIEthernetManager.aidl31 IpConfiguration getConfiguration(String iface); in getConfiguration() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleIconFactory.java30 super(context, context.getResources().getConfiguration().densityDpi, in BubbleIconFactory()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DDeviceUtils.java25 int uiMode = context.getResources().getConfiguration().uiMode; in isTelevision()

1234567891011