Lines Matching defs:ServiceListener
73 struct ServiceListener : public BnCameraServiceListener {
75 ServiceListener() :
610 sp<ServiceListener> listener = new ServiceListener();
613 ServiceListener::Status currentStatus;
618 EXPECT_EQ(ServiceListener::STATUS_PRESENT, currentStatus);
623 if (currentStatus == ServiceListener::STATUS_PRESENT) {
638 ServiceListener::Status stat = ServiceListener::STATUS_UNKNOWN;
644 if (stat == ServiceListener::STATUS_PRESENT) {
647 } else if (stat == ServiceListener::STATUS_NOT_AVAILABLE) {
650 } else if (stat == ServiceListener::STATUS_NOT_PRESENT) {
1235 ASSERT_EQ(4u, sizeof(ServiceListener::Status));
1237 sp<ServiceListener> listener = new ServiceListener();
1251 sp<ServiceListener> listener = new ServiceListener();
1260 ServiceListener::Status stat = ServiceListener::STATUS_UNKNOWN;
1263 EXPECT_EQ(ServiceListener::STATUS_NOT_AVAILABLE, stat);
1270 EXPECT_EQ(ServiceListener::STATUS_PRESENT, stat);