Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 224fc63e authored by Girish's avatar Girish
Browse files

resourcemanager: move common code into different source.

This change moves all the common code into a separate source
to enable extenstion of resource manager service implementation.
And also, a new creation function is added to enable the same.

Bug: 294886363
Test: atest android.media.misc.cts.ResourceManagerTest
      atest android.media.misc.cts.ResourceManagerMultiTest
      /data/nativetest64/ResourceManagerService_test/ResourceManagerService_test
      /data/nativetest64/ResourceObserverService_test/ResourceObserverService_test
Change-Id: I70f4776979104f1468e2791bb8e977ab85d9676a
parent 0ec29f2e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -148,8 +148,8 @@ static const std::vector<uint8_t> kTestSessionId3{9, 0};
class DrmSessionManagerTest : public ::testing::Test {
public:
    DrmSessionManagerTest()
        : mService(::ndk::SharedRefBase::make<ResourceManagerService>
            (new FakeProcessInfo(), new FakeSystemCallback())),
        : mService(ResourceManagerService::Create(
                  new FakeProcessInfo(), new FakeSystemCallback())),
          mDrmSessionManager(new DrmSessionManager(mService)),
          mTestDrm1(::ndk::SharedRefBase::make<FakeDrm>(
                  kTestSessionId1, mDrmSessionManager)),
+87 −230

File changed.

Preview size limit exceeded, changes collapsed.

+22 −61

File changed.

Preview size limit exceeded, changes collapsed.

+122 −15

File changed.

Preview size limit exceeded, changes collapsed.

+143 −5

File changed.

Preview size limit exceeded, changes collapsed.

Loading