Searched refs:mObserverService (Results 1 – 5 of 5) sorted by relevance
/frameworks/av/services/mediaresourcemanager/test/ |
D | ResourceObserverService_test.cpp | 173 mObserverService = ::ndk::SharedRefBase::make<ResourceObserverService>(); in SetUp() 177 mService->setObserverService(mObserverService); in SetUp() 188 EXPECT_TRUE(mObserverService->registerObserver(mTestObserver1, filters1).isOk()); in registerObservers() 191 EXPECT_TRUE(mObserverService->registerObserver(mTestObserver2, filters2).isOk()); in registerObservers() 194 EXPECT_TRUE(mObserverService->registerObserver(mTestObserver3, filters3).isOk()); in registerObservers() 198 std::shared_ptr<ResourceObserverService> mObserverService; member in android::ResourceObserverServiceTest 209 status = mObserverService->registerObserver(nullptr, filters1); in TEST_F() 214 status = mObserverService->registerObserver(mTestObserver1, filters1); in TEST_F() 220 EXPECT_TRUE(mObserverService->registerObserver(mTestObserver1, filters1).isOk()); in TEST_F() 223 status = mObserverService->registerObserver(mTestObserver1, filters1); in TEST_F() [all …]
|
/frameworks/av/services/mediaresourcemanager/ |
D | ResourceTracker.cpp | 80 mObserverService = observerService; in setResourceObserverService() 132 if (mObserverService != nullptr && !resourceAdded.empty()) { in addResource() 133 mObserverService->onResourceAdded(uid, pid, resourceAdded); in addResource() 195 if (mObserverService != nullptr && !resourceRemoved.empty()) { in removeResource() 196 mObserverService->onResourceRemoved(info.uid, pid, resourceRemoved); in removeResource() 229 if (mObserverService != nullptr && !info.resources.empty()) { in removeResource() 230 mObserverService->onResourceRemoved(info.uid, pid, info.resources); in removeResource()
|
D | ResourceManagerService.cpp | 250 mObserverService = observerService; in setObserverService() 347 if (mObserverService != nullptr && !resourceAdded.empty()) { in addResource() 348 mObserverService->onResourceAdded(uid, pid, resourceAdded); in addResource() 406 if (mObserverService != nullptr && !resourceRemoved.empty()) { in removeResource() 407 mObserverService->onResourceRemoved(info.uid, pid, resourceRemoved); in removeResource() 453 if (mObserverService != nullptr && !info.resources.empty()) { in removeResource() 454 mObserverService->onResourceRemoved(info.uid, pid, info.resources); in removeResource()
|
D | ResourceTracker.h | 245 std::shared_ptr<ResourceObserverService> mObserverService; variable
|
D | ResourceManagerService.h | 261 std::shared_ptr<ResourceObserverService> mObserverService; variable
|