Home
last modified time | relevance | path

Searched refs:setResult (Results 1 – 25 of 132) sorted by relevance

123456

/cts/tests/app/src/android/app/cts/
DLocalActivityManagerTest.java62 LocalActivityManagerTestHelper.setResult(this); in testDispatchResume()
76 LocalActivityManagerTestHelper.setResult(this); in testStartActivity()
82 LocalActivityManagerTestHelper.setResult(this); in testDispatchCreate()
88 LocalActivityManagerTestHelper.setResult(this); in testDispatchStop()
94 LocalActivityManagerTestHelper.setResult(this); in testDispatchPauseTrue()
100 LocalActivityManagerTestHelper.setResult(this); in testDispatchPauseFalse()
106 LocalActivityManagerTestHelper.setResult(this); in testSaveInstanceState()
112 LocalActivityManagerTestHelper.setResult(this); in testDispatchDestroy()
118 LocalActivityManagerTestHelper.setResult(this); in testRemoveAllActivities()
123 public void setResult(final int resultCode) { in setResult() method in LocalActivityManagerTest
[all …]
/cts/tests/AlarmManager/app_common/src/android/alarmmanager/alarmtestapp/cts/common/
DRequestReceiver.java60 setResult(Activity.RESULT_OK, String.valueOf(result), null); in onReceive()
66 setResult(Activity.RESULT_OK, null, null); in onReceive()
68 setResult(RESULT_SECURITY_EXCEPTION, se.getMessage(), null); in onReceive()
76 setResult(Activity.RESULT_OK, null, null); in onReceive()
78 setResult(RESULT_SECURITY_EXCEPTION, se.getMessage(), null); in onReceive()
84 setResult(Activity.RESULT_OK, null, null); in onReceive()
86 setResult(RESULT_SECURITY_EXCEPTION, se.getMessage(), null); in onReceive()
93 setResult(Activity.RESULT_OK, null, null); in onReceive()
95 setResult(RESULT_SECURITY_EXCEPTION, se.getMessage(), null); in onReceive()
100 setResult(Activity.RESULT_CANCELED, null, null); in onReceive()
/cts/hostsidetests/tagging/sdk_30/src/android/cts/tagging/sdk30/
DHeapZeroInitMemtagAsyncActivity.java30 setResult(TestActivity.RESULT_TEST_IGNORED); in onCreate()
32 setResult(TestActivity.RESULT_TEST_SUCCESS); in onCreate()
34 setResult(TestActivity.RESULT_TEST_FAILED); in onCreate()
DHeapZeroInitActivity.java30 setResult(TestActivity.RESULT_TEST_IGNORED); in onCreate()
32 setResult(TestActivity.RESULT_TEST_SUCCESS); in onCreate()
34 setResult(TestActivity.RESULT_TEST_FAILED); in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39797/test-app/src/android/security/cts/CVE_2021_39797_test/
DPocActivity.java54 setResult(prefs, getResources().getInteger(R.integer.noAssumptionFailure), ""); in onCreate()
63 setResult(prefs, getResources().getInteger(R.integer.assumptionFailure), in onCreate()
78 setResult(prefs, getResources().getInteger(R.integer.assumptionFailure), in onCreate()
83 setResult(prefs, getResources().getInteger(R.integer.assumptionFailure), in onCreate()
95 setResult(prefs, getResources().getInteger(R.integer.assumptionFailure), in onCreate()
99 setResult(prefs, getResources().getInteger(R.integer.noAssumptionFailure), ""); in onCreate()
102 private void setResult(SharedPreferences sh, int result, String message) { in setResult() method in PocActivity
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39692/src/android/security/cts/CVE_2021_39692/
DPocActivity.java43 setResult(getResources().getInteger(R.integer.assumptionFailure), in onCreate()
51 setResult(getResources().getInteger(R.integer.assumptionFailure), in onCreate()
55 setResult(getResources().getInteger(R.integer.noFailure), ""); in onCreate()
61 setResult(Activity.RESULT_OK); in onActivityResult()
66 private void setResult(int result, String message) { in setResult() method in PocActivity
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39808/src/android/security/cts/CVE_2021_39808/
DPocService.java44 setResult(getResources().getInteger(R.integer.fail), in onCreate()
48 setResult(getResources().getInteger(R.integer.assumptionFailure), in onCreate()
59 setResult(getResources().getInteger(R.integer.assumptionFailure), in createNotificationGroup()
63 setResult(getResources().getInteger(R.integer.assumptionFailure), in createNotificationGroup()
74 setResult(getResources().getInteger(R.integer.pass), in createNotificationGroup()
119 setResult(getResources().getInteger(R.integer.assumptionFailure), in createNotificationGroup()
125 private void setResult(int result, String message) { in setResult() method in PocService
/cts/tests/tests/view/src/android/view/cts/
DViewGroupInvalidateChildCtsActivity.java31 public static void setResult(CTSResult result) { in setResult() method in ViewGroupInvalidateChildCtsActivity
54 sResult.setResult(CTSResult.RESULT_OK); in onResume()
61 sResult.setResult(CTSResult.RESULT_FAIL); in fail()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCredentialManagementAppActivity.java220 mHandler.post(() -> setResult(mCheckIsCredentialManagementApp, isCredMngApp)); in checkIsCredentialManagementApp()
228 mHandler.post(() -> setResult(mCheckAuthenticationPolicy, in checkAuthenticationPolicy()
245 mHandler.post(() -> setResult(mGenerateKeyPair, mAttestedKeyPair != null)); in generateKeyPair()
254 setResult(mCreateAndInstallCertificate, in createAndInstallCertificate()
259 setResult(mCreateAndInstallCertificate, false); in createAndInstallCertificate()
287 setResult(mSignDataWithKey, mSignature != null); in getPrivateKeyAndSignData()
316 setResult(mVerifySignature, verified); in getPublicKeyAndVerifySignature()
329 setResult(mRemoveCredentialManagementApp, result); in removeCredentialManagementApp()
337 private void setResult(DialogTestListItem testListItem, boolean passed) { in setResult() method in CredentialManagementAppActivity
349 setResult(mRequestManageCredentials, resultCode == RESULT_OK); in handleActivityResult()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39704/src/android/security/cts/CVE_2021_39704/
DPocService.java48 setResult(getResources().getInteger(R.integer.assumptionFailure), in onCreate()
69 setResult(getResources().getInteger(R.integer.fail), in exploitBug()
72 setResult(getResources().getInteger(R.integer.fail), in exploitBug()
75 setResult(getResources().getInteger(R.integer.pass), in exploitBug()
80 private void setResult(int result, String message) { in setResult() method in PocService
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39701/src/android/security/cts/CVE_2021_39701/
DPocService.java35 setResult(getResources().getInteger(R.integer.fail), in onCreate()
41 setResult(getResources().getInteger(R.integer.pass), in onDestroy()
46 public void setResult(int flag, String message) { in setResult() method in PocService
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0338/src/android/security/cts/CVE_2020_0338/
DPocActivity.java34 private void setResult(int result, String message) { in setResult() method in PocActivity
61 setResult(getResources().getInteger(R.integer.ASSUMPTION_FAILURE), e.toString()); in readFileDescriptor()
66 setResult(getResources().getInteger(R.integer.FAIL), "Vulnerable to b/123700107!!"); in readFileDescriptor()
90 setResult(getResources().getInteger(R.integer.ASSUMPTION_FAILURE), e.toString()); in grantSettingsPermissions()
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccResolutionActivity.java43 setResult(RESULT_OK); in onResume()
45 setResult(RESULT_CANCELED); in onResume()
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DAppSearchBatchResultCtsTest.java33 .setResult("keySuccess3", AppSearchResult.newSuccessfulResult(3)) in testIsSuccess_true()
50 .setResult( in testIsSuccess_false()
87 .setResult("keySuccess3", AppSearchResult.newSuccessfulResult(3)) in testGetters()
88 .setResult( in testGetters()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java90 setResult(Activity.RESULT_OK); in onCreate()
104 setResult(Activity.RESULT_OK, result); in onCreate()
109 setResult(Activity.RESULT_OK); in onCreate()
122 setResult(Activity.RESULT_OK, result); in onCreate()
126 setResult(Activity.RESULT_OK); in onCreate()
135 setResult(Activity.RESULT_OK, new Intent()); in onCreate()
/cts/hostsidetests/devicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/
DSimpleReceiverStartService.java31 setResult(Activity.RESULT_CANCELED, null, null); in onReceive()
34 setResult(Activity.RESULT_FIRST_USER, null, null); in onReceive()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DAttributionSourceActivity.kt51 setResult(resultCode) in onActivityResult()
80 activity.setResult(Activity.RESULT_OK) in readAttributionSource()
83 activity.setResult(AttributionSourceActivity.RESULT_SECURITY_EXCEPTION) in readAttributionSource()
/cts/tests/AlarmManager/app/src/android/alarmmanager/alarmtestapp/cts/
DTestAlarmScheduler.java68 setResult(Activity.RESULT_OK, null, null); in onReceive()
87 setResult(Activity.RESULT_OK, null, null); in onReceive()
93 setResult(Activity.RESULT_OK, null, null); in onReceive()
97 setResult(Activity.RESULT_CANCELED, null, null); in onReceive()
/cts/tests/tests/notification/NotificationApp/src/com/android/test/notificationapp/
DMatchesCallFilterTestActivity.java57 setResult(sPermitted); in callMatchesCallFilter()
59 setResult(sNotPermitted); in callMatchesCallFilter()
/cts/tests/app/app/src/android/app/stubs/
DClearTop.java42 setResult(RESULT_OK); in onNewIntent()
44 setResult(RESULT_CANCELED, new Intent().setAction("New intent received " + intent in onNewIntent()
DTestedScreen.java47 setResult(RESULT_OK, new Intent().setAction(LaunchpadActivity.RETURNED_RESULT)); in onCreate()
97 setResult(RESULT_OK);
113 setResult(RESULT_OK); in queueIdle()
/cts/tests/tests/os/src/android/os/cts/
DClearTop.java44 setResult(RESULT_OK); in onNewIntent()
46 setResult(RESULT_CANCELED, new Intent().setAction("New intent received " + intent in onNewIntent()
DTestedScreen.java47 setResult(RESULT_OK, new Intent().setAction(LaunchpadActivity.RETURNED_RESULT)); in onCreate()
97 setResult(RESULT_OK);
113 setResult(RESULT_OK); in queueIdle()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DSendResultActivity.java42 setResult(RESULT_OK, result); in onCreate()
46 setResult(RESULT_CANCELED, null); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DWebLinkActivity.java47 setResult(RESULT_OK, intent); in onCreate()
53 setResult(RESULT_CANCELED, null); in onCreate()

123456