HomeSort by relevance Sort by last modified time
    Searched defs:is (Results 251 - 275 of 2615) sorted by null

<<11121314151617181920>>

  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ServiceTest.java 5 import static org.hamcrest.CoreMatchers.is;
64 assertThat(shadowService.isForegroundStopped(), is(true)); method
65 assertThat(shadowService.getNotificationShouldRemoved(), is(true)); method
UriMatcherTest.java 12 import static org.hamcrest.CoreMatchers.is;
33 assertThat(root.code, is(NO_MATCH));
34 assertThat(root.map.isEmpty(), is(true)); method
35 assertThat(root.number, is(nullValue()));
36 assertThat(root.text, is(nullValue()));
53 assertThat(node.code, is(1));
61 assertThat(node.number.code, is(1));
62 assertThat(node.text.code, is(2));
67 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar")), is(1));
70 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar/1")), is(2))
82 assertThat(matcher.match(Uri.withAppendedPath(URI, "cat")), is(NO_MATCH)); method
83 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar")), is(NO_MATCH)); method
84 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar\/cat")), is(NO_MATCH)); method
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/org/apache/http/
TestHttpResponseTest.java 11 import static org.hamcrest.core.Is.is;
51 assertThat(resp.containsHeader("X-Zombo-Com"), is(true)); method
52 assertThat(resp.containsHeader("Location"), is(false)); method
64 assertThat(it.hasNext(), is(true)); method
67 assertThat(it.hasNext(), is(false)); method
80 assertThat(it.hasNext(), is(true)); method
82 assertThat(it.hasNext(), is(true)); method
84 assertThat(it.hasNext(), is(false)); method
98 assertThat(headers.length, is(2))
    [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
DexBackedDexFile.java 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
99 public static DexBackedDexFile fromInputStream(@Nonnull Opcodes opcodes, @Nonnull InputStream is)
101 if (!is.markSupported()) {
104 is.mark(44);
107 ByteStreams.readFully(is, partialHeader);
109 throw new NotADexFile("File is too short");
111 is.reset();
116 byte[] buf = ByteStreams.toByteArray(is);
OatFile.java 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
113 public static OatFile fromInputStream(@Nonnull InputStream is)
115 if (!is.markSupported()) {
118 is.mark(4);
121 ByteStreams.readFully(is, partialHeader);
125 is.reset();
130 is.reset();
132 byte[] buf = ByteStreams.toByteArray(is);
171 // TODO: what is the correct character encoding
    [all...]
  /external/testng/src/main/java/org/testng/reporters/
Files.java 21 try (InputStream is = new FileInputStream(f)) {
22 return readFile(is);
26 public static String readFile(InputStream is) throws IOException {
28 BufferedReader br = new BufferedReader(new InputStreamReader(is));
61 public static String streamToString(InputStream is) throws IOException {
62 if (is != null) {
67 Reader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
73 is.close();
  /external/testng/src/test/java/test/annotationtransformer/
AnnotationTransformerTest.java 33 * annotation invocationCount is correctly used.
239 ByteArrayInputStream is = new ByteArrayInputStream(xml.getBytes()); local
240 Collection<XmlSuite> suites = new Parser(is).parse();
  /frameworks/base/core/tests/coretests/src/android/content/pm/
LimitedLengthInputStreamTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
28 private final byte[] TEST_STRING1 = "This is a test".getBytes();
42 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); local
52 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, -1); local
62 InputStream is = new LimitedLengthInputStream(null, 0, 1); local
72 InputStream is = new LimitedLengthInputStream(mTestStream1, Long.MAX_VALUE - 1, local
74 fail("Should fail when offset + length is > Long.MAX_VALUE");
88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); local
89 assertEquals(length, is.read(temp, 0, temp.length))
123 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, TEST_STRING1.length + 10); local
138 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); local
168 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/view/inputmethod/
InputMethodInfoTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
20 import static org.hamcrest.CoreMatchers.is;
45 assertThat(clone.equals(imi), is(true)); method
53 assertThat(imi.supportsSwitchingToNextInputMethod(), is(false)); method
57 assertThat(clone.supportsSwitchingToNextInputMethod(), is(false)); method
64 assertThat(imi.supportsSwitchingToNextInputMethod(), is(true)); method
68 assertThat(clone.supportsSwitchingToNextInputMethod(), is(true)); method
  /frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
FrameSequenceTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
33 // This provider is entirely unnecessary, just here to validate the acquire/release process
102 InputStream is = getResources().openRawResource(mResourceId); local
104 FrameSequence fs = FrameSequence.decodeStream(is);
  /frameworks/support/compat/java/android/support/v4/graphics/
TypefaceCompatUtil.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
141 public static boolean copyToFile(File file, InputStream is) {
147 while ((readLen = is.read(buffer)) != -1) {
163 InputStream is = null; local
165 is = res.openRawResource(id);
166 return copyToFile(file, is);
168 closeQuietly(is);
  /frameworks/support/transition/tests/src/android/support/transition/
AutoTransitionTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
19 import static org.hamcrest.core.Is.is;
57 assertThat(mView1.getY(), is(100.f));
58 assertThat(mView0.getVisibility(), is(View.VISIBLE));
75 listener.await(), is(true));
76 assertThat(mView1.getY(), is(0.f));
77 assertThat(mView0.getVisibility(), is(View.GONE)); method
89 listener.await(), is(true))
91 assertThat(mView0.getVisibility(), is(View.VISIBLE)); method
    [all...]
SceneTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
19 import static org.hamcrest.CoreMatchers.is;
40 assertThat(scene.getSceneRoot(), is(sameInstance(root)));
55 assertThat(enterAction.wasCalled(), is(true)); method
56 assertThat(exitAction.wasCalled(), is(false)); method
57 assertThat(root.getChildCount(), is(1));
58 assertThat(root.getChildAt(0), is((View) layout)); method
60 assertThat(exitAction.wasCalled(), is(true)); method
75 assertThat(enterAction.wasCalled(), is(true)) method
76 assertThat(exitAction.wasCalled(), is(false)); method
78 assertThat(root.getChildAt(0), is(view)); method
80 assertThat(exitAction.wasCalled(), is(true)); method
91 assertThat(runnable.wasCalled(), is(true)); method
103 assertThat(runnable.wasCalled(), is(true)); method
114 assertThat(runnable.wasCalled(), is(false)); method
    [all...]
TransitionManagerTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
19 import static org.hamcrest.CoreMatchers.is;
52 assertThat(mScenes[0], is(notNullValue()));
53 assertThat(mScenes[1], is(notNullValue()));
61 assertThat(runnable.wasCalled(), is(false)); method
63 assertThat(runnable.wasCalled(), is(true)); method
75 assertThat(enter.wasCalled(), is(false));
76 assertThat(exit.wasCalled(), is(false));
78 assertThat(enter.wasCalled(), is(true))
    [all...]
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
LinearLayoutManagerWrapContentWithAspectRatioTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
155 CoreMatchers.is(10));
157 CoreMatchers.is(behavior1.getSecondary(10)));
161 CoreMatchers.is(15));
163 CoreMatchers.is(behavior2.getSecondary(15)));
167 CoreMatchers.is(15));
169 CoreMatchers.is(behavior3.getSecondary(15)));
172 CoreMatchers.is(1));
175 MeasureSpecMatcher.is(0, View.MeasureSpec.UNSPECIFIED))
    [all...]
RecyclerViewPrefetchTest.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
19 import static org.hamcrest.CoreMatchers.is;
68 is(true)); method
94 assertThat(layout.prefetchLatch.getCount(), is(1L)); // shouldn't have fired yet
95 assertThat(cachedViews().size(), is(0));
99 assertThat(cachedViews().size(), is(1));
100 assertThat(cachedViews().get(0).getAdapterPosition(), is(6));
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
SequenceInputStreamTest.java 12 * distributed under the License is distributed on an "AS IS" BASIS,
57 //will not throw NullPointerException if the first InputStream is not null
58 InputStream is = new ByteArrayInputStream(s1.getBytes("UTF-8")); local
59 si = new SequenceInputStream(is, null);
119 //will not throw IOException to close a stream which is closed already
135 //returns -1 if the stream is closed , do not throw IOException
170 //returns -1 if the stream is closed , do not throw IOException
180 * is called before a test is executed
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
Process2Test.java 12 * distributed under the License is distributed on an "AS IS" BASIS,
45 InputStream is = process.getErrorStream(); local
48 int c = is.read();
66 InputStream is = erProcess.getErrorStream(); local
69 int c = is.read();
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DigestInputStreamTest.java 12 * distributed under the License is distributed on an "AS IS" BASIS,
84 InputStream is = new ByteArrayInputStream(myMessage); local
85 InputStream dis = new DigestInputStream(is, md);
117 InputStream is = new ByteArrayInputStream(myMessage); local
118 DigestInputStream dis = new DigestInputStream(is, md);
150 InputStream is = new ByteArrayInputStream(myMessage); local
151 DigestInputStream dis = new DigestInputStream(is, md);
175 * Assertion: <code>read()</code> must not update digest if it is off<br>
185 InputStream is = new ByteArrayInputStream(myMessage) local
246 InputStream is = new ByteArrayInputStream(myMessage); local
271 InputStream is = new ByteArrayInputStream(myMessage); local
296 InputStream is = new ByteArrayInputStream(myMessage); local
333 InputStream is = new ByteArrayInputStream(myMessage); local
373 InputStream is = new ByteArrayInputStream(myMessage); local
417 InputStream is = new ByteArrayInputStream(myMessage); local
456 InputStream is = new ByteArrayInputStream(myMessage); local
527 InputStream is = new ByteArrayInputStream(myMessage); local
566 InputStream is = new ByteArrayInputStream(myMessage); local
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppSendFileInfo.java 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
150 "File based URI not in Environment.getExternalStorageDirectory() is not allowed.");
161 FileInputStream is = null; local
171 Log.e(TAG, "Content provider length is wrong (" + Long.toString(length) +
179 // is closed.
180 is = fd.createInputStream();
185 length = getStreamSize(is);
190 is = fd.createInputStream();
204 if (is == null)
    [all...]
  /packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
ImapList.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
66 * Return true if the element at {@code index} exists, is string, and equals to {@code s}. (case
69 public final boolean is(int index, String s) { method in class:ImapList
70 return is(index, s, false);
73 /** Same as {@link #is(int, String)}, but does the prefix match if {@code prefixMatch}. */
74 public final boolean is(int index, String s, boolean prefixMatch) { method in class:ImapList
76 return getStringOrEmpty(index).is(s);
83 * Return the element at {@code index}. If {@code index} is out of range, returns {@link
91 * Return the element at {@code index} if it's a list. If {@code index} is out of range or not
    [all...]
ImapString.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
28 * Class represents an IMAP "element" that is not a list.
61 // This is used only for parsing IMAP's FETCH ENVELOPE command, in which
62 // en_US-like date format is used like "01-Jan-2009 11:20:39 -0800", so this should be
82 * @return true if and only if the length of the string is larger than 0.
83 * <p>Note: IMAP NIL is considered an empty string. See {@link ImapResponseParser
85 * and {3}\r\nNIL) is treated literally.
109 /** @return value parsed as a number, or 0 if the string is not a number. */
114 /** @return value parsed as a number, or {@code defaultValue} if the string is not a number. *
148 public final boolean is(String s) { method in class:ImapString
    [all...]
  /packages/apps/Email/provider_src/com/android/email/mail/store/imap/
ImapList.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
67 * Return true if the element at {@code index} exists, is string, and equals to {@code s}.
70 public final boolean is(int index, String s) { method in class:ImapList
71 return is(index, s, false);
75 * Same as {@link #is(int, String)}, but does the prefix match if {@code prefixMatch}.
77 public final boolean is(int index, String s, boolean prefixMatch) { method in class:ImapList
79 return getStringOrEmpty(index).is(s);
87 * If {@code index} is out of range, returns {@link ImapElement#NONE}.
95 * If {@code index} is out of range or not a list, returns {@link ImapList#EMPTY}
    [all...]
ImapString.java 11 * distributed under the License is distributed on an "AS IS" BASIS,
30 * Class represents an IMAP "element" that is not a list.
58 // This is used only for parsing IMAP's FETCH ENVELOPE command, in which
59 // en_US-like date format is used like "01-Jan-2009 11:20:39 -0800", so this should be
79 * @return true if and only if the length of the string is larger than 0.
81 * Note: IMAP NIL is considered an empty string. See {@link ImapResponseParser
83 * On the other hand, a quoted/literal string with value NIL (i.e. "NIL" and {3}\r\nNIL) is
152 public final boolean is(String s) { method in class:ImapString
  /packages/apps/Gallery2/jni/filters/
hsv.c 11 * distributed under the License is distributed on an "AS IS" BASIS,
87 int H,X,ih,is,iv; local
108 is=(int)cs;
112 X = ((iv*is)/k2)*(k2- abs(6*ih- 2*(H>>1)*k2 - k2)) ;
115 X=( (X+iv*(k1 - is ))/k1 + k3 ) >> ABITS;

Completed in 1525 milliseconds

<<11121314151617181920>>