Searched defs:when (Results 1 - 25 of 67) sorted by relevance

123

/external/littlemock/src/com/google/testing/littlemock/
H A DBehaviour.java26 public <T> T when(T mock); method in interface:Behaviour
/external/chromium_org/chrome/browser/drive/
H A Devent_logger.h33 base::Time when; // When the event occurred. member in struct:drive::EventLogger::Event
/external/mockito/src/org/mockito/stubbing/
H A DStubber.java10 * Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
14 * doThrow(new RuntimeException()).when(mockedList).clear();
20 * Also useful when stubbing consecutive calls:
25 * .when(mock).someVoidMethod();
45 * Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
50 * .when(mockedList).clear();
72 <T> T when(T mock); method in interface:Stubber
79 * .when(mock).someVoidMethod();
83 * @param toBeThrown to be thrown when the stubbed method is called
93 * .when(moc
[all...]
/external/mockito/src/org/mockito/internal/stubbing/
H A DStubberImpl.java22 public <T> T when(T mock) { method in class:StubberImpl
/external/chromium_org/net/http/
H A Dhttp_server_properties_impl.h169 // List of broken host:ports and the times when they can be expired.
172 base::TimeTicks when; member in struct:net::HttpServerPropertiesImpl::BrokenAlternateProtocolEntry
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
H A DAudioScheduledSourceNode.cpp137 void AudioScheduledSourceNode::start(double when, ExceptionState& exceptionState) argument
148 if (!std::isfinite(when) || (when < 0)) {
151 "Start time must be a finite non-negative number: " + String::number(when));
155 m_startTime = when;
159 void AudioScheduledSourceNode::stop(double when, ExceptionState& exceptionState) argument
170 if (!std::isfinite(when) || (when < 0)) {
173 "Stop time must be a finite non-negative number: " + String::number(when));
180 when
[all...]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowMessage.java17 private long when; field in class:ShadowMessage
115 return when;
118 public void setWhen(long when) { argument
119 this.when = when;
H A DShadowNotification.java23 public void __constructor__(int icon, CharSequence tickerText, long when) { argument
26 realNotification.when = when;
/external/chromium_org/remoting/base/
H A Dplugin_thread_task_runner.cc11 base::TimeDelta CalcTimeDelta(base::TimeTicks when) { argument
12 return std::max(when - base::TimeTicks::Now(), base::TimeDelta());
137 // Post tasks to the plugin thread when it is availabe or spin the shutdown
150 void PluginThreadTaskRunner::PostDelayedRunTasks(base::TimeTicks when) { argument
156 // Schedule RunDelayedTasks() to be called at |when| if it hasn't been
158 if (scheduled_timers_.insert(when).second) {
159 base::TimeDelta delay = CalcTimeDelta(when);
161 base::Bind(&PluginThreadTaskRunner::RunDelayedTasks, this, when);
196 void PluginThreadTaskRunner::RunDelayedTasks(base::TimeTicks when) { argument
199 scheduled_timers_.erase(when);
222 base::TimeTicks when = delayed_queue_.top().delayed_run_time; local
[all...]
/external/chromium_org/third_party/WebKit/Source/core/animation/
H A DAnimationTimelineTest.cpp74 void expectDelayedAction(double when) argument
78 EXPECT_CALL(*this, wakeAfter(when)).InSequence(sequence);
212 // TODO: Put the player startTime in the future when we add the capability to change player startTime
/external/chromium_org/third_party/icu/source/samples/date/
H A Ddate.c47 static void date(UDate when, const UChar *tz, UDateFormatStyle style, const char *format, UErrorCode *status);
76 UDate when; local
160 /* get the 'when' (or now) */
161 when = getWhen(millis, seconds, format, style, parse, tz, &status);
167 date(when, tz, style, format, &status);
240 date(UDate when, argument
255 printf("%.0f\n", when);
258 printf("%.3f\n", when/1000.0);
268 len = udat_format(fmt, when, 0, len, 0, status);
273 udat_format(fmt, when,
296 UDate when=0; local
[all...]
/external/dhcpcd/
H A Deloop.c51 struct timeval when; member in struct:timeout
114 const struct timeval *when, void (*callback)(void *), void *arg)
120 timeradd(&now, when, &w);
148 t->when.tv_sec = w.tv_sec;
149 t->when.tv_usec = w.tv_usec;
158 if (!timeouts || timercmp(&t->when, &timeouts->when, <)) {
164 if (timercmp(&t->when, &tt->next->when, <)) {
174 add_q_timeout_sec(int queue, time_t when, voi argument
113 add_q_timeout_tv(int queue, const struct timeval *when, void (*callback)(void *), void *arg) argument
[all...]
/external/icu/icu4c/source/samples/date/
H A Ddate.c47 static void date(UDate when, const UChar *tz, UDateFormatStyle style, const char *format, UErrorCode *status);
76 UDate when; local
160 /* get the 'when' (or now) */
161 when = getWhen(millis, seconds, format, style, parse, tz, &status);
167 date(when, tz, style, format, &status);
240 date(UDate when, argument
255 printf("%.0f\n", when);
258 printf("%.3f\n", when/1000.0);
268 len = udat_format(fmt, when, 0, len, 0, status);
273 udat_format(fmt, when,
296 UDate when=0; local
[all...]
/external/mockito/src/org/mockito/internal/
H A DMockitoCore.java74 public <T> OngoingStubbing<T> when(T methodCall) { method in class:MockitoCore
/external/owasp/sanitizer/empiricism/
H A Dhtml-containment.js268 function when(f, var_args) { function
/external/owasp/sanitizer/distrib/lib/
H A Djsr305.jar ... .Annotation { public abstract javax.annotation.meta.When when () } javax/annotation/Detainted.class Detainted.java package ...
/external/owasp/sanitizer/lib/jsr305/
H A Djsr305.jar ... .Annotation { public abstract javax.annotation.meta.When when () } javax/annotation/Detainted.class Detainted.java package ...
/external/owasp/sanitizer/tools/findbugs/lib/
H A Djsr305.jar ... .Annotation { public abstract javax.annotation.meta.When when () } javax/annotation/Detainted.class Detainted.java package ...
/external/chromium_org/media/cast/sender/
H A Dcongestion_control.cc36 // Called when an encoded frame is sent to the transport.
39 base::TimeTicks when) OVERRIDE;
41 // Called when we receive an ACK for a frame.
42 virtual void AckFrame(uint32 frame_id, base::TimeTicks when) OVERRIDE;
68 // For a given frame, calculate when it might be acked.
71 // Calculate when we start sending the data for a given frame.
72 // This is done by calculating when we were done sending the previous
99 // Called when an encoded frame is sent to the transport.
102 base::TimeTicks when) OVERRIDE {
105 // Called when w
225 AckFrame(uint32 frame_id, base::TimeTicks when) argument
246 SendFrameToTransport(uint32 frame_id, size_t frame_size, base::TimeTicks when) argument
[all...]
/external/glide/library/src/main/java/com/bumptech/glide/request/target/
H A DSquaringDrawable.java125 public void scheduleSelf(Runnable what, long when) { argument
126 super.scheduleSelf(what, when); //To change body of overridden methods use File | Settings | File Templates.
127 wrapped.scheduleSelf(what, when);
/external/mockito/src/org/mockito/
H A DMockito.java101 * when(mockedList.get(0)).thenReturn("first");
102 * when(mockedList.get(1)).thenThrow(new RuntimeException());
131 * <li> Last stubbing is more important - when you stubbed the same method with
134 * e.g. when stubbing exactly the same method calls or sometimes when argument matchers are used, etc.</li>
143 * Sometimes, when extra flexibility is required then you might use argument matchers:
147 * when(mockedList.get(anyInt())).thenReturn("element");
150 * when(mockedList.contains(argThat(isValid()))).thenReturn("element");
239 * doThrow(new RuntimeException()).when(mockedList).clear();
335 * <code>verifyNoMoreInteractions()</code> is a handy assertion from the interaction testing toolkit. Use it only when i
1442 public static <T> OngoingStubbing<T> when(T methodCall) { method in class:Mockito
[all...]
/external/qemu/distrib/sdl-1.2.15/test/
H A Dtestpalette.c64 static void sdlerr(char *when) argument
66 fprintf(stderr, "SDL error: %s: %s\n", when, SDL_GetError());
196 * Proper palette management is important when playing games with the
/external/qemu/telephony/
H A Dsysdeps_qemu.c106 sys_timer_set( SysTimer timer, SysTime when, SysCallback _callback, void* opaque ) argument
134 timer_mod( timer->timer, when );
/external/zlib/src/examples/
H A Dgun.c54 1.2.4) is on the same file, when gun is linked with zlib 1.2.2. Also the
520 struct utimbuf when; local
533 when.actime = was.st_atime;
534 when.modtime = was.st_mtime;
535 (void)utime(to, &when);
/external/chromium_org/chrome/browser/net/
H A Durl_info.cc311 MinMaxAverage queue, when; local
320 HoursMinutesSeconds(when.sample(

Completed in 662 milliseconds

123