Home
last modified time | relevance | path

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

12345678910>>...35

/frameworks/base/core/tests/mockingcoretests/src/android/window/
DSizeConfigurationBucketsTest.java23 import static android.content.res.Configuration.SCREENLAYOUT_COMPAT_NEEDED;
24 import static android.content.res.Configuration.SCREENLAYOUT_LAYOUTDIR_LTR;
25 import static android.content.res.Configuration.SCREENLAYOUT_LAYOUTDIR_RTL;
26 import static android.content.res.Configuration.SCREENLAYOUT_LAYOUTDIR_UNDEFINED;
27 import static android.content.res.Configuration.SCREENLAYOUT_LONG_NO;
28 import static android.content.res.Configuration.SCREENLAYOUT_LONG_YES;
29 import static android.content.res.Configuration.SCREENLAYOUT_ROUND_NO;
30 import static android.content.res.Configuration.SCREENLAYOUT_ROUND_UNDEFINED;
31 import static android.content.res.Configuration.SCREENLAYOUT_ROUND_YES;
32 import static android.content.res.Configuration.SCREENLAYOUT_SIZE_LARGE;
[all …]
DConfigurationHelperTest.java28 import android.content.res.Configuration;
77 new Configuration(), new Configuration(), false /* displayChanged */, in testShouldUpdateResources_NullConfig_ReturnsTrue()
83 assertThat(ConfigurationHelper.shouldUpdateResources(new Binder(), new Configuration(), in testShouldUpdateResources_DisplayChanged_ReturnsTrue()
84 new Configuration(), new Configuration(), true /* displayChanged */, in testShouldUpdateResources_DisplayChanged_ReturnsTrue()
92 assertThat(ConfigurationHelper.shouldUpdateResources(new Binder(), new Configuration(), in testShouldUpdateResources_DifferentResources_ReturnsTrue()
93 new Configuration(), new Configuration(), false /* displayChanged */, in testShouldUpdateResources_DifferentResources_ReturnsTrue()
101 final Configuration config = new Configuration(); in testShouldUpdateResources_DifferentBounds_ReturnsTrue()
105 final Configuration newConfig = new Configuration(); in testShouldUpdateResources_DifferentBounds_ReturnsTrue()
110 new Configuration(), false /* displayChanged */, null /* configChanged */)) in testShouldUpdateResources_DifferentBounds_ReturnsTrue()
118 final Configuration config = new Configuration(); in testShouldUpdateResources_SameConfig_ReturnsFalse()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationTest.java26 import static android.content.res.Configuration.ORIENTATION_LANDSCAPE;
27 import static android.content.res.Configuration.ORIENTATION_PORTRAIT;
28 import static android.content.res.Configuration.SMALLEST_SCREEN_WIDTH_DP_UNDEFINED;
63 Configuration config = new Configuration(); in testUpdateFromPreservesRoundBit()
64 config.screenLayout = Configuration.SCREENLAYOUT_ROUND_YES; in testUpdateFromPreservesRoundBit()
65 Configuration config2 = new Configuration(); in testUpdateFromPreservesRoundBit()
68 assertEquals(config.screenLayout, Configuration.SCREENLAYOUT_ROUND_YES); in testUpdateFromPreservesRoundBit()
73 Configuration config = new Configuration(); in testUpdateFromPreservesCompatNeededBit()
74 config.screenLayout = Configuration.SCREENLAYOUT_COMPAT_NEEDED; in testUpdateFromPreservesCompatNeededBit()
75 Configuration config2 = new Configuration(); in testUpdateFromPreservesCompatNeededBit()
[all …]
DConfigurationBoundResourceCacheTest.java95 final Configuration cfg = res.getConfiguration(); in testVoidConfigChange()
96 Configuration newCnf = new Configuration(cfg); in testVoidConfigChange()
97 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testVoidConfigChange()
98 Configuration.ORIENTATION_PORTRAIT in testVoidConfigChange()
99 : Configuration.ORIENTATION_LANDSCAPE; in testVoidConfigChange()
119 final Configuration cfg = res.getConfiguration(); in testEffectiveConfigChange()
120 Configuration newCnf = new Configuration(cfg); in testEffectiveConfigChange()
121 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testEffectiveConfigChange()
122 Configuration.ORIENTATION_PORTRAIT in testEffectiveConfigChange()
123 : Configuration.ORIENTATION_LANDSCAPE; in testEffectiveConfigChange()
[all …]
/frameworks/base/core/java/android/app/
DConfigurationController.java28 import android.content.res.Configuration;
56 private @Nullable Configuration mPendingConfiguration;
57 private @Nullable Configuration mCompatConfiguration;
58 private @Nullable Configuration mConfiguration;
65 Configuration updatePendingConfiguration(@NonNull Configuration config) { in updatePendingConfiguration()
76 Configuration getPendingConfiguration(boolean clearPending) { in getPendingConfiguration()
77 Configuration outConfig = null; in getPendingConfiguration()
90 void setCompatConfiguration(@NonNull Configuration config) { in setCompatConfiguration()
91 mCompatConfiguration = new Configuration(config); in setCompatConfiguration()
95 Configuration getCompatConfiguration() { in getCompatConfiguration()
[all …]
DGrammaticalInflectionManager.java25 import android.content.res.Configuration;
44 Configuration.GRAMMATICAL_GENDER_NOT_SPECIFIED,
45 Configuration.GRAMMATICAL_GENDER_NEUTRAL,
46 Configuration.GRAMMATICAL_GENDER_FEMININE,
47 Configuration.GRAMMATICAL_GENDER_MASCULINE)));
67 @Configuration.GrammaticalGender
90 @Configuration.GrammaticalGender int grammaticalGender) { in setRequestedApplicationGrammaticalGender()
113 @Configuration.GrammaticalGender int grammaticalGender) { in setSystemWideGrammaticalGender()
137 @Configuration.GrammaticalGender
157 @Configuration.GrammaticalGender
/frameworks/base/core/java/android/util/
DMergedConfiguration.java21 import android.content.res.Configuration;
36 private final Configuration mGlobalConfig = new Configuration();
37 private final Configuration mOverrideConfig = new Configuration();
38 private final Configuration mMergedConfig = new Configuration();
43 public MergedConfiguration(Configuration globalConfig, Configuration overrideConfig) { in MergedConfiguration()
47 public MergedConfiguration(Configuration globalConfig) { in MergedConfiguration()
96 public void setConfiguration(Configuration globalConfig, Configuration overrideConfig) { in setConfiguration()
107 public void setGlobalConfiguration(Configuration globalConfig) { in setGlobalConfiguration()
117 public void setOverrideConfiguration(Configuration overrideConfig) { in setOverrideConfiguration()
136 public Configuration getGlobalConfiguration() { in getGlobalConfiguration()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DConfigurationContainerTests.java30 import static android.content.res.Configuration.EMPTY;
31 import static android.content.res.Configuration.SMALLEST_SCREEN_WIDTH_DP_UNDEFINED;
36 import android.content.res.Configuration;
72 final Configuration rootOverrideConfig = new Configuration(); in testConfigurationInit()
81 final Configuration rootParentConfig = new Configuration(); in testConfigurationInit()
85 final Configuration rootFullConfig = new Configuration(rootParentConfig); in testConfigurationInit()
98 final Configuration rootOverrideConfig = new Configuration(); in testConfigurationChangeOnAddRemove()
104 final Configuration childOverrideConfig = new Configuration(); in testConfigurationChangeOnAddRemove()
107 final Configuration mergedOverrideConfig = new Configuration(root.getConfiguration()); in testConfigurationChangeOnAddRemove()
123 final Configuration rootOverrideConfig2 = new Configuration(); in testConfigurationChangeOnAddRemove()
[all …]
DWindowConfigurationTests.java41 import android.content.res.Configuration;
73 final Configuration config1 = new Configuration(); in testDiff()
75 final Configuration config2 = new Configuration(); in testDiff()
77 final Configuration config3 = new Configuration(); in testDiff()
79 final Configuration config4 = new Configuration(); in testDiff()
81 final Configuration config5 = new Configuration(); in testDiff()
122 final Configuration blankConfig = new Configuration(); in testConfigurationCompareTo()
125 final Configuration config1 = new Configuration(); in testConfigurationCompareTo()
130 final Configuration config2 = new Configuration(config1); in testConfigurationCompareTo()
237 final Configuration config0 = new Configuration(); in testAreConfigurationsEqualForDisplay()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DConfigurationContainer.java37 import static android.content.res.Configuration.ORIENTATION_LANDSCAPE;
38 import static android.content.res.Configuration.ORIENTATION_PORTRAIT;
39 import static android.content.res.Configuration.ORIENTATION_UNDEFINED;
51 import android.content.res.Configuration;
78 private Configuration mRequestedOverrideConfiguration = new Configuration();
84 private Configuration mResolvedOverrideConfiguration = new Configuration();
93 private Configuration mFullConfiguration = new Configuration();
100 private Configuration mMergedOverrideConfiguration = new Configuration();
105 private final Configuration mRequestsTmpConfig = new Configuration();
106 private final Configuration mResolvedTmpConfig = new Configuration();
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayAdjustmentsTests.java21 import android.content.res.Configuration;
41 assertEquals(Configuration.EMPTY, emptyAdjustments.getConfiguration()); in testDefaultConstructor_hasEmptyConfiguration()
46 DisplayAdjustments emptyAdjustments = new DisplayAdjustments((Configuration) null); in testConfigurationConstructor_nullConfigurationBecomesEmpty()
48 assertEquals(Configuration.EMPTY, emptyAdjustments.getConfiguration()); in testConfigurationConstructor_nullConfigurationBecomesEmpty()
53 Configuration configuration = new Configuration(); in testConfigurationConstructor_copiesConfiguration()
62 Configuration configuration = new Configuration(); in testDisplayAdjustmentsConstructor_copiesConfiguration()
/frameworks/base/core/java/android/window/
DSizeConfigurationBuckets.java25 import android.content.res.Configuration;
70 public SizeConfigurationBuckets(Configuration[] sizeConfigurations) { in SizeConfigurationBuckets()
78 Configuration config = sizeConfigurations[i]; in SizeConfigurationBuckets()
79 if (config.screenHeightDp != Configuration.SCREEN_HEIGHT_DP_UNDEFINED) { in SizeConfigurationBuckets()
82 if (config.screenWidthDp != Configuration.SCREEN_WIDTH_DP_UNDEFINED) { in SizeConfigurationBuckets()
85 if (config.smallestScreenWidthDp != Configuration.SMALLEST_SCREEN_WIDTH_DP_UNDEFINED) { in SizeConfigurationBuckets()
88 if ((curScreenLayoutSize = config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) in SizeConfigurationBuckets()
89 != Configuration.SCREENLAYOUT_SIZE_UNDEFINED) { in SizeConfigurationBuckets()
92 if (!screenLayoutLongSet && (config.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK) in SizeConfigurationBuckets()
93 != Configuration.SCREENLAYOUT_LONG_UNDEFINED) { in SizeConfigurationBuckets()
[all …]
DConfigurationHelper.java27 import android.content.res.Configuration;
63 public static boolean shouldUpdateResources(IBinder token, @Nullable Configuration config, in shouldUpdateResources()
64 @NonNull Configuration newConfig, @NonNull Configuration overrideConfig, in shouldUpdateResources()
109 private static boolean shouldUpdateWindowMetricsBounds(@NonNull Configuration currentConfig, in shouldUpdateWindowMetricsBounds()
110 @NonNull Configuration newConfig) { in shouldUpdateWindowMetricsBounds()
120 private static boolean isDisplayRotationChanged(@NonNull Configuration config, in isDisplayRotationChanged()
121 @NonNull Configuration newConfig) { in isDisplayRotationChanged()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/splitscreen/
DSplitScreenUtilsTests.java22 import android.content.res.Configuration;
42 Configuration portraitTablet = new Configuration(); in testIsLeftRightSplit()
45 Configuration landscapeTablet = new Configuration(); in testIsLeftRightSplit()
48 Configuration portraitPhone = new Configuration(); in testIsLeftRightSplit()
51 Configuration landscapePhone = new Configuration(); in testIsLeftRightSplit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/ui/viewmodel/
DVolumePanelState.kt19 import android.content.res.Configuration
20 import android.content.res.Configuration.Orientation
35 orientation == Configuration.ORIENTATION_PORTRAIT ||
36 orientation == Configuration.ORIENTATION_LANDSCAPE ||
37 orientation == Configuration.ORIENTATION_UNDEFINED ||
38 orientation == Configuration.ORIENTATION_SQUARE
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/
DDeviceStateTest.java50 DeviceState.Configuration config = new DeviceState.Configuration.Builder( in testConstruct()
63 DeviceState.Configuration config = new DeviceState.Configuration.Builder( in testHasProperties()
80 new DeviceState.Configuration.Builder(0, "TEST_STATE") in writeToParcel()
91 final DeviceState.Configuration stateConfiguration = in writeToParcel()
92 DeviceState.Configuration.CREATOR.createFromParcel(parcel); in writeToParcel()
100 new DeviceState.Configuration.Builder(0, "TEST_STATE") in writeToParcel_noPhysicalProperties()
109 final DeviceState.Configuration stateConfiguration = in writeToParcel_noPhysicalProperties()
110 DeviceState.Configuration.CREATOR.createFromParcel(parcel); in writeToParcel_noPhysicalProperties()
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java23 import android.content.res.Configuration;
32 private final Configuration mConfiguration = new Configuration(Configuration.EMPTY);
38 public DisplayAdjustments(@Nullable Configuration configuration) { in DisplayAdjustments()
73 public void setConfiguration(@Nullable Configuration configuration) { in setConfiguration()
78 mConfiguration.setTo(configuration != null ? configuration : Configuration.EMPTY); in setConfiguration()
83 public Configuration getConfiguration() { in getConfiguration()
/frameworks/av/media/libstagefright/include/media/stagefright/
DVideoRenderQualityTracker.h127 class Configuration {
135 static Configuration getFromServerConfigurableFlags(
138 Configuration();
282 VideoRenderQualityTracker(const Configuration &configuration,
355 static void configureHistograms(VideoRenderQualityMetrics &m, const Configuration &c);
366 const Configuration &c);
369 static float detectFrameRate(const FrameDurationUs &durationUs, const Configuration &c);
373 static bool is32pulldown(const FrameDurationUs &durationUs, const Configuration &c);
378 VideoRenderQualityMetrics &m, const Configuration &c,
384 const Configuration &c, FreezeEvent *freezeEventOut);
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DRestartDialogWindowManagerTest.java21 import android.content.res.Configuration;
68 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in setUp()
69 | Configuration.UI_MODE_NIGHT_NO; in setUp()
71 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_TYPE_MASK) in setUp()
72 | Configuration.UI_MODE_TYPE_NORMAL; in setUp()
82 (newTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_TYPE_MASK) in testWhenDockedStateHasChanged_needsToBeRecreated()
83 | Configuration.UI_MODE_TYPE_DESK; in testWhenDockedStateHasChanged_needsToBeRecreated()
92 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in testWhenDarkLightThemeHasChanged_needsToBeRecreated()
93 | Configuration.UI_MODE_NIGHT_YES; in testWhenDarkLightThemeHasChanged_needsToBeRecreated()
DReachabilityEduWindowManagerTest.java24 import android.content.res.Configuration;
74 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in setUp()
75 | Configuration.UI_MODE_NIGHT_NO; in setUp()
77 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_TYPE_MASK) in setUp()
78 | Configuration.UI_MODE_TYPE_NORMAL; in setUp()
93 (newTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_TYPE_MASK) in testWhenDockedStateHasChanged_needsToBeRecreated()
94 | Configuration.UI_MODE_TYPE_DESK; in testWhenDockedStateHasChanged_needsToBeRecreated()
103 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in testWhenDarkLightThemeHasChanged_needsToBeRecreated()
104 | Configuration.UI_MODE_NIGHT_YES; in testWhenDarkLightThemeHasChanged_needsToBeRecreated()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityThreadTest.java22 import static android.content.res.Configuration.ORIENTATION_LANDSCAPE;
23 import static android.content.res.Configuration.ORIENTATION_PORTRAIT;
65 import android.content.res.Configuration;
132 private Configuration mOriginalAppConfig;
143 mOriginalAppConfig = new Configuration(ActivityThread.currentActivityThread() in setup()
240 final Configuration originalAppConfig = in testOverrideScale()
241 new Configuration(app.getResources().getConfiguration()); in testOverrideScale()
244 final Configuration originalActivityConfig = in testOverrideScale()
245 new Configuration(activity.getResources().getConfiguration()); in testOverrideScale()
247 final Configuration newConfig = new Configuration(originalAppConfig); in testOverrideScale()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImpl.kt19 import android.content.res.Configuration
35 private val lastConfig = Configuration()
45 private var orientation = Configuration.ORIENTATION_UNDEFINED
54 inCarMode = currentConfig.uiMode and Configuration.UI_MODE_TYPE_MASK ==
55 Configuration.UI_MODE_TYPE_CAR
56 uiMode = currentConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK
72 override fun onConfigurationChanged(newConfig: Configuration) { in onConfigurationChanged()
82 val uiMode = newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK in onConfigurationChanged()
172 return when (uiMode and Configuration.UI_MODE_NIGHT_MASK) { in getNightModeName()
173 Configuration.UI_MODE_NIGHT_YES -> "night" in getNightModeName()
[all …]
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/
DInputMethodServiceTest.java32 import android.content.res.Configuration;
226 Configuration.KEYBOARD_QWERTY; in testOnEvaluateInputViewShown_showImeWithHardKeyboard()
228 Configuration.HARDKEYBOARDHIDDEN_NO; in testOnEvaluateInputViewShown_showImeWithHardKeyboard()
232 Configuration.KEYBOARD_NOKEYS; in testOnEvaluateInputViewShown_showImeWithHardKeyboard()
234 Configuration.HARDKEYBOARDHIDDEN_NO; in testOnEvaluateInputViewShown_showImeWithHardKeyboard()
238 Configuration.KEYBOARD_QWERTY; in testOnEvaluateInputViewShown_showImeWithHardKeyboard()
240 Configuration.HARDKEYBOARDHIDDEN_YES; in testOnEvaluateInputViewShown_showImeWithHardKeyboard()
253 Configuration.KEYBOARD_QWERTY; in testOnEvaluateInputViewShown_disableShowImeWithHardKeyboard()
255 Configuration.HARDKEYBOARDHIDDEN_NO; in testOnEvaluateInputViewShown_disableShowImeWithHardKeyboard()
259 Configuration.KEYBOARD_NOKEYS; in testOnEvaluateInputViewShown_disableShowImeWithHardKeyboard()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTestUtils.java19 import static android.content.res.Configuration.ORIENTATION_LANDSCAPE;
30 import android.content.res.Configuration;
45 static Configuration config() { in config()
46 Configuration config = new Configuration(); in config()
55 Configuration config = config(); in mergedConfig()
56 Configuration overrideConfig = new Configuration(); in mergedConfig()
105 private final Configuration mCurConfig = new Configuration();
107 private final Configuration mOverrideConfig = new Configuration();
155 LaunchActivityItemBuilder setCurConfig(@NonNull Configuration curConfig) { in setCurConfig()
161 LaunchActivityItemBuilder setOverrideConfig(@NonNull Configuration overrideConfig) { in setOverrideConfig()
/frameworks/proto_logging/stats/atoms/dream/
Ddream_extension_atoms.proto35 // Configuration for whether dream is enabled.
38 // Configuration for what dream component to show.
41 // Configuration for when dream should begin.
44 // Configuration for whether to show additional information.
47 // Configuration for whether to show home controls.
56 // Configuration for whether dream is enabled.
59 // Configuration for what dream component to show.
62 // Configuration for when dream should begin.
65 // Configuration for whether to show additional information.
68 // Configuration for whether to show home controls.
[all …]

12345678910>>...35