Home
last modified time | relevance | path

Searched refs:AppAvailabilityResult (Results 1 – 11 of 11) sorted by relevance

/external/openscreen/cast/sender/
Dcast_app_availability_tracker.cc63 AppAvailabilityResult old_availability = it == availabilities.end() in UpdateAppAvailability()
64 ? AppAvailabilityResult::kUnknown in UpdateAppAvailability()
66 AppAvailabilityResult new_availability = availability.availability; in UpdateAppAvailability()
69 bool updated = (old_availability == AppAvailabilityResult::kAvailable || in UpdateAppAvailability()
70 new_availability == AppAvailabilityResult::kAvailable) && in UpdateAppAvailability()
105 if (availability.second.availability == AppAvailabilityResult::kAvailable) { in GetSupportedSources()
125 return {AppAvailabilityResult::kUnknown, Clock::time_point{}}; in GetAvailability()
131 return {AppAvailabilityResult::kUnknown, Clock::time_point{}}; in GetAvailability()
157 AppAvailabilityResult::kAvailable) { in GetAvailableReceivers()
Dcast_app_availability_tracker_unittest.cc100 "receiverId1", "AAA", {AppAvailabilityResult::kAvailable, Now()}), in TEST_F()
117 "receiverId2", "AAA", {AppAvailabilityResult::kAvailable, Now()}), in TEST_F()
128 "receiverId2", "AAA", {AppAvailabilityResult::kUnavailable, Now()}), in TEST_F()
139 {AppAvailabilityResult::kAvailable, Now()}); in TEST_F()
140 EXPECT_EQ(AppAvailabilityResult::kAvailable, in TEST_F()
148 EXPECT_EQ(AppAvailabilityResult::kAvailable, in TEST_F()
153 EXPECT_EQ(AppAvailabilityResult::kUnknown, in TEST_F()
Dcast_platform_client.cc44 AppAvailabilityResult::kUnknown); in ~CastPlatformClient()
55 callback(app_id, AppAvailabilityResult::kUnknown); in RequestAppAvailability()
98 AppAvailabilityResult::kUnknown); in RemoveReceiver()
174 AppAvailabilityResult availability_result = in HandleResponse()
175 AppAvailabilityResult::kUnknown; in HandleResponse()
177 availability_result = AppAvailabilityResult::kAvailable; in HandleResponse()
179 availability_result = AppAvailabilityResult::kUnavailable; in HandleResponse()
199 it->callback(it->app_id, AppAvailabilityResult::kUnknown); in CancelAppAvailabilityRequest()
Dcast_app_discovery_service_impl.cc106 const std::string& app_id, AppAvailabilityResult availability) { in RequestAppAvailability()
117 AppAvailabilityResult availability) { in UpdateAppAvailability()
167 case AppAvailabilityResult::kAvailable: in ShouldRefreshAppAvailability()
169 case AppAvailabilityResult::kUnavailable: in ShouldRefreshAppAvailability()
173 case AppAvailabilityResult::kUnknown: in ShouldRefreshAppAvailability()
Dcast_platform_client_unittest.cc68 [&ran](const std::string& app_id, AppAvailabilityResult availability) { in TEST_F()
70 EXPECT_EQ(availability, AppAvailabilityResult::kAvailable); in TEST_F()
96 [](const std::string& app_id, AppAvailabilityResult availability) { in TEST_F()
Dcast_app_availability_tracker.h53 AppAvailabilityResult availability;
Dcast_app_discovery_service_impl.h58 AppAvailabilityResult result);
Dcast_platform_client.h36 std::function<void(const std::string& app_id, AppAvailabilityResult)>;
/external/openscreen/cast/receiver/channel/
Dmessage_util.cc22 AppAvailabilityResult availability_result) { in CreateAppAvailabilityResponse()
28 availability_result == AppAvailabilityResult::kAvailable in CreateAppAvailabilityResponse()
54 AppAvailabilityResult::kAvailable); in CreateAppAvailableResponse()
61 AppAvailabilityResult::kUnavailable); in CreateAppUnavailableResponse()
/external/openscreen/cast/common/channel/
Dmessage_util.cc90 std::string ToString(AppAvailabilityResult availability) { in ToString()
92 case AppAvailabilityResult::kAvailable: in ToString()
94 case AppAvailabilityResult::kUnavailable: in ToString()
96 case AppAvailabilityResult::kUnknown: in ToString()
Dmessage_util.h158 enum class AppAvailabilityResult { enum
164 std::string ToString(AppAvailabilityResult availability);