Home
last modified time | relevance | path

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

123456789

/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/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/modules/StatsD/statsd/tools/localtools/test/com/android/statsd/shelltools/testdrive/
DConfigurationTest.java57 private final TestDrive.Configuration mConfiguration = new TestDrive.Configuration();
62 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePushed()
93 assertTrue(TestDrive.Configuration.isPulledAtom(atom)); in testOnePulled()
143 assertTrue(TestDrive.Configuration.isPulledAtom(pulledAtom)); in testOnePulledTwoPushed()
148 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePulledTwoPushed()
232 assertTrue(TestDrive.Configuration.isPulledAtom(pulledAtom)); in testOnePulledTwoPushedTogether()
237 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePulledTwoPushedTogether()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceControllerTest.java32 import android.content.res.Configuration;
71 private Configuration mConfigNightYes = new Configuration();
72 private Configuration mConfigNightNo = new Configuration();
110 mConfigNightNo.uiMode = Configuration.UI_MODE_NIGHT_NO; in setUp()
111 mConfigNightYes.uiMode = Configuration.UI_MODE_NIGHT_YES; in setUp()
/packages/apps/Settings/src/com/android/settings/display/
DScreenZoomSettings.java22 import android.content.res.Configuration;
84 protected Configuration createConfig(Configuration origConfig, int index) { in createConfig()
86 final Configuration config = new Configuration(origConfig); in createConfig()
DToggleFontSizePreferenceFragment.java23 import android.content.res.Configuration;
70 protected Configuration createConfig(Configuration origConfig, int index) { in createConfig()
72 final Configuration config = new Configuration(origConfig); in createConfig()
DPreviewSeekBarPreferenceFragment.java20 import android.content.res.Configuration;
176 final Configuration origConfig = context.getResources().getConfiguration(); in onCreateView()
178 Configuration[] configurations = new Configuration[mEntries.length]; in onCreateView()
228 protected abstract Configuration createConfig(Configuration origConfig, int index); in createConfig()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DRingerTest.java152 nullable(VolumeShaper.Configuration.class), anyBoolean())).thenReturn(mFuture); in setUp()
195 any(VolumeShaper.Configuration.class), anyBoolean()); in testNoActionWithExternalRinger()
211 any(VolumeShaper.Configuration.class), anyBoolean()); in testNoActionWhenDialerRings()
228 any(VolumeShaper.Configuration.class), anyBoolean()); in testAudioFocusStillAcquiredWhenDialerRings()
244 any(VolumeShaper.Configuration.class), anyBoolean()); in testNoActionWhenCallIsSelfManaged()
263 any(VolumeShaper.Configuration.class), anyBoolean()); in testCallWaitingButNoRingForSpecificContacts()
297 any(VolumeShaper.Configuration.class), anyBoolean()); in testVibrateButNoRingForNullRingtone()
316 any(VolumeShaper.Configuration.class), anyBoolean()); in testVibrateButNoRingForSilentRingtone()
332 nullable(VolumeShaper.Configuration.class), anyBoolean()); in testStopRingingBeforeHapticsLookupComplete()
393 any(RingtoneFactory.class), any(Call.class), any(VolumeShaper.Configuration.class), in testRingWithRampingRinger()
[all …]
/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/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/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()
DTopRightWeightedLayout.java20 import android.content.res.Configuration;
42 Configuration configuration = getContext().getResources().getConfiguration(); in onFinishInflate()
47 public void onConfigurationChanged(Configuration configuration) { in onConfigurationChanged()
58 final boolean isPortrait = Configuration.ORIENTATION_PORTRAIT == orientation; in checkOrientation()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceController.java20 import android.content.res.Configuration;
65 & Configuration.UI_MODE_NIGHT_YES) != 0; in updateState()
72 & Configuration.UI_MODE_NIGHT_YES) != 0; in getSummary()
98 & Configuration.UI_MODE_NIGHT_YES) != 0; in onSwitchChanged()
/packages/apps/Camera2/src/com/android/camera/processing/memory/
DLruPool.java49 public static class Configuration<TKey, TValue> { class in LruPool
99 private final Configuration<TKey, TValue> mConfiguration;
117 this(maxSize, new Configuration<TKey, TValue>()); in LruPool()
120 public LruPool(int maxSize, Configuration<TKey, TValue> configuration) { in LruPool()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/
DDeviceUtils.java21 import android.content.res.Configuration;
26 return (uiMode & Configuration.UI_MODE_TYPE_MASK) == Configuration.UI_MODE_TYPE_TELEVISION; in isTelevision()
/packages/apps/Messaging/src/com/android/messaging/sms/
DBugleCarrierConfigValuesLoader.java20 import android.content.res.Configuration;
166 final Configuration subConfig = new Configuration(); in getSubDepContext()
168 Configuration config = context.getResources().getConfiguration(); in getSubDepContext()
/packages/apps/Camera2/src/com/android/camera/app/
DOrientationManager.java3 import android.content.res.Configuration;
10 PORTRAIT(Configuration.ORIENTATION_PORTRAIT),
11 LANDSCAPE(Configuration.ORIENTATION_LANDSCAPE);
/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()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DDisplayMetricsRetriever.java18 import android.content.res.Configuration;
58 case Configuration.ORIENTATION_PORTRAIT: in getDisplayMetrics()
60 case Configuration.ORIENTATION_LANDSCAPE: in getDisplayMetrics()
DScreenSizeCalculator.java19 import android.content.res.Configuration;
64 case Configuration.ORIENTATION_PORTRAIT: in getScreenSize()
66 case Configuration.ORIENTATION_LANDSCAPE: in getScreenSize()
/packages/services/Telephony/tests/src/com/android/phone/
DPhoneGlobalsTest.java22 import android.content.res.Configuration;
65 Configuration config = new Configuration(); in getResourcesForLocale()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastInternalReceiverTest.java28 import android.content.res.Configuration;
42 private Configuration mConfiguration = new Configuration();
DCellBroadcastAlertDialogTest.java30 import android.content.res.Configuration;
266 Configuration newConfig = new Configuration(); in testOnConfigurationChanged()
272 newConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testOnConfigurationChanged()
276 newConfig.orientation = Configuration.ORIENTATION_PORTRAIT; in testOnConfigurationChanged()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DThemeHelper.java19 import static android.content.res.Configuration.UI_MODE_NIGHT_MASK;
20 import static android.content.res.Configuration.UI_MODE_NIGHT_NO;
21 import static android.content.res.Configuration.UI_MODE_NIGHT_UNDEFINED;
22 import static android.content.res.Configuration.UI_MODE_NIGHT_YES;
/packages/apps/Messaging/src/com/android/messaging/util/
DUiUtils.java23 import android.content.res.Configuration;
173 == Configuration.ORIENTATION_LANDSCAPE; in isLandscapeMode()
276 if (orientation == Configuration.ORIENTATION_PORTRAIT) { in lockOrientation()
278 } else if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in lockOrientation()
282 if (orientation == Configuration.ORIENTATION_PORTRAIT) { in lockOrientation()
284 } else if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in lockOrientation()

123456789