/system/extras/tests/net_test/ |
H A D | forwarding_test.py | 18 import random namespace 100 netid, iface1, iface2 = random.sample(netids, 3)
|
H A D | packets.py | 17 import random namespace 43 return random.randint(1025, 65535)
|
H A D | neighbour_test.py | 18 import random namespace 85 self.netid = random.choice(self.tuns.keys()) 197 routing_mode = random.choice(["mark", "oif", "uid"]) 279 routing_mode = random.choice(["mark", "oif", "uid"])
|
H A D | sock_diag_test.py | 20 import random namespace 45 family, addr = random.choice([ 137 random.shuffle(socketpairs) 305 s = random.choice(socketpair) 306 if random.randrange(0, 2) == 1: 361 netid = random.choice(self.tuns.keys()) 382 self.netid = random.choice(self.tuns.keys())
|
H A D | srcaddr_selection_test.py | 18 import random namespace 144 self.test_netid = random.choice(self.tuns.keys())
|
H A D | net_test.py | 19 import random namespace 75 id=random.randint(0, 65535),
|
H A D | ping6_test.py | 22 import random namespace 191 cls.netid = random.choice(cls.NETIDS)
|
H A D | multinetwork_base.py | 23 import random namespace 150 return random.randint(*cls.UidRangeForNetid(netid)) 205 return prefix + "%d.%d" % (random.randint(0, 31), random.randint(0, 255)) 207 return prefix + "%x:%x" % (random.randint(0, 65535), 208 random.randint(0, 65535))
|
H A D | multinetwork_test.py | 19 import random namespace 610 # Send a UDP packet to a random on-link destination. 837 return random.randint(1000000, 2000000)
|
/system/extras/verity/fec/tests/ |
H A D | fec.py | 17 import random namespace 40 offset = random.randrange(0, size - max_errors)
|
/system/core/adb/ |
H A D | test_adb.py | 26 import random namespace 212 random.seed(0)
|
H A D | test_device.py | 24 import random namespace 615 size = random.randrange(min_size, max_size, 1024) 632 size = random.randrange(min_size, max_size, 1024) 687 # Create 32 random files. 739 # Create some random files and a subdirectory containing more files. 831 # Populate device directory with random files. 866 # Populate device directory with random files. 899 # Populate device directory with random files. 923 # Populate device directory with random files. 951 # Populate device directory with random file [all...] |
/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/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/bt/stack/smp/ |
H A D | smp_utils.c | 66 SMP_RAND_CMD_SIZE, /* 0x04: pairing random */ 94 smp_command_has_valid_fixed_length, /* 0x04: pairing random */ 120 smp_parameter_unconditionally_valid, /* 0x04: pairing random */ 158 smp_build_rand_cmd, /* 0x04: pairing random */ 1287 ** Description This function returns random input value to be used in commitment 1289 ** (if bit["round"] in "random" array == 1 then returns 0x81 1295 UINT8 smp_calculate_random_input(UINT8 *random, UINT8 round) argument 1301 SMP_TRACE_DEBUG("random: 0x%02x, round: %d, i: %d, j: %d", random[i], round, i, j); 1302 ri = ((random[ [all...] |