Home
last modified time | relevance | path

Searched refs:configChanges (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/java/android/content/res/
DThemedResourceCache.java139 public void onConfigurationChange(@Config int configChanges) { in onConfigurationChange() argument
141 pruneLocked(configChanges); in onConfigurationChange()
154 protected abstract boolean shouldInvalidateEntry(@NonNull T entry, int configChanges); in shouldInvalidateEntry() argument
219 private boolean pruneLocked(@Config int configChanges) { in pruneLocked() argument
222 if (pruneEntriesLocked(mThemedEntries.valueAt(i), configChanges)) { in pruneLocked()
228 pruneEntriesLocked(mNullThemedEntries, configChanges); in pruneLocked()
229 pruneEntriesLocked(mUnthemedEntries, configChanges); in pruneLocked()
236 @Config int configChanges) { in pruneEntriesLocked() argument
243 if (ref == null || pruneEntryLocked(ref.get(), configChanges)) { in pruneEntriesLocked()
251 private boolean pruneEntryLocked(@Nullable T entry, @Config int configChanges) { in pruneEntryLocked() argument
[all …]
DConfigurationBoundResourceCache.java53 public boolean shouldInvalidateEntry(ConstantState<T> entry, @Config int configChanges) { in shouldInvalidateEntry() argument
54 return Configuration.needNewResources(configChanges, entry.getChangingConfigurations()); in shouldInvalidateEntry()
DDrawableCache.java52 public boolean shouldInvalidateEntry(Drawable.ConstantState entry, int configChanges) { in shouldInvalidateEntry() argument
53 return Configuration.needNewResources(configChanges, entry.getChangingConfigurations()); in shouldInvalidateEntry()
DResourcesImpl.java450 final @Config int configChanges = calcConfigChanges(config); in updateConfigurationImpl() local
462 if ((configChanges & ActivityInfo.CONFIG_LOCALE) != 0) { in updateConfigurationImpl()
567 mDrawableCache.onConfigurationChange(configChanges); in updateConfigurationImpl()
568 mColorDrawableCache.onConfigurationChange(configChanges); in updateConfigurationImpl()
569 mComplexColorCache.onConfigurationChange(configChanges); in updateConfigurationImpl()
570 mAnimatorCache.onConfigurationChange(configChanges); in updateConfigurationImpl()
571 mStateListAnimatorCache.onConfigurationChange(configChanges); in updateConfigurationImpl()
DConfiguration.java2042 public static boolean needNewResources(@Config int configChanges, in needNewResources() argument
2048 return (configChanges & interestingChanges) != 0; in needNewResources()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/sysui/
DShellControllerTest.java274 assertTrue(mConfigChangeListener.configChanges == 1); in testAddConfigurationChangeListener_ensureCallback()
285 assertTrue(mConfigChangeListener.configChanges == 1); in testDoubleAddConfigurationChangeListener_ensureSingleCallback()
296 assertTrue(mConfigChangeListener.configChanges == 0); in testAddRemoveConfigurationChangeListener_ensureNoCallback()
308 assertTrue(mConfigChangeListener.configChanges == 1); in testMultipleConfigurationChangeListeners()
309 assertTrue(listener2.configChanges == 1); in testMultipleConfigurationChangeListeners()
336 assertTrue(mConfigChangeListener.configChanges == 1); in testDensityChangeCallback()
350 assertTrue(mConfigChangeListener.configChanges == 1); in testFontScaleChangeCallback()
364 assertTrue(mConfigChangeListener.configChanges == 1); in testSmallestWidthChangeCallback()
378 assertTrue(mConfigChangeListener.configChanges == 1); in testThemeChangeCallback()
392 assertTrue(mConfigChangeListener.configChanges == 1); in testNightModeChangeCallback()
[all …]
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedActivityImpl.java76 private int configChanges; field in ParsedActivityImpl
114 this.configChanges = other.configChanges; in ParsedActivityImpl()
150 activity.configChanges = ParsedActivityUtils.getActivityConfigChanges(0, 0); in makeAppDetailsActivity()
170 alias.configChanges = target.getConfigChanges(); in makeAlias()
306 dest.writeInt(this.configChanges); in writeToParcel()
346 this.configChanges = in.readInt(); in ParsedActivityImpl()
409 int configChanges, in ParsedActivityImpl() argument
435 this.configChanges = configChanges; in ParsedActivityImpl()
506 return configChanges; in getConfigChanges()
629 configChanges = value; in setConfigChanges()
DParsedActivityUtils.java652 public static int getActivityConfigChanges(int configChanges, int recreateOnConfigChanges) { in getActivityConfigChanges() argument
653 return configChanges | ((~recreateOnConfigChanges) & RECREATE_ON_CONFIG_CHANGES_MASK); in getActivityConfigChanges()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DInterestingConfigChanges.java60 int configChanges = mLastConfiguration.updateFrom( in applyNewConfig() local
62 return (configChanges & (mFlags)) != 0; in applyNewConfig()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/
DPackageParserLegacyCoreTest.java352 int configChanges = 0x0000; // 00000000. in testGetActivityConfigChanges() local
354 int finalConfigChanges = ParsedActivityUtils.getActivityConfigChanges(configChanges, in testGetActivityConfigChanges()
359 configChanges = 0x0000; // 00000000. in testGetActivityConfigChanges()
361 finalConfigChanges = ParsedActivityUtils.getActivityConfigChanges(configChanges, in testGetActivityConfigChanges()
366 configChanges = 0x0003; // 00000011. in testGetActivityConfigChanges()
368 finalConfigChanges = ParsedActivityUtils.getActivityConfigChanges(configChanges, in testGetActivityConfigChanges()
373 finalConfigChanges = ParsedActivityUtils.getActivityConfigChanges(configChanges, in testGetActivityConfigChanges()
378 configChanges = 0x0080; // 10000000, orientation. in testGetActivityConfigChanges()
380 finalConfigChanges = ParsedActivityUtils.getActivityConfigChanges(configChanges, in testGetActivityConfigChanges()
/frameworks/base/core/java/android/inputmethodservice/
DImsConfigurationTracker.java78 public void setHandledConfigChanges(int configChanges) { in setHandledConfigChanges() argument
79 mHandledConfigChanges = configChanges; in setHandledConfigChanges()
/frameworks/base/core/java/android/content/pm/
DActivityInfo.java1629 ? (configChanges | ActivityInfo.CONFIG_SCREEN_SIZE
1631 : configChanges;
1646 public int configChanges;
1742 configChanges = orig.configChanges;
2077 || configChanges != 0 || softInputMode != 0) {
2079 + " configChanges=0x" + Integer.toHexString(configChanges)
2144 dest.writeInt(configChanges);
2271 configChanges = source.readInt();
DPackageParser.java4279 a.info.configChanges = getActivityConfigChanges(0, 0); in generateAppDetailsHiddenActivity()
4431 a.info.configChanges = getActivityConfigChanges( in parseActivity()
4520 a.info.configChanges = 0; in parseActivity()
4788 public static int getActivityConfigChanges(int configChanges, int recreateOnConfigChanges) {
4789 return configChanges | ((~recreateOnConfigChanges) & RECREATE_ON_CONFIG_CHANGES_MASK);
4925 info.configChanges = target.info.configChanges;
/frameworks/base/core/java/android/app/servertransaction/
DActivityRelaunchItem.java98 @Nullable List<ReferrerIntent> pendingNewIntents, int configChanges, in obtain() argument
109 instance.mConfigChanges = configChanges; in obtain()
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/activity/
DTorusViewerActivity.kt109 val configChange = packageManager.getActivityInfo(componentName, 0).configChanges in <lambda>()
/frameworks/base/core/java/android/app/
DClientTransactionHandler.java236 @Nullable List<ReferrerIntent> pendingNewIntents, int configChanges, in prepareRelaunchActivity() argument
DActivityThread.java6065 @Nullable List<ReferrerIntent> pendingNewIntents, int configChanges, in prepareRelaunchActivity() argument
6107 target.pendingConfigChanges |= configChanges; in prepareRelaunchActivity()
6122 int configChanges = 0; in handleRelaunchActivity() local
6135 configChanges |= tmp.pendingConfigChanges; in handleRelaunchActivity()
6149 + Integer.toHexString(configChanges)); in handleRelaunchActivity()
6190 r.activity.mConfigChangeFlags |= configChanges; in handleRelaunchActivity()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DApplicationsStateRoboTest.java766 final InterestingConfigChanges configChanges = mock(InterestingConfigChanges.class); in setupDoResumeIfNeededLocked() local
767 when(configChanges.applyNewConfig(any(Resources.class))).thenReturn(false); in setupDoResumeIfNeededLocked()
768 mApplicationsState.setInterestingConfigChanges(configChanges); in setupDoResumeIfNeededLocked()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTestsBase.java1357 ActivityBuilder setConfigChanges(int configChanges) { in setConfigChanges() argument
1358 mConfigChanges = configChanges; in setConfigChanges()
1456 aInfo.configChanges |= mConfigChanges; in buildInner()
DActivityRecordTests.java400 activity.info.configChanges &= ~CONFIG_ORIENTATION; in testSetsRelaunchReason_NotDragResizing()
424 activity.info.configChanges &= ~CONFIG_ORIENTATION; in testSetsRelaunchReason_DragResizing()
450 activity.info.configChanges &= ~CONFIG_ORIENTATION; in testRelaunchClearTopWaitingTranslucent()
470 activity.info.configChanges &= ~ActivityInfo.CONFIG_FONT_SCALE; in testSetsRelaunchReason_NonResizeConfigChanges()
/frameworks/base/core/java/com/android/internal/pm/parsing/
DPackageInfoCommonUtils.java365 ai.configChanges = a.getConfigChanges(); in generateActivityInfo()
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java574 ai.configChanges = a.getConfigChanges(); in generateActivityInfo()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityRecord.java1355 if (info.configChanges != 0) { in dump()
1356 pw.println(prefix + "configChanges=0x" + Integer.toHexString(info.configChanges)); in dump()
6831 void startFreezingScreenLocked(WindowProcessController app, int configChanges) { in startFreezingScreenLocked() argument
6840 int freezableConfigChanges = configChanges & ~(CONFIG_WINDOW_CONFIGURATION); in startFreezingScreenLocked()
DActivityTaskManagerService.java1514 a.configChanges = 0xffffffff; in startDreamActivityInternal()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java4741 final int configChanges = mLastConfiguration.updateFrom(res.getConfiguration()); in invalidateOwnerNameIfNecessary() local
4742 if (forceUpdate || (configChanges & mOwnerNameTypedValue.changingConfigurations) != 0) { in invalidateOwnerNameIfNecessary()

12