Home
last modified time | relevance | path

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

/frameworks/av/services/mediaresourcemanager/test/
DResourceObserverService_test.cpp173 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/
DResourceTracker.cpp80 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()
DResourceManagerService.cpp250 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()
DResourceTracker.h245 std::shared_ptr<ResourceObserverService> mObserverService; variable
DResourceManagerService.h261 std::shared_ptr<ResourceObserverService> mObserverService; variable