Home
last modified time | relevance | path

Searched refs:mCallbacks (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/print/printTestUtilLib/src/android/print/test/services/
DStubbablePrinterDiscoverySession.java30 private final PrinterDiscoverySessionCallbacks mCallbacks; field in StubbablePrinterDiscoverySession
35 mCallbacks = callbacks; in StubbablePrinterDiscoverySession()
36 if (mCallbacks != null) { in StubbablePrinterDiscoverySession()
37 mCallbacks.setSession(this); in StubbablePrinterDiscoverySession()
47 if (mCallbacks != null) { in onStartPrinterDiscovery()
48 mCallbacks.onStartPrinterDiscovery(priorityList); in onStartPrinterDiscovery()
54 if (mCallbacks != null) { in onStopPrinterDiscovery()
55 mCallbacks.onStopPrinterDiscovery(); in onStopPrinterDiscovery()
61 if (mCallbacks != null) { in onValidatePrinters()
62 mCallbacks.onValidatePrinters(printerIds); in onValidatePrinters()
[all …]
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothGattServerCallbackTest.java51 private final BluetoothGattServerCallback mCallbacks = new BluetoothGattServerCallback() { field in BluetoothGattServerCallbackTest
148 mCallbacks.onConnectionStateChange(mBluetoothDevice, BluetoothProfile.STATE_CONNECTED, in allMethods()
150 mCallbacks.onServiceAdded(BluetoothGatt.GATT_SUCCESS, mBluetoothGattService); in allMethods()
151 mCallbacks.onCharacteristicReadRequest(mBluetoothDevice, 0, 0, in allMethods()
153 mCallbacks.onCharacteristicWriteRequest(mBluetoothDevice, 0, in allMethods()
156 mCallbacks.onDescriptorReadRequest(mBluetoothDevice, 0, 0, in allMethods()
158 mCallbacks.onDescriptorWriteRequest(mBluetoothDevice, 0, in allMethods()
161 mCallbacks.onExecuteWrite(mBluetoothDevice, 0, true); in allMethods()
162 mCallbacks.onNotificationSent(mBluetoothDevice, BluetoothGatt.GATT_SUCCESS); in allMethods()
163 mCallbacks.onMtuChanged(mBluetoothDevice, 0); in allMethods()
[all …]
DAdvertiseCallbackTest.java79 private Set<AdvertiseCallback> mCallbacks = new HashSet<>(); field in AdvertiseCallbackTest.MockAdvertiser
82 synchronized (mCallbacks) { in startAdvertise()
83 if (mCallbacks.contains(callback)) { in startAdvertise()
87 mCallbacks.add(callback); in startAdvertise()
DScanCallbackTest.java92 private Set<ScanCallback> mCallbacks = new HashSet<>(); field in ScanCallbackTest.MockScanner
95 synchronized (mCallbacks) { in startScan()
96 if (mCallbacks.contains(callback)) { in startScan()
100 mCallbacks.add(callback); in startScan()
DBluetoothLeBroadcastAssistantTest.java123 BluetoothLeBroadcastAssistant.Callback mCallbacks; field in BluetoothLeBroadcastAssistantTest
252 mBluetoothLeBroadcastAssistant.registerCallback(mExecutor, mCallbacks); in addSource()
264 verify(mCallbacks, timeout(ADD_SOURCE_TIMEOUT_MS)).onSourceAddFailed(testDevice, metadata, in addSource()
273 verify(mCallbacks, timeout(ADD_SOURCE_TIMEOUT_MS)).onSourceRemoveFailed( in addSource()
277 mBluetoothLeBroadcastAssistant.unregisterCallback(mCallbacks); in addSource()
384 mBluetoothLeBroadcastAssistant.registerCallback(mExecutor, mCallbacks); in modifySource()
396 verify(mCallbacks, timeout(ADD_SOURCE_TIMEOUT_MS)).onSourceModifyFailed( in modifySource()
476 mBluetoothLeBroadcastAssistant.registerCallback(mExecutor, mCallbacks); in startSearchingForSources()
484 verify(mCallbacks, timeout(START_SEARCH_TIMEOUT_MS)) in startSearchingForSources()
492 verify(mCallbacks, timeout(START_SEARCH_TIMEOUT_MS)) in startSearchingForSources()
[all …]
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/
DPlayer.java36 private ArrayList<BufferCallback> mCallbacks = new ArrayList<BufferCallback>(); field in Player
136 mCallbacks.add(callback); in addBufferCallback()
144 mCallbacks.remove(callback); in removeBufferCallback()
151 for (BufferCallback callback : mCallbacks) { in onPull()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedStateListDrawableTest.java269 private HashSet<AnimationCallback> mCallbacks = new HashSet<>(); field in AnimatedStateListDrawableTest.MockTransition
273 mCallbacks.add(callback); in registerAnimationCallback()
278 return mCallbacks.remove(callback); in unregisterAnimationCallback()
283 mCallbacks.clear(); in clearAnimationCallbacks()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleConnectionPriorityServerService.java79 mGattServer = mBluetoothManager.openGattServer(this, mCallbacks); in onCreate()
169 private final BluetoothGattServerCallback mCallbacks = new BluetoothGattServerCallback() { field in BleConnectionPriorityServerService
DBleEncryptedServerService.java112 mGattServer = mBluetoothManager.openGattServer(this, mCallbacks); in onCreate()
301 private final BluetoothGattServerCallback mCallbacks = new BluetoothGattServerCallback() { field in BleEncryptedServerService
DBleCocServerService.java210 mGattServer = mBluetoothManager.openGattServer(this, mCallbacks); in onCreate()
438 private final BluetoothGattServerCallback mCallbacks = new BluetoothGattServerCallback() { field in BleCocServerService
DBleServerService.java257 mGattServer = mBluetoothManager.openGattServer(this, mCallbacks); in onCreate()
895 private final BluetoothGattServerCallback mCallbacks = new BluetoothGattServerCallback() { field in BleServerService
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/
DAbstractRecognitionServiceTest.java256 assertThat(listener.mCallbacks) in testCanTriggerModelDownloadWithListener()
875 private List<ModelDownloadCallback> mCallbacks = new ArrayList<>(); field in AbstractRecognitionServiceTest.ModelDownloadCallbackLogger
879 mCallbacks.add(ModelDownloadCallback.ON_PROGRESS); in onProgress()
884 mCallbacks.add(ModelDownloadCallback.ON_SUCCESS); in onSuccess()
889 mCallbacks.add(ModelDownloadCallback.ON_SCHEDULED); in onScheduled()
894 mCallbacks.add(ModelDownloadCallback.ON_ERROR); in onError()
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsAnimationControllerTests.java118 List<VerifyingCallback> mCallbacks = new ArrayList<>(); field in WindowInsetsAnimationControllerTests
212 mCallbacks.forEach(VerifyingCallback::assertNoPendingAnimations); in tearDown()
218 mCallbacks.clear(); in tearDown()
272 mCallbacks.clear(); in retryIfCancelled()
618 mCallbacks.add(callback); in setupAnimationListener()
678 mCallbacks, in setVisibilityAndWait()