Home
last modified time | relevance | path

Searched refs:units (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/base/core/java/android/view/
DVelocityTracker.java44 private static native void nativeComputeCurrentVelocity(int ptr, int units, float maxVelocity); in nativeComputeCurrentVelocity() argument
135 public void computeCurrentVelocity(int units) { in computeCurrentVelocity() argument
136 nativeComputeCurrentVelocity(mPtr, units, Float.MAX_VALUE); in computeCurrentVelocity()
152 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument
153 nativeComputeCurrentVelocity(mPtr, units, maxVelocity); in computeCurrentVelocity()
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp51 void computeCurrentVelocity(int32_t units, float maxVelocity);
80 void VelocityTrackerState::computeCurrentVelocity(int32_t units, float maxVelocity) { in computeCurrentVelocity() argument
90 vx = vx * units / 1000; in computeCurrentVelocity()
91 vy = vy * units / 1000; in computeCurrentVelocity()
173 jint ptr, jint units, jfloat maxVelocity) { in android_view_VelocityTracker_nativeComputeCurrentVelocity() argument
175 state->computeCurrentVelocity(units, maxVelocity); in android_view_VelocityTracker_nativeComputeCurrentVelocity()
/frameworks/base/core/java/android/widget/
DRemoteViews.java1397 public TextViewSizeAction(int viewId, int units, float size) { in TextViewSizeAction() argument
1399 this.units = units; in TextViewSizeAction()
1405 units = parcel.readInt(); in TextViewSizeAction()
1412 dest.writeInt(units); in writeToParcel()
1421 target.setTextSize(units, size); in apply()
1428 int units; field in RemoteViews.TextViewSizeAction
1851 public void setTextViewTextSize(int viewId, int units, float size) { in setTextViewTextSize() argument
1852 addAction(new TextViewSizeAction(viewId, units, size)); in setTextViewTextSize()
/frameworks/base/docs/html/training/multiscreen/
Dscreendensities.jd45 by providing different resources and using resolution-independent units of
55 <code>dp</code> or <code>sp</code> units. A <code>dp</code> is a density-independent pixel
/frameworks/native/opengl/tools/glgen/specs/gles11/
DGLES10.spec78 void glPolygonOffset ( GLfloat factor, GLfloat units )
79 void glPolygonOffsetx ( GLfixed factor, GLfixed units )
DGLES11Ext.spec44 void glPolygonOffsetxOES ( GLfixed factor, GLfixed units )
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL10.java778 float units in glPolygonOffset() argument
783 int units in glPolygonOffsetx() argument
/frameworks/base/docs/html/guide/practices/
Dscreens_support.jd39 <li><a href="#dips-pels">Converting dp units to pixel units</a></li>
139 transparently handles any scaling of the dp units, as necessary, based on the actual density of the
140 screen in use. The conversion of dp units to screen pixels is simple:
142 For example, on a 240 dpi screen, 1 dp equals 1.5 physical pixels. You should always use dp units
197 resolution that's defined by the system. These minimum sizes are in "dp" units&mdash;the same units
261 <li>The system scales dp units as appropriate for the current screen density</li>
267 units), so the views are physically larger on a low density screen and smaller on a high density
270 dimensions are specified in density-independent pixels ({@code dp} units). Because the baseline for
277 layout dimension values in density-independent pixels (<code>dp</code> units) or with {@code
664 in dp units.</p>
[all …]
/frameworks/native/opengl/libagl/
Dmatrix.cpp1106 void glPolygonOffsetx(GLfixed factor, GLfixed units) in glPolygonOffsetx() argument
1110 c->polygonOffset.units = units; in glPolygonOffsetx()
1113 void glPolygonOffset(GLfloat factor, GLfloat units) in glPolygonOffset() argument
1117 c->polygonOffset.units = gglFloatToFixed(units); in glPolygonOffset()
Dprimitives.cpp665 const int32_t units = (c->polygonOffset.units << 16); in lerp_triangle() local
672 + uint32_t((maxDepthSlope*factor)>>16) + units; in lerp_triangle()
677 itz[0] += units; in lerp_triangle()
/frameworks/native/opengl/tools/glgen/specs/jsr239/
Dglspec-1.078 void glPolygonOffset ( GLfloat factor, GLfloat units )
79 void glPolygonOffsetx ( GLfixed factor, GLfixed units )
/frameworks/native/opengl/libs/GLES_CM/
Dgl_api.in91 void API_ENTRY(glPolygonOffset)(GLfloat factor, GLfloat units) {
92 CALL_GL_API(glPolygonOffset, factor, units);
352 void API_ENTRY(glPolygonOffsetx)(GLfixed factor, GLfixed units) {
353 CALL_GL_API(glPolygonOffsetx, factor, units);
/frameworks/base/opengl/java/android/opengl/
DGLES10.java1019 float units in glPolygonOffset() argument
1026 int units in glPolygonOffsetx() argument
DGLErrorWrapper.java639 public void glPolygonOffset(float factor, float units) { in glPolygonOffset() argument
641 mgl.glPolygonOffset(factor, units); in glPolygonOffset()
645 public void glPolygonOffsetx(int factor, int units) { in glPolygonOffsetx() argument
647 mgl.glPolygonOffsetx(factor, units); in glPolygonOffsetx()
DGLES11Ext.java621 int units in glPolygonOffsetxOES() argument
/frameworks/base/docs/html/design/style/
Dmetrics-grids.jd35 <p>Touchable UI components are generally laid out along 48dp units.</p>
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java1512 public void computeCurrentVelocity(int units) { in computeCurrentVelocity() argument
1513 computeCurrentVelocity(units, Float.MAX_VALUE); in computeCurrentVelocity()
1516 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument
1538 float vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity()
1543 vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity()
/frameworks/native/opengl/tests/angeles/include/GLES/
Dgl.h550 GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
551 GLAPI void APIENTRY glPolygonOffsetx (GLfixed factor, GLfixed units);
/frameworks/base/docs/html/about/versions/
Dandroid-3.2.jd97 density-independent pixel units (such as 600dp or 720dp wide), rather than
110 measured in density-independent pixel ("dp") units. Of the screen's height or
122 in "dp" units, not including screen areas reserved by the system. The width and
146 examples, measured in "dp" units. </p>
200 the resource should be used, measured in "dp" units. As mentioned above, a
205 width or height on which the resource should be used, measured in "dp" units. As
/frameworks/base/docs/html/training/graphics/opengl/
Dindex.jd38 acceleration of graphics processing units (GPUs) provided on many Android devices.</p>
/frameworks/native/opengl/libs/
Ddebug.in188 …D(glPolygonOffsetx, (GLfixed factor, GLfixed units), (factor, units), 2, "GLfixed", factor, "GLfix…
189 …lPolygonOffsetxOES, (GLfixed factor, GLfixed units), (factor, units), 2, "GLfixed", factor, "GLfix…
/frameworks/base/docs/html/training/tv/
Doptimizing-layouts-tv.jd141 …layout-relative sizing rather than absolute sizing, and density-independent pixel units instead of…
142 …pixel units. For example, to set the width of a widget, use wrap_content instead of a pixel measur…
/frameworks/base/opengl/java/com/google/android/gles_jni/
DGLImpl.java844 float units in glPolygonOffset() argument
851 int units in glPolygonOffsetx() argument
/frameworks/native/opengl/include/GLES/
Dgl.h623 GL_API void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
712 GL_API void GL_APIENTRY glPolygonOffsetx (GLfixed factor, GLfixed units);
/frameworks/base/docs/html/guide/topics/resources/
Dmore-resources.jd216 For example: 10px, 2in, 5sp. The following units of measure are supported by Android:</p>
220 screen. These units are relative to a 160 dpi (dots per inch) screen, on which 1dp is roughly equal
224 but not necessarily in direct proportion. Using dp units (instead of px units) is a simple solution

123