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

Skip to content
Commit a3c96511 authored by Girish's avatar Girish Committed by Cherrypicker Worker
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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0f5dbbd69e2b9252f163b44a88bb32499c39fb0a)
Merged-In: If0468444741a076321dbf3666628dc89833f2dc9
Change-Id: If0468444741a076321dbf3666628dc89833f2dc9
parent f9137e41
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