/frameworks/base/core/java/android/hardware/display/ |
D | DisplayViewport.java | 55 public void copyFrom(DisplayViewport viewport) { in copyFrom() argument 56 valid = viewport.valid; in copyFrom() 57 displayId = viewport.displayId; in copyFrom() 58 orientation = viewport.orientation; in copyFrom() 59 logicalFrame.set(viewport.logicalFrame); in copyFrom() 60 physicalFrame.set(viewport.physicalFrame); in copyFrom() 61 deviceWidth = viewport.deviceWidth; in copyFrom() 62 deviceHeight = viewport.deviceHeight; in copyFrom()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDevice.java | 192 public final void populateViewportLocked(DisplayViewport viewport) { in populateViewportLocked() argument 193 viewport.orientation = mCurrentOrientation; in populateViewportLocked() 196 viewport.logicalFrame.set(mCurrentLayerStackRect); in populateViewportLocked() 198 viewport.logicalFrame.setEmpty(); in populateViewportLocked() 202 viewport.physicalFrame.set(mCurrentDisplayRect); in populateViewportLocked() 204 viewport.physicalFrame.setEmpty(); in populateViewportLocked() 210 viewport.deviceWidth = isRotated ? info.height : info.width; in populateViewportLocked() 211 viewport.deviceHeight = isRotated ? info.width : info.height; in populateViewportLocked()
|
D | DisplayManagerService.java | 878 private static void setViewportLocked(DisplayViewport viewport, in setViewportLocked() argument 880 viewport.valid = true; in setViewportLocked() 881 viewport.displayId = display.getDisplayIdLocked(); in setViewportLocked() 882 device.populateViewportLocked(viewport); in setViewportLocked()
|
/frameworks/base/docs/html/guide/webapps/ |
D | targeting.jd | 10 <li><a href="#ViewportSize">Defining the viewport size</a></li> 11 <li><a href="#ViewportScale">Defining the viewport scale</a></li> 12 <li><a href="#ViewportDensity">Defining the viewport target density</a></li> 42 <dt><a href="#Viewport">The viewport</a></dt> 43 <dd>The viewport is the rectangular area that provides a drawable region for your web page. 44 You can specify several viewport properties, such as its size and initial scale. Most important 65 <p>The viewport is the area in which your web page is drawn. Although the viewport's total visible 66 area matches the size of the screen when zoomed all the way out, the viewport has its own pixel 69 of 480 pixels, the viewport can have a width of 800 pixels. This allows a web page designed at 800 70 pixels wide to be completely visible on the screen when the viewport scale is 1.0. Most web browser… [all …]
|
D | best-practices.jd | 74 <li>Use viewport meta data to properly resize your web page 76 want the browser's viewport to render your web page. For example, your viewport meta data can 77 specify the height and width for the browser's viewport, the initial web page scale and even the 81 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> 83 <p>For more information about how to use viewport meta data for Android-powered devices, read <a
|
D | migrating.jd | 16 <li><a href="#MultiViewport">Multiple viewport tags not supported</a></li> 220 <p>Previously, {@link android.webkit.WebView} supported a viewport property called 230 <p>Previously, if you set your viewport width to a value less than or equal to "320" 231 it would be set to "device-width", and if you set the viewport height to a value less than or 237 <h3 id="MultiViewport">Multiple viewport tags not supported</h3> 239 <p>Previously, if you included multiple viewport tags in a web page, {@link android.webkit.WebView} 241 In the new {@link android.webkit.WebView}, only the last viewport is 250 the appropriate viewport in the web page.</p> 256 <p>For information about how to define the viewport properties in your HTML, read 260 <p>If you cannot set the width of the viewport in the HTML, then you should call [all …]
|
D | index.jd | 19 allow you to specify viewport and style properties that make your web pages appear at the proper
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
D | gltrace_context.cpp | 208 int viewport[4] = {}; in getCompressedFB() local 209 hooks->gl.glGetIntegerv(GL_VIEWPORT, viewport); in getCompressedFB() 210 unsigned fbContentsSize = viewport[2] * viewport[3] * 4; in getCompressedFB() 226 hooks->gl.glReadPixels(viewport[0], viewport[1], viewport[2], viewport[3], in getCompressedFB() 236 *fbwidth = viewport[2]; in getCompressedFB() 237 *fbheight = viewport[3]; in getCompressedFB()
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.cpp | 426 Rect viewport(newViewport); in setProjection() local 441 if (viewport.isEmpty()) { in setProjection() 446 viewport = Rect(w, h); in setProjection() 450 swap(viewport.right, viewport.bottom); in setProjection() 457 float src_width = viewport.width(); in setProjection() 458 float src_height = viewport.height(); in setProjection() 467 float src_x = viewport.left; in setProjection() 468 float src_y = viewport.top; in setProjection() 483 mScissor = mGlobalTransform.transform(viewport); in setProjection() 489 mViewport = viewport; in setProjection()
|
D | DisplayDevice.h | 114 void setProjection(int orientation, const Rect& viewport, const Rect& frame);
|
D | SurfaceFlinger.cpp | 1312 || (state.viewport != draw[i].viewport) in handleTransactionLocked() 1316 state.viewport, state.frame); in handleTransactionLocked() 1390 state.viewport, state.frame); in handleTransactionLocked() 2094 if (disp.viewport != s.viewport) { in setDisplayStateLocked() 2095 disp.viewport = s.viewport; in setDisplayStateLocked() 2294 d.viewport.makeInvalid(); in onInitializeDisplays() 3373 viewport.makeInvalid(); in DisplayDeviceState()
|
D | SurfaceFlinger.h | 170 Rect viewport; member
|
/frameworks/native/opengl/libagl/ |
D | matrix.cpp | 643 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 …]
|
D | context.h | 622 viewport_t viewport; member
|
/frameworks/base/docs/html/training/gestures/ |
D | scale.jd | 202 <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 …]
|
D | scroll.jd | 89 <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/native/libs/gui/ |
D | LayerState.cpp | 86 output.write(viewport); in write() 99 input.read(viewport); in read()
|
D | SurfaceComposerClient.cpp | 424 s.viewport = layerStackRect; in setDisplayProjection()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 368 private void setDisplayViewport(boolean external, DisplayViewport viewport) { in setDisplayViewport() argument 370 viewport.displayId, viewport.orientation, in setDisplayViewport() 371 viewport.logicalFrame.left, viewport.logicalFrame.top, in setDisplayViewport() 372 viewport.logicalFrame.right, viewport.logicalFrame.bottom, in setDisplayViewport() 373 viewport.physicalFrame.left, viewport.physicalFrame.top, in setDisplayViewport() 374 viewport.physicalFrame.right, viewport.physicalFrame.bottom, in setDisplayViewport() 375 viewport.deviceWidth, viewport.deviceHeight); in setDisplayViewport()
|
/frameworks/native/include/private/gui/ |
D | LayerState.h | 125 Rect viewport; member
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 180 void setDisplayViewport(bool external, const DisplayViewport& viewport); 325 void NativeInputManager::setDisplayViewport(bool external, const DisplayViewport& viewport) { in setDisplayViewport() argument 331 if (v != viewport) { in setDisplayViewport() 333 v = viewport; in setDisplayViewport() 339 viewport.logicalRight - viewport.logicalLeft, in setDisplayViewport() 340 viewport.logicalBottom - viewport.logicalTop, in setDisplayViewport() 341 viewport.orientation); in setDisplayViewport()
|
/frameworks/native/services/inputflinger/ |
D | InputReader.cpp | 207 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()
|
D | InputReader.h | 250 void setDisplayInfo(bool external, const DisplayViewport& viewport);
|
/frameworks/base/docs/html/about/versions/ |
D | android-3.0-highlights.jd | 134 …er browsing experience at non-mobile sites through an improved zoom and viewport model, overflow s…
|