Home
last modified time | relevance | path

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

12345678

/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceControllerTest.java105 when(res.getConfiguration()).thenReturn(configNightYes); in nightMode_toggleButton_offManual()
119 when(res.getConfiguration()).thenReturn(configNightNo); in nightMode_toggleButton_onAutoWhenModeIsYes()
132 when(res.getConfiguration()).thenReturn(configNightNo); in nightMode_toggleButton_onAutoWhenModeIsAuto()
145 when(res.getConfiguration()).thenReturn(configNightYes); in nightModeSummary_buttonText_onManual()
154 when(res.getConfiguration()).thenReturn(configNightNo); in nightModeSummary_buttonText_offAuto()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceController.java55 final boolean active = (mContext.getResources().getConfiguration().uiMode in updateState()
86 final boolean isActivated = (mContext.getResources().getConfiguration().uiMode in getSummary()
103 final boolean active = (mContext.getResources().getConfiguration().uiMode
/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/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.java61 switch (Resources.getSystem().getConfiguration().orientation) { in getScreenSize()
68 + Resources.getSystem().getConfiguration().orientation); in getScreenSize()
/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/unit/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/Launcher3/src/com/android/launcher3/util/
DConfigMonitor.java56 Configuration config = context.getResources().getConfiguration(); in ConfigMonitor()
77 Configuration config = context.getResources().getConfiguration(); in onReceive()
/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/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/apps/Launcher3/go/quickstep/src/com/android/quickstep/views/
DTaskItemView.java181 int orientation = getResources().getConfiguration().orientation; in getSafeThumbnail()
193 onOrientationChanged(getResources().getConfiguration().orientation); in onAttachedToWindow()
/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/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/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/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/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/DevCamera/src/com/android/devcamera/
DCameraDeviceReport.java378 Log.v(TAG, "screen width dp = " + activity.getResources().getConfiguration().screenWidthDp); in printDisplayInfo()
379 … Log.v(TAG, "screen height dp = " + activity.getResources().getConfiguration().screenHeightDp); in printDisplayInfo()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/
DCarLatinIME.java204 mLocale = this.getResources().getConfiguration().locale; in getLocale()
216 Configuration configuration = res.getConfiguration(); in createKeyboard()
/packages/apps/Dialer/java/com/android/dialer/util/
DOrientationUtil.java27 return context.getResources().getConfiguration().orientation in isLandscape()
/packages/apps/Dialer/java/com/android/dialer/i18n/
DLocaleUtils.java27 LocaleList localList = context.getResources().getConfiguration().getLocales(); in getLocale()
/packages/apps/PermissionController/src/com/android/packageinstaller/
DDeviceUtils.java25 int uiMode = context.getResources().getConfiguration().uiMode; in isTelevision()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DSpannableUtil.java36 final Locale locale = res.getConfiguration().getLocales().get(0); in getResourcesText()

12345678