Home
last modified time | relevance | path

Searched refs:getConfiguration (Results 1 – 25 of 208) sorted by relevance

123456789

/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceControllerTest.java82 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/
DDarkThemeSliceTest.java91 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/
DDarkModeActivationPreferenceController.java64 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/
DStickyBottomCaptureLayout.java57 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/
DConvertUtilsTest.java332 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/
DDisplayMetricsRetriever.java57 switch (resources.getConfiguration().orientation) { in getDisplayMetrics()
63 … Log.e(TAG, "Unknown device orientation: " + resources.getConfiguration().orientation); in getDisplayMetrics()
DScreenSizeCalculator.java63 switch (Resources.getSystem().getConfiguration().orientation) { in getScreenSize()
70 + Resources.getSystem().getConfiguration().orientation); in getScreenSize()
DWallpaperCropUtils.java96 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/
DSuggestionItemView.java58 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/
DThemeUiTestBase.java53 mConfiguration = mTargetContext.getResources().getConfiguration(); in setUp()
75 context.getResources().getConfiguration()); in getThemeByUiMode()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSubtypeLocaleUtils.java175 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/
DWallpaperUtils.java141 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/
DLocationTimeZoneDetectionPreferenceController.java72 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in isChecked()
144 TimeZoneConfiguration configuration = timeZoneCapabilitiesAndConfig.getConfiguration(); in getSummary()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsUnavailableFragment.java86 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/
DAssistedDialingSettingFragment.java178 .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/
DUiUtils.java172 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()
DDates.java109 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/
DSettingsValues.java124 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/
DPartnerBookmarksProvider.java232 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/
DDialpadView.java107 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/
DSettingsSliceProviderTest.java273 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/
DSchedulesHeaderRowPresenter.java107 context.getResources().getConfiguration().getLayoutDirection() in SeriesRecordingHeaderRowPresenter()
203 context.getResources().getConfiguration().getLayoutDirection() in SeriesHeaderRowViewHolder()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityUtil.java373 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/
DOrientationUtil.java27 return context.getResources().getConfiguration().orientation in isLandscape()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DDisplayController.java160 Configuration config = mContext.getResources().getConfiguration(); in onConfigChanged()
267 Configuration config = context.getResources().getConfiguration(); in Info()

123456789