Searched refs:category_index (Results 1 – 5 of 5) sorted by relevance
84 size_t category_index = base::subtle::Acquire_Load(&g_category_index); in GetCategoryByName() local87 for (size_t i = 0; i < category_index; ++i) { in GetCategoryByName()107 size_t category_index = base::subtle::Acquire_Load(&g_category_index); in GetOrCreateCategoryLocked() local108 if (category_index >= kMaxCategories) { in GetOrCreateCategoryLocked()120 *category = &g_categories[category_index]; in GetOrCreateCategoryLocked()127 base::subtle::Release_Store(&g_category_index, category_index + 1); in GetOrCreateCategoryLocked()150 size_t category_index = base::subtle::Acquire_Load(&g_category_index); in GetAllCategories() local152 &g_categories[category_index]); in GetAllCategories()
45 size_t category_index, in EnableCategoryForInstance() argument48 PERFETTO_DCHECK(category_index < category_count_); in EnableCategoryForInstance()50 state_storage_[category_index].fetch_or( in EnableCategoryForInstance()55 size_t category_index, in DisableCategoryForInstance() argument58 PERFETTO_DCHECK(category_index < category_count_); in DisableCategoryForInstance()60 state_storage_[category_index].fetch_and( in DisableCategoryForInstance()
32 for (int category_index = 1; category_index < num_categories; in get_top_prediction() local33 category_index++) { in get_top_prediction()34 const uint8_t category_score = predictions[category_index]; in get_top_prediction()37 guess = category_index; in get_top_prediction()
120 size_t category_index) {121 return registry->GetCategory(category_index);123 static constexpr size_t GetStaticIndex(size_t category_index) {124 return category_index;192 static bool IsCategoryEnabled(size_t category_index) {193 return Registry->GetCategoryState(category_index)212 static void CallIfCategoryEnabled(size_t category_index,216 {category_index});404 size_t category_index;411 return Registry->GetCategoryState(data.category_index);
217 void EnableCategoryForInstance(size_t category_index,219 void DisableCategoryForInstance(size_t category_index,223 size_t category_index) const { in GetCategoryState() argument224 return &state_storage_[category_index]; in GetCategoryState()