Lines Matching defs:aps
792 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
796 if (aps == 0) return PERMISSION_DENIED;
804 return aps->setDeviceConnectionState(device, state, address, name, encodedFormat);
810 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
811 if (aps == 0) return AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE;
813 return aps->getDeviceConnectionState(device, device_address);
821 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
825 if (aps == 0) return PERMISSION_DENIED;
833 return aps->handleDeviceConfigChange(device, address, name, encodedFormat);
839 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
840 if (aps == 0) return PERMISSION_DENIED;
842 return aps->setPhoneState(state);
847 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
848 if (aps == 0) return PERMISSION_DENIED;
849 return aps->setForceUse(usage, config);
854 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
855 if (aps == 0) return AUDIO_POLICY_FORCE_NONE;
856 return aps->getForceUse(usage);
862 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
863 if (aps == 0) return 0;
864 return aps->getOutput(stream);
879 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
880 if (aps == 0) return NO_INIT;
881 return aps->getOutputForAttr(attr, output, session, stream, pid, uid,
888 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
889 if (aps == 0) return PERMISSION_DENIED;
890 return aps->startOutput(portId);
895 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
896 if (aps == 0) return PERMISSION_DENIED;
897 return aps->stopOutput(portId);
902 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
903 if (aps == 0) return;
904 aps->releaseOutput(portId);
919 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
920 if (aps == 0) return NO_INIT;
921 return aps->getInputForAttr(
928 aps = AudioSystem::get_audio_policy_service();
929 if (aps == 0) return PERMISSION_DENIED;
930 return aps->startInput(portId);
935 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
936 if (aps == 0) return PERMISSION_DENIED;
937 return aps->stopInput(portId);
942 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
943 if (aps == 0) return;
944 aps->releaseInput(portId);
951 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
952 if (aps == 0) return PERMISSION_DENIED;
953 return aps->initStreamVolume(stream, indexMin, indexMax);
960 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
961 if (aps == 0) return PERMISSION_DENIED;
962 return aps->setStreamVolumeIndex(stream, index, device);
969 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
970 if (aps == 0) return PERMISSION_DENIED;
971 return aps->getStreamVolumeIndex(stream, index, device);
978 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
979 if (aps == 0) return PERMISSION_DENIED;
980 return aps->setVolumeIndexForAttributes(attr, index, device);
987 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
988 if (aps == 0) return PERMISSION_DENIED;
989 return aps->getVolumeIndexForAttributes(attr, index, device);
994 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
995 if (aps == 0) return PERMISSION_DENIED;
996 return aps->getMaxVolumeIndexForAttributes(attr, index);
1001 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1002 if (aps == 0) return PERMISSION_DENIED;
1003 return aps->getMinVolumeIndexForAttributes(attr, index);
1008 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1009 if (aps == 0) return PRODUCT_STRATEGY_NONE;
1010 return aps->getStrategyForStream(stream);
1015 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1016 if (aps == 0) return AUDIO_DEVICE_NONE;
1017 return aps->getDevicesForStream(stream);
1022 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1024 if (aps == 0) return AUDIO_IO_HANDLE_NONE;
1025 return aps->getOutputForEffect(desc);
1034 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1035 if (aps == 0) return PERMISSION_DENIED;
1036 return aps->registerEffect(desc, io, strategy, session, id);
1041 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1042 if (aps == 0) return PERMISSION_DENIED;
1043 return aps->unregisterEffect(id);
1048 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1049 if (aps == 0) return PERMISSION_DENIED;
1050 return aps->setEffectEnabled(id, enabled);
1055 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1056 if (aps == 0) return PERMISSION_DENIED;
1057 return aps->moveEffectsToIo(ids, io);
1062 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1063 if (aps == 0) return PERMISSION_DENIED;
1065 *state = aps->isStreamActive(stream, inPastMs);
1072 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1073 if (aps == 0) return PERMISSION_DENIED;
1075 *state = aps->isStreamActiveRemotely(stream, inPastMs);
1081 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1082 if (aps == 0) return PERMISSION_DENIED;
1084 *state = aps->isSourceActive(stream);
1127 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1128 if (aps == nullptr) return PERMISSION_DENIED;
1129 return aps->setAllowedCapturePolicy(uid, flags);
1135 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1136 if (aps == 0) return false;
1137 return aps->isOffloadSupported(info);
1146 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1147 if (aps == 0) return PERMISSION_DENIED;
1148 return aps->listAudioPorts(role, type, num_ports, ports, generation);
1153 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1154 if (aps == 0) return PERMISSION_DENIED;
1155 return aps->getAudioPort(port);
1161 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1162 if (aps == 0) return PERMISSION_DENIED;
1163 return aps->createAudioPatch(patch, handle);
1168 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1169 if (aps == 0) return PERMISSION_DENIED;
1170 return aps->releaseAudioPatch(handle);
1177 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1178 if (aps == 0) return PERMISSION_DENIED;
1179 return aps->listAudioPatches(num_patches, patches, generation);
1184 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1185 if (aps == 0) return PERMISSION_DENIED;
1186 return aps->setAudioPortConfig(config);
1191 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1192 if (aps == 0) return PERMISSION_DENIED;
1200 aps->setAudioPortCallbacksEnabled(true);
1208 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1209 if (aps == 0) return PERMISSION_DENIED;
1217 aps->setAudioPortCallbacksEnabled(false);
1224 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1225 if (aps == 0) return PERMISSION_DENIED;
1233 aps->setAudioVolumeGroupCallbacksEnabled(true);
1240 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1241 if (aps == 0) return PERMISSION_DENIED;
1249 aps->setAudioVolumeGroupCallbacksEnabled(false);
1298 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1299 if (aps == 0) return PERMISSION_DENIED;
1300 return aps->acquireSoundTriggerSession(session, ioHandle, device);
1305 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1306 if (aps == 0) return PERMISSION_DENIED;
1307 return aps->releaseSoundTriggerSession(session);
1312 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1313 if (aps == 0) return AUDIO_MODE_INVALID;
1314 return aps->getPhoneState();
1319 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1320 if (aps == 0) return PERMISSION_DENIED;
1321 return aps->registerPolicyMixes(mixes, registration);
1326 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1327 if (aps == 0) return PERMISSION_DENIED;
1328 return aps->setUidDeviceAffinities(uid, devices);
1332 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1333 if (aps == 0) return PERMISSION_DENIED;
1334 return aps->removeUidDeviceAffinities(uid);
1341 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1342 if (aps == 0) return PERMISSION_DENIED;
1343 return aps->startAudioSource(source, attributes, portId);
1348 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1349 if (aps == 0) return PERMISSION_DENIED;
1350 return aps->stopAudioSource(portId);
1355 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1356 if (aps == 0) return PERMISSION_DENIED;
1357 return aps->setMasterMono(mono);
1362 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1363 if (aps == 0) return PERMISSION_DENIED;
1364 return aps->getMasterMono(mono);
1383 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1384 if (aps == 0) return NAN;
1385 return aps->getStreamVolumeDB(stream, index, device);
1400 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1401 if (aps == 0) return PERMISSION_DENIED;
1402 return aps->getSurroundFormats(
1408 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1409 if (aps == 0) return PERMISSION_DENIED;
1410 return aps->setSurroundFormatEnabled(audioFormat, enabled);
1415 const sp <IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1416 if (aps == 0) return PERMISSION_DENIED;
1418 return aps->setAssistantUid(uid);
1423 const sp <IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1424 if (aps == 0) return PERMISSION_DENIED;
1426 return aps->setA11yServicesUids(uids);
1431 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1432 if (aps == 0) return false;
1433 return aps->isHapticPlaybackSupported();
1439 & aps = AudioSystem::get_audio_policy_service();
1440 if (aps == 0) return PERMISSION_DENIED;
1441 return aps->getHwOffloadEncodingFormatsSupportedForA2DP(formats);
1446 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1447 if (aps == 0) return PERMISSION_DENIED;
1448 return aps->listAudioProductStrategies(strategies);
1495 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1496 if (aps == 0) return PERMISSION_DENIED;
1497 return aps->getProductStrategyFromAudioAttributes(aa,productStrategy);
1502 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1503 if (aps == 0) return PERMISSION_DENIED;
1504 return aps->listAudioVolumeGroups(groups);
1510 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1511 if (aps == 0) return PERMISSION_DENIED;
1512 return aps->getVolumeGroupFromAudioAttributes(aa, volumeGroup);
1517 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
1518 if (aps == 0) return PERMISSION_DENIED;
1519 return aps->setRttEnabled(enabled);