Home
last modified time | relevance | path

Searched refs:viewport (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/services/java/com/android/server/display/
DDisplayViewport.java53 public void copyFrom(DisplayViewport viewport) { in copyFrom() argument
54 valid = viewport.valid; in copyFrom()
55 displayId = viewport.displayId; in copyFrom()
56 orientation = viewport.orientation; in copyFrom()
57 logicalFrame.set(viewport.logicalFrame); in copyFrom()
58 physicalFrame.set(viewport.physicalFrame); in copyFrom()
59 deviceWidth = viewport.deviceWidth; in copyFrom()
60 deviceHeight = viewport.deviceHeight; in copyFrom()
DDisplayDevice.java178 public final void populateViewportLocked(DisplayViewport viewport) { in populateViewportLocked() argument
179 viewport.orientation = mCurrentOrientation; in populateViewportLocked()
182 viewport.logicalFrame.set(mCurrentLayerStackRect); in populateViewportLocked()
184 viewport.logicalFrame.setEmpty(); in populateViewportLocked()
188 viewport.physicalFrame.set(mCurrentDisplayRect); in populateViewportLocked()
190 viewport.physicalFrame.setEmpty(); in populateViewportLocked()
196 viewport.deviceWidth = isRotated ? info.height : info.width; in populateViewportLocked()
197 viewport.deviceHeight = isRotated ? info.width : info.height; in populateViewportLocked()
DDisplayManagerService.java845 private static void setViewportLocked(DisplayViewport viewport, in setViewportLocked() argument
847 viewport.valid = true; in setViewportLocked()
848 viewport.displayId = display.getDisplayIdLocked(); in setViewportLocked()
849 device.populateViewportLocked(viewport); in setViewportLocked()
/frameworks/base/docs/html/guide/webapps/
Dtargeting.jd8 <li>You can target your web page for different screens using viewport metadata, CSS, and
18 <li><a href="#ViewportSize">Defining the viewport size</a></li>
19 <li><a href="#ViewportScale">Defining the viewport scale</a></li>
20 <li><a href="#ViewportDensity">Defining the viewport target density</a></li>
40 controlling the viewport size and screen densities.</p>
46 <dt>The size of the viewport and scale of the web page</dt>
49 this behavior for your web page by defining the default dimensions of the viewport or the initial
50 scale of the viewport. You can also control how much the user can zoom in and out of your web
53 should instead customize the viewport size and/or scale as appropriate for your page.</p>
69 screen densities, you should control how scaling occurs by providing viewport metadata about
[all …]
Dbest-practices.jd56 <li>Use viewport meta data to properly resize your web page
58 want the browser's viewport to render your web page. For example, your viewport meta data can
59 specify the height and width for the browser's viewport, the initial web page scale and even the
63 &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"&gt;
65 <p>For more information about how to use viewport meta data for Android-powered devices, read <a
Doverview.jd19 <li>Support for viewport properties that allow you to properly size your web application
44 viewport properties and query the screen density in order to modify styles
47 {@link android.webkit.WebView} support the same viewport and screen density features.</p>
/frameworks/native/opengl/libs/GLES_trace/src/
Dgltrace_context.cpp175 int viewport[4] = {}; in getCompressedFB() local
176 hooks->gl.glGetIntegerv(GL_VIEWPORT, viewport); in getCompressedFB()
177 unsigned fbContentsSize = viewport[2] * viewport[3] * 4; in getCompressedFB()
193 hooks->gl.glReadPixels(viewport[0], viewport[1], viewport[2], viewport[3], in getCompressedFB()
203 *fbwidth = viewport[2]; in getCompressedFB()
204 *fbheight = viewport[3]; in getCompressedFB()
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp360 Rect viewport(newViewport); in setProjection() local
375 if (viewport.isEmpty()) { in setProjection()
380 viewport = Rect(w, h); in setProjection()
384 swap(viewport.right, viewport.bottom); in setProjection()
391 float src_width = viewport.width(); in setProjection()
392 float src_height = viewport.height(); in setProjection()
401 float src_x = viewport.left; in setProjection()
402 float src_y = viewport.top; in setProjection()
417 mScissor = mGlobalTransform.transform(viewport); in setProjection()
423 mViewport = viewport; in setProjection()
DDisplayDevice.h108 void setProjection(int orientation, const Rect& viewport, const Rect& frame);
DSurfaceFlinger.cpp1144 || (state.viewport != draw[i].viewport) in handleTransactionLocked()
1148 state.viewport, state.frame); in handleTransactionLocked()
1190 state.viewport, state.frame); in handleTransactionLocked()
1831 if (disp.viewport != s.viewport) { in setDisplayStateLocked()
1832 disp.viewport = s.viewport; in setDisplayStateLocked()
2028 d.viewport.makeInvalid(); in onInitializeDisplays()
3002 viewport.makeInvalid(); in DisplayDeviceState()
DSurfaceFlinger.h153 Rect viewport; member
/frameworks/native/opengl/libagl/
Dmatrix.cpp643 c->viewport.surfaceport.x = x; in ogles_surfaceport()
644 c->viewport.surfaceport.y = y; in ogles_surfaceport()
647 c->viewport.x, in ogles_surfaceport()
648 c->viewport.y, in ogles_surfaceport()
649 c->viewport.w, in ogles_surfaceport()
650 c->viewport.h); in ogles_surfaceport()
653 c->viewport.scissor.x, in ogles_surfaceport()
654 c->viewport.scissor.y, in ogles_surfaceport()
655 c->viewport.scissor.w, in ogles_surfaceport()
656 c->viewport.scissor.h); in ogles_surfaceport()
[all …]
Dcontext.h618 viewport_t viewport; member
/frameworks/native/libs/gui/
DLayerState.cpp82 output.write(viewport); in write()
93 input.read(viewport); in read()
DSurfaceComposerClient.cpp413 s.viewport = layerStackRect; in setDisplayProjection()
/frameworks/base/docs/html/training/gestures/
Dscale.jd202 <pre>// The current viewport. This rectangle represents the currently visible
218 // Scrolling uses math based on the viewport (as opposed to math using pixels).
220 // Pixel offset is the offset in screen pixels, while viewport offset is the
221 // offset within the current viewport.
227 // Updates the viewport, refreshes the display.
236 scrolls the viewport in response to the touch gesture:</p>
240 * Sets the current viewport (defined by mCurrentViewport) to the given
246 * Constrains within the scroll range. The scroll range is simply the viewport
247 * extremes (AXIS_X_MAX, etc.) minus the viewport size. For example, if the
248 * extremes were 0 and 10, and the viewport size was 2, the scroll range would
[all …]
Dscroll.jd89 <p><strong>Scrolling</strong> is the general process of moving the viewport (that is, the 'window'
102 want to keep scrolling (moving the viewport), but decelerate until the viewport stops moving.
147 <pre>// The current viewport. This rectangle represents the currently visible
148 // chart domain and range. The viewport is the part of the app that the
184 // Flings use math in pixels (as opposed to math based on the viewport).
/frameworks/base/services/java/com/android/server/input/
DInputManagerService.java345 private void setDisplayViewport(boolean external, DisplayViewport viewport) { in setDisplayViewport() argument
347 viewport.displayId, viewport.orientation, in setDisplayViewport()
348 viewport.logicalFrame.left, viewport.logicalFrame.top, in setDisplayViewport()
349 viewport.logicalFrame.right, viewport.logicalFrame.bottom, in setDisplayViewport()
350 viewport.physicalFrame.left, viewport.physicalFrame.top, in setDisplayViewport()
351 viewport.physicalFrame.right, viewport.physicalFrame.bottom, in setDisplayViewport()
352 viewport.deviceWidth, viewport.deviceHeight); in setDisplayViewport()
/frameworks/base/libs/hwui/
DSnapshot.cpp46 viewport(s->viewport), height(s->height), alpha(s->alpha) { in Snapshot()
DSnapshot.h173 Rect viewport; variable
DOpenGLRenderer.cpp179 mFirstSnapshot->viewport.set(0, 0, width, height); in initViewport()
357 glViewport(0, 0, snapshot->viewport.getWidth(), snapshot->viewport.getHeight()); in resume()
378 glViewport(0, 0, snapshot->viewport.getWidth(), snapshot->viewport.getHeight()); in resumeAfterLayer()
458 info.width = getSnapshot()->viewport.getWidth(); in callDrawGLFunction()
683 Rect& r = previous->viewport; in restoreSnapshot()
734 if (!bounds.intersect(mSnapshot->previous->viewport)) { in calculateLayerBoundsAndClip()
915 mSnapshot->viewport.set(0.0f, 0.0f, bounds.getWidth(), bounds.getHeight()); in createFboLayer()
/frameworks/native/include/private/gui/
DLayerState.h119 Rect viewport; member
/frameworks/base/services/jni/
Dcom_android_server_input_InputManagerService.cpp167 void setDisplayViewport(bool external, const DisplayViewport& viewport);
308 void NativeInputManager::setDisplayViewport(bool external, const DisplayViewport& viewport) { in setDisplayViewport() argument
314 if (v != viewport) { in setDisplayViewport()
316 v = viewport; in setDisplayViewport()
322 viewport.logicalRight - viewport.logicalLeft, in setDisplayViewport()
323 viewport.logicalBottom - viewport.logicalTop, in setDisplayViewport()
324 viewport.orientation); in setDisplayViewport()
/frameworks/base/services/input/
DInputReader.cpp207 const DisplayViewport& viewport = external ? mExternalDisplay : mInternalDisplay; in getDisplayInfo() local
208 if (viewport.displayId >= 0) { in getDisplayInfo()
209 *outViewport = viewport; in getDisplayInfo()
215 void InputReaderConfiguration::setDisplayInfo(bool external, const DisplayViewport& viewport) { in setDisplayInfo() argument
217 v = viewport; in setDisplayInfo()
DInputReader.h246 void setDisplayInfo(bool external, const DisplayViewport& viewport);

12