Home
last modified time | relevance | path

Searched refs:ActivityResult (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/gameservice/src/android/service/games/testing/
DActivityResult.java28 public final class ActivityResult implements Parcelable { class
35 public static final Creator<ActivityResult> CREATOR = new Creator<ActivityResult>() {
37 public ActivityResult createFromParcel(Parcel in) {
41 return new ActivityResult(gameSessionPackageName, success, failure);
45 public ActivityResult[] newArray(int size) {
46 return new ActivityResult[size];
50 public static ActivityResult forSuccess(String gameSessionPackageName, int resultCode, in forSuccess()
52 return new ActivityResult(gameSessionPackageName, new Success(resultCode, data), null); in forSuccess()
55 public static ActivityResult forError(String gameSessionPackageName, Throwable t) { in forError()
56 return new ActivityResult(gameSessionPackageName, null, in forError()
[all …]
DIGameServiceTestService.aidl21 import android.service.games.testing.ActivityResult;
40 ActivityResult getLastActivityResult(); in getLastActivityResult()
DActivityResult.aidl18 parcelable ActivityResult;
/cts/tests/app/src/android/app/cts/
DInstrumentation_ActivityResultTest.java21 import android.app.Instrumentation.ActivityResult;
29 ActivityResult result = new ActivityResult(Activity.RESULT_OK, intent); in testActivityResultOp()
33 result = new ActivityResult(Activity.RESULT_CANCELED, intent); in testActivityResultOp()
DInstrumentation_ActivityMonitorTest.java22 import android.app.Instrumentation.ActivityResult;
47 ActivityResult result = new ActivityResult(Activity.RESULT_OK, new Intent()); in testActivityMonitor()
93 final ActivityResult result = new ActivityResult(Activity.RESULT_OK, new Intent()); in testActivityMonitor_onStartActivity()
147 new ActivityResult(expectedResultCode, new Intent(expectedAction))); in testActivityMonitor_onStartActivityBlocks()
197 new ActivityResult(expectedResultCode, new Intent(expectedAction)), in testActivityMonitor_onStartActivityAndIntentFilter()
199 … cam.setResultToReturn(new ActivityResult(1111, new Intent("matched_using_onStartActivity"))); in testActivityMonitor_onStartActivityAndIntentFilter()
249 new ActivityResult(expectedResultCode, new Intent(expectedAction)), in testActivityMonitor_onStartActivityAndActivityClass()
251 … cam.setResultToReturn(new ActivityResult(2222, new Intent("matched_using_onStartActivity"))); in testActivityMonitor_onStartActivityAndActivityClass()
283 private ActivityResult mResultToReturn;
285 public CustomActivityMonitor(ActivityResult resultToReturn) { in CustomActivityMonitor()
[all …]
DInstrumentationTest.java32 import android.app.Instrumentation.ActivityResult;
182 ActivityResult result = new ActivityResult(Activity.RESULT_OK, new Intent()); in testMonitor()
DActivityManagerFgsDelegateTest.java829 … final Instrumentation.ActivityResult result = new Instrumentation.ActivityResult(0, new Intent()); in startSubActivity()
DActivityManagerTest.java64 import android.app.Instrumentation.ActivityResult;
382 final Instrumentation.ActivityResult result = new ActivityResult(0, new Intent());
DActivityManagerProcessStateTest.java2029 final Instrumentation.ActivityResult result = new Instrumentation.ActivityResult( in startSubActivity()
/cts/tests/tests/security/src/android/security/cts/
DStartForFutureActivity.kt27 future: CompletableFuture<Instrumentation.ActivityResult> in startActivityForFuture()
35 future!!.complete(Instrumentation.ActivityResult(resultCode, data)) in onActivityResult()
41 private var future: CompletableFuture<Instrumentation.ActivityResult>? = null
DBasePermissionUiTest.kt204 ): Instrumentation.ActivityResult { in <lambda>()
265 ): CompletableFuture<Instrumentation.ActivityResult> = in <lambda>()
266 CompletableFuture<Instrumentation.ActivityResult>().also { in <lambda>()
/cts/tests/tests/gameservice/src/android/service/games/
DGameServiceTestService.java30 import android.service.games.testing.ActivityResult;
55 private ActivityResult mLastActivityResult;
111 mLastActivityResult = ActivityResult.forSuccess(
119 mLastActivityResult = ActivityResult.forError(
126 public ActivityResult getLastActivityResult() {
DGameServiceTest.java48 import android.service.games.testing.ActivityResult;
401 ActivityResult result = getTestService().getLastActivityResult(); in startActivityForResult_startsActivityAndReceivesResultWithData()
421 ActivityResult result = getTestService().getLastActivityResult(); in startActivityForResult_startsActivityAndReceivesResultWithNoData()
437 ActivityResult result = getTestService().getLastActivityResult(); in startActivityForResult_cannotStartBlockedActivities()
451 ActivityResult result = getTestService().getLastActivityResult(); in startActivityForResult_propagatesActivityNotFoundException()
561 ActivityResult result = getTestService().getLastActivityResult(); in restartGame_withNonGameActivityAbove_gameSessionIsPersisted()
/cts/common/device-side/bedstead/activitycontext/src/main/java/com/android/activitycontext/
DActivityContext.java52 public static final class ActivityResult { class in ActivityContext
57 public ActivityResult(int requestCode, int resultCode, Intent intent) { in ActivityResult() method in ActivityContext.ActivityResult
76 private static final class BlockingCallbackImpl extends BlockingCallback<ActivityResult> {
77 public void set(ActivityResult result) { in set()
98 public ActivityResult blockForActivityResult() throws InterruptedException { in blockForActivityResult()
322 sGetActivityCallback.set(new ActivityResult(requestCode, resultCode, data)); in onActivityResult()
/cts/tests/tests/display/src/android/display/cts/
DTestBase.java44 Instrumentation.ActivityResult result = in launchScreenOnActivity()
45 new Instrumentation.ActivityResult(0, new Intent()); in launchScreenOnActivity()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DAttributionSourceTest.kt20 import android.app.Instrumentation.ActivityResult
139 val result: ActivityResult = scenario.getResult() in run()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerBubbleTest.java250 Instrumentation.ActivityResult result = in startSendBubbleActivity()
251 new Instrumentation.ActivityResult(0, new Intent()); in startSendBubbleActivity()
272 Instrumentation.ActivityResult result = in startBubbledActivityMonitor()
273 new Instrumentation.ActivityResult(0, new Intent()); in startBubbledActivityMonitor()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DDeviceAssociationTest.java255 new Instrumentation.ActivityResult(0, new Intent()), false); in applicationContext_recreateActivity_returnsDeviceIdOfActivity()
270 new Instrumentation.ActivityResult(0, new Intent()), false); in applicationContext_recreateFirstActivity_returnsDeviceOfLastCreatedActivity()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DActivityTest.java110 ActivityContext.ActivityResult result = in startActivityForResultAsUser_requestCodeAndResultPassedSuccessfully()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DSplitAppTest.java368 Instrumentation.ActivityResult result = mActivityRule.getActivityResult(); in testNativeSplit_withoutExtractLibs_nativeLibraryCannotBeLoaded()
/cts/tools/release-parser/tests/resources/
DCtsJniTestCases.apk.pb.txt2178 name: "android.app.Instrumentation.ActivityResult"
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt6091 …itor addMonitor(android.content.IntentFilter, android.app.Instrumentation.ActivityResult, boolean);
6092 …umentation.ActivityMonitor addMonitor(String, android.app.Instrumentation.ActivityResult, boolean);
6164 …ActivityMonitor(android.content.IntentFilter, android.app.Instrumentation.ActivityResult, boolean);
6165 …ctor public Instrumentation.ActivityMonitor(String, android.app.Instrumentation.ActivityResult, bo…
6170 method public final android.app.Instrumentation.ActivityResult getResult();
6172 … method public android.app.Instrumentation.ActivityResult onStartActivity(android.content.Intent);
6177 public static final class Instrumentation.ActivityResult {
6178 ctor public Instrumentation.ActivityResult(int, android.content.Intent);