/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 | ActivityRecordTests.java | 62 import android.content.res.Configuration; 241 final Configuration newConfig = new Configuration(); in testNewOverrideConfigurationIncrementsSeq() 250 final Configuration newConfig = new Configuration( in testNewParentConfigurationIncrementsSeq() 252 newConfig.orientation = newConfig.orientation == Configuration.ORIENTATION_PORTRAIT in testNewParentConfigurationIncrementsSeq() 253 ? Configuration.ORIENTATION_LANDSCAPE : Configuration.ORIENTATION_PORTRAIT; in testNewParentConfigurationIncrementsSeq() 262 final Configuration appWindowTokenRequestedOrientation = mock(Configuration.class); in testNotifiesSeqIncrementToAppToken() 267 final Configuration newConfig = new Configuration(); in testNotifiesSeqIncrementToAppToken() 268 newConfig.orientation = Configuration.ORIENTATION_PORTRAIT; in testNotifiesSeqIncrementToAppToken() 281 mActivity.setLastReportedConfiguration(new MergedConfiguration(new Configuration(), in testSetsRelaunchReason_NotDragResizing() 285 final Configuration newConfig = new Configuration(mTask.getConfiguration()); in testSetsRelaunchReason_NotDragResizing() [all …]
|
D | WindowConfigurationTests.java | 37 import android.content.res.Configuration; 67 final Configuration config1 = new Configuration(); in testDiff() 69 final Configuration config2 = new Configuration(); in testDiff() 71 final Configuration config3 = new Configuration(); in testDiff() 73 final Configuration config4 = new Configuration(); in testDiff() 106 final Configuration blankConfig = new Configuration(); in testConfigurationCompareTo() 109 final Configuration config1 = new Configuration(); in testConfigurationCompareTo() 113 final Configuration config2 = new Configuration(config1); in testConfigurationCompareTo()
|
/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/core/tests/coretests/src/android/content/res/ |
D | ConfigurationTest.java | 51 Configuration config = new Configuration(); in testUpdateFromPreservesRoundBit() 52 config.screenLayout = Configuration.SCREENLAYOUT_ROUND_YES; in testUpdateFromPreservesRoundBit() 53 Configuration config2 = new Configuration(); in testUpdateFromPreservesRoundBit() 56 assertEquals(config.screenLayout, Configuration.SCREENLAYOUT_ROUND_YES); in testUpdateFromPreservesRoundBit() 61 Configuration config = new Configuration(); in testUpdateFromPreservesCompatNeededBit() 62 config.screenLayout = Configuration.SCREENLAYOUT_COMPAT_NEEDED; in testUpdateFromPreservesCompatNeededBit() 63 Configuration config2 = new Configuration(); in testUpdateFromPreservesCompatNeededBit() 65 assertEquals(config.screenLayout, Configuration.SCREENLAYOUT_COMPAT_NEEDED); in testUpdateFromPreservesCompatNeededBit() 68 assertEquals(config2.screenLayout, Configuration.SCREENLAYOUT_COMPAT_NEEDED); in testUpdateFromPreservesCompatNeededBit() 85 Configuration write = new Configuration(); in testReadWriteProto() [all …]
|
D | ResourcesManagerTest.java | 92 Configuration overrideConfig = new Configuration(); in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 130 final Configuration overrideConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers() 131 overrideConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers() 147 Configuration newConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers() 148 newConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers() 151 final Configuration expectedConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers() 155 expectedConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers() 200 final Configuration overrideConfig = new Configuration(); in testThemesGetUpdatedWithNewImpl() 201 overrideConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testThemesGetUpdatedWithNewImpl() 217 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 …]
|
D | ResourcesLocaleTest.java | 50 return new Resources(assets, dm, new Configuration()); in createResourcesWithApk() 71 final Configuration config = new Configuration(); in testEnglishIsAlwaysConsideredSupported() 88 final Configuration config = new Configuration(); in testSelectFirstSupportedLanguage()
|
/frameworks/base/core/java/android/view/ |
D | DisplayAdjustments.java | 21 import android.content.res.Configuration; 30 private Configuration mConfiguration; 36 public DisplayAdjustments(Configuration configuration) { in DisplayAdjustments() 37 mConfiguration = new Configuration(configuration != null in DisplayAdjustments() 38 ? configuration : Configuration.EMPTY); in DisplayAdjustments() 43 mConfiguration = new Configuration(daj.mConfiguration != null in DisplayAdjustments() 44 ? daj.mConfiguration : Configuration.EMPTY); in DisplayAdjustments() 65 public void setConfiguration(Configuration configuration) { in setConfiguration() 70 mConfiguration.setTo(configuration != null ? configuration : Configuration.EMPTY); in setConfiguration() 74 public Configuration getConfiguration() { in getConfiguration()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | UsageStatsDatabaseTest.java | 30 import android.content.res.Configuration; 157 event.mConfiguration = new Configuration(); in populateIntervalStats() 181 Configuration config1 = new Configuration(); in populateIntervalStats() 186 Configuration config2 = new Configuration(); in populateIntervalStats() 191 Configuration config3 = new Configuration(); in populateIntervalStats() 196 Configuration config4 = new Configuration(); in populateIntervalStats() 201 Configuration config5 = new Configuration(); in populateIntervalStats() 206 Configuration config6 = new Configuration(); in populateIntervalStats() 211 Configuration config7 = new Configuration(); in populateIntervalStats() 216 Configuration config8 = new Configuration(); in populateIntervalStats() [all …]
|
/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/core/tests/coretests/src/android/app/activity/ |
D | ActivityThreadTest.java | 40 import android.content.res.Configuration; 240 final Configuration pendingConfig = new Configuration(); in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration() 241 pendingConfig.orientation = orientation == Configuration.ORIENTATION_LANDSCAPE in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration() 242 ? Configuration.ORIENTATION_PORTRAIT in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration() 243 : Configuration.ORIENTATION_LANDSCAPE; in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration() 248 final Configuration newConfig = new Configuration(); in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration() 266 final Configuration config = new Configuration(); in testHandleActivityConfigurationChanged_OnlyAppliesNewestConfiguration() 268 config.orientation = Configuration.ORIENTATION_PORTRAIT; in testHandleActivityConfigurationChanged_OnlyAppliesNewestConfiguration() 280 Configuration config = new Configuration(); in testHandleActivityConfigurationChanged_OnlyAppliesNewestConfiguration() 290 config = new Configuration(); in testHandleActivityConfigurationChanged_OnlyAppliesNewestConfiguration() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ConfigurationContainer.java | 39 import android.content.res.Configuration; 63 private Configuration mRequestedOverrideConfiguration = new Configuration(); 69 private Configuration mResolvedOverrideConfiguration = new Configuration(); 78 private Configuration mFullConfiguration = new Configuration(); 88 private Configuration mMergedOverrideConfiguration = new Configuration(); 93 private final Configuration mTmpConfig = new Configuration(); 110 public Configuration getConfiguration() { in getConfiguration() 123 public void onConfigurationChanged(Configuration newParentConfig) { in onConfigurationChanged() 154 void resolveOverrideConfiguration(Configuration newParentConfig) { in resolveOverrideConfiguration() 159 public Configuration getRequestedOverrideConfiguration() { in getRequestedOverrideConfiguration() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputQuickSettingsDisablerTest.java | 26 import android.content.res.Configuration; 76 Configuration c = new Configuration(mContext.getResources().getConfiguration()); in testChangeToLandscape() 77 c.orientation = Configuration.ORIENTATION_PORTRAIT; in testChangeToLandscape() 79 c.orientation = Configuration.ORIENTATION_LANDSCAPE; in testChangeToLandscape() 87 Configuration c = new Configuration(mContext.getResources().getConfiguration()); in testChangeToPortrait() 88 c.orientation = Configuration.ORIENTATION_LANDSCAPE; in testChangeToPortrait() 90 c.orientation = Configuration.ORIENTATION_PORTRAIT; in testChangeToPortrait()
|
D | ExtensionControllerImplTest.java | 25 import android.content.res.Configuration; 116 .withUiMode(Configuration.UI_MODE_TYPE_CAR, () -> o) in testUiMode() 122 Configuration c = new Configuration(mContext.getResources().getConfiguration()); in testUiMode() 128 c.uiMode = Configuration.UI_MODE_TYPE_CAR; in testUiMode() 156 .withUiMode(Configuration.UI_MODE_TYPE_CAR, () -> uiMode) in testSortOrder() 168 Configuration c = new Configuration(mContext.getResources().getConfiguration()); in testSortOrder() 169 c.uiMode |= Configuration.UI_MODE_TYPE_CAR; in testSortOrder()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 33 import android.content.res.Configuration; 332 public static Configuration getConfiguration(RenderParams params) { in getConfiguration() 333 Configuration config = new Configuration(); in getConfiguration() 341 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_SMALL; in getConfiguration() 344 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_NORMAL; in getConfiguration() 347 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_LARGE; in getConfiguration() 350 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_XLARGE; in getConfiguration() 378 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration() 381 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration() 385 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() 885 public Configuration() { in Configuration() method in Configuration 892 public Configuration(Configuration o) { in Configuration() method in Configuration 910 public void setTo(Configuration o) { in setTo() 1415 public @Config int updateFrom(@NonNull Configuration delta) { in updateFrom() 1622 public int diff(Configuration delta) { in diff() 1634 public int diffPublicOnly(Configuration delta) { in diffPublicOnly() 1643 public int diff(Configuration delta, boolean compareUndefined, boolean publicOnly) { in diff() [all …]
|
D | ResourcesKey.java | 46 public final Configuration mOverrideConfiguration; 59 @Nullable Configuration overrideConfig, in ResourcesKey() 66 mOverrideConfiguration = new Configuration(overrideConfig != null in ResourcesKey() 67 ? overrideConfig : Configuration.EMPTY); in ResourcesKey() 82 return !Configuration.EMPTY.equals(mOverrideConfiguration); in hasOverrideConfiguration() 167 builder.append(" mOverrideConfig=").append(Configuration.resourceQualifierString( in toString()
|
/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/core/java/android/app/ |
D | ResourcesManager.java | 30 import android.content.res.Configuration; 83 private final Configuration mResConfiguration = new Configuration(); 151 public final Configuration overrideConfig = new Configuration(); 204 public Configuration getConfiguration() { in getConfiguration() 231 @NonNull DisplayMetrics dm, @NonNull Configuration config) { in applyNonDefaultDisplayMetricsToConfiguration() 232 config.touchscreen = Configuration.TOUCHSCREEN_NOTOUCH; in applyNonDefaultDisplayMetricsToConfiguration() 236 int sl = Configuration.resetScreenLayout(config.screenLayout); in applyNonDefaultDisplayMetricsToConfiguration() 238 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in applyNonDefaultDisplayMetricsToConfiguration() 239 config.screenLayout = Configuration.reduceScreenLayout(sl, in applyNonDefaultDisplayMetricsToConfiguration() 242 config.orientation = Configuration.ORIENTATION_PORTRAIT; in applyNonDefaultDisplayMetricsToConfiguration() [all …]
|
D | ClientTransactionHandler.java | 25 import android.content.res.Configuration; 76 public abstract void updatePendingConfiguration(Configuration config); in updatePendingConfiguration() 141 Configuration overrideConfig); in updatePendingActivityConfiguration() 145 Configuration overrideConfig, int displayId); in handleActivityConfigurationChanged() 152 Configuration overrideConfig); in handleMultiWindowModeChanged() 159 Configuration overrideConfig); in handlePictureInPictureModeChanged() 177 public abstract void handleConfigurationChanged(Configuration config); in handleConfigurationChanged()
|
/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/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/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 24 import android.content.res.Configuration; 25 import android.content.res.Configuration.NativeConfig; 826 Configuration.NATIVE_CONFIG_MNC, // MNC 827 Configuration.NATIVE_CONFIG_MCC, // MCC 828 Configuration.NATIVE_CONFIG_LOCALE, // LOCALE 829 Configuration.NATIVE_CONFIG_TOUCHSCREEN, // TOUCH SCREEN 830 Configuration.NATIVE_CONFIG_KEYBOARD, // KEYBOARD 831 Configuration.NATIVE_CONFIG_KEYBOARD_HIDDEN, // KEYBOARD HIDDEN 832 Configuration.NATIVE_CONFIG_NAVIGATION, // NAVIGATION 833 Configuration.NATIVE_CONFIG_ORIENTATION, // ORIENTATION [all …]
|
/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
|