Home
last modified time | relevance | path

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

12345

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/reporting/
DSensorTestDetails.java42 public SensorTestDetails(String name, ResultCode resultCode) { in SensorTestDetails() argument
43 this(name, resultCode, null /* summary */); in SensorTestDetails()
46 public SensorTestDetails(String name, ResultCode resultCode, String summary) { in SensorTestDetails() argument
48 mResultCode = resultCode; in SensorTestDetails()
58 ResultCode resultCode = ResultCode.PASS; in SensorTestDetails() local
60 resultCode = ResultCode.FAIL; in SensorTestDetails()
62 resultCode = ResultCode.SKIPPED; in SensorTestDetails()
66 mResultCode = resultCode; in SensorTestDetails()
79 ResultCode resultCode = ResultCode.FAIL; in SensorTestDetails() local
81 resultCode = ResultCode.INTERRUPTED; in SensorTestDetails()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/reporting/
DGnssTestDetails.java40 public GnssTestDetails(String name, ResultCode resultCode) { in GnssTestDetails() argument
41 this(name, resultCode, null /* summary */); in GnssTestDetails()
44 public GnssTestDetails(String name, ResultCode resultCode, String summary) { in GnssTestDetails() argument
46 mResultCode = resultCode; in GnssTestDetails()
56 ResultCode resultCode = ResultCode.PASS; in GnssTestDetails() local
58 resultCode = ResultCode.FAIL; in GnssTestDetails()
60 resultCode = ResultCode.SKIPPED; in GnssTestDetails()
64 mResultCode = resultCode; in GnssTestDetails()
77 ResultCode resultCode = ResultCode.FAIL; in GnssTestDetails() local
79 resultCode = ResultCode.INTERRUPTED; in GnssTestDetails()
[all …]
/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/apps/CtsVerifier/src/com/android/cts/verifier/
DAbstractTestListActivity.java62 protected final void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
63 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
64 handleActivityResult(requestCode, resultCode, data); in onActivityResult()
68 protected void handleActivityResult(int requestCode, int resultCode, Intent data) { in handleActivityResult() argument
71 handleLaunchTestResult(resultCode, data); in handleActivityResult()
89 protected void handleLaunchTestResult(int resultCode, Intent data) { in handleLaunchTestResult() argument
90 if (resultCode == RESULT_OK) { in handleLaunchTestResult()
95 TestResult testResult = TestResult.fromActivityResult(resultCode, data); in handleLaunchTestResult()
/cts/tests/tests/os/src/android/os/cts/
DResultReceiverTest.java33 int resultCode = 1; in testResultReceiver() local
34 sender.send(resultCode, bundle); in testResultReceiver()
36 assertEquals(resultCode, sender.getResultCode()); in testResultReceiver()
59 protected void onReceiveResult(int resultCode, Bundle resultData) { in onReceiveResult() argument
60 super.onReceiveResult(resultCode, resultData); in onReceiveResult()
62 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/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DIntentSenderActivity.java42 public final int resultCode; field in IntentSenderActivity.Result
45 public Result(int resultCode, Intent data) { in Result() argument
46 this.resultCode = resultCode; in Result()
58 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
59 if (resultCode == Activity.RESULT_OK) { in onActivityResult()
61 mResult.offer(new Result(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/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
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/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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DBaseSensorTestActivity.java198 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
199 mActivityResultMultiplexedLatch.onActivityResult(requestCode, resultCode); in onActivityResult()
223 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in run() local
224 if (resultCode == SensorTestDetails.ResultCode.SKIPPED) { in run()
228 if (resultCode == SensorTestDetails.ResultCode.PASS) { in run()
508 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in setTestResult() local
509 switch(resultCode) { in setTestResult()
523 throw new IllegalStateException("Unknown ResultCode: " + resultCode); in setTestResult()
536 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in executeActivityTests() local
537 if (resultCode == SensorTestDetails.ResultCode.PASS) { in executeActivityTests()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPrivateDnsPolicyTest.java76 int resultCode = mDevicePolicyManager.setGlobalPrivateDnsModeOpportunistic(getWho()); in callSetGlobalPrivateDnsOpportunisticModeExpectingResult() local
82 expectedResult, resultCode), in callSetGlobalPrivateDnsOpportunisticModeExpectingResult()
83 expectedResult, resultCode); in callSetGlobalPrivateDnsOpportunisticModeExpectingResult()
92 int resultCode = mDevicePolicyManager.setGlobalPrivateDnsModeSpecifiedHost( in callSetGlobalPrivateDnsHostModeExpectingResult() local
99 privateDnsHost, expectedResult, resultCode), in callSetGlobalPrivateDnsHostModeExpectingResult()
100 expectedResult, resultCode); in callSetGlobalPrivateDnsHostModeExpectingResult()
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccTestResolutionActivity.java58 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
59 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
62 resultCode == RESULT_OK ? RESULT_CODE_TEST_PASSED : RESULT_CODE_TEST_FAILED); in onActivityResult()
99 private void sendCallbackAndFinish(int resultCode) { in sendCallbackAndFinish() argument
102 mCallbackIntent.send(resultCode); in sendCallbackAndFinish()
/cts/tests/admin/app/src/android/admin/app/
DCtsDeviceAdminActivationTestActivity.java33 void onActivityResult(int requestCode, int resultCode, Intent data); in onActivityResult() argument
56 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
58 mOnActivityResultListener.onActivityResult(requestCode, resultCode, data); in onActivityResult()
62 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
DBaseGnssTestActivity.java155 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
156 mActivityResultMultiplexedLatch.onActivityResult(requestCode, resultCode); in onActivityResult()
179 GnssTestDetails.ResultCode resultCode = testDetails.getResultCode(); in run() local
180 if (resultCode == GnssTestDetails.ResultCode.SKIPPED) { in run()
184 if (resultCode == GnssTestDetails.ResultCode.PASS) { in run()
338 GnssTestDetails.ResultCode resultCode = testDetails.getResultCode(); in setTestResult() local
339 switch(resultCode) { in setTestResult()
353 throw new IllegalStateException("Unknown ResultCode: " + resultCode); in setTestResult()
366 GnssTestDetails.ResultCode resultCode = testDetails.getResultCode(); in executeActivityTests() local
367 if (resultCode == GnssTestDetails.ResultCode.PASS) { in executeActivityTests()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAuthenticationActivity.java154 public static void setResultCode(int resultCode) { in setResultCode() argument
156 sResultCode = resultCode; in setResultCode()
164 public static void setResultCode(CountDownLatch latch, int resultCode) { in setResultCode() argument
167 sResultCode = resultCode; in setResultCode()
245 final int resultCode; in doIt() local
247 resultCode = sResultCode; in doIt()
249 Log.d(TAG, "Returning code " + resultCode); in doIt()
250 setResult(resultCode, intent); in doIt()
/cts/tests/app/app/src/android/app/stubs/
DActivityTestsBase.java92 public void activityFinished(int resultCode, Intent data, RuntimeException where) { in activityFinished() argument
93 finishWithResult(resultCode, data, null, where); in activityFinished()
125 public void finishWithResult(int resultCode, Intent data) { in finishWithResult() argument
128 finishWithResult(resultCode, data, null, where); in finishWithResult()
131 public void finishWithResult(int resultCode, Intent data, Activity activity, in finishWithResult() argument
134 mResultCode = resultCode; in finishWithResult()
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/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DScreenLockTestActivity.java81 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
82 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
85 handleAddDeviceAdminResult(resultCode, data); in onActivityResult()
90 private void handleAddDeviceAdminResult(int resultCode, Intent data) { in handleAddDeviceAdminResult() argument
91 if (resultCode == RESULT_OK) { in handleAddDeviceAdminResult()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DActivityTransitionActivity.java73 public int resultCode = 0; field in ActivityTransitionActivity
235 public void onActivityReenter(int resultCode, Intent data) { in onActivityReenter() argument
236 if (resultCode == RESULT_OK) { in onActivityReenter()
242 super.onActivityReenter(resultCode, data); in onActivityReenter()
246 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
247 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
248 this.resultCode = resultCode; in onActivityResult()
/cts/tests/tests/role/CtsRoleTestApp/src/android/app/role/cts/app/
DChangeDefaultDialerActivity.java44 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
46 setResult(resultCode, data); in onActivityResult()
49 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
DChangeDefaultSmsActivity.java44 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
46 setResult(resultCode, data); in onActivityResult()
49 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
DRequestRoleActivity.java49 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
51 setResult(resultCode, data); in onActivityResult()
54 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/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()

12345