Home
last modified time | relevance | path

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

/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/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/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/tests/telecom/src/android/telecom/cts/
DBaseRemoteTelecomTest.java22 import static org.hamcrest.CoreMatchers.equalTo;
120 remoteConnectionService.outgoingConnections.size(), not(equalTo(0))); in verifyConnectionForOutgoingCallOnRemoteCS()
143 remoteConnectionService.incomingConnections.size(), not(equalTo(0))); in verifyConnectionForIncomingCallOnRemoteCS()
DBaseTelecomTestWithMockServices.java23 import static org.hamcrest.CoreMatchers.equalTo;
819 connectionService.outgoingConnections.size(), not(equalTo(0))); in verifyConnectionForOutgoingCall()
830 connectionService.outgoingConnections.size(), not(equalTo(0))); in verifyConnectionForOutgoingCall()
875 connectionService.incomingConnections.size(), not(equalTo(0))); in verifyConnectionForIncomingCall()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInsetsAnimationControllerTests.java34 import static org.hamcrest.Matchers.equalTo;
477 equalTo(initialInsets.getInsets(mType))); in setupAnimationListener()
486 mActivity.mLastWindowInsets, not(equalTo(initialInsets))); in setupAnimationListener()
501 insets.getInsets(mType), equalTo(mAnimator.getAnimatedValue())); in setupAnimationListener()
503 fraction, equalTo(mAnimator.getAnimatedFraction())); in setupAnimationListener()
510 equalTo(interpolator.getInterpolation( in setupAnimationListener()
571 + " WindowInsetsAnimation.Callback was registered", mCallbacks, equalTo(List.of())); in setVisibilityAndWait()
661 mErrorCollector.checkThat(types, not(equalTo(0))); in onReady()
777 is(equalTo(mRunningAnimations))); in onProgress()
799 mRunningAnimations, equalTo(Set.of())); in assertNoPendingAnimations()
[all …]
DDisplayCutoutTests.java36 import static org.hamcrest.Matchers.equalTo;
212 equalTo(expected)); in testDisplayCutout_shortEdges()
229 a.getDisplay().getCutout(), equalTo(displayCutout)); in testDisplayCutout_always()
/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;
180 getDevice().executeShellCommand("am get-current-user").trim(), equalTo(systemUser)); in assumeSystemUser()
/cts/tests/tests/os/src/android/os/cts/
DAppHibernationIntegrationTest.kt91 CoreMatchers.equalTo("")) in setup()
223 assertThat(packageImportance, Matchers.equalTo(IMPORTANCE_GONE)) in killApp()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0305/src/android/security/cts/CVE_2021_0305/
DDeviceTest.java41 import static org.hamcrest.CoreMatchers.equalTo;
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAppEnumerationTests.java122 import static org.hamcrest.Matchers.equalTo;
793 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_INVALID)); in launcherAppsCallback_added_notVisibleNotReceives()
806 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_PACKAGE_ADDED)); in launcherAppsCallback_added_visibleReceives()
820 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_INVALID)); in launcherAppsCallback_removed_notVisibleNotReceives()
833 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_PACKAGE_REMOVED)); in launcherAppsCallback_removed_visibleReceives()
846 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_INVALID)); in launcherAppsCallback_changed_notVisibleNotReceives()
858 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_PACKAGE_CHANGED)); in launcherAppsCallback_changed_visibleReceives()
873 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_INVALID)); in launcherAppsCallback_suspended_notVisibleNotReceives()
891 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_PACKAGES_SUSPENDED)); in launcherAppsCallback_suspended_visibleReceives()
908 assertThat(response.getInt(EXTRA_FLAGS), equalTo(CALLBACK_EVENT_INVALID)); in launcherAppsCallback_unsuspended_notVisibleNotReceives()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0481/src/android/security/cts/CVE_2021_0481/
DDeviceTest.java42 import static org.hamcrest.CoreMatchers.equalTo;
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsManagerTest.java27 import static org.hamcrest.Matchers.equalTo;
445 assertThat(bundle.getInt("rowNum"), equalTo(-1)); in testGetSmsMessagesForFinancialAppPermissionRequestedNotGranted()
467 assertThat(bundle.getInt("rowNum"), equalTo(-1)); in testGetSmsMessagesForFinancialAppPermissionRequestedGranted()
624 assertThat(bundle.getString("exceptionMessage"), anyOf(equalTo(null), emptyString())); in assertCanAccessSms()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java33 import static org.hamcrest.core.IsEqual.equalTo;
727 equalTo("android.accessibilityservice.cts:id/edittext")); in testTraversalBeforeReportedToAccessibility()
749 equalTo("android.accessibilityservice.cts:id/buttonWithTooltip")); in testTraversalAfterReportedToAccessibility()
779 assertThat(labelForNode.getLabeledBy(), equalTo(editNode)); in testLabelForReportedToAccessibility()
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/
DStagedInstallTest.java24 import static org.hamcrest.CoreMatchers.equalTo;
178 getDevice().executeShellCommand("am get-current-user").trim(), equalTo(systemUser)); in assumeSystemUser()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java766 checkThat(reason, value, CoreMatchers.equalTo(expected)); in expectKeyValueEquals()
790 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.java1365 public boolean equalTo(YUVValue other) { in equalTo() method in VideoEncoderDecoderTest.YUVValue