Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 21 of 21) sorted by relevance

/appcompat/appcompat-lint/src/test/kotlin/androidx/appcompat/lint/integ/
DUseCompatDetectorTest.kt35 val expected = in checkCompatSubstitutionsOnActivity() constant
50 check(*input).expect(expected) in checkCompatSubstitutionsOnActivity()
57 val expected = in checkCompatSubstitutionsOnWidget() constant
66 check(*input).expect(expected) in checkCompatSubstitutionsOnWidget()
DUsingOnClickInXmlDetectorTest.kt34 val expected = in checkActivityWithClick() constant
43 check(*input).expect(expected) in checkActivityWithClick()
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/
DAppCompatToggleButtonTest.java63 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); in testFontResources() local
65 assertEquals(expected, toggleButton.getTypeface()); in testFontResources()
152 final int expected = ColorUtils.compositeColors(0x800000ff, 0xffff0000); in testCompoundDrawablesTintMode() local
162 expected, in testCompoundDrawablesTintMode()
210 final int expected = ColorUtils.compositeColors(tint, 0xffff0000); in testSetCompoundDrawablesTintMode() local
221 expected, in testSetCompoundDrawablesTintMode()
DAppCompatBaseTextViewEmojiTest.java96 String expected = "Test text"; in whenEnabled_setText_callsProcess() local
97 subject.setText(expected); in whenEnabled_setText_callsProcess()
107 String expected = "Test text"; in whenDisabled_noCalls() local
108 subject.setText(expected); in whenDisabled_noCalls()
119 String expected = "Some text"; in whenReEnabled_callsProcess() local
121 subject.setText(expected); in whenReEnabled_callsProcess()
DAppCompatRadioButtonTest.java68 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); in testFontResources() local
70 assertEquals(expected, radioButton.getTypeface()); in testFontResources()
185 final int expected = ColorUtils.compositeColors(0x800000ff, 0xffff0000); in testCompoundDrawablesTintMode() local
195 expected, in testCompoundDrawablesTintMode()
243 final int expected = ColorUtils.compositeColors(tint, 0xffff0000); in testSetCompoundDrawablesTintMode() local
254 expected, in testSetCompoundDrawablesTintMode()
DAppCompatCheckBoxTest.java68 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); in testFontResources() local
70 assertEquals(expected, checkBox.getTypeface()); in testFontResources()
184 final int expected = ColorUtils.compositeColors(0x800000ff, 0xffff0000); in testCompoundDrawablesTintMode() local
194 expected, in testCompoundDrawablesTintMode()
242 final int expected = ColorUtils.compositeColors(tint, 0xffff0000); in testSetCompoundDrawablesTintMode() local
253 expected, in testSetCompoundDrawablesTintMode()
DAppCompatCheckedTextViewTest.java75 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); in testFontResources() local
77 assertEquals(expected, textView.getTypeface()); in testFontResources()
253 final int expected = ColorUtils.compositeColors(0x800000ff, 0xffff0000); in testCompoundDrawablesTintMode() local
263 expected, in testCompoundDrawablesTintMode()
311 final int expected = ColorUtils.compositeColors(tint, 0xffff0000); in testSetCompoundDrawablesTintMode() local
322 expected, in testSetCompoundDrawablesTintMode()
DAppCompatTextViewTest.java277 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); in testFontResources_setInXmlFamilyName() local
279 assertEquals(expected, textView.getTypeface()); in testFontResources_setInXmlFamilyName()
285 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplexmlfont); in testFontResourcesXml_setInXmlFamilyName() local
287 assertEquals(expected, textView.getTypeface()); in testFontResourcesXml_setInXmlFamilyName()
309 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); in testFontResources_setInXmlStyle() local
311 assertEquals(expected, textView.getTypeface()); in testFontResources_setInXmlStyle()
317 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplexmlfont); in testFontResourcesXml_setInXmlStyle() local
319 assertEquals(expected, textView.getTypeface()); in testFontResourcesXml_setInXmlStyle()
325 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); in testFontResources_setInXmlTextAppearance() local
327 assertEquals(expected, textView.getTypeface()); in testFontResources_setInXmlTextAppearance()
[all …]
DAppCompatAutoCompleteTextViewTest.java180 final int expected = ColorUtils.compositeColors(0x800000ff, 0xffff0000); in testCompoundDrawablesTintMode() local
190 expected, in testCompoundDrawablesTintMode()
240 final int expected = ColorUtils.compositeColors(tint, 0xffff0000); in testSetCompoundDrawablesTintMode() local
251 expected, in testSetCompoundDrawablesTintMode()
DAppCompatMultiAutoCompleteTextViewTest.java181 final int expected = ColorUtils.compositeColors(0x800000ff, 0xffff0000); in testCompoundDrawablesTintMode() local
191 expected, in testCompoundDrawablesTintMode()
243 final int expected = ColorUtils.compositeColors(tint, 0xffff0000); in testSetCompoundDrawablesTintMode() local
254 expected, in testSetCompoundDrawablesTintMode()
DAppCompatAttributeTest.kt182 fun assumeDebugViewAttributes(expected: String?) { in assumeDebugViewAttributes()
186 "Assumed $DEBUG_VIEW_ATTRIBUTES would be $expected within $timeout seconds", in assumeDebugViewAttributes()
188 Settings.Global.getString(contentResolver, DEBUG_VIEW_ATTRIBUTES) == expected in assumeDebugViewAttributes()
DAppCompatEditTextTest.java347 final int expected = ColorUtils.compositeColors(0x800000ff, 0xffff0000); in testCompoundDrawablesTintMode() local
357 expected, in testCompoundDrawablesTintMode()
407 final int expected = ColorUtils.compositeColors(tint, 0xffff0000); in testSetCompoundDrawablesTintMode() local
418 expected, in testSetCompoundDrawablesTintMode()
DAppCompatButtonTest.java106 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); in testFontResources() local
108 assertEquals(expected, button.getTypeface()); in testFontResources()
DSwitchCompatTest.java75 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); in testFontResources() local
77 assertEquals(expected, switchButton.getTypeface()); in testFontResources()
DAppCompatBaseAutoSizeTest.java886 @Test(expected = NullPointerException.class)
1100 @Test(expected = IllegalArgumentException.class)
1108 @Test(expected = IllegalArgumentException.class)
1116 @Test(expected = IllegalArgumentException.class)
1124 @Test(expected = IllegalArgumentException.class)
DPopupMenuTest.java725 private static Matcher<View> selfOrParentWithContentDescription(final CharSequence expected) {
729 description.appendText("self of parent has content description: " + expected);
734 return TextUtils.equals(expected, getSelfOrParentContentDescription(view));
DAppCompatEditTextReceiveContentTest.java117 } catch (NullPointerException expected) { in testOnCreateInputConnection_nullEditorInfo()
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/
DDrawerLayoutDoubleTest.java71 @Test(expected=IllegalArgumentException.class)
80 @Test(expected=IllegalArgumentException.class)
89 @Test(expected=IllegalArgumentException.class)
97 @Test(expected=IllegalArgumentException.class)
105 @Test(expected=IllegalArgumentException.class)
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/view/
DContextThemeWrapperTest.java167 Resources.Theme expected = mContext.getResources().newTheme(); in verifyIdenticalTextAppearanceStyle() local
168 expected.setTo(mContext.getTheme()); in verifyIdenticalTextAppearanceStyle()
169 expected.applyStyle(R.style.TextAppearance, true); in verifyIdenticalTextAppearanceStyle()
170 TypedArray expectedTa = expected.obtainStyledAttributes(R.styleable.TextAppearance); in verifyIdenticalTextAppearanceStyle()
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/testutils/
DTestUtils.java457 public static void assertContentEquals(@Nullable CharSequence expected, in assertContentEquals() argument
460 expected != null ? expected.toString() : null, in assertContentEquals()
/appcompat/appcompat/api/
Dapi_lint.ignore105 …at.app.AlertDialog.Builder does not declare a `build()` method, but builder classes are expected to