Home
last modified time | relevance | path

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

123

/cts/tests/sensor/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/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsBgVsFgActions.java72 public static void doAction(Context ctx, String actionCode, String requestCode) { in doAction() argument
80 doOptimizedBleScan(ctx, requestCode); in doAction()
83 doUnoptimizedBleScan(ctx, requestCode); in doAction()
86 doGpsUpdate(ctx, requestCode); in doAction()
89 doScheduleJob(ctx, requestCode); in doAction()
92 doSync(ctx, requestCode); in doAction()
95 doWifiScan(ctx, requestCode); in doAction()
98 doWifiDownload(ctx, requestCode); in doAction()
101 doWifiUpload(ctx, requestCode); in doAction()
109 private static void doOptimizedBleScan(Context ctx, String requestCode) { in doOptimizedBleScan() argument
[all …]
DBatteryStatsBackgroundService.java38 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()
DBatteryStatsForegroundActivity.java44 String requestCode = intent.getStringExtra(KEY_REQUEST_CODE); in onCreate() local
45 Log.i(TAG, "Starting " + action + " from foreground activity as request " + requestCode); in onCreate()
48 BatteryStatsBgVsFgActions.checkAppState(this, false, action, requestCode); in onCreate()
50 doAction(this, action, requestCode); in onCreate()
DBatteryStatsWifiTransferTests.java35 public static String download(String requestCode) { in download() argument
51 Log.i(TAG, String.format("request %s d=%d", requestCode, total)); in download()
/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()
/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()
/cts/tests/tests/provider/src/android/provider/cts/
DGetResultActivity.java31 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/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()
/cts/hostsidetests/incident/src/com/android/server/cts/
DBatteryStatsValidationTest.java418 String requestCode = executeForeground(ACTION_WIFI_DOWNLOAD, 60_000);
419 long downloadedBytes = getDownloadedBytes(requestCode);
428 requestCode = executeBackground(ACTION_WIFI_DOWNLOAD, 60_000);
429 downloadedBytes = getDownloadedBytes(requestCode);
525 String requestCode = executeBackground(actionValue); in executeBackground() local
526 String searchString = getCompletedActionString(actionValue, requestCode); in executeBackground()
528 return requestCode; in executeBackground()
541 String requestCode = Integer.toString(new Random().nextInt()); in executeBackground() local
546 KEY_REQUEST_CODE, requestCode)); in executeBackground()
547 return requestCode; in executeBackground()
[all …]
/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()
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
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCompTestActivity.java54 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
55 if (requestCode == PROVISION_MANAGED_PROFILE_REQUEST_CODE) { in onActivityResult()
74 } else if (requestCode == POLICY_TRANSPARENCY_REQUEST_CODE) { in onActivityResult()
82 Log.e(TAG, "Unknown request code received " + requestCode); in onActivityResult()
DUtils.java71 static void provisionManagedProfile(Activity activity, ComponentName admin, int requestCode) { in provisionManagedProfile() argument
75 activity.startActivityForResult(sending, requestCode); in provisionManagedProfile()
112 static void setScreenLock(Activity activity, int requestCode) { in setScreenLock() argument
118 activity.startActivityForResult(intent, requestCode)) in setScreenLock()
DVpnTestActivity.java83 protected void onActivityResult(int requestCode, int result, Intent data) { in onActivityResult() argument
84 if (requestCode == REQUEST_VPN_CODE) { in onActivityResult()
90 Log.w(TAG, "Unexpected request code: " + requestCode); in onActivityResult()
/cts/common/device-side/util/src/com/android/compatibility/common/util/devicepolicy/provisioning/
DStartProvisioningActivity.java62 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()
/cts/tests/app/src/android/app/cts/
DFragmentReceiveResultTest.java118 private void startActivityForResult(final int requestCode, final int resultCode, in startActivityForResult() argument
127 mFragment.startActivityForResult(intent, requestCode); in startActivityForResult()
133 private void startIntentSenderForResult(final int requestCode, final int resultCode, in startIntentSenderForResult() argument
143 requestCode, intent, 0); in startIntentSenderForResult()
147 requestCode, null, 0, 0, 0, null); in startIntentSenderForResult()
/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/apps/CtsVerifier/src/com/android/cts/verifier/companion/
DCompanionDeviceTestActivity.java97 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
98 if (requestCode == REQUEST_CODE_CHOOSER) { in onActivityResult()
132 } else super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/tapjacking/
DDeviceAdminTapjackingTestActivity.java102 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
103 if (requestCode == REQUEST_ENABLE_ADMIN) { in onActivityResult()
110 else if (requestCode == REQUEST_OVERLAY_ACTIVITY) { 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()

123