Lines Matching refs:i
55 for (int i = 0; i < nprops; i++) { in LocalPropertyTestState() local
58 name_lens[i] = (random() % (PROP_NAME_MAX - 10)) + 10; in LocalPropertyTestState()
59 names[i] = new char[PROP_NAME_MAX + 1]; in LocalPropertyTestState()
61 for (int j = 0; j < name_lens[i]; j++) { in LocalPropertyTestState()
62 if (j == 0 || names[i][j-1] == '.' || j == name_lens[i] - 1) { in LocalPropertyTestState()
72 names[i][j] = prop_name_chars[random() % prop_name_len]; in LocalPropertyTestState()
74 names[i][name_lens[i]] = 0; in LocalPropertyTestState()
77 value_lens[i] = (random() % (PROP_VALUE_MAX - 1)) + 1; in LocalPropertyTestState()
78 values[i] = new char[PROP_VALUE_MAX]; in LocalPropertyTestState()
79 for (int j = 0; j < value_lens[i]; j++) { in LocalPropertyTestState()
80 values[i][j] = prop_name_chars[random() % (sizeof(prop_name_chars) - 1)]; in LocalPropertyTestState()
83 if (system_properties_.Add(names[i], name_lens[i], values[i], value_lens[i]) < 0) { in LocalPropertyTestState()
85 printf("%s = %.*s\n", names[i], value_lens[i], values[i]); in LocalPropertyTestState()
104 for (int i = 0; i < nprops; i++) { in ~LocalPropertyTestState() local
105 delete names[i]; in ~LocalPropertyTestState()
106 delete values[i]; in ~LocalPropertyTestState()
161 for (size_t i = 0; i < nprops; ++i) { in BM_property_read() local
162 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_read()
165 size_t i = 0; in BM_property_read() local
167 pa.system_properties().Read(pinfo[i], nullptr, propvalue); in BM_property_read()
168 i = (i + 1) % nprops; in BM_property_read()
182 for (size_t i = 0; i < nprops; ++i) { in BM_property_serial() local
183 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_serial()
186 size_t i = 0; in BM_property_serial() local
188 __system_property_serial(pinfo[i]); in BM_property_serial()
189 i = (i + 1) % nprops; in BM_property_serial()