Lines Matching refs:metadata
137 : preferences(outPrefs), metadata(outMetadata) {}
178 // Update metadata for this set of preferences.
179 UnitPreferenceMetadata *meta = metadata->emplaceBack(
186 if (metadata->length() > 1) {
189 if (!(*(*metadata)[metadata->length() - 2] <
190 *(*metadata)[metadata->length() - 1])) {
230 MaybeStackVector<UnitPreferenceMetadata> *metadata;
233 int32_t binarySearch(const MaybeStackVector<UnitPreferenceMetadata> *metadata,
238 int32_t end = metadata->length();
244 int32_t cmp = (*metadata)[mid]->compareTo(desired, foundCategory, foundUsage, foundRegion);
262 * @param metadata The full list of UnitPreferenceMetadata instances.
274 * @return The index into the metadata vector which represents the appropriate
277 int32_t getPreferenceMetadataIndex(const MaybeStackVector<UnitPreferenceMetadata> *metadata,
283 int32_t idx = binarySearch(metadata, desired, &foundCategory, &foundUsage, &foundRegion, status);
306 idx = binarySearch(metadata, desired, &foundCategory, &foundUsage, &foundRegion, status);
314 idx = binarySearch(metadata, desired, &foundCategory, &foundUsage, &foundRegion, status);