Home
last modified time | relevance | path

Searched refs:dy (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Calendar/src/com/android/calendar/
DEventGeometry.java195 float dy = top - y; in pointToEvent() local
196 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
200 float dy = y - bottom; in pointToEvent() local
201 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
210 float dy = top - y; in pointToEvent() local
211 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
215 float dy = y - bottom; in pointToEvent() local
216 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
/packages/apps/Camera/src/com/android/camera/
DHighlightView.java240 void handleMotion(int edge, float dx, float dy) { in handleMotion() argument
247 dy * (mCropRect.height() / r.height())); in handleMotion()
254 dy = 0; in handleMotion()
259 float yDelta = dy * (mCropRect.height() / r.height()); in handleMotion()
266 void moveBy(float dx, float dy) { in moveBy() argument
269 mCropRect.offset(dx, dy); in moveBy()
287 void growBy(float dx, float dy) { in growBy() argument
290 dy = dx / mInitialAspectRatio; in growBy()
291 } else if (dy != 0) { in growBy()
292 dx = dy * mInitialAspectRatio; in growBy()
[all …]
DImageViewTouchBase.java402 protected void postTranslate(float dx, float dy) { in postTranslate() argument
403 mSuppMatrix.postTranslate(dx, dy); in postTranslate()
406 protected void panBy(float dx, float dy) { in panBy() argument
407 postTranslate(dx, dy); in panBy()
DCropImage.java236 int dy = (srcRect.height() - dstRect.height()) / 2; in onSaveClicked() local
239 srcRect.inset(Math.max(0, dx), Math.max(0, dy)); in onSaveClicked()
242 dstRect.inset(Math.max(0, -dx), Math.max(0, -dy)); in onSaveClicked()
DReviewImage.java763 protected void postTranslateCenter(float dx, float dy) {
764 super.postTranslate(dx, dy);
DViewImage.java1094 protected void postTranslateCenter(float dx, float dy) {
1095 super.postTranslate(dx, dy);
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java242 void handleMotion(int edge, float dx, float dy) { in handleMotion() argument
249 dy * (mCropRect.height() / r.height())); in handleMotion()
256 dy = 0; in handleMotion()
261 float yDelta = dy * (mCropRect.height() / r.height()); in handleMotion()
268 void moveBy(float dx, float dy) { in moveBy() argument
271 mCropRect.offset(dx, dy); in moveBy()
289 void growBy(float dx, float dy) { in growBy() argument
292 dy = dx / mInitialAspectRatio; in growBy()
293 } else if (dy != 0) { in growBy()
294 dx = dy * mInitialAspectRatio; in growBy()
[all …]
DImageViewTouchBase.java402 protected void postTranslate(float dx, float dy) { in postTranslate() argument
403 mSuppMatrix.postTranslate(dx, dy); in postTranslate()
406 protected void panBy(float dx, float dy) { in panBy() argument
407 postTranslate(dx, dy); in panBy()
DCropImage.java238 int dy = (srcRect.height() - dstRect.height()) / 2; in onSaveClicked() local
241 srcRect.inset(Math.max(0, dx), Math.max(0, dy)); in onSaveClicked()
244 dstRect.inset(Math.max(0, -dx), Math.max(0, -dy)); in onSaveClicked()
DReviewImage.java765 protected void postTranslateCenter(float dx, float dy) {
766 super.postTranslate(dx, dy);
DViewImage.java1096 protected void postTranslateCenter(float dx, float dy) {
1097 super.postTranslate(dx, dy);
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/
DVisualization5RS.java135 float dy = event.getY() - mTouchY; in onTouchEvent() local
136 mTouchY += dy; in onTouchEvent()
137 dy /= 10; in onTouchEvent()
138 dy += mWorldState.mTilt; in onTouchEvent()
139 if (dy > 0) { in onTouchEvent()
140 dy = 0; in onTouchEvent()
141 } else if (dy < -45) { in onTouchEvent()
142 dy = -45; in onTouchEvent()
144 mWorldState.mTilt = dy; in onTouchEvent()
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
DMagicSmokeRS.java201 float dy = event.getY() - mTouchY; in onTouchEvent() local
202 mTouchY += dy; in onTouchEvent()
203 dy /= 20; in onTouchEvent()
204 dy += mWorldState.mTilt; in onTouchEvent()
205 if (dy > 4) { in onTouchEvent()
206 dy = 4; in onTouchEvent()
207 } else if (dy < -4) { in onTouchEvent()
208 dy = -4; in onTouchEvent()
210 mWorldState.mTilt = dy; in onTouchEvent()
/packages/apps/Launcher2/src/com/android/launcher2/
DSearch.java354 float dy = -getWidgetTop() * interpolatedTime; in applyTransformation() local
355 t.getMatrix().setTranslate(dx, dy); in applyTransformation()
366 float dy = -getWidgetTop() * (1.0f - interpolatedTime); in applyTransformation() local
367 t.getMatrix().setTranslate(dx, dy); in applyTransformation()
DWorkspace.java519 int dy = (h/2) - (h/4); in dispatchDraw() local
520 canvas.translate(dx, dy); in dispatchDraw()
522 canvas.translate(-dx, -dy); in dispatchDraw()
/packages/apps/Launcher/src/com/android/launcher/
DSearch.java352 float dy = -getWidgetTop() * interpolatedTime; in applyTransformation() local
353 t.getMatrix().setTranslate(dx, dy); in applyTransformation()
364 float dy = -getWidgetTop() * (1.0f - interpolatedTime); in applyTransformation() local
365 t.getMatrix().setTranslate(dx, dy); in applyTransformation()
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/
DNexusWallpaper.java97 public Pulse(long now, int x, int y, int dx, int dy) { in Pulse() argument
99 start(now, x, y, dx, dy); in Pulse()
122 public void start(long now, int x, int y, int dx, int dy) { in start() argument
127 v.y = dy; in start()
/packages/wallpapers/Basic/res/raw/
Dfall.rs132 float dy = d->y - y;
133 float dist2 = dx*dx + dy*dy;
Ddistort.rs245 float dy = d->y - y;
246 float dist = sqrtf(dx*dx + dy*dy);