Home
last modified time | relevance | path

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

123456

/cts/tests/tests/content/src/android/content/res/cts/
DConfigurationTest.java20 import android.content.res.Configuration;
30 private Configuration mConfigDefault;
31 private Configuration mConfig;
36 mConfigDefault = new Configuration(); in setUp()
42 mConfig = new Configuration(); in makeConfiguration()
46 mConfig.touchscreen = Configuration.TOUCHSCREEN_NOTOUCH; in makeConfiguration()
47 mConfig.keyboard = Configuration.KEYBOARD_NOKEYS; in makeConfiguration()
48 mConfig.keyboardHidden = Configuration.KEYBOARDHIDDEN_NO; in makeConfiguration()
49 mConfig.navigation = Configuration.NAVIGATION_NONAV; in makeConfiguration()
50 mConfig.orientation = Configuration.ORIENTATION_PORTRAIT; in makeConfiguration()
[all …]
DConfigTest.java32 import android.content.res.Configuration;
109 final Configuration mConfig;
113 mConfig = new Configuration(); in TotalConfig()
225 config.setProperty(Properties.TOUCHSCREEN, Configuration.TOUCHSCREEN_FINGER); in makeClassicConfig()
226 config.setProperty(Properties.KEYBOARD, Configuration.KEYBOARD_QWERTY); in makeClassicConfig()
227 config.setProperty(Properties.KEYBOARDHIDDEN, Configuration.KEYBOARDHIDDEN_YES); in makeClassicConfig()
228 config.setProperty(Properties.NAVIGATION, Configuration.NAVIGATION_TRACKBALL); in makeClassicConfig()
229 config.setProperty(Properties.ORIENTATION, Configuration.ORIENTATION_PORTRAIT); in makeClassicConfig()
310 config.setProperty(Properties.TOUCHSCREEN, Configuration.TOUCHSCREEN_NOTOUCH); in testAllEmptyConfigs()
317 config.setProperty(Properties.TOUCHSCREEN, Configuration.TOUCHSCREEN_STYLUS); in testAllEmptyConfigs()
[all …]
DResourcesTest.java25 import android.content.res.Configuration;
77 final Configuration cfg = new Configuration(); in testResources()
78 cfg.keyboard = Configuration.KEYBOARDHIDDEN_YES; in testResources()
83 final Configuration c = r.getConfiguration(); in testResources()
84 assertEquals(Configuration.KEYBOARDHIDDEN_YES, c.keyboard); in testResources()
128 private Resources getResources(final Configuration config, final int mcc, final int mnc, in getResources()
244 final Configuration cfg = new Configuration(); in createNewResources()
251 final Configuration cfg = new Configuration(res.getConfiguration()); in testUpdateConfiguration()
264 final Configuration cfg = new Configuration(); in testUpdateConfiguration_emptyLocaleIsOverridden()
274 final Configuration cfg = new Configuration(res.getConfiguration()); in testUpdateConfiguration_copyLocales()
[all …]
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverTest.java32 import android.content.res.Configuration;
151 waitUntil("UI mode didn't change to " + Configuration.UI_MODE_NIGHT_YES, in testAutomotiveProjectionExceptions()
152 () -> Configuration.UI_MODE_NIGHT_YES == in testAutomotiveProjectionExceptions()
154 & Configuration.UI_MODE_NIGHT_MASK)); in testAutomotiveProjectionExceptions()
162 waitUntil("UI mode didn't change to " + Configuration.UI_MODE_NIGHT_NO, in testAutomotiveProjectionExceptions()
163 () -> Configuration.UI_MODE_NIGHT_NO == in testAutomotiveProjectionExceptions()
165 & Configuration.UI_MODE_NIGHT_MASK)); in testAutomotiveProjectionExceptions()
178 waitUntil("UI mode didn't change to " + Configuration.UI_MODE_NIGHT_YES, in testAutomotiveProjectionExceptions()
179 () -> Configuration.UI_MODE_NIGHT_YES == in testAutomotiveProjectionExceptions()
181 & Configuration.UI_MODE_NIGHT_MASK)); in testAutomotiveProjectionExceptions()
[all …]
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationScreenLayoutTest.java24 import android.content.res.Configuration;
61 int expectedSize = expectedScreenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; in testScreenLayout()
62 int expectedLong = expectedScreenLayout & Configuration.SCREENLAYOUT_LONG_MASK; in testScreenLayout()
72 Configuration mConfig = activity.getResources().getConfiguration(); in testScreenLayout()
73 int actualSize = mConfig.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; in testScreenLayout()
74 int actualLong = mConfig.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK; in testScreenLayout()
94 int screenLayout = Configuration.SCREENLAYOUT_SIZE_XLARGE in computeScreenLayout()
95 | Configuration.SCREENLAYOUT_LONG_YES; in computeScreenLayout()
134 screenLayoutSize = Configuration.SCREENLAYOUT_SIZE_SMALL; in reduceScreenLayout()
138 screenLayoutSize = Configuration.SCREENLAYOUT_SIZE_XLARGE; in reduceScreenLayout()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DVolumeShaperTest.java70 private static final VolumeShaper.Configuration SILENCE =
71 new VolumeShaper.Configuration.Builder()
72 .setInterpolatorType(VolumeShaper.Configuration.INTERPOLATOR_TYPE_LINEAR)
79 private static final VolumeShaper.Configuration LINEAR_DUCK =
80 new VolumeShaper.Configuration.Builder()
81 .setInterpolatorType(VolumeShaper.Configuration.INTERPOLATOR_TYPE_LINEAR)
88 private static final VolumeShaper.Configuration LINEAR_RAMP =
89 new VolumeShaper.Configuration.Builder(VolumeShaper.Configuration.LINEAR_RAMP)
93 private static final VolumeShaper.Configuration CUBIC_RAMP =
94 new VolumeShaper.Configuration.Builder(VolumeShaper.Configuration.CUBIC_RAMP)
[all …]
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoActivity.java23 import android.content.res.Configuration;
131 Configuration con = getResources().getConfiguration(); in onCreate()
133 if (con.touchscreen == Configuration.TOUCHSCREEN_UNDEFINED) { in onCreate()
135 } else if (con.touchscreen == Configuration.TOUCHSCREEN_NOTOUCH) { in onCreate()
137 } else if (con.touchscreen == Configuration.TOUCHSCREEN_STYLUS) { in onCreate()
139 } else if (con.touchscreen == Configuration.TOUCHSCREEN_FINGER) { in onCreate()
148 if (con.navigation == Configuration.NAVIGATION_UNDEFINED) { in onCreate()
150 } else if (con.navigation == Configuration.NAVIGATION_NONAV) { in onCreate()
152 } else if (con.navigation == Configuration.NAVIGATION_DPAD) { in onCreate()
154 } else if (con.navigation == Configuration.NAVIGATION_TRACKBALL) { in onCreate()
[all …]
/cts/tests/tests/theme/src/android/theme/cts/
DThemeRebaseTest.java23 import android.content.res.Configuration;
43 private Configuration mInitialConfig;
49 Configuration config = new Configuration(); in before()
50 config.orientation = Configuration.ORIENTATION_PORTRAIT; in before()
53 mInitialConfig = new Configuration(mContext.getResources().getConfiguration()); in before()
78 Configuration newConfig = new Configuration(mInitialConfig); in testConfigChangeAndRebase()
79 newConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testConfigChangeAndRebase()
DWatchPercentageScreenDimenTest.java21 import android.content.res.Configuration;
38 private Configuration mConfig;
43 return mConfig.isScreenRound() && (mConfig.uiMode & Configuration.UI_MODE_TYPE_WATCH) in isRoundWatch()
44 == Configuration.UI_MODE_TYPE_WATCH; in isRoundWatch()
/cts/tests/tests/app/src/android/app/cts/
DApplyOverrideConfigurationActivity.java20 import android.content.res.Configuration;
30 private CompletableFuture<Configuration> mOnConfigurationChangedFuture = null;
45 final Configuration overrideConfig = new Configuration(); in attachBaseContext()
51 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged()
56 mOnConfigurationChangedFuture.complete(new Configuration(newConfig)); in onConfigurationChanged()
69 public synchronized Future<Configuration> watchForSingleOnConfigurationChangedCallback() { in watchForSingleOnConfigurationChangedCallback()
DApplyOverrideConfigurationTest.java21 import android.content.res.Configuration;
57 final Configuration config = getActivity().getResources().getConfiguration(); in testOverriddenConfigurationIsPassedIntoCallback()
62 Future<Configuration> callback = in testOverriddenConfigurationIsPassedIntoCallback()
67 final Configuration callbackConfig = callback.get(); in testOverriddenConfigurationIsPassedIntoCallback()
70 final Configuration newConfig = getActivity().getResources().getConfiguration(); in testOverriddenConfigurationIsPassedIntoCallback()
100 & Configuration.UI_MODE_TYPE_MASK) == Configuration.UI_MODE_TYPE_VR_HEADSET; in isVrHeadset()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DScreenDeviceInfo.java20 import android.content.res.Configuration;
57 Configuration configuration = getContext().getResources().getConfiguration(); in collectDeviceInfo()
94 private static String getScreenSize(Configuration configuration) { in getScreenSize()
95 int screenLayout = configuration.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; in getScreenSize()
98 case Configuration.SCREENLAYOUT_SIZE_SMALL: in getScreenSize()
102 case Configuration.SCREENLAYOUT_SIZE_NORMAL: in getScreenSize()
106 case Configuration.SCREENLAYOUT_SIZE_LARGE: in getScreenSize()
110 case Configuration.SCREENLAYOUT_SIZE_XLARGE: in getScreenSize()
114 case Configuration.SCREENLAYOUT_SIZE_UNDEFINED: in getScreenSize()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCarModeInCallServiceTest.java28 import android.content.res.Configuration;
81 Configuration.UI_MODE_TYPE_NORMAL, uiModeManager.getCurrentModeType()); in setUp()
96 Configuration.UI_MODE_TYPE_NORMAL); in tearDown()
98 Configuration.UI_MODE_TYPE_NORMAL); in tearDown()
110 assertUiMode(Configuration.UI_MODE_TYPE_NORMAL); in tearDown()
132 disableAndVerifyCarMode(mCarModeIncallServiceControlOne, Configuration.UI_MODE_TYPE_NORMAL); in testSetCarMode()
185 disableAndVerifyCarMode(mCarModeIncallServiceControlOne, Configuration.UI_MODE_TYPE_NORMAL); in testStartCallInCarMode()
242 disableAndVerifyCarMode(mCarModeIncallServiceControlOne, Configuration.UI_MODE_TYPE_NORMAL); in failingTestStartCallInCarModeAndAutomotiveProjection()
274 disableAndVerifyCarMode(mCarModeIncallServiceControlOne, Configuration.UI_MODE_TYPE_CAR); in testStartCallInCarModeTwoServices()
280 disableAndVerifyCarMode(mCarModeIncallServiceControlTwo, Configuration.UI_MODE_TYPE_NORMAL); in testStartCallInCarModeTwoServices()
[all …]
/cts/tests/app/src/android/app/cts/
DUiModeManagerTest.java28 import android.content.res.Configuration;
80 assertEquals(Configuration.UI_MODE_TYPE_TELEVISION, in testUiMode()
84 assertEquals(Configuration.UI_MODE_TYPE_WATCH, in testUiMode()
178 assertEquals(Configuration.UI_MODE_TYPE_CAR, mUiModeManager.getCurrentModeType()); in testNightModeInCarModeIsTransient()
183 assertNotSame(Configuration.UI_MODE_TYPE_CAR, mUiModeManager.getCurrentModeType()); in testNightModeInCarModeIsTransient()
220 assertVisibleNightModeInConfiguration(Configuration.UI_MODE_NIGHT_NO); in testNightModeInCarModeOnPowerSaveIsTransient()
225 assertVisibleNightModeInConfiguration(Configuration.UI_MODE_NIGHT_YES); in testNightModeInCarModeOnPowerSaveIsTransient()
230 assertEquals(Configuration.UI_MODE_TYPE_CAR, mUiModeManager.getCurrentModeType()); in testNightModeInCarModeOnPowerSaveIsTransient()
231 assertVisibleNightModeInConfiguration(Configuration.UI_MODE_NIGHT_NO); in testNightModeInCarModeOnPowerSaveIsTransient()
236 assertVisibleNightModeInConfiguration(Configuration.UI_MODE_NIGHT_NO); in testNightModeInCarModeOnPowerSaveIsTransient()
[all …]
/cts/tests/framework/base/windowmanager/app_base/src/android/server/wm/app/
DAbstractLifecycleLogActivity.java21 import android.content.res.Configuration;
54 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged()
60 public void onMultiWindowModeChanged(boolean isInMultiWindowMode, Configuration newConfig) { in onMultiWindowModeChanged()
67 Configuration newConfig) { in onPictureInPictureModeChanged()
96 protected void dumpConfiguration(Configuration config) { in dumpConfiguration()
DTestActivity.java33 import android.content.res.Configuration;
97 final Configuration configuration = getResources().getConfiguration(); in onResume()
139 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged()
147 public void onMultiWindowModeChanged(boolean isInMultiWindowMode, Configuration newConfig) { in onMultiWindowModeChanged()
154 private void dumpAssetSeqNumber(Configuration newConfig) { in dumpAssetSeqNumber()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DBaseActivity.java21 import android.content.res.Configuration;
25 private static Configuration sOverrideConfiguration;
41 public static void setOverrideConfiguration(Configuration overrideConfiguration) { in setOverrideConfiguration()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DProtoExtractors.java22 import android.content.res.Configuration;
34 public static Configuration extract(ConfigurationProto proto) { in extract()
35 final Configuration config = new Configuration(); in extract()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFeatureUtil.java22 import android.content.res.Configuration;
102 int maskedUiMode = (getConfiguration().uiMode & Configuration.UI_MODE_TYPE_MASK); in isVrHeadset()
103 return (maskedUiMode == Configuration.UI_MODE_TYPE_VR_HEADSET); in isVrHeadset()
123 private static Configuration getConfiguration() { in getConfiguration()
/cts/tests/tests/hardware/src/android/hardware/cts/
DLowRamDeviceTest.java19 import static android.content.res.Configuration.SCREENLAYOUT_SIZE_LARGE;
20 import static android.content.res.Configuration.SCREENLAYOUT_SIZE_NORMAL;
21 import static android.content.res.Configuration.SCREENLAYOUT_SIZE_SMALL;
22 import static android.content.res.Configuration.SCREENLAYOUT_SIZE_XLARGE;
37 import android.content.res.Configuration;
187 Configuration config = mContext.getResources().getConfiguration(); in getScreenSize()
188 return config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; in getScreenSize()
/cts/common/device-side/bedstead/remotedpc/src/communication/main/java/com/android/bedstead/remotedpc/
DConfiguration.java24 public final class Configuration { class
26 private Configuration() { in Configuration() method in Configuration
/cts/tests/tests/nativehardware/src/android/hardware/nativehardware/cts/
DHardwareBufferVrTest.java20 import android.content.res.Configuration;
30 & Configuration.UI_MODE_TYPE_MASK) == Configuration.UI_MODE_TYPE_VR_HEADSET; in testLayeredBuffersForVr()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DFontScaleNoRelaunchActivity.java19 import android.content.res.Configuration;
23 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged()
DLaunchPipOnPipActivity.java19 import android.content.res.Configuration;
25 Configuration newConfig) { in onPictureInPictureModeChanged()
/cts/tests/tests/text/src/android/text/format/cts/
DFormatterTest.java22 import android.content.res.Configuration;
47 final Configuration config = new Configuration(); in testFormatFileSize()
87 final Configuration config = new Configuration(); in testFormatShortFileSize()

123456