/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | RadioOnStateListenerTest.java | 58 RadioOnStateListener mListener; field in RadioOnStateListenerTest 64 mListener = new RadioOnStateListener(); in setUp() 71 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS /*ms timeout*/); in tearDown() 72 mListener.getHandler().removeCallbacksAndMessages(null); in tearDown() 73 mListener = null; in tearDown() 83 mListener.waitForRadioOn(mMockPhone, mCallback); in testRegisterForCallback() 85 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testRegisterForCallback() 104 mListener.waitForRadioOn(mMockPhone, mCallback); in testPhoneChangeState_OkToCallTrue() 105 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_OkToCallTrue() 107 mListener.getHandler().obtainMessage(RadioOnStateListener.MSG_SERVICE_STATE_CHANGED, in testPhoneChangeState_OkToCallTrue() [all …]
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | SelfManagedCallList.java | 70 private Listener mListener; field in SelfManagedCallList 94 mListener = listener; in setListener() 132 if (mListener != null) { in notifyCreateIncomingConnectionFailed() 133 mListener.onCreateIncomingConnectionFailed(request); in notifyCreateIncomingConnectionFailed() 138 if (mListener != null) { in notifyCreateOutgoingConnectionFailed() 139 mListener.onCreateOutgoingConnectionFailed(request); in notifyCreateOutgoingConnectionFailed() 144 if (mListener != null) { in notifyConnectionServiceFocusGained() 145 mListener.onConnectionServiceFocusGained(); in notifyConnectionServiceFocusGained() 150 if (mListener != null) { in notifyConnectionServiceFocusLost() 151 mListener.onConnectionServiceFocusLost(); in notifyConnectionServiceFocusLost() [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 | 124 private MediaPickerListener mListener; field in MediaPicker 477 mListener = listener; in setListener() 555 if (mListener != null) { in dispatchOpened() 559 mListener.onOpened(); in dispatchOpened() 572 if (mListener != null) { in dispatchDismissed() 576 mListener.onDismissed(); in dispatchDismissed() 587 if (mListener != null) { in dispatchFullScreen() 591 mListener.onFullScreenChanged(fullScreen); in dispatchFullScreen() 608 if (mListener != null) { in dispatchItemsSelected() 612 mListener.onItemsSelected(items, dismissMediaPicker); in dispatchItemsSelected() [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/TV/tuner/src/com/android/tv/tuner/exoplayer/ |
D | MpegTsPlayer.java | 131 private Listener mListener; field in MpegTsPlayer 168 mListener = listener; in MpegTsPlayer() 280 if (mListener != null) { in onRenderersError() 281 mListener.onError(e); in onRenderersError() 364 mListener = null; in release() 457 if (mListener != null) { in onAudioUnplayable() 458 mListener.onAudioUnplayable(); in onAudioUnplayable() 514 if (mListener == null) { in onPlayerStateChanged() 517 mListener.onStateChanged(playWhenReady, state); in onPlayerStateChanged() 522 mListener.onVideoSizeChanged(format.width, format.height, format.pixelWidthHeightRatio); in onPlayerStateChanged() [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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/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 …]
|
D | SelectionManager.java | 39 private SelectionListener mListener; field in SelectionManager 66 mListener = listener; in setSelectionListener() 74 if (mListener != null) mListener.onSelectionModeChange(SELECT_ALL_MODE); in selectAll() 95 if (mListener != null) mListener.onSelectionModeChange(ENTER_SELECTION_MODE); in enterSelectionMode() 104 if (mListener != null) mListener.onSelectionModeChange(LEAVE_SELECTION_MODE); in leaveSelectionMode() 144 if (mListener != null) mListener.onSelectionChange(path, isItemSelected(path)); in toggle()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | SignalStrengthListenerTest.java | 65 private SignalStrengthListener mListener; field in SignalStrengthListenerTest 75 mListener = new SignalStrengthListener(mContext, mCallback); in setUp() 80 mListener.resume(); in resume_noIds_noCrash() 85 mListener.resume(); in pause_noIds_noCrash() 90 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_beforeResume_startedListening() 107 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdAdded() 111 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2, SUB_ID_3)); in updateSubscriptionIds_twoCalls_oneIdAdded() 122 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdRemoved() 126 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdRemoved() 140 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded() [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/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | DataConnectivityListenerTest.java | 54 private DataConnectivityListener mListener; field in DataConnectivityListenerTest 62 mListener = new DataConnectivityListener(mContext, mClient); in setUp() 73 mListener.start(); in start_doesRegister() 75 eq(mListener), any(Handler.class)); in start_doesRegister() 81 mListener.onCapabilitiesChanged(changedNetwork, mock(NetworkCapabilities.class)); in onCapabilitiesChanged_notActiveNetwork_noCallback() 87 mListener.onCapabilitiesChanged(mActiveNetwork, mock(NetworkCapabilities.class)); in onCapabilitiesChanged_activeNetwork_onDataConnectivityChangeFires() 94 mListener.onLosing(changedNetwork, 500); in onLosing_notActiveNetwork_onDataConnectivityChangeFires() 100 mListener.onLosing(mActiveNetwork, 500); in onLosing_activeNetwork_onDataConnectivityChangeFires() 107 mListener.onLost(changedNetwork); in onLost_notActiveNetwork_onDataConnectivityChangeFires() 113 mListener.onLost(mActiveNetwork); in onLost_activeNetwork_onDataConnectivityChangeFires()
|
D | MobileDataEnabledListenerTest.java | 43 private MobileDataEnabledListener mListener; field in MobileDataEnabledListenerTest 49 mListener = new MobileDataEnabledListener(mContext, mClient); in setUp() 54 mListener.start(SUB_ID_ONE); in onMobileDataEnabledChange_firesCorrectly() 62 mListener.start(SUB_ID_ONE); in onMobileDataEnabledChange_doesNotFireAfterStop() 63 mListener.stop(); in onMobileDataEnabledChange_doesNotFireAfterStop() 71 mListener.start(SUB_ID_ONE); in onMobileDataEnabledChange_changedToDifferentId_firesCorrectly() 72 mListener.stop(); in onMobileDataEnabledChange_changedToDifferentId_firesCorrectly() 73 mListener.start(SUB_ID_TWO); in onMobileDataEnabledChange_changedToDifferentId_firesCorrectly()
|
/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() 396 mListener.onRemoteEndpointDiscovered(tag); in notifyNdefMessageListeners() 403 mListener.onLlcpLinkActivated(device); in notifyLlcpLinkActivation() 410 mListener.onLlcpLinkDeactivated(device); in notifyLlcpLinkDeactivated() 417 mListener.onLlcpFirstPacketReceived(device); in notifyLlcpLinkFirstPacketReceived() 421 mListener.onHostCardEmulationActivated(technology); in notifyHostEmuActivated() 425 mListener.onHostCardEmulationData(technology, data); in notifyHostEmuData() 429 mListener.onHostCardEmulationDeactivated(technology); in notifyHostEmuDeactivated() 433 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/TV/tuner/src/com/android/tv/tuner/ts/ |
D | TsParser.java | 74 private final TsOutputListener mListener; field in TsParser 164 if (mListener != null) { 165 mListener.onPatDetected(items); 194 && mListener != null) { 195 mListener.onAllVctItemsParsed(); 217 if (mListener != null) { 218 mListener.onEitPidDetected(i.getTableTypePid()); 226 if (mListener != null) { 227 mListener.onEttPidDetected(i.getTableTypePid()); 264 && mListener != null) { [all …]
|
/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/CarDeveloperOptions/src/com/android/car/developeroptions/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/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 …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultPackageStatusNotifier.java | 66 private final Listener mListener; field in DefaultPackageStatusNotifier.ListenerWrapper 71 mListener = listener; in ListenerWrapper() 86 mListener.onPackageChanged(packageName, PackageStatus.REMOVED); in onPackageRemoved() 92 mListener.onPackageChanged(packageName, PackageStatus.ADDED); in onPackageAdded() 99 mListener.onPackageChanged(packageName, PackageStatus.CHANGED); in onPackageChanged() 108 mListener.onPackageChanged(packageName, in onPackagesAvailable() 119 mListener.onPackageChanged(packageName, PackageStatus.REMOVED); in onPackagesUnavailable() 128 mListener.onPackageChanged(packageName, PackageStatus.REMOVED); in onPackagesSuspended() 137 mListener.onPackageChanged(packageName, PackageStatus.ADDED); in onPackagesUnsuspended()
|