/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/ |
D | DarkModeActivationPreferenceControllerTest.java | 82 when(res.getConfiguration()).thenReturn(mConfigNightNo); in setUp() 119 when(res.getConfiguration()).thenReturn(mConfigNightYes); in nightMode_toggleButton_offManual() 130 when(res.getConfiguration()).thenReturn(mConfigNightYes); in nightMode_toggleButton_offCustom() 141 when(res.getConfiguration()).thenReturn(mConfigNightYes); in nightMode_toggleButton_onCustom() 152 when(res.getConfiguration()).thenReturn(mConfigNightNo); in nightMode_toggleButton_onAutoWhenModeIsYes() 163 when(res.getConfiguration()).thenReturn(mConfigNightNo); in nightMode_toggleButton_onAutoWhenModeIsAuto() 174 when(res.getConfiguration()).thenReturn(mConfigNightYes); in nightModeSummary_buttonText_onManual() 183 when(res.getConfiguration()).thenReturn(mConfigNightNo); in nightModeSummary_buttonText_offAuto()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | DarkThemeSliceTest.java | 91 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in isAvailable_inDarkThemeMode_returnFalse() 98 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in isAvailable_nonDarkTheme_autoNightMode_returnFalse() 106 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in isAvailable_nonDarkTheme_customNightMode_returnFalse() 139 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in getSlice_notAvailable_returnErrorSlice() 154 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in getSlice_newSession_notAvailable_returnErrorSlice() 176 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in getSlice_sliceNotClicked_notAvailable_returnErrorSlice() 215 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in setBatteryCapacityLevel()
|
/packages/apps/Settings/src/com/android/settings/display/darkmode/ |
D | DarkModeActivationPreferenceController.java | 64 final boolean active = (mContext.getResources().getConfiguration().uiMode in updateState() 71 final boolean isActivated = (mContext.getResources().getConfiguration().uiMode in getSummary() 97 final boolean active = (mContext.getResources().getConfiguration().uiMode in onSwitchChanged()
|
/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/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | ConvertUtilsTest.java | 332 mContext.getResources().getConfiguration().setLocales( in testUtcToLocalTime_returnExpectedResult() 354 mContext.getResources().getConfiguration().setLocales( in testUtcToLocalTimeHour_12HourFormat_returnExpectedResult() 376 mContext.getResources().getConfiguration().setLocales( in testUtcToLocalTimeHour_24HourFormat_returnExpectedResult() 393 mContext.getResources().getConfiguration().setLocales(null); in getLocale_nullLocaleList_returnDefaultLocale() 399 mContext.getResources().getConfiguration().setLocales(new LocaleList()); in getLocale_emptyLocaleList_returnDefaultLocale()
|
/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()
|
D | WallpaperCropUtils.java | 96 if (resources.getConfiguration().smallestScreenWidthDp >= 720) { in calculateCropSurfaceSize() 351 return context.getResources().getConfiguration().getLayoutDirection() in isRtl()
|
/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/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/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | WallpaperUtils.java | 141 if (res.getConfiguration().smallestScreenWidthDp >= 720) { in getDefaultWallpaperSize() 156 (res.getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_RTL); in isRtl()
|
/packages/apps/Settings/src/com/android/settings/datetime/ |
D | LocationTimeZoneDetectionPreferenceController.java | 72 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in isChecked() 144 TimeZoneConfiguration configuration = timeZoneCapabilitiesAndConfig.getConfiguration(); in getSummary()
|
/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/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/Messaging/src/com/android/messaging/util/ |
D | UiUtils.java | 172 return Factory.get().getApplicationContext().getResources().getConfiguration().orientation in isLandscapeMode() 267 final int orientation = activity.getResources().getConfiguration().orientation; in lockOrientation() 304 .getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in isRtlMode()
|
D | Dates.java | 109 context.getResources().getConfiguration().locale, false /*abbreviated*/, in getMessageDetailsTimeString() 123 context.getResources().getConfiguration().locale, flags, minPeriodToday); in getTimeString()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SettingsValues.java | 124 mLocale = res.getConfiguration().locale; in SettingsValues() 159 mHasHardwareKeyboard = Settings.readHasHardwareKeyboard(res.getConfiguration()); in SettingsValues() 215 mDisplayOrientation = res.getConfiguration().orientation; in SettingsValues()
|
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/ |
D | PartnerBookmarksProvider.java | 232 setActiveConfiguration(res.getConfiguration()); in createDefaultBookmarks() 354 mOpenHelper.prepareForConfiguration(getContext().getResources().getConfiguration()); in onConfigurationChanged() 361 mOpenHelper.prepareForConfiguration(getContext().getResources().getConfiguration()); in query()
|
/packages/apps/PhoneCommon/src/com/android/phone/common/dialpad/ |
D | DialpadView.java | 107 mIsLandscape = getResources().getConfiguration().orientation == in DialpadView() 153 final Locale currentLocale = resources.getConfiguration().locale; in setupKeypad() 158 nf = DecimalFormat.getInstance(resources.getConfiguration().locale); in setupKeypad()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SettingsSliceProviderTest.java | 273 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in onBindSlice_nightModeChanged_shouldReloadTheme() 278 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in onBindSlice_nightModeChanged_shouldReloadTheme() 286 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in onBindSlice_nightModeNotChanged_shouldNotReloadTheme() 291 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in onBindSlice_nightModeNotChanged_shouldNotReloadTheme()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | SchedulesHeaderRowPresenter.java | 107 context.getResources().getConfiguration().getLayoutDirection() in SeriesRecordingHeaderRowPresenter() 203 context.getResources().getConfiguration().getLayoutDirection() in SeriesHeaderRowViewHolder()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityUtil.java | 373 final int screenWidthDp = resources.getConfiguration().screenWidthDp; in getScreenWidthPixels() 387 final int screenHeightDp = resources.getConfiguration().screenHeightDp; in getScreenHeightPixels()
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | OrientationUtil.java | 27 return context.getResources().getConfiguration().orientation in isLandscape()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | DisplayController.java | 160 Configuration config = mContext.getResources().getConfiguration(); in onConfigChanged() 267 Configuration config = context.getResources().getConfiguration(); in Info()
|