/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/ |
D | SpacingAndPunctuationsTests.java | 21 import static org.junit.Assert.assertTrue; 121 assertTrue("Tab", sp.isWordSeparator('\t')); in testingStandardWordSeparator() 122 assertTrue("Newline", sp.isWordSeparator('\n')); in testingStandardWordSeparator() 123 assertTrue("Space", sp.isWordSeparator(' ')); in testingStandardWordSeparator() 124 assertTrue("Exclamation", sp.isWordSeparator('!')); in testingStandardWordSeparator() 125 assertTrue("Quotation", sp.isWordSeparator('"')); in testingStandardWordSeparator() 129 assertTrue("Ampersand", sp.isWordSeparator('&')); in testingStandardWordSeparator() 131 assertTrue("L Paren", sp.isWordSeparator('(')); in testingStandardWordSeparator() 132 assertTrue("R Paren", sp.isWordSeparator(')')); in testingStandardWordSeparator() 133 assertTrue("Asterisk", sp.isWordSeparator('*')); in testingStandardWordSeparator() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipTransformationTest.java | 42 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testAddTransformation() 48 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testAddTransformation() 49 Assert.assertTrue(trans.isSupported(BipTransformation.STRETCH)); in testAddTransformation() 58 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testAddExistingTransformation() 64 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testAddExistingTransformation() 87 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testRemoveOnlyTransformation() 105 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testRemoveOneTransformation() 106 Assert.assertTrue(trans.isSupported(BipTransformation.STRETCH)); in testRemoveOneTransformation() 112 Assert.assertTrue(trans.isSupported(BipTransformation.STRETCH)); in testRemoveOneTransformation() 123 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testRemoveInvalidTransformation() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/allapps/search/ |
D | DefaultAppSearchAlgorithmTest.java | 19 import static org.junit.Assert.assertTrue; 42 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("white cow"), "cow", MATCHER)); in testMatches() 43 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("whiteCow"), "cow", MATCHER)); in testMatches() 44 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("whiteCOW"), "cow", MATCHER)); in testMatches() 45 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("whitecowCOW"), "cow", MATCHER)); in testMatches() 46 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("white2cow"), "cow", MATCHER)); in testMatches() 51 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("whitecowCow"), "cow", MATCHER)); in testMatches() 52 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("whitecow cow"), "cow", MATCHER)); in testMatches() 56 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("cats&dogs"), "dog", MATCHER)); in testMatches() 57 assertTrue(DefaultAppSearchAlgorithm.matches(getInfo("cats&Dogs"), "dog", MATCHER)); in testMatches() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallExtrasTest.java | 22 import static org.junit.Assert.assertTrue; 91 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey( in testCsPutExtras() 93 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras().containsKey( in testCsPutExtras() 116 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras() in testCsPutBooleanExtra() 118 assertTrue( in testCsPutBooleanExtra() 140 assertTrue( in testCsPutIntExtra() 165 assertTrue( in testCsPutStringExtra() 191 assertTrue( in testCsRemoveExtra() 201 assertTrue(mInCallServiceFixtureX.getCall(ids.mCallId).getExtras() in testCsRemoveExtra() 225 assertTrue( in testCsUpdateExisting() [all …]
|
D | SessionManagerTest.java | 23 import static org.junit.Assert.assertTrue; 83 assertTrue(mTestSessionManager.mSessionMapper.isEmpty()); in testStartSession() 102 assertTrue(mTestSessionManager.mSessionMapper.isEmpty()); in testStartInvisibleChildSession() 114 assertTrue(testChildSession.isStartedFromActiveSession()); in testStartInvisibleChildSession() 127 assertTrue(mTestSessionManager.mSessionMapper.isEmpty()); in testEndSession() 140 assertTrue(testSession.isSessionCompleted()); in testEndSession() 141 assertTrue(testSession.getLocalExecutionTime() > 0); in testEndSession() 142 assertTrue(mTestSessionManager.mSessionMapper.isEmpty()); in testEndSession() 152 assertTrue(mTestSessionManager.mSessionMapper.isEmpty()); in testEndInvisibleChildSession() 167 assertTrue(testChildSession.isSessionCompleted()); in testEndInvisibleChildSession() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | MediaProviderTest.java | 32 import static org.junit.Assert.assertTrue; 369 assertTrue(isGreylistMatch( in testGreylist() 371 assertTrue(isGreylistMatch( in testGreylist() 373 assertTrue(isGreylistMatch( in testGreylist() 375 assertTrue(isGreylistMatch( in testGreylist() 381 assertTrue(isGreylistMatch( in testGreylist_115845887() 383 assertTrue(isGreylistMatch( in testGreylist_115845887() 386 assertTrue(isGreylistMatch( in testGreylist_115845887() 391 assertTrue(isGreylistMatch( in testGreylist_115845887() 399 assertTrue(isGreylistMatch( in testGreylist_116489751_116135586_116117120_116084561_116074030_116062802() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | LocaleSetTest.java | 44 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 …]
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | TaplTestsQuickstep.java | 23 import static org.junit.Assert.assertTrue; 65 executeOnLauncher(launcher -> assertTrue( in startTestApps() 87 assertTrue("Launcher internal state is not All Apps", isInState(LauncherState.ALL_APPS)); in testWorkspaceSwitchToAllApps() 104 assertTrue("Launcher internal state didn't switch to Overview", in testOverview() 107 launcher -> assertTrue("Don't have at least 3 tasks", getTaskCount(launcher) >= 3)); in testOverview() 114 assertTrue("Launcher internal state is not Overview", isInState(LauncherState.OVERVIEW)); in testOverview() 117 executeOnLauncher(launcher -> assertTrue("Current task in Overview is still 0", in testOverview() 121 assertTrue("Launcher internal state is not Overview", isInState(LauncherState.OVERVIEW)); in testOverview() 122 executeOnLauncher(launcher -> assertTrue("Flinging back in Overview did nothing", in testOverview() 129 assertTrue("Test activity didn't open from Overview", mDevice.wait(Until.hasObject( in testOverview() [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarDiagnosticManagerTest.java | 23 import static org.junit.Assert.assertTrue; 254 assertTrue(liveFrame.isLiveFrame()); in testLiveFrameRead() 296 assertTrue(listener.waitForEvent(time)); in testLiveFrameEvent() 315 assertTrue(listener.waitForEvent()); in testMissingSensorRead() 349 assertTrue(listener.waitForEvent()); in testFuelSystemStatus() 377 assertTrue(listener.waitForEvent(timestamp)); in testSecondaryAirStatus() 414 assertTrue(listener.waitForEvent(timestamp)); in testIgnitionMonitors() 421 assertTrue(commonIgnitionMonitors.components.available); in testIgnitionMonitors() 423 assertTrue(commonIgnitionMonitors.fuelSystem.available); in testIgnitionMonitors() 424 assertTrue(commonIgnitionMonitors.fuelSystem.incomplete); in testIgnitionMonitors() [all …]
|
D | CarSensorManagerTest.java | 22 import static org.junit.Assert.assertTrue; 100 assertTrue(mCarSensorManager.isSensorSupported(CarSensorManager.SENSOR_TYPE_CAR_SPEED)); in testSensorAvailability() 101 assertTrue(mCarSensorManager.isSensorSupported(CarSensorManager.SENSOR_TYPE_FUEL_LEVEL)); in testSensorAvailability() 102 assertTrue(mCarSensorManager.isSensorSupported(CarSensorManager.SENSOR_TYPE_PARKING_BRAKE)); in testSensorAvailability() 103 assertTrue(mCarSensorManager.isSensorSupported(CarSensorManager.SENSOR_TYPE_GEAR)); in testSensorAvailability() 104 assertTrue(mCarSensorManager.isSensorSupported(CarSensorManager.SENSOR_TYPE_NIGHT)); in testSensorAvailability() 105 assertTrue(mCarSensorManager.isSensorSupported( in testSensorAvailability() 166 assertTrue(listener.waitForSensorChange(51L)); in testEvents() 174 assertTrue(data.isNightMode); in testEvents() 181 assertTrue("Unexpected value", data.isNightMode); in testEvents() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | WordComposerTests.java | 21 import static org.junit.Assert.assertTrue; 58 assertTrue(wc.isCursorFrontOrMiddleOfComposingWord()); in testMoveCursor() 60 assertTrue(wc.moveCursorByAndReturnIfInsideComposingWord(2)); in testMoveCursor() 61 assertTrue(wc.isCursorFrontOrMiddleOfComposingWord()); in testMoveCursor() 63 assertTrue(wc.moveCursorByAndReturnIfInsideComposingWord(1)); in testMoveCursor() 64 assertTrue(wc.isCursorFrontOrMiddleOfComposingWord()); in testMoveCursor() 67 assertTrue(wc.moveCursorByAndReturnIfInsideComposingWord(1)); in testMoveCursor() 88 assertTrue(wc.isCursorFrontOrMiddleOfComposingWord()); in testMoveCursor() 89 assertTrue(wc.moveCursorByAndReturnIfInsideComposingWord(6)); in testMoveCursor() 90 assertTrue(wc.isCursorFrontOrMiddleOfComposingWord()); in testMoveCursor() [all …]
|
D | ShiftModeTests.java | 41 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/Launcher3/tests/src/com/android/launcher3/ui/ |
D | TaplTestsLauncher3.java | 25 import static org.junit.Assert.assertTrue; 80 assertTrue(message, failed); in expectFail() 100 launcher -> assertTrue("Launcher internal state didn't switch to Showing Menu", in testDevicePressMenu() 124 assertTrue( in runAllAppsTest() 134 assertTrue("Launcher internal state is not All Apps", in runAllAppsTest() 139 launcher -> assertTrue("flingForward() didn't scroll App Apps", in runAllAppsTest() 143 assertTrue( in runAllAppsTest() 148 test.executeOnLauncher(launcher -> assertTrue("flingBackward() didn't scroll App Apps", in runAllAppsTest() 160 assertTrue( in runAllAppsTest() 173 assertTrue("Launcher internal state is not All Apps", isInState(LauncherState.ALL_APPS)); in testWorkspaceSwitchToAllApps() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | SharedInputHandlerTest.java | 21 import static org.junit.Assert.assertTrue; 94 assertTrue(mSharedInputHandler.onKeyDown(backEvent.getKeyCode(), backEvent)); in testBackButton_CancelsSearch() 96 assertTrue(mCanceledSearch); in testBackButton_CancelsSearch() 108 assertTrue(mSharedInputHandler.onKeyDown(backEvent.getKeyCode(), backEvent)); in testBackButton_ClearsSelection() 120 assertTrue(mSharedInputHandler.onKeyDown(backEvent.getKeyCode(), backEvent)); in testBackButton_PopsDirectory() 124 assertTrue(mDirPopHappened); in testBackButton_PopsDirectory() 133 assertTrue(mSharedInputHandler.onKeyDown(backEvent.getKeyCode(), backEvent)); in testBackButton_CloseDrawer() 152 assertTrue(mSharedInputHandler.onKeyDown(escapeEvent.getKeyCode(), escapeEvent)); in testEscButton_CancelsSearch() 154 assertTrue(mCanceledSearch); in testEscButton_CancelsSearch() 165 assertTrue(mSharedInputHandler.onKeyDown(escapeEvent.getKeyCode(), escapeEvent)); in testEscButton_ClearsSelection() [all …]
|
D | DragScrollListenerTest.java | 19 import static org.junit.Assert.assertTrue; 70 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_STARTED); in testDragEvent_DelegateToHandler() 73 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DROP); in testDragEvent_DelegateToHandler() 76 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_ENDED); in testDragEvent_DelegateToHandler() 79 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_EXITED); in testDragEvent_DelegateToHandler() 88 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_LOCATION); in testDragLocationEvent_DelegateToHandler() 94 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_LOCATION); in testDragLocationEvent_DelegateToHandler() 100 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_LOCATION); in testDragLocationEvent_DelegateToHandler() 103 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_LOCATION); in testDragLocationEvent_DelegateToHandler() 106 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_LOCATION); in testDragLocationEvent_DelegateToHandler() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/net/module/util/ |
D | TrackRecordTest.kt | 39 import kotlin.test.assertTrue in <lambda>() 98 TEST_VALUES.forEach { assertTrue(record.contains(it)) } in <lambda>() 100 assertTrue(record.containsAll(TEST_VALUES)) in <lambda>() 101 assertTrue(record.containsAll(TEST_VALUES.sorted())) in <lambda>() 102 assertTrue(record.containsAll(TEST_VALUES.sortedDescending())) in <lambda>() 103 assertTrue(record.containsAll(TEST_VALUES.distinct())) in <lambda>() 104 assertTrue(record.containsAll(TEST_VALUES.subList(0, TEST_VALUES.size / 2))) in <lambda>() 105 assertTrue(record.containsAll(TEST_VALUES.subList(0, TEST_VALUES.size / 2).sorted())) in <lambda>() 106 assertTrue(record.containsAll(listOf())) in <lambda>() 114 assertTrue(record.isEmpty()) in <lambda>() [all …]
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarAppFocusManagerTest.java | 106 assertTrue(listener2.waitForFocusChangeAndAssert( in testRegisterUnregisterSpecificApp() 136 assertTrue(owner1.waitForOwnershipGrantAndAssert( in testFocusChange() 141 assertTrue(manager1.isOwningFocus(owner1, APP_FOCUS_TYPE_NAVIGATION)); in testFocusChange() 143 assertTrue(change2.waitForFocusChangeAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testFocusChange() 145 assertTrue(change1.waitForFocusChangeAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testFocusChange() 151 assertTrue(manager1.isOwningFocus(owner1, APP_FOCUS_TYPE_NAVIGATION)); in testFocusChange() 161 assertTrue(owner1.waitForOwnershipGrantAndAssert( in testFocusChange() 173 assertTrue(owner2.waitForOwnershipGrantAndAssert( in testFocusChange() 177 assertTrue(manager2.isOwningFocus(owner2, APP_FOCUS_TYPE_NAVIGATION)); in testFocusChange() 180 assertTrue(owner1.waitForOwnershipLossAndAssert(DEFAULT_WAIT_TIMEOUT_MS, in testFocusChange() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | StringUtilsTests.java | 21 import static org.junit.Assert.assertTrue; 210 assertTrue("in 1 element", StringUtils.containsInArray("key", new String[] { in testContainsInArray() 213 assertTrue("in 2 elements", StringUtils.containsInArray("key", new String[] { in testContainsInArray() 227 assertTrue("in 1 element", StringUtils.containsInCommaSplittableText("key", "key")); in testContainsInCommaSplittableText() 228 assertTrue("in 2 elements", StringUtils.containsInCommaSplittableText("key", "key1,key")); in testContainsInCommaSplittableText() 324 assertTrue(StringUtils.isIdenticalAfterDowncase("capitalize")); in testIsIdenticalAfterUpcaseIsIdenticalAfterDowncase() 330 assertTrue(StringUtils.isIdenticalAfterDowncase("__c a piu$@tali56ze")); in testIsIdenticalAfterUpcaseIsIdenticalAfterDowncase() 337 assertTrue(StringUtils.isIdenticalAfterUpcase("CAPITALIZE")); in testIsIdenticalAfterUpcaseIsIdenticalAfterDowncase() 339 assertTrue(StringUtils.isIdenticalAfterUpcase(" PI26LIE")); in testIsIdenticalAfterUpcaseIsIdenticalAfterDowncase() 341 assertTrue(StringUtils.isIdenticalAfterUpcase("")); in testIsIdenticalAfterUpcaseIsIdenticalAfterDowncase() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpCoverArtStorageTest.java | 94 Assert.assertTrue(expected.sameAs(fromStorage)); in assertImageSame() 105 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in addNewImage_imageExists() 114 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in addExistingImage_imageUpdated() 119 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in addExistingImage_imageUpdated() 134 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in addTwoImageSameDevice_bothExist() 137 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle2)); in addTwoImageSameDevice_bothExist() 151 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in addTwoImageDifferentDevices_bothExist() 154 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in addTwoImageDifferentDevices_bothExist() 189 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in getImage_canGetImageFromStorage() 197 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in getImageSameHandleDifferentDevices_canGetImagesFromStorage() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidServiceTest.java | 204 Assert.assertTrue(mService.stop()); in testStopHearingAidService() 210 Assert.assertTrue(mService.start()); in testStopHearingAidService() 341 Assert.assertTrue("Connect failed", mService.connect(mLeftDevice)); in testOutgoingConnectTimeout() 378 Assert.assertTrue("Connect failed", mService.connect(mLeftDevice)); in testConnectAPair_connectBothDevices() 412 Assert.assertTrue("Connect failed", mService.connect(mLeftDevice)); in testConnectAnotherPair_disconnectCurrentPair() 440 Assert.assertTrue("Connect failed", mService.connect(mSingleDevice)); in testConnectAnotherPair_disconnectCurrentPair() 478 Assert.assertTrue("Connect failed", mService.connect(mLeftDevice)); in testAudioManagerConnectDisconnect() 479 Assert.assertTrue("Connect failed", mService.connect(mRightDevice)); in testAudioManagerConnectDisconnect() 519 Assert.assertTrue(mService.getConnectedDevices().contains(mLeftDevice)); in testAudioManagerConnectDisconnect() 520 Assert.assertTrue(mService.getConnectedDevices().contains(mRightDevice)); in testAudioManagerConnectDisconnect() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | DragStartListenerTest.java | 20 import static junit.framework.Assert.assertTrue; 109 assertTrue(Events.isMouseEvent(e)); in testMouseEvent() 110 assertTrue(e.getActionMasked() == MotionEvent.ACTION_MOVE); in testMouseEvent() 111 assertTrue(e.isButtonPressed(MotionEvent.BUTTON_PRIMARY)); in testMouseEvent() 116 assertTrue(mListener.onDragEvent(mEvent.build())); in testDragStarted_OnMouseMove() 131 assertTrue(selection.size() == 1); in testDragStart_nonSelectedItem() 132 assertTrue(selection.contains("1234")); in testDragStart_nonSelectedItem() 144 assertTrue(selection.size() == 2); in testDragStart_selectedItem() 145 assertTrue(selection.contains("1234")); in testDragStart_selectedItem() 146 assertTrue(selection.contains("5678")); in testDragStart_selectedItem() [all …]
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastListActivityTest.java | 119 assertTrue("onListItemClick should call startActivity", startActivityWasCalled); in testOnListItemClick() 227 assertTrue("onContextItemSelected - MENU_DELETE should create alert dialog", in testOnContextItemSelectedDelete() 258 assertTrue("onContextItemSelected - MENU_VIEW_DETAILS should create alert dialog", in testOnContextItemSelectedViewDetails() 264 assertTrue(contains(columns, PLMN)); in testOnContextItemSelectedViewDetails() 265 assertTrue(contains(columns, LAC)); in testOnContextItemSelectedViewDetails() 266 assertTrue(contains(columns, CID)); in testOnContextItemSelectedViewDetails() 267 assertTrue(contains(columns, ETWS_WARNING_TYPE)); in testOnContextItemSelectedViewDetails() 268 assertTrue(contains(columns, CMAS_MESSAGE_CLASS)); in testOnContextItemSelectedViewDetails() 269 assertTrue(contains(columns, CMAS_CATEGORY)); in testOnContextItemSelectedViewDetails() 270 assertTrue(contains(columns, CMAS_RESPONSE_TYPE)); in testOnContextItemSelectedViewDetails() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/ |
D | MethodStateTest.java | 42 import static org.junit.Assert.assertTrue; 95 assertTrue(mEapStateMachine.getState() instanceof MethodState); in testProcessTransitionsToEapSim() 97 assertTrue(methodState.mEapMethodStateMachine instanceof EapSimMethodStateMachine); in testProcessTransitionsToEapSim() 109 assertTrue(mEapStateMachine.getState() instanceof MethodState); in testProcessTransitionToEapAka() 111 assertTrue(methodState.mEapMethodStateMachine instanceof EapAkaMethodStateMachine); in testProcessTransitionToEapAka() 126 assertTrue(mEapStateMachine.getState() instanceof MethodState); in testProcessTransitionToEapAkaPrime() 128 assertTrue(methodState.mEapMethodStateMachine instanceof EapAkaPrimeMethodStateMachine); in testProcessTransitionToEapAkaPrime() 140 assertTrue(mEapStateMachine.getState() instanceof MethodState); in testProcessTransitionToEapMsChapV2() 142 assertTrue(methodState.mEapMethodStateMachine instanceof EapMsChapV2MethodStateMachine); in testProcessTransitionToEapMsChapV2() 154 assertTrue(mEapStateMachine.getState() instanceof MethodState); in testProcessTransitionToEapTtls() [all …]
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | PickerPreviewAllTypeUiTest.java | 63 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewInvisible_noQuickViewer_gridMode() 73 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewInvisible_noQuickViewer_listMode() 83 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_gridMode() 93 assertTrue(bots.directory.findDocument(dirName1).isEnabled()); in testPreviewInvisible_directory_listMode() 103 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_allType_girdMode() 104 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_allType_girdMode() 105 assertTrue(bots.directory.findDocument(fileName2).isEnabled()); in testPreviewVisible_allType_girdMode() 106 assertTrue(bots.directory.hasDocumentPreview(fileName2)); in testPreviewVisible_allType_girdMode() 115 assertTrue(bots.directory.findDocument(fileName1).isEnabled()); in testPreviewVisible_allType_listMode() 116 assertTrue(bots.directory.hasDocumentPreview(fileName1)); in testPreviewVisible_allType_listMode() [all …]
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarSanityCheckerTest.java | 52 assertTrue(target.checkLastCheckTime()); in testWithoutLastCheckTime() 58 assertTrue(target.checkLastCheckTime()); in testWithoutLastCheckTime() 68 assertTrue(target.checkLastCheckTime()); in testWithLastCheckTime() 77 assertTrue(target.checkLastCheckTime()); in testWithLastCheckTime() 81 assertTrue(target.checkLastCheckTime()); in testWithLastCheckTime() 91 assertTrue(target.checkLastCheckTime()); in testWithLastCheckTime() 95 assertTrue(target.checkLastCheckTime()); in testWithLastCheckTime() 101 assertTrue(target.checkLastCheckTime()); in testWithLastCheckTime() 106 assertTrue(target.checkLastCheckTime()); in testWithLastCheckTime() 120 assertTrue(target.checkLastCheckTime()); in testWithLastCheckTime() [all …]
|