summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-08 21:43:50 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-08 21:43:50 +0000
commitbe2f58366a4ae12008788982054759fbee2b4c05 (patch)
treea8704432184c106d656b1f280fcb730078f4b8c9
parent4715b188c2be5e25a11ea85cec9369a2510478a6 (diff)
parent6b948f292ba86032e41a2827f380fc3f2c57be5b (diff)
Snap for 10285248 from 6b948f292ba86032e41a2827f380fc3f2c57be5b to tm-platform-release
Change-Id: I49b5dc89cbe53c26f742a338519f5a8c84c5d6d3
-rw-r--r--services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
index 140cabb808..04aeabaa01 100644
--- a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
+++ b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
@@ -793,29 +793,8 @@ Status AudioPolicyService::startInput(int32_t portIdAidl)
Mutex::Autolock _l(mLock);
- ALOGW_IF(client->silenced, "startInput on silenced input for port %d, uid %d. Unsilencing.",
- portIdAidl,
- client->attributionSource.uid);
-
- if (client->active) {
- ALOGE("Client should never be active before startInput. Uid %d port %d",
- client->attributionSource.uid, portId);
- finishRecording(client->attributionSource, client->attributes.source);
- return binderStatusFromStatusT(INVALID_OPERATION);
- }
-
- // Force the possibly silenced client to be unsilenced since we just called
- // startRecording (i.e. we have assumed it is unsilenced).
- // At this point in time, the client is inactive, so no calls to appops are sent in
- // setAppState_l.
- // This ensures existing clients have the same behavior as new clients (starting unsilenced).
- // TODO(b/282076713)
- setAppState_l(client, APP_STATE_TOP);
-
client->active = true;
client->startTimeNs = systemTime();
- // This call updates the silenced state, and since we are active, appropriately notifies appops
- // if we silence the track.
updateUidStates_l();
status_t status;