/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 90 Configuration overrideConfig = new Configuration(); in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 128 final Configuration overrideConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers() 129 overrideConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers() 145 Configuration newConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers() 146 newConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers() 149 final Configuration expectedConfig = new Configuration(); in testUpdateConfigurationUpdatesAllAssetManagers() 152 expectedConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testUpdateConfigurationUpdatesAllAssetManagers() 197 final Configuration overrideConfig = new Configuration(); in testThemesGetUpdatedWithNewImpl() 198 overrideConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testThemesGetUpdatedWithNewImpl() 213 Configuration config1 = new Configuration(); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() [all …]
|
D | ConfigurationBoundResourceCacheTest.java | 87 final Configuration cfg = res.getConfiguration(); in testVoidConfigChange() 88 Configuration newCnf = new Configuration(cfg); in testVoidConfigChange() 89 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testVoidConfigChange() 90 Configuration.ORIENTATION_PORTRAIT in testVoidConfigChange() 91 : Configuration.ORIENTATION_LANDSCAPE; in testVoidConfigChange() 110 final Configuration cfg = res.getConfiguration(); in testEffectiveConfigChange() 111 Configuration newCnf = new Configuration(cfg); in testEffectiveConfigChange() 112 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testEffectiveConfigChange() 113 Configuration.ORIENTATION_PORTRAIT in testEffectiveConfigChange() 114 : Configuration.ORIENTATION_LANDSCAPE; in testEffectiveConfigChange() [all …]
|
D | ResourcesLocaleTest.java | 49 return new Resources(assets, dm, new Configuration()); in createResourcesWithApk() 70 final Configuration config = new Configuration(); in testEnglishIsAlwaysConsideredSupported() 87 final Configuration config = new Configuration(); in testSelectFirstSupportedLanguage()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 53 public final class Configuration implements Parcelable, Comparable<Configuration> { class 55 public static final Configuration EMPTY = new Configuration(); 295 curLayout |= Configuration.SCREENLAYOUT_COMPAT_NEEDED; in reduceScreenLayout() 731 public Configuration() { in Configuration() method in Configuration 738 public Configuration(Configuration o) { in Configuration() method in Configuration 751 public void setTo(Configuration o) { in setTo() 954 public @Config int updateFrom(@NonNull Configuration delta) { in updateFrom() 1120 public int diff(Configuration delta) { in diff() 1222 public boolean isOtherSeqNewer(Configuration other) { in isOtherSeqNewer() 1323 public static final Parcelable.Creator<Configuration> CREATOR [all …]
|
D | ResourcesKey.java | 43 public final Configuration mOverrideConfiguration; 55 @Nullable Configuration overrideConfig, in ResourcesKey() 62 mOverrideConfiguration = overrideConfig != null ? overrideConfig : Configuration.EMPTY; in ResourcesKey() 77 return !Configuration.EMPTY.equals(mOverrideConfiguration); in hasOverrideConfiguration() 162 builder.append(" mOverrideConfig=").append(Configuration.resourceQualifierString( in toString()
|
/frameworks/base/core/java/android/app/ |
D | ResourcesManager.java | 26 import android.content.res.Configuration; 77 private final Configuration mResConfiguration = new Configuration(); 95 public final Configuration overrideConfig = new Configuration(); 145 public Configuration getConfiguration() { in getConfiguration() 172 @NonNull DisplayMetrics dm, @NonNull Configuration config) { in applyNonDefaultDisplayMetricsToConfiguration() 173 config.touchscreen = Configuration.TOUCHSCREEN_NOTOUCH; in applyNonDefaultDisplayMetricsToConfiguration() 177 int sl = Configuration.resetScreenLayout(config.screenLayout); in applyNonDefaultDisplayMetricsToConfiguration() 179 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in applyNonDefaultDisplayMetricsToConfiguration() 180 config.screenLayout = Configuration.reduceScreenLayout(sl, in applyNonDefaultDisplayMetricsToConfiguration() 183 config.orientation = Configuration.ORIENTATION_PORTRAIT; in applyNonDefaultDisplayMetricsToConfiguration() [all …]
|
D | UiModeManager.java | 22 import android.content.res.Configuration; 110 public static final int MODE_NIGHT_AUTO = Configuration.UI_MODE_NIGHT_UNDEFINED >> 4; 116 public static final int MODE_NIGHT_NO = Configuration.UI_MODE_NIGHT_NO >> 4; 122 public static final int MODE_NIGHT_YES = Configuration.UI_MODE_NIGHT_YES >> 4; 207 return Configuration.UI_MODE_TYPE_NORMAL; in getCurrentModeType()
|
/frameworks/base/core/java/android/view/ |
D | DisplayAdjustments.java | 20 import android.content.res.Configuration; 29 private Configuration mConfiguration = Configuration.EMPTY; 34 public DisplayAdjustments(Configuration configuration) { in DisplayAdjustments() 60 public void setConfiguration(Configuration configuration) { in setConfiguration() 65 mConfiguration = configuration != null ? configuration : Configuration.EMPTY; in setConfiguration() 68 public Configuration getConfiguration() { in getConfiguration()
|
D | ContextThemeWrapper.java | 23 import android.content.res.Configuration; 34 private Configuration mOverrideConfiguration; 93 public void applyOverrideConfiguration(Configuration overrideConfiguration) { in applyOverrideConfiguration() 101 mOverrideConfiguration = new Configuration(overrideConfiguration); in applyOverrideConfiguration() 109 public Configuration getOverrideConfiguration() { in getOverrideConfiguration()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 33 import android.content.res.Configuration; 323 public static Configuration getConfiguration(RenderParams params) { in getConfiguration() 324 Configuration config = new Configuration(); in getConfiguration() 332 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_SMALL; in getConfiguration() 335 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_NORMAL; in getConfiguration() 338 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_LARGE; in getConfiguration() 341 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_XLARGE; in getConfiguration() 369 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration() 372 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration() 376 config.orientation = Configuration.ORIENTATION_SQUARE; in getConfiguration() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 20 import android.content.res.Configuration; 21 import android.content.res.Configuration.NativeConfig; 641 Configuration.NATIVE_CONFIG_MNC, // MNC 642 Configuration.NATIVE_CONFIG_MCC, // MCC 643 Configuration.NATIVE_CONFIG_LOCALE, // LOCALE 644 Configuration.NATIVE_CONFIG_TOUCHSCREEN, // TOUCH SCREEN 645 Configuration.NATIVE_CONFIG_KEYBOARD, // KEYBOARD 646 Configuration.NATIVE_CONFIG_KEYBOARD_HIDDEN, // KEYBOARD HIDDEN 647 Configuration.NATIVE_CONFIG_NAVIGATION, // NAVIGATION 648 Configuration.NATIVE_CONFIG_ORIENTATION, // ORIENTATION [all …]
|
/frameworks/base/docs/html-intl/intl/ru/guide/topics/resources/ |
D | runtime-changes.jd | 210 android.app.Activity#onConfigurationChanged(Configuration) onConfigurationChanged()}. Этот метод 211 получает объект {@link android.content.res.Configuration}, в котором указана 212 новая конфигурация устройства. При считываении полей {@link android.content.res.Configuration} 230 android.app.Activity#onConfigurationChanged(Configuration) onConfigurationChanged()} 235 public void onConfigurationChanged(Configuration newConfig) { 239 if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { 241 } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){ 247 <p>Объект {@link android.content.res.Configuration} представляет все текущие 257 android.content.res.Configuration} являются целыми, которые соответствуют определенным константам 258 из класса {@link android.content.res.Configuration}. Документацию об используемых константах [all …]
|
/frameworks/base/docs/html-intl/intl/ja/guide/topics/resources/ |
D | runtime-changes.jd | 209 android.app.Activity#onConfigurationChanged(Configuration) onConfigurationChanged()} への呼び出しを取得します。 210 このメソッドには、新しい端末構成を指定する {@link android.content.res.Configuration} オブジェクトが渡されます。 212 {@link android.content.res.Configuration} のフィールドを読み込むことで新しい構成を判断し、インターフェースに使用するリソースを更新して適切に変更できます。 230 android.app.Activity#onConfigurationChanged(Configuration) onConfigurationChanged()} の実装により現在の端末の画面… 235 public void onConfigurationChanged(Configuration newConfig) { 239 if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { 241 } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){ 247 <p>{@link android.content.res.Configuration} オブジェクトは、変更された構成を除く、現在のすべての構成を表します。 257 android.content.res.Configuration} フィールドの値は、{@link android.content.res.Configuration} クラスの特定の定数に一致す… 259 android.content.res.Configuration} リファレンスの該当するフィールドをご覧ください。 [all …]
|
/frameworks/base/docs/html-intl/intl/ko/guide/topics/resources/ |
D | runtime-changes.jd | 210 android.app.Activity#onConfigurationChanged(Configuration) onConfigurationChanged()}로의 호출을 받습니다. 이 … 211 {@link android.content.res.Configuration} 객체로 전달되며, 이는 새 기기 구성을 212 나타냅니다. {@link android.content.res.Configuration}의 필드를 읽어보면 230 android.app.Activity#onConfigurationChanged(Configuration) onConfigurationChanged()} 구현은 235 public void onConfigurationChanged(Configuration newConfig) { 239 if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { 241 } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){ 247 <p>{@link android.content.res.Configuration} 객체는 변경된 것만이 아니라 현재 257 android.content.res.Configuration} 필드에서 가져온 값이 258 {@link android.content.res.Configuration} 클래스에서 가져온 특정 상수와 일치하는 정수라는 점을 눈여겨 보십시오. 각 필드에 [all …]
|
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/resources/ |
D | runtime-changes.jd | 210 android.app.Activity#onConfigurationChanged(Configuration) onConfigurationChanged()} 的调用。向此方法传递 211 {@link android.content.res.Configuration} 213 {@link android.content.res.Configuration} 230 android.app.Activity#onConfigurationChanged(Configuration) onConfigurationChanged()} 实现 235 public void onConfigurationChanged(Configuration newConfig) { 239 if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { 241 } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){ 247 <p>{@link android.content.res.Configuration} 257 android.content.res.Configuration} 字段中的值是与 258 {@link android.content.res.Configuration} 类中的特定常量匹配的整型数。有关要对每个字段使用哪些常量的文档,请参阅 [all …]
|
/frameworks/base/docs/html-intl/intl/zh-tw/guide/topics/resources/ |
D | runtime-changes.jd | 209 而是由 {@code MyActivity} 接收對 {@link android.app.Activity#onConfigurationChanged(Configuration) onConf… 210 這個方法傳送一個 {@link android.content.res.Configuration} 物件,指定新裝置設定。 212 讀取 {@link android.content.res.Configuration} 中的欄位時,您可判斷新的設定,並且更新您介面中使用的資源來進行適當的變更。 230 android.app.Activity#onConfigurationChanged(Configuration) onConfigurationChanged()} 實作會檢查目前的裝置方向: 235 public void onConfigurationChanged(Configuration newConfig) { 239 if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { 241 } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){ 247 <p>{@link android.content.res.Configuration} 物件代表目前所有的設定,而不只是已變更的設定。 257 android.content.res.Configuration} 欄位的值,是與 {@link android.content.res.Configuration} 類別的特定常數相符的整數。 259 android.content.res.Configuration} 參考資料中的適當欄位。 [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | AppCompatDelegateImplV14.java | 27 import android.content.res.Configuration; 188 final Configuration conf = res.getConfiguration(); in updateForNightMode() 189 final int currentNightMode = conf.uiMode & Configuration.UI_MODE_NIGHT_MASK; in updateForNightMode() 192 ? Configuration.UI_MODE_NIGHT_YES in updateForNightMode() 193 : Configuration.UI_MODE_NIGHT_NO; in updateForNightMode() 208 final Configuration newConf = new Configuration(conf); in updateForNightMode() 210 | (newConf.uiMode & ~Configuration.UI_MODE_NIGHT_MASK); in updateForNightMode()
|
/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();
|
/frameworks/base/core/java/android/app/usage/ |
D | ConfigurationStats.java | 18 import android.content.res.Configuration; 31 public Configuration mConfiguration; 73 public Configuration getConfiguration() { in getConfiguration() 146 stats.mConfiguration = Configuration.CREATOR.createFromParcel(source);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Task.java | 25 import static android.content.res.Configuration.ORIENTATION_LANDSCAPE; 35 import android.content.res.Configuration; 66 final Configuration mPreparedFrozenMergedConfig = new Configuration(); 82 Configuration mOverrideConfig = Configuration.EMPTY; 99 Configuration config) { in Task() 169 void positionTaskInStack(TaskStack stack, int position, Rect bounds, Configuration config) { in positionTaskInStack() 210 private int setBounds(Rect bounds, Configuration config) { in setBounds() 212 config = Configuration.EMPTY; in setBounds() 214 if (bounds == null && !Configuration.EMPTY.equals(config)) { in setBounds() 218 if (bounds != null && Configuration.EMPTY.equals(config)) { in setBounds() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 22 import android.content.res.Configuration; 48 final Configuration config = mContext.getResources().getConfiguration(); in getMaxActionButtons() 81 final Configuration configuration = mContext.getResources().getConfiguration(); in hasEmbeddedTabs() 84 return configuration.orientation == Configuration.ORIENTATION_LANDSCAPE || in hasEmbeddedTabs()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | IntervalStats.java | 22 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() 124 void updateConfigurationStats(Configuration config, long timeStamp) { in updateConfigurationStats()
|
D | UsageStatsXmlV1.java | 28 import android.content.res.Configuration; 79 final Configuration config = new Configuration(); in loadConfigStats() 80 Configuration.readXmlAttrs(parser, config); in loadConfigStats() 112 event.mConfiguration = new Configuration(); in loadEvent() 113 Configuration.readXmlAttrs(parser, event.mConfiguration); in loadEvent() 157 Configuration.writeXmlAttrs(xml, configStats.mConfiguration); in writeConfigStats() 178 Configuration.writeXmlAttrs(xml, event.mConfiguration); in writeEvent()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityManagerTest.java | 22 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/packages/SystemUI/src/com/android/systemui/stackdivider/ |
D | Divider.java | 19 import android.content.res.Configuration; 30 import static android.content.res.Configuration.ORIENTATION_LANDSCAPE; 61 protected void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() 70 private void addDivider(Configuration configuration) { in addDivider() 87 private void update(Configuration configuration) { in update()
|