Loading services/audioflinger/ServiceUtilities.cpp +0 −7 Original line number Diff line number Diff line Loading @@ -50,13 +50,6 @@ bool captureHotwordAllowed() { return ok; } bool captureFmTunerAllowed() { static const String16 sCaptureFmTunerAllowed("android.permission.ACCESS_FM_RADIO"); bool ok = checkCallingPermission(sCaptureFmTunerAllowed); if (!ok) ALOGE("android.permission.ACCESS_FM_RADIO"); return ok; } bool settingsAllowed() { if (getpid_cached == IPCThreadState::self()->getCallingPid()) return true; static const String16 sAudioSettings("android.permission.MODIFY_AUDIO_SETTINGS"); Loading services/audioflinger/ServiceUtilities.h +0 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ extern pid_t getpid_cached; bool recordingAllowed(); bool captureAudioOutputAllowed(); bool captureHotwordAllowed(); bool captureFmTunerAllowed(); bool settingsAllowed(); bool modifyAudioRoutingAllowed(); bool dumpAllowed(); Loading services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -262,8 +262,7 @@ status_t AudioPolicyService::getInputForAttr(const audio_attributes_t *attr, return BAD_VALUE; } if (((attr->source == AUDIO_SOURCE_HOTWORD) && !captureHotwordAllowed()) || ((attr->source == AUDIO_SOURCE_FM_TUNER) && !captureFmTunerAllowed())) { if ((attr->source == AUDIO_SOURCE_HOTWORD) && !captureHotwordAllowed()) { return BAD_VALUE; } sp<AudioPolicyEffects>audioPolicyEffects; Loading services/audiopolicy/service/AudioPolicyInterfaceImplLegacy.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -255,8 +255,7 @@ status_t AudioPolicyService::getInputForAttr(const audio_attributes_t *attr, inputSource = AUDIO_SOURCE_MIC; } if (((inputSource == AUDIO_SOURCE_HOTWORD) && !captureHotwordAllowed()) || ((inputSource == AUDIO_SOURCE_FM_TUNER) && !captureFmTunerAllowed())) { if ((inputSource == AUDIO_SOURCE_HOTWORD) && !captureHotwordAllowed()) { return BAD_VALUE; } Loading Loading
services/audioflinger/ServiceUtilities.cpp +0 −7 Original line number Diff line number Diff line Loading @@ -50,13 +50,6 @@ bool captureHotwordAllowed() { return ok; } bool captureFmTunerAllowed() { static const String16 sCaptureFmTunerAllowed("android.permission.ACCESS_FM_RADIO"); bool ok = checkCallingPermission(sCaptureFmTunerAllowed); if (!ok) ALOGE("android.permission.ACCESS_FM_RADIO"); return ok; } bool settingsAllowed() { if (getpid_cached == IPCThreadState::self()->getCallingPid()) return true; static const String16 sAudioSettings("android.permission.MODIFY_AUDIO_SETTINGS"); Loading
services/audioflinger/ServiceUtilities.h +0 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ extern pid_t getpid_cached; bool recordingAllowed(); bool captureAudioOutputAllowed(); bool captureHotwordAllowed(); bool captureFmTunerAllowed(); bool settingsAllowed(); bool modifyAudioRoutingAllowed(); bool dumpAllowed(); Loading
services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -262,8 +262,7 @@ status_t AudioPolicyService::getInputForAttr(const audio_attributes_t *attr, return BAD_VALUE; } if (((attr->source == AUDIO_SOURCE_HOTWORD) && !captureHotwordAllowed()) || ((attr->source == AUDIO_SOURCE_FM_TUNER) && !captureFmTunerAllowed())) { if ((attr->source == AUDIO_SOURCE_HOTWORD) && !captureHotwordAllowed()) { return BAD_VALUE; } sp<AudioPolicyEffects>audioPolicyEffects; Loading
services/audiopolicy/service/AudioPolicyInterfaceImplLegacy.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -255,8 +255,7 @@ status_t AudioPolicyService::getInputForAttr(const audio_attributes_t *attr, inputSource = AUDIO_SOURCE_MIC; } if (((inputSource == AUDIO_SOURCE_HOTWORD) && !captureHotwordAllowed()) || ((inputSource == AUDIO_SOURCE_FM_TUNER) && !captureFmTunerAllowed())) { if ((inputSource == AUDIO_SOURCE_HOTWORD) && !captureHotwordAllowed()) { return BAD_VALUE; } Loading