Searched refs:random (Results 1 - 21 of 21) sorted by relevance

/system/chre/apps/wifi_offload/test/include/
H A Drandom_generator.h21 #include <random>
26 * @class RandomGenerator A class to generate random values for any uint type:
28 * state to be able to reproduce the same random sequence.
44 * Generates a random number of type IntType
46 * @return A random number of type IntType
61 * Use uniform_distribution_ to transform the random unsigned int generated by
/system/update_engine/update_manager/
H A Dprng.h20 #include <random>
26 // A thread-safe, unsecure, 32-bit pseudo-random number generator based on
33 // Returns a random unsigned 32-bit integer.
36 // Returns a random integer uniformly distributed in the range [min, max].
43 // A pseudo-random number generator.
/system/extras/puncture_fs/
H A Dpuncture_fs.c65 return start + (((u64)random() << 31) | (u64)random()) % (end - start);
66 return start + (random() % (end - start));
70 return 'A' + random() % ('Z' - 'A');
81 base[random() % min(base_length, size)] = get_random_char();
/system/bt/vendor_libs/test_vendor_lib/scripts/
H A Dtest_channel.py41 import random namespace
52 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \
56 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
135 explicit name or address is not provided, a random string of characters
189 random name is used instead.
/system/extras/verity/fec/tests/
H A Dfec.py17 import random namespace
40 offset = random.randrange(0, size - max_errors)
/system/chre/util/tests/
H A Dmemory_pool_test.cc5 #include <random>
61 // The number of times to allocate and deallocate in random order.
81 // Seed a random number generator with the loop iteration so that order is
/system/core/gatekeeperd/
H A DSoftGateKeeper.h89 virtual void GetRandom(void *random, uint32_t requested_length) const { argument
90 if (random == NULL) return;
91 RAND_pseudo_bytes((uint8_t *) random, requested_length);
/system/gatekeeper/include/gatekeeper/
H A Dgatekeeper.h97 * Assings the random to the random UniquePtr, relinquishing ownership to the caller
99 virtual void GetRandom(void *random, uint32_t requested_size) const = 0;
/system/core/adb/
H A Dtest_adb.py26 import random namespace
234 random.seed(0)
H A Dtest_device.py24 import random namespace
701 size = random.randrange(min_size, max_size, 1024)
718 size = random.randrange(min_size, max_size, 1024)
773 # Create 32 random files.
855 # Create some random files and a subdirectory containing more files.
948 # Populate device directory with random files.
983 # Populate device directory with random files.
1016 # Populate device directory with random files.
1040 # Populate device directory with random files.
1068 # Populate device directory with random file
[all...]
/system/bt/stack/smp/
H A Dsmp_utils.cc62 SMP_RAND_CMD_SIZE, /* 0x04: pairing random */
89 smp_command_has_valid_fixed_length, /* 0x04: pairing random */
116 smp_parameter_unconditionally_valid, /* 0x04: pairing random */
166 smp_build_rand_cmd, /* 0x04: pairing random */
1287 * Description This function returns random input value to be used in
1289 * (if bit["round"] in "random" array == 1 then returns 0x81
1295 uint8_t smp_calculate_random_input(uint8_t* random, uint8_t round) { argument
1300 SMP_TRACE_DEBUG("random: 0x%02x, round: %d, i: %d, j: %d", random[i], round,
1302 ri = ((random[
[all...]
H A Dsmp_int.h485 extern uint8_t smp_calculate_random_input(uint8_t* random, uint8_t round);
/system/extras/perfprofd/tests/
H A Dperfprofd_test.cc729 I: random seed set to 12345678
785 I: random seed set to 12345678
855 I: random seed set to 12345678
/system/core/libutils/tests/
H A DLruCache_test.cpp230 int index = random() % kNumKeys;
/system/core/storaged/tests/
H A Dstoraged_test.cpp19 #include <random>
142 // 100 random numbers
/system/core/libsync/tests/
H A Dsync_test.cpp15 #include <random>
/system/tools/aidl/
H A Dgenerate_cpp.cpp22 #include <random>
/system/update_engine/payload_generator/
H A Dab_generator_unittest.cc23 #include <random>
H A Ddelta_diff_utils_unittest.cc20 #include <random>
332 // Make a blob with random data that won't compress well.
/system/sepolicy/private/
H A Dfile_contexts112 /dev/random u:object_r:random_device:s0
/system/sepolicy/prebuilts/api/26.0/private/
H A Dfile_contexts111 /dev/random u:object_r:random_device:s0

Completed in 399 milliseconds