Searched refs:viewport (Results 1 - 17 of 17) 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.java189 * Populates the specified viewport object with orientation,
192 public final void populateViewportLocked(DisplayViewport viewport) { argument
193 viewport.orientation = mCurrentOrientation;
196 viewport.logicalFrame.set(mCurrentLayerStackRect);
198 viewport.logicalFrame.setEmpty();
202 viewport.physicalFrame.set(mCurrentDisplayRect);
204 viewport.physicalFrame.setEmpty();
210 viewport.deviceWidth = isRotated ? info.height : info.width;
211 viewport.deviceHeight = isRotated ? info.width : info.height;
H A DDisplayManagerService.java213 // Temporary viewports, used when sending new viewport information to the
878 private static void setViewportLocked(DisplayViewport viewport, argument
880 viewport.valid = true;
881 viewport.displayId = display.getDisplayIdLocked();
882 device.populateViewportLocked(viewport);
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_context.cpp208 int viewport[4] = {}; local
209 hooks->gl.glGetIntegerv(GL_VIEWPORT, viewport);
210 unsigned fbContentsSize = viewport[2] * viewport[3] * 4;
226 hooks->gl.glReadPixels(viewport[0], viewport[1], viewport[2], viewport[3],
236 *fbwidth = viewport[2];
237 *fbheight = viewport[
[all...]
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.cpp426 Rect viewport(newViewport);
441 if (viewport.isEmpty()) {
442 // viewport can be invalid if it has never been set, in that case
444 // it's also invalid to have an empty viewport, so we handle that
446 viewport = Rect(w, h);
448 // viewport is always specified in the logical orientation
450 swap(viewport.right, viewport.bottom);
457 float src_width = viewport.width();
458 float src_height = viewport
[all...]
H A DDisplayDevice.h114 void setProjection(int orientation, const Rect& viewport, const Rect& frame);
H A DSurfaceFlinger.cpp1312 || (state.viewport != draw[i].viewport)
1316 state.viewport, state.frame);
1390 state.viewport, state.frame);
2094 if (disp.viewport != s.viewport) {
2095 disp.viewport = s.viewport;
2294 d.viewport.makeInvalid();
3149 // set-up our viewport
[all...]
H A DSurfaceFlinger.h170 Rect viewport; member in struct:android::SurfaceFlinger::DisplayDeviceState
/frameworks/native/libs/gui/
H A DLayerState.cpp86 output.write(viewport);
99 input.read(viewport);
H A DSurfaceComposerClient.cpp424 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.h125 Rect viewport; member in struct:android::DisplayState
/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java368 private void setDisplayViewport(boolean external, DisplayViewport viewport) { argument
370 viewport.displayId, viewport.orientation,
371 viewport.logicalFrame.left, viewport.logicalFrame.top,
372 viewport.logicalFrame.right, viewport.logicalFrame.bottom,
373 viewport.physicalFrame.left, viewport.physicalFrame.top,
374 viewport
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputManagerService.cpp180 void setDisplayViewport(bool external, const DisplayViewport& viewport);
325 void NativeInputManager::setDisplayViewport(bool external, const DisplayViewport& viewport) { argument
331 if (v != viewport) {
333 v = viewport;
339 viewport.logicalRight - viewport.logicalLeft,
340 viewport.logicalBottom - viewport.logicalTop,
341 viewport.orientation);
/frameworks/native/services/inputflinger/
H A DInputReader.cpp207 const DisplayViewport& viewport = external ? mExternalDisplay : mInternalDisplay; local
208 if (viewport.displayId >= 0) {
209 *outViewport = viewport;
215 void InputReaderConfiguration::setDisplayInfo(bool external, const DisplayViewport& viewport) { argument
217 v = viewport;
2991 // Convert rotated viewport to natural surface coordinates.
H A DInputReader.h250 void setDisplayInfo(bool external, const DisplayViewport& viewport);
1390 // The current viewport.
1391 // The components of the viewport are specified in the display's rotated orientation.
1395 // The width and height are derived from the viewport but are specified
1399 // The orientation may be different from the viewport orientation as it specifies
1400 // the rotation of the surface coordinates required to produce the viewport's

Completed in 349 milliseconds