Home
last modified time | relevance | path

Searched refs:mObserverService (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/services/mediaresourcemanager/test/
DResourceObserverService_test.cpp170 mObserverService(::ndk::SharedRefBase::make<ResourceObserverService>()), in ResourceObserverServiceTest()
174 mService->setObserverService(mObserverService); in ResourceObserverServiceTest()
185 EXPECT_TRUE(mObserverService->registerObserver(mTestObserver1, filters1).isOk()); in registerObservers()
188 EXPECT_TRUE(mObserverService->registerObserver(mTestObserver2, filters2).isOk()); in registerObservers()
191 EXPECT_TRUE(mObserverService->registerObserver(mTestObserver3, filters3).isOk()); in registerObservers()
195 std::shared_ptr<ResourceObserverService> mObserverService; member in android::ResourceObserverServiceTest
206 status = mObserverService->registerObserver(nullptr, filters1); in TEST_F()
211 status = mObserverService->registerObserver(mTestObserver1, filters1); in TEST_F()
217 EXPECT_TRUE(mObserverService->registerObserver(mTestObserver1, filters1).isOk()); in TEST_F()
220 status = mObserverService->registerObserver(mTestObserver1, filters1); in TEST_F()
[all …]
/frameworks/av/services/mediaresourcemanager/
DResourceManagerService.cpp368 mObserverService = observerService; in setObserverService()
489 if (mObserverService != nullptr && !resourceAdded.empty()) { in addResource()
490 mObserverService->onResourceAdded(uid, pid, resourceAdded); in addResource()
553 if (mObserverService != nullptr && !resourceRemoved.empty()) { in removeResource()
554 mObserverService->onResourceRemoved(info.uid, pid, resourceRemoved); in removeResource()
597 if (mObserverService != nullptr && !info.resources.empty()) { in removeResource()
598 mObserverService->onResourceRemoved(info.uid, pid, info.resources); in removeResource()
DResourceManagerService.h193 std::shared_ptr<ResourceObserverService> mObserverService; variable