/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationTest.java | 26 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 …]
|
D | ResourcesManagerTest.java | 92 Configuration overrideConfig = new Configuration(); in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 131 final Configuration overrideConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers() 132 overrideConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers() 148 Configuration newConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers() 149 newConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers() 152 final Configuration expectedConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers() 156 expectedConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers() 201 final Configuration overrideConfig = new Configuration(); in testThemesGetUpdatedWithNewImpl() 202 overrideConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testThemesGetUpdatedWithNewImpl() 218 Configuration config1 = new Configuration(); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() [all …]
|
D | ConfigurationBoundResourceCacheTest.java | 88 final Configuration cfg = res.getConfiguration(); in testVoidConfigChange() 89 Configuration newCnf = new Configuration(cfg); in testVoidConfigChange() 90 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testVoidConfigChange() 91 Configuration.ORIENTATION_PORTRAIT in testVoidConfigChange() 92 : Configuration.ORIENTATION_LANDSCAPE; in testVoidConfigChange() 111 final Configuration cfg = res.getConfiguration(); in testEffectiveConfigChange() 112 Configuration newCnf = new Configuration(cfg); in testEffectiveConfigChange() 113 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testEffectiveConfigChange() 114 Configuration.ORIENTATION_PORTRAIT in testEffectiveConfigChange() 115 : Configuration.ORIENTATION_LANDSCAPE; in testEffectiveConfigChange() [all …]
|
/frameworks/base/core/java/android/util/ |
D | MergedConfiguration.java | 20 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/services/tests/wmtests/src/com/android/server/wm/ |
D | ConfigurationContainerTests.java | 29 import static android.content.res.Configuration.EMPTY; 30 import static android.content.res.Configuration.SMALLEST_SCREEN_WIDTH_DP_UNDEFINED; 35 import android.content.res.Configuration; 70 final Configuration rootOverrideConfig = new Configuration(); in testConfigurationInit() 79 final Configuration rootParentConfig = new Configuration(); in testConfigurationInit() 83 final Configuration rootFullConfig = new Configuration(rootParentConfig); in testConfigurationInit() 96 final Configuration rootOverrideConfig = new Configuration(); in testConfigurationChangeOnAddRemove() 102 final Configuration childOverrideConfig = new Configuration(); in testConfigurationChangeOnAddRemove() 105 final Configuration mergedOverrideConfig = new Configuration(root.getConfiguration()); in testConfigurationChangeOnAddRemove() 121 final Configuration rootOverrideConfig2 = new Configuration(); in testConfigurationChangeOnAddRemove() [all …]
|
D | WindowConfigurationTests.java | 41 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() 112 final Configuration blankConfig = new Configuration(); in testConfigurationCompareTo() 115 final Configuration config1 = new Configuration(); in testConfigurationCompareTo() 119 final Configuration config2 = new Configuration(config1); in testConfigurationCompareTo()
|
D | SizeCompatTests.java | 45 import android.content.res.Configuration; 124 Configuration c = new Configuration(display.getRequestedOverrideConfiguration()); in testKeepBoundsWhenChangingFromFreeformToFullscreen() 386 final int fixedScreenLayout = Configuration.SCREENLAYOUT_LONG_NO in testFixedScreenLayoutSizeBits() 387 | Configuration.SCREENLAYOUT_SIZE_NORMAL in testFixedScreenLayoutSizeBits() 388 | Configuration.SCREENLAYOUT_COMPAT_NEEDED; in testFixedScreenLayoutSizeBits() 389 final int layoutMask = Configuration.SCREENLAYOUT_LONG_MASK in testFixedScreenLayoutSizeBits() 390 | Configuration.SCREENLAYOUT_SIZE_MASK in testFixedScreenLayoutSizeBits() 391 | Configuration.SCREENLAYOUT_LAYOUTDIR_MASK in testFixedScreenLayoutSizeBits() 392 | Configuration.SCREENLAYOUT_COMPAT_NEEDED; in testFixedScreenLayoutSizeBits() 393 Configuration c = new Configuration(mTask.getRequestedOverrideConfiguration()); in testFixedScreenLayoutSizeBits() [all …]
|
D | WindowProcessControllerTests.java | 19 import static android.content.res.Configuration.ORIENTATION_LANDSCAPE; 20 import static android.content.res.Configuration.ORIENTATION_PORTRAIT; 36 import android.content.res.Configuration; 155 final Configuration expectedConfig = mService.mRootWindowContainer.getConfiguration(); in testConfigurationForSecondaryScreen() 164 Configuration tmpConfig = new Configuration(mWpc.getConfiguration()); in testDelayingConfigurationChange() 169 Configuration originalConfig = new Configuration(mWpc.getConfiguration()); in testDelayingConfigurationChange() 176 Configuration newConfig = new Configuration(mWpc.getConfiguration()); in testDelayingConfigurationChange() 260 private static void invertOrientation(Configuration config) { in invertOrientation()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityThreadTest.java | 21 import static android.content.res.Configuration.ORIENTATION_LANDSCAPE; 22 import static android.content.res.Configuration.ORIENTATION_PORTRAIT; 49 import android.content.res.Configuration; 243 final Configuration newerConfig = new Configuration(); in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending() 250 final Configuration olderConfig = new Configuration(); in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending() 273 final Configuration config = new Configuration(); in testHandleActivityConfigurationChanged_EnsureUpdatesProcessedInOrder() 284 final Configuration processConfigLandscape = new Configuration(); in testHandleActivityConfigurationChanged_EnsureUpdatesProcessedInOrder() 288 final Configuration activityConfigLandscape = new Configuration(); in testHandleActivityConfigurationChanged_EnsureUpdatesProcessedInOrder() 292 final Configuration processConfigPortrait = new Configuration(); in testHandleActivityConfigurationChanged_EnsureUpdatesProcessedInOrder() 296 final Configuration activityConfigPortrait = new Configuration(); in testHandleActivityConfigurationChanged_EnsureUpdatesProcessedInOrder() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ConfigurationContainer.java | 38 import android.content.res.Configuration; 62 private Configuration mRequestedOverrideConfiguration = new Configuration(); 68 private Configuration mResolvedOverrideConfiguration = new Configuration(); 77 private Configuration mFullConfiguration = new Configuration(); 84 private Configuration mMergedOverrideConfiguration = new Configuration(); 89 private final Configuration mRequestsTmpConfig = new Configuration(); 90 private final Configuration mResolvedTmpConfig = new Configuration(); 106 public Configuration getConfiguration() { in getConfiguration() 114 public void onConfigurationChanged(Configuration newParentConfig) { in onConfigurationChanged() 148 void resolveOverrideConfiguration(Configuration newParentConfig) { in resolveOverrideConfiguration() [all …]
|
D | ConfigurationContainerListener.java | 19 import android.content.res.Configuration; 27 default void onRequestedOverrideConfigurationChanged(Configuration overrideConfiguration) {} in onRequestedOverrideConfigurationChanged() 30 default void onMergedOverrideConfigurationChanged(Configuration mergedOverrideConfiguration) {} in onMergedOverrideConfigurationChanged()
|
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | TestUtils.java | 19 import static android.content.res.Configuration.ORIENTATION_LANDSCAPE; 23 import android.content.res.Configuration; 33 static Configuration config() { in config() 34 Configuration config = new Configuration(); in config() 43 Configuration config = config(); in mergedConfig() 44 Configuration overrideConfig = new Configuration(); in mergedConfig()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputQuickSettingsDisablerTest.java | 26 import android.content.res.Configuration; 75 Configuration c = new Configuration(mContext.getResources().getConfiguration()); in testChangeToLandscape() 76 c.orientation = Configuration.ORIENTATION_PORTRAIT; in testChangeToLandscape() 78 c.orientation = Configuration.ORIENTATION_LANDSCAPE; in testChangeToLandscape() 86 Configuration c = new Configuration(mContext.getResources().getConfiguration()); in testChangeToPortrait() 87 c.orientation = Configuration.ORIENTATION_LANDSCAPE; in testChangeToPortrait() 89 c.orientation = Configuration.ORIENTATION_PORTRAIT; in testChangeToPortrait()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayAdjustmentsTests.java | 21 import android.content.res.Configuration; 44 assertEquals(Configuration.EMPTY, emptyAdjustments.getConfiguration()); in testDefaultConstructor_hasEmptyConfiguration() 49 DisplayAdjustments emptyAdjustments = new DisplayAdjustments((Configuration) null); in testConfigurationConstructor_nullConfigurationBecomesEmpty() 51 assertEquals(Configuration.EMPTY, emptyAdjustments.getConfiguration()); in testConfigurationConstructor_nullConfigurationBecomesEmpty() 56 Configuration configuration = new Configuration(); in testConfigurationConstructor_copiesConfiguration() 65 Configuration configuration = new Configuration(); in testDisplayAdjustmentsConstructor_copiesConfiguration()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 35 import android.content.res.Configuration; 336 public static Configuration getConfiguration(RenderParams params) { in getConfiguration() 337 Configuration config = new Configuration(); in getConfiguration() 345 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_SMALL; in getConfiguration() 348 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_NORMAL; in getConfiguration() 351 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_LARGE; in getConfiguration() 354 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_XLARGE; in getConfiguration() 382 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration() 385 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration() 389 config.orientation = Configuration.ORIENTATION_SQUARE; in getConfiguration() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 89 public final class Configuration implements Parcelable, Comparable<Configuration> { class 91 public static final Configuration EMPTY = new Configuration(); 405 curLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED; in reduceScreenLayout() 902 public Configuration() { in Configuration() method in Configuration 909 public Configuration(Configuration o) { in Configuration() method in Configuration 927 public void setTo(Configuration o) { in setTo() 1432 public @Config int updateFrom(@NonNull Configuration delta) { in updateFrom() 1613 public void setTo(@NonNull Configuration delta, @Config int mask, in setTo() 1713 public int diff(Configuration delta) { in diff() 1725 public int diffPublicOnly(Configuration delta) { in diffPublicOnly() [all …]
|
/frameworks/base/core/java/android/app/ |
D | ResourcesManager.java | 31 import android.content.res.Configuration; 85 private final Configuration mResConfiguration = new Configuration(); 154 public final Configuration overrideConfig = new Configuration(); 226 public Configuration getConfiguration() { in getConfiguration() 253 @NonNull DisplayMetrics dm, @NonNull Configuration config) { in applyNonDefaultDisplayMetricsToConfiguration() 254 config.touchscreen = Configuration.TOUCHSCREEN_NOTOUCH; in applyNonDefaultDisplayMetricsToConfiguration() 258 int sl = Configuration.resetScreenLayout(config.screenLayout); in applyNonDefaultDisplayMetricsToConfiguration() 260 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in applyNonDefaultDisplayMetricsToConfiguration() 261 config.screenLayout = Configuration.reduceScreenLayout(sl, in applyNonDefaultDisplayMetricsToConfiguration() 264 config.orientation = Configuration.ORIENTATION_PORTRAIT; in applyNonDefaultDisplayMetricsToConfiguration() [all …]
|
/frameworks/base/media/java/android/media/ |
D | VolumeShaper.java | 53 @NonNull Configuration configuration, @NonNull PlayerBase playerBase) { in VolumeShaper() 79 /* void */ applyPlayer(new VolumeShaper.Configuration(mId), operation); in apply() 109 @NonNull Configuration configuration, @NonNull Operation operation, boolean join) { in replace() 146 new VolumeShaper.Configuration(mId), in close() 170 @NonNull VolumeShaper.Configuration configuration, in applyPlayer() 235 public static final class Configuration implements Parcelable { class in VolumeShaper 351 public static final Configuration LINEAR_RAMP = new VolumeShaper.Configuration.Builder() 364 public static final Configuration CUBIC_RAMP = new VolumeShaper.Configuration.Builder() 377 public static final Configuration SINE_RAMP; 386 public static final Configuration SCURVE_RAMP; [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | UsageStatsDatabaseTest.java | 31 import android.content.res.Configuration; 167 event.mConfiguration = new Configuration(); in populateIntervalStats() 194 Configuration config1 = new Configuration(); in populateIntervalStats() 199 Configuration config2 = new Configuration(); in populateIntervalStats() 204 Configuration config3 = new Configuration(); in populateIntervalStats() 209 Configuration config4 = new Configuration(); in populateIntervalStats() 214 Configuration config5 = new Configuration(); in populateIntervalStats() 219 Configuration config6 = new Configuration(); in populateIntervalStats() 224 Configuration config7 = new Configuration(); in populateIntervalStats() 229 Configuration config8 = new Configuration(); in populateIntervalStats() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImpl.kt | 19 import android.content.res.Configuration 28 private val lastConfig = Configuration() 41 inCarMode = currentConfig.uiMode and Configuration.UI_MODE_TYPE_MASK == 42 Configuration.UI_MODE_TYPE_CAR 43 uiMode = currentConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK 55 override fun onConfigurationChanged(newConfig: Configuration) { in onConfigurationChanged() 64 val uiMode = newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK in onConfigurationChanged()
|
/frameworks/base/apct-tests/perftests/core/src/android/app/ |
D | ResourcesManagerPerfTest.java | 19 import android.content.res.Configuration; 124 Configuration c = new Configuration(resourcesManager.getConfiguration()); in applyConfigurationToResourcesLocked() 125 c.uiMode = Configuration.UI_MODE_TYPE_WATCH; in applyConfigurationToResourcesLocked() 132 if (c.uiMode == Configuration.UI_MODE_TYPE_WATCH) { in applyConfigurationToResourcesLocked() 133 c.uiMode = Configuration.UI_MODE_TYPE_TELEVISION; in applyConfigurationToResourcesLocked() 135 c.uiMode = Configuration.UI_MODE_TYPE_WATCH; in applyConfigurationToResourcesLocked()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | InterestingConfigChanges.java | 20 import android.content.res.Configuration; 24 private final Configuration mLastConfiguration = new Configuration(); 40 Configuration.generateDelta(mLastConfiguration, res.getConfiguration())); in applyNewConfig()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/ |
D | PerformanceRunner.java | 43 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/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 24 import android.content.res.Configuration; 25 import android.content.res.Configuration.NativeConfig; 840 Configuration.NATIVE_CONFIG_MNC, // MNC 841 Configuration.NATIVE_CONFIG_MCC, // MCC 842 Configuration.NATIVE_CONFIG_LOCALE, // LOCALE 843 Configuration.NATIVE_CONFIG_TOUCHSCREEN, // TOUCH SCREEN 844 Configuration.NATIVE_CONFIG_KEYBOARD, // KEYBOARD 845 Configuration.NATIVE_CONFIG_KEYBOARD_HIDDEN, // KEYBOARD HIDDEN 846 Configuration.NATIVE_CONFIG_NAVIGATION, // NAVIGATION 847 Configuration.NATIVE_CONFIG_ORIENTATION, // ORIENTATION [all …]
|
/frameworks/base/core/java/android/app/servertransaction/ |
D | ActivityConfigurationChangeItem.java | 24 import android.content.res.Configuration; 37 private Configuration mConfiguration; 61 public static ActivityConfigurationChangeItem obtain(@NonNull Configuration config) { in obtain() 78 mConfiguration = Configuration.EMPTY; in recycle() 93 mConfiguration = in.readTypedObject(Configuration.CREATOR); in ActivityConfigurationChangeItem()
|