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

/frameworks/base/services/java/com/android/server/display/
H A DDisplayViewport.java30 // True if this viewport is valid.
53 public void copyFrom(DisplayViewport viewport) { argument
54 valid = viewport.valid;
55 displayId = viewport.displayId;
56 orientation = viewport.orientation;
57 logicalFrame.set(viewport.logicalFrame);
58 physicalFrame.set(viewport.physicalFrame);
59 deviceWidth = viewport.deviceWidth;
60 deviceHeight = viewport.deviceHeight;
H A DDisplayDevice.java174 * Populates the specified viewport object with orientation,
177 public final void populateViewportLocked(DisplayViewport viewport) { argument
178 viewport.orientation = mCurrentOrientation;
181 viewport.logicalFrame.set(mCurrentLayerStackRect);
183 viewport.logicalFrame.setEmpty();
187 viewport.physicalFrame.set(mCurrentDisplayRect);
189 viewport.physicalFrame.setEmpty();
195 viewport.deviceWidth = isRotated ? info.height : info.width;
196 viewport.deviceHeight = isRotated ? info.width : info.height;
H A DDisplayManagerService.java180 // Temporary viewports, used when sending new viewport information to the
793 private static void setViewportLocked(DisplayViewport viewport, argument
795 viewport.valid = true;
796 viewport.displayId = display.getDisplayIdLocked();
797 device.populateViewportLocked(viewport);
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_context.cpp175 int viewport[4] = {}; local
176 hooks->gl.glGetIntegerv(GL_VIEWPORT, viewport);
177 unsigned fbContentsSize = viewport[2] * viewport[3] * 4;
193 hooks->gl.glReadPixels(viewport[0], viewport[1], viewport[2], viewport[3],
203 *fbwidth = viewport[2];
204 *fbheight = viewport[
[all...]
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.cpp367 const Rect& viewport, const Rect& frame) {
369 mViewport = viewport;
382 Rect viewport(mViewport);
391 if (viewport.isEmpty()) {
392 // viewport can be invalid if it has never been set, in that case
394 // it's also invalid to have an empty viewport, so we handle that
396 viewport = Rect(w, h);
398 // viewport is always specified in the logical orientation
400 swap(viewport.right, viewport
366 setProjection(int orientation, const Rect& viewport, const Rect& frame) argument
[all...]
H A DDisplayDevice.h104 void setProjection(int orientation, const Rect& viewport, const Rect& frame);
H A DSurfaceFlinger.cpp1139 || (state.viewport != draw[i].viewport)
1143 state.viewport, state.frame);
1201 state.viewport, state.frame);
1784 if (disp.viewport != s.viewport) {
1785 disp.viewport = s.viewport;
2008 d.viewport.makeInvalid();
2661 GLint viewport[ local
[all...]
H A DSurfaceFlinger.h168 Rect viewport; member in struct:android::SurfaceFlinger::DisplayDeviceState
/frameworks/native/libs/gui/
H A DLayerState.cpp70 output.write(viewport);
81 input.read(viewport);
H A DSurfaceComposerClient.cpp390 s.viewport = layerStackRect;
/frameworks/base/libs/hwui/
H A DSnapshot.h165 * Current viewport.
167 Rect viewport; member in class:android::uirenderer::Snapshot
H A DSnapshot.cpp44 viewport(s->viewport), height(s->height), alpha(s->alpha) {
H A DOpenGLRenderer.cpp165 mFirstSnapshot->viewport.set(0, 0, width, height);
300 glViewport(0, 0, snapshot->viewport.getWidth(), snapshot->viewport.getHeight());
321 glViewport(0, 0, snapshot->viewport.getWidth(), snapshot->viewport.getHeight());
401 info.width = getSnapshot()->viewport.getWidth();
578 Rect& r = previous->viewport;
647 * - Change viewport, clip and projection matrix
706 if (!bounds.intersect(mSnapshot->previous->viewport)) {
790 mSnapshot->viewport
[all...]
/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.h497 // viewport transformation
618 viewport_t viewport; member in struct:android::gl::ogles_context_t
/frameworks/native/include/private/gui/
H A DLayerState.h120 Rect viewport; member in struct:android::DisplayState
/frameworks/base/services/java/com/android/server/input/
H A DInputManagerService.java345 private void setDisplayViewport(boolean external, DisplayViewport viewport) { argument
347 viewport.displayId, viewport.orientation,
348 viewport.logicalFrame.left, viewport.logicalFrame.top,
349 viewport.logicalFrame.right, viewport.logicalFrame.bottom,
350 viewport.physicalFrame.left, viewport.physicalFrame.top,
351 viewport
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_input_InputManagerService.cpp167 void setDisplayViewport(bool external, const DisplayViewport& viewport);
308 void NativeInputManager::setDisplayViewport(bool external, const DisplayViewport& viewport) { argument
314 if (v != viewport) {
316 v = viewport;
322 viewport.logicalRight - viewport.logicalLeft,
323 viewport.logicalBottom - viewport.logicalTop,
324 viewport.orientation);
/frameworks/base/services/java/com/android/server/accessibility/
H A DScreenMagnifier.java83 * location of the triple tap as the center of the magnified viewport.
89 * viewport dragging mode until the finger goes up. One can think of this
90 * mode as a way to move the magnified viewport since the area around the
93 * would magnify and the viewport will follow the user's finger. When the
95 * is performed when the screen is magnified, the viewport movement will
99 * 3. Pinching with any number of additional fingers when viewport dragging
106 * to pan the viewport. Note that in this mode the content is panned as
107 * opposed to the viewport dragging mode in which the viewport is moved.
860 public ScreenStateObserver(Context context, Viewport viewport, argument
910 DisplayContentObserver(Context context, Viewport viewport, MagnificationController magnificationController, IWindowManager windowManagerService, DisplayProvider displayProvider, long longAnimationDuration, float windowAnimationScale) argument
[all...]
/frameworks/base/services/input/
H A DInputReader.h246 void setDisplayInfo(bool external, const DisplayViewport& viewport);
1328 // The current viewport.
1329 // The components of the viewport are specified in the display's rotated orientation.
1333 // The width and height are derived from the viewport but are specified
1337 // The orientation may be different from the viewport orientation as it specifies
1338 // the rotation of the surface coordinates required to produce the viewport's
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;
2925 // Convert rotated viewport to natural surface coordinates.

Completed in 2368 milliseconds