/aosp14/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
H A D | ActivityManagerPermissionTests.java | 49 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 D | WindowManagerPermissionTests.java | 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() 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() 138 fail("IWindowManager.thawRotation did not throw SecurityException as" in testSET_ORIENTATION() [all …]
|
H A D | PmPermissionsTests.java | 45 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()
|
/aosp14/system/core/libdiskconfig/ |
H A D | diskconfig.c | 155 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 …]
|
H A D | diskutils.c | 47 goto fail; in write_raw_image() 53 goto fail; in write_raw_image() 58 goto fail; in write_raw_image() 68 goto fail; in write_raw_image() 89 goto fail; in write_raw_image() 99 goto fail; in write_raw_image() 112 fail: in write_raw_image()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/ |
H A D | TvPipMenuTests.kt | 121 ?: fail("\"Close PIP\" button should be shown in Pip menu") 159 ?: fail( 170 ?: fail( 186 ?: fail("\"No-Op\" button should be shown in Pip menu") 188 ?: fail("\"Off\" button should be shown in Pip menu") 190 ?: fail("\"Clear\" button should be shown in Pip menu") 204 ?: fail("\"Clear\" button should be shown in Pip menu") 241 ?: fail("\"No-Op\" button should be shown in Pip menu") 243 ?: fail("\"Off\" button should be shown in Pip menu") 245 ?: fail("\"Clear\" button should be shown in Pip menu") [all …]
|
/aosp14/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/ |
H A D | ProtoInputStreamIncompleteValueTest.java | 53 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 D | ProtoInputStreamBoolTest.java | 70 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 …]
|
H A D | ProtoInputStreamObjectTest.java | 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() 433 fail("Should have thrown IllegalArgumentException"); in testBadReadType() [all …]
|
H A D | ProtoInputStreamStringTest.java | 90 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 …]
|
H A D | ProtoInputStreamEnumTest.java | 78 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() 460 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 469 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 478 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 487 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 496 fail("Should have thrown IllegalArgumentException"); in testBadReadType() [all …]
|
H A D | ProtoInputStreamBytesTest.java | 94 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 …]
|
H A D | ProtoInputStreamUInt32Test.java | 78 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() 454 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 463 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 472 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 481 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 490 fail("Should have thrown IllegalArgumentException"); in testBadReadType() [all …]
|
H A D | ProtoInputStreamFixed32Test.java | 76 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() 437 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 446 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 455 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 464 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 473 fail("Should have thrown IllegalArgumentException"); in testBadReadType() [all …]
|
H A D | ProtoInputStreamInt32Test.java | 78 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() 232 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated() 281 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat() 455 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 464 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 473 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 482 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 491 fail("Should have thrown IllegalArgumentException"); in testBadReadType() [all …]
|
H A D | ProtoInputStreamSFixed32Test.java | 76 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() 437 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 446 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 455 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 464 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 473 fail("Should have thrown IllegalArgumentException"); in testBadReadType() [all …]
|
H A D | ProtoInputStreamSInt32Test.java | 76 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() 437 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 446 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 455 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 464 fail("Should have thrown IllegalArgumentException"); in testBadReadType() 473 fail("Should have thrown IllegalArgumentException"); in testBadReadType() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | LocalSocketTest.java | 42 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 …]
|
/aosp14/frameworks/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 53 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() 225 if (!dest) goto fail; in writeToParcel() [all …]
|
/aosp14/frameworks/base/core/tests/utiltests/src/android/util/ |
H A D | MemoryIntArrayTest.java | 23 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 …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LogNullabilityTest.java | 20 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()
|
H A D | LongArrayQueueTest.java | 21 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 …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/signedconfig/ |
H A D | SignedConfigTest.java | 21 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 …]
|
/aosp14/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/ |
H A D | AttachedChoreographerTest.java | 24 import static org.junit.Assert.fail; 180 fail("Test not finished in 2 Seconds"); in testCreateChoreographer() 218 fail("Test not finished in 2 Seconds"); in testCopySurfaceControl() 250 fail("Test not finished in 2 Seconds"); in testMirrorSurfaceControl() 275 fail("Test not finished in 2 Seconds"); in testPostFrameCallback() 302 fail("Test not finished in 2 Seconds"); in testPostFrameCallbackDelayed() 328 fail("Test not finished in 2 Seconds"); in testPostCallback() 354 fail("Test not finished in 2 Seconds"); in testPostCallbackDelayed() 378 fail("Test not finished in 2 Seconds"); in testPostVsyncCallback() 405 fail("Test not finished in 5 Seconds"); in testChoreographerDivisorRefreshRate() [all …]
|
/aosp14/frameworks/base/core/jni/ |
H A D | runtime_native_boot-flags-test.sh | 42 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"
|