Home
last modified time | relevance | path

Searched refs:fail (Results 1 – 25 of 1386) sorted by relevance

12345678910>>...56

/aosp12/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
H A DActivityManagerPermissionTests.java49 fail("Unexpected remote exception"); in testREORDER_TASKS()
62 fail("Unexpected remote exception"); in testCHANGE_CONFIGURATION()
75 fail("Unexpected remote exception"); in testSET_DEBUG_APP()
88 fail("Unexpected remote exception"); in testSET_PROCESS_LIMIT()
101 fail("Unexpected remote exception"); in testALWAYS_FINISH()
114 fail("Unexpected remote exception"); in testSIGNAL_PERSISTENT_PROCESSES()
127 fail("Unexpected remote exception"); in testFORCE_BACK()
140 fail("Unexpected remote exception"); in testSET_ACTIVITY_WATCHER()
153 fail("Unexpected remote exception"); in testSHUTDOWN()
166 fail("Unexpected remote exception"); in testSTOP_APP_SWITCHES()
[all …]
H A DWindowManagerPermissionTests.java53 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
58 fail("IWindowManager.addWindowToken did not throw SecurityException as" in testMANAGE_APP_TOKENS()
63 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
77 fail("Unexpected remote exception"); in testDISABLE_KEYGUARD()
87 fail("Unexpected remote exception"); in testDISABLE_KEYGUARD()
97 fail("Unexpected remote exception"); in testDISABLE_KEYGUARD()
110 fail("Unexpected remote exception"); in testSET_ANIMATION_SCALE()
120 fail("Unexpected remote exception"); in testSET_ANIMATION_SCALE()
133 fail("Unexpected remote exception"); in testSET_ORIENTATION()
143 fail("Unexpected remote exception"); in testSET_ORIENTATION()
[all …]
/aosp12/art/test/201-built-in-except-detail-messages/src/
H A DMain.java57 fail(); in arrayAccess()
65 fail(); in arrayAccess()
73 fail(); in arrayAccess()
81 fail(); in arrayAccess()
89 fail(); in arrayAccess()
97 fail(); in arrayAccess()
108 fail(); in arrayStore()
118 fail(); in arrayStore()
128 fail(); in arrayStore()
198 fail(); in classCast()
[all …]
/aosp12/build/soong/tests/
H A Dbootstrap_test.sh30 fail "Output Ninja file changed on null build"
45 fail "Bootstrap Ninja file did not change"
94 fail "Output Ninja file did not change"
120 fail "Old module in output"
200 fail "Output Ninja file did not change"
353 fail "Output Ninja file did not change"
463 fail "Output Ninja file did not change"
469 fail "Original action still present"
483 fail "Output Ninja file changed on null build"
565 fail "JSON file was not created"
[all …]
H A Dbp2build_bazel_test.sh44 fail "./out/soong/workspace/foo/convertible_soong_module/BUILD was not generated"
48 fail "./out/soong/workspace/foo/unconvertible_soong_module/BUILD was not generated"
52 fail "missing BUILD target the_answer in convertible_soong_module/BUILD"
56 fail "found unexpected BUILD target not_the_answer in unconvertible_soong_module/BUILD"
60 fail "missing filegroup in unconvertible_soong_module/BUILD"
68 fail "Expected '${the_answer_file}' to be generated, but was missing"
71 fail "Expected to find 42 in '${the_answer_file}'"
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A DAssert.java84 fail("Expected condition to be true", false); in isTrue()
93 fail("Expected condition to be false", false); in isFalse()
102 fail("Expected condition to be true", true); in isTrueReleaseCheck()
108 fail("Expected " + expected + " but got " + actual, false); in equals()
153 fail("Expected to run on main thread", false); in isMainThread()
160 fail("Not expected to run on main thread", false); in isNotMainThread()
170 fail("Expected object to be null", false); in isNull()
181 fail(failureMessage, false); in isNull()
191 fail("Expected value to be non-null", false); in notNull()
195 public static void fail(final String message) { in fail() method in Assert
[all …]
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
H A DTestJobListener.java20 import static org.junit.Assert.fail;
52 fail("Job didn't start. onStart never called."); in assertStarted()
58 fail("Job didn't finish. onFinish never called."); in assertFinished()
64 fail("Job didn't fail. onFailed never called."); in assertFailed()
70 fail("Can't test failed documetns. Job didn't fail."); in assertFilesFailed()
81 fail("Can't test failed documetns. Job didn't fail."); in assertFileFailed()
89 fail("Couldn't find failed file: " + name); in assertFileFailed()
94 fail("Can't test failed documetns. Job didn't fail."); in assertUrisFailed()
105 fail("Can't test failed documetns. Job didn't fail."); in assertUriFailed()
113 fail("Couldn't find failed uri: " + uri); in assertUriFailed()
[all …]
/aosp12/art/test/957-methodhandle-transforms/src/
H A DMain.java81 fail(); in testDropArguments()
102 fail(); in testDropArguments()
118 fail(); in testDropArguments()
125 fail(); in testDropArguments()
131 fail(); in testDropArguments()
701 fail(); in testBindTo()
708 fail(); in testBindTo()
914 fail(); in testInvokers()
922 fail(); in testInvokers()
927 fail(); in testInvokers()
[all …]
/aosp12/system/core/libdiskconfig/
H A Ddiskconfig.c155 goto fail; in load_diskconfig()
163 goto fail; in load_diskconfig()
168 goto fail; in load_diskconfig()
174 goto fail; in load_diskconfig()
181 goto fail; in load_diskconfig()
186 goto fail; in load_diskconfig()
189 goto fail; in load_diskconfig()
197 goto fail; in load_diskconfig()
228 fail: in load_diskconfig()
380 fail: in validate()
[all …]
/aosp12/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
H A DWifiP2pConfigTest.java20 import static org.junit.Assert.fail;
46 fail("Unexpected IllegalArgumentException"); in testBuilderInvalidNetworkName()
53 fail("Unexpected IllegalArgumentException"); in testBuilderInvalidNetworkName()
60 fail("Unexpected IllegalArgumentException"); in testBuilderInvalidNetworkName()
66 fail("expected IllegalArgumentException"); in testBuilderInvalidNetworkName()
72 fail("expected IllegalArgumentException"); in testBuilderInvalidNetworkName()
78 fail("expected IllegalArgumentException"); in testBuilderInvalidNetworkName()
85 fail("expected IllegalArgumentException"); in testBuilderInvalidNetworkName()
91 fail("expected IllegalArgumentException"); in testBuilderInvalidNetworkName()
106 fail("Unexpected IllegalArgumentException"); in testBuilderInvalidPassphrase()
[all …]
/aosp12/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DVCardVerifier.java108 AndroidTestCase.fail("Already initialized"); in initForImportTest()
123 AndroidTestCase.fail("Already initialized"); in initForExportTest()
156 AndroidTestCase.fail("Not initialized"); in addInputEntry()
166 AndroidTestCase.fail("Not initialized"); in addPropertyNodesVerifierElemWithoutVersion()
193 AndroidTestCase.fail("Not initialized"); in addPropertyNodesVerifierElemWithEmptyName()
209 AndroidTestCase.fail("Not initialized"); in addLineVerifierElem()
219 AndroidTestCase.fail("Not initialized"); in addContentValuesVerifierElem()
255 AndroidTestCase.fail(); in verifyWithInputStream()
288 TestCase.fail("Not initialized."); in verify()
302 TestCase.fail("No input is determined"); in verify()
[all …]
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
H A DTvPipMenuTests.kt110 ?: fail("\"Close PIP\" button should be shown in Pip menu")
123 ?: fail("\"Full screen\" button should be shown in Pip menu")
169 ?: fail("\"No-Op\" button should be shown in Pip menu")
171 ?: fail("\"Off\" button should be shown in Pip menu")
173 ?: fail("\"Clear\" button should be shown in Pip menu")
186 ?: fail("\"Clear\" button should be shown in Pip menu")
221 ?: fail("\"No-Op\" button should be shown in Pip menu")
223 ?: fail("\"Off\" button should be shown in Pip menu")
225 ?: fail("\"Clear\" button should be shown in Pip menu")
255 ?: fail("\"Close PIP\" button should be shown in Pip menu")
[all …]
/aosp12/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
H A DProtoInputStreamIncompleteValueTest.java53 fail("Should have thrown a ProtoParseException"); in testIncompleteVarint()
56 fail("Unexpected field id " + pi.getFieldNumber()); in testIncompleteVarint()
65 fail("Test should not have reached this point..."); in testIncompleteVarint()
91 fail("Should have thrown a ProtoParseException"); in testIncompleteFixed64()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testIncompleteFixed64()
103 fail("Test should not have reached this point..."); in testIncompleteFixed64()
129 fail("Should have thrown a ProtoParseException"); in testIncompleteLengthDelimited()
132 fail("Unexpected field id " + pi.getFieldNumber()); in testIncompleteLengthDelimited()
141 fail("Test should not have reached this point..."); in testIncompleteLengthDelimited()
166 fail("Should have thrown a ProtoParseException"); in testIncompleteFixed32()
[all …]
H A DProtoInputStreamObjectTest.java118 fail("Unexpected field id " + pi.getFieldNumber()); in testObjectOneChar()
172 fail("Unexpected field id " + pi.getFieldNumber()); in testObjectOneLargeChar()
234 fail("Unexpected field id " + pi.getFieldNumber()); in testObjectAndTwoChars()
304 fail("Unexpected field id " + pi.getFieldNumber()); in testComplexObject()
365 fail("Unexpected field id " + pi.getFieldNumber()); in testDeepObjects()
397 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
406 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
415 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
424 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
433 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
H A DProtoInputStreamBoolTest.java70 fail("Should never reach this"); in testRead()
79 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
118 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
196 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
241 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
390 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
399 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
408 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
417 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
426 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/net/
H A DLocalSocketTest.java42 fail("Expected NullPointerException"); in testBasic()
49 fail("Expected NullPointerException"); in testBasic()
100 fail("expected exception"); in testBasic()
107 fail("expected exception"); in testBasic()
114 fail("expected exception"); in testBasic()
121 fail("expected exception"); in testBasic()
128 fail("expected exception"); in testBasic()
135 fail("expected exception"); in testBasic()
154 fail("expected exception"); in testBasic()
163 fail("expected exception"); in testBasic()
[all …]
/aosp12/art/test/956-methodhandles/src/
H A DMain.java171 fail(); in testfindSpecial_invokeSuperBehaviour()
177 fail(); in testfindSpecial_invokeSuperBehaviour()
318 fail(); in testfindVirtual()
377 fail(); in testfindVirtual()
387 fail(); in testfindStatic()
392 fail(); in testfindStatic()
397 fail(); in testfindStatic()
402 fail(); in testfindStatic()
461 fail(); in testUnreflects()
472 fail(); in testUnreflects()
[all …]
/aosp12/frameworks/base/libs/androidfw/
H A DCursorWindow.cpp53 if (!window) goto fail; in create()
59 if (!window->mData) goto fail; in create()
68 fail: in create()
130 fail: in maybeInflate()
142 if (!window) goto fail; in createFromParcel()
156 if (parcel->readBool(&isAshmem)) goto fail; in createFromParcel()
184 if (!window->mData) goto fail; in createFromParcel()
200 fail: in createFromParcel()
210 if (parcel->writeString8(mName)) goto fail; in writeToParcel()
227 if (!dest) goto fail; in writeToParcel()
[all …]
/aosp12/system/chre/java/test/utils/src/com/google/android/utils/chre/
H A DChreTestUtil.java63 Assert.fail("Could not find asset " + fileName + ": " + e.toString()); in getNanoAppInputStream()
104 Assert.fail(e.getMessage()); in loadNanoApp()
116 Assert.fail("Failed to load nanoapp"); in loadNanoAppAssertSuccess()
135 Assert.fail(e.getMessage()); in unloadNanoApp()
146 Assert.fail("Failed to unload nanoapp"); in unloadNanoAppAssertSuccess()
163 Assert.fail(e.getMessage()); in executeShellCommand()
191 Assert.fail(e.getMessage()); in convertToIntegerOrFail()
212 Assert.fail("InterruptedException while getting query response"); in queryNanoAppsAssertSuccess()
214 Assert.fail("TimeoutException while getting query response"); in queryNanoAppsAssertSuccess()
248 Assert.fail(e.getMessage()); in closeOrAssert()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DPhoneSubInfoControllerTest.java123 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
131 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
144 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
152 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
166 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
174 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
207 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
215 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
228 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
236 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
[all …]
/aosp12/frameworks/base/core/tests/utiltests/src/android/util/
H A DMemoryIntArrayTest.java23 import static org.junit.Assert.fail;
140 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
147 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
154 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
161 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
180 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
187 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
194 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
201 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
215 fail("Cannot use over max size"); in testOverMaxSize()
[all …]
/aosp12/packages/modules/Connectivity/tests/common/java/android/net/
H A DIpPrefixTest.java28 import static org.junit.Assert.fail;
61 fail("Expected NullPointerException: null byte array"); in testConstructor()
66 fail("Expected NullPointerException: null InetAddress"); in testConstructor()
71 fail("Expected NullPointerException: null String"); in testConstructor()
78 fail("Expected IllegalArgumentException: invalid array length"); in testConstructor()
83 fail("Expected IllegalArgumentException: no prefix length"); in testConstructor()
88 fail("Expected IllegalArgumentException: empty prefix length"); in testConstructor()
93 fail("Expected IllegalArgumentException: invalid address"); in testConstructor()
103 fail("Expected IllegalArgumentException: invalid IPv4 address"); in testConstructor()
108 fail("Expected IllegalArgumentException: non-address"); in testConstructor()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/signedconfig/
H A DSignedConfigTest.java21 import static org.junit.Assert.fail;
81 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigNoMinSdk()
92 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigNoMaxSdk()
103 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigNoValues()
210 fail("Expected InvalidConfigException"); in testParsePerSdkConfigSingleKeyWithMapInvalidValue()
282 fail("Expected InvalidConfigException"); in testParseVersionInvalid()
292 fail("Expected InvalidConfigException"); in testParseNoVersion()
302 fail("Expected InvalidConfigException"); in testParseNoConfig()
312 fail("Expected InvalidConfigException"); in testParseConfigNull()
322 fail("Expected InvalidConfigException"); in testParseVersionNull()
[all …]
/aosp12/art/test/1937-transform-soft-fail/
H A DAndroid.bp3 // Build rules for ART run-test `1937-transform-soft-fail`.
16 name: "art-run-test-1937-transform-soft-fail",
21 ":art-run-test-1937-transform-soft-fail-expected-stdout",
22 ":art-run-test-1937-transform-soft-fail-expected-stderr",
28 name: "art-run-test-1937-transform-soft-fail-expected-stdout",
29 out: ["art-run-test-1937-transform-soft-fail-expected-stdout.txt"],
36 name: "art-run-test-1937-transform-soft-fail-expected-stderr",
37 out: ["art-run-test-1937-transform-soft-fail-expected-stderr.txt"],
/aosp12/frameworks/base/core/tests/coretests/src/android/util/
H A DLongArrayQueueTest.java21 import static org.junit.Assert.fail;
50 fail("removeFirst() succeeded on an empty queue!"); in removeFirstOnEmptyQueue()
57 fail("removeFirst() succeeded on an empty queue!"); in removeFirstOnEmptyQueue()
83 fail("peekFirst() succeeded on an empty queue!"); in peekFirstOnEmptyQueue()
90 fail("peekFirst() succeeded on an empty queue!"); in peekFirstOnEmptyQueue()
113 fail("peekLast() succeeded on an empty queue!"); in peekLastOnEmptyQueue()
120 fail("peekLast() succeeded on an empty queue!"); in peekLastOnEmptyQueue()
196 fail("get(0) succeeded on an empty queue!"); in getInvalidPositions()
208 fail("get(-3) succeeded"); in getInvalidPositions()
214 fail("get(" + n + ") succeeded on a queue with " + n + " elements"); in getInvalidPositions()
[all …]

12345678910>>...56