Home
last modified time | relevance | path

Searched refs:sServiceWatcher (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextClassifierTestWatcher.java60 private static ServiceWatcher sServiceWatcher; field in TextClassifierTestWatcher
117 if (sServiceWatcher == null) { in setServiceWatcher()
118 sServiceWatcher = new ServiceWatcher(); in setServiceWatcher()
123 if (sServiceWatcher != null) { in clearServiceWatcher()
124 sServiceWatcher.mService = null; in clearServiceWatcher()
125 sServiceWatcher = null; in clearServiceWatcher()
195 if (sServiceWatcher != null && sServiceWatcher.mService != null) { in resetService()
196 sServiceWatcher.waitOnDisconnected(); in resetService()
228 if (sServiceWatcher != null) { in waitServiceLazyConnect()
229 return sServiceWatcher.waitOnConnected(); in waitServiceLazyConnect()
[all …]
/cts/tests/translation/src/android/translation/cts/
DCtsContentCaptureService.java52 private static ServiceWatcher sServiceWatcher; field in CtsContentCaptureService
61 if (sServiceWatcher != null) { in onConnected()
62 sServiceWatcher.mService = this; in onConnected()
63 sServiceWatcher.mConnected.countDown(); in onConnected()
70 if (sServiceWatcher != null) { in onDisconnected()
71 sServiceWatcher.mService = null; in onDisconnected()
72 sServiceWatcher.mDisconnected.countDown(); in onDisconnected()
73 sServiceWatcher = null; in onDisconnected()
115 if (sServiceWatcher != null) { in setServiceWatcher()
118 sServiceWatcher = new ServiceWatcher(); in setServiceWatcher()
[all …]
DCtsTranslationService.java60 private static ServiceWatcher sServiceWatcher; field in CtsTranslationService
88 sServiceWatcher = null; in resetStaticState()
96 if (sServiceWatcher != null) { in onConnected()
97 sServiceWatcher.mService = this; in onConnected()
98 sServiceWatcher.mConnected.countDown(); in onConnected()
107 if (sServiceWatcher != null) { in onDisconnected()
108 sServiceWatcher.mService = null; in onDisconnected()
109 sServiceWatcher.mDisconnected.countDown(); in onDisconnected()
110 sServiceWatcher = null; in onDisconnected()
176 if (sServiceWatcher != null) { in setServiceWatcher()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DInstrumentedFieldClassificationService.java65 private static volatile ServiceWatcher sServiceWatcher; field in InstrumentedFieldClassificationService
78 if (sServiceWatcher != null) { in setServiceWatcher()
81 sServiceWatcher = new ServiceWatcher(); in setServiceWatcher()
82 return sServiceWatcher; in setServiceWatcher()
116 Log.i(TAG, "onConnected(): sServiceWatcher=" + sServiceWatcher); in onConnected()
118 if (sServiceWatcher == null) { in onConnected()
123 if (sServiceWatcher.mService != null) { in onConnected()
124 Log.w(TAG, "onConnected(): already created: " + sServiceWatcher); in onConnected()
128 sServiceWatcher.mService = this; in onConnected()
129 sServiceWatcher.mCreated.countDown(); in onConnected()
[all …]
DCtsAugmentedAutofillService.java78 private static ServiceWatcher sServiceWatcher; field in CtsAugmentedAutofillService
91 if (sServiceWatcher != null) { in setServiceWatcher()
94 sServiceWatcher = new ServiceWatcher(); in setServiceWatcher()
95 return sServiceWatcher; in setServiceWatcher()
116 if (sServiceWatcher != null) { in resetStaticState()
118 sServiceWatcher = null; in resetStaticState()
124 Log.i(TAG, "onConnected(): sServiceWatcher=" + sServiceWatcher); in onConnected()
126 if (sServiceWatcher == null) { in onConnected()
146 sServiceWatcher.mService = this; in onConnected()
147 sServiceWatcher.mCreated.countDown(); in onConnected()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/
DFieldClassificationServiceManualActivityLaunchTestCase.java32 private static InstrumentedFieldClassificationService.ServiceWatcher sServiceWatcher; field in FieldClassificationServiceManualActivityLaunchTestCase
44 if (sServiceWatcher != null) { in resetService()
47 sServiceWatcher.waitOnDisconnected(); in resetService()
53 sServiceWatcher = InstrumentedFieldClassificationService.setServiceWatcher(); in enablePccDetectionService()
57 InstrumentedFieldClassificationService service = sServiceWatcher.waitOnConnected(); in enablePccDetectionService()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCtsContentCaptureService.java83 private static ServiceWatcher sServiceWatcher; field in CtsContentCaptureService
172 if (sServiceWatcher != null) { in setServiceWatcher()
175 sServiceWatcher = new ServiceWatcher(); in setServiceWatcher()
176 return sServiceWatcher; in setServiceWatcher()
189 if (sServiceWatcher != null) { in resetStaticState()
191 sServiceWatcher = null; in resetStaticState()
198 return sServiceWatcher; in getServiceWatcher()
204 if (sServiceWatcher != null) { in clearServiceWatcher()
205 if (sServiceWatcher.mReadyToClear) { in clearServiceWatcher()
206 sServiceWatcher.mService = null; in clearServiceWatcher()
[all …]