Home
last modified time | relevance | path

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

12345678910>>...24

/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DActivityManagerPermissionTests.java44 fail("IActivityManager.moveTaskToFront did not throw SecurityException as" in testREORDER_TASKS()
49 fail("Unexpected remote exception"); in testREORDER_TASKS()
57 fail("IActivityManager.updateConfiguration did not throw SecurityException as" in testCHANGE_CONFIGURATION()
62 fail("Unexpected remote exception"); in testCHANGE_CONFIGURATION()
70 fail("IActivityManager.setDebugApp did not throw SecurityException as" in testSET_DEBUG_APP()
75 fail("Unexpected remote exception"); in testSET_DEBUG_APP()
83 fail("IActivityManager.setProcessLimit did not throw SecurityException as" in testSET_PROCESS_LIMIT()
88 fail("Unexpected remote exception"); in testSET_PROCESS_LIMIT()
96 fail("IActivityManager.setAlwaysFinish did not throw SecurityException as" in testALWAYS_FINISH()
101 fail("Unexpected remote exception"); in testALWAYS_FINISH()
[all …]
DWindowManagerPermissionTests.java48 fail("IWindowManager.setEventDispatching did not throw SecurityException as" in testMANAGE_APP_TOKENS()
53 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()
72 fail("IWindowManager.disableKeyguard did not throw SecurityException as" in testDISABLE_KEYGUARD()
77 fail("Unexpected remote exception"); in testDISABLE_KEYGUARD()
82 fail("IWindowManager.reenableKeyguard did not throw SecurityException as" in testDISABLE_KEYGUARD()
87 fail("Unexpected remote exception"); in testDISABLE_KEYGUARD()
92 fail("IWindowManager.exitKeyguardSecurely did not throw SecurityException as" in testDISABLE_KEYGUARD()
97 fail("Unexpected remote exception"); in testDISABLE_KEYGUARD()
[all …]
DPmPermissionsTests.java45 fail("PackageManager.getPackageSizeInfo" + in testGetPackageSize()
60 fail("PackageManager.deleteApplicationCacheFiles" + in testDeleteApplicationCacheFiles()
82 fail("PackageManager.freeStorage " + in testFreeStorage1()
97 fail("PackageManager.freeStorageAndNotify" + in testFreeStorage2()
112 fail("PackageManager.clearApplicationUserData" + in testClearApplicationUserData()
127 fail("PackageManager.deletePackage" + in testDeletePackage()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
DTvPipMenuTests.kt107 ?: fail("\"Close PIP\" button should be shown in Pip menu") in <lambda>()
120 ?: fail("\"Full screen\" button should be shown in Pip menu") in <lambda>()
143 ?: fail("\"Pause\" button should be shown in Pip menu if there is an active " + in <lambda>()
152 ?: fail("\"Play\" button should be shown in Pip menu if there is an active " + in <lambda>()
166 ?: fail("\"No-Op\" button should be shown in Pip menu") in <lambda>()
168 ?: fail("\"Off\" button should be shown in Pip menu") in <lambda>()
170 ?: fail("\"Clear\" button should be shown in Pip menu") in <lambda>()
178 ?: fail("\"On\" button should be shown in Pip for a corresponding custom action") in <lambda>()
183 ?: fail("\"Clear\" button should be shown in Pip menu") in <lambda>()
192 isGone -> if (!isGone) fail("\"On\" button should not be shown in Pip menu") in <lambda>()
[all …]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVCardVerifier.java108 AndroidTestCase.fail("Already initialized"); in initForImportTest()
123 AndroidTestCase.fail("Already initialized"); in initForExportTest()
140 AndroidTestCase.fail("Wrong resId: " + resId); in setInputResourceId()
147 AndroidTestCase.fail("addInputEntry() is called."); in setInputStream()
149 AndroidTestCase.fail("InputStream is already set"); in setInputStream()
156 AndroidTestCase.fail("Not initialized"); in addInputEntry()
159 AndroidTestCase.fail("setInputStream is called"); in addInputEntry()
166 AndroidTestCase.fail("Not initialized"); in addPropertyNodesVerifierElemWithoutVersion()
193 AndroidTestCase.fail("Not initialized"); in addPropertyNodesVerifierElemWithEmptyName()
209 AndroidTestCase.fail("Not initialized"); in addLineVerifierElem()
[all …]
DLineVerifierElem.java58 TestCase.fail("Multiple \"BEGIN:VCARD\" line found"); in verify()
65 TestCase.fail("Multiple \"END:VCARD\" line found"); in verify()
74 TestCase.fail("Multiple VERSION line + found"); in verify()
82 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line); in verify()
84 TestCase.fail("Property other than END came after END property: " + line); in verify()
91 TestCase.fail("Unexpected line: " + line); in verify()
102 TestCase.fail("Expected line(s) not found:" + buffer.toString()); in verify()
/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
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 …]
DProtoInputStreamObjectTest.java68 fail("Unexpected field id " + pi.getFieldNumber()); in parseProto()
118 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()
[all …]
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()
317 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
362 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
390 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
399 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
408 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamStringTest.java90 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
132 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
217 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
264 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
293 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
302 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
311 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
320 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
329 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
338 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamEnumTest.java78 fail("Should never reach this"); in testRead()
96 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
140 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
232 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
281 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
379 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
431 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
460 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
469 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
478 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamBytesTest.java94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
142 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
228 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
280 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
312 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
321 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
330 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
339 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
348 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
357 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamSInt32Test.java76 fail("Should never reach this"); in testRead()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
139 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
226 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
275 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
360 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
409 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
437 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
446 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
455 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamUInt32Test.java78 fail("Should never reach this"); in testRead()
96 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
141 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
231 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
280 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
377 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
426 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
454 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
463 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
472 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamSFixed32Test.java76 fail("Should never reach this"); in testRead()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
139 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
226 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
275 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
360 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
409 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
437 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
446 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
455 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamFixed32Test.java76 fail("Should never reach this"); in testRead()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
139 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
226 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
275 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
360 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
409 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
437 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
446 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
455 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
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 …]
/frameworks/base/libs/androidfw/
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()
144 if (parcel->readString8(&window->mName)) goto fail; in createFromParcel()
145 if (parcel->readUint32(&window->mNumRows)) goto fail; in createFromParcel()
146 if (parcel->readUint32(&window->mNumColumns)) goto fail; in createFromParcel()
147 if (parcel->readUint32(&window->mSize)) goto fail; in createFromParcel()
156 if (parcel->readBool(&isAshmem)) goto fail; in createFromParcel()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneFactoryTest.java19 import static org.junit.Assert.fail;
31 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
37 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
43 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
49 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
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 …]
/frameworks/base/core/tests/utiltests/src/android/util/
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 …]
/frameworks/base/core/tests/coretests/src/android/util/
DLogNullabilityTest.java20 import static org.junit.Assert.fail;
62 fail(); in nullMessage()
67 fail(); in nullMessage()
72 fail(); in nullMessage()
78 fail(); in nullMessage()
83 fail(); in nullMessage()
94 fail(); in nullMessage()
112 fail(); in nullMessageWithThrowable()
136 fail(); in nullThrowable()
154 fail(); in nullMessageWithNullThrowable()
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 …]
/frameworks/base/services/tests/servicestests/src/com/android/server/signedconfig/
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()
114 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigSdkNullMinSdk()
125 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigSdkNullMaxSdk()
136 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigNullValues()
188 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigSingleKeyNotAllowed()
210 fail("Expected InvalidConfigException"); in testParsePerSdkConfigSingleKeyWithMapInvalidValue()
253 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigValuesInvalid()
[all …]
/frameworks/base/core/jni/
Druntime_native_boot-flags-test.sh42 function fail { function
58 fail "Device did not finish booting before timeout (~$niters seconds)"
73 || fail "Device configuration flag \`$flag\` set to \`$flag_value\` (expected \`$value\`)"
87 || fail "Device configuration flag \`$flag\` set to \`$flag_value\` (expected `null`)"
115 || fail "System property \`$prop\` set to \`$prop_value\` (expected \`$value\`)"
129 || fail "System property \`$prop\` set to \`$prop_value\` (expected unset property)"
154 || fail "Found no \`$runtime_option\` among runtime options passed to \`$zygote\`"
169 && fail "Found \`$runtime_option\` among runtime options passed to \`$zygote\`"
183 || fail "Found no message \"$message\" generated by AndroidRuntime"
196 || fail "Found message \"$message\" generated by AndroidRuntime"

12345678910>>...24