Home | History | Annotate | Download | only in android

Lines Matching refs:entry

64  * each entry is a zero-terminator for its 'sensor_name' field. The end of the
65 * entire list is marked with an entry, containing -1 at its 'sensor_id' field.
116 _sensor_entry_is_terminator(const SensorEntry* entry)
118 return entry == NULL || entry->sensor_id == -1;
126 _sensor_entry_next(const SensorEntry* entry)
128 if (!_sensor_entry_is_terminator(entry)) {
131 entry = (const SensorEntry*)(entry->sensor_name + strlen(entry->sensor_name) + 1);
132 if (!_sensor_entry_is_terminator(entry)) {
133 return entry;
141 _sensor_entry_list_size(const SensorEntry* entry) {
143 while (!_sensor_entry_is_terminator(entry)) {
145 entry = _sensor_entry_next(entry);
195 const SensorEntry* entry = _sensor_entry_is_terminator(list) ? NULL : list;
196 for (n = 0; n < count && entry != NULL; n++) {
200 android_sensors_get_id_from_name((char*)entry->sensor_name);
205 desc->sensor_id = entry->sensor_id;
206 desc->sensor_name = ASTRDUP(entry->sensor_name);
213 entry->sensor_name);
215 entry = _sensor_entry_next(entry);