Home
last modified time | relevance | path

Searched refs:IDreamOverlayClient (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/service/dreams/
DDreamOverlayConnectionHandler.java53 private IDreamOverlayClient mClient;
55 private final List<Consumer<IDreamOverlayClient>> mConsumers = new ArrayList<>();
124 public void addConsumer(Consumer<IDreamOverlayClient> consumer) { in addConsumer()
134 public void removeConsumer(Consumer<IDreamOverlayClient> consumer) { in removeConsumer()
146 onOverlayClientReady((IDreamOverlayClient) msg.obj); in handleMessage()
149 onAddConsumer((Consumer<IDreamOverlayClient>) msg.obj); in handleMessage()
152 onRemoveConsumer((Consumer<IDreamOverlayClient>) msg.obj); in handleMessage()
159 private void onOverlayClientReady(IDreamOverlayClient client) { in onOverlayClientReady()
161 for (Consumer<IDreamOverlayClient> consumer : mConsumers) { in onOverlayClientReady()
166 private void onAddConsumer(Consumer<IDreamOverlayClient> consumer) { in onAddConsumer()
[all …]
DIDreamOverlayClientCallback.aidl19 import android.service.dreams.IDreamOverlayClient;
29 void onDreamOverlayClient(in IDreamOverlayClient client); in onDreamOverlayClient()
DIDreamOverlayClient.aidl27 interface IDreamOverlayClient { interface
DDreamOverlayService.java54 private static class OverlayClient extends IDreamOverlayClient.Stub {
DDreamService.java1573 private Consumer<IDreamOverlayClient> mDreamStartOverlayConsumer; in onWindowCreated()
/frameworks/base/services/tests/dreamservicetests/src/com/android/server/dreams/
DDreamOverlayServiceTest.java33 import android.service.dreams.IDreamOverlayClient;
111 public IDreamOverlayClient retrievedClient;
113 public void onDreamOverlayClient(IDreamOverlayClient client) throws RemoteException { in onDreamOverlayClient()
135 final IDreamOverlayClient client = getClient(overlay); in testCallbacksRunOnExecutor()
186 final IDreamOverlayClient firstClient = getClient(overlay); in testOverlayClientInteraction()
189 final IDreamOverlayClient secondClient = getClient(overlay); in testOverlayClientInteraction()
224 private static IDreamOverlayClient getClient(IDreamOverlay overlay) throws RemoteException { in getClient()
DTestDreamEnvironment.java46 import android.service.dreams.IDreamOverlayClient;
269 private IDreamOverlayClient mDreamOverlayClient;
304 Consumer<IDreamOverlayClient> client = in TestDreamEnvironment()
305 (Consumer<IDreamOverlayClient>) invocation.getArguments()[0]; in TestDreamEnvironment()
423 public IDreamOverlayClient getDreamOverlayClient() { in getDreamOverlayClient()
/frameworks/base/services/tests/mockingservicestests/src/android/service/dreams/
DDreamOverlayConnectionHandlerTest.java65 private IDreamOverlayClient mOverlayClient;
90 final Consumer<IDreamOverlayClient> consumer = Mockito.mock(Consumer.class); in consumerShouldRunImmediatelyWhenClientAvailable()
101 final Consumer<IDreamOverlayClient> consumer = Mockito.mock(Consumer.class); in consumerShouldRunAfterClientAvailable()
117 final Consumer<IDreamOverlayClient> consumer = Mockito.mock(Consumer.class); in consumerShouldNeverRunIfClientConnectsAndDisconnects()
136 final Consumer<IDreamOverlayClient> consumer = Mockito.mock(Consumer.class); in consumerShouldNeverRunIfUnbindCalled()
169 final Consumer<IDreamOverlayClient> consumer = Mockito.mock(Consumer.class); in consumerShouldRunAgainAfterReconnect()
192 final Consumer<IDreamOverlayClient> consumer = Mockito.mock(Consumer.class); in consumerShouldNeverRunIfRemovedImmediately()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/
DDreamOverlayServiceTest.kt25 import android.service.dreams.IDreamOverlayClient
221 private val client: IDreamOverlayClient
230 val clientCaptor = ArgumentCaptor.forClass(IDreamOverlayClient::class.java)