/frameworks/base/services/java/com/android/server/display/ |
H A D | DisplayViewport.java | 30 // 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 D | DisplayDevice.java | 175 * Populates the specified viewport object with orientation, 178 public final void populateViewportLocked(DisplayViewport viewport) { argument 179 viewport.orientation = mCurrentOrientation; 182 viewport.logicalFrame.set(mCurrentLayerStackRect); 184 viewport.logicalFrame.setEmpty(); 188 viewport.physicalFrame.set(mCurrentDisplayRect); 190 viewport.physicalFrame.setEmpty(); 196 viewport.deviceWidth = isRotated ? info.height : info.width; 197 viewport.deviceHeight = isRotated ? info.width : info.height;
|
H A D | DisplayManagerService.java | 198 // Temporary viewports, used when sending new viewport information to the 1084 private static void setViewportLocked(DisplayViewport viewport, argument 1086 viewport.valid = true; 1087 viewport.displayId = display.getDisplayIdLocked(); 1088 device.populateViewportLocked(viewport);
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_context.cpp | 175 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 D | DisplayDevice.cpp | 392 Rect viewport(newViewport); 407 if (viewport.isEmpty()) { 408 // viewport can be invalid if it has never been set, in that case 410 // it's also invalid to have an empty viewport, so we handle that 412 viewport = Rect(w, h); 414 // viewport is always specified in the logical orientation 416 swap(viewport.right, viewport.bottom); 423 float src_width = viewport.width(); 424 float src_height = viewport [all...] |
H A D | DisplayDevice.h | 111 void setProjection(int orientation, const Rect& viewport, const Rect& frame);
|
H A D | SurfaceFlinger.cpp | 1293 || (state.viewport != draw[i].viewport) 1297 state.viewport, state.frame); 1353 state.viewport, state.frame); 1980 if (disp.viewport != s.viewport) { 1981 disp.viewport = s.viewport; 2177 d.viewport.makeInvalid(); 2937 // set-up our viewport [all...] |
H A D | SurfaceFlinger.h | 169 Rect viewport; member in struct:android::SurfaceFlinger::DisplayDeviceState
|
/frameworks/native/libs/gui/ |
H A D | LayerState.cpp | 82 output.write(viewport); 93 input.read(viewport);
|
H A D | SurfaceComposerClient.cpp | 418 s.viewport = layerStackRect;
|
/frameworks/native/opengl/libagl/ |
H A D | matrix.cpp | 132 // 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 D | context.h | 497 // viewport transformation 618 viewport_t viewport; member in struct:android::gl::ogles_context_t
|
/frameworks/base/libs/hwui/ |
H A D | Snapshot.h | 171 * Current viewport. 173 Rect viewport; member in class:android::uirenderer::Snapshot
|
H A D | Snapshot.cpp | 46 viewport(s->viewport), height(s->height), alpha(s->alpha) {
|
H A D | OpenGLRenderer.cpp | 189 mFirstSnapshot->viewport.set(0, 0, width, height); 373 glViewport(0, 0, snapshot->viewport.getWidth(), snapshot->viewport.getHeight()); 395 glViewport(0, 0, snapshot->viewport.getWidth(), snapshot->viewport.getHeight()); 470 info.width = getSnapshot()->viewport.getWidth(); 754 Rect& r = previous->viewport; 805 if (!bounds.intersect(mSnapshot->previous->viewport)) { 854 mSnapshot->viewport.set(0.0f, 0.0f, bounds.getWidth(), bounds.getHeight()); 875 * - Change viewport, cli [all...] |
H A D | OpenGLRenderer.h | 365 int getViewportWidth() { return getSnapshot()->viewport.getWidth(); } 366 int getViewportHeight() { return getSnapshot()->viewport.getHeight(); } 453 * initial OpenGL state (viewport, clearing the buffer, etc.)
|
/frameworks/native/include/private/gui/ |
H A D | LayerState.h | 119 Rect viewport; member in struct:android::DisplayState
|
/frameworks/base/services/java/com/android/server/input/ |
H A D | InputManagerService.java | 346 private void setDisplayViewport(boolean external, DisplayViewport viewport) { argument 348 viewport.displayId, viewport.orientation, 349 viewport.logicalFrame.left, viewport.logicalFrame.top, 350 viewport.logicalFrame.right, viewport.logicalFrame.bottom, 351 viewport.physicalFrame.left, viewport.physicalFrame.top, 352 viewport [all...] |
/frameworks/base/services/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 168 void setDisplayViewport(bool external, const DisplayViewport& viewport); 310 void NativeInputManager::setDisplayViewport(bool external, const DisplayViewport& viewport) { argument 316 if (v != viewport) { 318 v = viewport; 324 viewport.logicalRight - viewport.logicalLeft, 325 viewport.logicalBottom - viewport.logicalTop, 326 viewport.orientation);
|
/frameworks/base/services/input/ |
H A D | InputReader.cpp | 207 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; 2952 // Convert rotated viewport to natural surface coordinates.
|
H A D | InputReader.h | 246 void setDisplayInfo(bool external, const DisplayViewport& viewport); 1348 // The current viewport. 1349 // The components of the viewport are specified in the display's rotated orientation. 1353 // The width and height are derived from the viewport but are specified 1357 // The orientation may be different from the viewport orientation as it specifies 1358 // the rotation of the surface coordinates required to produce the viewport's
|