Searched refs:tx (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/graphics/java/android/renderscript/
H A DAllocationAdapter.java105 int tx = mAdaptedAllocation.mType.getX();
110 if ((tx==1) && (ty == 1) && (tz == 1)) {
114 if (tx > 1) tx >>= 1;
119 mCurrentDimX = tx;
/frameworks/native/services/surfaceflinger/
H A DTransform.h69 float tx() const;
74 void set(float tx, float ty);
H A DTransform.cpp94 float Transform::tx() const { function in class:android::Transform
111 void Transform::set(float tx, float ty) argument
113 mMatrix[2][0] = tx;
117 if (isZero(tx) && isZero(ty)) {
238 int xpos = floorf(tx() + 0.5f);
H A DLayer.cpp825 if (mCurrentState.transform.tx() == x && mCurrentState.transform.ty() == y)
1188 s.layerStack, s.z, s.transform.tx(), s.transform.ty(), s.active.w, s.active.h,
/frameworks/rs/
H A DrsType.cpp88 uint32_t tx = mHal.state.dimX; local
93 mHal.state.lodDimX[lod] = tx;
96 mCellCount += tx * rsMax(ty, 1u) * rsMax(tz, 1u);
97 if (tx > 1) tx >>= 1;
/frameworks/base/core/java/android/widget/
H A DScroller.java121 float x, tx, coef;
125 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
126 if (Math.abs(tx - alpha) < 1E-5) break;
127 if (tx > alpha) x_max = x;
H A DOverScroller.java611 float x, tx, coef;
615 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
616 if (Math.abs(tx - alpha) < 1E-5) break;
617 if (tx > alpha) x_max = x;
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageRenderer.java444 for (int tx = r.left, j = 0; tx < r.right; tx += size, j++) {
446 drawTile(canvas, tx, ty, level, x, y, length);
597 int tx, int ty, int level, float x, float y, float length) {
603 Tile tile = getTile(tx, ty, level);
626 source.set(tx * scaleX, ty * scaleY, (tx + size) * scaleX,
596 drawTile(GLCanvas canvas, int tx, int ty, int level, float x, float y, float length) argument
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DGlowPadView.java857 // tx and ty are relative to wave center
858 float tx = eventX - mWaveCenterX;
860 float touchRadius = (float) Math.sqrt(dist2(tx, ty));
862 float limitX = tx * scale;
864 double angleRad = Math.atan2(-ty, tx);
887 if (angleMatches && (dist2(tx, ty) > snapDistance2)) {
983 final float tx = x - mWaveCenterX;
985 if (mAlwaysTrackFinger || dist2(tx,ty) <= getScaledGlowRadiusSquared()) {
988 updateGlowPosition(tx, ty);
H A DMultiWaveView.java832 // tx and ty are relative to wave center
833 float tx = eventX - mWaveCenterX;
835 float touchRadius = (float) Math.sqrt(dist2(tx, ty));
837 float limitX = tx * scale;
839 double angleRad = Math.atan2(-ty, tx);
860 if (angleMatches && (dist2(tx, ty) > snapDistance2)) {
954 final float tx = x - mWaveCenterX;
956 if (mAlwaysTrackFinger || dist2(tx,ty) <= getScaledTapRadiusSquared()) {
959 moveHandleTo(tx, ty, false);
/frameworks/base/core/jni/
H A Dandroid_view_GLES20DisplayList.cpp103 jobject clazz, DisplayList* displayList, float tx) {
104 displayList->setTranslationX(tx);
102 android_view_GLES20DisplayList_setTranslationX(JNIEnv* env, jobject clazz, DisplayList* displayList, float tx) argument
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
H A DBandwidthTest.java262 int tx = BandwidthTestUtil.parseIntValueFromFile(snd_stat);
265 NetworkStats.TAG_NONE, rx, 0, tx, 0, 0);
331 results.putLong(label + "tx", totalStats.txBytes);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DMatrix_Delegate.java599 float tx, sx = dst.width() / src.width();
612 tx = dst.left - src.left * sx;
628 tx += diff;
636 d.mValues[2] = tx;
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java852 * @param tx how many pixels to translate horizontally
857 private boolean translate(float tx, float ty) { argument
870 Math.min(maxRight - mTranslateRect.left, tx));
876 translateX = Math.max(maxRight - r, Math.min(maxLeft - l, tx));
904 return (translateX == tx) && (translateY == ty);
/frameworks/native/libs/gui/
H A DGLConsumer.cpp800 float tx = 0.0f, ty = 0.0f, sx = 1.0f, sy = 1.0f; local
833 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth;
848 tx, ty, 0, 1,
/frameworks/base/libs/hwui/
H A DDisplayListOp.h1022 const float tx = (int) floorf(state->mMatrix.getTranslateX() + local
1031 opVertices->position[0] + tx, opVertices->position[1] + ty,
1040 renderer.dirtyLayer(tx, ty,
1041 tx + patchOp->mLocalBounds.getWidth(),
1047 const float x = tx + quadBounds.left;
H A DOpenGLRenderer.cpp3106 int tx = (int) floorf(x + currentTransform().getTranslateX() + 0.5f); local
3110 setupDrawModelViewTranslate(tx, ty,
3111 tx + layer->layer.getWidth(), ty + layer->layer.getHeight(), true);
/frameworks/rs/driver/
H A DrsdAllocation.cpp321 uint32_t tx = alloc->mHal.drvState.lod[0].dimX; local
325 alloc->mHal.drvState.lod[lod].dimX = tx;
329 rsRound(tx * type->getElementSizeBytes(), 16);
332 if (tx > 1) tx >>= 1;
/frameworks/base/opengl/java/android/opengl/
H A DMatrix.java288 final float tx = -(right + left) * r_width;
294 m[mOffset +12] = tx;
/frameworks/native/opengl/libagl/
H A Dmatrix.cpp871 const GLfloat tx = -(right + left) * r_width; local
878 f[12] = tx;
/frameworks/wilhelm/tests/sandbox/
H A Dxaplay.c720 printf(" tx = %u\n", timedTextStreamInformation.tx);
/frameworks/base/core/java/android/view/
H A DViewGroup.java1144 final float tx = event.mX;
1251 event.mX = tx;
1287 event.mX = tx;
H A DView.java3529 float tx = 0;
3603 tx = a.getDimensionPixelOffset(attr, 0);
3949 setTranslationX(tx);
/frameworks/wilhelm/include/OMXAL/
H A DOpenMAXAL.h3120 XAuint16 tx; member in struct:XATimedTextStreamInformation_

Completed in 7931 milliseconds