Home
last modified time | relevance | path

Searched refs:mConfiguration (Results 1 – 25 of 78) sorted by relevance

1234

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DTabletopModeControllerTest.java70 private Configuration mConfiguration; field in TabletopModeControllerTest
99 mConfiguration = new Configuration(); in setUp()
113 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in registerOnTabletopModeChangedListener_notInTabletopMode_callbackFalse()
114 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in registerOnTabletopModeChangedListener_notInTabletopMode_callbackFalse()
126 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in registerOnTabletopModeChangedListener_inTabletopMode_callbackTrue()
127 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in registerOnTabletopModeChangedListener_inTabletopMode_callbackTrue()
139 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in registerOnTabletopModeChangedListener_notInTabletopModeTwice_callbackOnce()
140 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in registerOnTabletopModeChangedListener_notInTabletopModeTwice_callbackOnce()
145 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in registerOnTabletopModeChangedListener_notInTabletopModeTwice_callbackOnce()
146 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in registerOnTabletopModeChangedListener_notInTabletopModeTwice_callbackOnce()
[all …]
/frameworks/base/core/java/android/app/servertransaction/
DConfigurationChangeItem.java34 private Configuration mConfiguration; field in ConfigurationChangeItem
39 CompatibilityInfo.applyOverrideScaleIfNeeded(mConfiguration); in preExecute()
40 client.updatePendingConfiguration(mConfiguration); in preExecute()
46 client.handleConfigurationChanged(mConfiguration, mDeviceId); in execute()
59 instance.mConfiguration = new Configuration(config); in obtain()
67 mConfiguration = null; in recycle()
78 dest.writeTypedObject(mConfiguration, flags); in writeToParcel()
84 mConfiguration = in.readTypedObject(Configuration.CREATOR); in ConfigurationChangeItem()
108 return Objects.equals(mConfiguration, other.mConfiguration) in equals()
116 result = 31 * result + mConfiguration.hashCode(); in hashCode()
[all …]
DActivityConfigurationChangeItem.java41 private Configuration mConfiguration; field in ActivityConfigurationChangeItem
46 CompatibilityInfo.applyOverrideScaleIfNeeded(mConfiguration); in preExecute()
49 client.updatePendingActivityConfiguration(getActivityToken(), mConfiguration); in preExecute() local
57 client.handleActivityConfigurationChanged(r, mConfiguration, INVALID_DISPLAY, in execute()
76 instance.mConfiguration = new Configuration(config); in obtain()
85 mConfiguration = null; in recycle()
97 dest.writeTypedObject(mConfiguration, flags); in writeToParcel()
104 mConfiguration = in.readTypedObject(Configuration.CREATOR); in ActivityConfigurationChangeItem()
128 return Objects.equals(mConfiguration, other.mConfiguration) in equals()
136 result = 31 * result + Objects.hashCode(mConfiguration); in hashCode()
[all …]
DMoveToDisplayItem.java41 private Configuration mConfiguration; field in MoveToDisplayItem
46 CompatibilityInfo.applyOverrideScaleIfNeeded(mConfiguration); in preExecute()
49 client.updatePendingActivityConfiguration(getActivityToken(), mConfiguration); in preExecute() local
56 client.handleActivityConfigurationChanged(r, mConfiguration, mTargetDisplayId, in execute()
75 instance.mConfiguration = new Configuration(configuration); in obtain()
85 mConfiguration = null; in recycle()
97 dest.writeTypedObject(mConfiguration, flags); in writeToParcel()
105 mConfiguration = in.readTypedObject(Configuration.CREATOR); in MoveToDisplayItem()
129 && Objects.equals(mConfiguration, other.mConfiguration) in equals()
138 result = 31 * result + mConfiguration.hashCode(); in hashCode()
[all …]
DWindowStateResizeItem.java46 private MergedConfiguration mConfiguration; field in WindowStateResizeItem
64 window.resized(mFrames, mReportDraw, mConfiguration, mInsetsState, mForceLayout, in execute()
94 instance.mConfiguration = new MergedConfiguration(configuration); in obtain()
113 mConfiguration = null; in recycle()
132 dest.writeTypedObject(mConfiguration, flags); in writeToParcel()
147 mConfiguration = in.readTypedObject(MergedConfiguration.CREATOR); in WindowStateResizeItem()
178 && Objects.equals(mConfiguration, other.mConfiguration) in equals()
194 result = 31 * result + Objects.hashCode(mConfiguration); in hashCode()
209 + ", configuration=" + mConfiguration in toString()
/frameworks/base/core/java/android/window/
DWindowContextInfo.java39 private final Configuration mConfiguration; field in WindowContextInfo
47 mConfiguration = requireNonNull(configuration); in WindowContextInfo()
53 return mConfiguration; in getConfiguration()
65 dest.writeTypedObject(mConfiguration, flags); in writeToParcel()
71 mConfiguration = in.readTypedObject(Configuration.CREATOR); in WindowContextInfo()
99 return Objects.equals(mConfiguration, other.mConfiguration) in equals()
106 result = 31 * result + Objects.hashCode(mConfiguration); in hashCode()
113 return "WindowContextInfo{config=" + mConfiguration in toString()
DTaskFragmentParentInfo.java40 private final Configuration mConfiguration = new Configuration(); field in TaskFragmentParentInfo
53 mConfiguration.setTo(configuration); in TaskFragmentParentInfo()
62 mConfiguration.setTo(info.getConfiguration()); in TaskFragmentParentInfo()
76 return mConfiguration; in getConfiguration()
135 return mConfiguration.windowConfiguration.getWindowingMode(); in getWindowingMode()
141 + "config=" + mConfiguration in toString()
164 return mConfiguration.equals(that.mConfiguration) in equals()
173 int result = mConfiguration.hashCode(); in hashCode()
184 mConfiguration.writeToParcel(dest, flags); in writeToParcel()
192 mConfiguration.readFromParcel(in); in TaskFragmentParentInfo()
DWindowTokenClient.java70 private final Configuration mConfiguration = new Configuration(); field in WindowTokenClient
175 synchronized (mConfiguration) { in onConfigurationChangedInner()
177 shouldUpdateResources = shouldUpdateResources(this, mConfiguration, in onConfigurationChangedInner()
180 diff = mConfiguration.diffPublicOnly(newConfig); in onConfigurationChangedInner()
181 currentConfig = mShouldDumpConfigForIme ? new Configuration(mConfiguration) : null; in onConfigurationChangedInner()
183 mConfiguration.setTo(newConfig); in onConfigurationChangedInner()
DTaskFragmentInfo.java54 private final Configuration mConfiguration = new Configuration(); field in TaskFragmentInfo
116 mConfiguration.setTo(configuration); in TaskFragmentInfo()
140 return mConfiguration; in getConfiguration()
191 return mConfiguration.windowConfiguration.getWindowingMode(); in getWindowingMode()
245 mConfiguration.readFromParcel(in); in TaskFragmentInfo()
262 mConfiguration.writeToParcel(dest, flags); in writeToParcel()
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java32 private final Configuration mConfiguration = new Configuration(Configuration.EMPTY); field in DisplayAdjustments
40 mConfiguration.setTo(configuration); in DisplayAdjustments()
46 mConfiguration.setTo(daj.getConfiguration()); in DisplayAdjustments()
78 mConfiguration.setTo(configuration != null ? configuration : Configuration.EMPTY); in setConfiguration()
84 return mConfiguration; in getConfiguration()
91 hash = hash * 31 + Objects.hashCode(mConfiguration); in hashCode()
102 && Objects.equals(daj.mConfiguration, mConfiguration); in equals()
/frameworks/base/core/java/android/app/time/
DTimeCapabilitiesAndConfig.java48 @NonNull private final TimeConfiguration mConfiguration; field in TimeCapabilitiesAndConfig
58 mConfiguration = Objects.requireNonNull(timeConfiguration); in TimeCapabilitiesAndConfig()
71 dest.writeParcelable(mConfiguration, flags); in writeToParcel()
87 return mConfiguration; in getConfiguration()
101 && mConfiguration.equals(that.mConfiguration); in equals()
106 return Objects.hash(mCapabilities, mConfiguration); in hashCode()
113 + ", mConfiguration=" + mConfiguration in toString()
DTimeZoneCapabilitiesAndConfig.java61 @NonNull private final TimeZoneConfiguration mConfiguration; field in TimeZoneCapabilitiesAndConfig
74 mConfiguration = Objects.requireNonNull(configuration); in TimeZoneCapabilitiesAndConfig()
90 dest.writeParcelable(mConfiguration, flags); in writeToParcel()
116 return mConfiguration; in getConfiguration()
135 && mConfiguration.equals(that.mConfiguration); in equals()
140 return Objects.hash(mCapabilities, mConfiguration); in hashCode()
148 + ", mConfiguration=" + mConfiguration in toString()
/frameworks/base/core/java/android/app/
DConfigurationController.java58 private @Nullable Configuration mConfiguration; field in ConfigurationController
101 Configuration config = mConfiguration; in applyCompatConfiguration()
106 mCompatConfiguration.setTo(mConfiguration); in applyCompatConfiguration()
115 mConfiguration = new Configuration(config); in setConfiguration()
120 return mConfiguration; in getConfiguration()
138 handleConfigurationChanged(mConfiguration, compat); in handleConfigurationChanged()
139 WindowManagerGlobal.getInstance().reportNewConfiguration(mConfiguration); in handleConfigurationChanged()
193 equivalent = mConfiguration != null && (0 == mConfiguration.diffPublicOnly(config)); in handleConfigurationChangedInner()
204 if (mConfiguration == null) { in handleConfigurationChangedInner()
205 mConfiguration = new Configuration(); in handleConfigurationChangedInner()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnectionPool.java94 private final SQLiteDatabaseConfiguration mConfiguration; field in SQLiteConnectionPool
180 mConfiguration = new SQLiteDatabaseConfiguration(configuration); in SQLiteConnectionPool()
184 if (mConfiguration.idleConnectionTimeoutMs != Long.MAX_VALUE) { in SQLiteConnectionPool()
186 Looper.getMainLooper(), mConfiguration.idleConnectionTimeoutMs, null); in SQLiteConnectionPool()
222 mAvailablePrimaryConnection = openConnectionLocked(mConfiguration, in open()
273 Log.i(TAG, "The connection pool for " + mConfiguration.label in dispose()
305 boolean isWalCurrentMode = mConfiguration.resolveJournalMode().equalsIgnoreCase( in reconfigure()
327 != mConfiguration.foreignKeyConstraintsEnabled; in reconfigure()
342 boolean onlyCompatWalChanged = (mConfiguration.openFlags ^ configuration.openFlags) in reconfigure()
345 if (!onlyCompatWalChanged && mConfiguration.openFlags != configuration.openFlags) { in reconfigure()
[all …]
DSQLiteConnection.java110 private final SQLiteDatabaseConfiguration mConfiguration; field in SQLiteConnection
189 mConfiguration = new SQLiteDatabaseConfiguration(configuration); in SQLiteConnection()
192 mIsReadOnlyConnection = mConfiguration.isReadOnlyDatabase(); in SQLiteConnection()
194 mConfiguration.maxSqlCacheSize); in SQLiteConnection()
234 final String file = mConfiguration.path; in open()
237 mConnectionPtr = nativeOpen(file, mConfiguration.openFlags, in open()
238 mConfiguration.label, in open()
240 mConfiguration.lookasideSlotSize, mConfiguration.lookasideSlotCount); in open()
245 .append(Integer.toHexString(mConfiguration.openFlags)); in open()
260 if ((mConfiguration.openFlags & SQLiteDatabase.CREATE_IF_NECESSARY) != 0) { in open()
[all …]
/frameworks/base/core/java/android/app/usage/
DConfigurationStats.java34 public Configuration mConfiguration; field in ConfigurationStats
73 mConfiguration = stats.mConfiguration; in ConfigurationStats()
82 return mConfiguration; in getConfiguration()
135 if (mConfiguration != null) { in writeToParcel()
137 mConfiguration.writeToParcel(dest, flags); in writeToParcel()
154 stats.mConfiguration = Configuration.CREATOR.createFromParcel(source);
/frameworks/av/media/libstagefright/
DVideoRenderQualityTracker.cpp214 : mConfiguration(Configuration()), mTraceTriggerFn(triggerTrace) { in VideoRenderQualityTracker()
215 configureHistograms(mMetrics, mConfiguration); in VideoRenderQualityTracker()
221 : mConfiguration(configuration), in VideoRenderQualityTracker()
223 configureHistograms(mMetrics, mConfiguration); in VideoRenderQualityTracker()
228 if (!mConfiguration.enabled) { in onTunnelFrameQueued()
247 if (!mConfiguration.enabled) { in onFrameSkipped()
276 if (!mConfiguration.enabled) { in onFrameReleased()
290 if (!mConfiguration.enabled) { in onFrameRendered()
366 if (!mConfiguration.enabled) { in getMetrics()
371 if (mConfiguration.freezeDurationMsHistogramToScore.size() == in getMetrics()
[all …]
/frameworks/av/media/libaaudio/src/binding/
DAAudioStreamRequest.cpp33 mConfiguration(parcelable.params), in AAudioStreamRequest()
41 result.params = mConfiguration.parcelable(); in parcelable()
49 return mConfiguration.validate(); in validate()
56 mConfiguration.dump(); in dump()
DAAudioStreamRequest.h56 return mConfiguration; in getConstantConfiguration()
60 return mConfiguration; in getConfiguration()
79 AAudioStreamConfiguration mConfiguration;
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DNavigationBarView.java77 private Configuration mConfiguration; field in NavigationBarView
89 mConfiguration = new Configuration(); in NavigationBarView()
91 mConfiguration.updateFrom(context.getResources().getConfiguration()); in NavigationBarView()
175 final boolean orientationChange = oldConfig.orientation != mConfiguration.orientation; in updateIcons()
176 final boolean densityChange = oldConfig.densityDpi != mConfiguration.densityDpi; in updateIcons()
178 oldConfig.getLayoutDirection() != mConfiguration.getLayoutDirection(); in updateIcons()
204 final boolean isRtl = mConfiguration.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in orientBackButton()
346 mTmpLastConfiguration.updateFrom(mConfiguration); in onConfigurationChanged()
347 final int changes = mConfiguration.updateFrom(newConfig); in onConfigurationChanged()
350 if (mTmpLastConfiguration.densityDpi != mConfiguration.densityDpi in onConfigurationChanged()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DClientTransactionListenerControllerTest.java99 private Configuration mConfiguration; field in ClientTransactionListenerControllerTest
116 mConfiguration = new Configuration(); in setup()
117 doReturn(mConfiguration).when(mResources).getConfiguration(); in setup()
148 mConfiguration.windowConfiguration.setMaxBounds(new Rect(0, 0, 100, 200)); in testOnContextConfigurationChanged()
163 mConfiguration.windowConfiguration.setMaxBounds(new Rect(0, 0, 100, 200)); in testOnContextConfigurationChanged_duringClientTransaction()
209 windowTokenClient.onConfigurationChanged(mConfiguration, 123 /* newDisplayId */, in testWindowTokenClient_onConfigurationChanged()
218 windowTokenClient.onConfigurationChanged(mConfiguration, 123 /* newDisplayId */, in testWindowTokenClient_onConfigurationChanged()
222 inOrder.verify(windowTokenClient).onConfigurationChangedInner(context, mConfiguration, in testWindowTokenClient_onConfigurationChanged()
233 mConfiguration.windowConfiguration.setMaxBounds(new Rect(0, 0, 100, 200)); in testDisplayListenerHandlerClosed()
/frameworks/base/core/tests/coretests/src/android/app/usage/
DParcelableUsageEventListTest.java117 event.mConfiguration = new Configuration(); in generateUsageEvent()
118 event.mConfiguration.seq = anyInt(); in generateUsageEvent()
119 event.mConfiguration.screenLayout = Configuration.SCREENLAYOUT_ROUND_YES; in generateUsageEvent()
120 event.mConfiguration.smallestScreenWidthDp = 100; in generateUsageEvent()
121 event.mConfiguration.orientation = Configuration.ORIENTATION_LANDSCAPE; in generateUsageEvent()
122 event.mConfiguration.windowConfiguration.setRotation(ROTATION_90); in generateUsageEvent()
167 assertEquals(ue1.mConfiguration, ue2.mConfiguration); in compareUsageEvent()
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java164 private final Configuration mConfiguration = new Configuration(); field in ResourcesImpl
208 mConfiguration.setToDefaults(); in ResourcesImpl()
235 return mConfiguration; in getConfiguration()
253 mPluralRule = PluralRules.forLocale(mConfiguration.getLocales().get(0)); in getPluralRule()
428 + mConfiguration + " old compat is " in updateConfigurationImpl()
453 LocaleList locales = mConfiguration.getLocales(); in updateConfigurationImpl()
456 mConfiguration.setLocales(locales); in updateConfigurationImpl()
467 mConfiguration.setLocales(new LocaleList(intersection)); in updateConfigurationImpl()
496 mConfiguration.setLocales( in updateConfigurationImpl()
516 if (mConfiguration.densityDpi != Configuration.DENSITY_DPI_UNDEFINED) { in updateConfigurationImpl()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSPanelControllerBaseTest.java133 Configuration mConfiguration; field in QSPanelControllerBaseTest
210 when(mResources.getConfiguration()).thenReturn(mConfiguration); in setup()
326 mConfiguration.orientation = Configuration.ORIENTATION_LANDSCAPE; in testShouldUseHorizontalLayout_falseForSplitShade()
327 mConfiguration.screenLayout = Configuration.SCREENLAYOUT_LONG_YES; in testShouldUseHorizontalLayout_falseForSplitShade()
356 mConfiguration.orientation = Configuration.ORIENTATION_LANDSCAPE; in testChangeConfiguration_shouldUseHorizontalLayoutInLandscape_true()
357 mConfiguration.screenLayout = Configuration.SCREENLAYOUT_LONG_YES; in testChangeConfiguration_shouldUseHorizontalLayoutInLandscape_true()
358 mController.mOnConfigurationChangedListener.onConfigurationChange(mConfiguration); in testChangeConfiguration_shouldUseHorizontalLayoutInLandscape_true()
365 mConfiguration.orientation = Configuration.ORIENTATION_PORTRAIT; in testChangeConfiguration_shouldUseHorizontalLayoutInLandscape_true()
366 mController.mOnConfigurationChangedListener.onConfigurationChange(mConfiguration); in testChangeConfiguration_shouldUseHorizontalLayoutInLandscape_true()
380 mConfiguration.orientation = Configuration.ORIENTATION_LANDSCAPE; in testChangeConfiguration_shouldUseHorizontalLayoutInLongDevices_true()
[all …]
/frameworks/base/core/tests/coretests/src/android/window/
DWindowTokenClientControllerTest.java63 private final Configuration mConfiguration = new Configuration(); field in WindowTokenClientControllerTest
73 mWindowContextInfo = new WindowContextInfo(mConfiguration, DEFAULT_DISPLAY); in setup()
93 verify(mWindowTokenClient).onConfigurationChanged(mConfiguration, DEFAULT_DISPLAY, in testAttachToDisplayArea()
135 verify(mWindowTokenClient).onConfigurationChanged(mConfiguration, DEFAULT_DISPLAY, in testAttachToDisplayContent()
175 verify(mWindowTokenClient).postOnConfigurationChanged(mConfiguration, DEFAULT_DISPLAY); in testAttachToWindowToken()
212 verify(mWindowTokenClient).postOnConfigurationChanged(mConfiguration, DEFAULT_DISPLAY); in testOnWindowContextInfoChanged()
216 mWindowTokenClient, new WindowContextInfo(mConfiguration, DEFAULT_DISPLAY + 1)); in testOnWindowContextInfoChanged()
218 verify(mWindowTokenClient).onConfigurationChanged(mConfiguration, DEFAULT_DISPLAY + 1); in testOnWindowContextInfoChanged()

1234