Home
last modified time | relevance | path

Searched refs:Configuration (Results 1 – 25 of 365) sorted by relevance

12345678910>>...15

/packages/modules/Permission/tests/cts/permissionmultidevice/TestUtils/src/android/permissionmultidevice/cts/
DPermissionUtils.kt21 import android.content.res.Configuration
43 Resources.getSystem().configuration.uiMode and Configuration.UI_MODE_TYPE_MASK == in isAutomotive()
44 Configuration.UI_MODE_TYPE_WATCH in isAutomotive()
52 Configuration.SCREENLAYOUT_SIZE_MASK in isAutomotive()
54 Configuration.SCREENLAYOUT_SIZE_SMALL -> hasMinScreenSize(426, 320) in isAutomotive()
55 Configuration.SCREENLAYOUT_SIZE_NORMAL -> hasMinScreenSize(480, 320) in isAutomotive()
56 Configuration.SCREENLAYOUT_SIZE_LARGE -> hasMinScreenSize(640, 480) in isAutomotive()
57 Configuration.SCREENLAYOUT_SIZE_XLARGE -> hasMinScreenSize(960, 720) in isAutomotive()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeCustomPreferenceControllerTest.java32 import android.content.res.Configuration;
65 private Configuration mConfig = new Configuration();
85 mConfig.uiMode = Configuration.UI_MODE_NIGHT_YES; in getAvailabilityStatus_nightModeManualOn_unavailable()
93 mConfig.uiMode = Configuration.UI_MODE_NIGHT_NO; in getAvailabilityStatus_nightModeManualOff_unavailable()
101 mConfig.uiMode = Configuration.UI_MODE_NIGHT_YES; in getAvailabilityStatus_nightModeCustomOn_available()
109 mConfig.uiMode = Configuration.UI_MODE_NIGHT_NO; in getAvailabilityStatus_nightModeCustomOff_available()
119 mConfig.uiMode = Configuration.UI_MODE_NIGHT_YES; in getAvailabilityStatus_nightModeCustomBedtimeOn_unavailable()
129 mConfig.uiMode = Configuration.UI_MODE_NIGHT_NO; in getAvailabilityStatus_nightModeCustomBedtimeOff_unavailable()
137 mConfig.uiMode = Configuration.UI_MODE_NIGHT_YES; in nightMode_customOn_setSummaryTo10Am()
147 mConfig.uiMode = Configuration.UI_MODE_NIGHT_NO; in nightMode_customOff_setSummaryTo10Am()
DDarkModeScheduleSelectorControllerTest.java32 import android.content.res.Configuration;
70 private Configuration mConfigNightYes = new Configuration();
71 private Configuration mConfigNightNo = new Configuration();
79 mConfigNightYes.uiMode = Configuration.UI_MODE_NIGHT_YES; in setUp()
80 mConfigNightNo.uiMode = Configuration.UI_MODE_NIGHT_NO; in setUp()
DDarkModeActivationPreferenceControllerTest.java31 import android.content.res.Configuration;
73 private Configuration mConfigNightYes = new Configuration();
74 private Configuration mConfigNightNo = new Configuration();
117 mConfigNightNo.uiMode = Configuration.UI_MODE_NIGHT_NO; in setUp()
118 mConfigNightYes.uiMode = Configuration.UI_MODE_NIGHT_YES; in setUp()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModuleUtil.java21 import android.content.res.Configuration;
38 Configuration config = context.getResources().getConfiguration(); in getDeviceNaturalOrientation()
42 config.orientation == Configuration.ORIENTATION_LANDSCAPE) || in getDeviceNaturalOrientation()
44 config.orientation == Configuration.ORIENTATION_PORTRAIT)) { in getDeviceNaturalOrientation()
45 return Configuration.ORIENTATION_LANDSCAPE; in getDeviceNaturalOrientation()
47 return Configuration.ORIENTATION_PORTRAIT; in getDeviceNaturalOrientation()
116 == Configuration.ORIENTATION_PORTRAIT) { in pickBufferDimensions()
/packages/apps/Settings/tests/unit/src/com/android/settings/localepicker/
DLocaleFeatureProviderImplTest.java24 import android.content.res.Configuration;
35 private Configuration mCacheConfig;
54 final Configuration config = new Configuration(); in getLocaleNames_hasEnAndZh_resultIsEnglishAndChinese()
71 final Configuration config = new Configuration(); in getLocaleNames_hasExtension_resultWithoutExtensionInfo()
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DPictureSizeCalculator.java54 public static final class Configuration { class in PictureSizeCalculator
58 private Configuration(Size size, Rect postCrop) { in Configuration() method in PictureSizeCalculator.Configuration
90 } else if (!(o instanceof Configuration)) { in equals()
94 Configuration that = (Configuration) o; in equals()
146 public Configuration computeConfiguration(Size targetSize, int imageFormat) in computeConfiguration()
156 return new Configuration(size, cropRegion); in computeConfiguration()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics2/ui/viewmodel/
DDeviceFoldedViewModelTest.java22 import android.content.res.Configuration;
51 final Configuration config1 = new Configuration(); in testLiveData()
56 final Configuration config2 = new Configuration(); in testLiveData()
/packages/modules/StatsD/statsd/tools/localtools/test/com/android/statsd/shelltools/testdrive/
DConfigurationTest.java58 private final TestDrive.Configuration mConfiguration = new TestDrive.Configuration();
65 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePushed()
97 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePushedFromExternalAtomsProto()
133 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePushedFromExternalAtomsProtoWithImportedAtom()
169 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePushedFromExternalAtomsProtoWithImportedEnum()
204 assertTrue(TestDrive.Configuration.isPulledAtom(atom)); in testOnePulled()
254 assertTrue(TestDrive.Configuration.isPulledAtom(pulledAtom)); in testOnePulledTwoPushed()
259 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePulledTwoPushed()
343 assertTrue(TestDrive.Configuration.isPulledAtom(pulledAtom)); in testOnePulledTwoPushedTogether()
348 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePulledTwoPushedTogether()
/packages/modules/ExtServices/java/src/android/ext/services/
DExtServicesApplication.java20 import androidx.work.Configuration;
25 public final class ExtServicesApplication extends Application implements Configuration.Provider {
35 public Configuration getWorkManagerConfiguration() { in getWorkManagerConfiguration()
36 return new Configuration.Builder().build(); in getWorkManagerConfiguration()
/packages/apps/Settings/src/com/android/settings/accessibility/
DTextReadingPreviewController.java20 import android.content.res.Configuration;
104 final Configuration origConfig = mContext.getResources().getConfiguration(); in displayPreference()
240 private Configuration[] createConfig(Configuration origConfig) { in createConfig()
244 final Configuration[] configurations = new Configuration[totalNum]; in createConfig()
248 final Configuration config = new Configuration(origConfig); in createConfig()
/packages/modules/AdServices/adservices/libraries/health/runners/concurrent-longevity/adservices/src/android/adservices/test/longevity/concurrent/
DConcurrentProfile.java23 import android.adservices.test.longevity.concurrent.proto.Configuration;
24 import android.adservices.test.longevity.concurrent.proto.Configuration.Scenario;
25 import android.adservices.test.longevity.concurrent.proto.Configuration.Scenario.Journey;
26 import android.adservices.test.longevity.concurrent.proto.Configuration.Scenario.Journey.ExtraArg;
27 import android.adservices.test.longevity.concurrent.proto.Configuration.Schedule;
89 private final Configuration mConfiguration;
207 public Configuration getConfiguration() { in getConfiguration()
224 private Configuration getConfigurationArgument(Bundle args) { in getConfigurationArgument()
256 private Configuration parseConfiguration(InputStream configStream, String profileValue) { in parseConfiguration()
259 return Configuration.parseFrom(configStream); in parseConfiguration()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DUserPickerPassengerHeaderTest.java26 import android.content.res.Configuration;
150 Configuration origConfiguration = activity.getResources().getConfiguration(); in onConfigurationChanged_changeConfiguration_callSetAdapter()
151 Configuration newConfiguration = origConfiguration; in onConfigurationChanged_changeConfiguration_callSetAdapter()
152 newConfiguration.orientation = Configuration.ORIENTATION_LANDSCAPE; in onConfigurationChanged_changeConfiguration_callSetAdapter()
153 newConfiguration.screenLayout = Configuration.SCREENLAYOUT_LAYOUTDIR_RTL; in onConfigurationChanged_changeConfiguration_callSetAdapter()
156 newConfiguration.orientation = Configuration.ORIENTATION_PORTRAIT; in onConfigurationChanged_changeConfiguration_callSetAdapter()
161 newConfiguration.screenLayout = Configuration.SCREENLAYOUT_LAYOUTDIR_LTR; in onConfigurationChanged_changeConfiguration_callSetAdapter()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/
DInterestingConfigChanges.java21 import android.content.res.Configuration;
29 private final Configuration mLastConfiguration = new Configuration();
53 Configuration.generateDelta(mLastConfiguration, res.getConfiguration())); in applyNewConfig()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ui/
DThemeUiTestBase.java23 import android.content.res.Configuration;
45 protected Configuration mConfiguration;
74 final Configuration nightConfig = new Configuration( in getThemeByUiMode()
76 nightConfig.uiMode &= ~Configuration.UI_MODE_NIGHT_MASK; in getThemeByUiMode()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DAdServicesSupportHelper.java25 import android.content.res.Configuration;
153 (resources.getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) in isLargeScreen()
154 > Configuration.SCREENLAYOUT_SIZE_LARGE; in isLargeScreen()
156 (resources.getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) in isLargeScreen()
157 <= Configuration.SCREENLAYOUT_SIZE_LARGE in isLargeScreen()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DTextReadingPreviewPreferenceTest.java28 import android.content.res.Configuration;
64 final Configuration[] configurations = createConfigurations(mPreviewSampleCount); in setUp()
188 private static Configuration[] createConfigurations(int count) { in createConfigurations()
189 final Configuration[] configurations = new Configuration[count]; in createConfigurations()
191 configurations[i] = new Configuration(); in createConfigurations()
/packages/apps/Launcher3/src/com/android/launcher3/statemanager/
DStatefulActivity.java23 import android.content.res.Configuration;
53 protected Configuration mOldConfig;
60 mOldConfig = new Configuration(getResources().getConfiguration()); in onCreate()
177 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged()
186 public void handleConfigurationChanged(Configuration newConfig) { in handleConfigurationChanged()
/packages/services/Car/experimental/service/src/com/android/experimentalcar/
DGazeAttentionProcessor.java29 private final Configuration mConfig;
38 GazeAttentionProcessor(Configuration configuration) { in GazeAttentionProcessor()
109 public static class Configuration { class in GazeAttentionProcessor
135 Configuration(float initialValue, float decayRate, float growthRate) { in Configuration() method in GazeAttentionProcessor.Configuration
/packages/services/Telephony/src/com/android/phone/
DFrameworksUtils.java21 import android.content.res.Configuration;
34 & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES; in makeAlertDialogBuilder()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/testutils/
DSettingsShadowActivityManager.kt5 import android.content.res.Configuration in <lambda>()
17 val configuration: Configuration = Configuration().apply { in <lambda>()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/domain/interactor/
DFoldStateInteractor.kt20 import android.content.res.Configuration in <lambda>()
34 fun onConfigurationChange(newConfig: Configuration) in <lambda>()
51 override fun onConfigurationChange(newConfig: Configuration) { in onConfigurationChange()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DWorkManagerInitializer.java24 import androidx.work.Configuration;
55 private static Configuration getWorkManagerConfiguration() { in getWorkManagerConfiguration()
57 return new Configuration.Builder() in getWorkManagerConfiguration()
/packages/apps/Camera2/src/com/android/camera/ui/
DStickyBottomCaptureLayout.java20 import android.content.res.Configuration;
58 if (orientation == Configuration.ORIENTATION_PORTRAIT) {
72 if (orientation == Configuration.ORIENTATION_PORTRAIT) {
159 if (orientation == Configuration.ORIENTATION_PORTRAIT) { in getRoundedThumbnailPosition()
171 if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in getRoundedThumbnailPosition()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DLocaleTestUtils.java20 import android.content.res.Configuration;
115 Configuration contextConfiguration = new Configuration(resources.getConfiguration()); in setResourcesLocale()

12345678910>>...15