Home
last modified time | relevance | path

Searched refs:ActivityContext (Results 1 – 16 of 16) sorted by relevance

/cts/common/device-side/bedstead/activitycontext/src/test/java/com/android/activitycontext/
DActivityContextTest.java44 assertThrows(NullPointerException.class, () -> ActivityContext.getWithContext(null)); in getWithContext_nullRunnable_throwsException()
49 assertThrows(NullPointerException.class, () -> ActivityContext.runWithContext(null)); in runWithContext_nullRunnable_throwsException()
54 boolean contextIsActivityContext = ActivityContext.getWithContext(Objects::nonNull); in getWithContext_passesActivityContext()
61 boolean contextIsActivityContext = ActivityContext.getWithContext( in getWithContext_oneArgument_passesActivityContext()
69 String passedString = ActivityContext.getWithContext(STRING_VALUE, (context, str) -> str); in getWithContext_oneArgument_passesFirstArgument()
76 boolean contextIsActivityContext = ActivityContext.getWithContext( in getWithContext_twoArguments_passesActivityContext()
84 String passedString = ActivityContext.getWithContext( in getWithContext_twoArguments_passesFirstArgument()
92 int passedInt = ActivityContext.getWithContext( in getWithContext_twoArguments_passesSecondArgument()
100 boolean contextIsActivityContext = ActivityContext.getWithContext( in getWithContext_threeArguments_passesActivityContext()
109 String passedString = ActivityContext.getWithContext( in getWithContext_threeArguments_passesFirstArgument()
[all …]
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/info/
DActivityInfoTest.java23 import com.android.activitycontext.ActivityContext;
33 private static final Class<? extends Activity> TEST_CLASS = ActivityContext.class;
34 private static final String TEST_CLASS_NAME = ActivityContext.class.getName();
35 private static final String TEST_CLASS_SIMPLE_NAME = ActivityContext.class.getSimpleName();
46 ActivityInfo activityInfo = ActivityContext.getWithContext(c -> in instanceConstructor_setsClass()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/activities/
DActivityCreatedEventTest.java26 import com.android.activitycontext.ActivityContext;
46 private static final String ACTIVITY_CLASS_NAME = ActivityContext.class.getName();
60 ActivityContext.runWithContext((activity) -> in whereSavedInstanceState_works()
78 ActivityContext.runWithContext((activity) -> { in whereSavedInstanceState_skipsNonMatching()
96 ActivityContext.runWithContext((activity) -> in wherePersistentState_works()
114 ActivityContext.runWithContext((activity) -> { in wherePersistentState_skipsNonMatching()
133 ActivityContext.runWithContext((activity) -> in whereActivity_works()
146 ActivityContext.runWithContext((activity) -> { in whereActivity_skipsNonMatching()
DActivityStartedEventTest.java24 import com.android.activitycontext.ActivityContext;
38 private static final String ACTIVITY_CLASS_NAME = ActivityContext.class.getName();
51 ActivityContext.runWithContext((activity) -> in whereActivity_works()
64 ActivityContext.runWithContext((activity) -> { in whereActivity_skipsNonMatching()
DActivityResumedEventTest.java24 import com.android.activitycontext.ActivityContext;
38 private static final String ACTIVITY_CLASS_NAME = ActivityContext.class.getName();
51 ActivityContext.runWithContext((activity) -> in whereActivity_works()
64 ActivityContext.runWithContext((activity) -> { in whereActivity_skipsNonMatching()
DActivityPausedEventTest.java24 import com.android.activitycontext.ActivityContext;
38 private static final String ACTIVITY_CLASS_NAME = ActivityContext.class.getName();
51 ActivityContext.runWithContext((activity) -> in whereActivity_works()
64 ActivityContext.runWithContext((activity) -> { in whereActivity_skipsNonMatching()
DActivityRestartedEventTest.java24 import com.android.activitycontext.ActivityContext;
38 private static final String ACTIVITY_CLASS_NAME = ActivityContext.class.getName();
51 ActivityContext.runWithContext((activity) -> in whereActivity_works()
64 ActivityContext.runWithContext((activity) -> { in whereActivity_skipsNonMatching()
DActivityStoppedEventTest.java24 import com.android.activitycontext.ActivityContext;
38 private static final String ACTIVITY_CLASS_NAME = ActivityContext.class.getName();
51 ActivityContext.runWithContext((activity) -> in whereActivity_works()
64 ActivityContext.runWithContext((activity) -> { in whereActivity_skipsNonMatching()
DActivityDestroyedEventTest.java24 import com.android.activitycontext.ActivityContext;
38 private static final String ACTIVITY_CLASS_NAME = ActivityContext.class.getName();
51 ActivityContext.runWithContext((activity) -> in whereActivity_works()
64 ActivityContext.runWithContext((activity) -> { in whereActivity_skipsNonMatching()
/cts/common/device-side/bedstead/activitycontext/
DAndroid.bp6 name: "ActivityContext",
27 "ActivityContext",
45 "ActivityContext",
/cts/common/device-side/bedstead/activitycontext/src/main/java/com/android/activitycontext/
DActivityContext.java48 public class ActivityContext extends Activity { class
90 synchronized (ActivityContext.class) { in getWithContext()
98 intent.setClass(sContext, ActivityContext.class); in getWithContext()
108 synchronized (ActivityContext.class) { in getWithContext()
165 synchronized (ActivityContext.class) { in onResume()
/cts/common/device-side/bedstead/queryable/
DAndroid.bp28 "ActivityContext",
/cts/common/device-side/bedstead/eventlib/
DAndroid.bp31 "ActivityContext",
/cts/tests/devicepolicy/
DAndroid.bp32 "ActivityContext",
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCredentialManagementAppTest.java39 import com.android.activitycontext.ActivityContext;
289 ActivityContext.runWithContext((activity) -> in choosePrivateKeyAlias_isCredentialManagementApp_aliasSelected()
DKeyManagementTest.java33 import com.android.activitycontext.ActivityContext;
102 ActivityContext.runWithContext( in choosePrivateKeyAlias()