/frameworks/support/lifecycle/extensions/src/test/java/android/arch/lifecycle/ |
ViewModelProviderTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 19 import static org.hamcrest.CoreMatchers.is; 45 assertThat(vm1.mCleared, is(false)); 48 assertThat(vm1.mCleared, is(true)); 67 assertThat(mViewModelProvider.get(ViewModel1.class), is(model1)); method 68 assertThat(mViewModelProvider.get(ViewModel2.class), is(model2)); method 82 assertThat(viewModel, is(provider.get(ViewModel1.class)));
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/test/ |
InvalidationTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 20 import static org.hamcrest.CoreMatchers.is; 123 assertThat(observer.await(), is(true)); method 136 assertThat(observer.await(), is(true)); method 147 assertThat(observer.await(), is(true)); method 159 assertThat(observer.await(), is(false)); method 168 assertThat(observer.await(), is(true)); method
|
/frameworks/support/room/runtime/src/androidTest/java/android/arch/persistence/room/migration/ |
TableInfoTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 21 import static org.hamcrest.CoreMatchers.is; 58 assertThat(info, is(new TableInfo("foo", 70 assertThat(info, is(new TableInfo("foo", 83 assertThat(info, is(new TableInfo("foo", 95 assertThat(info, is(new TableInfo("foo", 105 assertThat(info, is(new TableInfo( 118 assertThat(info.foreignKeys.size(), is(1)); 120 assertThat(foreignKey.columnNames, is(singletonList("barName"))) 168 assertThat(info.foreignKeys.iterator().next(), is(expected)); method [all...] |
/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; 59 assertThat(mView1.getY(), is(100.f)); 60 assertThat(mView0.getVisibility(), is(View.VISIBLE)); 77 listener.await(), is(true)); 78 assertThat(mView1.getY(), is(0.f)); 79 assertThat(mView0.getVisibility(), is(View.GONE)); method 91 listener.await(), is(true)) 93 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;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
XmpPresets.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 62 InputStream is = null; local 65 is = context.getContentResolver().openInputStream(srcUri); 66 xmpMeta = XmpUtilHelper.extractXMPMeta(is); 70 Utils.closeSilently(is); 95 InputStream is = null; local 98 is = context.getContentResolver().openInputStream(uriToEdit); 99 xmpMeta = XmpUtilHelper.extractXMPMeta(is); 102 Utils.closeSilently(is); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
ShortcutConfigActivityInfo.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 152 IntentSender is = activity.getSystemService(LauncherApps.class) local 155 activity.startIntentSenderForResult(is, requestCode, null, 0, 0, 0);
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
CharMatcher.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 33 * character" is used to mean "any character {@code c} for which {@code 49 // Excludes 2000-2000a, which is handled as a range 53 // Excludes 2007, which is handled as a gap in a pair of ranges 58 * Determines whether a character is whitespace according to the latest 61 * This is not the same definition used by other Java APIs. See a comparison 73 * Determines whether a character is a breaking whitespace (that is, 86 * Determines whether a character is ASCII, meaning that its code point i 379 public static CharMatcher is(final char match) { method in class:CharMatcher [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
DecoderUtil.java | 13 * software distributed under the License is distributed on an * 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * 54 QuotedPrintableInputStream is = new QuotedPrintableInputStream( local 58 while ((b = is.read()) != -1) { 83 Base64InputStream is = new Base64InputStream( local 87 while ((b = is.read()) != -1) { 148 * =?charset?enc?Encoded word?= where enc is either 'Q' or 'q' for 216 // return null on error. Begin is index of '=?' in body.
|
/prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/llvm/include/llvm/ADT/ |
PointerSumType.h | 5 // This file is distributed under the University of Illinois Open Source 40 /// This is a normal tagged union across pointer-like types that uses the low 43 /// Each member of the sum type is specified by passing a \c 56 /// would be. This means that the zero value for the tag type is significant 57 /// and may be desirable to set to a state that is particularly desirable to 60 /// There is no support for constructing or accessing with a dynamic tag as 77 "Pointer is insufficiently aligned to store the discriminant!"); 84 template <TagT N> bool is() const { return N == getTag(); } function in class:llvm::PointerSumType 87 void *P = is<N>() ? getImpl() : nullptr; 93 assert(is<N>() && "This instance has a different active member.") [all...] |
/prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/llvm/include/llvm/ADT/ |
PointerSumType.h | 5 // This file is distributed under the University of Illinois Open Source 40 /// This is a normal tagged union across pointer-like types that uses the low 43 /// Each member of the sum type is specified by passing a \c 56 /// would be. This means that the zero value for the tag type is significant 57 /// and may be desirable to set to a state that is particularly desirable to 60 /// There is no support for constructing or accessing with a dynamic tag as 77 "Pointer is insufficiently aligned to store the discriminant!"); 84 template <TagT N> bool is() const { return N == getTag(); } function in class:llvm::PointerSumType 87 void *P = is<N>() ? getImpl() : nullptr; 93 assert(is<N>() && "This instance has a different active member.") [all...] |
/prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/llvm/include/llvm/ADT/ |
PointerSumType.h | 5 // This file is distributed under the University of Illinois Open Source 40 /// This is a normal tagged union across pointer-like types that uses the low 43 /// Each member of the sum type is specified by passing a \c 56 /// would be. This means that the zero value for the tag type is significant 57 /// and may be desirable to set to a state that is particularly desirable to 60 /// There is no support for constructing or accessing with a dynamic tag as 77 "Pointer is insufficiently aligned to store the discriminant!"); 84 template <TagT N> bool is() const { return N == getTag(); } function in class:llvm::PointerSumType 87 void *P = is<N>() ? getImpl() : nullptr; 93 assert(is<N>() && "This instance has a different active member.") [all...] |
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/ |
PointerSumType.h | 5 // This file is distributed under the University of Illinois Open Source 40 /// This is a normal tagged union across pointer-like types that uses the low 43 /// Each member of the sum type is specified by passing a \c 56 /// would be. This means that the zero value for the tag type is significant 57 /// and may be desirable to set to a state that is particularly desirable to 60 /// There is no support for constructing or accessing with a dynamic tag as 77 "Pointer is insufficiently aligned to store the discriminant!"); 84 template <TagT N> bool is() const { return N == getTag(); } function in class:llvm::PointerSumType 87 void *P = is<N>() ? getImpl() : nullptr; 93 assert(is<N>() && "This instance has a different active member.") [all...] |