Home
last modified time | relevance | path

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

12345678910>>...13

/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceControllerTest.java85 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/
DDarkThemeSliceTest.java96 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/
DDarkModeActivationPreferenceController.java61 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/
DAdServicesSupportHelper.java153 (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/
DCarUiPortraitSystemBarModule.java44 if (context.getResources().getConfiguration().orientation in provideButtonSelectionStateListener()
57 if (context.getResources().getConfiguration().orientation in provideButtonSelectionStateController()
/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()
/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/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/android/car/ui/plugin/
DPluginUiContextFactory.java86 Configuration currentConfiguration = uiContext.getResources().getConfiguration(); in getPluginUiContext()
87 Configuration newConfiguration = sourceContext.getResources().getConfiguration(); in getPluginUiContext()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSystemWindowManagerProxy.java49 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/
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/apps/Settings/tests/robotests/src/com/android/settings/panel/
DSettingsPanelActivityTest.java95 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/
DDefaultCallLogInsertionHelper.java70 mLocale = context.getResources().getConfiguration().locale; in DefaultCallLogInsertionHelper()
75 mLocale = context.getResources().getConfiguration().locale; in DefaultCallLogInsertionHelper()
/packages/apps/Settings/src/com/android/settings/datetime/
DLocationTimeZoneDetectionPreferenceController.java69 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in isChecked()
151 TimeZoneConfiguration configuration = timeZoneCapabilitiesAndConfig.getConfiguration(); in getSummary()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DStringUtil.java100 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/
DContactsUnavailableFragment.java86 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/
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/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/Settings/src/com/android/settings/datetime/timezone/
DBaseTimeZonePicker.java121 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/
DOrientationUtil.java27 return context.getResources().getConfiguration().orientation in isLandscape()
/packages/modules/AdServices/adservices/libraries/health/runners/concurrent-longevity/adservices/src/android/adservices/test/longevity/concurrent/
DProfileSuite.java147 switch (mProfile.getConfiguration().getSchedule()) { in getSuiteRunner()
167 mProfile.getConfiguration().getSchedule().name())); in getSuiteRunner()
/packages/apps/Dialer/java/com/android/dialer/i18n/
DLocaleUtils.java27 LocaleList localList = context.getResources().getConfiguration().getLocales(); in getLocale()
/packages/services/Telephony/src/com/android/phone/
DFrameworksUtils.java33 boolean isDarkTheme = (context.getResources().getConfiguration().uiMode in makeAlertDialogBuilder()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionarySettingsUtils.java38 final Locale systemLocale = context.getResources().getConfiguration().locale; in getLocaleDisplayName()

12345678910>>...13