/external/mockito/src/main/java/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);
|
/system/core/libutils/ |
SystemClock.cpp | 42 int64_t when = systemTime(SYSTEM_TIME_MONOTONIC); local 43 return (int64_t) nanoseconds_to_milliseconds(when);
|
/hardware/interfaces/broadcastradio/common/utils/ |
WorkerThread.cpp | 36 return lhs.when > rhs.when; 54 auto when = steady_clock::now() + delay; local 57 mTasks.push(Task({when, task})); 78 if (task.when > steady_clock::now()) { 79 mCond.wait_until(lk, task.when);
|
/hardware/interfaces/broadcastradio/common/utils/include/broadcastradio-utils/ |
WorkerThread.h | 35 std::chrono::time_point<std::chrono::steady_clock> when; member in struct:android::WorkerThread::Task
|
/prebuilts/go/darwin-x86/src/time/ |
sleep.go | 20 when int64 27 // when is a helper function for setting the 'when' field of a runtimeTimer. 31 func when(d Duration) int64 { func 46 // When the Timer expires, the current time will be sent on C, 90 when: when(d), 104 // that happens when the current timer expires. 127 w := when(d) 129 t.r.when = [all...] |
/prebuilts/go/linux-x86/src/time/ |
sleep.go | 20 when int64 27 // when is a helper function for setting the 'when' field of a runtimeTimer. 31 func when(d Duration) int64 { func 46 // When the Timer expires, the current time will be sent on C, 90 when: when(d), 104 // that happens when the current timer expires. 127 w := when(d) 129 t.r.when = [all...] |
/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);
|
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/ |
UpdateService.java | 45 if (intent.hasExtra("id") && intent.hasExtra("when")) { 50 final long when = intent.getLongExtra("when", 0L); local 51 Log.v(TAG, "id: " + id + " when: " + when + " update: " + update); 53 NotificationService.makeSmsNotification(this, update, id, when)); 56 Log.v(TAG, "when extra was " + (intent.hasExtra("when") ? "present" : "missing")); 60 public static PendingIntent getPendingIntent(Context context, int update, int id, long when) { 65 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);
|
/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/capstone/bindings/vb6/ |
Module1.bas | 54 CS_OPT_SKIPDATA ' Skip data when disassembling. Then engine is in SKIPDATA mode.
89 'NOTE: All information in cs_detail is only available when CS_OPT_DETAIL = CS_OPT_ON
128 ' available even when CS_OPT_DETAIL = CS_OPT_OFF
132 address As Currency ' Address (EIP) of this instruction available even when CS_OPT_DETAIL = CS_OPT_OFF UNSIGNED
133 size As Integer ' Size of this instruction available even when CS_OPT_DETAIL = CS_OPT_OFF UNSIGNED
134 bytes(0 To 15) As Byte ' Machine bytes of this instruction, with number of bytes indicated by @size above available even when CS_OPT_DETAIL = CS_OPT_OFF
135 mnemonic(0 To 31) As Byte ' Ascii text of instruction mnemonic available even when CS_OPT_DETAIL = CS_OPT_OFF
136 op_str(0 To 159) As Byte ' Ascii text of instruction operands available even when CS_OPT_DETAIL = CS_OPT_OFF
139 ' NOTE: detail pointer is only valid when both requirements below are met:
142 ' NOTE 2: when in Skipdata mode, or when detail mode is OFF, even if this pointer [all...] |
/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
StubberImpl.java | 30 public <T> T when(T mock) { method in class:StubberImpl
|
/external/owasp/sanitizer/empiricism/ |
html-containment.js | 268 function when(f, var_args) { function
|
/external/robolectric/v1/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;
|
/hardware/libhardware/tests/input/evdev/ |
InputDevice_test.cpp | 75 nsecs_t when = 2ULL; local 76 InputEvent msc1 = { when, EV_MSC, MSC_ANDROID_TIME_SEC, 1 }; 77 InputEvent msc2 = { when, EV_MSC, MSC_ANDROID_TIME_USEC, 900000 }; 80 InputEvent keyDown = { when, EV_KEY, KEY_HOME, 1 }; 81 InputEvent syn = { when, EV_SYN, SYN_REPORT, 0 }; 84 InputEvent keyUp = { when, EV_KEY, KEY_HOME, 0 }; 86 device->processInput(msc1, when); 87 device->processInput(msc2, when); 88 device->processInput(keyDown, when); 89 device->processInput(syn, when); [all...] |
/packages/apps/Settings/src/com/android/settings/datetime/ |
TimePreferenceController.java | 116 long when = Math.max(c.getTimeInMillis(), TimePreferenceHost.MIN_DATE); local 118 if (when / 1000 < Integer.MAX_VALUE) { 119 ((AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE)).setTime(when);
|
/system/core/libpixelflinger/codeflinger/ |
CodeCache.h | 97 : entry(a), when(w) { } 99 mutable int64_t when; member in struct:android::CodeCache::cache_entry_t
|
/prebuilts/tools/common/m2/repository/org/jdeferred/jdeferred-core/1.2.2/ |
jdeferred-core-1.2.2.jar | |
/prebuilts/tools/common/m2/repository/org/jdeferred/jdeferred-core/1.2.3/ |
jdeferred-core-1.2.3.jar | |
/external/dhcpcd-6.8.2/ |
eloop.h | 57 struct timespec when; member in struct:eloop_timeout
|
/external/icu/icu4c/source/samples/date/ |
date.c | 51 static void date(UDate when, const UChar *tz, UDateFormatStyle style, const char *format, UErrorCode *status); 80 UDate when; local 164 /* get the 'when' (or now) */ 165 when = getWhen(millis, seconds, format, style, parse, tz, &status); 171 date(when, tz, style, format, &status); 244 date(UDate when, 259 printf("%.0f\n", when); 262 printf("%.3f\n", when/1000.0); 272 len = udat_format(fmt, when, 0, len, 0, status); 277 udat_format(fmt, when, s, len + 1, 0, status) 300 UDate when=0; local [all...] |
/external/python/cpython2/Modules/ |
termios.c | 63 with indices VMIN and VTIME, which are integers when these fields are\n\ 135 "tcsetattr(fd, when, attributes) -> None\n\ 139 is a list like the one returned by tcgetattr(). The when argument\n\ 140 determines when the attributes are changed: termios.TCSANOW to\n\ 148 int fd, when; local 155 fdconv, &fd, &when, &term)) 201 if (tcsetattr(fd, when, &mode) == -1)
|
/external/python/cpython3/Modules/ |
termios.c | 56 with indices VMIN and VTIME, which are integers when these fields are\n\ 128 "tcsetattr(fd, when, attributes) -> None\n\ 132 is a list like the one returned by tcgetattr(). The when argument\n\ 133 determines when the attributes are changed: termios.TCSANOW to\n\ 141 int fd, when; local 148 fdconv, &fd, &when, &term)) 194 if (tcsetattr(fd, when, &mode) == -1)
|
/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...] |