Home
last modified time | relevance | path

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

1234

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java108 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.MAIN); in ordinaryEvents_onMainDisplay_routedToInputManager()
115 send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in ordinaryEvents_onInstrumentClusterDisplay_notRoutedToInputManager()
125 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in ordinaryEvents_onInstrumentClusterDisplay_routedToListener()
142 event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.MAIN); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
146 event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
150 event = send(Key.DOWN, KeyEvent.KEYCODE_MENU, Display.MAIN); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
154 event = send(Key.DOWN, KeyEvent.KEYCODE_MENU, Display.INSTRUMENT_CLUSTER); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
165 send(Key.DOWN, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler()
166 send(Key.UP, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler()
179 send(Key.DOWN, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler()
[all …]
/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/Cluster/src/android/car/cluster/
DClusterDisplayProvider.java26 import android.view.Display;
58 Display clusterDisplay = getInstrumentClusterDisplay(mDisplayManager); in ClusterDisplayProvider()
89 Display display = mDisplayManager.getDisplay(displayId); in trackClusterDisplay()
119 private static Display getInstrumentClusterDisplay(DisplayManager displayManager) { in getInstrumentClusterDisplay()
120 Display[] displays = displayManager.getDisplays(); in getInstrumentClusterDisplay()
135 for (Display display : displays) { in getInstrumentClusterDisplay()
136 if (display.getDisplayId() != Display.DEFAULT_DISPLAY in getInstrumentClusterDisplay()
DNavigationFragment.java26 import android.view.Display;
56 private static int mRegisteredNavDisplayId = Display.INVALID_DISPLAY;
80 mRegisteredNavDisplayId = Display.INVALID_DISPLAY;
199 ? mVirtualDisplay.getDisplay().getDisplayId() : Display.INVALID_DISPLAY; in getVirtualDisplayId()
/packages/services/Car/service/src/com/android/car/systeminterface/
DDisplayInterface.java42 import android.view.Display;
112 if (displayId == Display.DEFAULT_DISPLAY) {
161 Display disp = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in isMainDisplayOn()
162 return disp.getState() == Display.STATE_ON; in isMainDisplayOn()
250 Display[] displays = mDisplayManager.getDisplays(); in reconfigureSecondaryDisplays()
251 for (Display display : displays) { in reconfigureSecondaryDisplays()
252 if (display.getDisplayId() == Display.DEFAULT_DISPLAY) { // skip main in reconfigureSecondaryDisplays()
/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.java24 import android.view.Display;
60 public Point getScreenSize(Display display) { in getScreenSize()
73 private Point getPortraitScreenSize(Display display) { in getPortraitScreenSize()
81 private Point getLandscapeScreenSize(Display display) { in getLandscapeScreenSize()
92 private void writeDisplaySizeToPoint(Display display, Point outPoint) { in writeDisplaySizeToPoint()
DTileSizeCalculator.java23 import android.view.Display;
96 Display display = windowManager.getDefaultDisplay(); in getNumColumns()
155 Display display = windowManager.getDefaultDisplay(); in getTileSize()
187 Display display = activity.getWindowManager().getDefaultDisplay(); in getActivityWindowWidthPx()
201 Display defaultDisplay = windowManager.getDefaultDisplay(); in getDeviceDisplayWidthPx()
/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()
DAnswerProximitySensor.java23 import android.view.Display;
121 Display display = in isDefaultDisplayOn()
122 context.getSystemService(DisplayManager.class).getDisplay(Display.DEFAULT_DISPLAY); in isDefaultDisplayOn()
123 return display.getState() == Display.STATE_ON; in isDefaultDisplayOn()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
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/Settings/src/com/android/settings/development/
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/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/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsManager.java30 import android.view.Display;
56 private int mDisplayId = Display.INVALID_DISPLAY;
370 if (mDisplayId != Display.INVALID_DISPLAY) { in getDisplayId()
377 if (mDisplayId == Display.INVALID_DISPLAY) { in getDisplayId()
378 mDisplayId = Display.DEFAULT_DISPLAY; in getDisplayId()
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java59 import android.view.Display;
417 return getCurrentUxRestrictions(Display.DEFAULT_DISPLAY); in getCurrentUxRestrictions()
873 Display defaultDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in getDefaultDisplayPhysicalPort()
884 for (Display display : mDisplayManager.getDisplays()) { in initPhysicalPort()
885 if (display.getType() == Display.TYPE_VIRTUAL) { in initPhysicalPort()
889 if (display.getDisplayId() == Display.DEFAULT_DISPLAY && display.getAddress() == null) { in initPhysicalPort()
977 Display display = mDisplayManager.getDisplay(displayId); in getPhysicalPort()
988 private byte getPhysicalPort(@NonNull Display display) { in getPhysicalPort()
989 if (display.getType() == Display.TYPE_VIRTUAL) { in getPhysicalPort()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DInspectorController.java310 public interface Display { interface in InspectorController
320 public interface ActionDisplay extends Display {
358 public interface MediaDisplay extends Display {
370 public interface DebugDisplay extends Display {
383 public interface TableDisplay extends Display {
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDrawerController.java31 import com.android.documentsui.base.Display;
82 float width = Display.screenWidth(activity) - Display.actionBarHeight(activity); in calculateDrawerWidth()
87 Log.d(TAG, "Calculated drawer width:" + (finalWidth / Display.density(activity))); in calculateDrawerWidth()
/packages/apps/Dialer/java/com/android/incallui/
DProximitySensor.java26 import android.view.Display;
292 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayChanged()
293 final Display display = displayManager.getDisplay(displayId); in onDisplayChanged()
295 final boolean isDisplayOn = display.getState() != Display.STATE_OFF; in onDisplayChanged()
/packages/apps/Settings/src/com/android/settings/display/
DScreenZoomSettings.java25 import android.view.Display;
103 DisplayDensityUtils.clearForcedDisplayDensity(Display.DEFAULT_DISPLAY); in commit()
105 DisplayDensityUtils.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in commit()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DScreenZoomSettings.java25 import android.view.Display;
103 DisplayDensityUtils.clearForcedDisplayDensity(Display.DEFAULT_DISPLAY); in commit()
105 DisplayDensityUtils.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in commit()
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java51 import android.view.Display;
406 Display display = mDm.getDisplay(displayIdForActivity); in launchIfNecessary()
511 launchIfNecessary(Display.INVALID_DISPLAY); in launchIfNecessary()
560 if (displayId == Display.DEFAULT_DISPLAY || displayId == Display.INVALID_DISPLAY) { in isDisplayAllowedForFixedMode()
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java59 import android.view.Display;
430 List<Display> physicalDisplays = getPhysicalDisplays(); in doHandleInit()
433 Display defaultDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in doHandleInit()
440 for (Display physicalDisplay : physicalDisplays) { in doHandleInit()
971 private List<Display> getPhysicalDisplays() { in getPhysicalDisplays()
972 List<Display> displays = new ArrayList<>(); in getPhysicalDisplays()
973 for (Display display : mDisplayManager.getDisplays()) { in getPhysicalDisplays()
989 listenerForTopTaskDisplay = mUxRestrictionsListeners.get(Display.DEFAULT_DISPLAY); in isUxRestrictedOnDisplay()
/packages/apps/Settings/tests/uitests/assets/
Dsearch_results_list173 Display;display_category
174 Display;display_settings_screen
175 Display;top_level_display
176 Display cutout;display_cutout_emulation
177 Display over other apps;system_alert_window
178 Display size;accessibility_settings_screen_zoom
179 Display size;display_settings_screen_zoom
180 Display size;screen_zoom_settings
/packages/services/Car/tests/carservice_test/src/com/android/car/
DSystemActivityMonitoringServiceTest.java30 import android.view.Display;
121 startActivity(getContext(), activityA, Display.DEFAULT_DISPLAY); in testGetTopTasksOnMultiDisplay()
196 startActivity(ctx, name, Display.DEFAULT_DISPLAY); in startActivity()

1234