Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
DBatchingListUpdateCallbackTest.java33 ListUpdateCallback mCallback; field in BatchingListUpdateCallbackTest
37 mCallback = mock(ListUpdateCallback.class); in setup()
38 mBatching = new BatchingListUpdateCallback(mCallback); in setup()
45 verify(mCallback).onInserted(3, 2); in addSimple()
46 verifyNoMoreInteractions(mCallback); in addSimple()
54 verify(mCallback).onInserted(3, 3); in addToSamePos()
55 verifyNoMoreInteractions(mCallback); in addToSamePos()
63 verify(mCallback).onInserted(3, 6); in addInsidePrevious()
64 verifyNoMoreInteractions(mCallback); in addInsidePrevious()
72 verify(mCallback).onInserted(3, 5); in addBefore()
[all …]
/frameworks/support/media-compat/tests/src/android/support/v4/media/session/
DMediaControllerCompatTest.java71 private MediaSessionCallback mCallback = new MediaSessionCallback(); field in MediaControllerCompatTest
80 mSession.setCallback(mCallback, mHandler); in setUp()
126 mCallback.reset(); in testSendCommand()
132 assertTrue(mCallback.mOnCommandCalled); in testSendCommand()
133 assertNotNull(mCallback.mCommandCallback); in testSendCommand()
134 assertEquals(command, mCallback.mCommand); in testSendCommand()
135 assertEquals(EXTRAS_VALUE, mCallback.mExtras.getString(EXTRAS_KEY)); in testSendCommand()
153 mCallback.reset(); in testAddRemoveQueueItems()
156 assertTrue(mCallback.mOnAddQueueItemCalled); in testAddRemoveQueueItems()
157 assertEquals(-1, mCallback.mQueueIndex); in testAddRemoveQueueItems()
[all …]
DMediaSessionCompatTest.java90 private MediaControllerCallback mCallback = new MediaControllerCallback(); field in MediaSessionCompatTest
179 controller.registerCallback(mCallback, mHandler); in testSetExtras()
181 mCallback.resetLocked(); in testSetExtras()
184 assertTrue(mCallback.mOnExtraChangedCalled); in testSetExtras()
186 Bundle extrasOut = mCallback.mExtras; in testSetExtras()
203 controller.registerCallback(mCallback, mHandler); in testSetFlags()
205 mCallback.resetLocked(); in testSetFlags()
218 controller.registerCallback(mCallback, mHandler); in testSetMetadata()
220 mCallback.resetLocked(); in testSetMetadata()
229 assertTrue(mCallback.mOnMetadataChangedCalled); in testSetMetadata()
[all …]
/frameworks/base/services/tests/notification/src/com/android/server/notification/
DGroupHelperTest.java49 private @Mock GroupHelper.Callback mCallback; field in GroupHelperTest
57 mGroupHelper = new GroupHelper(mCallback); in setUp()
84 verify(mCallback, never()).addAutoGroupSummary( in testNoGroup_postingUnderLimit()
86 verify(mCallback, never()).addAutoGroup(anyString()); in testNoGroup_postingUnderLimit()
87 verify(mCallback, never()).removeAutoGroup(anyString()); in testNoGroup_postingUnderLimit()
88 verify(mCallback, never()).removeAutoGroupSummary(anyInt(), anyString()); in testNoGroup_postingUnderLimit()
101 verify(mCallback, never()).addAutoGroupSummary( in testNoGroup_multiPackage()
103 verify(mCallback, never()).addAutoGroup(anyString()); in testNoGroup_multiPackage()
104 verify(mCallback, never()).removeAutoGroup(anyString()); in testNoGroup_multiPackage()
105 verify(mCallback, never()).removeAutoGroupSummary(anyInt(), anyString()); in testNoGroup_multiPackage()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelUidCpuFreqTimeReaderTest.java55 @Mock private KernelUidCpuFreqTimeReader.Callback mCallback; field in KernelUidCpuFreqTimeReaderTest
77 mKernelUidCpuFreqTimeReader.readDelta(mBufferedReader, mCallback); in testReadDelta()
78 verify(mCallback).onCpuFreqs(freqs); in testReadDelta()
80 verify(mCallback).onUidCpuFreqTime(uids[i], times[i]); in testReadDelta()
82 verifyNoMoreInteractions(mCallback); in testReadDelta()
85 Mockito.reset(mCallback, mBufferedReader); in testReadDelta()
94 mKernelUidCpuFreqTimeReader.readDelta(mBufferedReader, mCallback); in testReadDelta()
95 verify(mCallback).onCpuFreqs(freqs); in testReadDelta()
97 verify(mCallback).onUidCpuFreqTime(uids[i], subtract(newTimes1[i], times[i])); in testReadDelta()
99 verifyNoMoreInteractions(mCallback); in testReadDelta()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DSortedList.java68 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/base/core/java/android/hardware/radio/
DTunerCallbackAdapter.java31 @NonNull private final RadioTuner.Callback mCallback; field in TunerCallbackAdapter
35 mCallback = callback; in TunerCallbackAdapter()
45 mHandler.post(() -> mCallback.onError(status)); in onError()
50 mHandler.post(() -> mCallback.onConfigurationChanged(config)); in onConfigurationChanged()
61 mCallback.onProgramInfoChanged(info); in onCurrentProgramInfoChanged()
64 if (metadata != null) mCallback.onMetadataChanged(metadata); in onCurrentProgramInfoChanged()
70 mHandler.post(() -> mCallback.onTrafficAnnouncement(active)); in onTrafficAnnouncement()
75 mHandler.post(() -> mCallback.onEmergencyAnnouncement(active)); in onEmergencyAnnouncement()
80 mHandler.post(() -> mCallback.onAntennaState(connected)); in onAntennaState()
85 mHandler.post(() -> mCallback.onBackgroundScanAvailabilityChange(isAvailable)); in onBackgroundScanAvailabilityChange()
[all …]
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
DViewInfoStoreTest.java49 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/base/services/autofill/java/com/android/server/autofill/ui/
DAutoFillUI.java65 private @Nullable AutoFillUiCallback mCallback; field in AutoFillUI
90 if (mCallback != callback) { in setCallback()
91 if (mCallback != null) { in setCallback()
92 hideAllUiThread(mCallback); in setCallback()
95 mCallback = callback; in setCallback()
102 if (mCallback == callback) { in clearCallback()
104 mCallback = null; in clearCallback()
123 if (mCallback != callback) { in showError()
147 if (callback != mCallback) { in filterFillUi()
181 if (callback != mCallback) { in showFillUi()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DChildHelper.java42 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 …]
DViewBoundsCheck.java109 final Callback mCallback; field in ViewBoundsCheck
131 mCallback = callback; in ViewBoundsCheck()
216 final int start = mCallback.getParentStart(); in findOneViewWithinBoundFlags()
217 final int end = mCallback.getParentEnd(); in findOneViewWithinBoundFlags()
221 final View child = mCallback.getChildAt(i); in findOneViewWithinBoundFlags()
222 final int childStart = mCallback.getChildStart(child); in findOneViewWithinBoundFlags()
223 final int childEnd = mCallback.getChildEnd(child); in findOneViewWithinBoundFlags()
251 mBoundFlags.setBounds(mCallback.getParentStart(), mCallback.getParentEnd(), in isViewWithinBoundFlags()
252 mCallback.getChildStart(child), mCallback.getChildEnd(child)); in isViewWithinBoundFlags()
/frameworks/base/core/java/com/android/internal/widget/
DChildHelper.java42 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/support/content/tests/java/android/support/content/
DContentPagerTest.java60 private TestContentCallback mCallback; field in ContentPagerTest
70 mCallback = new TestContentCallback(); in setUp()
90 mCallback); in testRelaysProviderPagedResults()
92 mCallback.assertNumPagesLoaded(1); in testRelaysProviderPagedResults()
93 mCallback.assertPageLoaded(query); in testRelaysProviderPagedResults()
94 Cursor cursor = mCallback.getCursor(query); in testRelaysProviderPagedResults()
140 mCallback); in testLimitsPagedResultsToWindowSize()
142 mCallback.assertNumPagesLoaded(1); in testLimitsPagedResultsToWindowSize()
143 mCallback.assertPageLoaded(query); in testLimitsPagedResultsToWindowSize()
144 Cursor cursor = mCallback.getCursor(query); in testLimitsPagedResultsToWindowSize()
[all …]
DLoaderQueryRunnerTest.java45 private TestQueryCallback mCallback; field in LoaderQueryRunnerTest
51 mCallback = new TestQueryCallback(); in setUp()
85 mCallback.reset(1); in testRunsQuery()
86 mRunner.query(query, mCallback); in testRunsQuery()
88 mCallback.waitFor(10); in testRunsQuery()
89 mCallback.assertQueried(query.getId()); in testRunsQuery()
90 mCallback.assertReceivedContent(UNPAGED_URI, query.getId()); in testRunsQuery()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteDiscoveryFragment.java45 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/telephony/java/com/android/ims/internal/
DImsVideoCallProvider.java49 private IImsVideoCallCallback mCallback; field in ImsVideoCallProvider
59 mCallback = (IImsVideoCallCallback) msg.obj;
226 if (mCallback != null) { in receiveSessionModifyRequest()
228 mCallback.receiveSessionModifyRequest(VideoProfile); in receiveSessionModifyRequest()
237 if (mCallback != null) { in receiveSessionModifyResponse()
239 mCallback.receiveSessionModifyResponse(status, requestedProfile, responseProfile); in receiveSessionModifyResponse()
247 if (mCallback != null) { in handleCallSessionEvent()
249 mCallback.handleCallSessionEvent(event); in handleCallSessionEvent()
257 if (mCallback != null) { in changePeerDimensions()
259 mCallback.changePeerDimensions(width, height); in changePeerDimensions()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DWindowDecorActionBarTest.java33 private MockActionModeCallback mCallback; field in WindowDecorActionBarTest
43 mCallback = new MockActionModeCallback(); in setUp()
48 ActionMode mode = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionMode()
51 assertTrue(mCallback.mIsCreateActionModeCalled); in testStartActionMode()
56 mCallback.mShouldCreateActionMode = false; in testStartActionModeWhenCreateReturnsFalse()
58 ActionMode mode = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionModeWhenCreateReturnsFalse()
61 assertTrue(mCallback.mIsCreateActionModeCalled); in testStartActionModeWhenCreateReturnsFalse()
66 ActionMode mode1 = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionModeFinishesPreviousMode()
71 assertTrue(mCallback.mIsDestroyActionModeCalled); in testStartActionModeFinishesPreviousMode()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DLocalOnlyHotspotRequestInfoTest.java46 @Mock LocalOnlyHotspotRequestInfo.RequestingApplicationDeathCallback mCallback; field in LocalOnlyHotspotRequestInfoTest
71 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mAppBinder, mMessenger, mCallback); in verifyBinderLinkToDeathIsCalled()
88 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mAppBinder, null, mCallback); in verifyNullMessengerChecked()
96 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(null, mMessenger, mCallback); in verifyNullBinderChecked()
104 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mAppBinder, mMessenger, mCallback); in verifyUnlinkDeathRecipientUnlinksFromBinder()
114 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mAppBinder, mMessenger, mCallback); in verifyBinderDeathTriggersCallback()
116 verify(mCallback).onLocalOnlyHotspotRequestorDeath(eq(mLOHSRequestInfo)); in verifyBinderDeathTriggersCallback()
126 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mAppBinder, mMessenger, mCallback); in verifyRemoteExceptionTriggersCallback()
127 verify(mCallback).onLocalOnlyHotspotRequestorDeath(eq(mLOHSRequestInfo)); in verifyRemoteExceptionTriggersCallback()
135 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mAppBinder, mMessenger, mCallback); in verifyPid()
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DBaseObservableTest.java29 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/media-compat/api21/android/support/v4/media/session/
DMediaSessionCompatApi21.java175 protected final T mCallback; field in MediaSessionCompatApi21.CallbackProxy
178 mCallback = callback; in CallbackProxy()
183 mCallback.onCommand(command, args, cb); in onCommand()
188 return mCallback.onMediaButtonEvent(mediaButtonIntent) in onMediaButtonEvent()
194 mCallback.onPlay(); in onPlay()
199 mCallback.onPlayFromMediaId(mediaId, extras); in onPlayFromMediaId()
204 mCallback.onPlayFromSearch(search, extras); in onPlayFromSearch()
209 mCallback.onSkipToQueueItem(id); in onSkipToQueueItem()
214 mCallback.onPause(); in onPause()
219 mCallback.onSkipToNext(); in onSkipToNext()
[all …]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DPlayback.java68 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/
DRemotePlayer.java59 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/base/core/java/android/service/trust/
DTrustAgentService.java175 private ITrustAgentServiceCallback mCallback; field in TrustAgentService
199 mCallback.onConfigureCompleted(result, data.token);
406 if (mCallback != null) { in grantTrust()
408 mCallback.grantTrust(message.toString(), durationMs, flags); in grantTrust()
433 if (mCallback != null) { in revokeTrust()
435 mCallback.revokeTrust(); in revokeTrust()
455 if (mCallback != null) { in setManagingTrust()
457 mCallback.setManagingTrust(managingTrust); in setManagingTrust()
480 if (mCallback == null) { in addEscrowToken()
485 mCallback.addEscrowToken(token, user.getIdentifier()); in addEscrowToken()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDiscoverySessionState.java49 private IWifiAwareDiscoverySessionCallback mCallback; field in WifiAwareDiscoverySessionState
78 mCallback = callback; in WifiAwareDiscoverySessionState()
100 return mCallback; in getCallback()
116 mCallback = null; in terminate()
147 mCallback.onSessionConfigFail(NanStatusType.INTERNAL_FAILURE); in updatePublish()
157 mCallback.onSessionConfigFail(NanStatusType.INTERNAL_FAILURE); in updatePublish()
177 mCallback.onSessionConfigFail(NanStatusType.INTERNAL_FAILURE); in updateSubscribe()
187 mCallback.onSessionConfigFail(NanStatusType.INTERNAL_FAILURE); in updateSubscribe()
213 mCallback.onMessageSendFail(messageId, NanStatusType.INTERNAL_FAILURE); in sendMessage()
224 mCallback.onMessageSendFail(messageId, NanStatusType.INTERNAL_FAILURE); in sendMessage()
[all …]
/frameworks/support/customtabs/src/android/support/customtabs/
DCustomTabsSession.java42 private final ICustomTabsCallback mCallback; field in CustomTabsSession
48 mCallback = callback; in CustomTabsSession()
70 return mService.mayLaunchUrl(mCallback, url, extras, otherLikelyBundles); in mayLaunchUrl()
93 return mService.updateVisuals(mCallback, metaBundle); in setActionButton()
115 return mService.updateVisuals(mCallback, bundle); in setSecondaryToolbarViews()
141 return mService.updateVisuals(mCallback, metaBundle); in setToolbarItem()
159 mCallback, postMessageOrigin); in requestPostMessageChannel()
181 return mService.postMessage(mCallback, message, extras); in postMessage()
189 return mCallback.asBinder(); in getBinder()

12345678910>>...15