Home
last modified time | relevance | path

Searched refs:random (Results 1 – 25 of 46) sorted by relevance

12

/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceRandom.java120 public MonkeySourceRandom(Random random, ArrayList<ComponentName> MainApps, in MonkeySourceRandom() argument
138 mRandom = random; in MonkeySourceRandom()
140 mQ = new MonkeyEventQueue(random, throttle, randomizeThrottle); in MonkeySourceRandom()
261 private void generatePointerEvent(Random random, int gesture) { in generatePointerEvent() argument
264 PointF p1 = randomPoint(random, display); in generatePointerEvent()
265 PointF v1 = randomVector(random); in generatePointerEvent()
276 int count = random.nextInt(10); in generatePointerEvent()
278 randomWalk(random, display, p1, v1); in generatePointerEvent()
286 PointF p2 = randomPoint(random, display); in generatePointerEvent()
287 PointF v2 = randomVector(random); in generatePointerEvent()
[all …]
DMonkeySourceRandomScript.java55 long throttle, boolean randomizeThrottle, Random random, long profileWaitTime, in MonkeySourceRandomScript() argument
58 mSetupSource = new MonkeySourceScript(random, setupFileName, throttle, in MonkeySourceRandomScript()
64 mScriptSources.add(new MonkeySourceScript(random, fileName, throttle, in MonkeySourceRandomScript()
68 mRandom = random; in MonkeySourceRandomScript()
81 boolean randomizeThrottle, Random random, long profileWaitTime, long deviceSleepTime, in MonkeySourceRandomScript() argument
83 this(null, scriptFileNames, throttle, randomizeThrottle, random, profileWaitTime, in MonkeySourceRandomScript()
DMonkeyEventQueue.java32 public MonkeyEventQueue(Random random, long throttle, boolean randomizeThrottle) { in MonkeyEventQueue() argument
34 mRandom = random; in MonkeyEventQueue()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DActivityTransitionDetails.java70 int red = (int)(Math.random() * 128); in randomColor()
71 int green = (int)(Math.random() * 128); in randomColor()
72 int blue = (int)(Math.random() * 128); in randomColor()
DActivityTransition.java127 int red = (int)(Math.random() * 128); in randomColor()
128 int green = (int)(Math.random() * 128); in randomColor()
129 int blue = (int)(Math.random() * 128); in randomColor()
DReversingAnimation.java109 int red = (int)(Math.random() * 255); in createBall()
110 int green = (int)(Math.random() * 255); in createBall()
111 int blue = (int)(Math.random() * 255); in createBall()
DAnimationSeeking.java133 int red = (int)(100 + Math.random() * 155); in addBall()
134 int green = (int)(100 + Math.random() * 155); in addBall()
135 int blue = (int)(100 + Math.random() * 155); in addBall()
DAnimationCloning.java113 int red = (int)(100 + Math.random() * 155); in addBall()
114 int green = (int)(100 + Math.random() * 155); in addBall()
115 int blue = (int)(100 + Math.random() * 155); in addBall()
DAnimationLoading.java137 int red = (int)(100 + Math.random() * 155); in addBall()
138 int green = (int)(100 + Math.random() * 155); in addBall()
139 int blue = (int)(100 + Math.random() * 155); in addBall()
DCustomEvaluator.java148 int red = (int)(Math.random() * 255); in createBall()
149 int green = (int)(Math.random() * 255); in createBall()
150 int blue = (int)(Math.random() * 255); in createBall()
DMultiPropertyAnimation.java150 int red = (int)(100 + Math.random() * 155); in addBall()
151 int green = (int)(100 + Math.random() * 155); in addBall()
152 int blue = (int)(100 + Math.random() * 155); in addBall()
DBouncingBalls.java159 int red = (int)(Math.random() * 255); in addBall()
160 int green = (int)(Math.random() * 255); in addBall()
161 int blue = (int)(Math.random() * 255); in addBall()
DAnimatorEvents.java177 int red = (int)(Math.random() * 255); in createBall()
178 int green = (int)(Math.random() * 255); in createBall()
179 int blue = (int)(Math.random() * 255); in createBall()
/development/samples/devbytes/animation/LayoutTransChanging/src/com/example/android/layouttranschanging/
DLayoutTransChanging.java101 int red = (int)(Math.random() * 128 + 127); in ColoredView()
102 int green = (int)(Math.random() * 128 + 127); in ColoredView()
103 int blue = (int)(Math.random() * 128 + 127); in ColoredView()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/dummydata/
DCheeses.java174 Random random = new Random(); in randomList() local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/dummydata/
DCheeses.java174 Random random = new Random(); in randomList() local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/dummydata/
DCheeses.java174 Random random = new Random(); in randomList() local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DWindowSurface.java103 x = (float)((width-1)*Math.random()); in init()
104 y = (float)((height-1)*Math.random()); in init()
105 dx = (float)(Math.random()*minStep*2) + 1; in init()
106 dy = (float)(Math.random()*minStep*2) + 1; in init()
110 cur += (Math.random()*minStep) - (minStep/2); in adjDelta()
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DBitmapUtils.java62 int resourceId = mPhotos[(int) (Math.random() * mPhotos.length)]; in loadPhotos()
65 String description = mDescriptions[(int) (Math.random() * mDescriptions.length)]; in loadPhotos()
/development/ndk/platforms/android-3/include/linux/netfilter/
Dxt_statistic.h33 } random; member
/development/ndk/platforms/android-L/include/linux/netfilter/
Dxt_statistic.h44 } random; member
/development/ndk/platforms/android-18/samples/MoreTeapots/jni/
DMoreTeapotsRenderer.cpp125 ndk_helper::Vec3( random() / float( RAND_MAX * 1.1 ), in Init()
126 random() / float( RAND_MAX * 1.1 ), in Init()
127 random() / float( RAND_MAX * 1.1 ) ) ); in Init()
129 float fX = random() / float( RAND_MAX ) - 0.5f; in Init()
130 float fY = random() / float( RAND_MAX ) - 0.5f; in Init()
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DExtendedWikiHelper.java210 JSONArray random = query.getJSONArray("random"); in getRandomWord() local
211 JSONObject word = random.getJSONObject(0); in getRandomWord()
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java157 final float r = ((float) Math.random() - 0.5f) * 0.2f; in Particle()
294 dx += ((float) Math.random() - 0.5f) * 0.0001f; in update()
295 dy += ((float) Math.random() - 0.5f) * 0.0001f; in update()
/development/ndk/platforms/android-L/include/
Dstdlib.h121 long random(void);

12