Home
last modified time | relevance | path

Searched refs:sWatcher (Results 1 – 4 of 4) sorted by relevance

/cts/tests/contentsuggestions/src/android/contentsuggestions/cts/
DCtsContentSuggestionsService.java39 private static Watcher sWatcher; field in CtsContentSuggestionsService
48 if (sWatcher.verifier != null) { in onCreate()
51 sWatcher.verifier = Mockito.mock(CtsContentSuggestionsService.class); in onCreate()
52 sWatcher.created.countDown(); in onCreate()
59 sWatcher.destroyed.countDown(); in onDestroy()
76 sWatcher.verifier.onProcessContextImage(taskId, contextImage, extras); in onProcessContextImage()
87 sWatcher.verifier.onSuggestContentSelections(request, callback); in onSuggestContentSelections()
99 sWatcher.verifier.onClassifyContentSelections(request, callback); in onClassifyContentSelections()
110 sWatcher.verifier.onNotifyInteraction(requestId, interaction); in onNotifyInteraction()
114 if (sWatcher != null) { in setWatcher()
[all …]
/cts/tests/searchui/src/android/searchuiservice/cts/
DCtsSearchUiService.java42 private static Watcher sWatcher; field in CtsSearchUiService
55 sWatcher.destroyed.countDown(); in onDestroy()
69 if (sWatcher.verifier != null) { in onSearchSessionCreated()
72 sWatcher.verifier = Mockito.mock(CtsSearchUiService.class); in onSearchSessionCreated()
73 sWatcher.created.countDown(); in onSearchSessionCreated()
74 sWatcher.searchContext = context; in onSearchSessionCreated()
84 sWatcher.verifier.onNotifyEvent(sessionId, input, event); in onNotifyEvent()
91 if (sWatcher.searchTargets != null) { in onQuery()
92 callback.accept(sWatcher.searchTargets); in onQuery()
94 sWatcher.verifier.onQuery(sessionId, input, callback); in onQuery()
[all …]
/cts/tests/musicrecognition/src/android/musicrecognition/cts/
DCtsMusicRecognitionService.java45 private static Watcher sWatcher; field in CtsMusicRecognitionService
50 sWatcher.destroyed.countDown(); in onDestroy()
57 if (sWatcher.failureCode != 0) { in onRecognize()
58 callback.onRecognitionFailed(sWatcher.failureCode); in onRecognize()
61 sWatcher.stream = readStream(stream); in onRecognize()
63 callback.onRecognitionSucceeded(sWatcher.result, sWatcher.resultExtras); in onRecognize()
83 if (sWatcher != null) { in setWatcher()
86 sWatcher = new Watcher(); in setWatcher()
87 return sWatcher; in setWatcher()
91 sWatcher = null; in clearWatcher()
/cts/tests/smartspace/src/android/smartspace/cts/
DCtsSmartspaceService.java43 private static Watcher sWatcher; field in CtsSmartspaceService
59 if (sWatcher.verifier != null) { in onCreateSmartspaceSession()
63 sWatcher.verifier = Mockito.mock(CtsSmartspaceService.class); in onCreateSmartspaceSession()
64 sWatcher.created.countDown(); in onCreateSmartspaceSession()
76 sWatcher.verifier.notifySmartspaceEvent(sessionId, event); in notifySmartspaceEvent()
90 sWatcher.verifier.onRequestSmartspaceUpdate(sessionId); in onRequestSmartspaceUpdate()
99 sWatcher.destroyed.countDown(); in onDestroySmartspaceSession()
107 sWatcher.destroyed.countDown(); in onDestroy()
117 if (sWatcher != null) { in setWatcher()
120 sWatcher = new Watcher(); in setWatcher()
[all …]