Home | History | Annotate | Download | only in libaudioclient

Lines Matching defs:aps

758     const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
762 if (aps == 0) return PERMISSION_DENIED;
770 return aps->setDeviceConnectionState(device, state, address, name);
776 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
777 if (aps == 0) return AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE;
779 return aps->getDeviceConnectionState(device, device_address);
786 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
790 if (aps == 0) return PERMISSION_DENIED;
798 return aps->handleDeviceConfigChange(device, address, name);
804 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
805 if (aps == 0) return PERMISSION_DENIED;
807 return aps->setPhoneState(state);
812 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
813 if (aps == 0) return PERMISSION_DENIED;
814 return aps->setForceUse(usage, config);
819 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
820 if (aps == 0) return AUDIO_POLICY_FORCE_NONE;
821 return aps->getForceUse(usage);
832 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
833 if (aps == 0) return 0;
834 return aps->getOutput(stream, samplingRate, format, channelMask, flags, offloadInfo);
847 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
848 if (aps == 0) return NO_INIT;
849 return aps->getOutputForAttr(attr, output, session, stream, uid,
858 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
859 if (aps == 0) return PERMISSION_DENIED;
860 return aps->startOutput(output, stream, session);
867 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
868 if (aps == 0) return PERMISSION_DENIED;
869 return aps->stopOutput(output, stream, session);
876 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
877 if (aps == 0) return;
878 aps->releaseOutput(output, stream, session);
891 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
892 if (aps == 0) return NO_INIT;
893 return aps->getInputForAttr(
901 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
902 if (aps == 0) return PERMISSION_DENIED;
903 return aps->startInput(input, session);
909 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
910 if (aps == 0) return PERMISSION_DENIED;
911 return aps->stopInput(input, session);
917 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
918 if (aps == 0) return;
919 aps->releaseInput(input, session);
926 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
927 if (aps == 0) return PERMISSION_DENIED;
928 return aps->initStreamVolume(stream, indexMin, indexMax);
935 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
936 if (aps == 0) return PERMISSION_DENIED;
937 return aps->setStreamVolumeIndex(stream, index, device);
944 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
945 if (aps == 0) return PERMISSION_DENIED;
946 return aps
951 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
952 if (aps == 0) return 0;
953 return aps->getStrategyForStream(stream);
958 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
959 if (aps == 0) return AUDIO_DEVICE_NONE;
960 return aps->getDevicesForStream(stream);
965 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
967 if (aps == 0) return AUDIO_IO_HANDLE_NONE;
968 return aps->getOutputForEffect(desc);
977 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
978 if (aps == 0) return PERMISSION_DENIED;
979 return aps->registerEffect(desc, io, strategy, session, id);
984 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
985 if (aps == 0) return PERMISSION_DENIED;
986 return aps->unregisterEffect(id);
991 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
992 if (aps == 0) return PERMISSION_DENIED;
993 return aps->setEffectEnabled(id, enabled);
998 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
999 if (aps == 0) return PERMISSION_DENIED;
1001 *state = aps->isStreamActive(stream, inPastMs);
1008 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1009 if (aps == 0) return PERMISSION_DENIED;
1011 *state = aps->isStreamActiveRemotely(stream, inPastMs);
1017 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1018 if (aps == 0) return PERMISSION_DENIED;
1020 *state = aps->isSourceActive(stream);
1065 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1066 if (aps == 0) return false;
1067 return aps->isOffloadSupported(info);
1076 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1077 if (aps == 0) return PERMISSION_DENIED;
1078 return aps->listAudioPorts(role, type, num_ports, ports, generation);
1083 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1084 if (aps == 0) return PERMISSION_DENIED;
1085 return aps->getAudioPort(port);
1091 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1092 if (aps == 0) return PERMISSION_DENIED;
1093 return aps->createAudioPatch(patch, handle);
1098 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1099 if (aps == 0) return PERMISSION_DENIED;
1100 return aps->releaseAudioPatch(handle);
1107 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1108 if (aps == 0) return PERMISSION_DENIED;
1109 return aps->listAudioPatches(num_patches, patches, generation);
1114 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1115 if (aps == 0) return PERMISSION_DENIED;
1116 return aps->setAudioPortConfig(config);
1121 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1122 if (aps == 0) return PERMISSION_DENIED;
1130 aps->setAudioPortCallbacksEnabled(true);
1138 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1139 if (aps == 0) return PERMISSION_DENIED;
1147 aps->setAudioPortCallbacksEnabled(false);
1194 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1195 if (aps == 0) return PERMISSION_DENIED;
1196 return aps->acquireSoundTriggerSession(session, ioHandle, device);
1201 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1202 if (aps == 0) return PERMISSION_DENIED;
1203 return aps->releaseSoundTriggerSession(session);
1208 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1209 if (aps == 0) return AUDIO_MODE_INVALID;
1210 return aps->getPhoneState();
1215 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1216 if (aps == 0) return PERMISSION_DENIED;
1217 return aps->registerPolicyMixes(mixes, registration);
1224 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1225 if (aps == 0) return PERMISSION_DENIED;
1226 return aps->startAudioSource(source, attributes, handle);
1231 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1232 if (aps == 0) return PERMISSION_DENIED;
1233 return aps->stopAudioSource(handle);
1238 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1239 if (aps == 0) return PERMISSION_DENIED;
1240 return aps->setMasterMono(mono);
1245 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1246 if (aps == 0) return PERMISSION_DENIED;
1247 return aps->getMasterMono(mono);
1252 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1253 if (aps == 0) return NAN;
1254 return aps->getStreamVolumeDB(stream, index, device);