/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | RadioOnStateListenerTest.java | 60 RadioOnStateListener mListener; field in RadioOnStateListenerTest 66 mListener = new RadioOnStateListener(); in setUp() 72 mListener.setTimeBetweenRetriesMillis(5000); in tearDown() 73 mListener.setMaxNumRetries(5); in tearDown() 74 mListener.getHandler().removeCallbacksAndMessages(null); in tearDown() 76 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS /*ms timeout*/); in tearDown() 77 mListener = null; in tearDown() 88 mListener.waitForRadioOn(mMockPhone, mCallback, false, false); in testRegisterForCallback() 90 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testRegisterForCallback() 114 mListener.waitForRadioOn(mMockPhone, mCallback, false, false); in testPhoneChangeState_OkToCallTrue() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ActiveSubscriptionsListenerTest.java | 71 private ActiveSubscriptionsListenerImpl mListener; field in ActiveSubscriptionsListenerTest 86 mListener = spy(new ActiveSubscriptionsListenerImpl(Looper.getMainLooper(), mContext)); in setUp() 87 doReturn(mSubscriptionManager).when(mListener).getSubscriptionManager(); in setUp() 88 mReceiver = mListener.getSubscriptionChangeReceiver(); in setUp() 99 mListener.close(); in cleanUp() 115 verify(mListener, never()).onChanged(); in constructor_noListeningWasSetup() 122 verify(mListener, never()).onChanged(); in start_configChangedIntent_onChangedShouldBeCalled() 124 mListener.start(); in start_configChangedIntent_onChangedShouldBeCalled() 127 verify(mListener, times(1)).onChanged(); in start_configChangedIntent_onChangedShouldBeCalled() 130 verify(mListener, times(2)).onChanged(); in start_configChangedIntent_onChangedShouldBeCalled() [all …]
|
D | DataConnectivityListenerTest.java | 55 private DataConnectivityListener mListener; field in DataConnectivityListenerTest 63 mListener = new DataConnectivityListener(mContext, mClient); in setUp() 74 mListener.start(); in registerNetworkCallback_listenerStart_doesRegister() 76 eq(mListener), any(Handler.class)); in registerNetworkCallback_listenerStart_doesRegister() 83 mListener.onCapabilitiesChanged(changedNetwork, null); in onCapabilitiesChanged_notActiveNetwork_noCallback() 90 mListener.onCapabilitiesChanged(mActiveNetwork, null); in onCapabilitiesChanged_activeNetwork_onDataConnectivityChangeFires() 99 mListener.onLosing(changedNetwork, 500); in onLosing_notActiveNetwork_onDataConnectivityChangeFires() 106 mListener.onLosing(mActiveNetwork, 500); in onLosing_activeNetwork_onDataConnectivityChangeFires() 115 mListener.onLost(changedNetwork); in onLost_notActiveNetwork_onDataConnectivityChangeFires() 122 mListener.onLost(mActiveNetwork); in onLost_activeNetwork_onDataConnectivityChangeFires()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ConcreteClientModeManagerTest.java | 103 @Mock ActiveModeManager.Listener<ConcreteClientModeManager> mListener; field in ConcreteClientModeManagerTest 256 mListener, mWifiMetrics, mWakeupController, mWifiInjector, mSelfRecovery, in createClientModeManager() 277 verify(mListener).onStarted(mClientModeManager); in startClientInScanOnlyModeAndVerifyEnabled() 313 verify(mListener).onStarted(mClientModeManager); in startClientInConnectModeAndVerifyEnabled() 404 verify(mListener).onStarted(mClientModeManager); in switchFromScanOnlyModeToConnectMode() 405 verify(mListener).onRoleChanged(mClientModeManager); in switchFromScanOnlyModeToConnectMode() 465 verify(mListener).onStarted(mClientModeManager); in switchFromConnectModeToScanOnlyMode() 466 verify(mListener).onRoleChanged(mClientModeManager); in switchFromConnectModeToScanOnlyMode() 492 verify(mListener).onStartFailure(mClientModeManager); in detectAndReportErrorWhenSetupForClientInConnectivityModeWifiNativeFailure() 506 verify(mListener).onStartFailure(mClientModeManager); in detectAndReportErrorWhenSetupInterfaceForClientInScanModeWifiNativeFailure() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | SignalStrengthListenerTest.java | 63 private SignalStrengthListener mListener; field in SignalStrengthListenerTest 73 mListener = new SignalStrengthListener(mContext, mCallback); in setUp() 78 mListener.resume(); in resume_noIds_noCrash() 83 mListener.resume(); in pause_noIds_noCrash() 88 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_beforeResume_startedListening() 111 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdAdded() 114 eq(mListener.mTelephonyCallbacks.get(SUB_ID_1))); in updateSubscriptionIds_twoCalls_oneIdAdded() 116 eq(mListener.mTelephonyCallbacks.get(SUB_ID_2))); in updateSubscriptionIds_twoCalls_oneIdAdded() 118 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2, SUB_ID_3)); in updateSubscriptionIds_twoCalls_oneIdAdded() 120 mListener.mTelephonyCallbacks.get(SUB_ID_1)); in updateSubscriptionIds_twoCalls_oneIdAdded() [all …]
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | SelfManagedCallList.java | 72 private Listener mListener; field in SelfManagedCallList 96 mListener = listener; in setListener() 139 if (mListener != null) { in notifyCreateIncomingConnectionFailed() 140 mListener.onCreateIncomingConnectionFailed(request); in notifyCreateIncomingConnectionFailed() 145 if (mListener != null) { in notifyCreateOutgoingConnectionFailed() 146 mListener.onCreateOutgoingConnectionFailed(request); in notifyCreateOutgoingConnectionFailed() 151 if (mListener != null) { in notifyConnectionServiceFocusGained() 152 mListener.onConnectionServiceFocusGained(); in notifyConnectionServiceFocusGained() 157 if (mListener != null) { in notifyConnectionServiceFocusLost() 158 mListener.onConnectionServiceFocusLost(); in notifyConnectionServiceFocusLost() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/ |
D | P2pPrinterConnection.java | 48 private ConnectionListener mListener; field in P2pPrinterConnection 57 mListener = listener; in P2pPrinterConnection() 91 if (mListener == null) { in onPeerFound() 111 if (mListener == null) { in onConnectionOpen() 122 mListener.onConnectionComplete(null); in onConnectionOpen() 132 if (mListener != null) { in onConnectionOpen() 133 mListener.onConnectionComplete(null); in onConnectionOpen() 144 if (mListener != null) { in onConnectionClosed() 145 mListener.onConnectionComplete(null); in onConnectionClosed() 152 if (mListener == null) { in onConnectionDelayed() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 201 private CameraManagerListener mListener; field in CameraManager 343 if (mListener != null) { in selectCamera() 344 mListener.onCameraError(ERROR_OPENING_CAMERA, e); in selectCamera() 367 if (mListener != null) { in selectCameraByIndex() 368 mListener.onCameraError(ERROR_OPENING_CAMERA, e); in selectCameraByIndex() 451 if (mListener != null) { in openCamera() 452 mListener.onCameraError(ERROR_OPENING_CAMERA, mException); in openCamera() 524 mListener = listener; in setListener() 525 if (!mIsHardwareAccelerationSupported && mListener != null) { in setListener() 526 mListener.onCameraError(ERROR_HARDWARE_ACCELERATION_DISABLED, null); in setListener() [all …]
|
D | MediaPicker.java | 122 private MediaPickerListener mListener; field in MediaPicker 464 mListener = listener; in setListener() 542 if (mListener != null) { in dispatchOpened() 546 mListener.onOpened(); in dispatchOpened() 559 if (mListener != null) { in dispatchDismissed() 563 mListener.onDismissed(); in dispatchDismissed() 574 if (mListener != null) { in dispatchFullScreen() 578 mListener.onFullScreenChanged(fullScreen); in dispatchFullScreen() 595 if (mListener != null) { in dispatchItemsSelected() 599 mListener.onItemsSelected(items, dismissMediaPicker); in dispatchItemsSelected() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothSummaryUpdaterTest.java | 66 private SummaryListener mListener; field in BluetoothSummaryUpdaterTest 82 doCallRealMethod().when(mListener).onSummaryChanged(anyString()); in setUp() 83 mSummaryUpdater = new BluetoothSummaryUpdater(mContext, mListener, mBluetoothManager); in setUp() 121 verify(mListener).onSummaryChanged( in register_true_shouldSendSummaryChange() 135 verify(mListener).onSummaryChanged(mContext.getString(R.string.bluetooth_disabled)); in onBluetoothStateChanged_btDisabled_shouldSendDisabledSummary() 148 verify(mListener).onSummaryChanged( in onBluetoothStateChanged_btEnabled_connected_shouldSendConnectedSummary() 163 verify(mListener).onSummaryChanged(mContext.getString(R.string.disconnected)); in onBluetoothStateChanged_btEnabled_connectedMisMatch_shouldSendNotConnected() 177 verify(mListener).onSummaryChanged(mContext.getString(R.string.disconnected)); in onBluetoothStateChanged_btEnabled_notConnected_shouldSendDisconnectedMessage() 189 verify(mListener).onSummaryChanged(mContext.getString(R.string.disconnected)); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary() 195 verify(mListener).onSummaryChanged( in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/ |
D | MpegTsPlayer.java | 132 private Listener mListener; field in MpegTsPlayer 169 mListener = listener; in MpegTsPlayer() 281 if (mListener != null) { in onRenderersError() 282 mListener.onError(e); in onRenderersError() 365 mListener = null; in release() 458 if (mListener != null) { in onAudioUnplayable() 459 mListener.onAudioUnplayable(); in onAudioUnplayable() 515 if (mListener == null) { in onPlayerStateChanged() 518 mListener.onStateChanged(playWhenReady, state); in onPlayerStateChanged() 523 mListener.onVideoSizeChanged(format.width, format.height, format.pixelWidthHeightRatio); in onPlayerStateChanged() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | FilmstripGestureRecognizer.java | 50 private final Listener mListener; field in FilmstripGestureRecognizer 53 mListener = listener; in FilmstripGestureRecognizer() 65 mListener.onUp(event.getX(), event.getY()); in onTouchEvent() 78 mListener.onMouseScroll(hscroll, vscroll); in onGenericMotionEvent() 91 mListener.onLongPress(e.getX(), e.getY()); in onLongPress() 97 return mListener.onScroll(e2.getX(), e2.getY(), dx, dy); in onScroll() 103 return mListener.onFling(velocityX, velocityY); in onFling() 108 mListener.onDown(e.getX(), e.getY()); in onDown() 121 return mListener.onSingleTapUp(e.getX(), e.getY()); in onSingleTapConfirmed() 126 return mListener.onDoubleTap(e.getX(), e.getY()); in onDoubleTap() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintAuthenticateSidecar.java | 34 private Listener mListener; field in FingerprintAuthenticateSidecar 66 if (mListener != null) { 67 mListener.onAuthenticationSucceeded(result); 76 if (mListener != null) { 77 mListener.onAuthenticationFailed(); 84 if (mListener != null) { 85 mListener.onAuthenticationError(errMsgId, errString); 94 if (mListener != null) { 95 mListener.onAuthenticationHelp(helpMsgId, helpString); 118 if (mListener == null && listener != null) { in setListener() [all …]
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/ |
D | WidgetsListAdapterTest.java | 68 @Mock private RecyclerView.AdapterDataObserver mListener; field in WidgetsListAdapterTest 86 mAdapter.registerAdapterDataObserver(mListener); in setup() 97 verify(mListener).onChanged(); in setWidgets_shouldNotifyDataSetChanged() 105 verify(mListener).onItemRangeInserted(eq(1), eq(1)); in setWidgets_withItemInserted_shouldNotifyItemInserted() 113 verify(mListener).onItemRangeRemoved(eq(1), eq(1)); in setWidgets_withItemRemoved_shouldNotifyItemRemoved() 121 verify(mListener).onItemRangeChanged(eq(0), eq(1), isNull()); in setWidgets_appIconChanged_shouldNotifyItemChanged() 140 verify(mListener).onItemRangeInserted(eq(2), eq(1)); in headerClick_expanded_shouldNotifyItemChange() 154 Mockito.reset(mListener); in setWidgets_expandedApp_moreWidgets_shouldNotifyItemChangedWithWidgetItemInfoDiff() 168 verify(mListener).onItemRangeChanged(eq(2), eq(1), isNull()); in setWidgets_expandedApp_moreWidgets_shouldNotifyItemChangedWithWidgetItemInfoDiff() 201 verify(mListener).onItemRangeRemoved(/* positionStart= */ 1, /* itemCount= */ 1); in setWidgets_hodgepodge_shouldInvokeExpectedDataObserverCallbacks() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactPickerFragment.java | 41 private OnContactPickerActionListener mListener; field in ContactPickerFragment 55 mListener = listener; in setOnContactPickerActionListener() 93 if (position == 0 && mCreateContactEnabled && mListener != null) { in onItemClick() 94 mListener.onCreateNewContactAction(); in onItemClick() 122 if (mListener != null) { in editContact() 123 mListener.onEditContactAction(contactUri); in editContact() 128 if (mListener != null) { in pickContact() 129 mListener.onPickContactAction(uri); in pickContact() 160 if (mListener != null) { in onShortcutIntentCreated() 161 mListener.onShortcutIntentCreated(shortcutIntent); in onShortcutIntentCreated() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/ |
D | PropertyListAdapter.java | 57 private final PropertyListEventListener mListener; field in PropertyListAdapter 66 mListener = new PropertyListEventListener(eventLog, svEventLog); in PropertyListAdapter() 122 mMgr.unregisterCallback(mListener, propId); in getView() 124 mListener.addPropertySelectedSampleRate(propId, c.getMaxSampleRate()); in getView() 125 mListener.updatePropertyStartTime(propId); in getView() 126 mListener.resetEventCountForProperty(propId); in getView() 127 mMgr.registerCallback(mListener, propId, c.getMaxSampleRate()); in getView() 129 mListener.addPropertySelectedSampleRate(propId, in getView() 131 mListener.updatePropertyStartTime(propId); in getView() 132 mListener.resetEventCountForProperty(propId); in getView() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GestureRecognizer.java | 46 private final Listener mListener; field in GestureRecognizer 49 mListener = listener; in GestureRecognizer() 79 return mListener.onSingleTapUp(e.getX(), e.getY()); in onSingleTapUp() 84 return mListener.onDoubleTap(e.getX(), e.getY()); in onDoubleTap() 90 return mListener.onScroll( in onScroll() 97 return mListener.onFling(e1, e2, velocityX, velocityY); in onFling() 105 return mListener.onScaleBegin( in onScaleBegin() 111 return mListener.onScale(detector.getFocusX(), in onScale() 117 mListener.onScaleEnd(); in onScaleEnd() 124 mListener.onDown(e.getX(), e.getY()); in onDown() [all …]
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | FixedFirstProxyAdapter.java | 40 private Listener mListener; field in FixedFirstProxyAdapter 89 if (mListener != null) { in updateItemAt() 90 mListener.onFilmstripItemUpdated(new UpdateReporter() { in updateItemAt() 140 mListener = listener; in setListener() 144 if (mListener != null) { in setListener() 145 mListener.onFilmstripItemLoaded(); in setListener() 151 if (mListener == null) { in onFilmstripItemLoaded() 154 mListener.onFilmstripItemUpdated(new UpdateReporter() { in onFilmstripItemLoaded() 169 mListener.onFilmstripItemUpdated(new UpdateReporter() { in onFilmstripItemUpdated() 184 mListener.onFilmstripItemInserted(index + 1, item); in onFilmstripItemInserted() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/util/ |
D | VersionedBroadcastListenerTest.java | 51 private VersionedBroadcastListener mListener; field in VersionedBroadcastListenerTest 79 mListener = new VersionedBroadcastListener( in setUp() 84 if (mListener != null) { in tearDown() 85 mListener.stopListening(); in tearDown() 86 mListener = null; in tearDown() 98 mListener.startListening(); in testBasicListening() 103 mListener.stopListening(); in testBasicListening() 114 mListener.startListening(); in testBroadcastsBeforeStartAreIgnored() 121 mListener.startListening(); in testBroadcastsAfterStopAreIgnored() 124 mListener.stopListening(); in testBroadcastsAfterStopAreIgnored()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | MultiSelectActionModeCallback.java | 70 private Listener mListener; field in MultiSelectActionModeCallback 80 mListener = listener; in MultiSelectActionModeCallback() 108 mListener.onActionBarDelete(mSelectedConversations.values()); in onActionItemClicked() 111 mListener.onActionBarArchive(mSelectedConversations.values(), true); in onActionItemClicked() 114 mListener.onActionBarArchive(mSelectedConversations.values(), false); in onActionItemClicked() 117 mListener.onActionBarNotification(mSelectedConversations.values(), false); in onActionItemClicked() 120 mListener.onActionBarNotification(mSelectedConversations.values(), true); in onActionItemClicked() 124 mListener.onActionBarAddContact(mSelectedConversations.valueAt(0)); in onActionItemClicked() 128 mListener.onActionBarBlock(mSelectedConversations.valueAt(0)); in onActionItemClicked() 131 mListener.onActionBarHome(); in onActionItemClicked() [all …]
|
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
D | NativeNfcManager.java | 54 private final DeviceHostListener mListener; field in NativeNfcManager 61 mListener = listener; in NativeNfcManager() 411 mListener.onRemoteEndpointDiscovered(tag); in notifyNdefMessageListeners() 418 mListener.onLlcpLinkActivated(device); in notifyLlcpLinkActivation() 425 mListener.onLlcpLinkDeactivated(device); in notifyLlcpLinkDeactivated() 432 mListener.onLlcpFirstPacketReceived(device); in notifyLlcpLinkFirstPacketReceived() 436 mListener.onHostCardEmulationActivated(technology); in notifyHostEmuActivated() 440 mListener.onHostCardEmulationData(technology, data); in notifyHostEmuData() 444 mListener.onHostCardEmulationDeactivated(technology); in notifyHostEmuDeactivated() 448 mListener.onRemoteFieldActivated(); in notifyRfFieldActivated() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | LocationManager.java | 32 private Listener mListener; field in LocationManager 48 mListener = listener; in LocationManager() 97 if (mListener != null) mListener.showGpsOnScreenIndicator(false); in startReceivingLocationUpdates() 118 if (mListener != null) mListener.hideGpsOnScreenIndicator(); in stopReceivingLocationUpdates() 141 if (mListener != null && mRecordLocation && in onLocationChanged() 143 mListener.showGpsOnScreenIndicator(true); in onLocationChanged() 168 if (mListener != null && mRecordLocation && in onStatusChanged() 170 mListener.showGpsOnScreenIndicator(false); in onStatusChanged()
|
/packages/apps/Settings/src/com/android/settings/biometrics/ |
D | BiometricEnrollSidecar.java | 47 private Listener mListener; field in BiometricEnrollSidecar 168 if (mListener != null) { in onEnrollmentProgress() 169 mListener.onEnrollmentProgressChange(mEnrollmentSteps, remaining); in onEnrollmentProgress() 176 if (mListener != null) { in onEnrollmentHelp() 177 mListener.onEnrollmentHelp(helpMsgId, helpString); in onEnrollmentHelp() 184 if (mListener != null) { in onEnrollmentError() 185 mListener.onEnrollmentError(errMsgId, errString); in onEnrollmentError() 193 mListener = listener; in setListener() 194 if (mListener != null) { in setListener() 197 event.send(mListener); in setListener()
|
/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarTelemetryManagerTest.java | 63 private CarTelemetryManager.CarTelemetryResultsListener mListener; field in CarTelemetryManagerTest 80 mCarTelemetryManager.setListener(DIRECT_EXECUTOR, mListener); in setListener_shouldSucceed() 87 mCarTelemetryManager.setListener(DIRECT_EXECUTOR, mListener); in clearListener_shouldSucceed() 145 mCarTelemetryManager.setListener(DIRECT_EXECUTOR, mListener); in sendFinishedReports_shouldSucceed() 150 verify(mListener).onResult(DEFAULT_MANIFEST_KEY, SCRIPT_RESULT_BYTES); in sendFinishedReports_shouldSucceed() 155 mCarTelemetryManager.setListener(DIRECT_EXECUTOR, mListener); in sendAllFinishedReports_shouldSucceed() 162 verify(mListener).onResult(DEFAULT_MANIFEST_KEY, SCRIPT_RESULT_BYTES); in sendAllFinishedReports_shouldSucceed() 163 verify(mListener).onResult(key2, SCRIPT_RESULT_BYTES); in sendAllFinishedReports_shouldSucceed() 168 mCarTelemetryManager.setListener(DIRECT_EXECUTOR, mListener); in sendScriptExecutionErrors_shouldSucceed() 173 verify(mListener).onError(ERROR_BYTES); in sendScriptExecutionErrors_shouldSucceed()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | FilmstripBottomPanel.java | 43 private Listener mListener; field in FilmstripBottomPanel 71 mListener = listener; in setListener() 196 } else if (mListener != null) { in setupEditButton() 197 mListener.onEdit(); in setupEditButton() 211 if (mListener != null) { in setupViewButton() 212 mListener.onExternalViewer(); in setupViewButton() 223 if (mListener != null) { in setupDeleteButton() 224 mListener.onDelete(); in setupDeleteButton() 235 if (mListener != null) { in setupShareButton() 236 mListener.onShare(); in setupShareButton() [all …]
|