Home
last modified time | relevance | path

Searched refs:Configuration (Results 1 – 25 of 400) sorted by relevance

12345678910>>...16

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DConfigurationContainerTests.java23 import android.content.res.Configuration;
54 assertEquals(Configuration.EMPTY, root.getOverrideConfiguration()); in testConfigurationInit()
55 assertEquals(Configuration.EMPTY, root.getMergedOverrideConfiguration()); in testConfigurationInit()
56 assertEquals(Configuration.EMPTY, root.getConfiguration()); in testConfigurationInit()
60 assertEquals(Configuration.EMPTY, child1.getOverrideConfiguration()); in testConfigurationInit()
61 assertEquals(Configuration.EMPTY, child1.getMergedOverrideConfiguration()); in testConfigurationInit()
62 assertEquals(Configuration.EMPTY, child1.getConfiguration()); in testConfigurationInit()
65 final Configuration rootOverrideConfig = new Configuration(); in testConfigurationInit()
69 assertEquals(Configuration.EMPTY, child2.getOverrideConfiguration()); in testConfigurationInit()
74 final Configuration rootParentConfig = new Configuration(); in testConfigurationInit()
[all …]
/frameworks/base/core/java/android/util/
DMergedConfiguration.java20 import android.content.res.Configuration;
35 private Configuration mGlobalConfig = new Configuration();
36 private Configuration mOverrideConfig = new Configuration();
37 private Configuration mMergedConfig = new Configuration();
42 public MergedConfiguration(Configuration globalConfig, Configuration overrideConfig) { in MergedConfiguration()
46 public MergedConfiguration(Configuration globalConfig) { in MergedConfiguration()
67 mGlobalConfig = source.readParcelable(Configuration.class.getClassLoader()); in readFromParcel()
68 mOverrideConfig = source.readParcelable(Configuration.class.getClassLoader()); in readFromParcel()
69 mMergedConfig = source.readParcelable(Configuration.class.getClassLoader()); in readFromParcel()
95 public void setConfiguration(Configuration globalConfig, Configuration overrideConfig) { in setConfiguration()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationTest.java22 import android.content.res.Configuration;
39 Configuration config = new Configuration(); in testUpdateFromPreservesRoundBit()
40 config.screenLayout = Configuration.SCREENLAYOUT_ROUND_YES; in testUpdateFromPreservesRoundBit()
41 Configuration config2 = new Configuration(); in testUpdateFromPreservesRoundBit()
44 assertEquals(config.screenLayout, Configuration.SCREENLAYOUT_ROUND_YES); in testUpdateFromPreservesRoundBit()
49 Configuration config = new Configuration(); in testUpdateFromPreservesCompatNeededBit()
50 config.screenLayout = Configuration.SCREENLAYOUT_COMPAT_NEEDED; in testUpdateFromPreservesCompatNeededBit()
51 Configuration config2 = new Configuration(); in testUpdateFromPreservesCompatNeededBit()
53 assertEquals(config.screenLayout, Configuration.SCREENLAYOUT_COMPAT_NEEDED); in testUpdateFromPreservesCompatNeededBit()
56 assertEquals(config2.screenLayout, Configuration.SCREENLAYOUT_COMPAT_NEEDED); in testUpdateFromPreservesCompatNeededBit()
DResourcesManagerTest.java90 Configuration overrideConfig = new Configuration(); in testMultipleCallsWithDifferentParametersReturnDifferentReferences()
128 final Configuration overrideConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers()
129 overrideConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers()
145 Configuration newConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers()
146 newConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers()
149 final Configuration expectedConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers()
153 expectedConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers()
198 final Configuration overrideConfig = new Configuration(); in testThemesGetUpdatedWithNewImpl()
199 overrideConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testThemesGetUpdatedWithNewImpl()
215 Configuration config1 = new Configuration(); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
[all …]
DConfigurationBoundResourceCacheTest.java87 final Configuration cfg = res.getConfiguration(); in testVoidConfigChange()
88 Configuration newCnf = new Configuration(cfg); in testVoidConfigChange()
89 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testVoidConfigChange()
90 Configuration.ORIENTATION_PORTRAIT in testVoidConfigChange()
91 : Configuration.ORIENTATION_LANDSCAPE; in testVoidConfigChange()
110 final Configuration cfg = res.getConfiguration(); in testEffectiveConfigChange()
111 Configuration newCnf = new Configuration(cfg); in testEffectiveConfigChange()
112 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testEffectiveConfigChange()
113 Configuration.ORIENTATION_PORTRAIT in testEffectiveConfigChange()
114 : Configuration.ORIENTATION_LANDSCAPE; in testEffectiveConfigChange()
[all …]
DResourcesLocaleTest.java49 return new Resources(assets, dm, new Configuration()); in createResourcesWithApk()
70 final Configuration config = new Configuration(); in testEnglishIsAlwaysConsideredSupported()
87 final Configuration config = new Configuration(); in testSelectFirstSupportedLanguage()
/frameworks/base/services/core/java/com/android/server/am/
DConfigurationContainer.java19 import android.content.res.Configuration;
30 private Configuration mOverrideConfiguration = new Configuration();
36 private Configuration mFullConfiguration = new Configuration();
43 private Configuration mMergedOverrideConfiguration = new Configuration();
50 Configuration getConfiguration() { in getConfiguration()
58 void onConfigurationChanged(Configuration newParentConfig) { in onConfigurationChanged()
68 Configuration getOverrideConfiguration() { in getOverrideConfiguration()
77 void onOverrideConfigurationChanged(Configuration overrideConfiguration) { in onOverrideConfigurationChanged()
81 onConfigurationChanged(parent != null ? parent.getConfiguration() : Configuration.EMPTY); in onOverrideConfigurationChanged()
90 Configuration getMergedOverrideConfiguration() { in getMergedOverrideConfiguration()
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java20 import android.content.res.Configuration;
29 private Configuration mConfiguration;
34 public DisplayAdjustments(Configuration configuration) { in DisplayAdjustments()
35 mConfiguration = new Configuration(configuration != null in DisplayAdjustments()
36 ? configuration : Configuration.EMPTY); in DisplayAdjustments()
41 mConfiguration = new Configuration(daj.mConfiguration != null in DisplayAdjustments()
42 ? daj.mConfiguration : Configuration.EMPTY); in DisplayAdjustments()
62 public void setConfiguration(Configuration configuration) { in setConfiguration()
67 mConfiguration.setTo(configuration != null ? configuration : Configuration.EMPTY); in setConfiguration()
70 public Configuration getConfiguration() { in getConfiguration()
DContextThemeWrapper.java23 import android.content.res.Configuration;
34 private Configuration mOverrideConfiguration;
93 public void applyOverrideConfiguration(Configuration overrideConfiguration) { in applyOverrideConfiguration()
101 mOverrideConfiguration = new Configuration(overrideConfiguration); in applyOverrideConfiguration()
109 public Configuration getOverrideConfiguration() { in getOverrideConfiguration()
/frameworks/base/core/java/android/content/res/
DConfiguration.java58 public final class Configuration implements Parcelable, Comparable<Configuration> { class
60 public static final Configuration EMPTY = new Configuration();
372 curLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED; in reduceScreenLayout()
850 public Configuration() { in Configuration() method in Configuration
857 public Configuration(Configuration o) { in Configuration() method in Configuration
875 public void setTo(Configuration o) { in setTo()
1113 public @Config int updateFrom(@NonNull Configuration delta) { in updateFrom()
1322 public int diff(Configuration delta) { in diff()
1331 public int diff(Configuration delta, boolean compareUndefined) { in diff()
1462 public boolean isOtherSeqNewer(Configuration other) { in isOtherSeqNewer()
[all …]
DResourcesKey.java43 public final Configuration mOverrideConfiguration;
55 @Nullable Configuration overrideConfig, in ResourcesKey()
62 mOverrideConfiguration = new Configuration(overrideConfig != null in ResourcesKey()
63 ? overrideConfig : Configuration.EMPTY); in ResourcesKey()
78 return !Configuration.EMPTY.equals(mOverrideConfiguration); in hasOverrideConfiguration()
163 builder.append(" mOverrideConfig=").append(Configuration.resourceQualifierString( in toString()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java33 import android.content.res.Configuration;
323 public static Configuration getConfiguration(RenderParams params) { in getConfiguration()
324 Configuration config = new Configuration(); in getConfiguration()
332 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_SMALL; in getConfiguration()
335 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_NORMAL; in getConfiguration()
338 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_LARGE; in getConfiguration()
341 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_XLARGE; in getConfiguration()
369 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration()
372 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration()
376 config.orientation = Configuration.ORIENTATION_SQUARE; in getConfiguration()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowContainerTests.java22 import android.content.res.Configuration;
370 child.onOverrideConfigurationChanged(new Configuration()); in testOverrideConfigurationAncestorNotification()
568 assertEquals(Configuration.EMPTY, root.getOverrideConfiguration()); in testConfigurationInit()
569 assertEquals(Configuration.EMPTY, root.getMergedOverrideConfiguration()); in testConfigurationInit()
570 assertEquals(Configuration.EMPTY, root.getConfiguration()); in testConfigurationInit()
574 assertEquals(Configuration.EMPTY, child1.getOverrideConfiguration()); in testConfigurationInit()
575 assertEquals(Configuration.EMPTY, child1.getMergedOverrideConfiguration()); in testConfigurationInit()
576 assertEquals(Configuration.EMPTY, child1.getConfiguration()); in testConfigurationInit()
579 final Configuration rootOverrideConfig = new Configuration(); in testConfigurationInit()
583 assertEquals(Configuration.EMPTY, child2.getOverrideConfiguration()); in testConfigurationInit()
[all …]
/frameworks/base/core/java/android/app/
DResourcesManager.java27 import android.content.res.Configuration;
80 private final Configuration mResConfiguration = new Configuration();
98 public final Configuration overrideConfig = new Configuration();
145 public Configuration getConfiguration() { in getConfiguration()
172 @NonNull DisplayMetrics dm, @NonNull Configuration config) { in applyNonDefaultDisplayMetricsToConfiguration()
173 config.touchscreen = Configuration.TOUCHSCREEN_NOTOUCH; in applyNonDefaultDisplayMetricsToConfiguration()
177 int sl = Configuration.resetScreenLayout(config.screenLayout); in applyNonDefaultDisplayMetricsToConfiguration()
179 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in applyNonDefaultDisplayMetricsToConfiguration()
180 config.screenLayout = Configuration.reduceScreenLayout(sl, in applyNonDefaultDisplayMetricsToConfiguration()
183 config.orientation = Configuration.ORIENTATION_PORTRAIT; in applyNonDefaultDisplayMetricsToConfiguration()
[all …]
DIApplicationThread.aidl32 import android.content.res.Configuration;
64 in ActivityInfo info, in Configuration curConfig, in Configuration overrideConfig, in scheduleLaunchActivity()
85 boolean restrictedBackupMode, boolean persistent, in Configuration config, in bindApplication()
89 void scheduleConfigurationChanged(in Configuration config); in scheduleConfigurationChanged()
103 void scheduleActivityConfigurationChanged(IBinder token, in Configuration overrideConfig); in scheduleActivityConfigurationChanged()
105 in Configuration overrideConfig); in scheduleActivityMovedToDisplay()
108 in Configuration config, in Configuration overrideConfig, boolean preserveWindow); in scheduleRelaunchActivity()
150 in Configuration newConfig); in scheduleMultiWindowModeChanged()
152 in Configuration newConfig); in schedulePictureInPictureModeChanged()
DUiModeManager.java23 import android.content.res.Configuration;
109 public static final int MODE_NIGHT_AUTO = Configuration.UI_MODE_NIGHT_UNDEFINED >> 4;
115 public static final int MODE_NIGHT_NO = Configuration.UI_MODE_NIGHT_NO >> 4;
121 public static final int MODE_NIGHT_YES = Configuration.UI_MODE_NIGHT_YES >> 4;
207 return Configuration.UI_MODE_TYPE_NORMAL; in getCurrentModeType()
/frameworks/base/media/java/android/media/
DVolumeShaper.java52 @NonNull Configuration configuration, @NonNull PlayerBase playerBase) { in VolumeShaper()
78 /* void */ applyPlayer(new VolumeShaper.Configuration(mId), operation); in apply()
108 @NonNull Configuration configuration, @NonNull Operation operation, boolean join) { in replace()
145 new VolumeShaper.Configuration(mId), in close()
169 @NonNull VolumeShaper.Configuration configuration, in applyPlayer()
234 public static final class Configuration implements Parcelable { class in VolumeShaper
350 public static final Configuration LINEAR_RAMP = new VolumeShaper.Configuration.Builder()
363 public static final Configuration CUBIC_RAMP = new VolumeShaper.Configuration.Builder()
376 public static final Configuration SINE_RAMP;
385 public static final Configuration SCURVE_RAMP;
[all …]
/frameworks/base/core/java/android/content/pm/
DActivityInfo.java21 import android.content.res.Configuration;
22 import android.content.res.Configuration.NativeConfig;
775 Configuration.NATIVE_CONFIG_MNC, // MNC
776 Configuration.NATIVE_CONFIG_MCC, // MCC
777 Configuration.NATIVE_CONFIG_LOCALE, // LOCALE
778 Configuration.NATIVE_CONFIG_TOUCHSCREEN, // TOUCH SCREEN
779 Configuration.NATIVE_CONFIG_KEYBOARD, // KEYBOARD
780 Configuration.NATIVE_CONFIG_KEYBOARD_HIDDEN, // KEYBOARD HIDDEN
781 Configuration.NATIVE_CONFIG_NAVIGATION, // NAVIGATION
782 Configuration.NATIVE_CONFIG_ORIENTATION, // ORIENTATION
[all …]
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DPerformanceRunner.java43 Configuration classConfig = testClass.getAnnotation(Configuration.class); in PerformanceRunner()
57 Configuration methodConfig = method.getAnnotation(Configuration.class); in methodInvoker()
75 public @interface Configuration { annotation in PerformanceRunner
/frameworks/support/design/tests/src/android/support/design/widget/
DAppBarWithCollapsingToolbarStateRestoreTest.java28 import android.content.res.Configuration;
80 final int newOrientation = mOldOrientation == Configuration.ORIENTATION_PORTRAIT in testRotateAndRestore()
81 ? Configuration.ORIENTATION_LANDSCAPE in testRotateAndRestore()
82 : Configuration.ORIENTATION_PORTRAIT; in testRotateAndRestore()
98 return configuration == Configuration.ORIENTATION_PORTRAIT in toActivityInfoConfiguration()
/frameworks/support/v7/appcompat/src/android/support/v7/view/
DContextThemeWrapper.java24 import android.content.res.Configuration;
43 private Configuration mOverrideConfiguration;
102 public void applyOverrideConfiguration(Configuration overrideConfiguration) { in applyOverrideConfiguration()
110 mOverrideConfiguration = new Configuration(overrideConfiguration); in applyOverrideConfiguration()
118 public Configuration getOverrideConfiguration() { in getOverrideConfiguration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/fragments/
DFragmentService.java18 import android.content.res.Configuration;
62 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged()
78 public void sendConfigurationChange(Configuration newConfig) { in sendConfigurationChange()
86 private void handleSendConfigurationChange(Configuration newConfig) { in handleSendConfigurationChange()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAppCompatDelegateImplV14.java27 import android.content.res.Configuration;
192 final Configuration conf = res.getConfiguration(); in updateForNightMode()
193 final int currentNightMode = conf.uiMode & Configuration.UI_MODE_NIGHT_MASK; in updateForNightMode()
196 ? Configuration.UI_MODE_NIGHT_YES in updateForNightMode()
197 : Configuration.UI_MODE_NIGHT_NO; in updateForNightMode()
212 final Configuration config = new Configuration(conf); in updateForNightMode()
216 config.uiMode = newNightMode | (config.uiMode & ~Configuration.UI_MODE_NIGHT_MASK); in updateForNightMode()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DInterestingConfigChanges.java20 import android.content.res.Configuration;
24 private final Configuration mLastConfiguration = new Configuration();
/frameworks/base/core/java/android/app/usage/
DConfigurationStats.java18 import android.content.res.Configuration;
31 public Configuration mConfiguration;
73 public Configuration getConfiguration() { in getConfiguration()
146 stats.mConfiguration = Configuration.CREATOR.createFromParcel(source);

12345678910>>...16