Home
last modified time | relevance | path

Searched refs:requestCode (Results 1 – 25 of 46) sorted by relevance

12

/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DActivityResultMultiplexedLatch.java62 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/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DMyActivity.java31 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()
DDocumentsClientTestCase.java134 assertEquals(REQUEST_CODE, result.requestCode); in assertActivityFailed()
141 assertEquals(prefix + ": invalid request code", REQUEST_CODE, result.requestCode); in assertActivitySucceeded()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DBasePermissionActivity.java34 public final int requestCode; field in BasePermissionActivity.Result
38 public Result(int requestCode, String[] permissions, int[] grantResults) { in Result() argument
39 this.requestCode = requestCode; in Result()
57 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult() argument
60 mResult.offer(new Result(requestCode, permissions, grantResults), 5, TimeUnit.SECONDS); in onRequestPermissionsResult()
DBasePermissionsTest.java137 int requestCode, String[] permissions, boolean[] granted) { in assertPermissionRequestResult() argument
138 assertEquals(requestCode, result.requestCode); in assertPermissionRequestResult()
182 String[] permissions, int requestCode, Class<?> clazz, Runnable postRequestAction) in requestPermissions() argument
191 activity.requestPermissions(permissions, requestCode); in requestPermissions()
/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
54 switch (requestCode) { in handleActivityResult()
60 throw new IllegalArgumentException("Unknown request code: " + requestCode); in handleActivityResult()
DTestListActivity.java105 int requestCode, String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument
106 if (requestCode == CTS_VERIFIER_PERMISSION_REQUEST) { in onRequestPermissionsResult()
/cts/tools/cts-holo-generation/src/com/android/cts/holo_capture/
DCaptureActivity.java42 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/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/tests/app/app/src/android/app/stubs/
DActivityManagerMemoryClassLaunchActivity.java56 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()
/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()
DAudioManagerStub.java85 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
86 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationListenerActivity.java50 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
51 switch (requestCode) { in onActivityResult()
60 Log.wtf(getLogTag(), "Unknown requestCode " + requestCode + "; data = " + data); 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()
83 switch (requestCode) { in onActivityResult()
/cts/tests/openglperf2/src/android/opengl2/cts/reference/
DGLReferenceActivity.java65 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
66 if (requestCode == GAME_ACTIVITY_CODE) { in onActivityResult()
/cts/apps/PermissionApp/src/com/android/cts/permission/permissionapp/
DPermissionActivity.java69 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult() argument
71 if (requestCode != PERMISSIONS_REQUEST_CODE || in onRequestPermissionsResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBluetoothToggleActivity.java97 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
98 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
99 switch (requestCode) { in onActivityResult()
DConnectionAccessClientActivity.java90 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
91 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
92 switch (requestCode) { in onActivityResult()
DConnectionAccessServerActivity.java92 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
93 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
94 switch (requestCode) { in onActivityResult()
DDevicePickerActivity.java113 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
114 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
115 if (requestCode == ENABLE_BLUETOOTH_REQUEST) { in onActivityResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DScreenLockBoundKeysTest.java189 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
190 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
191 switch (requestCode) { in onActivityResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DDeviceOwnerNegativeTestActivity.java100 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
101 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
DVpnTestActivity.java83 protected void onActivityResult(int requestCode, int result, Intent data) { in onActivityResult() argument
84 if (requestCode == REQUEST_VPN_CODE && result == RESULT_OK) { 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
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyActivity.java40 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument

12