Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 25 of 28) 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/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/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.java116 String direction = command.get(1); in translateCommand() local
117 if ("open".equals(direction)) { in translateCommand()
120 } else if ("close".equals(direction)) { in translateCommand()
/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/VoicemailProviderDemo/
DNOTICE32 direction or management of such entity, whether by contract or
/development/samples/AccelerometerPlay/
DNOTICE32 direction or management of such entity, whether by contract or
/development/apps/GestureBuilder/
DNOTICE32 direction or management of such entity, whether by contract or
/development/apps/SdkSetup/
DNOTICE32 direction or management of such entity, whether by contract or
/development/cmds/monkey/
DNOTICE32 direction or management of such entity, whether by contract or
/development/apps/NinePatchLab/
DNOTICE32 direction or management of such entity, whether by contract or
/development/apps/Fallback/
DNOTICE32 direction or management of such entity, whether by contract or
/development/samples/Home/
DNOTICE32 direction or management of such entity, whether by contract or
/development/apps/DevelopmentSettings/
DNOTICE32 direction or management of such entity, whether by contract or
/development/apps/Development/
DNOTICE32 direction or management of such entity, whether by contract or
/development/apps/CustomLocale/
DNOTICE32 direction or management of such entity, whether by contract or
/development/apps/BluetoothDebug/
DNOTICE32 direction or management of such entity, whether by contract or
/development/samples/CubeLiveWallpaper/
DNOTICE32 direction or management of such entity, whether by contract or
/development/apps/OBJViewer/
DNOTICE32 direction or management of such entity, whether by contract or
/development/apps/launchperf/
DNOTICE32 direction or management of such entity, whether by contract or

12