Home
last modified time | relevance | path

Searched refs:Display (Results 1 – 25 of 133) sorted by relevance

123456

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java240 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.MAIN); in ordinaryEvents_onMainDisplay_routedToInputManager()
247 send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in ordinaryEvents_onInstrumentClusterDisplay_notRoutedToInputManager()
257 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in ordinaryEvents_onInstrumentClusterDisplay_routedToListener()
269 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.MAIN); in customEventHandler_capturesDisplayMainEvent_capturedByInputController()
283 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.MAIN); in customEventHandler_capturesDisplayMainEvent_missedByInputController()
297 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in customEventHandler_capturesClusterEvents_capturedByInstrumentCluster()
316 send(Key.DOWN, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler()
317 send(Key.UP, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler()
330 send(Key.DOWN, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler()
339 send(Key.UP, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler()
[all …]
DCarOccupantZoneServiceTest.java50 import android.view.Display;
101 private Display mDisplay0;
104 private Display mDisplay1;
107 private Display mDisplay2;
110 private Display mDisplay3; // not listed by default
113 private Display mDisplay4;
116 private Display mDisplay5; // outside display config and become unknown display
198 private void mockDisplay(DisplayManager displayManager, Display display, int displayId, in mockDisplay()
205 private void mockDisplay(DisplayManager displayManager, Display display, int displayId, in mockDisplay()
232 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{ in setUp()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DPeakRefreshRatePreferenceControllerTest.java27 import android.view.Display;
108 Display.Mode lower = new Display.Mode(0, 0, 0, DEFAULT_REFRESH_RATE - 1); in findPeakRefreshRate_moreThanOneHigherThanDefault()
109 Display.Mode def = new Display.Mode(0, 0, 0, DEFAULT_REFRESH_RATE); in findPeakRefreshRate_moreThanOneHigherThanDefault()
110 Display.Mode higher = new Display.Mode(0, 0, 0, DEFAULT_REFRESH_RATE + 1); in findPeakRefreshRate_moreThanOneHigherThanDefault()
111 Display.Mode higher1 = new Display.Mode(0, 0, 0, DEFAULT_REFRESH_RATE + 2); in findPeakRefreshRate_moreThanOneHigherThanDefault()
114 new Display.Mode[] {lower, def, higher, higher1})) in findPeakRefreshRate_moreThanOneHigherThanDefault()
117 new Display.Mode[] {lower, def, higher1, higher})) in findPeakRefreshRate_moreThanOneHigherThanDefault()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/present/
DPresentTestFragment.java33 import android.view.Display;
62 private Display mCurrentDisplay;
144 final Display display = (Display) v.getTag(); in setupListeners()
165 final Display display = (Display) buttonView.getTag(); in setupListeners()
205 private void showPresentation(Display display, DemoPresentationContents contents) { in showPresentation()
224 private void hidePresentation(Display display) { in hidePresentation()
243 private final class DisplayListAdapter extends ArrayAdapter<Display> {
246 private Display[] mShownDisplays;
252 mShownDisplays = new Display[] {mCurrentDisplay}; in DisplayListAdapter()
264 final Display display = getItem(position); in getView()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppListenerTest.java31 import android.view.Display;
119 Display display = createDisplay(displayId); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
137 Display display = createDisplay(123); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
146 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{display}); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
161 Display display = createDisplay(123); in onTaskStackChanged_unsafeTask_callsUnsafeTaskDisplayed()
170 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{display}); in onTaskStackChanged_unsafeTask_callsUnsafeTaskDisplayed()
185 Display display1 = createDisplay(1); in onTaskStackChanged_multiDisplay_callsTasksDisplayed()
191 Display display2 = createDisplay(2); in onTaskStackChanged_multiDisplay_callsTasksDisplayed()
195 Display display3 = createDisplay(3); in onTaskStackChanged_multiDisplay_callsTasksDisplayed()
211 .thenReturn(new Display[]{display1, display2, display3}); in onTaskStackChanged_multiDisplay_callsTasksDisplayed()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DDisplayController.java18 import static android.view.Display.DEFAULT_DISPLAY;
39 import android.view.Display;
87 Display display = mDM.getDisplay(DEFAULT_DISPLAY); in DisplayController()
102 for (Display d : mDM.getDisplays()) { in DisplayController()
125 Display display = mDM.getDisplay(DEFAULT_DISPLAY); in onDisplayChanged()
163 Display display = mDM.getDisplay(DEFAULT_DISPLAY); in onConfigChanged()
174 Display display = mWindowContext.getDisplay(); in onConfigurationChanged()
199 private Context getDisplayInfoContext(Display display) { in getDisplayInfoContext()
204 private void handleInfoChange(Display display) { in handleInfoChange()
258 public Info(Context context, Display display) { in Info()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DCarSystemBarTest.java38 import android.view.Display;
243 int randomDisplay = Display.DEFAULT_DISPLAY + 10; in showTransient_wrongDisplayId_transientModeNotUpdated()
258 mCarSystemBar.showTransient(Display.DEFAULT_DISPLAY, insetTypes); in showTransient_correctDisplayId_noStatusBarInset_transientModeNotUpdated()
271 mCarSystemBar.showTransient(Display.DEFAULT_DISPLAY, insetTypes); in showTransient_correctDisplayId_statusBarInset_transientModeUpdated()
284 mCarSystemBar.showTransient(Display.DEFAULT_DISPLAY, insetTypes); in showTransient_correctDisplayId_noNavBarInset_transientModeNotUpdated()
297 mCarSystemBar.showTransient(Display.DEFAULT_DISPLAY, insetTypes); in showTransient_correctDisplayId_navBarInset_transientModeUpdated()
308 mCarSystemBar.showTransient(Display.DEFAULT_DISPLAY, in abortTransient_wrongDisplayId_transientModeNotCleared()
314 int randomDisplay = Display.DEFAULT_DISPLAY + 10; in abortTransient_wrongDisplayId_transientModeNotCleared()
328 mCarSystemBar.showTransient(Display.DEFAULT_DISPLAY, in abortTransient_correctDisplayId_noInsets_transientModeNotCleared()
334 mCarSystemBar.abortTransient(Display.DEFAULT_DISPLAY, insetTypes); in abortTransient_correctDisplayId_noInsets_transientModeNotCleared()
[all …]
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DClusterDisplayProvider.java25 import android.view.Display;
46 private int mClusterDisplayId = Display.INVALID_DISPLAY;
75 Display clusterDisplay = getClusterDisplay(); in checkClusterDisplayAdded()
85 private Display getClusterDisplay() { in getClusterDisplay()
108 if (mClusterDisplayId == Display.INVALID_DISPLAY) { in onOccupantZoneConfigChanged()
111 Display clusterDisplay = getClusterDisplay(); in onOccupantZoneConfigChanged()
114 mClusterDisplayId = Display.INVALID_DISPLAY; in onOccupantZoneConfigChanged()
/packages/services/Car/car-lib/src/android/car/
DCarOccupantZoneManager.java35 import android.view.Display;
299 public List<Display> getAllDisplaysForOccupant(@NonNull OccupantZoneInfo occupantZone) { in getAllDisplaysForOccupant()
303 ArrayList<Display> displays = new ArrayList<>(displayIds.length); in getAllDisplaysForOccupant()
306 if (displayIds[i] == Display.INVALID_DISPLAY) { in getAllDisplaysForOccupant()
309 Display display = mDisplayManager.getDisplay(displayIds[i]); in getAllDisplaysForOccupant()
328 public Display getDisplayForOccupant(@NonNull OccupantZoneInfo occupantZone, in getDisplayForOccupant()
334 if (displayId == Display.INVALID_DISPLAY) { in getDisplayForOccupant()
361 return handleRemoteExceptionFromCarService(e, Display.INVALID_DISPLAY); in getDisplayIdForDriver()
405 public int getDisplayType(@NonNull Display display) { in getDisplayType()
459 private void assertNonNullDisplay(Display display) { in assertNonNullDisplay()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/displaysound/
DHdrFormatSelectionFragmentTest.java19 import static android.view.Display.HdrCapabilities.HDR_TYPE_DOLBY_VISION;
20 import static android.view.Display.HdrCapabilities.HDR_TYPE_HDR10;
21 import static android.view.Display.HdrCapabilities.HDR_TYPE_HDR10_PLUS;
22 import static android.view.Display.HdrCapabilities.HDR_TYPE_HLG;
36 import android.view.Display;
295 Display display = spy(Display.class); in createHdrFormatSelectionFragmentWithDisplayManagerReturning()
300 Display.HdrCapabilities hdrCapabilities = new Display.HdrCapabilities( in createHdrFormatSelectionFragmentWithDisplayManagerReturning()
305 doReturn(display).when(mDisplayManager).getDisplay(Display.DEFAULT_DISPLAY); in createHdrFormatSelectionFragmentWithDisplayManagerReturning()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DDisplayMetricsRetriever.java22 import android.view.Display;
56 public DisplayMetrics getDisplayMetrics(Resources resources, Display display) { in getDisplayMetrics()
68 private DisplayMetrics getPortraitDisplayMetrics(Display display) { in getPortraitDisplayMetrics()
76 private DisplayMetrics getLandscapeDisplayMetrics(Display display) { in getLandscapeDisplayMetrics()
84 private void writeDisplayMetrics(Display display, DisplayMetrics outMetrics) { in writeDisplayMetrics()
DScreenSizeCalculator.java25 import android.view.Display;
62 public Point getScreenSize(Display display) { in getScreenSize()
86 private Point getPortraitScreenSize(Display display) { in getPortraitScreenSize()
94 private Point getLandscapeScreenSize(Display display) { in getLandscapeScreenSize()
105 private void writeDisplaySizeToPoint(Display display, Point outPoint) { in writeDisplaySizeToPoint()
/packages/services/Car/tests/SampleRearViewCamera/src/com/google/android/car/rvc/
DRearViewCameraActivityBase.java25 import android.view.Display;
51 if (displayId != Display.DEFAULT_DISPLAY) {
78 Display defaultDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in decideViewVisibility()
82 state == Display.STATE_ON ? View.VISIBLE : View.INVISIBLE); in decideViewVisibility()
/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
DSystemProximityWakeLock.java24 import android.view.Display;
75 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayChanged()
86 Display display = in isDefaultDisplayOn()
87 context.getSystemService(DisplayManager.class).getDisplay(Display.DEFAULT_DISPLAY); in isDefaultDisplayOn()
88 return display.getState() != Display.STATE_OFF; in isDefaultDisplayOn()
/packages/services/Car/tests/CarEvsCameraPreviewApp/src/com/google/android/car/evs/
DCarEvsCameraPreviewActivity.java33 import android.view.Display;
64 private int mDisplayState = Display.STATE_OFF;
111 if (displayId != Display.DEFAULT_DISPLAY) {
265 if (mDisplayState == Display.STATE_ON) { in handleVideoStreamLocked()
297 Display defaultDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in decideViewVisibility()
300 if (state == Display.STATE_ON) { in decideViewVisibility()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DColorModePreference.java25 import android.view.Display;
36 private Display mDisplay;
60 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayAdded()
67 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayChanged()
77 mDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in updateCurrentAndSupported()
/packages/apps/Settings/src/com/android/settings/development/
DForcePeakRefreshRatePreferenceController.java23 import android.view.Display;
53 final Display display = dm.getDisplay(Display.DEFAULT_DISPLAY); in ForcePeakRefreshRatePreferenceController()
122 private float findPeakRefreshRate(Display.Mode[] modes) { in findPeakRefreshRate()
124 for (Display.Mode mode : modes) { in findPeakRefreshRate()
DColorModePreference.java25 import android.view.Display;
37 private Display mDisplay;
82 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayAdded()
89 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayChanged()
99 mDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in updateCurrentAndSupported()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/sideloaded/
DSideLoadedAppStateController.java20 import android.view.Display;
41 void onUnsafeTaskCreatedOnDisplay(Display display) { in onUnsafeTaskCreatedOnDisplay()
45 void onSafeTaskDisplayedOnDisplay(Display display) { in onSafeTaskDisplayedOnDisplay()
49 void onUnsafeTaskDisplayedOnDisplay(Display display) { in onUnsafeTaskDisplayedOnDisplay()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsManager.java32 import android.view.Display;
58 private int mDisplayId = Display.INVALID_DISPLAY;
372 if (mDisplayId != Display.INVALID_DISPLAY) { in getDisplayId()
379 if (mDisplayId == Display.INVALID_DISPLAY) { in getDisplayId()
380 mDisplayId = Display.DEFAULT_DISPLAY; in getDisplayId()
426 return handleRemoteExceptionFromCarService(e, Display.DEFAULT_DISPLAY); in getMappedPhysicalDisplayOfVirtualDisplay()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/shadows/
DLShadowDisplay.java22 import android.view.Display;
31 @Implements(value = Display.class)
36 @RealObject Display realObject;
47 directlyOn(realObject, Display.class).getCurrentSizeRange(outSmallestSize, outLargestSize); in getCurrentSizeRange()
/packages/apps/Settings/src/com/android/settings/display/
DPeakRefreshRatePreferenceController.java25 import android.view.Display;
70 final Display display = dm.getDisplay(Display.DEFAULT_DISPLAY); in PeakRefreshRatePreferenceController()
133 float findPeakRefreshRate(Display.Mode[] modes) { in findPeakRefreshRate()
135 for (Display.Mode mode : modes) { in findPeakRefreshRate()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/osdouble/
DClusterOsDoubleApplication.java28 import android.view.Display;
52 if (displayId == Display.INVALID_DISPLAY) { in onCreate()
66 for (Display display : mDisplayManager.getDisplays()) { in findDisplay()
76 return Display.INVALID_DISPLAY; in findDisplay()
/packages/services/Car/tests/MultiDisplaySecondaryHomeTestLauncher/src/com/android/car/multidisplay/launcher/
DLauncherActivity.java31 import android.view.Display;
69 private int mSelectedDisplayId = Display.INVALID_DISPLAY;
118 mSelectedDisplayId = Display.INVALID_DISPLAY; in onCreate()
220 if (mSelectedDisplayId != Display.INVALID_DISPLAY) { in launch()
244 mDisplayAdapter.add(new DisplayItem(Display.INVALID_DISPLAY, "Do not specify display")); in refreshDisplayPicker()
246 for (Display display : dm.getDisplays()) { in refreshDisplayPicker()
248 final boolean isDisplayPrivate = (display.getFlags() & Display.FLAG_PRIVATE) != 0; in refreshDisplayPicker()
/packages/services/Car/service/src/com/android/car/cluster/
DClusterHomeService.java50 import android.view.Display;
80 private int mClusterDisplayId = Display.INVALID_DISPLAY;
129 if (clusterDisplayId == Display.INVALID_DISPLAY) { in initClusterDisplay()
137 if (clusterDisplayId == Display.INVALID_DISPLAY) { in initClusterDisplay()
144 Display clusterDisplay = displayManager.getDisplay(clusterDisplayId); in initClusterDisplay()
297 if (mClusterDisplayId == Display.INVALID_DISPLAY) { in startFixedActivityModeAsUser()
313 if (mClusterDisplayId == Display.INVALID_DISPLAY) { in stopFixedActivityMode()

123456