Home
last modified time | relevance | path

Searched defs:expected (Results 1 – 25 of 383) sorted by relevance

12345678910>>...16

/cts/tests/tests/content/src/android/content/cts/
DContentValuesTest.java101 Long expected = 10L; in testGetAsLong() local
115 Byte expected = 'a'; in testGetAsByte() local
129 Integer expected = 20; in testGetAsInteger() local
159 Short expected = 20; in testGetAsShort() local
192 Float expected = 1.0F; in testGetAsFloat() local
227 Object expected = "android"; in testGet() local
269 Double expected = 10.2; in testGetAsDouble() local
283 String expected = "cts"; in testPutString() local
297 Byte expected = 'a'; in testPutByte() local
311 Short expected = 20; in testPutShort() local
[all …]
DIntentTest.java128 final CharSequence expected = "CharSequencetest"; in testGetCharSequenceExtra() local
156 final ArrayList<Intent> expected = new ArrayList<Intent>(); in testGetParcelableArrayListExtra() local
211 final ArrayList<Integer> expected = new ArrayList<Integer>(); in testGetIntegerArrayListExtra() local
225 final int[] expected = { 1, 2, 3 }; in testGetIntArrayExtra() local
243 final int expected = 0; in testGetIntExtra() local
252 final ArrayList<Integer> expected = new ArrayList<Integer>(); in testPutIntegerArrayListExtra() local
265 final Bundle expected = new Bundle(); in testGetBundleExtra() local
274 final char[] expected = { 'a', 'b', 'c' }; in testGetCharArrayExtra() local
284 final double[] expected = { 1d, 2d }; in testGetDoubleArrayExtra() local
290 final ArrayList<String> expected = new ArrayList<String>(); in testPutStringArrayListExtra() local
[all …]
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_SearchSnippetsTest.java102 final ContentValues expected = new ContentValues(); in testSearchSnippets_MatchEmailAddressCorrectSnippet() local
114 final ContentValues expected = new ContentValues(); in testEnterpriseSearchSnippets_MatchEmailAddressCorrectSnippet() local
125 final ContentValues expected = new ContentValues(); in testSearchSnippets_MatchPhoneNumberCorrectSnippet() local
137 final ContentValues expected = new ContentValues(); in testEnterpriseSearchSnippets_MatchPhoneNumberCorrectSnippet() local
148 final ContentValues expected = new ContentValues(); in testSearchSnippets_MatchPostalAddressCorrectSnippet() local
160 final ContentValues expected = new ContentValues(); in testEnterpriseSearchSnippets_MatchPostalAddressCorrectSnippet() local
171 final ContentValues expected = new ContentValues(); in testSearchSnippets_LongMatchTruncation() local
183 final ContentValues expected = new ContentValues(); in testEnterpriseSearchSnippets_LongMatchTruncation() local
194 final ContentValues expected = new ContentValues(); in testSearchSnippets_MultipleMatchesCorrectSnippet() local
211 final ContentValues expected = new ContentValues(); in testEnterpriseSearchSnippets_MultipleMatchesCorrectSnippet() local
[all …]
DContactsContract_PhoneLookup.java144 final ContentValues expected = new ContentValues(); in testPhoneLookup_found1() local
161 final ContentValues expected = new ContentValues(); in testPhoneLookup_found2() local
177 final ContentValues expected = new ContentValues(); in testPhoneLookup_sip_found() local
204 final ContentValues expected = new ContentValues(); in testPhoneLookupEnterprise_found1() local
221 final ContentValues expected = new ContentValues(); in testPhoneLookupEnterprise_found2() local
237 final ContentValues expected = new ContentValues(); in testPhoneLookupEnterprise_sip_found() local
247 ContentValues... expected) { in assertCursorStoredValuesWithContactsFilter()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageInfoTest.java86 private void checkPkgInfoSame(PackageInfo expected, PackageInfo actual) { in checkPkgInfoSame()
111 private void checkAppInfo(ApplicationInfo expected, ApplicationInfo actual) { in checkAppInfo()
128 private void checkInfoArray(PackageItemInfo[] expected, PackageItemInfo[] actual) { in checkInfoArray()
142 private void checkSignatureInfo(Signature[] expected, Signature[] actual) { in checkSignatureInfo()
156 private void checkConfigInfo(ConfigurationInfo[] expected, ConfigurationInfo[] actual) { in checkConfigInfo()
173 private void checkAttributionInfo(Attribution[] expected, Attribution[] actual) { in checkAttributionInfo()
/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java79 String expected = "name=''"; in testHighSurrogateStartInvalid() local
87 String expected = "name=''"; in testDoubleHighSurrogateStart() local
95 String expected = "name=''''"; in testHighSurrogatePairInvalid() local
103 String expected = "name='\uD83D\uDC00'"; in testValidSurrogate() local
111 String expected = "name=''"; in testReversedSurrogate() local
119 String expected = "name='\uD83D\uDC00\uD8FF\uDC01'"; in testValidDoubleSurrogate() local
127 String expected = "name='Joh\uD83D\uDC00nn\uD8FF\uDC01y'"; in testValidDoubleSurrogateWithStringMixed() local
135 String expected = "name='Johnn\uD8FF\uDC01y'"; in testInvalidDoubleSurrogateWithStringMixed() local
143 String expected = "name='\uD83D\uDC00'"; in testHighLowLowSurrogate() local
151 String expected = "name='Johnny\uD83D\uDC00'"; in testHighLowLowSurrogateWithString_AtEnd() local
[all …]
/cts/tests/tests/os/src/android/os/cts/
DMessageTest.java66 Message expected = Message.obtain(mHandler, mRunnable); in testAccessMessageProperties() local
95 Message expected = Message.obtain(message); in testObtain2() local
105 Message expected = Message.obtain(mHandler); in testObtain3() local
110 Message expected = Message.obtain(mHandler, mRunnable); in testObtain4() local
116 Message expected = Message.obtain(mHandler, WHAT); in testObtain5() local
122 Message expected = Message.obtain(mHandler, WHAT, OBJ); in testObtain6() local
129 Message expected = Message.obtain(mHandler, WHAT, ARG1, ARG2); in testObtain7() local
137 Message expected = Message.obtain(mHandler, WHAT, ARG1, ARG2, OBJ); in testObtain8() local
150 Bundle expected = new Bundle(); in testPeekData() local
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DStateComparisonException.java30 public StateComparisonException(Persistence.StateDump expected, in StateComparisonException()
63 public static void assertEndStatesEqual(Persistence.StateDump expected, in assertEndStatesEqual()
68 public static void assertInitialStateEqual(Persistence.StateDump expected, in assertInitialStateEqual()
73 private static void compareAndThrow(Persistence.StateDump expected, in compareAndThrow()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java141 public <T> boolean expectEquals(String msg, T expected, T actual) { in expectEquals()
163 public <T> boolean expectNotEquals(String msg, T expected, T actual) { in expectNotEquals()
183 public <T> boolean expectEquals(String msg, T[] expected, T[] actual) { in expectEquals()
208 public <T> boolean expectNotEquals(String msg, T[] expected, T[] actual) { in expectNotEquals()
230 public <T extends Comparable<? super T>> boolean expectGreater(String msg, T expected, in expectGreater()
244 public <T extends Comparable<? super T>> boolean expectGreaterOrEqual(String msg, T expected, in expectGreaterOrEqual()
258 public <T extends Comparable<? super T>> boolean expectLess(String msg, T expected, in expectLess()
272 public <T extends Comparable<? super T>> boolean expectLessOrEqual(String msg, T expected, in expectLessOrEqual()
287 public <T> boolean expectEquals(String msg, float expected, float actual, float tolerance) { in expectEquals()
310 public <T> boolean expectEquals(String msg, double expected, double actual, double tolerance) { in expectEquals()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DPrimitiveTest.java35 private void tryEnum(final int resid, final int expected) { in tryEnum()
52 private void tryFlag(final int resid, final int expected) { in tryFlag()
70 private void tryBoolean(final int resid, final boolean expected) { in tryBoolean()
88 private void tryString(final int resid, final String expected) { in tryString()
107 private static void checkString(final int resid, final String actual, final String expected) { in checkString()
DArrayTest.java35 final Object expected) { in checkEntry()
40 private void checkStringArray(final int resid, final String[] expected) { in checkStringArray()
48 private void checkTextArray(final int resid, final String[] expected) { in checkTextArray()
56 private void checkIntArray(final int resid, final int[] expected) { in checkIntArray()
/cts/tests/tests/transition/src/android/transition/cts/
DArcMotionTest.java37 Path expected = arcWithPoint(0, 100, 100, 0, 100, 100); in test90Quadrants() local
59 Path expected; in test345Triangles() local
117 Path expected = arcWithPoint(0, 100, 100, 0, ex, ey); in testMaximumAngle() local
130 Path expected = arcWithPoint(0, 0, 100, 50, ex, ey); in testMinimumHorizontalAngle() local
170 Path expected = arcWithPoint(0, 0, 50, 100, ex, ey); in testMinimumVerticalAngle() local
210 Path expected = arcWithPoint(0, 0, 100, 0, ex, ey); in horizontalAndVerticalMotion() local
DPatternPathMotionTest.java41 Path expected = new Path(); in testStraightPath() local
56 Path expected = new Path(); in testCurve() local
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DPermissionUtils.java76 String permission, int expected, String packageName, String activityName) in launchActivityAndCheckPermission()
84 int expected) throws Exception { in assertBroadcastReceived()
93 String permission, int expected, String packageName, String activityName) in launchActivityAndRequestPermission()
101 receiver, UiDevice device, String permission, int expected, in launchActivityAndRequestPermission()
141 public static void checkPermission(String permission, int expected, String packageName) { in checkPermission()
142 checkPermission(getContext(), permission, expected, packageName); in checkPermission() local
145 public static void checkPermission(Context context, String permission, int expected, in checkPermission()
155 int expected) { in assertPermission()
165 public static void checkPermissionAndAppOps(String permission, int expected, String packageName) in checkPermissionAndAppOps()
167 checkPermissionAndAppOps(getContext(), permission, expected, packageName); in checkPermissionAndAppOps() local
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DColorUtils.java30 public static void verifyColor(int expected, int observed) { in verifyColor()
34 public static void verifyColor(int expected, int observed, int tolerance) { in verifyColor()
46 public static void verifyColor(@NonNull String s, int expected, int observed, int tolerance) { in verifyColor()
71 private static String verifyChannel(String channelName, int expected, int observed, in verifyChannel()
90 public static void verifyColor(@NonNull String msg, Color expected, Color observed, in verifyColor()
106 private static String verifyChannel(String channelName, Color expected, Color observed, in verifyChannel()
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/
DPowerPolicyTestHelper.java53 public void checkCurrentState(int expected) { in checkCurrentState()
67 public void checkSilentModeStatus(boolean expected) { in checkSilentModeStatus()
72 public void checkSilentModeFull(SilentModeInfo expected) { in checkSilentModeFull()
101 public void checkCurrentPowerComponents(PowerPolicyDef expected) throws Exception { in checkCurrentPowerComponents()
108 public void checkCurrentPolicyGroupId(String expected) { in checkCurrentPolicyGroupId()
/cts/tests/tests/util/src/android/util/cts/
DRationalTest.java413 private static void verifyValueEquals(Rational object, float expected) { in verifyValueEquals()
418 private static void verifyValueEquals(Rational object, double expected) { in verifyValueEquals()
423 private static void verifyValueEquals(Rational object, long expected) { in verifyValueEquals()
428 private static void verifyValueEquals(Rational object, int expected) { in verifyValueEquals()
433 private static void verifyValueEquals(Rational object, short expected) { in verifyValueEquals()
438 private static void verifyFinite(Rational object, boolean expected) { in verifyFinite()
442 private static void verifyInfinite(Rational object, boolean expected) { in verifyInfinite()
446 private static void verifyNaN(Rational object, boolean expected) { in verifyNaN()
450 private static void verifyZero(Rational object, boolean expected) { in verifyZero()
454 private static <T> void verifyAction(String action, T object, boolean expected, in verifyAction()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySavingTestBase.java101 public void waitUntilAlarmForceAppStandby(boolean expected) throws Exception { in waitUntilAlarmForceAppStandby()
106 public void waitUntilJobForceAppStandby(boolean expected) throws Exception { in waitUntilJobForceAppStandby()
122 public void waitUntilForceBackgroundCheck(boolean expected) throws Exception { in waitUntilForceBackgroundCheck()
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DAppSearchMigratorTest.java77 GenericDocument expected = in testOnUpgrade() local
139 GenericDocument expected = in testOnDowngrade() local
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/
DPollTest.java79 NeneException expected = expectThrows(NeneException.class, () -> in await_toBeEqualTo_errorOnFailure_doesNotBecomeEqual_throwsException() local
93 NeneException expected = expectThrows(NeneException.class, () -> in await_toBeEqualTo_errorOnFailure_doesNotBecomeEqual_customError_throwsException() local
135 NeneException expected = expectThrows(NeneException.class, () -> in await_toNotBeEqualTo_errorOnFailure_doesNotBecomeNotEqual_throwsException() local
149 NeneException expected = expectThrows(NeneException.class, () -> in await_toNotBeEqualTo_errorOnFailure_doesNotBecomeNotEqual_customError_throwsException() local
191 NeneException expected = expectThrows(NeneException.class, () -> in await_toBeNull_errorOnFailure_doesNotBecomeNull_throwsException() local
205 NeneException expected = expectThrows(NeneException.class, () -> in await_toBeNull_errorOnFailure_doesNotBecomeNull_customError_throwsException() local
247 NeneException expected = expectThrows(NeneException.class, () -> in await_toNotBeNull_errorOnFailure_doesNotBecomeNotNull_throwsException() local
261 NeneException expected = expectThrows(NeneException.class, () -> in await_toNotBeNull_errorOnFailure_doesNotBecomeNotNull_customError_throwsException() local
303 NeneException expected = expectThrows(NeneException.class, () -> in await_toMeet_errorOnFailure_doesNotMeet_throwsException() local
317 NeneException expected = expectThrows(NeneException.class, () -> in await_toMeet_errorOnFailure_doesNotMeet_customError_throwsException() local
/cts/tests/signature/lib/common/src/android/signature/cts/
DExpectedFailuresFilter.java35 private final Set<String> expected; field in ExpectedFailuresFilter
45 public ExpectedFailuresFilter(ResultObserver delegate, Collection<String> expected) { in ExpectedFailuresFilter()
/cts/tools/vm-tests-tf/src/dot/junit/
DDxAbstractMain.java111 static public void assertEquals(int expected, int actual) { in assertEquals()
117 static public void assertEquals(String message, int expected, int actual) { in assertEquals()
123 static public void assertEquals(long expected, long actual) { in assertEquals()
129 static public void assertEquals(double expected, double actual, double delta) { in assertEquals()
134 static public void assertEquals(Object expected, Object actual) { in assertEquals()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DSecondaryProfileOwnerUserRestrictionsTest.java96 final HashSet<String> expected = new HashSet<>(); in testHasBothGlobalAndLocalRestrictions() local
124 final HashSet<String> expected = new HashSet<>(Arrays.asList(ALLOWED_BUT_LEAKY)); in testDefaultAndLeakyRestrictions() local
/cts/tests/tests/assist/src/android/assist/cts/classification/unittests/
DHelper.java32 FieldClassification actual, FieldClassification expected) { in assertFieldClassificationEquals()
40 FieldClassificationResponse actual, FieldClassificationResponse expected) { in assertFieldClassificationResponseEquals()
/cts/tests/tests/view/src/android/view/animation/cts/
DTransformationTest.java88 private void assertTransformationNotSame(Transformation expected, Transformation actual) { in assertTransformationNotSame()
94 private void assertTransformationEquals(Transformation expected, Transformation actual) { in assertTransformationEquals()
151 final Matrix expected = new Matrix(); in testGetMatrix() local

12345678910>>...16