Home
last modified time | relevance | path

Searched refs:ONE_HUNDRED_PERCENT (Results 1 – 3 of 3) sorted by relevance

/test/ostest/wukong/input_factory/src/
Dkeyboard_input.cpp25 const int ONE_HUNDRED_PERCENT = 100; variable
41 int keyCodePercent = rand() % ONE_HUNDRED_PERCENT; in RandomInput()
/test/ostest/wukong/test_flow/src/
Dfocus_test_flow.cpp110 const int ONE_HUNDRED_PERCENT = 100; variable
145 int sumLastDefaultPercent = ONE_HUNDRED_PERCENT; in InitEventPercent()
164 if (sumPercent > ONE_HUNDRED_PERCENT) { in InitEventPercent()
171 int lastPercent = ONE_HUNDRED_PERCENT - sumPercent; in InitEventPercent()
174 if (lastDefaultPercent[type] <= 0 || lastDefaultPercent[type] > ONE_HUNDRED_PERCENT || in InitEventPercent()
187 for (int index = 0; index < ONE_HUNDRED_PERCENT - sumPercent; index++) { in InitEventPercent()
255 inputPercent_[inputType] = (int)(percent * ONE_HUNDRED_PERCENT); in SetInputPercent()
382 int eventindex = rand() % ONE_HUNDRED_PERCENT; in RunStep()
Drandom_test_flow.cpp109 const int ONE_HUNDRED_PERCENT = 100; variable
146 int sumLastDefaultPercent = ONE_HUNDRED_PERCENT; in InitEventPercent()
165 if (sumPercent > ONE_HUNDRED_PERCENT) { in InitEventPercent()
172 int lastPercent = ONE_HUNDRED_PERCENT - sumPercent; in InitEventPercent()
175 if (lastDefaultPercent[type] <= 0 || lastDefaultPercent[type] > ONE_HUNDRED_PERCENT || in InitEventPercent()
188 for (int index = 0; index < ONE_HUNDRED_PERCENT - sumPercent; index++) { in InitEventPercent()
255 inputPercent_[inputType] = (int)(percent * ONE_HUNDRED_PERCENT); in SetInputPercent()
384 int eventindex = rand() % ONE_HUNDRED_PERCENT; in RunStep()