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

Skip to content
Commit 323711ff authored by Girish's avatar Girish
Browse files

drm: refactor resourcemanager death handling

media.resource.manager Binder death notification is refactored as it:
  - doesn't connect with the resource.manager upon death.

So, the following changes are made with this CL:
  - Reconnect with the resource.manager upon death
  - Re-register all the resources, so that resource.manager
    will have all the resource information to help with
    drm session reclaim.
  - Replacing the deprecated API AServiceManager_getService
    with AServiceManager_waitForService.

Bug: 284031542
Test: atest android.media.misc.cts.ResourceManagerTest
Test: atest android.resourcemanager.cts.ResourceManagerHostJUnit4Test
Test: DrmSessionManagerTest
Test: DrmSessionManager_test
Test: MediaDrmClearkeyTest.testGetNumberOfSessions
Merged-In: If0468444741a076321dbf3666628dc89833f2dc9
Change-Id: If0468444741a076321dbf3666628dc89833f2dc9
parent 429f8598
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment