Lines Matching refs:nprops
39 explicit LocalPropertyTestState(int nprops) in LocalPropertyTestState()
40 : nprops(nprops), valid(false), system_properties_(false) { in LocalPropertyTestState()
48 names = new char* [nprops]; in LocalPropertyTestState()
49 name_lens = new int[nprops]; in LocalPropertyTestState()
50 values = new char* [nprops]; in LocalPropertyTestState()
51 value_lens = new int[nprops]; in LocalPropertyTestState()
53 srandom(nprops); in LocalPropertyTestState()
55 for (int i = 0; i < nprops; i++) { in LocalPropertyTestState()
104 for (int i = 0; i < nprops; i++) { in ~LocalPropertyTestState()
115 const int nprops; member
128 const size_t nprops = state.range(0); in BM_property_get() local
130 LocalPropertyTestState pa(nprops); in BM_property_get()
135 pa.system_properties().Get(pa.names[random() % nprops], value); in BM_property_get()
141 const size_t nprops = state.range(0); in BM_property_find() local
143 LocalPropertyTestState pa(nprops); in BM_property_find()
147 pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_find()
153 const size_t nprops = state.range(0); in BM_property_read() local
155 LocalPropertyTestState pa(nprops); in BM_property_read()
158 const prop_info** pinfo = new const prop_info*[nprops]; in BM_property_read()
161 for (size_t i = 0; i < nprops; ++i) { in BM_property_read()
162 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_read()
168 i = (i + 1) % nprops; in BM_property_read()
176 const size_t nprops = state.range(0); in BM_property_serial() local
178 LocalPropertyTestState pa(nprops); in BM_property_serial()
181 const prop_info** pinfo = new const prop_info*[nprops]; in BM_property_serial()
182 for (size_t i = 0; i < nprops; ++i) { in BM_property_serial()
183 pinfo[i] = pa.system_properties().Find(pa.names[random() % nprops]); in BM_property_serial()
189 i = (i + 1) % nprops; in BM_property_serial()