Home
last modified time | relevance | path

Searched refs:aps (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/media/libaudioclient/
DAudioSystem.cpp789 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
[all …]
DAudioEffect.cpp457 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in queryDefaultPreProcessing() local
458 if (aps == 0) return PERMISSION_DENIED; in queryDefaultPreProcessing()
459 return aps->queryDefaultPreProcessing(audioSession, descriptors, count); in queryDefaultPreProcessing()
477 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in addSourceDefaultEffect() local
478 if (aps == 0) return PERMISSION_DENIED; in addSourceDefaultEffect()
499 return aps->addSourceDefaultEffect(&type, opPackageName, &uuid, priority, source, id); in addSourceDefaultEffect()
509 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in addStreamDefaultEffect() local
510 if (aps == 0) return PERMISSION_DENIED; in addStreamDefaultEffect()
531 return aps->addStreamDefaultEffect(&type, opPackageName, &uuid, priority, usage, id); in addStreamDefaultEffect()
536 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in removeSourceDefaultEffect() local
[all …]
DAudioTrack.cpp166 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in isDirectOutputSupported() local
167 if (aps == 0) return false; in isDirectOutputSupported()
168 return aps->isDirectOutputSupported(config, attributes); in isDirectOutputSupported()
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioProductStrategyTest.java43 for (final AudioProductStrategy aps : audioProductStrategies) { in testGetProductStrategies()
44 assertTrue(aps.getId() >= 0); in testGetProductStrategies()
46 AudioAttributes aa = aps.getAudioAttributes(); in testGetProductStrategies()
50 assertTrue(aps.supportsAudioAttributes(aa)); in testGetProductStrategies()
52 int streamType = aps.getLegacyStreamTypeForAudioAttributes(aa); in testGetProductStrategies()
57 final int volumeGroupFromStream = aps.getVolumeGroupIdForLegacyStreamType(streamType); in testGetProductStrategies()
58 final int volumeGroupFromAttributes = aps.getVolumeGroupIdForAudioAttributes(aa); in testGetProductStrategies()
103 for (final AudioProductStrategy aps : audioProductStrategies) { in testAudioAttributesFromStreamTypes()
105 aps.getAudioAttributesForLegacyStreamType(streamType); in testAudioAttributesFromStreamTypes()
118 assertTrue(aps.supportsAudioAttributes(aaFromStreamType)); in testAudioAttributesFromStreamTypes()
[all …]
DAudioVolumeGroupTest.java77 for (final AudioProductStrategy aps : audioProductStrategies) { in testGetVolumeGroups()
78 int groupId = aps.getVolumeGroupIdForAudioAttributes(aa); in testGetVolumeGroups()
83 assertTrue(aps.supportsAudioAttributes(aa)); in testGetVolumeGroups()
86 + aps.toString() + ") both supporting attributes " in testGetVolumeGroups()
109 for (final AudioProductStrategy aps : audioProductStrategies) { in testGetVolumeGroups()
110 int groupId = aps.getVolumeGroupIdForLegacyStreamType(avgStreamType); in testGetVolumeGroups()
115 + aps.toString() + ") both supporting stream " in testGetVolumeGroups()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java514 List<AccessPoint> aps = tracker.getAccessPoints(); in startTrackingShouldSetConnectedAccessPointAsActive() local
516 assertThat(aps).hasSize(2); in startTrackingShouldSetConnectedAccessPointAsActive()
517 assertThat(aps.get(0).isActive()).isTrue(); in startTrackingShouldSetConnectedAccessPointAsActive()
572 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateScoresShouldChangeSortOrder() local
573 assertTrue(aps.size() == 2); in scoreCacheUpdateScoresShouldChangeSortOrder()
574 assertEquals(aps.get(0).getSsidStr(), SSID_1); in scoreCacheUpdateScoresShouldChangeSortOrder()
575 assertEquals(aps.get(1).getSsidStr(), SSID_2); in scoreCacheUpdateScoresShouldChangeSortOrder()
579 aps = tracker.getAccessPoints(); in scoreCacheUpdateScoresShouldChangeSortOrder()
580 assertTrue(aps.size() == 2); in scoreCacheUpdateScoresShouldChangeSortOrder()
581 assertEquals(aps.get(0).getSsidStr(), SSID_2); in scoreCacheUpdateScoresShouldChangeSortOrder()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DAccessPointControllerImpl.java134 private void fireAcccessPointsCallback(List<AccessPoint> aps) { in fireAcccessPointsCallback() argument
136 callback.onAccessPointsChanged(aps); in fireAcccessPointsCallback()
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp1975 sp<AnotherPacketSource> &aps = mPacketSources.editValueFor(stream); in swapPacketSource() local
1979 aps->queueDiscontinuity(ATSParser::DISCONTINUITY_FORMAT_ONLY, NULL, false); in swapPacketSource()
1986 aps->queueAccessUnit(accessUnit); in swapPacketSource()