Home
last modified time | relevance | path

Searched refs:Mode (Results 1 – 25 of 195) sorted by relevance

12345678

/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/util/
DLayoutModeUtils.java29 public static final Mode MODE_PHOTOS_TAB = Mode.of(Mode.MODE_PHOTOS_TAB);
30 public static final Mode MODE_ALBUMS_TAB = Mode.of(Mode.MODE_ALBUMS_TAB);
31 public static final Mode MODE_ALBUM_PHOTOS_TAB = Mode.of(Mode.MODE_ALBUM_PHOTOS_TAB);
32 public static final Mode MODE_PREVIEW = Mode.of(Mode.MODE_PREVIEW);
35 public static class Mode { class in LayoutModeUtils
52 public static Mode of(@Mode.ModeType int modeType) { in of()
53 Mode mode = new Mode(); in of()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/displaysound/
DResolutionSelectionFragmentTest.java63 Display.Mode[] modes = new Display.Mode[] { in testOnPreferenceTreeClick_selectAuto()
64 new Display.Mode(0, 800, 600, 120), in testOnPreferenceTreeClick_selectAuto()
65 new Display.Mode(1, 800, 600, 60), in testOnPreferenceTreeClick_selectAuto()
66 new Display.Mode(2, 2160, 2160, 60), in testOnPreferenceTreeClick_selectAuto()
67 new Display.Mode(3, 2160, 2160, 120), in testOnPreferenceTreeClick_selectAuto()
81 Display.Mode[] modes = new Display.Mode[] { in testOnPreferenceTreeClick_selectMode()
82 new Display.Mode(0, 800, 600, 120), in testOnPreferenceTreeClick_selectMode()
83 new Display.Mode(1, 800, 600, 60), in testOnPreferenceTreeClick_selectMode()
84 new Display.Mode(2, 2160, 2160, 60), in testOnPreferenceTreeClick_selectMode()
85 new Display.Mode(3, 2160, 2160, 120), in testOnPreferenceTreeClick_selectMode()
[all …]
DHdrFormatSelectionFragmentTest.java96 Display.Mode mode = new Display.Mode(0, 0, 0, 0, new float[0], displayReportedHdrTypes); in testOnPreferenceTreeClick_withFormatDisabled_disablesHdrTypeInDisplayManager()
100 deviceHdrTypes, new Display.Mode[]{mode}, userDisabledHdrTypes); in testOnPreferenceTreeClick_withFormatDisabled_disablesHdrTypeInDisplayManager()
124 Display.Mode mode = new Display.Mode(0, 0, 0, 0, new float[0], displayReportedHdrTypes); in testOnPreferenceTreeClick_withFormatEnabled_enablesHdrTypeInDisplayManager()
128 deviceHdrTypes, new Display.Mode[]{mode}, userDisabledTypes); in testOnPreferenceTreeClick_withFormatEnabled_enablesHdrTypeInDisplayManager()
152 Display.Mode mode = new Display.Mode(0, 0, 0, 0, new float[0], displayReportedHdrTypes); in testGetPreferenceScreen_whenManual_returnsFormatPreferencesInCorrectPreferenceGroup()
156 deviceHdrTypes, new Display.Mode[]{mode}, userDisabledTypes); in testGetPreferenceScreen_whenManual_returnsFormatPreferencesInCorrectPreferenceGroup()
183 Display.Mode mode = new Display.Mode(0, 0, 0, 0, new float[0], displayReportedHdrTypes); in testGetPreferenceScreen_whenManual_returnsFormatPreferencesWithCorrectCheckedState()
187 deviceHdrTypes, new Display.Mode[]{mode}, userDisabledTypes); in testGetPreferenceScreen_whenManual_returnsFormatPreferencesWithCorrectCheckedState()
210 Display.Mode mode = new Display.Mode(0, 0, 0, 0, new float[0], displayReportedHdrTypes); in testGetPreferenceScreen_whenAuto_returnsNoFormatPreferences()
214 deviceHdrTypes, new Display.Mode[]{mode}, userDisabledTypes); in testGetPreferenceScreen_whenAuto_returnsNoFormatPreferences()
[all …]
DDisplaySoundFragmentTest.java51 Display.Mode[] modes = new Display.Mode[] { in testNoSystemPreferredDisplayMode_hidesDisplayModeSetting()
52 new Display.Mode(0, 800, 600, 120), in testNoSystemPreferredDisplayMode_hidesDisplayModeSetting()
53 new Display.Mode(1, 800, 600, 60) in testNoSystemPreferredDisplayMode_hidesDisplayModeSetting()
65 Display.Mode[] modes = new Display.Mode[] { in testWithSystemPreferredDisplayMode_showsDisplayModeSetting()
66 new Display.Mode(0, 800, 600, 120), in testWithSystemPreferredDisplayMode_showsDisplayModeSetting()
67 new Display.Mode(1, 800, 600, 60) in testWithSystemPreferredDisplayMode_showsDisplayModeSetting()
78 Display.Mode[] supportedModes, Display.Mode userPreferredMode, in createDisplaySoundFragmentWith()
79 Display.Mode systemPreferredMode) { in createDisplaySoundFragmentWith()
/packages/modules/Virtualization/authfs/src/file/
Dattr.rs18 use nix::sys::stat::{mode_t, Mode, SFlag};
29 const DEFAULT_FILE_MODE: Mode =
30 Mode::from_bits_truncate(Mode::S_IRUSR.bits() | Mode::S_IWUSR.bits());
35 const DEFAULT_DIR_MODE: Mode = Mode::S_IRWXU;
41 mode: Mode,
56 Attr { service, mode: Mode::from_bits_truncate(mode), remote_fd, is_dir: false } in new_file_with_mode()
60 Attr { service, mode: Mode::from_bits_truncate(mode), remote_fd, is_dir: true } in new_dir_with_mode()
73 let new_mode = Mode::from_bits_truncate(encoded_mode); in set_mode()
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/
DOfflineLocationTimeZoneDelegate.java23 import static com.android.timezone.location.provider.core.Mode.MODE_DESTROYED;
24 import static com.android.timezone.location.provider.core.Mode.MODE_FAILED;
25 import static com.android.timezone.location.provider.core.Mode.MODE_STARTED;
26 import static com.android.timezone.location.provider.core.Mode.MODE_STOPPED;
27 import static com.android.timezone.location.provider.core.Mode.prettyPrintListenModeEnum;
125 private final ReferenceWithHistory<Mode> mCurrentMode =
176 mCurrentMode.set(Mode.createStoppedMode()); in OfflineLocationTimeZoneDelegate()
188 Mode currentMode = mCurrentMode.get(); in onDestroy()
193 Mode newMode = new Mode(MODE_DESTROYED, entryCause); in onDestroy()
207 Mode currentMode = mCurrentMode.get(); in onStartUpdates()
[all …]
DMode.java67 class Mode implements PiiLoggable { class
125 Mode(@ModeEnum int modeEnum, @NonNull PiiLoggable entryCause) { in Mode() method in Mode
129 Mode(@ModeEnum int modeEnum, @NonNull PiiLoggable entryCause, @ListenModeEnum int listenMode, in Mode() method in Mode
142 static Mode createStoppedMode() { in createStoppedMode()
143 return new Mode(MODE_STOPPED, PiiLoggables.fromString("init") /* entryCause */); in createStoppedMode()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUciLogModeStore.java38 public enum Mode { enum in UciLogModeStore
45 Mode(String mode) { in Mode() method in UciLogModeStore.Mode
58 public static Optional<Mode> fromName(String modeNameStr) { in fromName()
66 private Mode mLogMode;
71 mLogMode = Mode.FILTERED; in UciLogModeStore()
78 Optional<Mode> logModeOption = Mode.fromName( in initialize()
92 return Mode.fromName(logMode).isPresent(); in isValid()
102 Optional<Mode> logModeOption = Mode.fromName(modeStr); in storeMode()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/mockito/
DExtendedMockitoInlineCleanerRule.java47 private final Mode mDefaultMode;
50 this(Mode.DONT_CLEAR_AT_ALL); in ExtendedMockitoInlineCleanerRule()
53 public ExtendedMockitoInlineCleanerRule(Mode defaultMode) { in ExtendedMockitoInlineCleanerRule()
72 private Mode getMode(Description description) {
73 Mode mode = mDefaultMode;
85 Mode mode = getMode(description);
109 public static boolean shouldClearInlineMocksAfterTest(Description description, Mode mode) {
123 public enum Mode {
133 Mode value();
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DPeakRefreshRatePreferenceControllerTest.java80 Display.Mode[] modes = new Display.Mode[]{ in setUp()
81 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
83 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
85 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
91 Display.Mode[] modes2 = new Display.Mode[]{ in setUp()
92 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
94 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
96 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DForcePeakRefreshRatePreferenceControllerTest.java80 Display.Mode[] modes = new Display.Mode[]{ in setUp()
81 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
83 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
85 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
91 Display.Mode[] modes2 = new Display.Mode[]{ in setUp()
92 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
94 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
96 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/
DResolutionSelectionFragment.java73 private Display.Mode[] mModes;
76 private Display.Mode mAutoMode;
110 Arrays.sort(mModes, new Comparator<Display.Mode>() { in onCreatePreferences()
113 public int compare(Display.Mode o1, Display.Mode o2) { in onCreatePreferences()
172 private RadioPreference createResolutionPreference(Display.Mode mode, int resolution) { in createResolutionPreference()
221 Display.Mode newMode = null; in onPreferenceTreeClick()
222 Display.Mode previousMode = mDisplayManager.getGlobalUserPreferredDisplayMode(); in onPreferenceTreeClick()
231 Display.Mode finalNewMode = Objects.requireNonNullElse(newMode, mAutoMode); in onPreferenceTreeClick()
232 Display.Mode finalPreviousMode = Objects.requireNonNullElse(previousMode, mAutoMode); in onPreferenceTreeClick()
246 public int lookupModeIndex(Display.Mode userPreferredMode) { in lookupModeIndex()
[all …]
DDisplaySoundUtils.java81 public static boolean isDolbyVisionSupported(Display.Mode[] modes) { in isDolbyVisionSupported()
91 public static boolean isHdrFormatSupported(Display.Mode mode, int hdrFormat) { in isHdrFormatSupported()
101 Display.Mode[] supportedModes = display.getSupportedModes(); in doesCurrentModeNotSupportDvBecauseLimitedTo4k30()
102 Display.Mode currentMode = display.getMode(); in doesCurrentModeNotSupportDvBecauseLimitedTo4k30()
115 public static Display.Mode findMode1080p60(Display display) { in findMode1080p60()
116 for (Display.Mode mode : display.getSupportedModes()) { in findMode1080p60()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityButtonGesturePreferenceController.java39 Mode.BUTTON,
40 Mode.GESTURE,
42 private @interface Mode { annotation in AccessibilityButtonGesturePreferenceController
74 @Mode
77 Settings.Secure.ACCESSIBILITY_BUTTON_MODE, Mode.BUTTON); in getCurrentAccessibilityButtonMode()
80 private void putCurrentAccessibilityButtonMode(@Mode int mode) { in putCurrentAccessibilityButtonMode()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaskbarModeSwitchRule.java21 import static com.android.quickstep.TaskbarModeSwitchRule.Mode.ALL;
22 import static com.android.quickstep.TaskbarModeSwitchRule.Mode.PERSISTENT;
23 import static com.android.quickstep.TaskbarModeSwitchRule.Mode.TRANSIENT;
54 public enum Mode { enum in TaskbarModeSwitchRule
62 Mode mode() default ALL; in mode()
75 Mode mode = description.getAnnotation(TaskbarModeSwitch.class).mode(); in apply()
DNavigationModeSwitchRule.java21 import static com.android.quickstep.NavigationModeSwitchRule.Mode.ALL;
22 import static com.android.quickstep.NavigationModeSwitchRule.Mode.THREE_BUTTON;
23 import static com.android.quickstep.NavigationModeSwitchRule.Mode.ZERO_BUTTON;
62 public enum Mode { enum in NavigationModeSwitchRule
70 Mode mode() default ALL; in mode()
86 Mode mode = description.getAnnotation(NavigationModeSwitch.class).mode(); in apply()
/packages/services/Car/tests/common_utils/src/com/android/car/test/
DFakeHandlerWrapper.java43 private Mode mMode;
48 public FakeHandlerWrapper(Looper looper, Mode mode) { in FakeHandlerWrapper()
56 if (mMode == Mode.IMMEDIATE) { in FakeHandlerWrapper()
72 public void setMode(Mode mode) { in setMode()
93 public enum Mode { enum in FakeHandlerWrapper
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DDisplayCompat.java38 public static class Mode { class in DisplayCompat
39 private final Display.Mode mMode;
41 public Mode(Display.Mode mode) { in Mode() method in DisplayCompat.Mode
/packages/apps/Settings/tests/unit/src/com/android/settings/display/
DScreenResolutionControllerTest.java55 Display.Mode modeA = new Display.Mode(0, mHighWidth, 0, 0); in getAvailabilityStatus_hasFhdAndQhdModes_returnAvailable()
56 Display.Mode modeB = new Display.Mode(0, mFullWidth, 0, 0); in getAvailabilityStatus_hasFhdAndQhdModes_returnAvailable()
57 Display.Mode[] modes = {modeA, modeB}; in getAvailabilityStatus_hasFhdAndQhdModes_returnAvailable()
DScreenResolutionFragmentTest.java57 Display.Mode mode = new Display.Mode(0, mHighWidth, 0, 0); in getDefaultKey_highResolution()
68 Display.Mode mode = new Display.Mode(0, mFullWidth, 0, 0); in getDefaultKey_fullResolution()
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/core/
DOfflineLocationTimeZoneDelegateTest.java92 assertEquals(Mode.MODE_STOPPED, mDelegate.getCurrentModeEnumForTests()); in locationFoundImmediately()
105 assertEquals(Mode.MODE_STARTED, mDelegate.getCurrentModeEnumForTests()); in locationFoundImmediately()
119 assertEquals(Mode.MODE_STARTED, mDelegate.getCurrentModeEnumForTests()); in locationFoundImmediately()
145 assertEquals(Mode.MODE_STOPPED, mDelegate.getCurrentModeEnumForTests()); in locationNotFoundImmediately()
158 assertEquals(Mode.MODE_STARTED, mDelegate.getCurrentModeEnumForTests()); in locationNotFoundImmediately()
179 assertEquals(Mode.MODE_STOPPED, mDelegate.getCurrentModeEnumForTests());
186 assertEquals(Mode.MODE_DESTROYED, mDelegate.getCurrentModeEnumForTests());
204 assertEquals(Mode.MODE_STOPPED, mDelegate.getCurrentModeEnumForTests());
217 assertEquals(Mode.MODE_STARTED, mDelegate.getCurrentModeEnumForTests());
224 assertEquals(Mode.MODE_DESTROYED, mDelegate.getCurrentModeEnumForTests());
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java293 incoming.setColorFilter(r.getColor(R.color.dialer_call_green), PorterDuff.Mode.MULTIPLY); in Resources()
299 outgoing.setColorFilter(r.getColor(R.color.dialer_call_green), PorterDuff.Mode.MULTIPLY); in Resources()
306 missed.setColorFilter(r.getColor(R.color.dialer_red), PorterDuff.Mode.MULTIPLY); in Resources()
312 voicemail.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources()
317 blocked.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources()
322 videoCall.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources()
327 hdCall.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources()
332 wifiCall.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources()
337 assistedDialedCall.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources()
342 rttCall.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageCrop.java57 private enum Mode { enum in ImageCrop
60 private Mode mState = Mode.NONE;
121 if (mState == Mode.NONE) { in onTouchEvent()
127 mState = Mode.MOVE; in onTouchEvent()
131 if (mState == Mode.MOVE) { in onTouchEvent()
136 mState = Mode.NONE; in onTouchEvent()
141 if (mState == Mode.MOVE) { in onTouchEvent()
244 mState = Mode.NONE; in forceStateConsistency()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropView.java76 private enum Mode { enum in CropView
80 private Mode mState = Mode.NONE;
154 if (mState == Mode.NONE) { in onTouchEvent()
160 mState = Mode.MOVE; in onTouchEvent()
164 if (mState == Mode.MOVE) { in onTouchEvent()
169 mState = Mode.NONE; in onTouchEvent()
173 if (mState == Mode.MOVE) { in onTouchEvent()
190 mState = Mode.NONE; in reset()
/packages/apps/Messaging/src/com/android/messaging/util/
DTintDrawableWrapper.java34 private final PorterDuff.Mode mTintMode;
37 this(drawable, tintStateList, PorterDuff.Mode.SRC_IN); in TintDrawableWrapper()
40 PorterDuff.Mode tintMode) { in TintDrawableWrapper()

12345678