/frameworks/av/services/camera/libcameraservice/tests/ |
D | ClientManagerTest.cpp | 28 struct TestClient { struct 29 TestClient(int id, int32_t cost, const std::set<int>& conflictingKeys, int32_t ownerId, in TestClient() function 42 using TestClientDescriptor = ClientDescriptor<int, TestClient>; argument 45 TestDescriptorPtr makeDescFromTestClient(const TestClient& tc) { in makeDescFromTestClient() 50 class TestClientManager : public ClientManager<int, TestClient> { 64 TestClient cam0Client(/*ID*/0, /*cost*/100, /*conflicts*/{1}, in TEST() 71 TestClient cam1Client(/*ID*/1, /*cost*/100, /*conflicts*/{0}, in TEST() 83 TestClient cam2Client(/*ID*/2, /*cost*/100, /*conflicts*/{}, in TEST() 90 TestClient cam3Client(/*ID*/3, /*cost*/100, /*conflicts*/{}, in TEST() 106 TestClient cam0ClientNew(/*ID*/0, /*cost*/100, /*conflicts*/{1}, in TEST() [all …]
|
/frameworks/av/services/mediaresourcemanager/test/ |
D | ResourceManagerServiceTestUtils.h | 125 struct TestClient : public BnResourceManagerClient { struct 126 TestClient(int pid, int uid, int32_t clientImportance, in TestClient() argument 133 .id = getId(ref<TestClient>()), in reclaimResource() argument 153 virtual ~TestClient() {} in ~TestClient() argument 165 DISALLOW_EVIL_CONSTRUCTORS(TestClient); argument 215 static TestClient* toTestClient(std::shared_ptr<IResourceManagerClient> testClient) { in toTestClient() 216 return static_cast<TestClient*>(testClient.get()); in toTestClient() 233 mTestClient1 = ::ndk::SharedRefBase::make<TestClient>(kTestPid1, kTestUid1, 0, mService); in SetUp() 234 mTestClient2 = ::ndk::SharedRefBase::make<TestClient>(kTestPid2, kTestUid2, 0, mService); in SetUp() 235 mTestClient3 = ::ndk::SharedRefBase::make<TestClient>(kTestPid2, kTestUid2, 0, mService); in SetUp() [all …]
|
D | ResourceManagerService_test.cpp | 1580 TestClient* testClient = toTestClient(client); in addNonSecureVideoCodecResource()
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | service_framework_tests.cpp | 262 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 …]
|
D | client_channel_tests.cpp | 69 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()
|
D | remote_method_tests.cpp | 190 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/mediaresourcemanager/fuzzer/ |
D | mediaresourcemanager_fuzzer.cpp | 137 struct TestClient : public BnResourceManagerClient { struct 138 TestClient(int pid, int uid, const shared_ptr<ResourceManagerService>& service) in TestClient() argument 144 .id = getId(ref<TestClient>()), in reclaimResource() argument 157 virtual ~TestClient() {} in ~TestClient() argument 164 DISALLOW_EVIL_CONSTRUCTORS(TestClient); argument 255 ::ndk::SharedRefBase::make<TestClient>(threadArgs[k].pid, threadArgs[k].uid, in setResources() 274 ::ndk::SharedRefBase::make<TestClient>(pidZero, 0, mService); in setResources()
|