/system/chre/apps/wifi_offload/test/include/ |
H A D | random_generator.h | 21 #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 D | prng.h | 20 #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 D | puncture_fs.c | 65 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 D | test_channel.py | 41 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 D | fec.py | 17 import random namespace 40 offset = random.randrange(0, size - max_errors)
|
/system/chre/util/tests/ |
H A D | memory_pool_test.cc | 5 #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 D | SoftGateKeeper.h | 89 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 D | gatekeeper.h | 97 * 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 D | test_adb.py | 26 import random namespace 234 random.seed(0)
|
H A D | test_device.py | 24 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 D | smp_utils.cc | 62 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 D | smp_int.h | 485 extern uint8_t smp_calculate_random_input(uint8_t* random, uint8_t round);
|
/system/extras/perfprofd/tests/ |
H A D | perfprofd_test.cc | 729 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 D | LruCache_test.cpp | 230 int index = random() % kNumKeys;
|
/system/core/storaged/tests/ |
H A D | storaged_test.cpp | 19 #include <random> 142 // 100 random numbers
|
/system/core/libsync/tests/ |
H A D | sync_test.cpp | 15 #include <random>
|
/system/tools/aidl/ |
H A D | generate_cpp.cpp | 22 #include <random>
|
/system/update_engine/payload_generator/ |
H A D | ab_generator_unittest.cc | 23 #include <random>
|
H A D | delta_diff_utils_unittest.cc | 20 #include <random> 332 // Make a blob with random data that won't compress well.
|
/system/sepolicy/private/ |
H A D | file_contexts | 112 /dev/random u:object_r:random_device:s0
|
/system/sepolicy/prebuilts/api/26.0/private/ |
H A D | file_contexts | 111 /dev/random u:object_r:random_device:s0
|