/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
RectTest.java | 9 import static org.hamcrest.CoreMatchers.is; 21 assertThat(r.left, is(1)); 22 assertThat(r.top, is(2)); 23 assertThat(r.right, is(3)); 24 assertThat(r.bottom, is(4)); 31 assertThat(r.left, is(1)); 32 assertThat(r.top, is(2)); 33 assertThat(r.right, is(3)); 34 assertThat(r.bottom, is(4)); 41 assertThat(r.width(), is(10)) 54 assertThat(a.equals(b), is(false)); method 61 assertThat(a.equals(b), is(true)); method 67 assertThat(r.contains(11, 11), is(false)); method 73 assertThat(r.contains(5, 5), is(true)); method 79 assertThat(r.contains(0, 5), is(false)); method 85 assertThat(r.contains(10, 5), is(false)); method 91 assertThat(r.contains(5, 0), is(true)); method 97 assertThat(r.contains(5, 10), is(true)); method 104 assertThat(a.contains(b), is(false)); method 111 assertThat(a.contains(b), is(true)); method 118 assertThat(a.contains(b), is(true)); method 125 assertThat(a.contains(b), is(false)); method 132 assertThat(Rect.intersects(a, b), is(false)); method 139 assertThat(Rect.intersects(a, b), is(true)); method 146 assertThat(Rect.intersects(a, b), is(false)); method 153 assertThat(a.intersect(b), is(true)); method 159 assertThat(r.intersect(5, 0, 15, 10), is(true)); method [all...] |
TabHostTest.java | 17 import static org.hamcrest.CoreMatchers.is; 45 assertThat(tabHost.getChildAt(0), is(fooView)); method 46 assertThat(tabHost.getChildAt(1), is(barView)); method 60 assertThat(shadowOf(tabHost).getSpecByTag("Bar"), is(bar)); method 61 assertThat(shadowOf(tabHost).getSpecByTag("Baz"), is(baz)); method
|
/external/sfntly/cpp/src/test/ |
bitmap_table_test.cc | 11 * distributed under the License is distributed on an "AS IS" BASIS, 111 // Strike 4 Index Sub Table 1 is a Format 3 156 MemoryInputStream is; local 157 is.Attach(os.Get(), os.Size()); 159 factory->LoadFonts(&is, &font_array); 164 // Strike 4 Index Sub Table 1 is a Format 4
|
/external/skia/src/opts/ |
SkNx_neon.h | 4 * Use of this source code is governed by a BSD-style license that can be 410 union { int32x4_t v; int32_t is[4]; } pun = {fVec}; member in union:__anon31056::SkNx::__anon31063 411 return pun.is[k&3];
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
PointerUnion.h | 5 // This file is distributed under the University of Illinois Open Source 10 // This file defines the PointerUnion class, which is a discriminated union of 39 /// Ret will be EQ type if T1 is same as T2 or NE type otherwise. 57 /// Provide PointerLikeTypeTraits for void* that is used by PointerUnion 74 /// This implementation is extremely efficient in space due to leveraging the 80 /// printf("%d %d", P.is<int*>(), P.is<float*>()); // prints "1 0" 113 /// Test if the pointer held in the union is null, regardless of 114 /// which type it is. 123 template <typename T> int is() const 240 template <typename T> int is() const { function in struct:llvm::PointerUnion3::IsInnerUnion 252 template <typename T> int is() const { return Val.template is<T>(); } function in struct:llvm::PointerUnion3::IsPT3 269 template <typename T> int is() const { function in class:llvm::PointerUnion3 374 template <typename T> int is() const { function in class:llvm::PointerUnion4 [all...] |
/external/walt/android/WALT/app/src/test/java/org/chromium/latency/walt/ |
UtilsTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 26 import static org.hamcrest.core.Is.is; 35 assertThat(Utils.median(arr), is(0d)); 42 assertThat(Utils.median(arr), is(2.5d)); 49 assertThat(Utils.median(arr), is(3d)); 54 assertThat(Utils.mean(new double[]{-1,1,2,3}), is(1.25d)); 59 assertThat(Utils.mean(new double[]{0}), is(0d)); 64 assertThat(Utils.mean(new double[]{}), is(NaN)) method 75 new double[]{35, 50, 75, 93}), is(new double[]{42.5, 44, 87, 90})); method 81 new double[]{35, 50}), is(new double[]{42.5})); method 87 new double[]{35, 50}), is(new double[]{35})); method 93 new double[]{35, 19, 50}), is(new double[]{19, 50})); method 103 assertThat(Utils.stdev(new double[]{}), is(NaN)); method 120 is(new double[]{1.5, 4.5, 7.5})); method 125 assertThat(Utils.extract(new int[]{}, 1, new double[]{}), is(new double[]{})); method [all...] |
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
CipherInputStreamTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 109 InputStream is = new ByteArrayInputStream(t.pt); local 110 CipherInputStream cis = new CipherInputStream(is, cipher); 133 InputStream is = new ByteArrayInputStream(t.ct); local 134 CipherInputStream cis = new CipherInputStream(is, cipher); 152 * Further description of the bug is here: 153 * https://blog.heckel.xyz/2014/03/01/cipherinputstream-for-aead-modes-is-broken-in-jdk7-gcm/ 154 * BouncyCastle claims that this bug is fixed in version 1.51. However, the test below still fails 155 * with BouncyCastle v 1.52. A possible explanation is that BouncyCastle has its ow 166 InputStream is = new ByteArrayInputStream(ct); local 200 InputStream is = new ByteArrayInputStream(ct); local [all...] |
/frameworks/base/core/java/android/content/pm/ |
Signature.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 39 * This class name is slightly misleading, since it's not actually a signature. 88 * @throws IllegalArgumentException when signature is odd-length 95 throw new IllegalArgumentException("text size " + N + " is not even"); 295 final InputStream is = new ByteArrayInputStream(s.mSignature); local 296 final X509Certificate cert = (X509Certificate) cf.generateCertificate(is);
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
BandwidthTestUtil.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 77 * @param deviceId the device id that is downloading 101 InputStream is = ucon.getInputStream(); local 102 BufferedInputStream bis = new BufferedInputStream(is); 121 * @param deviceId {@link String} device id that is uploading
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
PackageParserTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 237 * If the bit is 1 in the original configChanges, it is still 1 in the final configChanges. 238 * If the bit is 0 in the original configChanges and the bit is not set to 1 in 239 * recreateOnConfigChanges, the bit is changed to 1 in the final configChanges by default. 295 InputStream is = context.getResources().openRawResource(apkResourceId); local 296 assertTrue(FileUtils.copyToFile(is, outFile));
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
ChooserActivityTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 48 import static org.hamcrest.CoreMatchers.is; 110 assertThat(activity.getAdapter().getCount(), is(2)); 123 assertThat(chosen[0], is(toChoose)); 141 assertThat(activity.getIsSelected(), is(false)); method 153 assertThat(activity.getIsSelected(), is(true)); method 165 assertThat(activity.isFinishing(), is(false)); method 172 // backward compatibility. looks like we finish when data is empty after package change 173 assertThat(activity.isFinishing(), is(true)) method 195 assertThat(activity.isFinishing(), is(true)); method [all...] |
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
BaseSettingsProviderTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 351 InputStream is = new FileInputStream(InstrumentationRegistry.getInstrumentation() local 353 Streams.readFully(is);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
ExifModifier.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 52 InputStream is = null; local 54 is = new ByteBufferInputStream(byteBuffer); 56 ExifParser parser = ExifParser.parse(is, mInterface); 61 ExifInterface.closeSilently(is); 70 InputStream is = null; local 72 is = new ByteBufferInputStream(mByteBuffer); 98 ExifParser parser = ExifParser.parse(is, flag, mInterface); 135 ExifInterface.closeSilently(is); [all...] |
/frameworks/base/rs/java/android/renderscript/ |
FileA3D.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 42 * Specifies what renderscript object type is contained within 290 InputStream is = null; local 292 is = res.openRawResource(id); 298 if (is instanceof AssetManager.AssetInputStream) { 299 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); 308 FileA3D fa3d = new FileA3D(fileId, rs, is);
|
Font.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 34 * rendered glyph bitmaps is maintained. Each font object represents a combination of a typeface, 39 * font to the RenderScript is required. A note of caution on performance, though the state changes 40 * are transparent to the user, they do happen internally, and it is more efficient to 41 * render large batches of text in sequence. It is also more efficient to render multiple 203 InputStream is = null; local 205 is = res.openRawResource(id); 213 if (is instanceof AssetManager.AssetInputStream) { 214 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset() [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
MountServiceTests.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 111 InputStream is = null; local 113 is = res.openRawResource(rawResId); 119 assertTrue(FileUtils.copyToFile(is, outFile));
|
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
variant.h | 33 // Here is an example of the problematic situation this trait avoids: 37 // v = array; // This is allowed by regular std::is_constructible. 50 // Enable if T(Args...) is well formed. 54 // Enable if T(Args...) is not well formed. 59 // Determines whether T is an element of Types...; 72 // Default specialization catches the empty set, which is always a subset. 96 // Enable if T is an element of Types... 100 // Enable if T is not an element of Types... 105 // Enable if T is convertible to an element of Types... T is considere 558 bool is() const { function [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
TelephonyTester.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 47 * Telephony tester receives the following intents where {name} is the phone name 107 // is running on the same thread as Dcc. 237 final FileInputStream is; local 239 is = new FileInputStream(packageFile); 245 TestConferenceEventPackageParser parser = new TestConferenceEventPackageParser(is);
|
/frameworks/support/app-toolkit/core-testing/src/androidTest/java/android/arch/core/executor/testing/ |
CountingTaskExecutorRuleTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 19 import static org.hamcrest.CoreMatchers.is; 53 assertThat(mRule.isIdle(), is(true)); method 100 assertThat(mOnIdleCount.tryAcquire(300, TimeUnit.MILLISECONDS), is(false)); method 101 assertThat(mRule.isIdle(), is(false)); method 105 assertThat(mOnIdleCount.tryAcquire(1, TimeUnit.SECONDS), is(true)); method 106 assertThat(mRule.isIdle(), is(true)); method
|
/frameworks/support/lifecycle/extensions/src/test/java/android/arch/lifecycle/ |
LiveDataTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 27 import static org.hamcrest.CoreMatchers.is; 83 assertThat(mLiveData.hasObservers(), is(true)); method 84 assertThat(mLiveData.hasActiveObservers(), is(false)); method 88 assertThat(mLiveData.hasObservers(), is(false)); method 89 assertThat(mLiveData.hasActiveObservers(), is(false)); method 98 assertThat(mLiveData.hasObservers(), is(true)); method 99 assertThat(mLiveData.hasActiveObservers(), is(false)); method 103 assertThat(mLiveData.hasActiveObservers(), is(true)) method 108 assertThat(mLiveData.hasActiveObservers(), is(false)); method 109 assertThat(mLiveData.hasObservers(), is(true)); method 114 assertThat(mLiveData.hasActiveObservers(), is(true)); method 115 assertThat(mLiveData.hasObservers(), is(true)); method 120 assertThat(mLiveData.hasActiveObservers(), is(false)); method 121 assertThat(mLiveData.hasObservers(), is(false)); method 131 assertThat(mLiveData.hasObservers(), is(true)); method 140 assertThat(mLiveData.hasObservers(), is(true)); method 151 assertThat(mLiveData.hasObservers(), is(false)); method 181 assertThat(mLiveData.hasObservers(), is(true)); method 182 assertThat(mLiveData.hasActiveObservers(), is(true)); method 187 assertThat(mLiveData.hasObservers(), is(false)); method 188 assertThat(mLiveData.hasActiveObservers(), is(false)); method 197 assertThat(mLiveData.hasObservers(), is(false)); method 264 assertThat(mLiveData.hasObservers(), is(true)); method 265 assertThat(mLiveData.hasActiveObservers(), is(false)); method 286 assertThat(mLiveData.hasObservers(), is(true)); method 287 assertThat(mLiveData.hasActiveObservers(), is(true)); method 304 assertThat(mLiveData.hasObservers(), is(false)); method 326 assertThat(mLiveData.hasObservers(), is(true)); method 327 assertThat(mLiveData.hasActiveObservers(), is(true)); method [all...] |
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/android/arch/lifecycle/ |
ProcessOwnerTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 26 import static org.hamcrest.Matchers.is; 72 // reassure that our observer is removed. 128 assertThat(activity.moveTaskToBack(true), is(true)); method 130 assertThat(events.toArray(), is(new Event[]{ON_PAUSE, ON_STOP})); method 136 assertThat(events.toArray(), is(new Event[]{ON_START, ON_RESUME})); method 161 assertThat(mObserver.mChangedState, is(false));
|
/frameworks/support/lifecycle/reactivestreams/src/test/java/android/arch/lifecycle/ |
LiveDataReactiveStreamsTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 21 import static org.hamcrest.CoreMatchers.is; 98 // Wrong implementation, but it is fine for test 126 assertThat(mLiveDataOutput, is(Arrays.asList("foo", "bar", "baz"))); 150 assertThat(mLiveDataOutput, is(Arrays.asList("foo", "bar", "baz"))); 151 assertThat(output2, is(Arrays.asList("bar", "baz"))); 162 assertThat(mLiveDataOutput, is(Collections.singletonList("foo"))); 164 assertThat(mLiveDataOutput, is(Arrays.asList("foo", "bar", "baz"))); 171 assertThat(liveData.getValue(), is("foo")) 181 is(new String[] {"foo", "bar", "baz"})); method 202 assertThat(liveData.hasObservers(), is(true)); method 210 assertThat(liveData.hasObservers(), is(false)); method 246 assertThat(mOutputProcessor.getValues(new String[]{}), is(new String[] {})); method 249 assertThat(mOutputProcessor.getValues(new String[]{}), is(new String[] {"foo"})); method 257 is(new String[] {"foo", "baz", "fizz"})); method 265 is(new String[] {"foo", "baz", "fizz"})); method 271 is(new String[] {"foo", "baz", "fizz", "cat"})); method 284 assertThat(mOutputProcessor.getValues(new String[]{}), is(new String[] {})); method 286 assertThat(mOutputProcessor.getValues(new String[]{}), is(new String[] {"foo"})); method 291 assertThat(mOutputProcessor.getValues(new String[]{}), is(new String[] {"foo"})); method 295 is(new String[] {"foo", "bar", "baz"})); method [all...] |
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/test/ |
PojoWithRelationTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 19 import static org.hamcrest.CoreMatchers.is; 55 assertThat(usersAndPets.size(), is(3)); 56 assertThat(usersAndPets.get(0).user, is(users[0])); method 57 assertThat(usersAndPets.get(0).pets, is(Collections.<Pet>emptyList())); 59 assertThat(usersAndPets.get(1).user, is(users[1])); method 60 assertThat(usersAndPets.get(1).pets, is(Arrays.asList(userPets[1]))); 62 assertThat(usersAndPets.get(2).user, is(users[2])); method 63 assertThat(usersAndPets.get(2).pets, is(Arrays.asList(userPets[2]))) [all...] |
RxJava2Test.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 19 import static org.hamcrest.CoreMatchers.is; 128 // since this is a clean db, it is ok to rely on the order for the test. 179 // since this is a clean db, it is ok to rely on the order for the test. 205 assertThat(consumer.values().get(0), is(user)); method 210 assertThat(next, is(user)); 215 assertThat(consumer.valueCount(), is(2)) 229 assertThat(consumer.values().get(0), is(user)); method [all...] |
/frameworks/support/room/runtime/src/test/java/android/arch/persistence/room/ |
RoomSQLiteQueryTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 19 import static org.hamcrest.CoreMatchers.is; 47 assertThat(query.getSql(), is("abc")); 48 assertThat(query.mArgCount, is(3)); 49 assertThat(query.mBlobBindings.length, is(4)); 50 assertThat(query.mLongBindings.length, is(4)); 51 assertThat(query.mStringBindings.length, is(4)); 52 assertThat(query.mDoubleBindings.length, is(4)); 100 assertThat(RoomSQLiteQuery.sQueryPool.size(), is(1)) 141 assertThat(RoomSQLiteQuery.sQueryPool.size(), is(RoomSQLiteQuery.POOL_LIMIT)); method 143 assertThat(RoomSQLiteQuery.sQueryPool.size(), is(RoomSQLiteQuery.DESIRED_POOL_SIZE)); method 146 assertThat(itr.next().mCapacity, is(i)); method [all...] |