Home
last modified time | relevance | path

Searched refs:xOffset (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/anim/
DStateTransitionAnimation.java152 int xOffset = view.getWidth() / 2; in applyOldTexture() local
154 canvas.translate(xOffset, yOffset); in applyOldTexture()
156 mOldScreenTexture.draw(canvas, -xOffset, -yOffset); in applyOldTexture()
167 int xOffset = view.getWidth() / 2; in applyContentTransform() local
169 canvas.translate(xOffset, yOffset); in applyContentTransform()
171 canvas.translate(-xOffset, -yOffset); in applyContentTransform()
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/
DFallRS.java91 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
92 mWorldState.xOffset = xOffset; in setOffset()
93 mScript.set_g_xOffset(mWorldState.xOffset); in setOffset()
102 … addDrop(x + (mWorldState.rotate == 0 ? (mWorldState.width * mWorldState.xOffset) : 0), y); in onCommand()
114 addDrop(x + (mWorldState.rotate == 0 ? (width * worldState.xOffset) : 0), y); in start()
212 public float xOffset; field in FallRS.WorldState
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java578 int xOffset = 0; in computeDayLeftPosition() local
580 xOffset = SPACING_WEEK_NUMBER + mPadding; in computeDayLeftPosition()
581 effectiveWidth -= xOffset; in computeDayLeftPosition()
583 x = day * effectiveWidth / mNumDays + xOffset; in computeDayLeftPosition()
595 int xOffset = SPACING_WEEK_NUMBER + mPadding; in drawDaySeparators() local
597 lines[i++] = xOffset; in drawDaySeparators()
599 lines[i++] = xOffset; in drawDaySeparators()
990 int xOffset = (DNA_ALL_DAY_WIDTH - DNA_WIDTH) / 2; in drawDNA() local
997 canvas.drawLine(mDayXs[i] + xOffset, DNA_MARGIN, mDayXs[i] + xOffset, in drawDNA()
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/
Dphasebeam.rs47 float xOffset = 0.5;
111 newOffset = xOffset*2;
117 vert->offsetX = -xOffset/2.0;
DPhaseBeamRS.java248 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
249 mScript.set_xOffset(xOffset); in setOffset()
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
Dgrass.rs324 float brightness, float xOffset, float now) {
328 float xpos = bladeStruct->xPos + xOffset;
397 static void drawBlades(float brightness, float xOffset) {
406 int offset = drawBlade(bladeStruct, vtx, brightness, xOffset, now);
DGrassRS.java171 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
172 mScript.set_gXOffset(xOffset); in setOffset()
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/
DNexusRS.java67 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
68 mXOffset = xOffset; in setOffset()
69 mScript.set_gXOffset(xOffset); in setOffset()
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/
DRenderScriptWallpaper.java98 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
100 mRenderer.setOffset(xOffset, yOffset, xPixels, yPixels); in onOffsetsChanged()
DGenericWaveRS.java181 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
182 mWorldState.yRotation = (xOffset * 4) * 180; in setOffset()
/packages/wallpapers/Basic/src/com/android/wallpaper/
DRenderScriptWallpaper.java90 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
92 if (mRenderer != null) mRenderer.setOffset(xOffset, yOffset, xPixels, yPixels); in onOffsetsChanged()
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
DHoloSpiralWallpaper.java121 public void onOffsetsChanged(float xOffset, float yOffset, float xOffsetStep, in onOffsetsChanged() argument
123 mWallpaperRS.setOffset(xOffset, yOffset, xPixelOffset, yPixelOffset); in onOffsetsChanged()
DHoloSpiralRS.java78 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
79 mScript.set_gXOffset(xOffset); in setOffset()
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
DRenderScriptWallpaper.java94 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
96 mRenderer.setOffset(xOffset, yOffset, xStep, yStep, xPixels, yPixels); in onOffsetsChanged()
DMagicSmokeRS.java236 …public void setOffset(float xOffset, float yOffset, float xStep, float yStep, int xPixels, int yPi… in setOffset() argument
238 mWorldState.mXOffset = xOffset; in setOffset()
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis3/
DVisualization3RS.java51 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
52 mWorldState.yRotation = (xOffset * 4) * 360; in setOffset()
/packages/apps/Launcher2/src/com/android/launcher2/
DButtonDropTarget.java151 final int xOffset = (int) -(viewWidth - width) / 2; in getIconRect() local
153 to.offset(xOffset, yOffset); in getIconRect()
DFolder.java624 float[] r = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, null); in onDragOver()
643 private float[] getDragViewVisualCenter(int x, int y, int xOffset, int yOffset, in getDragViewVisualCenter() argument
656 int left = x - xOffset; in getDragViewVisualCenter()
DDeleteDropTarget.java341 float xOffset = ((scale - 1f) * dragView.getMeasuredWidth()) / 2f;
344 mFrom.left += xOffset;
DAppWidgetResizeFrame.java402 int xOffset = mCellLayout.getLeft() + mCellLayout.getPaddingLeft() in snapToWidget() local
412 int newX = mWidgetView.getLeft() - mBackgroundPadding + xOffset + mWidgetPaddingLeft; in snapToWidget()
DWorkspace.java1975 mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset,
2171 mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView,
2721 private float[] getDragViewVisualCenter(int x, int y, int xOffset, int yOffset,
2739 int left = x - xOffset;
2767 mDragViewVisualCenter = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset,
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis1/
DVisualization1.java142 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
144 mOffset = xOffset; in onOffsetsChanged()
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/
DGalaxyRS.java120 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
121 mScript.set_gXOffset(xOffset); in setOffset()
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/
DVisualization5RS.java147 public void setOffset(float xOffset, float yOffset, int xPixels, int yPixels) { in setOffset() argument
149 mWorldState.mRotate = (xOffset - 0.5f) * 90; in setOffset()
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
DPolarClockWallpaper.java451 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
455 mOffsetX = xOffset; in onOffsetsChanged()

12