Skip to content
Commit b0d2de64 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

AudioService: ignore restrictions on removed users.

During test suites we've observed that the USER_BACKGROUND broadcast
can be delivered after a user has been deleted, which can cause
operations like setUserRestriction() to fail.

Ignore these cases to avoid a runtime restart.

Bug: 255835206
Test: atest FrameworksMockingServicesTests:BroadcastRecordTest
Test: atest FrameworksMockingServicesTests:BroadcastQueueTest
Test: atest FrameworksMockingServicesTests:BroadcastQueueModernImplTest
Change-Id: Ia31f276079583c447f34815d0e0067959ea77668
parent f08577b9
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