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

Commit fbdfebe5 authored by Kevin Rocard's avatar Kevin Rocard
Browse files

Audio policy: remove using namespace std in header



Introduced by I1442a9dda1553e9ea7a4a654c50555ac1ec06aa0

Bug: 79417899
Test: m -j
Change-Id: I4d5a598ea1a376f12c133c0fc6a425a738da7a7a
Signed-off-by: default avatarKevin Rocard <krocard@google.com>
parent a59b02d1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -533,7 +533,7 @@ status_t AudioPolicyService::startInput(audio_port_handle_t portId, bool *silenc
                item->setCString(kAudioPolicyRqstPkg,
                                 std::string(String8(client->opPackageName).string()).c_str());
            } else {
                item->setCString(kAudioPolicyRqstPkg, to_string(client->uid).c_str());
                item->setCString(kAudioPolicyRqstPkg, std::to_string(client->uid).c_str());
            }
            item->setCString(
                    kAudioPolicyRqstDevice, getDeviceTypeStrForPortId(client->deviceId).c_str());
@@ -558,7 +558,8 @@ status_t AudioPolicyService::startInput(audio_port_handle_t portId, bool *silenc
                            item->setCString(kAudioPolicyActivePkg,
                                 std::string(String8(other->opPackageName).string()).c_str());
                        } else {
                            item->setCString(kAudioPolicyRqstPkg, to_string(other->uid).c_str());
                            item->setCString(kAudioPolicyRqstPkg,
                                             std::to_string(other->uid).c_str());
                        }
                        item->setCString(kAudioPolicyActiveDevice,
                                         getDeviceTypeStrForPortId(other->deviceId).c_str());
+0 −2
Original line number Diff line number Diff line
@@ -38,8 +38,6 @@

namespace android {

using namespace std;

// ----------------------------------------------------------------------------

class AudioPolicyService :