Searched defs:random (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/keystore/java/android/security/
H A DAndroidKeyPairGenerator.java188 public void initialize(int keysize, SecureRandom random) { argument
193 public void initialize(AlgorithmParameterSpec params, SecureRandom random) argument
/frameworks/base/core/java/android/util/
H A DMathUtils.java159 public static int random(int howbig) { method in class:MathUtils
163 public static int random(int howsmall, int howbig) { method in class:MathUtils
168 public static float random(float howbig) { method in class:MathUtils
172 public static float random(float howsmall, float howbig) { method in class:MathUtils
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp57 int random = rand(); local
60 int temp = (random + index) % kMaxNumUniqueIds;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DOpReorderTest.java43 static Random random = new Random(System.nanoTime()); field in class:OpReorderTest
162 randOp(nextInt(random, nextInt(random, 4)));
164 Log.d(TAG, "running random test " + i);
229 int s = nextInt(random, updatedItemCount - 1);
230 int len = Math.max(1, nextInt(random, updatedItemCount - s));
235 int s = updatedItemCount == 0 ? 0 : nextInt(random, updatedItemCount);
236 add(s, nextInt(random, 50));
240 int from = nextInt(random, updatedItemCount);
243 to = nextInt(random, updatedItemCoun
258 nextInt(Random random, int n) argument
[all...]
H A DAdapterHelperTest.java760 Random random = new Random(System.nanoTime());
763 Log.d(TAG, "running random test " + i);
764 randomTest(random, Math.max(40, 10 + nextInt(random, i)));
766 throw new Throwable("failure at random test " + i + "\n" + t.getMessage()
772 public void randomTest(Random random, int opCount) { argument
777 final int count = 10;// + nextInt(random,100);
778 final int start = nextInt(random, count - 1);
779 final int layoutCount = Math.max(1, nextInt(random, count - start));
783 final int op = nextInt(random,
819 nextInt(Random random, int n) argument
[all...]

Completed in 138 milliseconds