Home
last modified time | relevance | path

Searched refs:TestClient (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/services/camera/libcameraservice/tests/
DClientManagerTest.cpp25 struct TestClient { struct
26 TestClient(int id, int32_t cost, const std::set<int>& conflictingKeys, int32_t ownerId, in TestClient() argument
39 using TestClientDescriptor = ClientDescriptor<int, TestClient>; argument
42 TestDescriptorPtr makeDescFromTestClient(const TestClient& tc) { in makeDescFromTestClient()
47 class TestClientManager : public ClientManager<int, TestClient> {
61 TestClient cam0Client(/*ID*/0, /*cost*/100, /*conflicts*/{1}, in TEST()
67 TestClient cam1Client(/*ID*/1, /*cost*/100, /*conflicts*/{0}, in TEST()
78 TestClient cam2Client(/*ID*/2, /*cost*/100, /*conflicts*/{}, in TEST()
84 TestClient cam3Client(/*ID*/3, /*cost*/100, /*conflicts*/{}, in TEST()
99 TestClient cam0ClientNew(/*ID*/0, /*cost*/100, /*conflicts*/{1}, in TEST()
/frameworks/av/media/libmediatranscoding/tests/
DTranscodingClientManager_tests.cpp49 struct TestClient : public BnTranscodingServiceClient { struct
50 TestClient(const std::shared_ptr<IMediaTranscodingService>& service) : mService(service) { in TestClient() argument
80 virtual ~TestClient() { ALOGI("TestClient destroyed"); }; in ~TestClient() argument
84 TestClient(const TestClient&) = delete;
85 TestClient& operator=(const TestClient&) = delete;
102 mTestClient = ::ndk::SharedRefBase::make<TestClient>(mService); in SetUp()
119 ::ndk::SharedRefBase::make<TestClient>(mService); in TEST_F()
133 ::ndk::SharedRefBase::make<TestClient>(mService); in TEST_F()
147 ::ndk::SharedRefBase::make<TestClient>(mService); in TEST_F()
161 ::ndk::SharedRefBase::make<TestClient>(mService); in TEST_F()
[all …]
/frameworks/native/libs/vr/libpdx_uds/
Dservice_framework_tests.cpp262 class TestClient : public ClientBase<TestClient> { class
329 std::unique_ptr<TestClient> GetNewChannel() { in GetNewChannel()
333 return TestClient::Create(status.take()); in GetNewChannel()
339 std::unique_ptr<TestClient> GetNewChannelFromOtherService() { in GetNewChannelFromOtherService()
344 return TestClient::Create(status.take()); in GetNewChannelFromOtherService()
392 using ClientBase<TestClient>::event_fd;
399 explicit TestClient(const std::string& name) in TestClient() function in __anon3442cbd30111::TestClient
403 explicit TestClient(LocalChannelHandle channel) in TestClient() function in __anon3442cbd30111::TestClient
406 TestClient(const TestClient&) = delete;
407 void operator=(const TestClient&) = delete;
[all …]
Dclient_channel_tests.cpp69 class TestClient : public ClientBase<TestClient> { class
116 client_ = TestClient::Create(status.take()); in SetUp()
126 std::shared_ptr<TestClient> client_;
139 auto worker = [](std::shared_ptr<TestClient> client, in TEST_F()
Dremote_method_tests.cpp190 class TestClient : public ClientBase<TestClient> { class
331 explicit TestClient(LocalChannelHandle channel_handle) in TestClient() function in __anon586972210111::TestClient
334 TestClient() in TestClient() function in __anon586972210111::TestClient
338 TestClient(const TestClient&) = delete;
339 void operator=(const TestClient&) = delete;
594 auto client = TestClient::Create(); in TEST_F()
647 auto client = TestClient::Create(); in TEST_F()
691 auto client = TestClient::Create(); in TEST_F()
701 auto client2 = TestClient::Create(std::move(channel)); in TEST_F()
716 auto client = TestClient::Create(); in TEST_F()
[all …]
/frameworks/av/services/mediatranscoding/tests/
Dmediatranscodingservice_tests.cpp75 struct TestClient : public BnTranscodingServiceClient { struct
76 TestClient(const std::shared_ptr<IMediaTranscodingService>& service) : mService(service) { in TestClient() argument
106 virtual ~TestClient() { ALOGI("TestClient destroyed"); }; in ~TestClient() argument
122 ::ndk::SharedRefBase::make<TestClient>(mService); in TEST_F()
134 ::ndk::SharedRefBase::make<TestClient>(mService); in TEST_F()
146 ::ndk::SharedRefBase::make<TestClient>(mService); in TEST_F()
158 ::ndk::SharedRefBase::make<TestClient>(mService); in TEST_F()
186 ::ndk::SharedRefBase::make<TestClient>(mService); in TEST_F()
216 ::ndk::SharedRefBase::make<TestClient>(mService); in TEST_F()
/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerService_test.cpp123 struct TestClient : public BnResourceManagerClient { struct
124 TestClient(int pid, const std::shared_ptr<ResourceManagerService> &service) in TestClient() function
128 mService->removeClient(mPid, getId(ref<TestClient>())); in reclaimResource()
147 virtual ~TestClient() {} in ~TestClient() argument
153 DISALLOW_EVIL_CONSTRUCTORS(TestClient);
184 mTestClient1(::ndk::SharedRefBase::make<TestClient>(kTestPid1, mService)), in ResourceManagerServiceTest()
185 mTestClient2(::ndk::SharedRefBase::make<TestClient>(kTestPid2, mService)), in ResourceManagerServiceTest()
186 mTestClient3(::ndk::SharedRefBase::make<TestClient>(kTestPid2, mService)) { in ResourceManagerServiceTest()
212 TestClient *client1 = static_cast<TestClient*>(mTestClient1.get()); in verifyClients()
213 TestClient *client2 = static_cast<TestClient*>(mTestClient2.get()); in verifyClients()
[all …]