/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | ActivityResultMultiplexedLatch.java | 62 return mEntry.requestCode; in getRequestCode() 71 public final int requestCode; field in ActivityResultMultiplexedLatch.Entry 75 public Entry(int requestCode) { in Entry() argument 76 this.requestCode = requestCode; in Entry() 87 int requestCode = getRequestCode(); in bindThread() local 90 if (mActivityEntries.containsKey(requestCode)) { in bindThread() 93 entry = new Entry(requestCode); in bindThread() 94 mActivityEntries.put(requestCode, entry); in bindThread() 103 public void onActivityResult(int requestCode, int resultCode) { in onActivityResult() argument 106 entry = mActivityEntries.remove(requestCode); in onActivityResult()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | FutureResultActivity.kt | 38 val requestCode = nextRequestCode.get() in doAndAwaitStart() constant 41 nextRequestCode.get() >= requestCode + 1 in doAndAwaitStart() 43 return requests[requestCode]!! in doAndAwaitStart() 47 override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { in onActivityResult() 48 requests[requestCode]!!.complete(resultCode) in onActivityResult() 52 val requestCode = nextRequestCode.getAndIncrement() in startActivityForResult() constant 54 requests[requestCode] = future in startActivityForResult() 55 startActivityForResult(intent, requestCode) in startActivityForResult()
|
/cts/tests/storageaccess/src/android/storageaccess/cts/ |
D | ClientActivity.kt | 38 requestCode: Int, in startActivityForFutureResult() 42 "requestCode=$requestCode intent=$intent") in startActivityForFutureResult() 43 super.startActivityForResult(intent, requestCode) in startActivityForFutureResult() 47 override fun startActivityForResult(intent: Intent?, requestCode: Int, options: Bundle?) { in startActivityForResult() 54 super.startActivityForResult(intent, requestCode, options) in startActivityForResult() 57 override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { in onActivityResult() 58 val result = Result(requestCode, resultCode, data) in onActivityResult() 67 data class Result(val requestCode: Int, val resultCode: Int, val data: Intent?) constant in android.storageaccess.cts.ClientActivity.Result
|
/cts/tests/tests/gameservice/src/android/service/games/testing/ |
D | GetResultActivity.java | 27 public final int requestCode; field in GetResultActivity.Result 31 public Result(int requestCode, int resultCode, Intent data) { in Result() argument 32 this.requestCode = requestCode; 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/tests/autofillservice/src/android/autofillservice/cts/activities/ |
D | TrampolineForResultActivity.java | 42 public void startForResult(Intent intent, int requestCode) { in startForResult() argument 43 mExpectedRequestCode = requestCode; in startForResult() 44 startActivityForResult(intent, requestCode); in startForResult() 61 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 62 Log.d(TAG, "onActivityResult(): req=" + requestCode + ", res=" + resultCode); in onActivityResult() 63 mActualRequestCode = requestCode; in onActivityResult()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | MyActivity.java | 31 public final int requestCode; field in MyActivity.Result 35 public Result(int requestCode, int resultCode, Intent data) { in Result() argument 36 this.requestCode = requestCode; 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/ |
D | GetResultActivity.java | 31 public final int requestCode; field in GetResultActivity.Result 35 public Result(int requestCode, int resultCode, Intent data) { in Result() argument 36 this.requestCode = requestCode; 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()
|
D | ActivityManagerMemoryClassLaunchActivity.java | 56 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 57 super.onActivityResult(requestCode, resultCode, data); in onActivityResult() 58 if (requestCode == 1337) { in onActivityResult() 63 throw new IllegalStateException("Request code: " + requestCode); in onActivityResult()
|
D | ActivityMonitorTestActivity.java | 36 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
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | GetResultActivity.java | 31 public final int requestCode; field in GetResultActivity.Result 35 public Result(int requestCode, int resultCode, Intent data) { in Result() argument 36 this.requestCode = requestCode; 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/ |
D | GetResultActivity.java | 31 public final int requestCode; field in GetResultActivity.Result 35 public Result(int requestCode, int resultCode, Intent data) { in Result() argument 36 this.requestCode = requestCode; 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/ |
D | GetResultActivity.java | 31 public final int requestCode; field in GetResultActivity.Result 35 public Result(int requestCode, int resultCode, Intent data) { in Result() argument 36 this.requestCode = requestCode; 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/admin/app/src/android/admin/app/ |
D | CtsDeviceAdminActivationTestActivity.java | 38 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/ |
D | GetResultActivity.java | 37 public final int requestCode; field in GetResultActivity.Result 41 public Result(int requestCode, int resultCode, Intent data) { in Result() argument 42 this.requestCode = requestCode; 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/tools/cts-holo-generation/src/com/android/cts/holo_capture/ |
D | CaptureActivity.java | 42 int requestCode = 0; in onCreate() local 43 startActivityForResult(intent, requestCode); in onCreate() 47 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/securitybulletin/test-apps/CVE-2023-21254/helper-app/src/android/security/cts/CVE_2023_21254_helper/ |
D | PocActivity.java | 37 public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] results) { in onRequestPermissionsResult() argument 38 super.onRequestPermissionsResult(requestCode, permissions, results); in onRequestPermissionsResult() 39 if (requestCode == REQUEST_CODE in onRequestPermissionsResult()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21249/helper-app/src/android/security/cts/CVE_2023_21249_helper/ |
D | PocActivity.java | 37 public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] results) { in onRequestPermissionsResult() argument 38 super.onRequestPermissionsResult(requestCode, permissions, results); in onRequestPermissionsResult() 39 if (requestCode == REQUEST_CODE in onRequestPermissionsResult()
|
/cts/hostsidetests/packagemanager/dynamicmime/app/src/android/dynamicmime/app/ |
D | AppMimeGroupsReceiver.java | 48 int requestCode = intent.getIntExtra(EXTRA_REQUEST, -1); in onReceive() local 52 handleRequest(context, mimeGroup, mimeTypes, requestCode, response); in onReceive() 60 int requestCode, Intent response) { in handleRequest() argument 61 switch (requestCode) { in handleRequest()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | AbstractTestListActivity.java | 74 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 81 switch (requestCode) { in handleActivityResult() 87 throw new IllegalArgumentException("Unknown request code: " + requestCode); in handleActivityResult()
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
D | VpnClient.java | 62 private void prepareAndStart(int requestCode) { in prepareAndStart() argument 65 startActivityForResult(intent, requestCode); in prepareAndStart() 67 onActivityResult(requestCode, RESULT_OK, null); in prepareAndStart()
|
/cts/tests/storageaccess/src/android/storageaccess/cts/tests/ |
D | ScopedDirectoryAccessClientTest.kt | 74 var requestCode = 100 in <lambda>() variable 89 val futureResult = scenario.startActivityForFutureResult(intent, ++requestCode) in <lambda>() 94 assertEquals(/* expected */ requestCode, /* actual */ it.requestCode) in <lambda>()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/ |
D | AbstractBaseTest.java | 73 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 76 if (requestCode == REQUEST_ENROLL_WHEN_NONE_ENROLLED) { in onActivityResult() 122 private void startBiometricEnroll(int requestCode, int requestedStrength) { in startBiometricEnroll() argument 128 startActivityForResult(enrollIntent, requestCode); in startBiometricEnroll()
|
/cts/tests/framework/base/windowmanager/backgroundactivity/TestApp/src/android/server/wm/backgroundactivity/appa/ |
D | WidgetConfigTestActivity.java | 46 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 47 super.onActivityResult(requestCode, resultCode, data); in onActivityResult() 48 if (requestCode == REQUEST_BIND_APPWIDGET && resultCode == Activity.RESULT_OK) { in onActivityResult()
|
D | ForegroundActivity.java | 83 int requestCode = nextRequestCode++; 84 startIntentSenderForResult(pi.getIntentSender(), requestCode, null, 86 requestCodesUsed.add(requestCode); 92 for (int requestCode : requestCodesUsed) { 93 finishActivity(requestCode);
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/devicepolicy/provisioning/ |
D | StartProvisioningActivity.java | 62 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 63 if (requestCode == REQUEST_CODE) { in onActivityResult() 72 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
|