Home
last modified time | relevance | path

Searched refs:client_states (Results 1 – 25 of 66) sorted by relevance

123

/dports/www/chromium-legacy/chromium-88.0.4324.182/chrome/browser/notifications/scheduler/internal/
H A Dscheduler_utils.cc19 std::map<SchedulerClientType, const ClientState*> client_states; in NotificationsShownToday() local
21 client_states.emplace(state->type, state); in NotificationsShownToday()
24 NotificationsShownToday(client_states, &shown_per_type, &shown_total, in NotificationsShownToday()
30 const std::map<SchedulerClientType, const ClientState*>& client_states, in NotificationsShownToday() argument
40 for (const auto& state : client_states) { in NotificationsShownToday()
H A Dbackground_task_coordinator.cc39 BackgroundTaskCoordinator::ClientStates client_states) { in ScheduleBackgroundTask() argument
60 std::move(client_states)); in ScheduleBackgroundTask()
83 BackgroundTaskCoordinator::ClientStates client_states) { in ProcessThrottledNotifications() argument
92 NotificationsShownToday(client_states, &shown_per_type, &shown_total, in ProcessThrottledNotifications()
97 auto it = client_states.find(type); in ProcessThrottledNotifications()
98 if (pair.second.empty() || (it == client_states.end())) in ProcessThrottledNotifications()
197 ClientStates client_states) override { in ScheduleBackgroundTask() argument
201 std::move(client_states)); in ScheduleBackgroundTask()
H A Dscheduler_utils_unittest.cc102 std::map<SchedulerClientType, const ClientState*> client_states; in TEST_F() local
132 client_states[SchedulerClientType::kTest1] = new_client1.get(); in TEST_F()
133 client_states[SchedulerClientType::kTest2] = new_client2.get(); in TEST_F()
134 client_states[SchedulerClientType::kTest3] = new_client3.get(); in TEST_F()
139 NotificationsShownToday(client_states, &shown_per_type, &shown_total, in TEST_F()
H A Ddisplay_decider.cc30 ClientStates client_states) in DecisionHelper() argument
32 client_states_(std::move(client_states)), in DecisionHelper()
184 ClientStates client_states, in FindNotificationsToShow() argument
202 std::move(client_states)); in FindNotificationsToShow()
H A Dnotification_scheduler.cc308 DisplayDecider::ClientStates client_states; in FindNotificationToShow() local
309 context_->impression_tracker()->GetClientStates(&client_states); in FindNotificationToShow()
315 std::move(notifications), std::move(client_states), &results); in FindNotificationToShow()
338 BackgroundTaskCoordinator::ClientStates client_states; in ScheduleBackgroundTask() local
339 context_->impression_tracker()->GetClientStates(&client_states); in ScheduleBackgroundTask()
342 std::move(notifications), std::move(client_states)); in ScheduleBackgroundTask()
H A Ddisplay_decider_unittest.cc106 std::map<SchedulerClientType, const ClientState*> client_states; in RunTestCase() local
108 client_states.emplace(type.first, type.second.get()); in RunTestCase()
115 std::move(client_states), &results_); in RunTestCase()
H A Dimpression_history_tracker_unittest.cc161 std::map<SchedulerClientType, const ClientState*> client_states; in VerifyClientStates() local
162 impression_trakcer_->GetClientStates(&client_states); in VerifyClientStates()
167 DCHECK_EQ(expected_client_states.size(), client_states.size()); in VerifyClientStates()
169 auto output_it = client_states.find(expected.first); in VerifyClientStates()
170 DCHECK(output_it != client_states.end()); in VerifyClientStates()
H A Dbackground_task_coordinator_unittest.cc123 std::map<SchedulerClientType, const ClientState*> client_states; in ScheduleTask() local
125 client_states.emplace(type.first, type.second.get()); in ScheduleTask()
133 std::move(client_states)); in ScheduleTask()
H A Dimpression_history_tracker.h68 std::map<SchedulerClientType, const ClientState*>* client_states)
110 client_states) const override;
H A Dscheduler_utils.h26 const std::map<SchedulerClientType, const ClientState*>& client_states,
H A Dbackground_task_coordinator.h48 ClientStates client_states) = 0;
H A Ddisplay_decider.h53 ClientStates client_states,
H A Dimpression_store_unittest.cc85 void CreateTestProto(const TestClientStates& client_states) { in CreateTestProto() argument
86 for (const auto& pair : client_states) { in CreateTestProto()
H A Dimpression_history_tracker.cc117 std::map<SchedulerClientType, const ClientState*>* client_states) const { in GetClientStates()
119 DCHECK(client_states); in GetClientStates()
120 client_states->clear(); in GetClientStates()
122 client_states->emplace(pair.first, pair.second.get()); in GetClientStates()
/dports/www/chromium-legacy/chromium-88.0.4324.182/chrome/browser/notifications/scheduler/test/
H A Dtest_utils.cc56 ImpressionHistoryTracker::ClientStates* client_states) { in AddImpressionTestData() argument
57 DCHECK(client_states); in AddImpressionTestData()
61 client_states->emplace(test_data.type, std::move(client_state)); in AddImpressionTestData()
67 std::vector<std::unique_ptr<ClientState>>* client_states) { in AddImpressionTestData() argument
68 DCHECK(client_states); in AddImpressionTestData()
72 client_states->emplace_back(std::move(client_state)); in AddImpressionTestData()
H A Dtest_utils.h52 ImpressionHistoryTracker::ClientStates* client_states);
57 std::vector<std::unique_ptr<ClientState>>* client_states);
H A Dmock_background_task_coordinator.h20 BackgroundTaskCoordinator::ClientStates client_states));
/dports/games/freeciv/freeciv-2.6.6/client/
H A Dclient_main.h43 enum client_states { enum
61 void set_client_state(enum client_states newstate);
62 enum client_states client_state(void);
H A Dclient_main.c150 static enum client_states civclient_state = C_S_INITIAL;
825 void set_client_state(enum client_states newstate) in set_client_state()
827 enum client_states oldstate = civclient_state; in set_client_state()
1008 enum client_states client_state(void) in client_state()
/dports/games/freeciv-nox11/freeciv-2.6.6/client/
H A Dclient_main.h43 enum client_states { enum
61 void set_client_state(enum client_states newstate);
62 enum client_states client_state(void);
H A Dclient_main.c150 static enum client_states civclient_state = C_S_INITIAL;
825 void set_client_state(enum client_states newstate) in set_client_state()
827 enum client_states oldstate = civclient_state; in set_client_state()
1008 enum client_states client_state(void) in client_state()
/dports/games/residualvm/residualvm-0.3.1/graphics/tinygl/
H A Darrays.cpp40 int states = c->client_states; in glopArrayElement()
93 c->client_states |= p[1].i; in glopEnableClientState()
97 c->client_states &= p[1].i; in glopDisableClientState()
/dports/games/scummvm/scummvm-2.5.1/graphics/tinygl/
H A Darrays.cpp40 int states = c->client_states; in glopArrayElement()
93 c->client_states |= p[1].i; in glopEnableClientState()
97 c->client_states &= p[1].i; in glopDisableClientState()
/dports/www/privoxy/privoxy-3.0.33-stable/
H A Djcc.h48 extern struct client_states clients[1];
/dports/www/epiphany/epiphany-41.0/lib/safe-browsing/
H A Dephy-gsb-utils.c368 JsonArray *client_states; in ephy_gsb_utils_make_full_hashes_request() local
377 client_states = json_array_new (); in ephy_gsb_utils_make_full_hashes_request()
392 json_array_add_string_element (client_states, list->client_state); in ephy_gsb_utils_make_full_hashes_request()
430 json_object_set_array_member (body_obj, "clientStates", client_states); in ephy_gsb_utils_make_full_hashes_request()

123