Home
last modified time | relevance | path

Searched refs:mCallback (Results 1 – 25 of 160) sorted by relevance

1234567

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningManagerTest.java71 @Mock private ProvisioningManagerCallback mCallback; field in ProvisioningManagerTest
131 mManager.registerListener(mCallback); in testRegisterListener_noProgress()
134 verifyZeroInteractions(mCallback); in testRegisterListener_noProgress()
140 verify(mCallback).progressUpdate(TEST_PROGRESS_ID); in testRegisterListener_noProgress()
141 verifyNoMoreInteractions(mCallback); in testRegisterListener_noProgress()
147 mManager.registerListener(mCallback); in testListener_progress()
151 verify(mCallback).progressUpdate(TEST_PROGRESS_ID); in testListener_progress()
154 mManager.unregisterListener(mCallback); in testListener_progress()
155 mManager.registerListener(mCallback); in testListener_progress()
157 verify(mCallback, times(2)).progressUpdate(TEST_PROGRESS_ID); in testListener_progress()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DVerifyPackageTaskTest.java65 @Mock private AbstractProvisioningTask.Callback mCallback; field in VerifyPackageTaskTest
101 verify(mCallback).onSuccess(mTask); in testDownloadLocationNull()
102 verifyNoMoreInteractions(mCallback); in testDownloadLocationNull()
115 verify(mCallback).onError(mTask, ERROR_DEVICE_ADMIN_MISSING); in testMissingDeviceAdminComponent()
116 verifyNoMoreInteractions(mCallback); in testMissingDeviceAdminComponent()
129 verify(mCallback).onSuccess(mTask); in testPackageChecksumSha256_success()
130 verifyNoMoreInteractions(mCallback); in testPackageChecksumSha256_success()
143 verify(mCallback).onSuccess(mTask); in testPackageChecksumSha1_success()
144 verifyNoMoreInteractions(mCallback); in testPackageChecksumSha1_success()
157 verify(mCallback).onError(mTask, ERROR_HASH_MISMATCH); in testPackageChecksumSha1_failure()
[all …]
DSetDevicePolicyTaskTest.java49 @Mock private AbstractProvisioningTask.Callback mCallback; field in SetDevicePolicyTaskTest
94 verify(mCallback).onSuccess(mTask); in testEnableDevicePolicyApp()
95 verifyNoMoreInteractions(mCallback); in testEnableDevicePolicyApp()
110 verify(mCallback).onError(mTask, 0); in testEnableDevicePolicyApp_PackageNotFound()
111 verifyNoMoreInteractions(mCallback); in testEnableDevicePolicyApp_PackageNotFound()
124 verify(mCallback).onSuccess(mTask); in testSetActiveAdmin()
125 verifyNoMoreInteractions(mCallback); in testSetActiveAdmin()
139 verify(mCallback).onSuccess(mTask); in testSetDeviceOwner()
140 verifyNoMoreInteractions(mCallback); in testSetDeviceOwner()
156 verify(mCallback).onError(mTask, 0); in testSetDeviceOwner_PreconditionsNotMet()
[all …]
DInstallPackageTaskTest.java57 @Mock private AbstractProvisioningTask.Callback mCallback; field in InstallPackageTaskTest
73 mCallback); in setUp()
89 verify(mCallback).onSuccess(mTask); in testNoDownloadLocation()
90 verifyNoMoreInteractions(mCallback); in testNoDownloadLocation()
109 verify(mCallback).onSuccess(mTask); in testSuccess()
110 verifyNoMoreInteractions(mCallback); in testSuccess()
129 verify(mCallback).onSuccess(mTask); in testInstallFailedVersionDowngrade()
130 verifyNoMoreInteractions(mCallback); in testInstallFailedVersionDowngrade()
149 verify(mCallback).onError(mTask, ERROR_INSTALLATION_FAILED); in testInstallFailedOtherError()
150 verifyNoMoreInteractions(mCallback); in testInstallFailedOtherError()
[all …]
DStartManagedProfileTaskTest.java63 @Mock private AbstractProvisioningTask.Callback mCallback; field in StartManagedProfileTaskTest
80 mTask = new StartManagedProfileTask(mIActivityManager, mContext, TEST_PARAMS, mCallback); in setUp()
86 }).when(mCallback).onSuccess(mTask); in setUp()
115 verifyZeroInteractions(mCallback); in testSuccess()
122 verify(mCallback).onSuccess(mTask); in testSuccess()
123 verifyNoMoreInteractions(mCallback); in testSuccess()
144 verify(mCallback).onError(mTask, 0); in testError()
145 verifyNoMoreInteractions(mCallback); in testError()
167 verify(mCallback).onError(mTask, 0); in testRemoteException()
168 verifyNoMoreInteractions(mCallback); in testRemoteException()
DCopyAccountToUserTaskTest.java62 @Mock private AbstractProvisioningTask.Callback mCallback; field in CopyAccountToUserTaskTest
99 verify(mCallback).onSuccess(mTask); in testRun()
100 verifyNoMoreInteractions(mCallback); in testRun()
123 verify(mCallback).onSuccess(mTask); in testRun_error()
124 verifyNoMoreInteractions(mCallback); in testRun_error()
139 verify(mCallback).onSuccess(mTask); in testRun_nullAccount()
140 verifyNoMoreInteractions(mCallback); in testRun_nullAccount()
155 verify(mCallback).onSuccess(mTask); in testRun_sameUser()
156 verifyNoMoreInteractions(mCallback); in testRun_sameUser()
206 mTask = new CopyAccountToUserTask(sourceUserId, mContext, params, mCallback); in createTask()
DDeleteNonRequiredAppsTaskTest.java58 private @Mock AbstractProvisioningTask.Callback mCallback; field in DeleteNonRequiredAppsTaskTest
78 mTask = new DeleteNonRequiredAppsTask(mTestContext, TEST_PARAMS, mCallback, mLogic); in setUp()
94 verify(mCallback).onSuccess(mTask); in testNoAppsToDelete()
95 verifyNoMoreInteractions(mCallback); in testNoAppsToDelete()
116 verify(mCallback).onSuccess(mTask); in testAppsToDelete()
117 verifyNoMoreInteractions(mCallback); in testAppsToDelete()
136 verify(mCallback).onSuccess(mTask); in testAllAppsAlreadyDeleted()
137 verifyNoMoreInteractions(mCallback); in testAllAppsAlreadyDeleted()
160 verify(mCallback).onError(mTask, 0); in testDeletionFailed()
161 verifyNoMoreInteractions(mCallback); in testDeletionFailed()
DDownloadPackageTaskTest.java60 @Mock private AbstractProvisioningTask.Callback mCallback; field in DownloadPackageTaskTest
97 mCallback); in setUp()
111 verifyNoMoreInteractions(mCallback); in testAlreadyInstalled()
123 verify(mCallback).onError(mTask, ERROR_OTHER); in testNotConnected()
124 verifyNoMoreInteractions(mCallback); in testNotConnected()
142 verify(mCallback).onError(mTask, ERROR_DOWNLOAD_FAILED); in testDownloadFailed()
143 verifyNoMoreInteractions(mCallback); in testDownloadFailed()
162 verifyNoMoreInteractions(mCallback); in testDownloadSucceeded()
183 verifyNoMoreInteractions(mCallback); in testSendBroadcastTwice()
213 verify(mCallback).onSuccess(mTask); in verifyOnTaskFinished()
DDisallowAddUserTaskTest.java45 @Mock private AbstractProvisioningTask.Callback mCallback; field in DisallowAddUserTaskTest
75 new DisallowAddUserTask(false, mockContext, null, mCallback); in testMaybeDisallowAddUsers_normalSystem()
83 verify(mCallback).onSuccess(task); in testMaybeDisallowAddUsers_normalSystem()
92 new DisallowAddUserTask(false, mockContext, null, mCallback); in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
105 verify(mCallback).onSuccess(task); in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
114 new DisallowAddUserTask(true, mockContext, null, mCallback); in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner()
124 verify(mCallback).onSuccess(task); in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner()
132 new DisallowAddUserTask(true, mockContext, null, mCallback); in testMaybeDisallowAddUsers_splitUserSystem_systemDeviceOwner()
140 verify(mCallback).onSuccess(task); in testMaybeDisallowAddUsers_splitUserSystem_systemDeviceOwner()
DInstallExistingPackageTaskTest.java54 @Mock private AbstractProvisioningTask.Callback mCallback; field in InstallExistingPackageTaskTest
64 mCallback); in setUp()
78 verify(mCallback).onSuccess(mTask); in testSuccess()
79 verifyNoMoreInteractions(mCallback); in testSuccess()
92 verify(mCallback).onError(mTask, 0); in testPackageNotFound()
93 verifyNoMoreInteractions(mCallback); in testPackageNotFound()
106 verify(mCallback).onError(mTask, 0); in testInstallFailed()
107 verifyNoMoreInteractions(mCallback); in testInstallFailed()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallScreeningServiceFilterTest.java72 @Mock CallFilterResultCallback mCallback; field in CallScreeningServiceFilterTest
126 mFilter.startFilterLookup(mCall, mCallback); in testNoDefaultDialer()
127 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testNoDefaultDialer()
134 mFilter.startFilterLookup(mCall, mCallback); in testNoResolveEntries()
135 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testNoResolveEntries()
141 mFilter.startFilterLookup(mCall, mCallback); in testBadResolveEntry()
142 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testBadResolveEntry()
148 mFilter.startFilterLookup(mCall, mCallback); in testPermissionlessFilterService()
149 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testPermissionlessFilterService()
156 mFilter.startFilterLookup(mCall, mCallback); in testContextFailToBind()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidDevService.java65 private IBluetoothHidDeviceCallback mCallback = null; field in HidDevService
91 if (mCallback != null)
92 mCallback.onAppStatusChanged(device, mAppConfig, success);
103 if (mCallback != null) {
104 IBinder binder = mCallback.asBinder();
113 if (mCallback != null) {
114 IBinder binder = mCallback.asBinder();
128 mCallback = null;
146 if (mCallback != null) mCallback.onConnectionStateChanged(device, state);
159 if (mCallback != null)
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DApplicationFeatureProviderImpl.java145 private NumberOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserAndManagedProfilePolicyInstalledAppCounter
150 mCallback = callback; in CurrentUserAndManagedProfilePolicyInstalledAppCounter()
155 mCallback.onNumberOfAppsResult(num); in onCountComplete()
161 private NumberOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter
168 mCallback = callback; in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter()
173 mCallback.onNumberOfAppsResult(num); in onCountComplete()
178 private ListOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserPolicyInstalledAppLister
183 mCallback = callback; in CurrentUserPolicyInstalledAppLister()
188 mCallback.onListOfAppsResult(list); in onAppListBuilt()
194 private ListOfAppsCallback mCallback; field in ApplicationFeatureProviderImpl.CurrentUserAppWithAdminGrantedPermissionsLister
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/
DEmergencyCallStateListenerTest.java58 @Mock EmergencyCallStateListener.Callback mCallback; field in EmergencyCallStateListenerTest
79 mListener.waitForRadioOn(mMockPhone, mCallback); in testRegisterForCallback()
105 mListener.waitForRadioOn(mMockPhone, mCallback); in testPhoneChangeState_InService()
112 verify(mCallback).onComplete(eq(mListener), eq(true)); in testPhoneChangeState_InService()
134 mListener.waitForRadioOn(mMockPhone, mCallback); in testPhoneChangeState_EmergencyCalls()
141 verify(mCallback).onComplete(eq(mListener), eq(true)); in testPhoneChangeState_EmergencyCalls()
164 mListener.waitForRadioOn(mMockPhone, mCallback); in testPhoneChangeState_OutOfService()
173 verify(mCallback).onComplete(eq(mListener), eq(true)); in testPhoneChangeState_OutOfService()
199 mListener.waitForRadioOn(mMockPhone, mCallback); in testTimeout_EmergencyCalls()
202 verify(mCallback).onComplete(eq(mListener), eq(true)); in testTimeout_EmergencyCalls()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/
DDvrPlayer.java49 private DvrPlayerCallback mCallback; field in DvrPlayer
114 mCallback.onPlaybackStateChanged(mPlaybackState, 1); in prepare()
134 mCallback.onPlaybackStateChanged(mPlaybackState, 1); in play()
157 mCallback.onPlaybackStateChanged(mPlaybackState, 1); in pause()
179 mCallback.onPlaybackStateChanged(mPlaybackState, speed); in fastForward()
201 mCallback.onPlaybackStateChanged(mPlaybackState, speed); in rewind()
222 mCallback.onPlaybackStateChanged(mPlaybackState, 1); in seekTo()
231 mCallback.onPlaybackStateChanged(PlaybackState.STATE_NONE, 1); in reset()
246 mCallback = callback; in setCallback()
248 mCallback = mEmptyCallback; in setCallback()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DSwipeHelper.java66 private Callback mCallback; field in SwipeHelper
93 mCallback = callback; in SwipeHelper()
200 if (!mCallback.updateSwipeProgress(animView, dismissable, swipeProgress)) { in updateSwipeProgressFromOffset()
262 mCurrView = mCallback.getChildAtPosition(ev); in onInterceptTouchEvent()
266 mCanCurrViewBeDimissed = mCallback.canChildBeDismissed(mCurrView); in onInterceptTouchEvent()
302 mCallback.onBeginDrag(mCurrView); in onInterceptTouchEvent()
345 final boolean canBeDismissed = mCallback.canChildBeDismissed(animView); in dismissChild()
412 mCallback.onChildDismissed(animView); in dismissChild()
436 final boolean canBeDismissed = mCallback.canChildBeDismissed(animView);
453 mCallback.onChildSnappedBack(animView, targetLeft);
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSwipeHelper.java70 private final Callback mCallback; field in SwipeHelper
86 mCallback = callback; in SwipeHelper()
208 View view = mCallback.getChildAtPosition(ev); in onInterceptTouchEvent()
215 mCanCurrViewBeDimissed = mCallback.canChildBeDismissed(mCurrView); in onInterceptTouchEvent()
220 mCallback.cancelDismissCounter(); in onInterceptTouchEvent()
233 mCallback.onScroll(); in onInterceptTouchEvent()
241 mCallback.onBeginDrag(mCurrView.getSwipeableView().getView()); in onInterceptTouchEvent()
242 mPrevView = mCallback.getLastSwipedItem(); in onInterceptTouchEvent()
268 final boolean canAnimViewBeDismissed = mCallback.canChildBeDismissed(view); in dismissChild()
277 mCallback.onChildDismissed(view); in dismissChild()
[all …]
/packages/apps/Car/Stream/src/com/android/car/stream/telecom/
DStreamInCallService.java34 private InCallServiceCallback mCallback; field in StreamInCallService
54 mCallback = callback; in setCallback()
76 if (mCallback != null) { in onCallAdded()
77 mCallback.onCallAdded(call); in onCallAdded()
83 if (mCallback != null) { in onCallRemoved()
84 mCallback.onCallRemoved(call); in onCallRemoved()
90 if (mCallback != null) { in onCallAudioStateChanged()
91 mCallback.onCallAudioStateChanged(audioState); in onCallAudioStateChanged()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVL.java134 private LauncherAppsCompat.OnAppsChangedCallbackCompat mCallback; field in LauncherAppsCompatVL.WrappedCallback
137 mCallback = callback; in WrappedCallback()
141 mCallback.onPackageRemoved(packageName, user); in onPackageRemoved()
145 mCallback.onPackageAdded(packageName, user); in onPackageAdded()
149 mCallback.onPackageChanged(packageName, user); in onPackageChanged()
153 mCallback.onPackagesAvailable(packageNames, user, replacing); in onPackagesAvailable()
158 mCallback.onPackagesUnavailable(packageNames, user, replacing); in onPackagesUnavailable()
162 mCallback.onPackagesSuspended(packageNames, user); in onPackagesSuspended()
166 mCallback.onPackagesUnsuspended(packageNames, user); in onPackagesUnsuspended()
176 mCallback.onShortcutsChanged(packageName, shortcutInfoCompats, user); in onShortcutsChanged()
/packages/services/Telephony/src/com/android/services/telephony/
DEmergencyCallStateListener.java86 private Callback mCallback; // The callback to notify upon completion. field in EmergencyCallStateListener
132 mCallback = callback; in startSequenceInternal()
274 if (mCallback != null) { in onComplete()
275 Callback tempCallback = mCallback; in onComplete()
276 mCallback = null; in onComplete()
306 if (mCallback != null ? !mCallback.equals(that.mCallback) : that.mCallback != null) { in equals()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexServerSession.java77 private Handler mCallback = null; field in BluetoothOppObexServerSession
136 mCallback = handler; in start()
159 mCallback = null; in stop()
308 if (mCallback != null && !mTimeoutMsgSent) { in onPut()
309 mCallback.sendMessageDelayed(mCallback in onPut()
322 if (mCallback != null && mTimeoutMsgSent) { in onPut()
323 mCallback.removeMessages(BluetoothOppObexSession.MSG_CONNECT_TIMEOUT); in onPut()
374 Message msg = Message.obtain(mCallback, BluetoothOppObexSession.MSG_SHARE_COMPLETE); in onPut()
378 if (mCallback != null) { in onPut()
379 Message msg = Message.obtain(mCallback, in onPut()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DVolumeSeekBarPreference.java45 private Callback mCallback; field in VolumeSeekBarPreference
81 mCallback = callback; in setCallback()
116 if (mCallback != null) { in init()
117 mCallback.onSampleStarting(sbv); in init()
122 if (mCallback != null) { in init()
123 mCallback.onStreamValueChanged(mStream, progress); in init()
141 mCallback.onStreamValueChanged(mStream, mSeekBar.getProgress()); in init()
153 if (mCallback != null) { in onProgressChanged()
154 mCallback.onStreamValueChanged(mStream, progress); in onProgressChanged()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbHostController.java60 private final UsbHostControllerCallbacks mCallback; field in UsbHostController
87 mCallback = callbacks; in UsbHostController()
147 mCallback.optionsUpdated(mEmptyList); in processDevice()
148 mCallback.processingStateChanged(true); in processDevice()
159 mCallback.titleChanged(device.getManufacturerName() + " " + device.getProductName()); in processDevice()
186 mCallback.processingStateChanged(false); in onHandlersResolveCompleted()
192 mCallback.optionsUpdated(handlers); in onHandlersResolveCompleted()
202 mCallback.shutdown(); in onDeviceDispatched()
211 mCallback.shutdown(); in doHandleDeviceRemoved()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/usb/
DUsbHostController.java62 private final UsbHostControllerCallbacks mCallback; field in UsbHostController
90 mCallback = callbacks; in UsbHostController()
151 mCallback.optionsUpdated(mEmptyList); in processDevice()
152 mCallback.processingStateChanged(true); in processDevice()
164 mCallback.titleChanged(device.getManufacturerName() + " " + device.getProductName()); in processDevice()
191 mCallback.processingStateChanged(false); in onHandlersResolveCompleted()
195 mCallback.optionsUpdated(handlers); in onHandlersResolveCompleted()
205 mCallback.shutdown(); in onDeviceDispatched()
214 mCallback.shutdown(); in doHandleDeviceRemoved()
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DAndroidCameraCaptureSessionProxy.java35 private final CaptureCallback mCallback; field in AndroidCameraCaptureSessionProxy.AndroidCaptureCallback
38 mCallback = callback; in AndroidCaptureCallback()
44 mCallback.onCaptureStarted(AndroidCameraCaptureSessionProxy.this, request, timestamp, in onCaptureStarted()
51 mCallback.onCaptureProgressed(AndroidCameraCaptureSessionProxy.this, request, in onCaptureProgressed()
58 mCallback.onCaptureCompleted(AndroidCameraCaptureSessionProxy.this, request, result); in onCaptureCompleted()
64 mCallback.onCaptureFailed(AndroidCameraCaptureSessionProxy.this, request, failure); in onCaptureFailed()
70 mCallback.onCaptureSequenceCompleted(AndroidCameraCaptureSessionProxy.this, in onCaptureSequenceCompleted()
76 mCallback.onCaptureSequenceAborted(AndroidCameraCaptureSessionProxy.this, sequenceId); in onCaptureSequenceAborted()

1234567