/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/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/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
D | BatteryStatsBgVsFgActions.java | 81 public static void doAction(Context ctx, String actionCode, String requestCode) { in doAction() argument 89 doOptimizedBleScan(ctx, requestCode); in doAction() 92 doUnoptimizedBleScan(ctx, requestCode); in doAction() 95 doScheduleJob(ctx, requestCode); in doAction() 98 doSync(ctx, requestCode); in doAction() 102 tellHostActionFinished(ACTION_SLEEP_WHILE_BACKGROUND, requestCode); in doAction() 105 doNothingAsync(ctx, ACTION_SLEEP_WHILE_TOP, requestCode); in doAction() 108 showApplicationOverlay(ctx, requestCode); in doAction() 116 private static void showApplicationOverlay(Context ctx, String requestCode) { in showApplicationOverlay() argument 140 tellHostActionFinished(ACTION_SHOW_APPLICATION_OVERLAY, requestCode); in showApplicationOverlay() [all …]
|
D | BatteryStatsBackgroundService.java | 38 String requestCode = intent.getStringExtra(KEY_REQUEST_CODE); in onHandleIntent() local 39 Log.i(TAG, "Starting " + action + " from background service as request " + requestCode); in onHandleIntent() 42 BatteryStatsBgVsFgActions.checkAppState(this, true, action, requestCode); in onHandleIntent() 44 doAction(this, action, requestCode); in onHandleIntent()
|
D | BatteryStatsForegroundActivity.java | 45 String requestCode = intent.getStringExtra(KEY_REQUEST_CODE); in onCreate() local 46 Log.i(TAG, "Starting " + action + " from foreground activity as request " + requestCode); in onCreate() 49 BatteryStatsBgVsFgActions.checkAppState(this, false, action, requestCode); in onCreate() 51 doAction(this, action, requestCode); in onCreate()
|
/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/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/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
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/incident/src/com/android/server/cts/ |
D | BatteryStatsValidationTest.java | 320 String requestCode = executeBackground(actionValue); in executeBackground() local 321 String searchString = getCompletedActionString(actionValue, requestCode); in executeBackground() 323 return requestCode; in executeBackground() 336 String requestCode = Integer.toString(new Random().nextInt()); in executeBackground() local 341 KEY_REQUEST_CODE, requestCode)); in executeBackground() 342 return requestCode; in executeBackground() 368 String requestCode = executeForeground(actionValue); in executeForeground() local 369 String searchString = getCompletedActionString(actionValue, requestCode); in executeForeground() 371 return requestCode; in executeForeground() 383 String requestCode = Integer.toString(new Random().nextInt()); in executeForeground() local [all …]
|
/cts/tests/tests/role/CtsRoleTestApp/src/android/app/role/cts/app/ |
D | ChangeDefaultDialerActivity.java | 44 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 45 if (requestCode == REQUEST_CODE_CHANGE_DEFAULT_DIALER) { in onActivityResult() 49 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
|
D | RequestRoleActivity.java | 45 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 46 if (requestCode == REQUEST_CODE_REQUEST_ROLE) { in onActivityResult() 50 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
|
D | ChangeDefaultSmsActivity.java | 44 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 45 if (requestCode == REQUEST_CODE_CHANGE_DEFAULT_SMS) { in onActivityResult() 49 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | AbstractTestListActivity.java | 64 protected final void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 65 super.onActivityResult(requestCode, resultCode, data); in onActivityResult() 66 handleActivityResult(requestCode, resultCode, data); in onActivityResult() 70 protected void handleActivityResult(int requestCode, int resultCode, Intent data) { in handleActivityResult() argument 71 switch (requestCode) { in handleActivityResult() 77 throw new IllegalArgumentException("Unknown request code: " + requestCode); in handleActivityResult()
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | WaitForResultActivity.java | 53 protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { in onActivityResult() argument 54 if (requestCode == REQUEST_CODE_WAIT_FOR_RESULT) { in onActivityResult() 59 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
|
/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/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/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/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()
|