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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DCodePointUtils.java63 public static int[] generateCodePointSet(final int codePointSetSize, final Random random) { argument
66 final int r = Math.abs(random.nextInt());
81 * Generates a random word.
83 public static String generateWord(final Random random, final int[] codePointSet) { argument
85 // 8 * 4 = 32 chars max, but we do it the following way so as to bias the random toward
88 final int count = 1 + (Math.abs(random.nextInt()) % 5)
89 + (Math.abs(random.nextInt()) % 5)
90 + (Math.abs(random.nextInt()) % 5)
91 + (Math.abs(random.nextInt()) % 5)
92 + (Math.abs(random
[all...]
H A DBinaryDictDecoderEncoderTests.java77 final Random random = new Random(seed);
80 generateWords(maxUnigrams, random);
98 final int from = Math.abs(random.nextInt()) % sWords.size();
101 final int to = Math.abs(random.nextInt()) % sWords.size();
120 private void generateWords(final int number, final Random random) { argument
122 random);
125 wordSet.add(CodePointUtils.generateWord(random, codePointSet));
130 LARGE_CODE_POINT_SET_SIZE, random);
133 wordSet.add(CodePointUtils.generateWord(random, largeCodePointSet));
571 final Random random
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
H A DSimpleTempStorage.java45 private Random random = new Random(); field in class:SimpleTempStorage
64 long n = Math.abs(random.nextLong());
93 long n = Math.abs(random.nextLong());
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
H A DFusionDictionaryTest.java40 final Random random = new Random(seed);
42 generateWords(MAX_UNIGRAMS, random);
46 * Generates a random word.
48 private String generateWord(final Random random) { argument
50 int count = random.nextInt() % 30;
52 final long r = Math.abs(random.nextInt());
60 if (builder.length() == 1) return generateWord(random);
64 private void generateWords(final int number, final Random random) { argument
66 sWords.add(generateWord(random));
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DSSLSocketFactory.java182 final SecureRandom random,
199 sslcontext.init(keymanagers, trustmanagers, random);
177 SSLSocketFactory( String algorithm, final KeyStore keystore, final String keystorePassword, final KeyStore truststore, final SecureRandom random, final HostNameResolver nameResolver) argument
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DSlideshowView.java128 public SlideshowAnimation(int width, int height, Random random) { argument
132 MOVE_SPEED * mWidth * (random.nextFloat() - 0.5f),
133 MOVE_SPEED * mHeight * (random.nextFloat() - 0.5f));
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
H A DUserHistoryDictionaryTests.java92 * Generates a random word.
105 private static List<String> generateWords(final int number, final Random random) { argument
108 wordSet.add(generateWord(random.nextInt()));
128 final Random random, final boolean checkContents) {
129 final List<String> words = generateWords(numberOfWords, random);
132 // Add random words to the user history dictionary.
178 final Random random = new Random(123456);
182 addAndWriteRandomWords(dummyLocale, numberOfWords, random,
200 final Random random = new Random(123456);
218 numberOfWordsInsertedForEachLanguageSwitch, random,
127 addAndWriteRandomWords(final Locale locale, final int numberOfWords, final Random random, final boolean checkContents) argument
[all...]
/packages/services/Telecomm/tests/src/com/android/server/telecom/testapps/
H A DTestVideoProvider.java56 private Random random; field in class:TestVideoProvider
74 random = new Random();
174 int dataUsageKb = (10 *1024) + random.nextInt(50 * 1024);
/packages/apps/Calculator/
H A Darity-2.1.2.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/javia/ org/javia/arity/ org/javia/arity/Compiler ...

Completed in 533 milliseconds