Home
last modified time | relevance | path

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

123

/aosp12/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
H A DTlvBufferUtilsTest.java66 equalTo(true)); in testTlvBuild()
69 equalTo(true)); in testTlvBuild()
182 equalTo(3)); in testTlvIterate()
188 equalTo(false)); in testTlvIterate()
194 equalTo(false)); in testTlvIterate()
210 equalTo(2)); in testTlvIterate()
215 equalTo(true)); in testTlvIterate()
223 equalTo(5)); in testTlvIterate()
233 equalTo(4)); in testTlvIterate()
237 equalTo(true)); in testTlvIterate()
[all …]
H A DWifiAwareManagerTest.java22 import static org.hamcrest.core.IsEqual.equalTo;
625 equalTo(configRequest.mClusterHigh)); in testConfigRequestBuilderDefaults()
627 equalTo(configRequest.mClusterLow)); in testConfigRequestBuilderDefaults()
790 equalTo(null)); in testSubscribeConfigBuilderDefaults()
893 equalTo(null)); in testPublishConfigBuilderDefaults()
1034 equalTo(ns.role)); in testNetworkSpecifierWithClient()
1040 equalTo(nsb.role)); in testNetworkSpecifierWithClient()
1055 equalTo(ns.role)); in testNetworkSpecifierWithClient()
1062 equalTo(nsb.role)); in testNetworkSpecifierWithClient()
1081 equalTo(ns.role)); in testNetworkSpecifierWithClient()
[all …]
H A DWifiAwareAgentNetworkSpecifierTest.java19 import static org.hamcrest.core.IsEqual.equalTo;
82 collector.checkThat("No match expected", ns.canBeSatisfiedBy(dut), equalTo(false)); in testEmptyDoesntMatchAnything()
94 collector.checkThat("Match expected", nsThis.canBeSatisfiedBy(dut), equalTo(true)); in testSingleMatch()
95 collector.checkThat("No match expected", nsOther.canBeSatisfiedBy(dut), equalTo(false)); in testSingleMatch()
116 collector.checkThat("Match expected", nsThis.canBeSatisfiedBy(dut), equalTo(true)); in testMultipleMatchesAllMembers()
118 collector.checkThat("No match expected", nsOther.canBeSatisfiedBy(dut), equalTo(false)); in testMultipleMatchesAllMembers()
140 collector.checkThat("Match expected", oldNs.canBeSatisfiedBy(newNs), equalTo(true)); in testMatchSuperset()
162 collector.checkThat("Match unexpected", oldNs.canBeSatisfiedBy(newNs), equalTo(false)); in testNoMatchSubset()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
H A DWifiAwareNativeApiTest.java22 import static org.hamcrest.core.IsEqual.equalTo;
376 equalTo(halPubReq.baseConfigs.sessionId)); in testDiscoveryRangingSettings()
378 equalTo(halPubReq.baseConfigs.rangingRequired)); in testDiscoveryRangingSettings()
383 equalTo(halPubReq.baseConfigs.sessionId)); in testDiscoveryRangingSettings()
390 equalTo(halSubReq.baseConfigs.sessionId)); in testDiscoveryRangingSettings()
397 equalTo(halSubReq.baseConfigs.sessionId)); in testDiscoveryRangingSettings()
409 equalTo(halSubReq.baseConfigs.sessionId)); in testDiscoveryRangingSettings()
421 equalTo(halSubReq.baseConfigs.sessionId)); in testDiscoveryRangingSettings()
686 equalTo(nidpr.channelRequestType)); in validateInitiateDataPath()
695 equalTo(nidpr.securityConfig.cipherType)); in validateInitiateDataPath()
[all …]
H A DWifiAwareMetricsTest.java132 equalTo(2)); in testEnableDisableUsageMetrics()
146 equalTo(2)); in testEnableDisableUsageMetrics()
161 equalTo(1)); in testEnableDisableUsageMetrics()
170 equalTo(0)); in testEnableDisableUsageMetrics()
193 equalTo(2)); in testEnableDisableAwareMetrics()
207 equalTo(2)); in testEnableDisableAwareMetrics()
222 equalTo(1)); in testEnableDisableAwareMetrics()
231 equalTo(0)); in testEnableDisableAwareMetrics()
293 equalTo(1)); in testAttachSessionMetrics()
408 equalTo(3)); in testDiscoverySessionMetrics()
[all …]
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
H A DDisplayRotationUtilTest.java30 import static org.hamcrest.Matchers.equalTo;
54 equalTo(BOUNDS_POSITION_LEFT)); in testGetBoundIndexFromRotation_rot0()
56 equalTo(BOUNDS_POSITION_TOP)); in testGetBoundIndexFromRotation_rot0()
58 equalTo(BOUNDS_POSITION_RIGHT)); in testGetBoundIndexFromRotation_rot0()
68 equalTo(BOUNDS_POSITION_LEFT)); in testGetBoundIndexFromRotation_rot90()
70 equalTo(BOUNDS_POSITION_TOP)); in testGetBoundIndexFromRotation_rot90()
82 equalTo(BOUNDS_POSITION_LEFT)); in testGetBoundIndexFromRotation_rot180()
84 equalTo(BOUNDS_POSITION_TOP)); in testGetBoundIndexFromRotation_rot180()
90 equalTo(BOUNDS_POSITION_TOP)); in testGetBoundIndexFromRotation_rot270()
105 equalTo(bounds)); in testGetRotatedBounds_top_rot0()
[all …]
H A 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 …]
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
H A DRttNativeTest.java20 import static org.hamcrest.core.IsEqual.equalTo;
148 equalTo(request.mRttPeers.size())); in testRangeRequest()
152 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequest()
158 equalTo(RangingRequest.getMaxRttBurstSize())); in testRangeRequest()
168 equalTo(RangingRequest.getMaxRttBurstSize())); in testRangeRequest()
178 equalTo(RangingRequest.getMaxRttBurstSize())); in testRangeRequest()
227 collector.checkThat("entry 0: bw", rttConfig.bw, equalTo(RttBw.BW_10MHZ)); in testRangeRequestWithLimitedCapabilities()
270 collector.checkThat("number of entries", halRequest.size(), equalTo(1)); in testRangeRequestWithLimitedCapabilitiesNoOverlap()
374 collector.checkThat("number of entries", rttR.size(), equalTo(1)); in testRangeResults()
378 equalTo(RttNative.FRAMEWORK_RTT_STATUS_SUCCESS)); in testRangeResults()
[all …]
H A DRttMetricsTest.java19 import static org.hamcrest.core.IsEqual.equalTo;
424 log.rttToAp.histogramIndividualStatus.length, equalTo(16)); in testRecordResultsStatuses()
472 log.rttToAware.histogramIndividualStatus.length, equalTo(0)); in testRecordResultsStatuses()
498 equalTo(8)); in testRecordOverallStatus()
532 collector.checkThat(logPrefix + ": start", bucket.start, equalTo(start)); in validateProtoHistBucket()
533 collector.checkThat(logPrefix + ": end", bucket.end, equalTo(end)); in validateProtoHistBucket()
557 equalTo(histogramOverallStatusLength)); in checkMainStats()
560 equalTo(histogramMeasurementDurationApOnlyLength)); in checkMainStats()
563 equalTo(histogramMeasurementDurationWithAwareLength)); in checkMainStats()
573 equalTo(numIndividualRequests)); in checkPeerStats()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DRoundedCornersTest.java26 import static org.hamcrest.Matchers.equalTo;
59 equalTo(new RoundedCorner(POSITION_TOP_LEFT, 10, 10, 10))); in testGetRoundedCorner()
61 equalTo(new RoundedCorner(POSITION_TOP_RIGHT, 10, 190, 10))); in testGetRoundedCorner()
65 equalTo(new RoundedCorner(POSITION_BOTTOM_LEFT, 20, 20, 380))); in testGetRoundedCorner()
108 equalTo(new RoundedCorner(POSITION_BOTTOM_LEFT))); in testSetRoundedCorner_null()
117 equalTo(new RoundedCorner(POSITION_TOP_LEFT, 10, 9, 8))); in testInsetRoundedCorners_partialOverlap()
119 equalTo(new RoundedCorner(POSITION_TOP_RIGHT, 10, 189, 8))); in testInsetRoundedCorners_partialOverlap()
143 equalTo(new RoundedCorner(POSITION_TOP_LEFT, 10, 10, 10))); in testRotateRoundedCorners_90()
145 equalTo(new RoundedCorner(POSITION_TOP_RIGHT, 20, 380, 20))); in testRotateRoundedCorners_90()
159 equalTo(new RoundedCorner(POSITION_TOP_LEFT, 20, 20, 20))); in testRotateRoundedCorners_270()
[all …]
H A DDisplayCutoutTest.java23 import static org.hamcrest.Matchers.equalTo;
83 equalTo(new Rect[]{bound, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_left()
91 equalTo(new Rect[]{ZERO_RECT, bound, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_top()
99 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, bound, ZERO_RECT})); in testExtractBoundsFromList_right()
107 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, bound})); in testExtractBoundsFromList_bottom()
136 assertThat(NO_CUTOUT.getWaterfallInsets(), equalTo(Insets.NONE)); in testHasCutout_noCutout()
193 assertThat(first, equalTo(second)); in testGetCutoutPath_caches()
205 assertThat(first, not(equalTo(second))); in testGetCutoutPath_wontCacheIfCutoutPathParerInfoChanged()
220 equalTo(cutout.getCutoutPathParserInfo().getCutoutSpec())); in testGetCutoutPathParserInfo()
315 assertThat(cutout.getBoundingRectsAll(), equalTo( in inset_bounds()
[all …]
H A 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()
/aosp12/frameworks/base/tests/utils/testutils/java/android/os/test/
H A DTestLooperTest.java19 import static org.hamcrest.core.IsEqual.equalTo;
89 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
91 collector.checkThat("2: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
93 collector.checkThat("3: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
95 collector.checkThat("4: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
147 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
149 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
176 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
178 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
180 collector.checkThat("3: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
[all …]
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
H A DIntHistogramTest.java22 import static org.hamcrest.core.IsEqual.equalTo;
89 mHistogram.numNonEmptyBuckets(), equalTo(TEST_BUCKET_BOUNDARIES.length + 1)); in testAddToHistogram()
94 mHistogram.toString(), equalTo(expectedStr)); in testAddToHistogram()
131 mHistogram.numNonEmptyBuckets(), equalTo(4)); in testAddToHistogramWithGap()
136 mHistogram.toString(), equalTo(expectedStr)); in testAddToHistogramWithGap()
181 equalTo(TEST_NEGATIVE_BUCKET_BOUNDARIES.length + 1)); in testAddNegativeToHistogram()
186 mHistogram.toString(), equalTo(expectedStr)); in testAddNegativeToHistogram()
211 mHistogram.numNonEmptyBuckets(), equalTo(0)); in testEmptyHistogram()
215 mHistogram.toString(), equalTo(expectedStr)); in testEmptyHistogram()
232 mHistogram.numNonEmptyBuckets(), equalTo(1)); in testLength1Histogram()
[all …]
H A DMetricsUtilsTest.java19 import static org.hamcrest.core.IsEqual.equalTo;
115 collector.checkThat("Number of buckets #1", phb1.length, equalTo(hist1.size())); in testHistBucketing()
142 collector.checkThat("Number of buckets #2", phb2.length, equalTo(hist2.size())); in testHistBucketing()
179 collector.checkThat("Number of buckets", phb.length, equalTo(hist.size())); in testLinearHistBucketing()
192 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify()
198 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify()
203 collector.checkThat(prefix + ": start", bucket.start, equalTo(start)); in validateProtoHistBucket()
204 collector.checkThat(prefix + ": end", bucket.end, equalTo(end)); in validateProtoHistBucket()
205 collector.checkThat(prefix + ": count", bucket.count, equalTo(count)); in validateProtoHistBucket()
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/
H A DTermsProviderTest.java21 import static org.hamcrest.CoreMatchers.equalTo;
54 assertThat(terms.getHeading(), equalTo(mStringGeneralPo)); in getGeneralDisclaimer_presentAsFirst_profileOwner()
55 assertThat(terms.getContent(), equalTo(mStringAdminDisclaimerPo)); in getGeneralDisclaimer_presentAsFirst_profileOwner()
63 assertThat(terms.getHeading(), equalTo(mStringGeneralDo)); in getGeneralDisclaimer_presentAsFirst_deviceOwner()
64 assertThat(terms.getContent(), equalTo(mStringAdminDisclaimerDo)); in getGeneralDisclaimer_presentAsFirst_deviceOwner()
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
H A DCarUiRecyclerViewTest.java55 import static org.hamcrest.Matchers.equalTo;
1152 assertThat(scrollbar.getPaddingTop(), is(equalTo(0))); in testSetPaddingToRecyclerViewContainerWithScrollbar()
1153 assertThat(scrollbar.getPaddingLeft(), is(equalTo(0))); in testSetPaddingToRecyclerViewContainerWithScrollbar()
1154 assertThat(scrollbar.getPaddingRight(), is(equalTo(0))); in testSetPaddingToRecyclerViewContainerWithScrollbar()
1168 assertThat(scrollbar.getPaddingTop(), is(equalTo(150))); in testSetPaddingToRecyclerViewContainerWithScrollbar()
1169 assertThat(scrollbar.getPaddingLeft(), is(equalTo(0))); in testSetPaddingToRecyclerViewContainerWithScrollbar()
1170 assertThat(scrollbar.getPaddingRight(), is(equalTo(0))); in testSetPaddingToRecyclerViewContainerWithScrollbar()
1233 assertThat(scrollbar.getPaddingTop(), is(equalTo(0))); in testSetPaddingRelativeToRecyclerViewContainerWithScrollbar()
1234 assertThat(scrollbar.getPaddingStart(), is(equalTo(0))); in testSetPaddingRelativeToRecyclerViewContainerWithScrollbar()
1235 assertThat(scrollbar.getPaddingEnd(), is(equalTo(0))); in testSetPaddingRelativeToRecyclerViewContainerWithScrollbar()
[all …]
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/
H A DCustomizationParamsTest.java22 import static org.hamcrest.Matchers.equalTo;
67 assertThat(instance.logoColor, equalTo(DEFAULT_LOGO_COLOR)); in defaultColorManagedProfile()
79 assertThat(instance.logoColor, equalTo(DEFAULT_LOGO_COLOR)); in defaultColorDeviceOwner()
91 assertThat(instance.supportUrl, equalTo(SAMPLE_URL)); in respectsUrl()
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
H A DCustomizationVerifier.java22 import static org.hamcrest.CoreMatchers.equalTo;
47 assertThat(actualLogo.getConstantState(), equalTo(expectedLogo.getConstantState())); in assertDefaultLogoCorrect()
48 assertThat(actualLogo.getColorFilter(), equalTo(expectedLogo.getColorFilter())); in assertDefaultLogoCorrect()
H A DHtmlToSpannedParserTest.java18 import static org.hamcrest.CoreMatchers.equalTo;
72 assertThat(spanned.toString(), equalTo(textRaw)); in assertRawTextCorrect()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DDisplayPolicyInsetsTests.java24 import static org.hamcrest.Matchers.equalTo;
144 mErrorCollector.checkThat("stableInsets", getStableInsetsLw(di), equalTo(new Rect( in verifyStableInsets()
149 mErrorCollector.checkThat("nonDecorInsets", getNonDecorInsetsLw(di), equalTo(new Rect( in verifyNonDecorInsets()
163 equalTo(di.logicalWidth - insets.left - insets.right)); in verifyConsistency()
165 equalTo(di.logicalHeight - insets.top - insets.bottom)); in verifyConsistency()
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/database/
H A DSimContactDaoTests.java26 import static org.hamcrest.Matchers.equalTo;
379 assertThat(existing.size(), equalTo(1)); in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
381 Matchers.<Set<SimContact>>equalTo(ImmutableSet.of(existing1, existing2))); in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
423 assertThat(existing.size(), equalTo(2)); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
424 assertThat(existing, Matchers.<Map<AccountWithDataSet, Set<SimContact>>>equalTo( in hasMultipleAccountsWhenMultipleMatchingContactsExist()
457 assertThat(existing.size(), equalTo(1)); in matchesByNameIfSimContactHasNoPhone()
458 assertThat(existing.get(account), Matchers.<Set<SimContact>>equalTo( in matchesByNameIfSimContactHasNoPhone()
491 assertThat(existing.size(), equalTo(1)); in largeNumberOfSimContacts()
492 assertThat(existing.get(account), Matchers.<Set<SimContact>>equalTo( in largeNumberOfSimContacts()
613 assertThat(contacts, equalTo( in createsContactsFromCursor()
[all …]
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/model/
H A DSimContactTests.java18 import static org.hamcrest.Matchers.equalTo;
52 assertThat(unparceled, equalTo(contact)); in assertParcelsCorrectly()
/aosp12/frameworks/av/media/tests/SampleVideoEncoder/app/src/androidTest/java/com/android/media/samplevideoencoder/tests/
H A DSampleVideoEncoderTest.java36 import static org.hamcrest.Matchers.equalTo;
86 assertThat(encodingStatus, is(equalTo(0))); in testMediaSurfaceEncoder()
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/
H A DDynamicShortcutsTests.java19 import static org.hamcrest.Matchers.equalTo;
161 assertThat(arg.size(), equalTo(3)); in test_updatePinned_updatesExistingShortcutsWithMatchingKeys()
188 assertThat(arg.size(), equalTo(3)); in test_refresh_setsDynamicShortcutsToStrequentContacts()
215 assertThat(arg.size(), equalTo(3)); in test_refresh_skipsContactsWithNullName()

123