Home
last modified time | relevance | path

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

/developers/samples/android/common/src/java/com/example/android/common/dummydata/
DCheeses.java174 Random random = new Random(); in randomList() local
181 items.add(CHEESES[random.nextInt(CHEESES.length)]); in randomList()
/developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java145 private float mPosX = (float) Math.random();
146 private float mPosY = (float) Math.random();
279 dx += ((float) Math.random() - 0.5f) * 0.0001f; in update()
280 dy += ((float) Math.random() - 0.5f) * 0.0001f; in update()
/developers/samples/android/wearable/wear/AlwaysOn/Wearable/src/main/java/com/example/android/wearable/wear/alwayson/
DMainActivity.java340 int x = (int) (Math.random() * 2 * BURN_IN_OFFSET_PX - BURN_IN_OFFSET_PX); in onUpdateAmbient()
341 int y = (int) (Math.random() * 2 * BURN_IN_OFFSET_PX - BURN_IN_OFFSET_PX); in onUpdateAmbient()
/developers/samples/android/wearable/wear/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/
DRangedValueProviderService.java59 float value = (float) Math.random() * (maxValue - minValue) + minValue; in onComplicationUpdate()
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/
DMockIncomingMessageReceiver.java81 int index = (int) (Math.random() * mockReplyMessages.length); in mockReply()
/developers/samples/android/content/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/
DAddFileActivity.java257 byte b = (byte) (255 * Math.random()); in createFileWithRandomDataAndFinishActivity()