Lines Matching refs:i

72     for (int i = 0; i < nprops; i++) {  in LocalPropertyTestState()  local
75 name_lens[i] = (random() % (PROP_NAME_MAX - 10)) + 10; in LocalPropertyTestState()
76 names[i] = new char[PROP_NAME_MAX + 1]; in LocalPropertyTestState()
78 for (int j = 0; j < name_lens[i]; j++) { in LocalPropertyTestState()
79 if (j == 0 || names[i][j-1] == '.' || j == name_lens[i] - 1) { in LocalPropertyTestState()
89 names[i][j] = prop_name_chars[random() % prop_name_len]; in LocalPropertyTestState()
91 names[i][name_lens[i]] = 0; in LocalPropertyTestState()
94 value_lens[i] = (random() % (PROP_VALUE_MAX - 1)) + 1; in LocalPropertyTestState()
95 values[i] = new char[PROP_VALUE_MAX]; in LocalPropertyTestState()
96 for (int j = 0; j < value_lens[i]; j++) { in LocalPropertyTestState()
97 values[i][j] = prop_name_chars[random() % (sizeof(prop_name_chars) - 1)]; in LocalPropertyTestState()
100 if (__system_property_add(names[i], name_lens[i], values[i], value_lens[i]) < 0) { in LocalPropertyTestState()
102 printf("%s = %.*s\n", names[i], value_lens[i], values[i]); in LocalPropertyTestState()
120 for (int i = 0; i < nprops; i++) { in ~LocalPropertyTestState() local
121 delete names[i]; in ~LocalPropertyTestState()
122 delete values[i]; in ~LocalPropertyTestState()
157 for (int i = 0; i < iters; i++) { in Run() local
176 for (int i = 0; i < iters; i++) { in Run() local
195 for (int i = 0; i < iters; i++) { in Run() local
196 pinfo[i] = __system_property_find(pa.names[random() % nprops]); in Run()
200 for (int i = 0; i < iters; i++) { in Run() local
201 __system_property_read(pinfo[i], 0, propvalue); in Run()
220 for (int i = 0; i < iters; i++) { in Run() local
221 pinfo[i] = __system_property_find(pa.names[random() % nprops]); in Run()
225 for (int i = 0; i < iters; i++) { in Run() local
226 __system_property_serial(pinfo[i]); in Run()