Home
last modified time | relevance | path

Searched refs:resultCode (Results 1 – 25 of 162) sorted by relevance

1234567

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/reporting/
DSensorTestDetails.java44 public SensorTestDetails(String name, ResultCode resultCode) { in SensorTestDetails() argument
45 this(name, resultCode, null /* summary */); in SensorTestDetails()
48 public SensorTestDetails(String name, ResultCode resultCode, String summary) { in SensorTestDetails() argument
50 mResultCode = resultCode; in SensorTestDetails()
60 ResultCode resultCode = ResultCode.PASS; in SensorTestDetails() local
62 resultCode = ResultCode.FAIL; in SensorTestDetails()
64 resultCode = ResultCode.SKIPPED; in SensorTestDetails()
68 mResultCode = resultCode; in SensorTestDetails()
81 ResultCode resultCode = ResultCode.FAIL; in SensorTestDetails() local
83 resultCode = ResultCode.INTERRUPTED; in SensorTestDetails()
[all …]
/cts/tests/tests/gameservice/src/android/service/games/testing/
DGetResultActivity.java28 public final int resultCode; field in GetResultActivity.Result
31 public Result(int requestCode, int resultCode, Intent data) { in Result() argument
33 this.resultCode = resultCode; in Result()
40 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
41 mResult.offer(new Result(requestCode, resultCode, data)); in onActivityResult()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DMyActivity.java32 public final int resultCode; field in MyActivity.Result
35 public Result(int requestCode, int resultCode, Intent data) { in Result() argument
37 this.resultCode = resultCode; in Result()
52 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
54 mResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult()
/cts/tests/app/app/src/android/app/stubs/
DGetResultActivity.java32 public final int resultCode; field in GetResultActivity.Result
35 public Result(int requestCode, int resultCode, Intent data) { in Result() argument
37 this.resultCode = resultCode; in Result()
52 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
54 sResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult()
DActivityMonitorTestActivity.java36 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
38 mListener.onActivityResult(requestCode, resultCode, data); in onActivityResult()
57 void onActivityResult(int requestCode, int resultCode, Intent data); in onActivityResult() argument
DActivityManagerMemoryClassLaunchActivity.java56 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
57 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
60 mChildResult = resultCode; in onActivityResult()
/cts/tests/tests/os/src/android/os/cts/
DResultReceiverTest.java35 int resultCode = 1; in testResultReceiver() local
36 sender.send(resultCode, bundle); in testResultReceiver()
38 assertEquals(resultCode, sender.getResultCode()); in testResultReceiver()
61 protected void onReceiveResult(int resultCode, Bundle resultData) { in onReceiveResult() argument
62 super.onReceiveResult(resultCode, resultData); in onReceiveResult()
64 mResultCode = resultCode; in onReceiveResult()
DActivityTestsBase.java87 public void activityFinished(int resultCode, Intent data, RuntimeException where) { in activityFinished() argument
88 finishWithResult(resultCode, data, where); in activityFinished()
113 public void finishWithResult(int resultCode, Intent data) { in finishWithResult() argument
116 finishWithResult(resultCode, data, where); in finishWithResult()
119 public void finishWithResult(int resultCode, Intent data, RuntimeException where) { in finishWithResult() argument
121 mResultCode = resultCode; in finishWithResult()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DGetResultActivity.java32 public final int resultCode; field in GetResultActivity.Result
35 public Result(int requestCode, int resultCode, Intent data) { in Result() argument
37 this.resultCode = resultCode; in Result()
52 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
54 sResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult()
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DGetResultActivity.java32 public final int resultCode; field in GetResultActivity.Result
35 public Result(int requestCode, int resultCode, Intent data) { in Result() argument
37 this.resultCode = resultCode; in Result()
52 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
54 sResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult()
/cts/tests/providerui/src/android/providerui/cts/
DGetResultActivity.java32 public final int resultCode; field in GetResultActivity.Result
35 public Result(int requestCode, int resultCode, Intent data) { in Result() argument
37 this.resultCode = resultCode; in Result()
52 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
54 sResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DIntentSenderActivity.java44 public final int resultCode; field in IntentSenderActivity.Result
47 public Result(int resultCode, Intent data) { in Result() argument
48 this.resultCode = resultCode; in Result()
62 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
64 + ", resultCode=" + resultCode); in onActivityResult()
65 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
67 mResult.offer(new Result(resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DAbstractTestListActivity.java74 protected final void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
75 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
76 handleActivityResult(requestCode, resultCode, data); in onActivityResult()
80 protected void handleActivityResult(int requestCode, int resultCode, Intent data) { in handleActivityResult() argument
83 handleLaunchTestResult(resultCode, data); in handleActivityResult()
101 protected void handleLaunchTestResult(int resultCode, Intent data) { in handleLaunchTestResult() argument
107 if (resultCode == RESULT_OK) { in handleLaunchTestResult()
116 TestResult testResult = TestResult.fromActivityResult(resultCode, data); in handleLaunchTestResult()
123 resultCode, data, DisplayMode.FOLDED.toString())); in handleLaunchTestResult()
125 resultCode, data, DisplayMode.UNFOLDED.toString())); in handleLaunchTestResult()
/cts/tests/sensor/src/android/hardware/cts/helpers/
DActivityResultMultiplexedLatch.java55 return mEntry.resultCode; in await()
73 public volatile int resultCode; field in ActivityResultMultiplexedLatch.Entry
103 public void onActivityResult(int requestCode, int resultCode) { in onActivityResult() argument
112 entry.resultCode = resultCode; in onActivityResult()
/cts/tests/admin/app/src/android/admin/app/
DCtsDeviceAdminActivationTestActivity.java38 void onActivityResult(int requestCode, int resultCode, Intent data); in onActivityResult() argument
62 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
63 Log.d(TAG, "onActivityResult(): requestCode=" + requestCode + ", resultCode=" + resultCode in onActivityResult()
66 mOnActivityResultListener.onActivityResult(requestCode, resultCode, data); in onActivityResult()
70 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DGetResultActivity.java38 public final int resultCode; field in GetResultActivity.Result
41 public Result(int requestCode, int resultCode, Intent data) { in Result() argument
43 this.resultCode = resultCode; in Result()
67 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
70 mResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult()
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccTestResolutionActivity.java59 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
60 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
63 resultCode == RESULT_OK ? RESULT_CODE_TEST_PASSED : RESULT_CODE_TEST_FAILED); in onActivityResult()
102 private void sendCallbackAndFinish(int resultCode) { in sendCallbackAndFinish() argument
105 mCallbackIntent.send(resultCode); in sendCallbackAndFinish()
/cts/tests/tests/gameservice/CtsGameServiceStartActivityVerifier/src/android/service/games/cts/startactivityverifier/
DMainActivity.java40 int resultCode; in onCreate()
42 resultCode = Integer.parseInt(resultCodeEditable.getText().toString()); in onCreate()
50 setResult(resultCode); in onCreate()
54 setResult(resultCode, data); in onCreate()
/cts/tests/tests/security/src/android/security/cts/
DStartForFutureActivity.kt33 override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { in onActivityResult()
34 super.onActivityResult(requestCode, resultCode, data) in onActivityResult()
35 future!!.complete(Instrumentation.ActivityResult(resultCode, data)) in onActivityResult()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPrivateDnsPolicyTest.java75 int resultCode = mDevicePolicyManager.setGlobalPrivateDnsModeOpportunistic(getWho()); in callSetGlobalPrivateDnsOpportunisticModeExpectingResult() local
81 expectedResult, resultCode), in callSetGlobalPrivateDnsOpportunisticModeExpectingResult()
82 expectedResult, resultCode); in callSetGlobalPrivateDnsOpportunisticModeExpectingResult()
91 int resultCode = mDevicePolicyManager.setGlobalPrivateDnsModeSpecifiedHost( in callSetGlobalPrivateDnsHostModeExpectingResult() local
98 privateDnsHost, expectedResult, resultCode), in callSetGlobalPrivateDnsHostModeExpectingResult()
99 expectedResult, resultCode); in callSetGlobalPrivateDnsHostModeExpectingResult()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DTestActivity.java47 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
49 if (resultCode != RESULT_OK) { in onActivityResult()
50 Log.w(TAG, "Activity returned error code: " + resultCode); in onActivityResult()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWaitForResultActivity.java65 protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { in onActivityResult() argument
67 if (resultCode != RESULT_OK) { in onActivityResult()
79 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
108 public void onReceiveResult(int resultCode, Bundle data) { in startServiceToWaitForResult()
110 mStatus = resultCode == 1; in startServiceToWaitForResult()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DAttributionSourceActivity.kt46 protected override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent) { in onActivityResult()
48 super.onActivityResult(requestCode, resultCode, data) in onActivityResult()
50 Log.i(TAG, "Received result " + resultCode + ", finishing activity") in onActivityResult()
51 setResult(resultCode) in onActivityResult()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DTrampolineForResultActivity.java61 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
62 Log.d(TAG, "onActivityResult(): req=" + requestCode + ", res=" + resultCode); in onActivityResult()
64 mActualResultCode = resultCode; in onActivityResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DBaseSensorTestActivity.java196 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
197 mActivityResultMultiplexedLatch.onActivityResult(requestCode, resultCode); in onActivityResult()
220 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in run() local
221 if (resultCode == SensorTestDetails.ResultCode.SKIPPED) { in run()
225 if (resultCode == SensorTestDetails.ResultCode.PASS) { in run()
488 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in setTestResult() local
489 switch (resultCode) { in setTestResult()
504 throw new IllegalStateException("Unknown ResultCode: " + resultCode); in setTestResult()
517 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in executeActivityTests() local
518 if (resultCode == SensorTestDetails.ResultCode.PASS) { in executeActivityTests()
[all …]

1234567