Home
last modified time | relevance | path

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

12345678910

/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/app/
DResourcesManager.java24 import android.content.res.Configuration;
53 Configuration mResConfiguration;
54 final Configuration mTmpConfig = new Configuration();
65 public Configuration getConfiguration() { in getConfiguration()
113 DisplayMetrics dm, Configuration config) { in applyNonDefaultDisplayMetricsToConfigurationLocked()
114 config.touchscreen = Configuration.TOUCHSCREEN_NOTOUCH; in applyNonDefaultDisplayMetricsToConfigurationLocked()
118 int sl = Configuration.resetScreenLayout(config.screenLayout); in applyNonDefaultDisplayMetricsToConfigurationLocked()
120 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in applyNonDefaultDisplayMetricsToConfigurationLocked()
121 config.screenLayout = Configuration.reduceScreenLayout(sl, in applyNonDefaultDisplayMetricsToConfigurationLocked()
124 config.orientation = Configuration.ORIENTATION_PORTRAIT; 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()
/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();
253 curLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED; in reduceScreenLayout()
611 public Configuration() { in Configuration() method in Configuration
618 public Configuration(Configuration o) { in Configuration() method in Configuration
622 public void setTo(Configuration o) { in setTo()
824 public int updateFrom(Configuration delta) { in updateFrom()
986 public int diff(Configuration delta) { in diff()
1085 public boolean isOtherSeqNewer(Configuration other) { in isOtherSeqNewer()
1180 public static final Parcelable.Creator<Configuration> CREATOR
[all …]
DResourcesKey.java29 public final Configuration mOverrideConfiguration = new Configuration();
31 public ResourcesKey(String resDir, int displayId, Configuration overrideConfiguration, in ResourcesKey()
51 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/content/pm/
DActivityInfo.java20 import android.content.res.Configuration;
557 Configuration.NATIVE_CONFIG_MNC, // MNC
558 Configuration.NATIVE_CONFIG_MCC, // MCC
559 Configuration.NATIVE_CONFIG_LOCALE, // LOCALE
560 Configuration.NATIVE_CONFIG_TOUCHSCREEN, // TOUCH SCREEN
561 Configuration.NATIVE_CONFIG_KEYBOARD, // KEYBOARD
562 Configuration.NATIVE_CONFIG_KEYBOARD_HIDDEN, // KEYBOARD HIDDEN
563 Configuration.NATIVE_CONFIG_NAVIGATION, // NAVIGATION
564 Configuration.NATIVE_CONFIG_ORIENTATION, // ORIENTATION
565 Configuration.NATIVE_CONFIG_SCREEN_LAYOUT, // SCREEN LAYOUT
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java36 import android.content.res.Configuration;
319 private Configuration getConfiguration() { in getConfiguration()
320 Configuration config = new Configuration(); in getConfiguration()
328 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_SMALL; in getConfiguration()
331 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_NORMAL; in getConfiguration()
334 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_LARGE; in getConfiguration()
337 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_XLARGE; in getConfiguration()
364 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration()
367 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration()
370 config.orientation = Configuration.ORIENTATION_SQUARE; in getConfiguration()
[all …]
/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);
DUsageStatsManagerInternal.java20 import android.content.res.Configuration;
44 public abstract void reportConfigurationChange(Configuration config, int userId); in reportConfigurationChange()
DUsageEvents.java18 import android.content.res.Configuration;
94 public Configuration mConfiguration;
134 public Configuration getConfiguration() { in getConfiguration()
295 eventOut.mConfiguration = Configuration.CREATOR.createFromParcel(p); in readEventFromParcel()
/frameworks/base/core/java/android/view/
DContextThemeWrapper.java21 import android.content.res.Configuration;
32 private Configuration mOverrideConfiguration;
58 public void applyOverrideConfiguration(Configuration overrideConfiguration) { in applyOverrideConfiguration()
65 mOverrideConfiguration = new Configuration(overrideConfiguration); in applyOverrideConfiguration()
DIWindowManager.aidl23 import android.content.res.Configuration;
113 Configuration updateOrientationFromAppTokens(in Configuration currentConfig, in updateOrientationFromAppTokens()
115 void setNewConfiguration(in Configuration config); in setNewConfiguration()
/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;
60 ConfigurationStats getOrCreateConfigurationStats(Configuration config) { in getOrCreateConfigurationStats()
107 void updateConfigurationStats(Configuration config, long timeStamp) { in updateConfigurationStats()
DUsageStatsXmlV1.java28 import android.content.res.Configuration;
79 final Configuration config = new Configuration(); in loadConfigStats()
80 Configuration.readXmlAttrs(parser, config); in loadConfigStats()
111 event.mConfiguration = new Configuration(); in loadEvent()
112 Configuration.readXmlAttrs(parser, event.mConfiguration); in loadEvent()
151 Configuration.writeXmlAttrs(xml, configStats.mConfiguration); in writeConfigStats()
171 Configuration.writeXmlAttrs(xml, event.mConfiguration); in writeEvent()
/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/core/java/com/android/server/
DUiModeManagerService.java33 import android.content.res.Configuration;
82 private Configuration mConfiguration = new Configuration();
227 return mCurUiMode & Configuration.UI_MODE_TYPE_MASK;
349 uiMode = Configuration.UI_MODE_TYPE_TELEVISION; in updateConfigurationLocked()
351 uiMode = Configuration.UI_MODE_TYPE_WATCH; in updateConfigurationLocked()
353 uiMode = Configuration.UI_MODE_TYPE_CAR; in updateConfigurationLocked()
355 uiMode = Configuration.UI_MODE_TYPE_DESK; in updateConfigurationLocked()
360 uiMode |= mComputedNightMode ? Configuration.UI_MODE_NIGHT_YES in updateConfigurationLocked()
361 : Configuration.UI_MODE_NIGHT_NO; in updateConfigurationLocked()
367 uiMode = (uiMode & ~Configuration.UI_MODE_NIGHT_MASK) | Configuration.UI_MODE_NIGHT_NO; in updateConfigurationLocked()
[all …]
DAttributeCache.java23 import android.content.res.Configuration;
42 private final Configuration mConfiguration = new Configuration();
84 public void updateConfiguration(Configuration config) { in updateConfiguration()
DAssetAtlasService.java226 Configuration config = chooseConfiguration(mBitmaps, mPixelCount, mVersionName); in run()
395 private static Configuration computeBestConfiguration( in computeBestConfiguration()
443 return new Configuration(result.type, result.width, result.height, result.count); in computeBestConfiguration()
471 private Configuration chooseConfiguration(ArrayList<Bitmap> bitmaps, int pixelCount, in chooseConfiguration()
473 Configuration config = null; in chooseConfiguration()
491 private void writeConfiguration(Configuration config, File file, String versionName) { in writeConfiguration()
526 private Configuration readConfiguration(File file, String versionName) { in readConfiguration()
528 Configuration config = null; in readConfiguration()
539 config = new Configuration(type, width, height, count, flags); in readConfiguration()
602 private static class Configuration { class in AssetAtlasService
[all …]
/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/tools/layoutlib/bridge/src/android/view/
DIWindowManagerImpl.java24 import android.content.res.Configuration;
40 private final Configuration mConfig;
45 public IWindowManagerImpl(Configuration config, DisplayMetrics metrics, int rotation, in IWindowManagerImpl()
370 public void setNewConfiguration(Configuration arg0) throws RemoteException { in setNewConfiguration()
427 public Configuration updateOrientationFromAppTokens(Configuration arg0, IBinder arg1) in updateOrientationFromAppTokens()
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUI.java20 import android.content.res.Configuration;
32 protected void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DEmptyShadeView.java20 import android.content.res.Configuration;
36 protected void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged()

12345678910