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

12

/frameworks/base/graphics/java/android/renderscript/
H A DAllocationAdapter.java104 int tx = mAdaptedAllocation.mType.getX();
109 if ((tx==1) && (ty == 1) && (tz == 1)) {
113 if (tx > 1) tx >>= 1;
118 mCurrentDimX = tx;
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DAllocationAdapter.java104 int tx = mAdaptedAllocation.mType.getX();
109 if ((tx==1) && (ty == 1) && (tz == 1)) {
113 if (tx > 1) tx >>= 1;
118 mCurrentDimX = tx;
/frameworks/native/services/surfaceflinger/
H A DTransform.h67 float tx() const;
72 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)) {
241 int xpos = floorf(tx() + 0.5f);
H A DLayerBase.cpp115 if (mCurrentState.transform.tx() == x && mCurrentState.transform.ty() == y)
457 s.layerStack, s.z, s.transform.tx(), s.transform.ty(), s.active.w, s.active.h,
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DThrottleServiceTest.java293 public void expectGetInterfaceCounter(long rx, long tx) throws Exception { argument
296 stats.addValues(TEST_IFACE, UID_ALL, SET_DEFAULT, TAG_NONE, rx, 0L, tx, 0L, 0);
305 public void expectSetInterfaceThrottle(int rx, int tx) throws Exception { argument
306 mMockNMService.setInterfaceThrottle(isA(String.class), eq(rx), eq(tx));
/frameworks/rs/
H A DrsType.cpp88 uint32_t tx = mHal.state.dimX; local
93 mHal.state.lodDimX[lod] = tx;
97 offset += tx * rsMax(ty, 1u) * rsMax(tz, 1u) * mElement->getSizeBytes();
98 if (tx > 1) tx >>= 1;
/frameworks/support/renderscript/v8/rs_support/
H A DrsType.cpp88 uint32_t tx = mHal.state.dimX; local
93 mHal.state.lodDimX[lod] = tx;
97 offset += tx * rsMax(ty, 1u) * rsMax(tz, 1u) * mElement->getSizeBytes();
98 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/core/jni/
H A Dandroid_view_GLES20DisplayList.cpp79 jobject clazz, DisplayList* displayList, float tx) {
80 displayList->setTranslationX(tx);
78 android_view_GLES20DisplayList_setTranslationX(JNIEnv* env, jobject clazz, DisplayList* displayList, float tx) 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/tests/bandwidthtests/src/com/android/bandwidthtest/
H A DBandwidthTest.java263 int tx = BandwidthTestUtil.parseIntValueFromFile(snd_stat);
266 NetworkStats.TAG_NONE, rx, 0, tx, 0, 0);
342 results.putLong(label + "tx", entry.txBytes);
/frameworks/base/core/java/android/webkit/
H A DZoomManager.java491 int tx = Math.round(scale * (mInitialScrollX + mZoomCenterX) - mZoomCenterX);
492 tx = -WebViewClassic.pinLoc(tx, mWebView.getViewWidth(), Math.round(mWebView.getContentWidth()
503 mWebView.updateScrollCoordinates(mWebView.getScrollX() - tx, mWebView.getScrollY() - ty);
506 canvas.translate(tx, ty);
519 canvas.translate(tx, ty);
/frameworks/support/renderscript/v8/rs_support/driver/
H A DrsdAllocation.cpp84 uint32_t tx = drv->lod[0].dimX; local
88 drv->lod[lod].dimX = tx;
91 drv->lod[lod].stride = tx * type->getElementSizeBytes();
94 if (tx > 1) tx >>= 1;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DBeanBag.java391 final float tx = b.getTranslationX();
394 c.drawCircle(tx, ty, 4, pt);
/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/ex/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java785 * @param tx how many pixels to translate horizontally
790 private boolean translate(float tx, float ty) { argument
803 Math.min(maxRight - mTranslateRect.left, tx));
809 translateX = Math.max(maxRight - r, Math.min(maxLeft - l, tx));
837 return (translateX == tx) && (translateY == ty);
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java787 * @param tx how many pixels to translate horizontally
792 private boolean translate(float tx, float ty) { argument
805 Math.min(maxRight - mTranslateRect.left, tx));
811 translateX = Math.max(maxRight - r, Math.min(maxLeft - l, tx));
839 return (translateX == tx) && (translateY == ty);
/frameworks/rs/driver/
H A DrsdAllocation.cpp249 uint32_t tx = drv->lod[0].dimX; local
253 drv->lod[lod].dimX = tx;
256 drv->lod[lod].stride = tx * type->getElementSizeBytes();
259 if (tx > 1) tx >>= 1;
/frameworks/native/libs/gui/
H A DSurfaceTexture.cpp611 float tx = 0.0f, ty = 0.0f, sx = 1.0f, sy = 1.0f; local
646 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth;
661 tx, ty, 0, 1,
/frameworks/base/opengl/java/android/opengl/
H A DMatrix.java281 final float tx = -(right + left) * r_width;
287 m[mOffset +12] = tx;
/frameworks/base/core/java/android/os/
H A DBatteryStats.java1333 long tx = u.getTcpBytesSent(which);
1338 if (rx > 0 || tx > 0) dumpLine(pw, uid, category, NETWORK_DATA, rx, tx);
/frameworks/native/opengl/libagl/
H A Dmatrix.cpp871 const GLfloat tx = -(right + left) * r_width; local
878 f[12] = tx;

Completed in 634 milliseconds

12