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

/frameworks/base/rs/java/android/renderscript/
H A DAllocationAdapter.java100 int tx = mAdaptedAllocation.mType.getX();
105 if ((tx==1) && (ty == 1) && (tz == 1)) {
109 if (tx > 1) tx >>= 1;
114 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.cpp970 if (mCurrentState.transform.tx() == x && mCurrentState.transform.ty() == y)
1362 s.layerStack, s.z, s.transform.tx(), s.transform.ty(), s.active.w, s.active.h,
/frameworks/rs/
H A DrsType.cpp99 uint32_t tx = mHal.state.dimX; local
105 mHal.state.lodDimX[lod] = tx;
108 mCellCount += tx * rsMax(ty, 1u) * rsMax(tz, 1u);
109 if (tx > 1) tx >>= 1;
/frameworks/base/core/java/android/widget/
H A DScroller.java122 float x, tx, coef;
126 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
127 if (Math.abs(tx - alpha) < 1E-5) break;
128 if (tx > alpha) x_max = x;
H A DOverScroller.java612 float x, tx, coef;
616 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
617 if (Math.abs(tx - alpha) < 1E-5) break;
618 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.java863 // tx and ty are relative to wave center
864 float tx = eventX - mWaveCenterX;
866 float touchRadius = (float) Math.sqrt(dist2(tx, ty));
868 float limitX = tx * scale;
870 double angleRad = Math.atan2(-ty, tx);
893 if (angleMatches && (dist2(tx, ty) > snapDistance2)) {
989 final float tx = x - mWaveCenterX;
991 if (mAlwaysTrackFinger || dist2(tx,ty) <= getScaledGlowRadiusSquared()) {
994 updateGlowPosition(tx, ty);
/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.java544 float tx, sx = dst.width() / src.width();
557 tx = dst.left - src.left * sx;
573 tx += diff;
581 d.mValues[2] = tx;
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java967 * @param tx how many pixels to translate horizontally
972 private int translate(float tx, float ty) { argument
985 Math.min(maxRight - mTranslateRect.left, tx));
991 translateX = Math.max(maxRight - r, Math.min(maxLeft - l, tx));
1019 boolean didTranslateX = translateX == tx;
/frameworks/base/core/jni/
H A Dandroid_view_RenderNode.cpp217 jobject clazz, jlong renderNodePtr, float tx) {
218 return SET_AND_DIRTY(setTranslationX, tx, RenderNode::TRANSLATION_X | RenderNode::X);
216 android_view_RenderNode_setTranslationX(JNIEnv* env, jobject clazz, jlong renderNodePtr, float tx) argument
/frameworks/native/libs/gui/
H A DGLConsumer.cpp787 float tx = 0.0f, ty = 0.0f, sx = 1.0f, sy = 1.0f; local
820 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth;
835 tx, ty, 0, 1,
/frameworks/base/libs/hwui/
H A DDisplayListOp.h902 const float tx = (int) floorf(state->mMatrix.getTranslateX() + local
911 opVertices->x + tx, opVertices->y + ty,
920 renderer.dirtyLayer(tx, ty,
921 tx + patchOp->mLocalBounds.getWidth(),
927 const float x = tx + quadBounds.left;
H A DOpenGLRenderer.cpp2938 int tx = (int) floorf(x + currentTransform()->getTranslateX() + 0.5f); local
2942 setupDrawModelView(kModelViewMode_Translate, false, tx, ty,
2943 tx + layer->layer.getWidth(), ty + layer->layer.getHeight(), true);
/frameworks/rs/driver/
H A DrsdAllocation.cpp327 uint32_t tx = alloc->mHal.drvState.lod[0].dimX; local
331 alloc->mHal.drvState.lod[lod].dimX = tx;
335 rsRound(tx * type->getElementSizeBytes(), 16);
338 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.java1231 final float tx = event.mX;
1338 event.mX = tx;
1374 event.mX = tx;
H A DView.java3710 float tx = 0;
3786 tx = a.getDimensionPixelOffset(attr, 0);
4178 setTranslationX(tx);
/frameworks/wilhelm/include/OMXAL/
H A DOpenMAXAL.h3120 XAuint16 tx; member in struct:XATimedTextStreamInformation_
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiStateMachine.java1695 int tx = mTxTime - mTxTimeLastReport;
1701 sb.append(String.format("[on:%d tx:%d rx:%d period:%d]", on, tx, rx, period));
2523 sb.append(String.format(" tx=%.1f,", mWifiInfo.txSuccessRate));
2631 sb.append(" tx:").append(mTxTimeThisScan).append(",").append(mTxTimeScan);
2743 sb.append(String.format(" tx=%.1f,", mWifiInfo.txSuccessRate));
7005 // Get Link layer stats so as we get fresh tx packet counters
7111 + " tx=" + String.format("%.2f", mWifiInfo.txSuccessRate)
7323 // Get Link layer stats so as we get fresh tx packet counters

Completed in 775 milliseconds