/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/ |
D | BatchingListUpdateCallbackTest.java | 30 ListUpdateCallback mCallback; field in BatchingListUpdateCallbackTest 34 mCallback = mock(ListUpdateCallback.class); in setup() 35 mBatching = new BatchingListUpdateCallback(mCallback); in setup() 42 verify(mCallback).onInserted(3, 2); in addSimple() 43 verifyNoMoreInteractions(mCallback); in addSimple() 51 verify(mCallback).onInserted(3, 3); in addToSamePos() 52 verifyNoMoreInteractions(mCallback); in addToSamePos() 60 verify(mCallback).onInserted(3, 6); in addInsidePrevious() 61 verifyNoMoreInteractions(mCallback); in addInsidePrevious() 69 verify(mCallback).onInserted(3, 5); in addBefore() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
D | SortedList.java | 68 private Callback mCallback; field in SortedList 95 mCallback = callback; in SortedList() 189 final boolean forceBatchedUpdates = !(mCallback instanceof BatchedCallback); in addAllInternal() 198 Arrays.sort(newItems, mCallback); // Arrays.sort is stable. in addAllInternal() 205 mCallback.onInserted(0, newSize); in addAllInternal() 236 int compare = mCallback.compare(items[rangeStart], currentItem); in deduplicate() 268 if (mCallback.areItemsTheSame(items[pos], item)) { in findSameItem() 291 mCallback.onInserted(mMergedSize - itemCount, itemCount); in merge() 305 int compare = mCallback.compare(oldItem, newItem); in merge() 311 mCallback.onInserted(mMergedSize - 1, 1); in merge() [all …]
|
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/ |
D | ViewInfoStoreTest.java | 49 LoggingProcessCallback mCallback; field in ViewInfoStoreTest 53 mCallback = new LoggingProcessCallback(); in prepare() 161 mStore.process(mCallback); in processAppear() 162 assertEquals(new Pair<>(null, info), mCallback.appeared.get(vh)); in processAppear() 163 assertTrue(mCallback.disappeared.isEmpty()); in processAppear() 164 assertTrue(mCallback.unused.isEmpty()); in processAppear() 165 assertTrue(mCallback.persistent.isEmpty()); in processAppear() 173 mStore.process(mCallback); in processDisappearNormal() 174 assertEquals(new Pair<>(info, null), mCallback.disappeared.get(vh)); in processDisappearNormal() 175 assertTrue(mCallback.appeared.isEmpty()); in processDisappearNormal() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | ChildHelper.java | 42 final Callback mCallback; field in ChildHelper 49 mCallback = callback; in ChildHelper() 61 mCallback.onEnteredHiddenState(child); in hideViewInternal() 71 mCallback.onLeftHiddenState(child); in unhideViewInternal() 99 offset = mCallback.getChildCount(); in addView() 107 mCallback.addView(child, offset); in addView() 117 final int limit = mCallback.getChildCount(); in getOffset() 140 int index = mCallback.indexOfChild(view); in removeView() 147 mCallback.removeViewAt(index); in removeView() 161 final View view = mCallback.getChildAt(offset); in removeViewAt() [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/internal/ |
D | ImsVideoCallProvider.java | 46 private IImsVideoCallCallback mCallback; field in ImsVideoCallProvider 56 mCallback = (IImsVideoCallCallback) msg.obj; 200 if (mCallback != null) { in receiveSessionModifyRequest() 202 mCallback.receiveSessionModifyRequest(VideoProfile); in receiveSessionModifyRequest() 211 if (mCallback != null) { in receiveSessionModifyResponse() 213 mCallback.receiveSessionModifyResponse(status, requestedProfile, responseProfile); in receiveSessionModifyResponse() 221 if (mCallback != null) { in handleCallSessionEvent() 223 mCallback.handleCallSessionEvent(event); in handleCallSessionEvent() 231 if (mCallback != null) { in changePeerDimensions() 233 mCallback.changePeerDimensions(width, height); in changePeerDimensions() [all …]
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouteDiscoveryFragment.java | 45 private MediaRouter.Callback mCallback; field in MediaRouteDiscoveryFragment 96 if (mCallback != null) { in setRouteSelector() 97 mRouter.removeCallback(mCallback); in setRouteSelector() 98 mRouter.addCallback(mSelector, mCallback, onPrepareCallbackFlags()); in setRouteSelector() 148 mCallback = onCreateCallback(); in onStart() 149 if (mCallback != null) { in onStart() 150 mRouter.addCallback(mSelector, mCallback, onPrepareCallbackFlags()); in onStart() 156 if (mCallback != null) { in onStop() 157 mRouter.removeCallback(mCallback); in onStop() 158 mCallback = null; in onStop()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | WindowDecorActionBarTest.java | 31 private MockActionModeCallback mCallback; field in WindowDecorActionBarTest 41 mCallback = new MockActionModeCallback(); in setUp() 46 ActionMode mode = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionMode() 49 assertTrue(mCallback.mIsCreateActionModeCalled); in testStartActionMode() 54 mCallback.mShouldCreateActionMode = false; in testStartActionModeWhenCreateReturnsFalse() 56 ActionMode mode = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionModeWhenCreateReturnsFalse() 59 assertTrue(mCallback.mIsCreateActionModeCalled); in testStartActionModeWhenCreateReturnsFalse() 64 ActionMode mode1 = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionModeFinishesPreviousMode() 69 assertTrue(mCallback.mIsDestroyActionModeCalled); in testStartActionModeFinishesPreviousMode()
|
/frameworks/support/media-compat/api21/android/support/v4/media/session/ |
D | MediaSessionCompatApi21.java | 152 protected final T mCallback; field in MediaSessionCompatApi21.CallbackProxy 155 mCallback = callback; in CallbackProxy() 160 mCallback.onCommand(command, args, cb); in onCommand() 165 return mCallback.onMediaButtonEvent(mediaButtonIntent) in onMediaButtonEvent() 171 mCallback.onPlay(); in onPlay() 176 mCallback.onPlayFromMediaId(mediaId, extras); in onPlayFromMediaId() 181 mCallback.onPlayFromSearch(search, extras); in onPlayFromSearch() 186 mCallback.onSkipToQueueItem(id); in onSkipToQueueItem() 191 mCallback.onPause(); in onPause() 196 mCallback.onSkipToNext(); in onSkipToNext() [all …]
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | BaseObservableTest.java | 29 private OnPropertyChangedCallback mCallback = new OnPropertyChangedCallback() { field in BaseObservableTest 51 mObservable.addOnPropertyChangedCallback(mCallback); in testAddCallback() 58 mObservable.removeOnPropertyChangedCallback(mCallback); in testRemoveCallback() 60 mObservable.addOnPropertyChangedCallback(mCallback); in testRemoveCallback() 63 mObservable.removeOnPropertyChangedCallback(mCallback); in testRemoveCallback() 68 mObservable.removeOnPropertyChangedCallback(mCallback); in testRemoveCallback() 72 mObservable.addOnPropertyChangedCallback(mCallback); in testNotifyChange() 80 mObservable.addOnPropertyChangedCallback(mCallback); in testNotifyPropertyChanged()
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | Playback.java | 68 private Callback mCallback; field in Playback 111 if (notifyListeners && mCallback != null) { in stop() 112 mCallback.onPlaybackStatusChanged(mState); in stop() 187 if (mCallback != null) { in play() 188 mCallback.onPlaybackStatusChanged(mState); in play() 193 if (mCallback != null) { in play() 194 mCallback.onError(ex.getMessage()); in play() 212 if (mCallback != null) { in pause() 213 mCallback.onPlaybackStatusChanged(mState); in pause() 229 if (mCallback != null) { in seekTo() [all …]
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
D | RemotePlayer.java | 59 if (mCallback != null) { 60 mCallback.onPlaylistChanged(); 63 mCallback.onCompletion(); 65 mCallback.onError(); 74 if (mCallback != null) { 75 mCallback.onPlaylistChanged(); 143 if (mCallback != null) { in play() 144 mCallback.onPlaylistChanged(); in play() 185 if (update && mCallback != null) { in getStatus() 186 mCallback.onPlaylistReady(); in getStatus() [all …]
|
/frameworks/support/compat/java/android/support/v4/app/ |
D | ActivityCompat.java | 457 private SharedElementCallback mCallback; field in ActivityCompat.SharedElementCallback21Impl 460 mCallback = callback; in SharedElementCallback21Impl() 466 mCallback.onSharedElementStart(sharedElementNames, sharedElements, in onSharedElementStart() 473 mCallback.onSharedElementEnd(sharedElementNames, sharedElements, in onSharedElementEnd() 479 mCallback.onRejectSharedElements(rejectedSharedElements); in onRejectSharedElements() 484 mCallback.onMapSharedElements(names, sharedElements); in onMapSharedElements() 490 return mCallback.onCaptureSharedElementSnapshot(sharedElement, viewToGlobalMatrix, in onCaptureSharedElementSnapshot() 496 return mCallback.onCreateSnapshotView(context, snapshot); in onCreateSnapshotView() 503 private SharedElementCallback mCallback; field in ActivityCompat.SharedElementCallback23Impl 506 mCallback = callback; in SharedElementCallback23Impl() [all …]
|
/frameworks/support/compat/api23/android/support/v4/app/ |
D | ActivityCompatApi23.java | 78 private SharedElementCallback23 mCallback; field in ActivityCompatApi23.SharedElementCallbackImpl 81 mCallback = callback; in SharedElementCallbackImpl() 87 mCallback.onSharedElementStart(sharedElementNames, sharedElements, in onSharedElementStart() 94 mCallback.onSharedElementEnd(sharedElementNames, sharedElements, in onSharedElementEnd() 100 mCallback.onRejectSharedElements(rejectedSharedElements); in onRejectSharedElements() 105 mCallback.onMapSharedElements(names, sharedElements); in onMapSharedElements() 111 return mCallback.onCaptureSharedElementSnapshot(sharedElement, viewToGlobalMatrix, in onCaptureSharedElementSnapshot() 117 return mCallback.onCreateSnapshotView(context, snapshot); in onCreateSnapshotView() 123 mCallback.onSharedElementsArrived(sharedElementNames, sharedElements, in onSharedElementsArrived()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | VideoCallImpl.java | 43 private VideoCall.Callback mCallback; field in VideoCallImpl 146 if (mCallback == null) { in handleMessage() 153 mCallback.onSessionModifyRequestReceived((VideoProfile) msg.obj); in handleMessage() 162 mCallback.onSessionModifyResponseReceived( in handleMessage() 169 mCallback.onCallSessionEvent((int) msg.obj); in handleMessage() 176 mCallback.onPeerDimensionsChanged(width, height); in handleMessage() 182 mCallback.onCallDataUsageChanged((long) msg.obj); in handleMessage() 185 mCallback.onCameraCapabilitiesChanged( in handleMessage() 190 mCallback.onVideoQualityChanged(msg.arg1); in handleMessage() 209 unregisterCallback(mCallback); in destroy() [all …]
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/ |
D | PhotoViewFragment.java | 98 protected PhotoViewCallbacks mCallback; field in PhotoViewFragment 164 mCallback = getCallbacks(); in onActivityCreated() 165 if (mCallback == null) { in onActivityCreated() 169 mAdapter = mCallback.getAdapter(); in onActivityCreated() 183 mCallback = null; in onDetach() 252 mCallback.addScreenListener(mPosition, this); in onResume() 253 mCallback.addCursorListener(this); in onResume() 294 mCallback.removeCursorListener(this); in onPause() 295 mCallback.removeScreenListener(mPosition); in onPause() 336 return mCallback.onCreateBitmapLoader(id, args, uri); in onCreateLoader() [all …]
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
D | SnackbarUtils.java | 37 private IdlingResource.ResourceCallback mCallback; field in SnackbarUtils.SnackbarShownCallback 43 mCallback = resourceCallback; in registerIdleTransitionCallback() 63 if (mCallback != null) { in onShown() 64 mCallback.onTransitionToIdle(); in onShown() 74 private IdlingResource.ResourceCallback mCallback; field in SnackbarUtils.SnackbarDismissedCallback 80 mCallback = resourceCallback; in registerIdleTransitionCallback() 100 if (mCallback != null) { in onDismissed() 101 mCallback.onTransitionToIdle(); in onDismissed()
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardware.java | 475 private WeakReference<GeofenceHardwareMonitorCallback> mCallback; field in GeofenceHardware.GeofenceHardwareMonitorCallbackWrapper 478 mCallback = new WeakReference<GeofenceHardwareMonitorCallback>(c); in GeofenceHardwareMonitorCallbackWrapper() 482 GeofenceHardwareMonitorCallback c = mCallback.get(); in onMonitoringSystemChange() 500 private WeakReference<GeofenceHardwareCallback> mCallback; field in GeofenceHardware.GeofenceHardwareCallbackWrapper 503 mCallback = new WeakReference<GeofenceHardwareCallback>(c); in GeofenceHardwareCallbackWrapper() 508 GeofenceHardwareCallback c = mCallback.get(); in onGeofenceTransition() 516 GeofenceHardwareCallback c = mCallback.get(); in onGeofenceAdd() 521 GeofenceHardwareCallback c = mCallback.get(); in onGeofenceRemove() 529 GeofenceHardwareCallback c = mCallback.get(); in onGeofencePause() 536 GeofenceHardwareCallback c = mCallback.get(); in onGeofenceResume()
|
/frameworks/support/compat/api21/android/support/v4/app/ |
D | ActivityCompatApi21.java | 86 private SharedElementCallback21 mCallback; field in ActivityCompatApi21.SharedElementCallbackImpl 89 mCallback = callback; in SharedElementCallbackImpl() 95 mCallback.onSharedElementStart(sharedElementNames, sharedElements, in onSharedElementStart() 102 mCallback.onSharedElementEnd(sharedElementNames, sharedElements, in onSharedElementEnd() 108 mCallback.onRejectSharedElements(rejectedSharedElements); in onRejectSharedElements() 113 mCallback.onMapSharedElements(names, sharedElements); in onMapSharedElements() 120 return mCallback.onCaptureSharedElementSnapshot(sharedElement, viewToGlobalMatrix, in onCaptureSharedElementSnapshot() 126 return mCallback.onCreateSnapshotView(context, snapshot); in onCreateSnapshotView()
|
/frameworks/base/services/net/java/android/net/ip/ |
D | IpManager.java | 179 private Callback mCallback; field in IpManager.LoggingCallbackWrapper 182 mCallback = callback; in LoggingCallbackWrapper() 191 mCallback.onPreDhcpAction(); in onPreDhcpAction() 196 mCallback.onPostDhcpAction(); in onPostDhcpAction() 201 mCallback.onNewDhcpResults(dhcpResults); in onNewDhcpResults() 206 mCallback.onProvisioningSuccess(newLp); in onProvisioningSuccess() 211 mCallback.onProvisioningFailure(newLp); in onProvisioningFailure() 216 mCallback.onLinkPropertiesChange(newLp); in onLinkPropertiesChange() 221 mCallback.onReachabilityLost(logMsg); in onReachabilityLost() 226 mCallback.onQuit(); in onQuit() [all …]
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSession.java | 114 private CallbackMessageHandler mCallback; field in MediaSession 190 if (mCallback != null) { in setCallback() 191 mCallback.mCallback.mSession = null; in setCallback() 193 mCallback = null; in setCallback() 196 if (mCallback != null) { in setCallback() 199 mCallback.mCallback.mSession = null; in setCallback() 207 mCallback = msgHandler; in setCallback() 630 if (mCallback != null) { in postToCallback() 631 mCallback.post(what, obj, extras); in postToCallback() 1290 private MediaSession.Callback mCallback; field in MediaSession.CallbackMessageHandler [all …]
|
/frameworks/base/core/java/android/service/trust/ |
D | TrustAgentService.java | 139 private ITrustAgentServiceCallback mCallback; field in TrustAgentService 160 mCallback.onConfigureCompleted(result, data.token); 297 if (mCallback != null) { in grantTrust() 299 mCallback.grantTrust(message.toString(), durationMs, flags); in grantTrust() 324 if (mCallback != null) { in revokeTrust() 326 mCallback.revokeTrust(); in revokeTrust() 346 if (mCallback != null) { in setManagingTrust() 348 mCallback.setManagingTrust(managingTrust); in setManagingTrust() 393 mCallback = callback; in setCallback() 398 mCallback.setManagingTrust(mManagingTrust); in setCallback()
|
/frameworks/support/customtabs/src/android/support/customtabs/ |
D | CustomTabsSession.java | 40 private final ICustomTabsCallback mCallback; field in CustomTabsSession 46 mCallback = callback; in CustomTabsSession() 68 return mService.mayLaunchUrl(mCallback, url, extras, otherLikelyBundles); in mayLaunchUrl() 91 return mService.updateVisuals(mCallback, metaBundle); in setActionButton() 113 return mService.updateVisuals(mCallback, bundle); in setSecondaryToolbarViews() 139 return mService.updateVisuals(mCallback, metaBundle); in setToolbarItem() 146 return mCallback.asBinder(); in getBinder()
|
/frameworks/base/core/java/android/os/ |
D | RemoteCallbackList.java | 57 final E mCallback; field in RemoteCallbackList.Callback 61 mCallback = callback; in Callback() 67 mCallbacks.remove(mCallback.asBinder()); in binderDied() 69 onCallbackDied(mCallback, mCookie); in binderDied() 144 cb.mCallback.asBinder().unlinkToDeath(cb, 0); in unregister() 163 cb.mCallback.asBinder().unlinkToDeath(cb, 0); in kill() 270 return ((Callback)mActiveBroadcast[index]).mCallback; in getBroadcastItem()
|
/frameworks/base/media/java/android/media/tv/ |
D | TvRecordingClient.java | 43 private final RecordingCallback mCallback; field in TvRecordingClient 64 mCallback = callback; in TvRecordingClient() 327 if (mCallback != null) { in onSessionCreated() 328 mCallback.onConnectionFailed(mInputId); in onSessionCreated() 343 mCallback.onTuned(channelUri); in onTuned() 359 if (mCallback != null) { in onSessionReleased() 360 mCallback.onDisconnected(mInputId); in onSessionReleased() 374 mCallback.onRecordingStopped(recordedProgramUri); in onRecordingStopped() 386 mCallback.onError(error); in onError() 400 if (mCallback != null) { in onSessionEvent() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/ |
D | PipRecentsOverlayManager.java | 63 private Callback mCallback; field in PipRecentsOverlayManager 68 if (mCallback != null) { 69 mCallback.onClosed(); 75 if (mCallback != null) { 76 mCallback.onBackPressed(); 181 if (mCallback != null) { in clearFocus() 182 mCallback.onRecentsFocused(); in clearFocus() 187 mCallback = listener; in setCallback() 188 mPipControlsView.setListener(mCallback != null ? mPipControlsViewListener : null); in setCallback()
|