Home
last modified time | relevance | path

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

12345678910>>...14

/packages/apps/Dialer/tests/src/com/android/dialer/database/
DSmartDialPrefixTest.java52 assertTrue(SmartDialPrefix.isCountryNanp("US")); in testIsCountryNanp_CaseInsensitive()
53 assertTrue(SmartDialPrefix.isCountryNanp("CA")); in testIsCountryNanp_CaseInsensitive()
54 assertTrue(SmartDialPrefix.isCountryNanp("AS")); in testIsCountryNanp_CaseInsensitive()
55 assertTrue(SmartDialPrefix.isCountryNanp("AI")); in testIsCountryNanp_CaseInsensitive()
56 assertTrue(SmartDialPrefix.isCountryNanp("AG")); in testIsCountryNanp_CaseInsensitive()
57 assertTrue(SmartDialPrefix.isCountryNanp("BS")); in testIsCountryNanp_CaseInsensitive()
58 assertTrue(SmartDialPrefix.isCountryNanp("BB")); in testIsCountryNanp_CaseInsensitive()
59 assertTrue(SmartDialPrefix.isCountryNanp("bm")); in testIsCountryNanp_CaseInsensitive()
60 assertTrue(SmartDialPrefix.isCountryNanp("vg")); in testIsCountryNanp_CaseInsensitive()
61 assertTrue(SmartDialPrefix.isCountryNanp("ky")); in testIsCountryNanp_CaseInsensitive()
[all …]
DVoicemailArchiveProviderTest.java69 assertTrue(doesRowExist()); in testInsert()
71 assertTrue(id > 0); in testInsert()
76 assertTrue(doesRowExist()); in testQuery_createFile()
79 assertTrue(doesFileExist()); in testQuery_createFile()
84 assertTrue(doesRowExist()); in testQuery_createFileMimeTypeIsAMR()
87 assertTrue(doesFileExist()); in testQuery_createFileMimeTypeIsAMR()
93 assertTrue(doesRowExist()); in testQuery_createFileMimeTypeIsMP3()
96 assertTrue(doesFileExist()); in testQuery_createFileMimeTypeIsMP3()
102 assertTrue(doesRowExist()); in testQuery_createFileMimeTypeNotExists()
105 assertTrue(doesFileExist()); in testQuery_createFileMimeTypeNotExists()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuationsTests.java106 assertTrue("Tab", sp.isWordSeparator('\t')); in testingStandardWordSeparator()
107 assertTrue("Newline", sp.isWordSeparator('\n')); in testingStandardWordSeparator()
108 assertTrue("Space", sp.isWordSeparator(' ')); in testingStandardWordSeparator()
109 assertTrue("Exclamation", sp.isWordSeparator('!')); in testingStandardWordSeparator()
110 assertTrue("Quotation", sp.isWordSeparator('"')); in testingStandardWordSeparator()
114 assertTrue("Ampersand", sp.isWordSeparator('&')); in testingStandardWordSeparator()
116 assertTrue("L Paren", sp.isWordSeparator('(')); in testingStandardWordSeparator()
117 assertTrue("R Paren", sp.isWordSeparator(')')); in testingStandardWordSeparator()
118 assertTrue("Asterisk", sp.isWordSeparator('*')); in testingStandardWordSeparator()
119 assertTrue("Plus", sp.isWordSeparator('+')); in testingStandardWordSeparator()
[all …]
/packages/apps/Email/tests/src/com/android/email/service/
DAttachmentServiceTests.java44 assertTrue(dr.equals(dr)); in testDownloadRequestIsEquals()
51 assertTrue(dq.isEmpty()); in testDownloadQueueEmptyQueue()
59 assertTrue(result); in testDownloadQueueAddRequest()
72 assertTrue(exceptionThrown); in testDownloadQueueAddRequestNull()
74 assertTrue(dq.isEmpty()); in testDownloadQueueAddRequestNull()
82 assertTrue(result); in testDownloadQueueAddRequestExisting()
88 assertTrue(result); in testDownloadQueueAddRequestExisting()
98 assertTrue(result); in testDownloadQueueRemoveRequest()
104 assertTrue(result); in testDownloadQueueRemoveRequest()
108 assertTrue(dq.isEmpty()); in testDownloadQueueRemoveRequest()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DLocaleSetTest.java44 assertTrue(LocaleSet.isLanguageChinese(Locale.CHINESE)); in testIsLanguageChinese()
45 assertTrue(LocaleSet.isLanguageChinese(Locale.TRADITIONAL_CHINESE)); in testIsLanguageChinese()
46 assertTrue(LocaleSet.isLanguageChinese(Locale.SIMPLIFIED_CHINESE)); in testIsLanguageChinese()
65 assertTrue(LocaleSet.isLocaleSimplifiedChinese(Locale.SIMPLIFIED_CHINESE)); in testIsLocaleSimplifiedChinese()
66 assertTrue(LocaleSet.isLocaleSimplifiedChinese(Locale.forLanguageTag("zh-SG"))); in testIsLocaleSimplifiedChinese()
78 assertTrue(LocaleSet.isLocaleTraditionalChinese(Locale.TRADITIONAL_CHINESE)); in testIsLocaleTraditionalChinese()
79 assertTrue(LocaleSet.isLocaleTraditionalChinese(Locale.forLanguageTag("zh-TW"))); in testIsLocaleTraditionalChinese()
91 assertTrue(LocaleSet.isLanguageJapanese(Locale.JAPANESE)); in testIsLanguageJapanese()
92 assertTrue(LocaleSet.isLanguageJapanese(Locale.JAPAN)); in testIsLanguageJapanese()
100 assertTrue(LocaleSet.isLanguageKorean(Locale.KOREAN)); in testIsLanguageKorean()
[all …]
DTransactionContextTest.java47 assertTrue(newDirty.isEmpty()); in testClearExceptSearchIndexUpdates_returnsNewSets()
48 assertTrue(newChanged.isEmpty()); in testClearExceptSearchIndexUpdates_returnsNewSets()
49 assertTrue(newInserted.isEmpty()); in testClearExceptSearchIndexUpdates_returnsNewSets()
50 assertTrue(newUpdated.isEmpty()); in testClearExceptSearchIndexUpdates_returnsNewSets()
51 assertTrue(newSync.isEmpty()); in testClearExceptSearchIndexUpdates_returnsNewSets()
74 assertTrue(context.getChangedRawContactIds().isEmpty()); in testRawContactInserted_affectsChangedContacts()
78 assertTrue(context.getChangedRawContactIds().contains(1L)); in testRawContactInserted_affectsChangedContacts()
82 assertTrue(context.getChangedRawContactIds().contains(5L)); in testRawContactInserted_affectsChangedContacts()
87 assertTrue(context.getChangedRawContactIds().isEmpty()); in testMarkRawContactChangedOrDeletedOrInserted_affectsChangedContacts()
91 assertTrue(context.getChangedRawContactIds().contains(1L)); in testMarkRawContactChangedOrDeletedOrInserted_affectsChangedContacts()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallExtrasTest.java64 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey( in testCsPutExtras()
66 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey( in testCsPutExtras()
85 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras() in testCsPutBooleanExtra()
87 assertTrue( in testCsPutBooleanExtra()
106 assertTrue( in testCsPutIntExtra()
128 assertTrue( in testCsPutStringExtra()
151 assertTrue( in testCsRemoveExtra()
161 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras() in testCsRemoveExtra()
184 assertTrue( in testCsUpdateExisting()
186 assertTrue( in testCsUpdateExisting()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DWordComposerTests.java48 assertTrue(wc.isCursorFrontOrMiddleOfComposingWord()); in testMoveCursor()
50 assertTrue(wc.moveCursorByAndReturnIfInsideComposingWord(2)); in testMoveCursor()
51 assertTrue(wc.isCursorFrontOrMiddleOfComposingWord()); in testMoveCursor()
53 assertTrue(wc.moveCursorByAndReturnIfInsideComposingWord(1)); in testMoveCursor()
54 assertTrue(wc.isCursorFrontOrMiddleOfComposingWord()); in testMoveCursor()
57 assertTrue(wc.moveCursorByAndReturnIfInsideComposingWord(1)); in testMoveCursor()
78 assertTrue(wc.isCursorFrontOrMiddleOfComposingWord()); in testMoveCursor()
79 assertTrue(wc.moveCursorByAndReturnIfInsideComposingWord(6)); in testMoveCursor()
80 assertTrue(wc.isCursorFrontOrMiddleOfComposingWord()); in testMoveCursor()
81 assertTrue(wc.moveCursorByAndReturnIfInsideComposingWord(1)); in testMoveCursor()
[all …]
DPersonalDictionaryLookupTest.java88 assertTrue(cursor.moveToFirst()); in addWord()
131 assertTrue(set.contains(word)); in verifyWordExists()
156 assertTrue(lookup.getShortcutsForLocale(Locale.UK).isEmpty()); in testShortcutMatchesInputCountry()
157 assertTrue(lookup.getShortcutsForLocale(Locale.ENGLISH).isEmpty()); in testShortcutMatchesInputCountry()
158 assertTrue(lookup.getShortcutsForLocale(Locale.FRENCH).isEmpty()); in testShortcutMatchesInputCountry()
159 assertTrue(lookup.getShortcutsForLocale(ANY_LOCALE).isEmpty()); in testShortcutMatchesInputCountry()
177 assertTrue(lookup.getShortcutsForLocale(Locale.FRENCH).isEmpty()); in testShortcutMatchesInputLanguage()
178 assertTrue(lookup.getShortcutsForLocale(ANY_LOCALE).isEmpty()); in testShortcutMatchesInputLanguage()
218 assertTrue(lookup.isValidWord("foo", Locale.US)); in testExactLocaleMatch()
219 assertTrue(lookup.isValidWord("Foo", Locale.US)); in testExactLocaleMatch()
[all …]
DShiftModeTests.java41 assertTrue("Initial auto caps state", isCapsModeAutoShifted()); in testTypicalSentence()
53 assertTrue("Caps after period space", isCapsModeAutoShifted()); in testTypicalSentence()
57 assertTrue("Initial auto caps state", isCapsModeAutoShifted()); in testBackspace()
61 assertTrue("Auto caps state at start after delete", isCapsModeAutoShifted()); in testBackspace()
78 assertTrue("Caps after a while after repeating Backspace a lot", isCapsModeAutoShifted()); in testRepeatingBackspace()
86 assertTrue("(English) Auto caps after digits-period-whitespace", isCapsModeAutoShifted()); in testAutoCapsAfterDigitsPeriod()
92 assertTrue("(French) Auto caps after digits-period-whitespace", isCapsModeAutoShifted()); in testAutoCapsAfterDigitsPeriod()
104 assertTrue("(Spanish) Auto caps at start", isCapsModeAutoShifted()); in testAutoCapsAfterInvertedMarks()
106 assertTrue("(Spanish) Auto caps after inverted what", isCapsModeAutoShifted()); in testAutoCapsAfterInvertedMarks()
109 assertTrue("(Spanish) Auto caps after inverted bang", isCapsModeAutoShifted()); in testAutoCapsAfterInvertedMarks()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DContentCacheTests.java68 assertTrue(map.contains("1")); in testCounterMap()
73 assertTrue(map.contains("2")); in testCounterMap()
88 assertTrue(map.contains("1")); in testCounterMap()
96 assertTrue(token1a.isValid()); in testTokenList()
100 assertTrue(token1b.isValid()); in testTokenList()
102 assertTrue(token1a.equals(token1b)); in testTokenList()
115 assertTrue(token2.isValid()); in testTokenList()
125 assertTrue(list.remove(token3a)); in testTokenList()
126 assertTrue(list.remove(token3b)); in testTokenList()
128 assertTrue(token3a.isValid()); in testTokenList()
[all …]
/packages/apps/Email/tests/src/com/android/email/activity/setup/
DAccountSettingsUtilsTests.java114 assertTrue(AccountSettingsUtils.matchProvider("foo.com", "foo.com")); in testMatchProvider()
118 assertTrue(AccountSettingsUtils.matchProvider("foo.com", "fo?.com")); in testMatchProvider()
119 assertTrue(AccountSettingsUtils.matchProvider("foo.com", "f??.com")); in testMatchProvider()
120 assertTrue(AccountSettingsUtils.matchProvider("fzz.com", "f??.com")); in testMatchProvider()
121 assertTrue(AccountSettingsUtils.matchProvider("foo.com", "???.???")); in testMatchProvider()
124 assertTrue(AccountSettingsUtils.matchProvider("foo.com", "*.com")); in testMatchProvider()
125 assertTrue(AccountSettingsUtils.matchProvider("foo.com", "foo.*")); in testMatchProvider()
126 assertTrue(AccountSettingsUtils.matchProvider("foo.com", "*.*")); in testMatchProvider()
128 assertTrue(AccountSettingsUtils.matchProvider("foo.com", "*.???")); in testMatchProvider()
132 assertTrue(AccountSettingsUtils.matchProvider("foo.bar.com", "foo.bar.com")); in testMatchProvider()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/dialpad/
DDialpadFragmentTest.java29 assertTrue(DialpadFragment.canAddDigit("123", 3, 3, ';')); in testCanAddDigit_Valid()
30 assertTrue(DialpadFragment.canAddDigit("123", 1, 1, ',')); in testCanAddDigit_Valid()
31 assertTrue(DialpadFragment.canAddDigit("123", 1, 3, ';')); in testCanAddDigit_Valid()
32 assertTrue(DialpadFragment.canAddDigit("123", 1, 2, ',')); in testCanAddDigit_Valid()
70 assertTrue(DialpadFragment.canAddDigit("55,55", 2, 2, ',')); // PAUSE in testCanAddDigit_AdjacentCharacters_Before()
71 assertTrue(DialpadFragment.canAddDigit("55,55", 1, 2, ',')); in testCanAddDigit_AdjacentCharacters_Before()
72 assertTrue(DialpadFragment.canAddDigit("55;55", 2, 2, ',')); // WAIT & PAUSE in testCanAddDigit_AdjacentCharacters_Before()
73 assertTrue(DialpadFragment.canAddDigit("55,55", 1, 2, ';')); in testCanAddDigit_AdjacentCharacters_Before()
80 assertTrue(DialpadFragment.canAddDigit("55,55", 3, 3, ',')); // PAUSE in testCanAddDigit_AdjacentCharacters_After()
81 assertTrue(DialpadFragment.canAddDigit("55,55", 3, 4, ',')); in testCanAddDigit_AdjacentCharacters_After()
[all …]
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DBluetoothMapUtilsTest.java48 assertTrue(BluetoothMapUtils.stripEncoding(encText1).equals(decText1)); in testEncoder()
49 assertTrue(BluetoothMapUtils.stripEncoding(encText2).equals(decText2)); in testEncoder()
50 assertTrue(BluetoothMapUtils.stripEncoding(encText3).equals(decText3)); in testEncoder()
51 assertTrue(BluetoothMapUtils.stripEncoding(encText4).equals(decText4)); in testEncoder()
52 assertTrue(BluetoothMapUtils.stripEncoding(encText5).equals(decText5)); in testEncoder()
53 assertTrue(BluetoothMapUtils.stripEncoding(encText6).equals(decText6)); in testEncoder()
56 assertTrue(BluetoothMapUtils.stripEncoding(encText7).equals(decText7)); in testEncoder()
57 assertTrue(BluetoothMapUtils.stripEncoding(encText8).equals(decText8)); in testEncoder()
66 assertTrue("expected: " + expected + " value = " + value, in testXBtUid()
77 assertTrue("expected: " + expected + " value = " + value, in testXBtUid()
[all …]
DBluetoothMapbMessageTest.java107 assertTrue(str1.equals(encoded)); in testSmsEncodeText()
110 assertTrue("Encoding failed.", true); in testSmsEncodeText()
133 assertTrue("Failed to extract bytes from string using US-ASCII", true); in testSmsEncodeNativeDeliverPdu()
215 assertTrue(expected.equalsIgnoreCase(encoded)); in testSmsEncodeNativeDeliverPdu()
218 assertTrue("Encoding failed.", true); in testSmsEncodeNativeDeliverPdu()
287assertTrue("The encoded bMessage do not match the expected.", expected.equalsIgnoreCase(encoded)); in testSmsEncodeDecodeNativeSubmitPdu()
288assertTrue("The decoded text is \"" + decoded + "\" - expected \"Let's go fishing!\"", decoded.equ… in testSmsEncodeDecodeNativeSubmitPdu()
291 assertTrue("Encoding failed.", true); in testSmsEncodeDecodeNativeSubmitPdu()
345assertTrue("Decoded string (" + decoded + ") did not match expected (" + expected + ")", expected.… in testSmsEncodeDecodeNativeSubmitPduWithSc()
348 assertTrue("Encoding failed.", false); in testSmsEncodeDecodeNativeSubmitPduWithSc()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DBindingTest.java49 assertTrue(binding.isBound()); in testBindingUpdatesDataAndBindee()
51 assertTrue(data.isBound(binding.getBindingId())); in testBindingUpdatesDataAndBindee()
62 assertTrue(yours.isBound(binding.getBindingId())); in testRebindingFails()
69 assertTrue(binding.isBound()); in testRebindingFails()
71 assertTrue(yours.isBound(binding.getBindingId())); in testRebindingFails()
78 assertTrue(data.isBound(binding.getBindingId())); in testUnbindingClearsDataAndBindee()
79 assertTrue(binding.isBound()); in testUnbindingClearsDataAndBindee()
88 assertTrue(data.mListenersUnregistered); in testUnbindingClearsDataAndBindee()
96 assertTrue(yours.isBound(binding.getBindingId())); in testUnbindingAndRebinding()
104 assertTrue(data.isBound(binding.getBindingId())); in testUnbindingAndRebinding()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DStringUtilsTests.java197 assertTrue("in 1 element", StringUtils.containsInArray("key", new String[] { in testContainsInArray()
200 assertTrue("in 2 elements", StringUtils.containsInArray("key", new String[] { in testContainsInArray()
213 assertTrue("in 1 element", StringUtils.containsInCommaSplittableText("key", "key")); in testContainsInCommaSplittableText()
214 assertTrue("in 2 elements", StringUtils.containsInCommaSplittableText("key", "key1,key")); in testContainsInCommaSplittableText()
306 assertTrue(StringUtils.isIdenticalAfterDowncase("capitalize")); in testIsIdenticalAfterUpcaseIsIdenticalAfterDowncase()
312 assertTrue(StringUtils.isIdenticalAfterDowncase("__c a piu$@tali56ze")); in testIsIdenticalAfterUpcaseIsIdenticalAfterDowncase()
319 assertTrue(StringUtils.isIdenticalAfterUpcase("CAPITALIZE")); in testIsIdenticalAfterUpcaseIsIdenticalAfterDowncase()
321 assertTrue(StringUtils.isIdenticalAfterUpcase(" PI26LIE")); in testIsIdenticalAfterUpcaseIsIdenticalAfterDowncase()
323 assertTrue(StringUtils.isIdenticalAfterUpcase("")); in testIsIdenticalAfterUpcaseIsIdenticalAfterDowncase()
324 assertTrue(StringUtils.isIdenticalAfterDowncase("")); in testIsIdenticalAfterUpcaseIsIdenticalAfterDowncase()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlParser.java206 X.assertTrue(pos > i || state != State.IN_TEXT); // Must make progress. in parse()
211 X.assertTrue(pos > i); // Must make progress in parse()
217 X.assertTrue(pos > i); // Must make progress in parse()
222 X.assertTrue(pos > i || state != State.IN_CDATA); // Must make progress in parse()
473 X.assertTrue(html.charAt(start) != '>'); in scanName()
549 X.assertTrue(startValuePos > -1); in scanValue()
550 X.assertTrue(endValuePos > -1); in scanValue()
551 X.assertTrue(startValuePos <= endValuePos); in scanValue()
552 X.assertTrue(pos <= end); in scanValue()
644 X.assertTrue(html.charAt(start) == '<'); in scanTag()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/
DRankedComparatorTest.java49 assertTrue("Same object should be equal to itself.", in testSimple()
51 assertTrue("Different objects with same rank should be equal.", in testSimple()
55 assertTrue(comparator.compare(rank1_1, rank2) < 0); in testSimple()
56 assertTrue(comparator.compare(rank2, rank1_1) > 0); in testSimple()
64 assertTrue("Known rank should be smaller than unknown rank.", in testUnknownRank()
66 assertTrue("Unknown rank should be larger than known rank.", in testUnknownRank()
68 assertTrue("Two different unknown ranks should be equal.", in testUnknownRank()
77 assertTrue("Known rank should be smaller than null rank.", in testNullRank()
79 assertTrue("null rank should be larger than known rank.", in testNullRank()
81 assertTrue("Unknown and null rank should be equal.", in testNullRank()
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DImageCaptureIntentTest.java63 assertTrue(getActivity().isFinishing()); in testNoExtraOutput()
68 assertTrue(bitmap.getWidth() > 0); in testNoExtraOutput()
69 assertTrue(bitmap.getHeight() > 0); in testNoExtraOutput()
87 assertTrue(getActivity().isFinishing()); in testExtraOutput()
92 assertTrue(fileLength > 0); in testExtraOutput()
102 assertTrue(b.getWidth() > 0); in testExtraOutput()
103 assertTrue(b.getHeight() > 0); in testExtraOutput()
116 assertTrue(getActivity().isFinishing()); in testRetake()
121 assertTrue(bitmap.getWidth() > 0); in testRetake()
122 assertTrue(bitmap.getHeight() > 0); in testRetake()
[all …]
/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/
DCarAppContextManagerTest.java90 assertTrue(mManager.isOwningContext(expectedContexts)); in testContextChange()
96 assertTrue(change2.waitForContextChangeAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testContextChange()
104 assertTrue(mManager.isOwningContext(CarAppContextManager.APP_CONTEXT_NAVIGATION)); in testContextChange()
105 assertTrue(mManager.isOwningContext(CarAppContextManager.APP_CONTEXT_VOICE_COMMAND)); in testContextChange()
106 assertTrue(mManager.isOwningContext(CarAppContextManager.APP_CONTEXT_NAVIGATION | in testContextChange()
112 assertTrue(change2.waitForContextChangeAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testContextChange()
126 assertTrue(mManager.isOwningContext(CarAppContextManager.APP_CONTEXT_VOICE_COMMAND)); in testContextChange()
127 assertTrue(manager2.isOwningContext(CarAppContextManager.APP_CONTEXT_NAVIGATION)); in testContextChange()
131 assertTrue(owner.waitForOwnershipLossAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testContextChange()
137 assertTrue(mManager.isOwningContext(CarAppContextManager.APP_CONTEXT_VOICE_COMMAND)); in testContextChange()
[all …]
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DCarAppContextManagerTest.java90 assertTrue(mManager.isOwningContext(expectedContexts)); in testContextChange()
96 assertTrue(change2.waitForContextChangeAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testContextChange()
104 assertTrue(mManager.isOwningContext(CarAppContextManager.APP_CONTEXT_NAVIGATION)); in testContextChange()
105 assertTrue(mManager.isOwningContext(CarAppContextManager.APP_CONTEXT_VOICE_COMMAND)); in testContextChange()
106 assertTrue(mManager.isOwningContext(CarAppContextManager.APP_CONTEXT_NAVIGATION | in testContextChange()
112 assertTrue(change2.waitForContextChangeAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testContextChange()
126 assertTrue(mManager.isOwningContext(CarAppContextManager.APP_CONTEXT_VOICE_COMMAND)); in testContextChange()
127 assertTrue(manager2.isOwningContext(CarAppContextManager.APP_CONTEXT_NAVIGATION)); in testContextChange()
131 assertTrue(owner.waitForOwnershipLossAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testContextChange()
137 assertTrue(mManager.isOwningContext(CarAppContextManager.APP_CONTEXT_VOICE_COMMAND)); in testContextChange()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionTest.java65 assertTrue(mTransitions.size() > index); in verifyTransition()
76 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionStartTransitionsCorrectly()
77 assertTrue(ActionMonitor.sActionMonitors.containsValue(mMonitor)); in testActionStartTransitionsCorrectly()
96 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionStartAssertsFromIncorrectState()
97 assertTrue(ActionMonitor.sActionMonitors.containsValue(mMonitor)); in testActionStartAssertsFromIncorrectState()
116 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionTransitionsEndToEndWithRequests()
117 assertTrue(ActionMonitor.sActionMonitors.containsValue(mMonitor)); in testActionTransitionsEndToEndWithRequests()
160 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionTransitionsEndToEndWithRequests()
161 assertTrue(ActionMonitor.sActionMonitors.containsValue(mMonitor)); in testActionTransitionsEndToEndWithRequests()
181 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionTransitionsEndToEndFailsRequests()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
DComposeActivityTest.java199 assertTrue(toAsString.contains(account.getEmailAddress())); in testRecipientsRefReplyAllOnlyAccount()
240 assertTrue(toAsString.contains(customFrom)); in testRecipientsRefReplyAllOnlyCustomFrom()
260 assertTrue(to.length == 1); in testReply()
263 assertTrue(cc.length == 0); in testReply()
264 assertTrue(bcc.length == 0); in testReply()
283 assertTrue(to.length == 1); in testReplyWithReplyTo()
286 assertTrue(cc.length == 0); in testReplyWithReplyTo()
287 assertTrue(bcc.length == 0); in testReplyWithReplyTo()
308 assertTrue(to.length == 1); in testReplyToSelf()
310 assertTrue(toAsString.contains("test1@gmail.com")); in testReplyToSelf()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactDeltaTests.java157 assertTrue("Didn't produce delete action", isDelete); in testValuesDiffDelete()
173 assertTrue("Created changes when none needed", (diff.size() == 0)); in testEntityDiffNone()
194 assertTrue("Expected version enforcement", CompatUtils.isAssertQueryCompat(cpoWrapper)); in testEntityDiffNoneInsert()
199 assertTrue("Expected aggregation mode change", CompatUtils.isUpdateCompat(cpoWrapper)); in testEntityDiffNoneInsert()
205 assertTrue("Incorrect type", CompatUtils.isInsertCompat(cpoWrapper)); in testEntityDiffNoneInsert()
211 assertTrue("Expected aggregation mode change", CompatUtils.isUpdateCompat(cpoWrapper)); in testEntityDiffNoneInsert()
237 assertTrue("Expected version enforcement", CompatUtils.isAssertQueryCompat(cpoWrapper)); in testEntityDiffUpdateInsert()
242 assertTrue("Expected aggregation mode change", CompatUtils.isUpdateCompat(cpoWrapper)); in testEntityDiffUpdateInsert()
248 assertTrue("Incorrect type", CompatUtils.isUpdateCompat(cpoWrapper)); in testEntityDiffUpdateInsert()
254 assertTrue("Incorrect type", CompatUtils.isInsertCompat(cpoWrapper)); in testEntityDiffUpdateInsert()
[all …]

12345678910>>...14