Home
last modified time | relevance | path

Searched refs:times (Results 1 – 25 of 203) sorted by relevance

123456789

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCallManagerTest.java43 import static org.mockito.Mockito.times;
147 verify(mPhone, times(1)).dial(mCaptorString.capture(), mCaptorInt.capture()); in testBasicDial()
156 verify(mPhone, times(1)).acceptCall(anyInt()); in testBasicAcceptCall()
163 verify(mPhone, times(1)).rejectCall(); in testBasicRejectCall()
169 verify(mPhone, times(0)).sendDtmf(eq('a')); in testSendDtmf()
175 verify(mPhone, times(1)).sendDtmf(eq('a')); in testSendDtmf()
182 verify(mPhone, times(0)).startDtmf(anyChar()); in testStartDtmf()
188 verify(mPhone, times(1)).startDtmf('a'); in testStartDtmf()
195 verify(mPhone, times(0)).stopDtmf(); in testStopDtmf()
201 verify(mPhone, times(1)).stopDtmf(); in testStopDtmf()
[all …]
DSubscriptionInfoUpdaterTest.java62 import static org.mockito.Mockito.times;
162 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsent()
176 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimUnknown()
181 verify(mSubscriptionController, times(0)).notifySubscriptionInfoChanged(); in testSimUnknown()
194 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimError()
199 verify(mSubscriptionController, times(0)).notifySubscriptionInfoChanged(); in testSimError()
212 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testWrongSimState()
215 verify(mConfigManager, times(0)).updateConfigForPhoneId(eq(2), in testWrongSimState()
217 verify(mSubscriptionController, times(0)).notifySubscriptionInfoChanged(); in testWrongSimState()
257 verify(mSubscriptionManager, times(1)).addSubscriptionInfoRecord( in testSimLoaded()
[all …]
DGsmCdmaPhoneTest.java66 import static org.mockito.Mockito.times;
310 verify(mSimulatedCommandsVerifier, times(0)).sendBurstDtmf(anyString(), anyInt(), anyInt(), in testSendBurstDtmf()
316 verify(mSimulatedCommandsVerifier, times(0)).sendBurstDtmf(anyString(), anyInt(), anyInt(), in testSendBurstDtmf()
322 verify(mSimulatedCommandsVerifier, times(0)).sendBurstDtmf(anyString(), anyInt(), anyInt(), in testSendBurstDtmf()
328 verify(mSimulatedCommandsVerifier, times(0)).sendBurstDtmf(anyString(), anyInt(), anyInt(), in testSendBurstDtmf()
455 verify(mSimulatedCommandsVerifier, times(0)).queryCallForwardStatus( in testGetCallForwardingOption()
488 verify(mSimulatedCommandsVerifier, times(0)).setCallForward(anyInt(), anyInt(), anyInt(), in testSetCallForwardingOption()
513 verify(mSimulatedCommandsVerifier, times(2)).startLceService(anyInt(), anyBoolean(), in testHandleInitialMessages()
535 verify(mSimulatedCommandsVerifier, times(2)).getBasebandVersion(any(Message.class)); in testHandleInitialMessages()
537 verify(mSimulatedCommandsVerifier, times(3)).startLceService(anyInt(), anyBoolean(), in testHandleInitialMessages()
[all …]
DDefaultPhoneNotifierTest.java32 import static org.mockito.Mockito.times;
197 verify(mTelephonyRegisteryMock, times(0)).notifyPreciseCallState(anyInt(), anyInt(), in testNotifyPreciseCallState()
202 verify(mTelephonyRegisteryMock, times(0)).notifyPreciseCallState(anyInt(), anyInt(), in testNotifyPreciseCallState()
207 verify(mTelephonyRegisteryMock, times(0)).notifyPreciseCallState(anyInt(), anyInt(), in testNotifyPreciseCallState()
212 verify(mTelephonyRegisteryMock, times(1)).notifyPreciseCallState( in testNotifyPreciseCallState()
219 verify(mTelephonyRegisteryMock, times(1)).notifyPreciseCallState( in testNotifyPreciseCallState()
226 verify(mTelephonyRegisteryMock, times(1)).notifyPreciseCallState( in testNotifyPreciseCallState()
233 verify(mTelephonyRegisteryMock, times(1)).notifyPreciseCallState( in testNotifyPreciseCallState()
DServiceStateTrackerTest.java65 import static org.mockito.Mockito.times;
362 verify(mRuimRecords, times(1)).isProvisioned(); in testUpdatePhoneType()
379 verify(mRuimRecords, times(1)).isProvisioned(); in testUpdatePhoneType()
418 verify(mTestHandler, times(1)).sendMessageAtTime(any(Message.class), anyLong()); in testRegAndUnregForVoiceRoamingOn()
465 verify(mTestHandler, times(1)).sendMessageAtTime(any(Message.class), anyLong()); in testRegAndUnregForVoiceRoamingOff()
504 verify(mTestHandler, times(1)).sendMessageAtTime(any(Message.class), anyLong()); in testRegAndUnregForDataRoamingOn()
551 verify(mTestHandler, times(1)).sendMessageAtTime(any(Message.class), anyLong()); in testRegAndUnregForDataRoamingOff()
597 verify(mTestHandler, times(1)).sendMessageAtTime(any(Message.class), anyLong()); in testRegAndUnregForDataConnAttach()
641 verify(mTestHandler, times(1)).sendMessageAtTime(any(Message.class), anyLong()); in testRegAndUnregForDataConnDetach()
706 verify(mTestHandler, times(1)).sendMessageAtTime(any(Message.class), anyLong()); in testRegAndUnregForNetworkAttached()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTouchAnimatorTests.java179 private void verifyOnAnimationAtStart(int times) { in verifyOnAnimationAtStart() argument
180 Mockito.verify(mTouchListener, Mockito.times(times)).onAnimationAtStart(); in verifyOnAnimationAtStart()
183 private void verifyOnAnimationAtEnd(int times) { in verifyOnAnimationAtEnd() argument
184 Mockito.verify(mTouchListener, Mockito.times(times)).onAnimationAtEnd(); in verifyOnAnimationAtEnd()
187 private void verifyOnAnimationStarted(int times) { in verifyOnAnimationStarted() argument
188 Mockito.verify(mTouchListener, Mockito.times(times)).onAnimationStarted(); in verifyOnAnimationStarted()
/frameworks/base/tools/preload/
DLoadedClass.java90 int[] times = new int[size]; in calculateMedian() local
92 times[i] = operations.get(i).exclusiveTimeMicros(); in calculateMedian()
95 Arrays.sort(times); in calculateMedian()
99 return times[middle]; in calculateMedian()
102 return (times[middle - 1] + times[middle]) / 2; in calculateMedian()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcTrackerTest.java76 import static org.mockito.Mockito.times;
349 verify(mPhone, times(1)).notifyDataConnection(eq(Phone.REASON_CONNECTED), in verifyDataConnected()
352 verify(mAlarmManager, times(1)).set(eq(AlarmManager.ELAPSED_REALTIME_WAKEUP), anyLong(), in verifyDataConnected()
401 verify(mPhone, times(sNetworkAttributes.length)).notifyDataConnection( in testDataSetup()
412 verify(mPhone, times(sNetworkAttributes.length)).notifyDataConnection( in testDataSetup()
419 verify(mPhone, times(sNetworkAttributes.length)).notifyDataConnection( in testDataSetup()
435 verify(mSimulatedCommandsVerifier, times(1)).setupDataCall( in testDataSetup()
464 verify(mPhone, times(sNetworkAttributes.length)).notifyDataConnection( in testDataRetry()
475 verify(mPhone, times(sNetworkAttributes.length)).notifyDataConnection( in testDataRetry()
482 verify(mPhone, times(sNetworkAttributes.length)).notifyDataConnection( in testDataRetry()
[all …]
DDataConnectionTest.java47 import static org.mockito.Mockito.times;
185 verify(mCT, times(1)).registerForVoiceCallStarted(any(Handler.class), in testConnectEvent()
187 verify(mCT, times(1)).registerForVoiceCallEnded(any(Handler.class), in testConnectEvent()
190 verify(mSimulatedCommandsVerifier, times(1)).setupDataCall( in testConnectEvent()
205 verify(mSimulatedCommandsVerifier, times(1)).deactivateDataCall(eq(1), in testDisconnectEvent()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java59 import static org.mockito.Mockito.times;
210 verify(mImsPhone, times(0)).notifyForVideoCapabilityChanged(anyBoolean()); in testImsFeatureCapabilityChange()
211 verify(mImsPhone, times(1)).onFeatureCapabilityChanged(); in testImsFeatureCapabilityChange()
219 verify(mImsPhone, times(1)).notifyForVideoCapabilityChanged(eq(true)); in testImsFeatureCapabilityChange()
230 verify(mImsPhone, times(1)).notifyNewRingingConnection((Connection) any()); in testImsMTCall()
231 verify(mImsPhone, times(1)).notifyIncomingRing(); in testImsMTCall()
244 verify(mImsCall, times(1)).accept(eq(ImsCallProfile in testImsMTCallAccept()
263 verify(mImsCall, times(1)).reject(eq(ImsReasonInfo.CODE_USER_DECLINE)); in testImsMTCallReject()
307 verify(mImsPhone, times(2)).notifyNewRingingConnection((Connection) any()); in testImsMTCallAcceptHold()
308 verify(mImsPhone, times(2)).notifyIncomingRing(); in testImsMTCallAcceptHold()
[all …]
DImsPhoneCallTest.java35 import static org.mockito.Mockito.times;
120 verify(mImsPhone, times(1)).startRingbackTone(); in testUpdateRingBackTone()
123 verify(mImsPhone, times(1)).stopRingbackTone(); in testUpdateRingBackTone()
148 verify(mImsCall, times(0)).isMultiparty(); in testMultiParty()
153 verify(mImsCall, times(1)).isMultiparty(); in testMultiParty()
DImsPhoneTest.java69 import static org.mockito.Mockito.times;
297 verify(mImsCT, times(2)).canConference(); in testGettersAndPassThroughs()
302 verify(mImsCT, times(2)).canDial(); in testGettersAndPassThroughs()
313 verify(mImsCT, times(2)).canTransfer(); in testGettersAndPassThroughs()
338 verify(mImsCT, times(2)).getMute(); in testGettersAndPassThroughs()
361 verify(mTestHandler, times(1)).sendMessageAtTime(messageArgumentCaptor.capture(), in testSuppServiceNotification()
373 verify(mTestHandler, times(1)).sendMessageAtTime(any(Message.class), anyLong()); in testSuppServiceNotification()
392 verify(mImsCT, times(0)).sendDtmf(anyChar(), any(Message.class)); in testDtmf()
396 verify(mImsCT, times(0)).sendDtmf(eq('0'), any(Message.class)); in testDtmf()
401 verify(mImsCT, times(0)).sendDtmf(eq('0'), any(Message.class)); in testDtmf()
[all …]
DImsPhoneConnectionTest.java56 import static org.mockito.Mockito.times;
102 verify(mForeGroundCall, times(1)).attach((Connection) any(), in testImsConnectionSanity()
111 verify(mForeGroundCall, times(1)).attachFake((Connection) any(), in testImsConnectionSanity()
126 verify(mForeGroundCall, times(1)).update(eq(mConnectionUT), eq(mImsCall), in testImsUpdateStateForeGround()
137 verify(mBackGroundCall, times(1)).detach(eq(mConnectionUT)); in testImsUpdateStateBackGround()
138 verify(mForeGroundCall, times(1)).attach(eq(mConnectionUT)); in testImsUpdateStateBackGround()
139 verify(mForeGroundCall, times(1)).update(eq(mConnectionUT), eq(mImsCall), in testImsUpdateStateBackGround()
151 verify(mForeGroundCall, times(0)).update(eq(mConnectionUT), eq(mImsCall), in testImsUpdateStatePendingHold()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileServiceManagerTests.java62 Mockito.verify(mTileServices, Mockito.times(2)).recalculateBindAllowance(); in testSetBindRequested()
67 Mockito.verify(mTileServices, Mockito.times(2)).recalculateBindAllowance(); in testSetBindRequested()
71 Mockito.verify(mTileServices, Mockito.times(3)).recalculateBindAllowance(); in testSetBindRequested()
87 Mockito.verify(mTileLifecycle, Mockito.times(1)).setBindService(captor.capture()); in testBind()
98 Mockito.verify(mTileLifecycle, Mockito.times(2)).setBindService(captor.capture()); in testBind()
DTileServicesTests.java65 Mockito.verify(mManagers.get(i), Mockito.times(1)).calculateBindPriority( in testRecalculateBindAllowance()
68 Mockito.verify(mManagers.get(i), Mockito.times(1)).setBindAllowed(captor.capture()); in testRecalculateBindAllowance()
81 Mockito.verify(mManagers.get(i), Mockito.times(2)).setBindAllowed(captor.capture()); in testSetMemoryPressure()
101 Mockito.verify(mManagers.get(i), Mockito.times(1)).setBindAllowed(captor.capture()); in testCalcFew()
/frameworks/base/core/java/android/gesture/
DGestureStroke.java52 final long[] times = new long[count]; in GestureStroke() local
62 times[index] = p.timestamp; in GestureStroke()
78 timestamps = times; in GestureStroke()
87 private GestureStroke(RectF bbx, float len, float[] pts, long[] times) { in GestureStroke() argument
91 timestamps = times.clone(); in GestureStroke()
202 final long[] times = timestamps; in serialize() local
214 out.writeLong(times[i / 2]); in serialize()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaInserterTest.java151 EasyMock.expectLastCall().times(4); in testInsertContentsEqualToBufferSize()
166 EasyMock.expectLastCall().times(4); in testInsertContentsMoreThanBufferSize()
190 EasyMock.expectLastCall().times(4); in testFlushAllWithSomeContents()
206 EasyMock.expectLastCall().times(8); in testInsertContentsAfterFlushAll()
228 EasyMock.expectLastCall().times(1); in testInsertContentsWithDifferentSizePerContentType()
232 EasyMock.expectLastCall().times(2); in testInsertContentsWithDifferentSizePerContentType()
236 EasyMock.expectLastCall().times(3); in testInsertContentsWithDifferentSizePerContentType()
240 EasyMock.expectLastCall().times(4); in testInsertContentsWithDifferentSizePerContentType()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiCountryCodeTest.java22 import static org.mockito.Mockito.times;
106 verify(mWifiNative, times(2)).setCountryCode(anyString()); in setTelephonyCountryCodeAfterSupplicantStarts()
126 verify(mWifiNative, times(2)).setCountryCode(anyString()); in setTelephonyCountryCodeAfterL2Connected()
148 verify(mWifiNative, times(2)).setCountryCode(anyString()); in resetCountryCodeWhenSIMCardRemoved()
170 verify(mWifiNative, times(2)).setCountryCode(anyString()); in resetCountryCodeWhenAirplaneModeEnabled()
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DRectangle.java78 return p0.plus(p1).plus(p2).plus(p3).times(0.25f); in center()
83 return new Rectangle(p0.times(s), p1.times(s), p2.times(s), p3.times(s)); in scaled()
DQuad.java63 return new Quad(p0.times(s), p1.times(s), p2.times(s), p3.times(s)); in scaled()
/frameworks/opt/net/wifi/service/proto/
Dwifi.proto48 // Number of times user toggled wifi using the settings menu.
51 // Number of times user toggled wifi using the airplane menu.
93 // Mapping of error codes to the number of times that scans resulted
122 // Mapping of system state to the number of times that scans were requested in
141 // Mapping of system state to the number of times that Background scans were requested in that
145 // Total number of times the Watchdog of Last Resort triggered, resetting the wifi stack
175 // Count of times connectivity watchdog confirmed pno is working
178 // Count of times connectivity watchdog found pno not working
181 // Count of times connectivity watchdog confirmed background scan is working
184 // Count of times connectivity watchdog found background scan not working
/frameworks/support/v4/tests/java/android/support/v4/view/
DBaseViewPagerTest.java206 verify(mockPageChangeListener, times(1)).onPageSelected(1); in verifyPageSelections()
210 verify(mockPageChangeListener, times(1)).onPageSelected(2); in verifyPageSelections()
216 verify(mockPageChangeListener, times(1)).onPageSelected(2); in verifyPageSelections()
221 verify(mockPageChangeListener, times(2)).onPageSelected(1); in verifyPageSelections()
226 verify(mockPageChangeListener, times(1)).onPageSelected(0); in verifyPageSelections()
232 verify(mockPageChangeListener, times(1)).onPageSelected(0); in verifyPageSelections()
241 verify(mockPageChangeListener, times(1)).onPageSelected(2); in verifyPageSelections()
247 verify(mockPageChangeListener, times(1)).onPageSelected(0); in verifyPageSelections()
251 verify(mockPageChangeListener, times(4)).onPageSelected(pageSelectedCaptor.capture()); in verifyPageSelections()
278 verify(mockPageChangeListener, times(1)).onPageSelected(1); in testPageSwipes()
[all …]
/frameworks/base/docs/html-intl/intl/ja/training/multiscreen/
Dscreendensities.jd79 …00&times;200 画像(<code>xhdpi</code> デバイス用)を生成する場合、同じリソースを 150&times;150 画像(<code>hdpi</code> デバイス用)…
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DDrawerLayoutTest.java253 verify(mockedListener, times(1)).onDrawerOpened(mStartDrawer); in testDrawerListenerCallbacksOnOpeningViaAPI()
290 verify(mockedListener, times(1)).onDrawerOpened(mStartDrawer); in testDrawerListenerCallbacksOnOpeningNoAnimationViaAPI()
294 verify(mockedListener, times(1)).onDrawerSlide(any(View.class), eq(1f)); in testDrawerListenerCallbacksOnOpeningNoAnimationViaAPI()
300 verify(mockedListener, times(1)).onDrawerOpened(mStartDrawer); in testDrawerListenerCallbacksOnOpeningNoAnimationViaAPI()
324 verify(mockedListener, times(1)).onDrawerClosed(mStartDrawer); in testDrawerListenerCallbacksOnClosingViaAPI()
364 verify(mockedListener, times(1)).onDrawerClosed(mStartDrawer); in testDrawerListenerCallbacksOnClosingNoAnimationViaAPI()
366 verify(mockedListener, times(1)).onDrawerSlide(any(View.class), eq(0f)); in testDrawerListenerCallbacksOnClosingNoAnimationViaAPI()
374 verify(mockedListener, times(1)).onDrawerClosed(mStartDrawer); in testDrawerListenerCallbacksOnClosingNoAnimationViaAPI()
399 verify(mockedListener, times(1)).onDrawerOpened(mStartDrawer); in testDrawerListenerCallbacksOnOpeningViaSwipes()
449 verify(mockedListener, times(1)).onDrawerClosed(mStartDrawer); in testDrawerListenerCallbacksOnClosingViaSwipes()
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
DBuzzBeepBlinkTest.java44 import static org.mockito.Mockito.times;
171 verify(mRingtonePlayer, times(1)).playAsync((Uri) anyObject(), (UserHandle) anyObject(), in verifyBeep()
176 verify(mRingtonePlayer, times(1)).playAsync((Uri) anyObject(), (UserHandle) anyObject(), in verifyBeepLooped()
185 verify(mRingtonePlayer, times(1)).stopAsync(); in verifyStopAudio()
194 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), (long[]) anyObject(), in verifyVibrate()
199 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), (long[]) anyObject(), in verifyVibrateLooped()
204 verify(mVibrator, times(1)).cancel(); in verifyStopVibrate()

123456789