/external/littlemock/src/com/google/testing/littlemock/ |
Behaviour.java | 26 public <T> T when(T mock); method in interface:Behaviour
|
/external/mockito/src/org/mockito/stubbing/ |
Stubber.java | 10 * 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(mock).someVoidMethod(); [all...] |
/frameworks/base/libs/androidfw/tests/ |
ZipUtils_test.cpp | 41 long when = 0x3EDD7514; local 43 ZipUtils::zipTimeToTimespec(when, &t);
|
/external/chromium_org/chrome/browser/drive/ |
event_logger.h | 33 base::Time when; // When the event occurred. member in struct:drive::EventLogger::Event
|
/libcore/luni/src/main/java/java/util/ |
TimerTask.java | 35 long when; field in class:TimerTask 42 * The time when task will be executed, or the time when task was launched 48 * Method called from the Timer for synchronized getting of when field. 52 return when; 57 * Method called from the Timer object when scheduling an event @param time 73 return when > 0 || scheduledTime > 0; 93 boolean willRun = !cancelled && when > 0;
|
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
ElemChoose.java | 33 * <!ELEMENT xsl:choose (xsl:when+, xsl:otherwise?)> 92 ElemWhen when = (ElemWhen) childElem; local 94 // must be xsl:when 98 // System.err.println("\""+when.getTest().getPatternString()+"\""); 100 // if(when.getTest().getPatternString().equals("COLLECTION/icuser/ictimezone/LITERAL='GMT +13:00 Pacific/Tongatapu'")) 103 if (when.getTest().bool(xctxt, sourceNode, when)) { 104 transformer.executeChildTemplates(when, true);
|
/external/mockito/src/org/mockito/internal/stubbing/ |
StubberImpl.java | 22 public <T> T when(T mock) {
method in class:StubberImpl
|
/libcore/luni/src/main/native/ |
java_lang_System.cpp | 107 jlong when = now.tv_sec * 1000LL + now.tv_usec / 1000; local 108 return when;
|
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/ |
UpdateService.java | 49 if (intent.hasExtra("id") && intent.hasExtra("when")) { 54 final long when = intent.getLongExtra("when", 0L); local 55 Log.v(TAG, "id: " + id + " when: " + when + " update: " + update); 57 NotificationService.makeBigTextNotification(this, update, id, when)); 60 Log.v(TAG, "when extra was " + (intent.hasExtra("when") ? "present" : "missing")); 64 public static PendingIntent getPendingIntent(Context context, int update, int id, long when) { 69 updateIntent.putExtra("when", when) [all...] |
ProgressService.java | 49 UpdateRunnable(int id, long when, int progress) { 51 mWhen = when; 58 Log.v(TAG, "id: " + mId + " when: " + mWhen + " progress: " + mProgress); 79 final long when = intent.getLongExtra("when", 0L); local 81 handler.postDelayed(new UpdateRunnable(id, when, progress), 1000); 84 public static void startProgressUpdater(Context context, int id, long when, int progress) { 89 progressIntent.putExtra("when", when);
|
/system/core/libutils/ |
SystemClock.cpp | 48 int64_t when = systemTime(SYSTEM_TIME_MONOTONIC); local 49 return (int64_t) nanoseconds_to_milliseconds(when);
|
/external/chromium_org/net/http/ |
http_server_properties_impl.h | 169 // 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/remoting/base/ |
plugin_thread_task_runner.cc | 11 base::TimeDelta CalcTimeDelta(base::TimeTicks when) { 12 return std::max(when - base::TimeTicks::Now(), base::TimeDelta()); 51 // When DetachAndRunShutdownLoop() is called from NPP_Destroy() all scheduled 137 // Post tasks to the plugin thread when it is availabe or spin the shutdown 150 void PluginThreadTaskRunner::PostDelayedRunTasks(base::TimeTicks when) { 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) { 222 base::TimeTicks when = delayed_queue_.top().delayed_run_time; local [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowMessage.java | 17 private long when; field in class:ShadowMessage 115 return when; 118 public void setWhen(long when) { 119 this.when = when;
|
/system/core/libpixelflinger/codeflinger/ |
CodeCache.h | 96 : entry(a), when(w) { } 98 mutable int64_t when; member in struct:android::CodeCache::cache_entry_t
|
/art/test/092-locale/src/ |
Main.java | 73 Date when = usaCal.getTime(); local 77 + fmt.format(when)); 89 when = franceCal.getTime(); 93 + fmt.format(when));
|
/external/chromium_org/third_party/icu/source/samples/date/ |
date.c | 47 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, 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, s, len + 1, 0, status) 296 UDate when=0; local [all...] |
/external/dhcpcd/ |
eloop.c | 51 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, void (*callback)(void *), void *arg [all...] |
/external/icu/icu4c/source/samples/date/ |
date.c | 47 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, 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, s, len + 1, 0, status) 296 UDate when=0; local [all...] |
/external/mockito/src/org/mockito/ |
Mockito.java | 101 * 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 it's relevant. 1442 public static <T> OngoingStubbing<T> when(T methodCall) { method in class:Mockito [all...] |
/external/owasp/sanitizer/empiricism/ |
html-containment.js | 268 function when(f, var_args) { function
|
/frameworks/base/core/java/android/ddm/ |
DdmHandleHeap.java | 65 * Called when the DDM server connects. The handler is allowed to 71 * Called when the DDM server disconnects. Can be used to disable 114 int when = in.get(); local 116 Log.v("ddm-heap", "Heap segment enable: when=" + when); 118 boolean ok = DdmVmInternal.heapInfoNotify(when); 132 int when = in.get(); local 135 Log.v("ddm-heap", "Heap segment enable: when=" + when 138 boolean ok = DdmVmInternal.heapSegmentNotify(when, what, isNative) [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
AlertAdapter.java | 87 TextView whenView = (TextView) view.findViewById(R.id.when); 112 // When 113 String when; local 137 when = sb.toString(); 138 whenView.setText(when);
|
/external/owasp/sanitizer/distrib/lib/ |
jsr305.jar | |
/external/owasp/sanitizer/lib/jsr305/ |
jsr305.jar | |