Home
last modified time | relevance | path

Searched refs:equalTo (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DRotationCacheTest.java21 import static org.hamcrest.Matchers.equalTo;
57 assertThat(mCache.getOrCompute("hello", 0), equalTo(create("hello", 0))); in getOrCompute_computes()
58 assertThat(mCache.getOrCompute("hello", 1), equalTo(create("hello", 1))); in getOrCompute_computes()
59 assertThat(mCache.getOrCompute("hello", 2), equalTo(create("hello", 2))); in getOrCompute_computes()
60 assertThat(mCache.getOrCompute("hello", 3), equalTo(create("hello", 3))); in getOrCompute_computes()
68 assertThat(mCache.getOrCompute("hello", 1), equalTo(create("hello", 1))); in getOrCompute_sameParam_sameRot_hitsCache()
80 assertThat(mCache.getOrCompute("hello", 1), equalTo(create("hello", 1))); in getOrCompute_sameParam_hitsCache_forAllRots()
81 assertThat(mCache.getOrCompute("hello", 0), equalTo(create("hello", 0))); in getOrCompute_sameParam_hitsCache_forAllRots()
82 assertThat(mCache.getOrCompute("hello", 2), equalTo(create("hello", 2))); in getOrCompute_sameParam_hitsCache_forAllRots()
83 assertThat(mCache.getOrCompute("hello", 3), equalTo(create("hello", 3))); in getOrCompute_sameParam_hitsCache_forAllRots()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DRoundedCornersTest.java28 import static org.hamcrest.Matchers.equalTo;
86 equalTo(new RoundedCorner(POSITION_TOP_LEFT, 10, 10, 10))); in testGetRoundedCorner()
88 equalTo(new RoundedCorner(POSITION_TOP_RIGHT, 10, 190, 10))); in testGetRoundedCorner()
90 equalTo(new RoundedCorner(POSITION_BOTTOM_RIGHT, 20, 180, 380))); in testGetRoundedCorner()
92 equalTo(new RoundedCorner(POSITION_BOTTOM_LEFT, 20, 20, 380))); in testGetRoundedCorner()
108 equalTo(RoundedCorners.fromRadii(new Pair<>(10, 20), 200, 400).hashCode())); in testHashCode()
110 not(equalTo(RoundedCorners.fromRadii(new Pair<>(5, 10), 200, 400).hashCode()))); in testHashCode()
116 equalTo(RoundedCorners.fromRadii(new Pair<>(10, 20), 200, 400))); in testEquals()
119 not(equalTo(RoundedCorners.fromRadii(new Pair<>(5, 10), 200, 400)))); in testEquals()
127 assertThat(mRoundedCorners.getRoundedCorner(POSITION_BOTTOM_LEFT), equalTo(roundedCorner)); in testSetRoundedCorner()
[all …]
DDisplayCutoutTest.java29 import static org.hamcrest.Matchers.equalTo;
89 equalTo(new Rect[]{bound, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_left()
97 equalTo(new Rect[]{ZERO_RECT, bound, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_top()
105 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, bound, ZERO_RECT})); in testExtractBoundsFromList_right()
113 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, bound})); in testExtractBoundsFromList_bottom()
123 equalTo(new Rect[]{ZERO_RECT, boundTop, ZERO_RECT, boundBottom})); in testExtractBoundsFromList_top_and_bottom()
130 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_nullBoundingRects()
136 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_nullSafeInsets()
142 assertThat(NO_CUTOUT.getWaterfallInsets(), equalTo(Insets.NONE)); in testHasCutout_noCutout()
199 assertThat(first, equalTo(second)); in testGetCutoutPath_caches()
[all …]
DRoundedCornerTest.java19 import static org.hamcrest.Matchers.equalTo;
55 assertThat(roundedCorner.getCenter(), equalTo(new Point(3, 4))); in testGetCenter()
77 assertThat(roundedCorner, equalTo(roundedCorner2)); in testEquals()
/frameworks/base/tests/utils/testutils/tests/src/android/os/test/
DTestLooperTest.java19 import static org.hamcrest.core.IsEqual.equalTo;
90 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
92 collector.checkThat("2: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
94 collector.checkThat("3: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
96 collector.checkThat("4: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
148 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
150 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
177 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
179 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
181 collector.checkThat("3: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyInsetsTests.java24 import static org.hamcrest.Matchers.equalTo;
152 equalTo(new Rect(left, top, right, bottom))); in verifyStableInsets()
162 getNonDecorInsets(di), equalTo(new Rect(left, top, right, bottom))); in verifyNonDecorInsets()
177 equalTo(di.logicalWidth - insets.left - insets.right)); in verifyConsistency()
179 equalTo(di.logicalHeight - insets.top - insets.bottom)); in verifyConsistency()
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DInputMethodInfoTest.java19 import static org.hamcrest.CoreMatchers.equalTo;
55 assertThat(clone.hashCode(), equalTo(imi.hashCode())); in testEqualsAndHashCode()
72 assertThat(imi.createStylusHandwritingSettingsActivityIntent(), equalTo(null)); in testBooleanAttributes_DefaultValues()
74 assertThat(imi.createImeLanguageSettingsActivityIntent(), equalTo(null)); in testBooleanAttributes_DefaultValues()
/frameworks/av/media/tests/SampleVideoEncoder/app/src/androidTest/java/com/android/media/samplevideoencoder/tests/
DSampleVideoEncoderTest.java36 import static org.hamcrest.Matchers.equalTo;
86 assertThat(encodingStatus, is(equalTo(0))); in testMediaSurfaceEncoder()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/
DImageWallpaperTest.java25 import static org.hamcrest.Matchers.equalTo;
248 intThat(equalTo(expectedSurfaceWidth)),
249 intThat(equalTo(expectedSurfaceHeight)));
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityNodeInfoTest.java22 import static org.hamcrest.Matchers.equalTo;
136 assertThat(unparceledNode.getText(), equalTo(text)); in testEmptyListOfActions_parcelsCorrectly()
/frameworks/av/media/codec2/components/gsm/
DC2SoftGsmDec.cpp61 .withFields({C2F(mSampleRate, value).equalTo(8000)}) in IntfImpl()
68 .withFields({C2F(mChannelCount, value).equalTo(1)}) in IntfImpl()
75 .withFields({C2F(mBitrate, value).equalTo(13200)}) in IntfImpl()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageManagerServiceBootTest.kt29 import org.hamcrest.Matchers.equalTo in <lambda>()
170 pm.mPackages[systemAppPackageName]!!.longVersionCode, equalTo(3)) in <lambda>()
/frameworks/av/media/codec2/components/amr_nb_wb/
DC2SoftAmrDec.cpp77 .withFields({C2F(mSampleRate, value).equalTo(8000)}) in IntfImpl()
80 .withFields({C2F(mSampleRate, value).equalTo(16000)}) in IntfImpl()
88 .withFields({C2F(mChannelCount, value).equalTo(1)}) in IntfImpl()
DC2SoftAmrNbEnc.cpp62 .withFields({C2F(mChannelCount, value).equalTo(1)}) in IntfImpl()
69 .withFields({C2F(mSampleRate, value).equalTo(8000)}) in IntfImpl()
DC2SoftAmrWbEnc.cpp63 .withFields({C2F(mChannelCount, value).equalTo(1)}) in IntfImpl()
70 .withFields({C2F(mSampleRate, value).equalTo(16000)}) in IntfImpl()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorCursorTest.java28 import static org.hamcrest.Matchers.equalTo;
210 latch.await(10, TimeUnit.SECONDS), equalTo(true)); in setEditTextProperties()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileQueryHelperTest.java20 import static org.hamcrest.Matchers.equalTo;
196 assertThat(tiles, is(equalTo(STOCK_TILES))); in testQueryTiles_correctTilesAndOrderOnlyStockTiles()
216 assertThat(tiles, is(equalTo(ALL_TILES))); in testQueryTiles_correctTilesAndOrderOtherFactoryTiles()
/frameworks/base/tests/Input/src/com/android/server/input/
DBatteryControllerTests.kt50 import org.hamcrest.core.IsEqual.equalTo
122 memberMatcher("deviceId", { it.deviceId }, equalTo(deviceId)), in matchesState()
123 memberMatcher("isPresent", { it.isPresent }, equalTo(isPresent)) in matchesState()
126 batteryStateMatchers.add(memberMatcher("updateTime", { it.updateTime }, equalTo(eventTime))) in matchesState()
129 batteryStateMatchers.add(memberMatcher("status", { it.status }, equalTo(status))) in matchesState()
132 batteryStateMatchers.add(memberMatcher("capacity", { it.capacity }, equalTo(capacity))) in matchesState()
/frameworks/av/media/codec2/hal/services/
Dvendor.cpp135 C2F(mIonUsageInfo, minAlignment).equalTo(0) in Interface()
/frameworks/av/media/codec2/components/g711/
DC2SoftG711Dec.cpp84 .withFields({C2F(mBitrate, value).equalTo(64000)}) in IntfImpl()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraErrorCollector.java780 checkThat(reason, value, CoreMatchers.equalTo(expected)); in expectKeyValueEquals()
804 checkThat(reason, value, CoreMatchers.equalTo(expected)); in expectKeyValueEquals()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Enc.cpp128 C2F(mProfileLevel, profile).equalTo( in IntfImpl()
144 C2F(mProfileLevel, profile).equalTo( in IntfImpl()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxEnc.cpp136 C2F(mProfileLevel, profile).equalTo( in IntfImpl()
158 C2F(mProfileLevel, profile).equalTo( in IntfImpl()
161 C2F(mProfileLevel, level).equalTo( in IntfImpl()
DC2SoftVpxDec.cpp156 C2F(mProfileLevel, profile).equalTo( in IntfImpl()
159 C2F(mProfileLevel, level).equalTo( in IntfImpl()
/frameworks/av/media/codec2/vndk/util/
DC2InterfaceUtils.cpp426 void equalTo(T value) { in equalTo() function
588 C2ParamFieldValuesBuilder<T> &C2ParamFieldValuesBuilder<T>::equalTo(T value) { in equalTo() function in C2ParamFieldValuesBuilder
589 _mImpl->equalTo(value); in equalTo()

12