Searched refs:viewport (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/core/java/android/hardware/display/
H A DDisplayViewport.java32 // True if this viewport is valid.
55 public void copyFrom(DisplayViewport viewport) { argument
56 valid = viewport.valid;
57 displayId = viewport.displayId;
58 orientation = viewport.orientation;
59 logicalFrame.set(viewport.logicalFrame);
60 physicalFrame.set(viewport.physicalFrame);
61 deviceWidth = viewport.deviceWidth;
62 deviceHeight = viewport.deviceHeight;
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDevice.java196 * Populates the specified viewport object with orientation,
199 public final void populateViewportLocked(DisplayViewport viewport) { argument
200 viewport.orientation = mCurrentOrientation;
203 viewport.logicalFrame.set(mCurrentLayerStackRect);
205 viewport.logicalFrame.setEmpty();
209 viewport.physicalFrame.set(mCurrentDisplayRect);
211 viewport.physicalFrame.setEmpty();
217 viewport.deviceWidth = isRotated ? info.height : info.width;
218 viewport.deviceHeight = isRotated ? info.width : info.height;
H A DDisplayManagerService.java218 // Temporary viewports, used when sending new viewport information to the
950 private static void setViewportLocked(DisplayViewport viewport, argument
952 viewport.valid = true;
953 viewport.displayId = display.getDisplayIdLocked();
954 device.populateViewportLocked(viewport);
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.cpp492 Rect viewport(newViewport);
507 if (viewport.isEmpty()) {
508 // viewport can be invalid if it has never been set, in that case
510 // it's also invalid to have an empty viewport, so we handle that
512 viewport = Rect(w, h);
514 // viewport is always specified in the logical orientation
516 swap(viewport.right, viewport.bottom);
523 float src_width = viewport.width();
524 float src_height = viewport
[all...]
H A DDisplayDevice.h128 void setProjection(int orientation, const Rect& viewport, const Rect& frame);
H A DSurfaceFlinger.cpp1433 || (state.viewport != draw[i].viewport)
1437 state.viewport, state.frame);
1522 state.viewport, state.frame);
2227 if (disp.viewport != s.viewport) {
2228 disp.viewport = s.viewport;
2448 d.viewport.makeInvalid();
3351 // set-up our viewport
[all...]
H A DSurfaceFlinger_hwc1.cpp1446 || (state.viewport != draw[i].viewport)
1450 state.viewport, state.frame);
1524 state.viewport, state.frame);
2243 if (disp.viewport != s.viewport) {
2244 disp.viewport = s.viewport;
2464 d.viewport.makeInvalid();
3365 // set-up our viewport
[all...]
H A DSurfaceFlinger.h177 Rect viewport; member in struct:android::SurfaceFlinger::DisplayDeviceState
H A DLayer.cpp406 // a viewport clipping and a window transform. we should use floating point to fix this.
687 // Apply this display's projection's viewport to the visible region
690 const auto& viewport = displayDevice->getViewport(); local
691 Region visible = tr.transform(visibleRegion.intersect(viewport));
759 // Apply this display's projection's viewport to the visible region
/frameworks/native/libs/gui/
H A DLayerState.cpp92 viewport(Rect::EMPTY_RECT),
104 output.write(viewport);
117 input.read(viewport);
H A DSurfaceComposerClient.cpp497 s.viewport = layerStackRect;
/frameworks/native/opengl/libagl/
H A Dmatrix.cpp132 // Validate the viewport transformation
515 // premultiply it with the viewport transformation. In addition to
643 c->viewport.surfaceport.x = x;
644 c->viewport.surfaceport.y = y;
647 c->viewport.x,
648 c->viewport.y,
649 c->viewport.w,
650 c->viewport.h);
653 c->viewport.scissor.x,
654 c->viewport
[all...]
H A Dcontext.h501 // viewport transformation
622 viewport_t viewport; member in struct:android::gl::ogles_context_t
/frameworks/native/include/private/gui/
H A DLayerState.h136 Rect viewport; member in struct:android::DisplayState
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMagnificationController.java278 * Returns the X offset of the magnification viewport. If an animation
290 * magnification viewport.
302 * Returns the Y offset of the magnification viewport. If an animation
313 * magnification viewport.
409 final Rect viewport = mTempRect;
410 mMagnificationRegion.getBounds(viewport);
413 final float oldCenterX = (viewport.width() / 2.0f - spec.offsetX) / oldScale;
414 final float oldCenterY = (viewport.height() / 2.0f - spec.offsetY) / oldScale;
563 * of the viewport, or {@link Float#NaN} to leave unchanged
565 * of the viewport, o
[all...]
/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java404 private void setDisplayViewport(boolean external, DisplayViewport viewport) { argument
406 viewport.displayId, viewport.orientation,
407 viewport.logicalFrame.left, viewport.logicalFrame.top,
408 viewport.logicalFrame.right, viewport.logicalFrame.bottom,
409 viewport.physicalFrame.left, viewport.physicalFrame.top,
410 viewport
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputManagerService.cpp193 void setDisplayViewport(bool external, const DisplayViewport& viewport);
362 void NativeInputManager::setDisplayViewport(bool external, const DisplayViewport& viewport) { argument
368 if (v != viewport) {
370 v = viewport;
376 viewport.logicalRight - viewport.logicalLeft,
377 viewport.logicalBottom - viewport.logicalTop,
378 viewport.orientation);
/frameworks/native/services/inputflinger/
H A DInputReader.cpp222 const DisplayViewport& viewport = external ? mExternalDisplay : mInternalDisplay; local
223 if (viewport.displayId >= 0) {
224 *outViewport = viewport;
230 void InputReaderConfiguration::setDisplayInfo(bool external, const DisplayViewport& viewport) { argument
232 v = viewport;
3299 // Convert rotated viewport to natural surface coordinates.
H A DInputReader.h253 void setDisplayInfo(bool external, const DisplayViewport& viewport);
1533 // The current viewport.
1534 // The components of the viewport are specified in the display's rotated orientation.
1538 // The width and height are derived from the viewport but are specified
1542 // The orientation may be different from the viewport orientation as it specifies
1543 // the rotation of the surface coordinates required to produce the viewport's

Completed in 319 milliseconds