| /test/xts/acts/kernel_lite/fs_posix/src/ |
| D | FsStatTest.cpp | 46 mode_t maskNew = GetRandom(077); 68 mode_t maskNew = GetRandom(077); 70 mode = 0700 + GetRandom(077); 103 mode_t maskNew = GetRandom(077); 105 mode = 0700 + GetRandom(077); 138 mode_t maskNew = GetRandom(077); 140 mode = 0700 + GetRandom(077);
|
| D | FsFcntlTest.cpp | 73 int flagReadWrite = GetRandom(3) - 1; // 0 is O_RDONLY, 1 is O_WRONLY, 2 is O_RDWR 94 int flagReadWrite = GetRandom(3) - 1; // 0 is O_RDONLY, 1 is O_WRONLY, 2 is O_RDWR 209 file_size = GetRandom(1024) * 102400 + 20; // >20 255 file_size = GetRandom(1024) + 20; // >20
|
| /test/xts/acts/kernel_lite/time_posix/src/ |
| D | SleepTest.cpp | 65 int id = GetRandom(1000) + 12; 70 id = -GetRandom(1000) - 12; 80 flag = GetRandom(100) + 1; 84 flag = -GetRandom(100) - 1;
|
| D | AlarmTest.cpp | 378 clockid_t clockid = GetRandom(2048);
|
| /test/xts/acts/kernel_lite/sched_posix/src/ |
| D | ProcessSchedApiTest.cpp | 73 priority = getpriority(PRIO_USER + GetRandom(1000), 0); 77 priority = getpriority(-GetRandom(1000), 0); 100 priority = getpriority(PRIO_PROCESS, MAX_PROCESS_NUMBER + GetRandom(100000)); 202 rt = setpriority(PRIO_USER + GetRandom(1000), 0, testPrio); 206 rt = setpriority(-GetRandom(1000), 0, testPrio); 230 rt = setpriority(PRIO_PROCESS, MAX_PROCESS_NUMBER + GetRandom(1000), testPrio); 267 rt = setpriority(PRIO_PROCESS, 0, -GetRandom(1000)); 350 rt = sched_getparam(MAX_PROCESS_NUMBER + GetRandom(100000), ¶m); 457 rt = sched_setparam(MAX_PROCESS_NUMBER + GetRandom(100000), ¶m); 514 param.sched_priority = -GetRandom(1000); [all …]
|
| D | PthreadSchedApiTest.cpp | 88 int n = -GetRandom(100); 91 n = 2 + GetRandom(100); 208 invalidPolicy[4] = GetRandom(10000); 209 invalidPolicy[5] = -GetRandom(10000) + 6; 210 invalidPolicy[6] = GetRandom(10000) + 6; 246 rt = pthread_attr_setscope(&attr, -GetRandom(10000)); 249 rt = pthread_attr_setscope(&attr, GetRandom(10000) + 2); 287 param.sched_priority = g_prioriy = GetRandom(LOWEST_USER_THREAD_PRIORITY); 324 if (GetRandom(100)%2) { 377 -(int)GetRandom(10000), (int)GetRandom(10000) + SCHED_DEADLINE in ThrdFuncForSetSchedParamTest() [all …]
|
| /test/xts/acts/kernel_lite/ipc_posix/message_queue/ |
| D | IpcMqExceptionTest.cpp | 39 sprintf_s(qName, sizeof(qName), "testMqOpenEEXIST_%d", GetRandom(10000)); 64 sprintf_s(qName, sizeof(qName), "testMqOpenEINVAL_%d", GetRandom(10000)); 155 sprintf(qName, "testMqOpenENOENT_%d", GetRandom(10000)); 220 sprintf(qName, "testMqOpenENOSPC_%d", GetRandom(10000)); 255 sprintf(qName, "testMqSendEAGAIN_%d", GetRandom(10000)); 280 sprintf(qName, "testMqSendEAGAIN_%d", GetRandom(10000)); 323 sprintf(qName, "testMqSendEINVAL_%d", GetRandom(10000)); 349 sprintf(qName, "testMqReceiveEAGAIN_%d", GetRandom(10000)); 381 sprintf(qName, "testMqReceiveEAGAIN_%d", GetRandom(10000)); 432 sprintf(qName, "testMqReceiveEINVAL_%d", GetRandom(10000)); [all …]
|
| D | IpcMqTest.cpp | 42 sprintf_s(qName, sizeof(qName), "testMqOneLevelCom_%d", GetRandom(10000)); 77 sprintf_s(qName, sizeof(qName), "testMqTimedOneLevelCom_%d", GetRandom(10000)); 118 sprintf_s(qName, sizeof(qName), "testMqAllOneLevelCom_%d", GetRandom(10000)); 189 sprintf_s(qName, sizeof(qName), "testMqMaxLenTwoLevelCom_%d", GetRandom(10000)); 244 sprintf_s(qName, sizeof(qName), "testMqTimedTwoLevelCom_%d", GetRandom(10000)); 310 sprintf_s(qName, sizeof(qName), "testMqAllTwoLevelCom_%d", GetRandom(10000)); 388 sprintf_s(qName, sizeof(qName), "testMqTwoLevelCom_%d", GetRandom(10000)); 451 sprintf_s(qName, sizeof(qName), "testMqTimedTwoThreadCom_%d", GetRandom(10000)); 517 sprintf_s(qName, sizeof(qName), "testMqAllTwoThreadCom_%d", GetRandom(10000)); 555 sprintf_s(qName, sizeof(qName), "testMqThreeLevelCom_%d", GetRandom(10000)); [all …]
|
| /test/xts/acts/kernel_lite/mem_posix/src/ |
| D | MemApiTest.cpp | 41 size = GetRandom(0x200000); 129 mlen = GetRandom(0x200000); 134 rlen = GetRandom(0x200000); 177 size_t len = GetRandom(0x200000); 234 len = GetRandom(64 * 1024); 260 } var[3] = {{32, 0}, {0, GetRandom(4096)}, {0, 0}}; 454 size_t len = GetRandom(4096); 615 len = GetRandom(1024); 645 len = GetRandom(1024); 675 buf[i] = chr + GetRandom(26); [all …]
|
| D | MremapApiTest.cpp | 56 void *mem = sbrk(GetRandom(4096));
|
| /test/xts/hats/kernel/posix_interface/interface_gn/utils/ |
| D | utils.h | 113 uint32_t GetRandom(uint32_t max);
|
| D | utils.cpp | 301 uint32_t GetRandom(uint32_t max) in GetRandom() function
|
| /test/xts/acts/kernel_lite/process_posix/src/ |
| D | UidGidTest.h | 55 id = GetRandom(MAX_UGID); in GetRandID()
|
| D | ProcessTest.cpp | 414 int childReturn = GetRandom(256) - 1; 459 int childReturn = GetRandom(128) - 1;
|
| D | UidGidTest.cpp | 35 uid_t newUid = GetRandom(100); 92 uid_t newgid = GetRandom(100); 660 int groupSize = GetRandom(MAX_PROCESS_GROUPS - 3) + 3;
|
| /test/xts/acts/kernel_lite/utils/ |
| D | utils.h | 155 uint32_t GetRandom(uint32_t max);
|
| D | utils.cpp | 225 uint32_t GetRandom(uint32_t max) in GetRandom() function
|
| /test/xts/acts/kernel_lite/ipc_posix/signal/ |
| D | SignalTestUtils.cpp | 131 bool useBrother = GetRandom(100) % 2; // if use brother to send the signal in SendAndRecvTest()
|
| /test/xts/acts/kernel_lite/ipc_posix/shared_memory/ |
| D | ShmTest.cpp | 135 int tmpKey = GetRandom(2147483647);
|
| /test/xts/acts/kernel_lite/futex_posix/src/ |
| D | PthreadMutexTest.cpp | 35 int delayTime = GetRandom(50); in ThreadMutex()
|