Lines Matching refs:aps

789     const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();  in onNewAudioModulesAvailable()  local
790 if (aps == 0) return; in onNewAudioModulesAvailable()
791 aps->onNewAudioModulesAvailable(); in onNewAudioModulesAvailable()
800 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setDeviceConnectionState() local
804 if (aps == 0) return PERMISSION_DENIED; in setDeviceConnectionState()
812 return aps->setDeviceConnectionState(device, state, address, name, encodedFormat); in setDeviceConnectionState()
818 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getDeviceConnectionState() local
819 if (aps == 0) return AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE; in getDeviceConnectionState()
821 return aps->getDeviceConnectionState(device, device_address); in getDeviceConnectionState()
829 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in handleDeviceConfigChange() local
833 if (aps == 0) return PERMISSION_DENIED; in handleDeviceConfigChange()
841 return aps->handleDeviceConfigChange(device, address, name, encodedFormat); in handleDeviceConfigChange()
847 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setPhoneState() local
848 if (aps == 0) return PERMISSION_DENIED; in setPhoneState()
850 return aps->setPhoneState(state); in setPhoneState()
855 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setForceUse() local
856 if (aps == 0) return PERMISSION_DENIED; in setForceUse()
857 return aps->setForceUse(usage, config); in setForceUse()
862 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getForceUse() local
863 if (aps == 0) return AUDIO_POLICY_FORCE_NONE; in getForceUse()
864 return aps->getForceUse(usage); in getForceUse()
870 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getOutput() local
871 if (aps == 0) return 0; in getOutput()
872 return aps->getOutput(stream); in getOutput()
887 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getOutputForAttr() local
888 if (aps == 0) return NO_INIT; in getOutputForAttr()
889 return aps->getOutputForAttr(attr, output, session, stream, pid, uid, in getOutputForAttr()
896 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in startOutput() local
897 if (aps == 0) return PERMISSION_DENIED; in startOutput()
898 return aps->startOutput(portId); in startOutput()
903 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in stopOutput() local
904 if (aps == 0) return PERMISSION_DENIED; in stopOutput()
905 return aps->stopOutput(portId); in stopOutput()
910 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in releaseOutput() local
911 if (aps == 0) return; in releaseOutput()
912 aps->releaseOutput(portId); in releaseOutput()
927 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getInputForAttr() local
928 if (aps == 0) return NO_INIT; in getInputForAttr()
929 return aps->getInputForAttr( in getInputForAttr()
936 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in startInput() local
937 if (aps == 0) return PERMISSION_DENIED; in startInput()
938 return aps->startInput(portId); in startInput()
943 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in stopInput() local
944 if (aps == 0) return PERMISSION_DENIED; in stopInput()
945 return aps->stopInput(portId); in stopInput()
950 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in releaseInput() local
951 if (aps == 0) return; in releaseInput()
952 aps->releaseInput(portId); in releaseInput()
959 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in initStreamVolume() local
960 if (aps == 0) return PERMISSION_DENIED; in initStreamVolume()
961 return aps->initStreamVolume(stream, indexMin, indexMax); in initStreamVolume()
968 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setStreamVolumeIndex() local
969 if (aps == 0) return PERMISSION_DENIED; in setStreamVolumeIndex()
970 return aps->setStreamVolumeIndex(stream, index, device); in setStreamVolumeIndex()
977 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getStreamVolumeIndex() local
978 if (aps == 0) return PERMISSION_DENIED; in getStreamVolumeIndex()
979 return aps->getStreamVolumeIndex(stream, index, device); in getStreamVolumeIndex()
986 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setVolumeIndexForAttributes() local
987 if (aps == 0) return PERMISSION_DENIED; in setVolumeIndexForAttributes()
988 return aps->setVolumeIndexForAttributes(attr, index, device); in setVolumeIndexForAttributes()
995 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getVolumeIndexForAttributes() local
996 if (aps == 0) return PERMISSION_DENIED; in getVolumeIndexForAttributes()
997 return aps->getVolumeIndexForAttributes(attr, index, device); in getVolumeIndexForAttributes()
1002 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getMaxVolumeIndexForAttributes() local
1003 if (aps == 0) return PERMISSION_DENIED; in getMaxVolumeIndexForAttributes()
1004 return aps->getMaxVolumeIndexForAttributes(attr, index); in getMaxVolumeIndexForAttributes()
1009 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getMinVolumeIndexForAttributes() local
1010 if (aps == 0) return PERMISSION_DENIED; in getMinVolumeIndexForAttributes()
1011 return aps->getMinVolumeIndexForAttributes(attr, index); in getMinVolumeIndexForAttributes()
1016 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getStrategyForStream() local
1017 if (aps == 0) return PRODUCT_STRATEGY_NONE; in getStrategyForStream()
1018 return aps->getStrategyForStream(stream); in getStrategyForStream()
1023 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getDevicesForStream() local
1024 if (aps == 0) return AUDIO_DEVICE_NONE; in getDevicesForStream()
1025 return aps->getDevicesForStream(stream); in getDevicesForStream()
1030 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getOutputForEffect() local
1032 if (aps == 0) return AUDIO_IO_HANDLE_NONE; in getOutputForEffect()
1033 return aps->getOutputForEffect(desc); in getOutputForEffect()
1042 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in registerEffect() local
1043 if (aps == 0) return PERMISSION_DENIED; in registerEffect()
1044 return aps->registerEffect(desc, io, strategy, session, id); in registerEffect()
1049 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in unregisterEffect() local
1050 if (aps == 0) return PERMISSION_DENIED; in unregisterEffect()
1051 return aps->unregisterEffect(id); in unregisterEffect()
1056 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setEffectEnabled() local
1057 if (aps == 0) return PERMISSION_DENIED; in setEffectEnabled()
1058 return aps->setEffectEnabled(id, enabled); in setEffectEnabled()
1063 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in moveEffectsToIo() local
1064 if (aps == 0) return PERMISSION_DENIED; in moveEffectsToIo()
1065 return aps->moveEffectsToIo(ids, io); in moveEffectsToIo()
1070 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in isStreamActive() local
1071 if (aps == 0) return PERMISSION_DENIED; in isStreamActive()
1073 *state = aps->isStreamActive(stream, inPastMs); in isStreamActive()
1080 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in isStreamActiveRemotely() local
1081 if (aps == 0) return PERMISSION_DENIED; in isStreamActiveRemotely()
1083 *state = aps->isStreamActiveRemotely(stream, inPastMs); in isStreamActiveRemotely()
1089 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in isSourceActive() local
1090 if (aps == 0) return PERMISSION_DENIED; in isSourceActive()
1092 *state = aps->isSourceActive(stream); in isSourceActive()
1135 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setAllowedCapturePolicy() local
1136 if (aps == nullptr) return PERMISSION_DENIED; in setAllowedCapturePolicy()
1137 return aps->setAllowedCapturePolicy(uid, flags); in setAllowedCapturePolicy()
1143 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in isOffloadSupported() local
1144 if (aps == 0) return false; in isOffloadSupported()
1145 return aps->isOffloadSupported(info); in isOffloadSupported()
1154 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in listAudioPorts() local
1155 if (aps == 0) return PERMISSION_DENIED; in listAudioPorts()
1156 return aps->listAudioPorts(role, type, num_ports, ports, generation); in listAudioPorts()
1161 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getAudioPort() local
1162 if (aps == 0) return PERMISSION_DENIED; in getAudioPort()
1163 return aps->getAudioPort(port); in getAudioPort()
1169 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in createAudioPatch() local
1170 if (aps == 0) return PERMISSION_DENIED; in createAudioPatch()
1171 return aps->createAudioPatch(patch, handle); in createAudioPatch()
1176 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in releaseAudioPatch() local
1177 if (aps == 0) return PERMISSION_DENIED; in releaseAudioPatch()
1178 return aps->releaseAudioPatch(handle); in releaseAudioPatch()
1185 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in listAudioPatches() local
1186 if (aps == 0) return PERMISSION_DENIED; in listAudioPatches()
1187 return aps->listAudioPatches(num_patches, patches, generation); in listAudioPatches()
1192 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setAudioPortConfig() local
1193 if (aps == 0) return PERMISSION_DENIED; in setAudioPortConfig()
1194 return aps->setAudioPortConfig(config); in setAudioPortConfig()
1199 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in addAudioPortCallback() local
1200 if (aps == 0) return PERMISSION_DENIED; in addAudioPortCallback()
1208 aps->setAudioPortCallbacksEnabled(true); in addAudioPortCallback()
1216 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in removeAudioPortCallback() local
1217 if (aps == 0) return PERMISSION_DENIED; in removeAudioPortCallback()
1225 aps->setAudioPortCallbacksEnabled(false); in removeAudioPortCallback()
1232 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in addAudioVolumeGroupCallback() local
1233 if (aps == 0) return PERMISSION_DENIED; in addAudioVolumeGroupCallback()
1241 aps->setAudioVolumeGroupCallbacksEnabled(true); in addAudioVolumeGroupCallback()
1248 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in removeAudioVolumeGroupCallback() local
1249 if (aps == 0) return PERMISSION_DENIED; in removeAudioVolumeGroupCallback()
1257 aps->setAudioVolumeGroupCallbacksEnabled(false); in removeAudioVolumeGroupCallback()
1306 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in acquireSoundTriggerSession() local
1307 if (aps == 0) return PERMISSION_DENIED; in acquireSoundTriggerSession()
1308 return aps->acquireSoundTriggerSession(session, ioHandle, device); in acquireSoundTriggerSession()
1313 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in releaseSoundTriggerSession() local
1314 if (aps == 0) return PERMISSION_DENIED; in releaseSoundTriggerSession()
1315 return aps->releaseSoundTriggerSession(session); in releaseSoundTriggerSession()
1320 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getPhoneState() local
1321 if (aps == 0) return AUDIO_MODE_INVALID; in getPhoneState()
1322 return aps->getPhoneState(); in getPhoneState()
1327 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in registerPolicyMixes() local
1328 if (aps == 0) return PERMISSION_DENIED; in registerPolicyMixes()
1329 return aps->registerPolicyMixes(mixes, registration); in registerPolicyMixes()
1334 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setUidDeviceAffinities() local
1335 if (aps == 0) return PERMISSION_DENIED; in setUidDeviceAffinities()
1336 return aps->setUidDeviceAffinities(uid, devices); in setUidDeviceAffinities()
1340 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in removeUidDeviceAffinities() local
1341 if (aps == 0) return PERMISSION_DENIED; in removeUidDeviceAffinities()
1342 return aps->removeUidDeviceAffinities(uid); in removeUidDeviceAffinities()
1349 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in startAudioSource() local
1350 if (aps == 0) return PERMISSION_DENIED; in startAudioSource()
1351 return aps->startAudioSource(source, attributes, portId); in startAudioSource()
1356 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in stopAudioSource() local
1357 if (aps == 0) return PERMISSION_DENIED; in stopAudioSource()
1358 return aps->stopAudioSource(portId); in stopAudioSource()
1363 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setMasterMono() local
1364 if (aps == 0) return PERMISSION_DENIED; in setMasterMono()
1365 return aps->setMasterMono(mono); in setMasterMono()
1370 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getMasterMono() local
1371 if (aps == 0) return PERMISSION_DENIED; in getMasterMono()
1372 return aps->getMasterMono(mono); in getMasterMono()
1391 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getStreamVolumeDB() local
1392 if (aps == 0) return NAN; in getStreamVolumeDB()
1393 return aps->getStreamVolumeDB(stream, index, device); in getStreamVolumeDB()
1414 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getSurroundFormats() local
1415 if (aps == 0) return PERMISSION_DENIED; in getSurroundFormats()
1416 return aps->getSurroundFormats( in getSurroundFormats()
1422 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setSurroundFormatEnabled() local
1423 if (aps == 0) return PERMISSION_DENIED; in setSurroundFormatEnabled()
1424 return aps->setSurroundFormatEnabled(audioFormat, enabled); in setSurroundFormatEnabled()
1429 const sp <IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setAssistantUid() local
1430 if (aps == 0) return PERMISSION_DENIED; in setAssistantUid()
1432 return aps->setAssistantUid(uid); in setAssistantUid()
1437 const sp <IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setA11yServicesUids() local
1438 if (aps == 0) return PERMISSION_DENIED; in setA11yServicesUids()
1440 return aps->setA11yServicesUids(uids); in setA11yServicesUids()
1445 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in isHapticPlaybackSupported() local
1446 if (aps == 0) return false; in isHapticPlaybackSupported()
1447 return aps->isHapticPlaybackSupported(); in isHapticPlaybackSupported()
1453 & aps = AudioSystem::get_audio_policy_service(); in getHwOffloadEncodingFormatsSupportedForA2DP() local
1454 if (aps == 0) return PERMISSION_DENIED; in getHwOffloadEncodingFormatsSupportedForA2DP()
1455 return aps->getHwOffloadEncodingFormatsSupportedForA2DP(formats); in getHwOffloadEncodingFormatsSupportedForA2DP()
1460 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in listAudioProductStrategies() local
1461 if (aps == 0) return PERMISSION_DENIED; in listAudioProductStrategies()
1462 return aps->listAudioProductStrategies(strategies); in listAudioProductStrategies()
1516 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getProductStrategyFromAudioAttributes() local
1517 if (aps == 0) return PERMISSION_DENIED; in getProductStrategyFromAudioAttributes()
1518 return aps->getProductStrategyFromAudioAttributes(aa,productStrategy); in getProductStrategyFromAudioAttributes()
1523 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in listAudioVolumeGroups() local
1524 if (aps == 0) return PERMISSION_DENIED; in listAudioVolumeGroups()
1525 return aps->listAudioVolumeGroups(groups); in listAudioVolumeGroups()
1531 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getVolumeGroupFromAudioAttributes() local
1532 if (aps == 0) return PERMISSION_DENIED; in getVolumeGroupFromAudioAttributes()
1533 return aps->getVolumeGroupFromAudioAttributes(aa, volumeGroup); in getVolumeGroupFromAudioAttributes()
1538 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setRttEnabled() local
1539 if (aps == 0) return PERMISSION_DENIED; in setRttEnabled()
1540 return aps->setRttEnabled(enabled); in setRttEnabled()
1546 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in setPreferredDeviceForStrategy() local
1547 if (aps == 0) { in setPreferredDeviceForStrategy()
1550 return aps->setPreferredDeviceForStrategy(strategy, device); in setPreferredDeviceForStrategy()
1555 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in removePreferredDeviceForStrategy() local
1556 if (aps == 0) { in removePreferredDeviceForStrategy()
1559 return aps->removePreferredDeviceForStrategy(strategy); in removePreferredDeviceForStrategy()
1565 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in getPreferredDeviceForStrategy() local
1566 if (aps == 0) { in getPreferredDeviceForStrategy()
1569 return aps->getPreferredDeviceForStrategy(strategy, device); in getPreferredDeviceForStrategy()