/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/ |
D | DarkModeActivationPreferenceControllerTest.java | 85 when(mRes.getConfiguration()).thenReturn(mConfigNightNo); in setUp() 126 when(mRes.getConfiguration()).thenReturn(mConfigNightYes); in nightMode_toggleButton_onManual() 137 when(mRes.getConfiguration()).thenReturn(mConfigNightNo); in nightMode_toggleButton_offManual() 148 when(mRes.getConfiguration()).thenReturn(mConfigNightYes); in nightMode_toggleButton_onCustom() 159 when(mRes.getConfiguration()).thenReturn(mConfigNightNo); in nightMode_toggleButton_offCustom() 172 when(mRes.getConfiguration()).thenReturn(mConfigNightYes); in nightMode_toggleButton_onCustomBedtime() 185 when(mRes.getConfiguration()).thenReturn(mConfigNightNo); in nightMode_toggleButton_offCustomBedtime() 196 when(mRes.getConfiguration()).thenReturn(mConfigNightYes); in nightMode_toggleButton_onAuto() 207 when(mRes.getConfiguration()).thenReturn(mConfigNightNo); in nightMode_toggleButton_offAuto()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | DarkThemeSliceTest.java | 96 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in isAvailable_inDarkThemeMode_returnFalse() 103 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in isAvailable_nonDarkTheme_autoNightMode_returnFalse() 111 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in isAvailable_nonDarkTheme_customNightMode_returnFalse() 146 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in getSlice_notAvailable_returnErrorSlice() 162 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in getSlice_newSession_notAvailable_returnErrorSlice() 185 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in getSlice_sliceNotClicked_notAvailable_returnErrorSlice() 224 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in setBatteryCapacityLevel()
|
/packages/apps/Settings/src/com/android/settings/display/darkmode/ |
D | DarkModeActivationPreferenceController.java | 61 final boolean active = (mContext.getResources().getConfiguration().uiMode in updateState() 68 final boolean isActivated = (mContext.getResources().getConfiguration().uiMode in getSummary() 101 final boolean active = (mContext.getResources().getConfiguration().uiMode in onCheckedChanged()
|
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/ |
D | AdServicesSupportHelper.java | 153 (resources.getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) in isLargeScreen() 156 (resources.getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) in isLargeScreen() 158 && resources.getConfiguration().smallestScreenWidthDp in isLargeScreen()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/systembar/ |
D | CarUiPortraitSystemBarModule.java | 44 if (context.getResources().getConfiguration().orientation in provideButtonSelectionStateListener() 57 if (context.getResources().getConfiguration().orientation in provideButtonSelectionStateController()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | DisplayMetricsRetriever.java | 57 switch (resources.getConfiguration().orientation) { in getDisplayMetrics() 63 … Log.e(TAG, "Unknown device orientation: " + resources.getConfiguration().orientation); in getDisplayMetrics()
|
D | ScreenSizeCalculator.java | 63 switch (Resources.getSystem().getConfiguration().orientation) { in getScreenSize() 70 + Resources.getSystem().getConfiguration().orientation); in getScreenSize()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | StickyBottomCaptureLayout.java | 57 final int orientation = getResources().getConfiguration().orientation; 71 final int orientation = getResources().getConfiguration().orientation; 155 final int orientation = getResources().getConfiguration().orientation; in getRoundedThumbnailPosition()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/android/car/ui/plugin/ |
D | PluginUiContextFactory.java | 86 Configuration currentConfiguration = uiContext.getResources().getConfiguration(); in getPluginUiContext() 87 Configuration newConfiguration = sourceContext.getResources().getConfiguration(); in getPluginUiContext()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | SystemWindowManagerProxy.java | 49 return displayInfoContext.getResources().getConfiguration().windowConfiguration in getCurrentBounds() 62 return displayInfoContext.getResources().getConfiguration().windowConfiguration in getRotation()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/suggestions/ |
D | SuggestionItemView.java | 58 if (getResources().getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) { in onFinishInflate() 89 getResources().getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in focusSearch()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ui/ |
D | ThemeUiTestBase.java | 53 mConfiguration = mTargetContext.getResources().getConfiguration(); in setUp() 75 context.getResources().getConfiguration()); in getThemeByUiMode()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/ |
D | SettingsPanelActivityTest.java | 95 mOriginalUiMode = mSettingsPanelActivity.getResources().getConfiguration().uiMode; in setUp() 103 mSettingsPanelActivity.getResources().getConfiguration().uiMode = mOriginalUiMode; in tearDown() 220 Configuration config = mSettingsPanelActivity.getResources().getConfiguration(); in notInNightMode_lightNavigationBarAppearance()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DefaultCallLogInsertionHelper.java | 70 mLocale = context.getResources().getConfiguration().locale; in DefaultCallLogInsertionHelper() 75 mLocale = context.getResources().getConfiguration().locale; in DefaultCallLogInsertionHelper()
|
/packages/apps/Settings/src/com/android/settings/datetime/ |
D | LocationTimeZoneDetectionPreferenceController.java | 69 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in isChecked() 151 TimeZoneConfiguration configuration = timeZoneCapabilitiesAndConfig.getConfiguration(); in getSummary()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/ |
D | StringUtil.java | 100 final Locale locale = context.getResources().getConfiguration().locale; in formatElapsedTime() 151 final Locale locale = context.getResources().getConfiguration().locale; in formatRelativeTime()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactsUnavailableFragment.java | 86 if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { in onCreateView() 144 if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { in updateButtonVisibility()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | SubtypeLocaleUtils.java | 175 return sResources.getConfiguration().locale; in getDisplayLocaleOfSubtypeLocale() 185 final Locale displayLocale = sResources.getConfiguration().locale; in getSubtypeLocaleDisplayNameInSystemLocale() 271 final Locale displayLocale = sResources.getConfiguration().locale; in getSubtypeDisplayNameInSystemLocale()
|
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ui/ |
D | AssistedDialingSettingFragment.java | 178 .setRegion(getResources().getConfiguration().getLocales().get(0).getCountry()) in buildDefaultCountryChooserKeysAndValues() 179 .setLanguage(getResources().getConfiguration().getLocales().get(0).getLanguage()) in buildDefaultCountryChooserKeysAndValues()
|
/packages/apps/Settings/src/com/android/settings/datetime/timezone/ |
D | BaseTimeZonePicker.java | 121 return getContext().getResources().getConfiguration().getLocales().get(0); in getLocale() 206 return appBarLayout.getResources().getConfiguration().orientation in autoSetCollapsingToolbarLayoutScrolling()
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | OrientationUtil.java | 27 return context.getResources().getConfiguration().orientation in isLandscape()
|
/packages/modules/AdServices/adservices/libraries/health/runners/concurrent-longevity/adservices/src/android/adservices/test/longevity/concurrent/ |
D | ProfileSuite.java | 147 switch (mProfile.getConfiguration().getSchedule()) { in getSuiteRunner() 167 mProfile.getConfiguration().getSchedule().name())); in getSuiteRunner()
|
/packages/apps/Dialer/java/com/android/dialer/i18n/ |
D | LocaleUtils.java | 27 LocaleList localList = context.getResources().getConfiguration().getLocales(); in getLocale()
|
/packages/services/Telephony/src/com/android/phone/ |
D | FrameworksUtils.java | 33 boolean isDarkTheme = (context.getResources().getConfiguration().uiMode in makeAlertDialogBuilder()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionarySettingsUtils.java | 38 final Locale systemLocale = context.getResources().getConfiguration().locale; in getLocaleDisplayName()
|