Home
last modified time | relevance | path

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

123

/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/apps/CtsVerifier/src/com/android/cts/verifier/
DAbstractTestListActivity.java47 protected final void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
48 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
49 handleActivityResult(requestCode, resultCode, data); in onActivityResult()
53 protected void handleActivityResult(int requestCode, int resultCode, Intent data) { in handleActivityResult() argument
56 handleLaunchTestResult(resultCode, data); in handleActivityResult()
74 protected void handleLaunchTestResult(int resultCode, Intent data) { in handleLaunchTestResult() argument
75 if (resultCode == RESULT_OK) { in handleLaunchTestResult()
76 TestResult testResult = TestResult.fromActivityResult(resultCode, data); in handleLaunchTestResult()
/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/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/tests/hardware/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.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/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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DBaseSensorTestActivity.java174 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
175 mActivityResultMultiplexedLatch.onActivityResult(requestCode, resultCode); in onActivityResult()
199 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in run() local
200 if (resultCode == SensorTestDetails.ResultCode.SKIPPED) { in run()
204 if (resultCode == SensorTestDetails.ResultCode.PASS) { in run()
432 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in setTestResult() local
433 switch(resultCode) { in setTestResult()
447 throw new IllegalStateException("Unknown ResultCode: " + resultCode); in setTestResult()
460 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in executeActivityTests() local
461 if (resultCode == SensorTestDetails.ResultCode.PASS) { in executeActivityTests()
[all …]
DSensorCtsVerifierTestActivity.java104 SensorTestDetails.ResultCode resultCode = testDetails.getResultCode(); in executeTest() local
105 switch(resultCode) { in executeTest()
118 throw new IllegalStateException("Unknown ResultCode: " + resultCode); in executeTest()
/cts/tests/app/app/src/android/app/stubs/
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()
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()
DCTSActivityTestCaseBase.java36 public void setResult(int resultCode) { in setResult() argument
39 mSync.mResult = resultCode; in setResult()
/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/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/permission2/src/android/permission2/cts/
DNoReceiveSmsPermissionTest.java145 private void handleResultCode(int resultCode, String action) { in handleResultCode() argument
146 if (resultCode == Activity.RESULT_OK) { in handleResultCode()
151 String reason = getErrorReason(resultCode); in handleResultCode()
169 private String getErrorReason(int resultCode) { in getErrorReason() argument
170 switch (resultCode) { in getErrorReason()
/cts/tools/cts-holo-generation/src/com/android/cts/holo_capture/
DCaptureActivity.java47 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
48 Log.i(TAG, "onActivityResult req:" + requestCode + " res:" + resultCode); in onActivityResult()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyActivity.java40 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
41 if (mResult.offer(resultCode) == false) { in onActivityResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DConnectionAccessClientActivity.java90 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
91 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
94 if (resultCode == RESULT_OK) { in onActivityResult()
103 if (resultCode == RESULT_OK) { in onActivityResult()
DBluetoothToggleActivity.java97 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
98 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
101 boolean enabledBluetooth = RESULT_OK == resultCode; in onActivityResult()
/cts/tests/tests/media/src/android/media/cts/
DResourceManagerStubActivity.java59 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
60 Log.d(TAG, "Activity " + requestCode + " finished with resultCode " + resultCode); in onActivityResult()
61 mResults[requestCode] = (resultCode == RESULT_OK); in onActivityResult()
/cts/tests/openglperf2/src/android/opengl2/cts/reference/
DGLReferenceActivity.java65 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
67 if (resultCode == RESULT_OK) { in onActivityResult()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DActivityTransitionActivity.java70 public int resultCode = 0; field in ActivityTransitionActivity
222 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
223 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
224 this.resultCode = resultCode; in onActivityResult()

123