Home
last modified time | relevance | path

Searched refs:inPastMs (Results 1 – 14 of 14) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioOutputDescriptor.h45 bool isActive(uint32_t inPastMs = 0, nsecs_t sysTime = 0) const
50 if (inPastMs == 0) {
56 if (ns2ms(sysTime - mStopTime) < inPastMs) {
192 bool isActive(uint32_t inPastMs) const;
194 uint32_t inPastMs = 0,
249 bool isStrategyActive(product_strategy_t ps, uint32_t inPastMs = 0, nsecs_t sysTime = 0) const
252 mRoutingActivities.at(ps).isActive(inPastMs, sysTime) : false;
535 bool isActive(VolumeSource volumeSource, uint32_t inPastMs = 0) const;
545 bool isActiveRemotely(VolumeSource volumeSource, uint32_t inPastMs = 0) const;
555 bool isActiveLocally(VolumeSource volumeSource, uint32_t inPastMs = 0) const;
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioOutputDescriptor.cpp135 bool AudioOutputDescriptor::isActive(VolumeSource vs, uint32_t inPastMs, nsecs_t sysTime) const in isActive() argument
138 isActive(inPastMs) : (mVolumeActivities.find(vs) != std::end(mVolumeActivities)? in isActive()
139 mVolumeActivities.at(vs).isActive(inPastMs, sysTime) : false); in isActive()
142 bool AudioOutputDescriptor::isActive(uint32_t inPastMs) const in isActive()
145 if (inPastMs != 0) { in isActive()
149 if (iter.second.isActive(inPastMs, sysTime)) { in isActive()
850 bool SwAudioOutputCollection::isActive(VolumeSource volumeSource, uint32_t inPastMs) const in isActive()
855 if (outputDesc->isActive(volumeSource, inPastMs, sysTime)) { in isActive()
862 bool SwAudioOutputCollection::isActiveLocally(VolumeSource volumeSource, uint32_t inPastMs) const in isActiveLocally()
867 if (outputDesc->isActive(volumeSource, inPastMs, sysTime) in isActiveLocally()
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DAudioSystemAdapter.java529 public boolean isStreamActive(int stream, int inPastMs) { in isStreamActive() argument
530 return AudioSystem.isStreamActive(stream, inPastMs); in isStreamActive()
539 public boolean isStreamActiveRemotely(int stream, int inPastMs) { in isStreamActiveRemotely() argument
540 return AudioSystem.isStreamActiveRemotely(stream, inPastMs); in isStreamActiveRemotely()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DNoOpAudioSystemAdapter.java130 public boolean isStreamActive(int stream, int inPastMs) { in isStreamActive() argument
/frameworks/av/media/libaudioclient/aidl/android/media/
DIAudioPolicyService.aidl163 boolean isStreamActive(AudioStreamType stream, int inPastMs); in isStreamActive() argument
165 boolean isStreamActiveRemotely(AudioStreamType stream, int inPastMs); in isStreamActiveRemotely() argument
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h240 virtual bool isStreamActive(audio_stream_type_t stream, uint32_t inPastMs = 0) const = 0;
242 uint32_t inPastMs = 0) const = 0;
/frameworks/av/media/libaudioclient/include/media/
DAudioSystem.h145 static status_t isStreamActive(audio_stream_type_t stream, bool *state, uint32_t inPastMs);
150 uint32_t inPastMs);
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h246 virtual bool isStreamActive(audio_stream_type_t stream, uint32_t inPastMs = 0) const;
253 uint32_t inPastMs = 0) const;
DAudioPolicyManager.cpp3788 bool AudioPolicyManager::isStreamActive(audio_stream_type_t stream, uint32_t inPastMs) const in isStreamActive()
3791 return vs != VOLUME_SOURCE_NONE ? mOutputs.isActive(vs, inPastMs) : false; in isStreamActive()
3794 bool AudioPolicyManager::isStreamActiveRemotely(audio_stream_type_t stream, uint32_t inPastMs) const in isStreamActiveRemotely()
3797 return vs != VOLUME_SOURCE_NONE ? mOutputs.isActiveRemotely(vs, inPastMs) : false; in isStreamActiveRemotely()
/frameworks/base/media/java/android/media/
DAudioSystem.java591 public static native boolean isStreamActive(int stream, int inPastMs); in isStreamActive() argument
600 public static native boolean isStreamActiveRemotely(int stream, int inPastMs); in isStreamActiveRemotely() argument
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.h164 binder::Status isStreamActive(AudioStreamType stream, int32_t inPastMs,
166 binder::Status isStreamActiveRemotely(AudioStreamType stream, int32_t inPastMs,
DAudioPolicyInterfaceImpl.cpp1335 uint32_t inPastMs = VALUE_OR_RETURN_BINDER_STATUS(convertIntegral<uint32_t>(inPastMsAidl)); in isStreamActive() local
1346 *_aidl_return = mAudioPolicyManager->isStreamActive(stream, inPastMs); in isStreamActive()
1355 uint32_t inPastMs = VALUE_OR_RETURN_BINDER_STATUS(convertIntegral<uint32_t>(inPastMsAidl)); in isStreamActiveRemotely() local
1366 *_aidl_return = mAudioPolicyManager->isStreamActiveRemotely(stream, inPastMs); in isStreamActiveRemotely()
/frameworks/av/media/libaudioclient/
DAudioSystem.cpp1519 status_t AudioSystem::isStreamActive(audio_stream_type_t stream, bool* state, uint32_t inPastMs) { in isStreamActive() argument
1526 int32_t inPastMsAidl = VALUE_OR_RETURN_STATUS(convertIntegral<int32_t>(inPastMs)); in isStreamActive()
1533 uint32_t inPastMs) { in isStreamActiveRemotely() argument
1540 int32_t inPastMsAidl = VALUE_OR_RETURN_STATUS(convertIntegral<int32_t>(inPastMs)); in isStreamActiveRemotely()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp454 android_media_AudioSystem_isStreamActive(JNIEnv *env, jobject thiz, jint stream, jint inPastMs) in android_media_AudioSystem_isStreamActive() argument
457 AudioSystem::isStreamActive(static_cast<audio_stream_type_t>(stream), &state, inPastMs); in android_media_AudioSystem_isStreamActive()
463 jint inPastMs) in android_media_AudioSystem_isStreamActiveRemotely() argument
466 AudioSystem::isStreamActiveRemotely(static_cast<audio_stream_type_t>(stream), &state, inPastMs); in android_media_AudioSystem_isStreamActiveRemotely()