Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 25 of 50) sorted by relevance

12

/development/samples/Snake/src/com/example/android/snake/
DSnake.java87 int direction = 0; in onCreate()
88 direction = (x > y) ? 1 : 0; in onCreate()
89 direction |= (x > 1 - y) ? 2 : 0; in onCreate()
92 mSnakeView.moveSnake(direction); in onCreate()
DSnakeView.java259 public void moveSnake(int direction) { in moveSnake() argument
261 if (direction == Snake.MOVE_UP) { in moveSnake()
288 if (direction == Snake.MOVE_DOWN) { in moveSnake()
295 if (direction == Snake.MOVE_LEFT) { in moveSnake()
302 if (direction == Snake.MOVE_RIGHT) { in moveSnake()
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/
DRecyclerViewActivity.java199 public View onFocusSearchFailed(View focused, int direction, in onFocusSearchFailed() argument
212 if (direction == View.FOCUS_UP || direction == View.FOCUS_BACKWARD) { in onFocusSearchFailed()
227 if (direction == View.FOCUS_DOWN || direction == View.FOCUS_FORWARD) { in onFocusSearchFailed()
DAnimatedRecyclerView.java580 public View onFocusSearchFailed(View focused, int direction, in onFocusSearchFailed() argument
593 if (direction == View.FOCUS_UP || direction == View.FOCUS_BACKWARD) { in onFocusSearchFailed()
608 if (direction == View.FOCUS_DOWN || direction == View.FOCUS_FORWARD) { in onFocusSearchFailed()
/development/ndk/platforms/android-3/include/linux/netfilter/
Dxt_connbytes.h34 u_int8_t direction; member
/development/ndk/platforms/android-21/include/linux/netfilter/
Dxt_connbytes.h42 __u8 direction; member
/development/samples/ApiDemos/src/com/example/android/apis/view/
DInternalSelectionView.java232 protected void onFocusChanged(boolean focused, int direction, in onFocusChanged() argument
234 super.onFocusChanged(focused, direction, previouslyFocusedRect); in onFocusChanged()
237 switch (direction) { in onFocusChanged()
DGameView.java447 float direction = mRandom.nextFloat() * (float) Math.PI * 2;
450 float velocityX = (float) Math.cos(direction) * speed;
451 float velocityY = (float) Math.sin(direction) * speed;
/development/perftests/panorama/feature_mos/src/mosaic/
DBlend.cpp1064 double alpha = x * m_wb.direction / m_wb.width; in MosaicToFrame()
1065 double length = (y - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame()
1068 double cosTheta = sqrt(1.0 - sinTheta * sinTheta) * m_wb.direction; in MosaicToFrame()
1074 double alpha = y * m_wb.direction / m_wb.width; in MosaicToFrame()
1075 double length = (x - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame()
1078 double cosTheta = sqrt(1.0 - sinTheta * sinTheta) * m_wb.direction; in MosaicToFrame()
1107 wx = alpha * m_wb.width * m_wb.direction; in FrameToMosaic()
1108 wy = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic()
1117 wy = alpha * m_wb.width * m_wb.direction; in FrameToMosaic()
1118 wx = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic()
[all …]
DMosaicTypes.h141 double direction; member
/development/samples/USB/MissileLauncher/
DREADME.txt3 Tilt the tablet to change the direction of the launcher.
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DKube.java252 boolean direction = mRandom.nextBoolean(); in animate()
256 direction = false; in animate()
258 if (direction) { in animate()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTouchPaint.java532 double direction = mRandom.nextDouble() * Math.PI * 2; in drawSplat() local
534 double vx = Math.cos(direction) * dispersion; in drawSplat()
535 double vy = Math.sin(direction) * dispersion; in drawSplat()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceNetwork.java115 String direction = command.get(1); in translateCommand() local
116 if ("open".equals(direction)) { in translateCommand()
119 } else if ("close".equals(direction)) { in translateCommand()
/development/ndk/platforms/android-21/include/linux/genwqe/
Dgenwqe_card.h320 __u64 direction; member
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java435 float direction = mRandom.nextFloat() * (float) Math.PI * 2; in step() local
438 float velocityX = (float) Math.cos(direction) * speed; in step()
439 float velocityY = (float) Math.sin(direction) * speed; in step()
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DHdrViewfinderActivity.java442 private void switchRenderMode(int direction) { in switchRenderMode() argument
444 mRenderMode = (mRenderMode + direction) % 3; in switchRenderMode()
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/
DItemTouchHelperActivity.java119 public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) { in createCallback() argument
/development/samples/training/multiscreen/newsreader/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/AnimationsDemo/libs/
Dandroid-support-v13.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/basic/ActivityLifecycle/libs/
Dandroid-support-v13.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/basic/FragmentBasics/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/location-aware/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/InteractiveChart/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/ndk/platforms/android-3/include/linux/
Dinput.h680 __u16 direction; member

12