Home
last modified time | relevance | path

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

/cts/hostsidetests/input/src/android/input/cts/hostside/
DInputAtomsTest.kt45 import org.hamcrest.core.IsEqual.equalTo
111 member("vendorId", { vendorId }, equalTo(0x18d1)), in testInputDeviceUsageAtom()
112 member("productId", { productId }, equalTo(0xabcd)), in testInputDeviceUsageAtom()
113 member("hasVersionId", { hasVersionId() }, equalTo(true)), in testInputDeviceUsageAtom()
114 member("deviceBus", { deviceBus }, equalTo(InputDeviceBus.USB)), in testInputDeviceUsageAtom()
120 member("usageSourcesCount", { usageSourcesCount }, equalTo(1)), in testInputDeviceUsageAtom()
124 hasItem(equalTo(InputDeviceUsageType.TOUCHSCREEN)) in testInputDeviceUsageAtom()
126 member("usageDurationsPerSourceCount", { usageDurationsPerSourceCount }, equalTo(1)), in testInputDeviceUsageAtom()
157 assertThat(atoms.size, equalTo(1)) in getTouchpadUsageAtom()
174 member("vendorId", { vendorId }, equalTo(0x18d1)), in testTouchpadUsageAtom_FingerAndPalmCounts()
[all …]
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DSplitAppTest.java106 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default")); in shouldLoadDefault()
128 assertThat(resources.getString(R.string.base_string), equalTo("Base String Polish")); in shouldLoadPolishLocale()
149 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default")); in shouldLoadFeatureADefault()
153 assertThat(resources.getString(resourceId), equalTo("Feature A String Default")); in shouldLoadFeatureADefault()
174 assertThat(resources.getString(R.string.base_string), equalTo("Base String Polish")); in shouldLoadFeatureAPolishLocale()
178 assertThat(resources.getString(resourceId), equalTo("Feature A String Polish")); in shouldLoadFeatureAPolishLocale()
195 assertThat(results.getString("base"), equalTo("Base String Default")); in shouldLoadFeatureAReceivers()
196 assertThat(results.getString("feature_a"), equalTo("Feature A String Default")); in shouldLoadFeatureAReceivers()
210 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default")); in shouldLoadFeatureBDefault()
214 assertThat(resources.getString(resourceId), equalTo("Feature A String Default")); in shouldLoadFeatureBDefault()
[all …]
/cts/hostsidetests/classloaders/splits/apps/src/com/android/cts/classloadersplitapp/
DSplitAppTest.java129 equalTo("dalvik.system.PathClassLoader")); in testAllReceivers()
133 equalTo("dalvik.system.DelegateLastClassLoader")); in testAllReceivers()
135 equalTo("dalvik.system.PathClassLoader")); in testAllReceivers()
139 equalTo("dalvik.system.PathClassLoader")); in testAllReceivers()
141 equalTo("dalvik.system.DelegateLastClassLoader")); in testAllReceivers()
149 equalTo("dalvik.system.PathClassLoader")); in testBaseServiceClassLoader()
156 equalTo("dalvik.system.DelegateLastClassLoader")); in testFeatureAServiceClassLoader()
158 equalTo("dalvik.system.PathClassLoader")); in testFeatureAServiceClassLoader()
165 equalTo("dalvik.system.PathClassLoader")); in testFeatureBServiceClassLoader()
167 equalTo("dalvik.system.DelegateLastClassLoader")); in testFeatureBServiceClassLoader()
/cts/tests/tests/content/HelloWorldApp/src_res_hardening_lib/com/example/helloworld/lib/
DTestUtils.java20 import static org.hamcrest.core.IsEqual.equalTo;
86 Matchers.not(equalTo(0)), equalTo(0)); in checkGetIdentifier()
94 equalTo(RES_IDENTIFIER), instanceOf(Resources.NotFoundException.class)); in checkGetResourceName()
102 equalTo("true"), instanceOf(Resources.NotFoundException.class)); in checkGetString()
110 equalTo(new String[]{"true"}), instanceOf(Resources.NotFoundException.class)); in checkGetStringArray()
145 equalTo(new String[]{"true", "true", "1"}), in checkApplyStyle()
146 equalTo(new String[]{null, null, null})); in checkApplyStyle()
167 equalTo(new String[]{"true", "true", "1"}), in checkXmlAttributes()
168 equalTo(new String[]{null, null, null})); in checkXmlAttributes()
181 equalTo(true), instanceOf(FileNotFoundException.class)); in checkOpenMissingFile()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DCompatScaleTests.java34 import static org.hamcrest.Matchers.equalTo;
150 subviewSize1.getParcelable(KEY_TEXT_SIZE, Rect.class), not(equalTo(new Rect()))); in runTestUpdateResourcesConfiguration()
152 subviewSize1.getParcelable(KEY_VIEW_SIZE, Rect.class), not(equalTo(new Rect()))); in runTestUpdateResourcesConfiguration()
171 equalTo(subviewSize2.getParcelable(KEY_TEXT_SIZE, Rect.class))); in runTestUpdateResourcesConfiguration()
174 equalTo(subviewSize2.getParcelable(KEY_VIEW_SIZE, Rect.class))); in runTestUpdateResourcesConfiguration()
224 equalTo(mAppSizesDownscaled.widthDp)); in test_scalesCorrectly_inCompatDownscalingMode()
228 equalTo(mAppSizesDownscaled.heightDp)); in test_scalesCorrectly_inCompatDownscalingMode()
232 equalTo(mAppSizesDownscaled.smallestWidthDp)); in test_scalesCorrectly_inCompatDownscalingMode()
284 equalTo(mAppSizesUpscaled.widthDp)); in test_scalesCorrectly_inCompatUpscalingMode()
288 equalTo(mAppSizesUpscaled.heightDp)); in test_scalesCorrectly_inCompatUpscalingMode()
[all …]
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DLauncherAppsEnumerationTests.java61 import static org.hamcrest.Matchers.equalTo;
105 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_INVALID)); in callback_added_notVisibleNotReceives()
118 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_PACKAGE_ADDED)); in callback_added_visibleReceives()
133 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_INVALID)); in callback_removed_notVisibleNotReceives()
146 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_PACKAGE_REMOVED)); in callback_removed_visibleReceives()
160 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_INVALID)); in callback_changed_notVisibleNotReceives()
172 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_PACKAGE_CHANGED)); in callback_changed_visibleReceives()
187 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_INVALID)); in callback_suspended_notVisibleNotReceives()
203 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_PACKAGES_SUSPENDED)); in callback_suspended_visibleReceives()
220 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_INVALID)); in callback_unsuspended_notVisibleNotReceives()
[all …]
DAppEnumerationTests.java157 import static org.hamcrest.Matchers.equalTo;
1462 : equalTo(expectedPackage)); in assertBroadcastRestartedVisible()
/cts/tests/tests/telephony/TestSmsRetrieverApp/src/android/telephony/cts/smsretriever/
DMainActivity.java19 import static org.hamcrest.Matchers.equalTo;
59 equalTo("testprefix1This is a test message" + sToken)); in onCreate()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DFailureHandlingTest.java28 import static org.hamcrest.CoreMatchers.equalTo;
97 equalTo("Expect one failure of type MISMATCH_FIELD but found 0 failures: []")); in testExpectFailure_DetectsNoFailures()
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsAnimationControllerTests.java34 import static org.hamcrest.Matchers.equalTo;
563 equalTo(initialInsets.getInsets(mType))); in setupAnimationListener()
574 not(equalTo(initialInsets))); in setupAnimationListener()
593 equalTo(mAnimator.getAnimatedValue())); in setupAnimationListener()
597 equalTo(mAnimator.getAnimatedFraction())); in setupAnimationListener()
606 equalTo( in setupAnimationListener()
679 equalTo(List.of())); in setVisibilityAndWait()
776 mErrorCollector.checkThat(types, not(equalTo(0))); in onReady()
911 is(equalTo(mRunningAnimations))); in onProgress()
938 equalTo(Set.of())); in assertNoPendingAnimations()
[all …]
DDisplayCutoutTests.java39 import static org.hamcrest.Matchers.equalTo;
320 equalTo(expected)); in testDisplayCutout_shortEdges()
339 a.getDisplay().getCutout(), equalTo(displayCutout)); in testDisplayCutout_always()
/cts/tests/tests/telecom/src/android/telecom/cts/
DBaseRemoteTelecomTest.java26 import static org.hamcrest.CoreMatchers.equalTo;
127 remoteConnectionService.outgoingConnections.size(), not(equalTo(0))); in verifyConnectionForOutgoingCallOnRemoteCS()
150 remoteConnectionService.incomingConnections.size(), not(equalTo(0))); in verifyConnectionForIncomingCallOnRemoteCS()
DBaseTelecomTestWithMockServices.java24 import static org.hamcrest.CoreMatchers.equalTo;
976 connectionService.outgoingConnections.size(), not(equalTo(0))); in verifyConnectionForOutgoingCall()
987 connectionService.outgoingConnections.size(), not(equalTo(0))); in verifyConnectionForOutgoingCall()
1026 connectionService.outgoingConnections.size(), equalTo(0)); in verifyNoConnectionForOutgoingCall()
1046 connectionService.incomingConnections.size(), not(equalTo(0))); in verifyConnectionForIncomingCall()
/cts/hostsidetests/tagging/src/com/android/cts/tagging/
DMemtagBootctlTest.java21 import static org.hamcrest.CoreMatchers.equalTo;
51 equalTo("1")); in setUp()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityDelegateTest.java20 import static org.hamcrest.core.IsEqual.equalTo;
78 assertThat(mParentView.getAccessibilityDelegate(), is(equalTo(delegate))); in testAccessibilityDelegateGetAndSet()
/cts/hostsidetests/rollback/src/com/android/cts/rollback/host/
DRollbackManagerHostTest.java22 import static org.hamcrest.CoreMatchers.equalTo;
176 getDevice().executeShellCommand("am get-current-user").trim(), equalTo(systemUser)); in assumeSystemUser()
/cts/tests/tests/graphics/src/android/graphics/cts/
DEGL15Test.java21 import static org.hamcrest.Matchers.equalTo;
233 anyOf(equalTo(SyncFence.SIGNAL_TIME_PENDING), lessThan(System.nanoTime()))); in testEGL15AndroidNativeFence()
286 anyOf(equalTo(SyncFence.SIGNAL_TIME_PENDING), lessThan(System.nanoTime()))); in testEGL15AndroidNativeFenceWithAwaitDuration()
/cts/tests/tests/hibernation/src/android/hibernation/cts/
DAppHibernationIntegrationTest.kt130 CoreMatchers.equalTo("")) in <lambda>()
408 assertThat(packageImportance, Matchers.equalTo(IMPORTANCE_GONE)) in <lambda>()
DAutoRevokeTest.kt74 import org.hamcrest.CoreMatchers.equalTo in <lambda>()
143 equalTo("")) in <lambda>()
609 equalTo("")) in <lambda>()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsManagerTest.java27 import static org.hamcrest.Matchers.equalTo;
500 assertThat(bundle.getInt("rowNum"), equalTo(-1)); in testGetSmsMessagesForFinancialAppPermissionRequestedNotGranted()
522 assertThat(bundle.getInt("rowNum"), equalTo(-1)); in testGetSmsMessagesForFinancialAppPermissionRequestedGranted()
679 assertThat(bundle.getString("exceptionMessage"), anyOf(equalTo(null), emptyString())); in assertCanAccessSms()
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/
DMultiUserTest.java21 import static org.hamcrest.Matchers.equalTo;
400 equalTo(bundle.getInt(MockTestActivityUtil.ACTION_KEY_REPLY_USER_HANDLE))); in assertConnectingToTheSameUserIme()
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/
DStagedInstallTest.java24 import static org.hamcrest.CoreMatchers.equalTo;
175 getDevice().executeShellCommand("am get-current-user").trim(), equalTo(systemUser)); in assumeSystemUser()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java833 checkThat(reason, value, CoreMatchers.equalTo(expected)); in expectKeyValueEquals()
857 checkThat(reason, value, CoreMatchers.equalTo(expected)); in expectKeyValueEquals()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java23 import static org.hamcrest.CoreMatchers.equalTo;
1398 is(equalTo( in testGetSearchableInfo()
1418 is(equalTo( in testGetSearchableInfo()
/cts/tests/video/src/android/video/cts/
DVideoEncoderDecoderTest.java1101 public boolean equalTo(YUVValue other) { in equalTo() method in VideoEncoderDecoderTest.YUVValue