Home
last modified time | relevance | path

Searched refs:mServiceHolder (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DServiceHolderTest.java62 private ServiceHolder<IAudioPolicyService> mServiceHolder; field in ServiceHolderTest
75 mServiceHolder = in setUp()
101 assertThat(mServiceHolder.checkService()).isEqualTo(mAudioPolicyService); in testServiceSuccessfullyPopulated_whenCallback()
108 assertThat(mServiceHolder.checkService()).isEqualTo(mAudioPolicyService); in testCheckServiceCalled_whenUncached()
113 assertThat(mServiceHolder.checkService()).isEqualTo(null); in testCheckServiceTransmitsNull()
120 assertThat(mServiceHolder.waitForService()).isEqualTo(mAudioPolicyService); in testWaitForServiceCalled_whenUncached()
126 mServiceHolder.checkService(); in testCheckServiceNotCalled_whenCached()
133 mServiceHolder.waitForService(); in testWaitForServiceNotCalled_whenCached()
139 mServiceHolder.registerOnStartTask(mTaskOne); in testStartTaskCalled_onStart()
140 mServiceHolder.registerOnStartTask(mTaskTwo); in testStartTaskCalled_onStart()
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DDefaultAudioPolicyFacade.java39 private final ServiceHolder<IAudioPolicyService> mServiceHolder; field in DefaultAudioPolicyFacade
45 mServiceHolder = in DefaultAudioPolicyFacade()
51 mServiceHolder.registerOnStartTask(i -> Binder.allowBlocking(i.asBinder())); in DefaultAudioPolicyFacade()
56 IAudioPolicyService ap = mServiceHolder.waitForService(); in isHotwordStreamSupported()
60 mServiceHolder.attemptClear(ap.asBinder()); in isHotwordStreamSupported()
67 IAudioPolicyService ap = mServiceHolder.checkService(); in getPermissionController()
74 mServiceHolder.attemptClear(ap.asBinder()); in getPermissionController()
81 mServiceHolder.registerOnStartTask(unused -> task.run()); in registerOnStartTask()