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

12

/frameworks/base/core/java/android/hardware/display/
H A DDisplayViewport.java33 // True if this viewport is valid.
59 public void copyFrom(DisplayViewport viewport) { argument
60 valid = viewport.valid;
61 displayId = viewport.displayId;
62 orientation = viewport.orientation;
63 logicalFrame.set(viewport.logicalFrame);
64 physicalFrame.set(viewport.physicalFrame);
65 deviceWidth = viewport.deviceWidth;
66 deviceHeight = viewport.deviceHeight;
67 uniqueId = viewport
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_display_DisplayViewport.cpp55 DisplayViewport* viewport) {
56 viewport->displayId = env->GetIntField(viewportObj, gDisplayViewportClassInfo.displayId);
57 viewport->orientation = env->GetIntField(viewportObj, gDisplayViewportClassInfo.orientation);
58 viewport->deviceWidth = env->GetIntField(viewportObj, gDisplayViewportClassInfo.deviceWidth);
59 viewport->deviceHeight = env->GetIntField(viewportObj, gDisplayViewportClassInfo.deviceHeight);
64 viewport->uniqueId.setTo(ScopedUtfChars(env, uniqueId).c_str());
69 viewport->logicalLeft = env->GetIntField(logicalFrameObj, gRectClassInfo.left);
70 viewport->logicalTop = env->GetIntField(logicalFrameObj, gRectClassInfo.top);
71 viewport->logicalRight = env->GetIntField(logicalFrameObj, gRectClassInfo.right);
72 viewport
54 android_hardware_display_DisplayViewport_toNative(JNIEnv* env, jobject viewportObj, DisplayViewport* viewport) argument
[all...]
H A Dandroid_hardware_display_DisplayViewport.h30 DisplayViewport* viewport);
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDevice.java204 * Populates the specified viewport object with orientation,
207 public final void populateViewportLocked(DisplayViewport viewport) { argument
208 viewport.orientation = mCurrentOrientation;
211 viewport.logicalFrame.set(mCurrentLayerStackRect);
213 viewport.logicalFrame.setEmpty();
217 viewport.physicalFrame.set(mCurrentDisplayRect);
219 viewport.physicalFrame.setEmpty();
225 viewport.deviceWidth = isRotated ? info.height : info.width;
226 viewport.deviceHeight = isRotated ? info.width : info.height;
H A DDisplayManagerService.java262 // Temporary viewports, used when sending new viewport information to the
1260 final DisplayViewport viewport = getVirtualTouchViewportLocked(info.uniqueId);
1261 setViewportLocked(viewport, display, device);
1265 /** Gets the virtual device viewport or creates it if not yet created. */
1267 DisplayViewport viewport;
1270 viewport = mVirtualTouchViewports.get(i);
1271 if (uniqueId.equals(viewport.uniqueId)) {
1272 return viewport;
1276 viewport = new DisplayViewport();
1277 viewport
1282 setViewportLocked(DisplayViewport viewport, LogicalDisplay display, DisplayDevice device) argument
[all...]
/frameworks/native/services/surfaceflinger/
H A DColorLayer.cpp66 const auto& viewport = displayDevice->getViewport(); local
67 Region visible = tr.transform(visibleRegion.intersect(viewport));
H A DDisplayDevice.cpp562 Rect viewport(newViewport);
577 if (viewport.isEmpty()) {
578 // viewport can be invalid if it has never been set, in that case
580 // it's also invalid to have an empty viewport, so we handle that
582 viewport = Rect(w, h);
584 // viewport is always specified in the logical orientation
586 swap(viewport.right, viewport.bottom);
593 float src_width = viewport.width();
594 float src_height = viewport
[all...]
H A DDisplayDevice.h123 void setProjection(int orientation, const Rect& viewport, const Rect& frame);
328 Rect viewport; member in struct:android::DisplayDeviceState
H A DSurfaceInterceptor.cpp129 display.viewport, display.frame);
394 addDisplayProjectionLocked(transaction, displayId, state.orientation, state.viewport,
489 int32_t displayId, int32_t orientation, const Rect& viewport, const Rect& frame)
495 setProtoRectLocked(viewportRect, viewport);
488 addDisplayProjectionLocked(Transaction* transaction, int32_t displayId, int32_t orientation, const Rect& viewport, const Rect& frame) argument
H A DSurfaceInterceptor.h166 int32_t orientation, const Rect& viewport, const Rect& frame);
H A DBufferLayer.cpp619 // Apply this display's projection's viewport to the visible region
622 const auto& viewport = displayDevice->getViewport(); local
623 Region visible = tr.transform(visibleRegion.intersect(viewport));
H A DSurfaceFlinger.cpp2344 hw->setProjection(state.orientation, state.viewport, state.frame);
2405 (state.viewport != draw[i].viewport) || (state.frame != draw[i].frame)) {
2406 disp->setProjection(state.orientation, state.viewport, state.frame);
3311 if (disp.viewport != s.viewport) {
3312 disp.viewport = s.viewport;
3669 d.viewport.makeInvalid();
5014 // set-up our viewport
[all...]
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/
H A Dtrace_creator.py274 print("Enter rectangle for viewport")
275 change.projection.viewport.left, \
276 change.projection.viewport.top, \
277 change.projection.viewport.right,\
278 change.projection.viewport.bottom = rectangle()
/frameworks/native/libs/gui/
H A DLayerState.cpp107 viewport(Rect::EMPTY_RECT),
119 output.write(viewport);
132 input.read(viewport);
151 viewport = other.viewport;
/frameworks/native/opengl/libagl/
H A Dmatrix.cpp131 // Validate the viewport transformation
514 // premultiply it with the viewport transformation. In addition to
632 c->viewport.surfaceport.x = x;
633 c->viewport.surfaceport.y = y;
636 c->viewport.x,
637 c->viewport.y,
638 c->viewport.w,
639 c->viewport.h);
642 c->viewport.scissor.x,
643 c->viewport
[all...]
H A Dcontext.h502 // viewport transformation
623 viewport_t viewport; member in struct:android::gl::ogles_context_t
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMagnificationController.java314 * Returns the X offset of the magnification viewport. If an animation
326 * magnification viewport.
338 * Returns the Y offset of the magnification viewport. If an animation
349 * magnification viewport.
445 final Rect viewport = mTempRect;
446 mMagnificationRegion.getBounds(viewport);
450 = (viewport.width() / 2.0f - spec.offsetX + viewport.left) / oldScale;
452 = (viewport.height() / 2.0f - spec.offsetY + viewport
[all...]
/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java433 private void setDisplayViewport(int viewportType, DisplayViewport viewport) { argument
435 viewport.displayId, viewport.orientation,
436 viewport.logicalFrame.left, viewport.logicalFrame.top,
437 viewport.logicalFrame.right, viewport.logicalFrame.bottom,
438 viewport.physicalFrame.left, viewport.physicalFrame.top,
439 viewport
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputManagerService.cpp207 void setDisplayViewport(int32_t viewportType, const DisplayViewport& viewport);
398 DisplayViewport viewport; local
399 android_hardware_display_DisplayViewport_toNative(env, viewportObj, &viewport);
400 ALOGI("Viewport [%d] to add: %s", (int) length, viewport.uniqueId.c_str());
401 viewports.push(viewport);
416 void NativeInputManager::setDisplayViewport(int32_t type, const DisplayViewport& viewport) { argument
429 if (v != NULL && *v != viewport) {
431 *v = viewport;
437 viewport.logicalRight - viewport
[all...]
/frameworks/native/include/gui/
H A DLayerState.h156 Rect viewport; member in struct:android::DisplayState
/frameworks/native/libs/gui/include/gui/
H A DLayerState.h156 Rect viewport; member in struct:android::DisplayState
/frameworks/native/cmds/surfacereplayer/replayer/
H A DReplayer.cpp597 Rect viewport = Rect(pc.viewport().left(), pc.viewport().top(), pc.viewport().right(),
598 pc.viewport().bottom());
601 t.setDisplayProjection(mDisplays[id], pc.orientation(), viewport, frame);
/frameworks/native/services/inputflinger/
H A DInputReader.cpp261 const DisplayViewport* viewport = NULL; local
265 viewport = &currentViewport;
270 viewport = &mExternalDisplay;
272 viewport = &mInternalDisplay;
275 if (viewport != NULL && viewport->displayId >= 0) {
276 *outViewport = *viewport;
283 const DisplayViewport& viewport) {
285 mExternalDisplay = viewport;
287 mInternalDisplay = viewport;
282 setPhysicalDisplayViewport(ViewportType viewportType, const DisplayViewport& viewport) argument
[all...]
H A DInputReader.h205 void setPhysicalDisplayViewport(ViewportType viewportType, const DisplayViewport& viewport);
210 void dumpViewport(std::string& dump, const DisplayViewport& viewport) const;
1511 // The current viewport.
1512 // The components of the viewport are specified in the display's rotated orientation.
1516 // The width and height are derived from the viewport but are specified
1520 // The orientation may be different from the viewport orientation as it specifies
1521 // the rotation of the surface coordinates required to produce the viewport's
/frameworks/native/services/surfaceflinger/tests/unittests/
H A DDisplayTransactionTest.cpp1657 // There is a change to the viewport state
1658 display.mutableDrawingDisplayState().viewport = oldViewport;
1659 display.mutableCurrentDisplayState().viewport = newViewport;
1685 // There is a change to the viewport state
1720 // There is a change to the viewport state
1761 // There is a change to the viewport state
2033 display.mutableCurrentDisplayState().viewport = initialViewport;
2041 state.viewport = initialViewport;
2058 EXPECT_EQ(initialViewport, display.getCurrentDisplayState().viewport);
2145 // The current display state does not have a viewport
[all...]

Completed in 328 milliseconds

12