/external/mockito/src/org/mockito/stubbing/ |
VoidMethodStubbable.java | 13 * stubVoid(mock).toThrow(new RuntimeException()).on().someMethod();
20 * .on().someMethod();
31 * stubVoid(mock).toThrow(new RuntimeException()).on().someMethod();
39 * @param throwable to be thrown on method invocation
55 * .on().foo(10);
83 * .on().accept(any());
96 * stubVoid(mock).toThrow(new RuntimeException()).on().someMethod("some arg");
103 T on();
method in interface:VoidMethodStubbable
|
/external/android-clat/ |
ring.c | 11 * distributed under the License is distributed on an "AS IS" BASIS, 45 int on = 1; local 46 if (setsockopt(packetsock, SOL_PACKET, PACKET_LOSS, (void *) &on, sizeof(on))) {
|
clatd_microbenchmark.c | 11 * distributed under the License is distributed on an "AS IS" BASIS, 168 int on = 1; local 169 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) == -1) die("SO_REUSEADDR");
|
/external/chromium-trace/trace-viewer/hooks/ |
pre_push | 9 """Detect forced pushes (on the client) and prompt the user before going on.""" 13 import posix # No way to do this on Windows, just give up there. namespace
|
/external/droiddriver/src/io/appium/droiddriver/ |
DroidDriver.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 37 * looking for UiElements in a scrollable view, whose content varies based on 44 * UiElement el = driver.on(By.anyOf(finder1, finder2, ...)); 51 * using a smaller timeout than the default timeout. It's not worth it -- on 67 UiElement on(Finder finder); method in interface:DroidDriver 73 * desired, and {@link #on} is more appropriate. 89 * default timeout is reached. This behaves the same as {@link #on} except 124 * Dumps the UiElement tree to a file to help debug. The tree is based on the
|
/external/guava/guava/src/com/google/common/base/ |
Joiner.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 39 * Joiner joiner = Joiner.on("; ").skipNulls(); 50 * useForNull} has no effect on the instance it is invoked on! You must store and use the new joiner 55 * Joiner joiner = Joiner.on(','); 59 * <p>See the Guava User Guide article on <a href= 70 public static Joiner on(String separator) { method in class:Joiner 77 public static Joiner on(char separator) { method in class:Joiner 285 * <p>In addition to operating on {@code Map} instances, {@code MapJoiner} can operate on {@cod [all...] |
Splitter.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 40 * specified as a single {@linkplain #on(char) character}, fixed {@linkplain 41 * #on(String) string}, {@linkplain #onPattern regular expression} or {@link 42 * #on(CharMatcher) CharMatcher} instance. Or, instead of using a separator at 48 * Splitter.on(',').split("foo,bar,qux")}</pre> 56 * Splitter.on(',').split(" foo,,, bar ,")}</pre> 62 * private static final Splitter MY_SPLITTER = Splitter.on(',') 71 * method has no effect on the receiving instance; you must store and use the 75 * Splitter splitter = Splitter.on('/'); 92 * <p>See the Guava User Guide article on <a href 129 public static Splitter on(char separator) { method in class:Splitter 143 public static Splitter on(final CharMatcher separatorMatcher) { method in class:Splitter [all...] |
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
Splitter.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 37 * specified as a single {@linkplain #on(char) character}, fixed {@linkplain 38 * #on(String) string}, {@linkplain #onPattern regular expression} or {@link 39 * #on(CharMatcher) CharMatcher} instance. Or, instead of using a separator at 45 * Splitter.on(',').split("foo,bar,qux")}</pre> 53 * Splitter.on(',').split(" foo,,, bar ,")}</pre> 59 * private static final Splitter MY_SPLITTER = Splitter.on(',') 68 * method has no effect on the receiving instance; you must store and use the 72 * Splitter splitter = Splitter.on('/'); 89 * <p>See the Guava User Guide article on <a href 126 public static Splitter on(char separator) { method in class:Splitter 140 public static Splitter on(final CharMatcher separatorMatcher) { method in class:Splitter [all...] |
/external/llvm/test/tools/llvm-cov/Inputs/ |
test.cpp | 4 bool on = false; variable 19 on = true; 42 on = rand() % 2; 43 if (on) {
|
/external/mockito/src/org/mockito/internal/stubbing/ |
VoidMethodStubbableImpl.java | 36 public T on() {
method in class:VoidMethodStubbableImpl
|
/libcore/luni/src/main/java/java/security/ |
DigestInputStream.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 35 // Indicates whether digest functionality is on or off 43 * {@code DigestInputStream}. All operations on such a stream will fail. 76 * for the byte if this function is {@link #on(boolean)}. 89 // - digest functionality is on 101 * {@link #on(boolean)}. 115 // - digest functionality is on 125 * Enables or disables the digest function (default is on). 127 * @param on 132 public void on(boolean on) method in class:DigestInputStream [all...] |
DigestOutputStream.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 35 // Indicates whether digest functionality is on or off 73 * this function is {@link #on(boolean)}. 82 // update digest only if digest functionality is on 92 * offset. Updates the digest if this function is {@link #on(boolean)}. 105 // update digest only if digest functionality is on 114 * Enables or disables the digest function (default is on). 116 * @param on 121 public void on(boolean on) { method in class:DigestOutputStream [all...] |
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
Splitter.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 41 * Splitter.on(',').split("foo,bar")}</pre> 48 * Splitter.on(',').split("foo,,bar, quux")}</pre> 55 * private static final Splitter MY_SPLITTER = Splitter.on(',') 67 * method such as {@code omitEmptyStrings} has no effect on the instance it 68 * is invoked on! You must store and use the new splitter instance returned by 73 * Splitter splitter = Splitter.on('/'); 79 * #on(String)}, {@link #on(Pattern)} and {@link #on(CharMatcher)} for example 117 public static Splitter on(char separator) { method in class:Splitter 131 public static Splitter on(final CharMatcher separatorMatcher) { method in class:Splitter [all...] |
/system/core/libcutils/ |
uevent.c | 11 * distributed under the License is distributed on an "AS IS" BASIS, 107 int on = passcred; local 120 setsockopt(s, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on));
|
/system/netd/server/ |
NetlinkManager.cpp | 11 * distributed under the License is distributed on an "AS IS" BASIS, 72 int on = 1; local 90 if (setsockopt(*sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) {
|
/system/vold/ |
NetlinkManager.cpp | 11 * distributed under the License is distributed on an "AS IS" BASIS, 54 int on = 1; local 72 if (setsockopt(mSock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) {
|
/external/toybox/toys/other/ |
acpi.c | 49 int dfd, fd, len, on; local 78 if ((on = read_int_at(dfd, "online")) >= 0) 79 printf("Adapter %d: %s-line\n", TT.ac++, (on ? "on" : "off"));
|
/system/core/logd/ |
LogListener.cpp | 11 * distributed under the License is distributed on an "AS IS" BASIS, 85 // Such log messages are often generated by libraries we depend on 120 int on = 1; local 121 if (setsockopt(sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) {
|
/developers/samples/android/common/src/java/com/example/android/common/midi/synth/ |
EnvelopeADSR.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 71 public void on() { method in class:EnvelopeADSR
|
SawVoice.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 40 mEnvelope.on();
|
/device/moto/shamu/power/ |
power_shamu.c | 11 * distributed under the License is distributed on an "AS IS" BASIS, 173 static void low_power(int on) 186 if (on) { 203 int on = (long) data; local 209 low_power(on); 212 static void power_set_interactive(__attribute__((unused)) struct power_module *module, int on) 215 last_state = on; 217 if (last_state == on) 220 last_state = on; 223 ALOGV("%s %s", __func__, (on ? "ON" : "OFF")) [all...] |
/external/droiddriver/src/io/appium/droiddriver/base/ |
BaseDroidDriver.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 67 public UiElement on(Finder finder) { method in class:BaseDroidDriver 68 Logs.call(this, "on", finder);
|
/frameworks/base/core/java/com/android/server/ |
ResettableTimeout.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 24 * Utility class that you can call on with a timeout, and get called back 33 * This is called with the monitor on this method held, so be careful. 37 public abstract void on(boolean alreadyOn); method in class:ResettableTimeout 41 * This is called with the monitor on this method held, so be careful. 47 * <p>1. Call on()</p> 60 // thread to stop it can't start, we don't turn the vibrator on 76 on(alreadyOn);
|
/art/runtime/jdwp/ |
jdwp_socket.cc | 11 * distributed under the License is distributed on an "AS IS" BASIS, 94 LOG(INFO) << "JDWP will wait for debugger on port " << port; 96 LOG(INFO) << "JDWP will " << (options->server ? "listen" : "connect") << " on port " << port; 112 * Returns 0 on success. 198 int on = 1; local 199 int cc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)); 227 // When we call shutdown() on the socket, accept() returns with 248 VLOG(jdwp) << "Setting TCP_NODELAY on accepted socket"; 345 * Returns "false" on error (indicating that the connection has been severed) [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/ |
GeneralNameTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 76 OtherName on = local 78 byte[] encoding = OtherName.ASN1.encode(on); 81 GeneralName gn = new GeneralName(on);
|