Home
last modified time | relevance | path

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

12345678910>>...40

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuationsTests.java21 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/Launcher3/tests/src/com/android/launcher3/search/
DStringMatcherUtilityTest.java21 import static org.junit.Assert.assertTrue;
42 assertTrue(matches("white ", "white cow", MATCHER)); in testMatches()
43 assertTrue(matches("white c", "white cow", MATCHER)); in testMatches()
44 assertTrue(matches("cow", "white cow", MATCHER)); in testMatches()
45 assertTrue(matches("cow", "whiteCow", MATCHER)); in testMatches()
46 assertTrue(matches("cow", "whiteCOW", MATCHER)); in testMatches()
47 assertTrue(matches("cow", "whitecowCOW", MATCHER)); in testMatches()
48 assertTrue(matches("cow", "white2cow", MATCHER)); in testMatches()
53 assertTrue(matches("cow", "whitecowCow", MATCHER)); in testMatches()
54 assertTrue(matches("cow", "whitecow cow", MATCHER)); in testMatches()
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DSipSessionTrackerTest.java21 import static junit.framework.Assert.assertTrue;
106 assertTrue(mTrackerUT.getConfirmedDialogs().isEmpty()); in testEarlyDialogToConfirmed()
111 assertTrue(mTrackerUT.getConfirmedDialogs().isEmpty()); in testEarlyDialogToConfirmed()
120 assertTrue(mTrackerUT.getConfirmedDialogs().isEmpty()); in testEarlyDialogToConfirmed()
127 assertTrue(mTrackerUT.getEarlyDialogs().isEmpty()); in testEarlyDialogToConfirmed()
137 assertTrue(mTrackerUT.getConfirmedDialogs().isEmpty()); in testForkDialog()
146 assertTrue(mTrackerUT.getConfirmedDialogs().isEmpty()); in testForkDialog()
156 assertTrue(mTrackerUT.getConfirmedDialogs().isEmpty()); in testForkDialog()
170 assertTrue(mTrackerUT.getEarlyDialogs().isEmpty()); in testForkDialog()
176 assertTrue(mTrackerUT.getEarlyDialogs().isEmpty()); in testForkDialog()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipTransformationTest.java42 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/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiNetworkSuggestionTest.java24 import static org.junit.Assert.assertTrue;
70 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
72 assertTrue(suggestion.isAppInteractionRequired); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
78 assertTrue(suggestion.isInitialAutoJoinEnabled); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
99 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
103 assertTrue(suggestion.isAppInteractionRequired); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
109 assertTrue(suggestion.isInitialAutoJoinEnabled); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
130 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
135 assertTrue(suggestion.isUserInteractionRequired); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
139 assertTrue(suggestion.isUserAllowedToManuallyConnect); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
[all …]
DWifiNetworkSpecifierTest.java27 import static org.junit.Assert.assertTrue;
67 assertTrue(specifier instanceof WifiNetworkSpecifier); in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern()
76 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern()
93 assertTrue(specifier instanceof WifiNetworkSpecifier); in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
102 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
126 assertTrue(specifier instanceof WifiNetworkSpecifier); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
135 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
137 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
139 assertTrue(wifiNetworkSpecifier.wifiConfiguration.hiddenSSID); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
162 assertTrue(specifier instanceof WifiNetworkSpecifier); in testWifiNetworkSpecifierBuilderForWpa3EapNetwork()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/
DLinkPropertiesTest.java31 import static org.junit.Assert.assertTrue;
168 assertTrue(source.isIdenticalInterfaceName(target)); in assertLinkPropertiesEqual()
169 assertTrue(target.isIdenticalInterfaceName(source)); in assertLinkPropertiesEqual()
171 assertTrue(source.isIdenticalAddresses(target)); in assertLinkPropertiesEqual()
172 assertTrue(target.isIdenticalAddresses(source)); in assertLinkPropertiesEqual()
174 assertTrue(source.isIdenticalDnses(target)); in assertLinkPropertiesEqual()
175 assertTrue(target.isIdenticalDnses(source)); in assertLinkPropertiesEqual()
177 assertTrue(source.isIdenticalPrivateDns(target)); in assertLinkPropertiesEqual()
178 assertTrue(target.isIdenticalPrivateDns(source)); in assertLinkPropertiesEqual()
180 assertTrue(source.isIdenticalValidatedPrivateDnses(target)); in assertLinkPropertiesEqual()
[all …]
DNetworkCapabilitiesTest.java63 import static org.junit.Assert.assertTrue;
110 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
117 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
122 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
130 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
136 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
233 assertTrue(netCap.appliesToUid(10)); in testSetUids()
234 assertTrue(netCap.appliesToUid(200)); in testSetUids()
235 assertTrue(netCap.appliesToUid(3000)); in testSetUids()
236 assertTrue(netCap.appliesToUid(10010)); in testSetUids()
[all …]
DIpPrefixTest.java28 import static org.junit.Assert.assertTrue;
230 assertTrue(p.contains(address("2001:db8:f00::ace:d00c"))); in testContainsInetAddress()
231 assertTrue(p.contains(address("2001:db8:f00::ace:d00d"))); in testContainsInetAddress()
238 assertTrue(p.contains(address("192.0.2.43"))); in testContainsInetAddress()
239 assertTrue(p.contains(address("192.0.3.21"))); in testContainsInetAddress()
245 assertTrue(ipv6Default.contains(address("2001:db8::f00"))); in testContainsInetAddress()
249 assertTrue(ipv4Default.contains(address("255.255.255.255"))); in testContainsInetAddress()
250 assertTrue(ipv4Default.contains(address("192.0.2.1"))); in testContainsInetAddress()
256 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("0.0.0.0/0"))); in testContainsIpPrefix()
257 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("1.2.3.4/0"))); in testContainsIpPrefix()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DMailToTest.java45 assertTrue(MailTo.isMailTo(MAILTOURI_1)); in testParseMailToURI()
55 assertTrue(MailTo.isMailTo(MAILTOURI_2)); in testParseMailToURI()
64 assertTrue(stringUrl.startsWith("mailto:?")); in testParseMailToURI()
65 assertTrue(stringUrl.contains("to=infobot%40example.com&")); in testParseMailToURI()
66 assertTrue(stringUrl.contains("subject=current-issue&")); in testParseMailToURI()
68 assertTrue(MailTo.isMailTo(MAILTOURI_3)); in testParseMailToURI()
77 assertTrue(stringUrl.startsWith("mailto:?")); in testParseMailToURI()
78 assertTrue(stringUrl.contains("to=infobot%40example.com&")); in testParseMailToURI()
79 assertTrue(stringUrl.contains("body=send%20current-issue&")); in testParseMailToURI()
81 assertTrue(MailTo.isMailTo(MAILTOURI_4)); in testParseMailToURI()
[all …]
DTrafficStatsTest.java41 assertTrue(tag + ": " + value + " is not within range [" + lower + ", " + upper + "]", in assertInRange()
49 assertTrue(TrafficStats.getMobileTxPackets() >= 0); in testValidMobileStats()
50 assertTrue(TrafficStats.getMobileRxPackets() >= 0); in testValidMobileStats()
51 assertTrue(TrafficStats.getMobileTxBytes() >= 0); in testValidMobileStats()
52 assertTrue(TrafficStats.getMobileRxBytes() >= 0); in testValidMobileStats()
56 assertTrue(TrafficStats.getTotalTxPackets() >= 0); in testValidTotalStats()
57 assertTrue(TrafficStats.getTotalRxPackets() >= 0); in testValidTotalStats()
58 assertTrue(TrafficStats.getTotalTxBytes() >= 0); in testValidTotalStats()
59 assertTrue(TrafficStats.getTotalRxBytes() >= 0); in testValidTotalStats()
63 assertTrue(TrafficStats.getTxPackets("lo") >= 0); in testValidIfaceStats()
[all …]
DNsdManagerTest.java355 assertTrue(false); in testNDSManager()
365 assertTrue(lastEvent != null); in testNDSManager()
366 assertTrue(lastEvent.mSucceeded); in testNDSManager()
367 assertTrue(eventCacheSize() == 1); in testNDSManager()
382 assertTrue(lastEvent != null); in testNDSManager()
383 assertTrue(lastEvent.mSucceeded); in testNDSManager()
401 assertTrue(lastEvent.mSucceeded); in testNDSManager()
419 assertTrue(found); in testNDSManager()
423 assertTrue(eventCacheSize() == 0); in testNDSManager()
434 assertTrue(mResolvedService.getAttributes().containsKey("booleanAttr")); in testNDSManager()
[all …]
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/s2/
DS2LevelRangeTest.java25 import static org.junit.Assert.assertTrue;
50 assertTrue(range1.contains(cellId(12, 1, 1))); in contains()
51 assertTrue(range1.contains(cellId(12, 1, 2))); in contains()
57 assertTrue(range2.contains(cellId(12, 1, 0))); in contains()
60 assertTrue(range2.contains(cellId(12, 1, 3))); in contains()
61 assertTrue(range2.contains(cellId(12, 1, 4))); in contains()
68 assertTrue(range1.overlaps(range1)); in overlaps()
71 assertTrue(range1.overlaps(new S2LevelRange(cellId(12, 1, 0), cellId(12, 1, 2)))); in overlaps()
72 assertTrue(range1.overlaps(new S2LevelRange(cellId(12, 1, 1), cellId(12, 1, 2)))); in overlaps()
73 assertTrue(range1.overlaps(new S2LevelRange(cellId(12, 1, 2), cellId(12, 1, 3)))); in overlaps()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DByteArrayRingBufferTest.java22 import static org.junit.Assert.assertTrue;
47 assertTrue(rb.appendBuffer(data)); in canAddAndRetrieveSingleElement()
57 assertTrue(rb.appendBuffer(data1)); in canAddAndRetrieveMultipleElements()
58 assertTrue(rb.appendBuffer(data2)); in canAddAndRetrieveMultipleElements()
70 assertTrue(rb.appendBuffer(data1)); in canFillToCapacityWithMultipleElements()
71 assertTrue(rb.appendBuffer(data2)); in canFillToCapacityWithMultipleElements()
80 assertTrue(rb.appendBuffer(data)); in canFillToCapacityWithSingleElement()
87 assertTrue(data.length > MAX_BYTES); in canNotOverfillWithSingleElement()
96 assertTrue(rb.appendBuffer(data1)); in appendPrunesBufferIfNecessary()
99 assertTrue(rb.appendBuffer(data2)); in appendPrunesBufferIfNecessary()
[all …]
DStringUtilTest.java20 import static org.junit.Assert.assertTrue;
39 assertTrue(StringUtil.isAsciiPrintable(null)); in nullArrayDoesNotCauseCrash()
45 assertTrue(StringUtil.isAsciiPrintable(new byte[]{})); in emptyArrayIsPrintable()
51 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'a'})); in arrayWithSinglePrintableByteIsPrintable()
60 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'a', 'b'})); in arrayWithMultiplePrintableBytesIsPrintable()
69 assertTrue(StringUtil.isAsciiPrintable(new byte[]{0x07})); // bell in printableControlCharactersAreConsideredPrintable()
70 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'\f'})); // form feed in printableControlCharactersAreConsideredPrintable()
71 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'\n'})); in printableControlCharactersAreConsideredPrintable()
72 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'\t'})); in printableControlCharactersAreConsideredPrintable()
73 assertTrue(StringUtil.isAsciiPrintable(new byte[]{0x0b})); // vertical tab in printableControlCharactersAreConsideredPrintable()
[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 …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanResultMatchInfoTest.java25 import static org.junit.Assert.assertTrue;
108 assertTrue(ScanResultMatchInfo.fromWifiConfiguration(conf) in testScanResultMatchesWifiConfiguration()
153 assertTrue(ScanResultMatchInfo.fromScanResult(scanOpen1.getScanResult()) in testDifferentNetworkScanResultsDontMatch()
155 assertTrue(ScanResultMatchInfo.fromScanResult(scanOpen1.getScanResult()) in testDifferentNetworkScanResultsDontMatch()
175 assertTrue(key1.equals(key1)); in testEqualityRulesForTransitionMode()
178 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
179 assertTrue(key2.equals(key1)); in testEqualityRulesForTransitionMode()
182 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
183 assertTrue(key2.equals(key3)); in testEqualityRulesForTransitionMode()
184 assertTrue(key1.equals(key3)); in testEqualityRulesForTransitionMode()
[all …]
DSarInfoTest.java20 import static org.junit.Assert.assertTrue;
55 assertTrue(mSarInfo.resetSarScenarioNeeded()); in testSarInfo_resetSarScenarioNeed_atStart()
63 assertTrue(mSarInfo.setSarScenarioNeeded(SAR_SCENARIO_1)); in testSarInfo_setSarScenarioNeeded_atStart()
73 assertTrue(mSarInfo.resetSarScenarioNeeded()); in testSarInfo_repeat_reset_scenario()
86 assertTrue(mSarInfo.resetSarScenarioNeeded()); in testSarInfo_set_after_reset_scenario()
90 assertTrue(mSarInfo.setSarScenarioNeeded(SAR_SCENARIO_1)); in testSarInfo_set_after_reset_scenario()
99 assertTrue(mSarInfo.setSarScenarioNeeded(SAR_SCENARIO_1)); in testSarInfo_set_twice_same_value_scenario()
112 assertTrue(mSarInfo.setSarScenarioNeeded(SAR_SCENARIO_1)); in testSarInfo_set_twice_different_values_scenario()
116 assertTrue(mSarInfo.setSarScenarioNeeded(SAR_SCENARIO_2)); in testSarInfo_set_twice_different_values_scenario()
125 assertTrue(mSarInfo.setSarScenarioNeeded(SAR_SCENARIO_1)); in testSarInfo_reset_after_set_scenario()
[all …]
DWifiConfigurationUtilTest.java28 import static org.junit.Assert.assertTrue;
84 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged( in testEnterpriseConfigAdded()
96 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testEnterpriseConfigEapChangeDetected()
112 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testEnterpriseConfigPhase2ChangeDetected()
130 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged( in testCaCertificateAddedDetected()
149 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testDifferentCaCertificateDetected()
168 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testCaCertificateChangesDetected()
198 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_AsciiSsidString()
201 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_AsciiSsidString()
204 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_AsciiSsidString()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallExtrasTest.java22 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 …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pNativeTest.java21 import static org.junit.Assert.assertTrue;
154 assertTrue(mWifiP2pNative.isHalInterfaceSupported()); in testIsHalInterfaceSupported()
166 assertTrue(mWifiP2pNative.setDeviceName(TEST_DEVICE_NAME)); in testSetDeviceName()
176 assertTrue(mWifiP2pNative.setP2pDeviceName(TEST_DEVICE_NAME)); in testSetP2pDeviceName()
186 assertTrue(mWifiP2pNative.p2pListNetworks(groupList)); in testP2pListNetworks()
198 assertTrue(mWifiP2pNative.startWpsPbc(TEST_IFACE, TEST_BSSID)); in testStartWpsPbc()
209 assertTrue(mWifiP2pNative.startWpsPinKeypad(TEST_IFACE, TEST_PIN)); in testStartWpsPinKeypad()
230 assertTrue(mWifiP2pNative.removeP2pNetwork(1)); in testP2pRemoveNetwork()
240 assertTrue(mWifiP2pNative.setP2pDeviceType(TEST_DEVICE_TYPE)); in testSetP2pDeviceType()
250 assertTrue(mWifiP2pNative.setConfigMethods(TEST_WPS_CONFIG)); in testSetConfigMethods()
[all …]
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsQuickstep.java23 import static org.junit.Assert.assertTrue;
79 executeOnLauncher(launcher -> assertTrue( in startTestAppsWithCheck()
91 assertTrue("Launcher internal state is not All Apps", in testWorkspaceSwitchToAllApps()
101 assertTrue("Launcher internal state didn't switch to Overview", in testOverview()
104 launcher -> assertTrue("Don't have at least 3 tasks", getTaskCount(launcher) >= 3)); in testOverview()
111 assertTrue("Launcher internal state is not Overview", in testOverview()
115 executeOnLauncher(launcher -> assertTrue("Current task in Overview is still 0", in testOverview()
119 assertTrue("Launcher internal state is not Overview", in testOverview()
121 executeOnLauncher(launcher -> assertTrue("Flinging back in Overview did nothing", in testOverview()
128 assertTrue("Test activity didn't open from Overview", mDevice.wait(Until.hasObject( in testOverview()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DWordComposerTests.java21 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 …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticManagerTest.java23 import static org.junit.Assert.assertTrue;
262 assertTrue(liveFrame.isLiveFrame()); in testLiveFrameRead()
304 assertTrue(listener.waitForEvent(time)); in testLiveFrameEvent()
323 assertTrue(listener.waitForEvent()); in testMissingSensorRead()
357 assertTrue(listener.waitForEvent()); in testFuelSystemStatus()
385 assertTrue(listener.waitForEvent(timestamp)); in testSecondaryAirStatus()
422 assertTrue(listener.waitForEvent(timestamp)); in testIgnitionMonitors()
429 assertTrue(commonIgnitionMonitors.components.available); in testIgnitionMonitors()
431 assertTrue(commonIgnitionMonitors.fuelSystem.available); in testIgnitionMonitors()
432 assertTrue(commonIgnitionMonitors.fuelSystem.incomplete); in testIgnitionMonitors()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DSharedInputHandlerTest.java21 import static org.junit.Assert.assertTrue;
101 assertTrue(mSharedInputHandler.onKeyDown(backEvent.getKeyCode(), backEvent)); in testBackButton_CancelsSearch()
103 assertTrue(mCanceledSearch); in testBackButton_CancelsSearch()
115 assertTrue(mSharedInputHandler.onKeyDown(backEvent.getKeyCode(), backEvent)); in testBackButton_ClearsSelection()
127 assertTrue(mSharedInputHandler.onKeyDown(backEvent.getKeyCode(), backEvent)); in testBackButton_PopsDirectory()
131 assertTrue(mDirPopHappened); in testBackButton_PopsDirectory()
140 assertTrue(mSharedInputHandler.onKeyDown(backEvent.getKeyCode(), backEvent)); in testBackButton_CloseDrawer()
160 assertTrue(mSharedInputHandler.onKeyDown(escapeEvent.getKeyCode(), escapeEvent)); in testEscButton_CancelsSearch()
162 assertTrue(mCanceledSearch); in testEscButton_CancelsSearch()
173 assertTrue(mSharedInputHandler.onKeyDown(escapeEvent.getKeyCode(), escapeEvent)); in testEscButton_ClearsSelection()
[all …]

12345678910>>...40