Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java80 final Configuration cfg = res.getConfiguration(); in testVoidConfigChange()
81 Configuration newCnf = new Configuration(cfg); in testVoidConfigChange()
82 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testVoidConfigChange()
83 Configuration.ORIENTATION_PORTRAIT in testVoidConfigChange()
84 : Configuration.ORIENTATION_LANDSCAPE; in testVoidConfigChange()
102 final Configuration cfg = res.getConfiguration(); in testEffectiveConfigChange()
103 Configuration newCnf = new Configuration(cfg); in testEffectiveConfigChange()
104 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testEffectiveConfigChange()
105 Configuration.ORIENTATION_PORTRAIT in testEffectiveConfigChange()
106 : Configuration.ORIENTATION_LANDSCAPE; in testEffectiveConfigChange()
[all …]
/frameworks/base/core/java/android/content/res/
DConfiguration.java46 public final class Configuration implements Parcelable, Comparable<Configuration> { class
48 public static final Configuration EMPTY = new Configuration();
282 curLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED; in reduceScreenLayout()
640 public Configuration() { in Configuration() method in Configuration
647 public Configuration(Configuration o) { in Configuration() method in Configuration
651 public void setTo(Configuration o) { in setTo()
853 public int updateFrom(Configuration delta) { in updateFrom()
1015 public int diff(Configuration delta) { in diff()
1114 public boolean isOtherSeqNewer(Configuration other) { in isOtherSeqNewer()
1209 public static final Parcelable.Creator<Configuration> CREATOR
[all …]
DResourcesKey.java31 public final Configuration mOverrideConfiguration;
33 public ResourcesKey(String resDir, int displayId, Configuration overrideConfiguration, in ResourcesKey()
38 ? overrideConfiguration : Configuration.EMPTY; in ResourcesKey()
50 return !Configuration.EMPTY.equals(mOverrideConfiguration); in hasOverrideConfiguration()
DCompatibilityInfo.java198 switch (screenLayout&Configuration.SCREENLAYOUT_SIZE_MASK) { in CompatibilityInfo()
199 case Configuration.SCREENLAYOUT_SIZE_XLARGE: in CompatibilityInfo()
207 case Configuration.SCREENLAYOUT_SIZE_LARGE: in CompatibilityInfo()
217 if ((screenLayout&Configuration.SCREENLAYOUT_COMPAT_NEEDED) != 0) { in CompatibilityInfo()
451 public void applyToConfiguration(int displayDensity, Configuration inoutConfig) { in applyToConfiguration()
457 (inoutConfig.screenLayout&~Configuration.SCREENLAYOUT_SIZE_MASK) in applyToConfiguration()
458 | Configuration.SCREENLAYOUT_SIZE_NORMAL; in applyToConfiguration()
/frameworks/base/core/java/android/app/
DResourcesManager.java24 import android.content.res.Configuration;
52 Configuration mResConfiguration;
63 public Configuration getConfiguration() { in getConfiguration()
84 DisplayMetrics dm, Configuration config) { in applyNonDefaultDisplayMetricsToConfigurationLocked()
85 config.touchscreen = Configuration.TOUCHSCREEN_NOTOUCH; in applyNonDefaultDisplayMetricsToConfigurationLocked()
89 int sl = Configuration.resetScreenLayout(config.screenLayout); in applyNonDefaultDisplayMetricsToConfigurationLocked()
91 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in applyNonDefaultDisplayMetricsToConfigurationLocked()
92 config.screenLayout = Configuration.reduceScreenLayout(sl, in applyNonDefaultDisplayMetricsToConfigurationLocked()
95 config.orientation = Configuration.ORIENTATION_PORTRAIT; in applyNonDefaultDisplayMetricsToConfigurationLocked()
96 config.screenLayout = Configuration.reduceScreenLayout(sl, in applyNonDefaultDisplayMetricsToConfigurationLocked()
[all …]
DUiModeManager.java20 import android.content.res.Configuration;
99 public static final int MODE_NIGHT_AUTO = Configuration.UI_MODE_NIGHT_UNDEFINED >> 4;
104 public static final int MODE_NIGHT_NO = Configuration.UI_MODE_NIGHT_NO >> 4;
109 public static final int MODE_NIGHT_YES = Configuration.UI_MODE_NIGHT_YES >> 4;
194 return Configuration.UI_MODE_TYPE_NORMAL; in getCurrentModeType()
DIApplicationThread.java27 import android.content.res.Configuration;
61 ActivityInfo info, Configuration curConfig, Configuration overrideConfig, in scheduleLaunchActivity()
68 Configuration config, Configuration overrideConfig) throws RemoteException; in scheduleRelaunchActivity()
99 Configuration config, CompatibilityInfo compatInfo, Map<String, IBinder> services, in bindApplication()
103 void scheduleConfigurationChanged(Configuration config) throws RemoteException; in scheduleConfigurationChanged()
117 void scheduleActivityConfigurationChanged(IBinder token, Configuration overrideConfig) in scheduleActivityConfigurationChanged()
/frameworks/base/core/java/android/content/pm/
DActivityInfo.java20 import android.content.res.Configuration;
558 Configuration.NATIVE_CONFIG_MNC, // MNC
559 Configuration.NATIVE_CONFIG_MCC, // MCC
560 Configuration.NATIVE_CONFIG_LOCALE, // LOCALE
561 Configuration.NATIVE_CONFIG_TOUCHSCREEN, // TOUCH SCREEN
562 Configuration.NATIVE_CONFIG_KEYBOARD, // KEYBOARD
563 Configuration.NATIVE_CONFIG_KEYBOARD_HIDDEN, // KEYBOARD HIDDEN
564 Configuration.NATIVE_CONFIG_NAVIGATION, // NAVIGATION
565 Configuration.NATIVE_CONFIG_ORIENTATION, // ORIENTATION
566 Configuration.NATIVE_CONFIG_SCREEN_LAYOUT, // SCREEN LAYOUT
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java33 import android.content.res.Configuration;
325 private Configuration getConfiguration() { in getConfiguration()
326 Configuration config = new Configuration(); in getConfiguration()
334 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_SMALL; in getConfiguration()
337 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_NORMAL; in getConfiguration()
340 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_LARGE; in getConfiguration()
343 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_XLARGE; in getConfiguration()
371 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration()
374 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration()
378 config.orientation = Configuration.ORIENTATION_SQUARE; in getConfiguration()
[all …]
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java20 import android.content.res.Configuration;
31 private Configuration mConfiguration = Configuration.EMPTY;
36 public DisplayAdjustments(Configuration configuration) { in DisplayAdjustments()
62 public void setConfiguration(Configuration configuration) { in setConfiguration()
70 public Configuration getConfiguration() { in getConfiguration()
DContextThemeWrapper.java22 import android.content.res.Configuration;
33 private Configuration mOverrideConfiguration;
65 public void applyOverrideConfiguration(Configuration overrideConfiguration) { in applyOverrideConfiguration()
72 mOverrideConfiguration = new Configuration(overrideConfiguration); in applyOverrideConfiguration()
/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);
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityManagerTest.java22 import android.content.res.Configuration;
100 Configuration vconfig = mContext.getResources().getConfiguration(); in testGetDeviceConfigurationInfo()
105 if (vconfig.navigation == Configuration.NAVIGATION_NONAV) { in testGetDeviceConfigurationInfo()
108 if (vconfig.keyboard != Configuration.KEYBOARD_UNDEFINED) { in testGetDeviceConfigurationInfo()
/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java22 import android.content.res.Configuration;
31 public final ArrayMap<Configuration, ConfigurationStats> configurations = new ArrayMap<>();
32 public Configuration activeConfiguration;
61 ConfigurationStats getOrCreateConfigurationStats(Configuration config) { in getOrCreateConfigurationStats()
142 void updateConfigurationStats(Configuration config, long timeStamp) { in updateConfigurationStats()
DUsageStatsXmlV1.java28 import android.content.res.Configuration;
95 final Configuration config = new Configuration(); in loadConfigStats()
96 Configuration.readXmlAttrs(parser, config); in loadConfigStats()
127 event.mConfiguration = new Configuration(); in loadEvent()
128 Configuration.readXmlAttrs(parser, event.mConfiguration); in loadEvent()
170 Configuration.writeXmlAttrs(xml, configStats.mConfiguration); in writeConfigStats()
190 Configuration.writeXmlAttrs(xml, event.mConfiguration); in writeEvent()
/frameworks/base/services/core/java/com/android/server/
DAttributeCache.java23 import android.content.res.Configuration;
42 private final Configuration mConfiguration = new Configuration();
84 public void updateConfiguration(Configuration config) { in updateConfiguration()
DAssetAtlasService.java219 Configuration config = chooseConfiguration(mBitmaps, mPixelCount, mVersionName); in run()
354 private static Configuration computeBestConfiguration( in computeBestConfiguration()
411 return new Configuration(result.type, result.width, result.height, result.count); in computeBestConfiguration()
439 private Configuration chooseConfiguration(ArrayList<Bitmap> bitmaps, int pixelCount, in chooseConfiguration()
441 Configuration config = null; in chooseConfiguration()
459 private void writeConfiguration(Configuration config, File file, String versionName) { in writeConfiguration()
494 private Configuration readConfiguration(File file, String versionName) { in readConfiguration()
496 Configuration config = null; in readConfiguration()
507 config = new Configuration(type, width, height, count, flags); in readConfiguration()
570 private static class Configuration { class in AssetAtlasService
[all …]
DUiModeManagerService.java33 import android.content.res.Configuration;
83 private Configuration mConfiguration = new Configuration();
235 return mCurUiMode & Configuration.UI_MODE_TYPE_MASK;
360 uiMode = Configuration.UI_MODE_TYPE_TELEVISION; in updateConfigurationLocked()
362 uiMode = Configuration.UI_MODE_TYPE_WATCH; in updateConfigurationLocked()
364 uiMode = Configuration.UI_MODE_TYPE_CAR; in updateConfigurationLocked()
366 uiMode = Configuration.UI_MODE_TYPE_DESK; in updateConfigurationLocked()
371 uiMode |= mComputedNightMode ? Configuration.UI_MODE_NIGHT_YES in updateConfigurationLocked()
372 : Configuration.UI_MODE_NIGHT_NO; in updateConfigurationLocked()
490 (mCurUiMode == Configuration.UI_MODE_TYPE_DESK && mDeskModeKeepsScreenOn)); in updateLocked()
/frameworks/base/core/java/android/content/
DComponentCallbacks.java19 import android.content.res.Configuration;
47 void onConfigurationChanged(Configuration newConfig); in onConfigurationChanged()
/frameworks/base/test-runner/src/android/test/mock/
DMockApplication.java20 import android.content.res.Configuration;
43 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DRotationLockTile.java19 import android.content.res.Configuration;
102 if (lockOrientation == Configuration.ORIENTATION_UNDEFINED) { in isCurrentOrientationLockPortrait()
105 != Configuration.ORIENTATION_LANDSCAPE; in isCurrentOrientationLockPortrait()
107 return lockOrientation != Configuration.ORIENTATION_LANDSCAPE; in isCurrentOrientationLockPortrait()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DIWindowManagerImpl.java25 import android.content.res.Configuration;
41 private final Configuration mConfig;
46 public IWindowManagerImpl(Configuration config, DisplayMetrics metrics, int rotation, in IWindowManagerImpl()
388 public void setNewConfiguration(Configuration arg0) throws RemoteException { in setNewConfiguration()
445 public Configuration updateOrientationFromAppTokens(Configuration arg0, IBinder arg1) in updateOrientationFromAppTokens()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeComponent.java19 import android.content.res.Configuration;
30 void onConfigurationChanged(Configuration newConfig); in onConfigurationChanged()
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java21 import android.content.res.Configuration;
81 Configuration.ORIENTATION_PORTRAIT : Configuration.ORIENTATION_LANDSCAPE; in getRotationLockOrientation()
86 return Configuration.ORIENTATION_UNDEFINED; in getRotationLockOrientation()

12345678910>>...12