Home
last modified time | relevance | path

Searched refs:mSystemCB (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerServiceTestUtils.h227 mSystemCB = new TestSystemCallback(); in SetUp()
229 mService = ResourceManagerService::CreateNew(new TestProcessInfo, mSystemCB); in SetUp()
231 mService = ResourceManagerService::Create(new TestProcessInfo, mSystemCB); in SetUp()
243 sp<TestSystemCallback> mSystemCB; variable
DResourceManagerService_test.cpp875 EXPECT_EQ(1u, mSystemCB->eventCount()); in testBatteryStats()
876 EXPECT_EQ(EventType::VIDEO_RESET, mSystemCB->lastEventType()); in testBatteryStats()
887 EXPECT_EQ(2u, mSystemCB->eventCount()); in testBatteryStats()
888 EXPECT_EQ(EventEntry({EventType::VIDEO_ON, kTestUid1}), mSystemCB->lastEvent()); in testBatteryStats()
892 EXPECT_EQ(2u, mSystemCB->eventCount()); in testBatteryStats()
903 EXPECT_EQ(3u, mSystemCB->eventCount()); in testBatteryStats()
904 EXPECT_EQ(EventEntry({EventType::VIDEO_ON, kTestUid2}), mSystemCB->lastEvent()); in testBatteryStats()
908 EXPECT_EQ(3u, mSystemCB->eventCount()); in testBatteryStats()
913 EXPECT_EQ(4u, mSystemCB->eventCount()); in testBatteryStats()
914 EXPECT_EQ(EventEntry({EventType::VIDEO_OFF, kTestUid1}), mSystemCB->lastEvent()); in testBatteryStats()
[all …]
/frameworks/av/services/mediaresourcemanager/
DResourceManagerService.cpp177 mSystemCB(systemResource), in ResourceManagerService()
182 mSystemCB->noteResetVideo(); in ResourceManagerService()
277 if (mSystemCB->requestCpusetBoost(true) != OK) { in onFirstAdded()
284 mSystemCB->noteStartVideo(uid); in onFirstAdded()
293 mSystemCB->requestCpusetBoost(false); in onLastRemoved()
298 mSystemCB->noteStopVideo(uid); in onLastRemoved()
DResourceManagerService.h247 sp<SystemCallbackInterface> mSystemCB; variable