Searched refs:ActivityContext (Results 1 – 16 of 16) sorted by relevance
/cts/common/device-side/bedstead/activitycontext/src/test/java/com/android/activitycontext/ |
D | ActivityContextTest.java | 44 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/ |
D | ActivityInfoTest.java | 23 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/ |
D | ActivityCreatedEventTest.java | 26 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()
|
D | ActivityStartedEventTest.java | 24 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()
|
D | ActivityResumedEventTest.java | 24 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()
|
D | ActivityPausedEventTest.java | 24 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()
|
D | ActivityRestartedEventTest.java | 24 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()
|
D | ActivityStoppedEventTest.java | 24 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()
|
D | ActivityDestroyedEventTest.java | 24 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/ |
D | Android.bp | 6 name: "ActivityContext", 27 "ActivityContext", 45 "ActivityContext",
|
/cts/common/device-side/bedstead/activitycontext/src/main/java/com/android/activitycontext/ |
D | ActivityContext.java | 48 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/ |
D | Android.bp | 28 "ActivityContext",
|
/cts/common/device-side/bedstead/eventlib/ |
D | Android.bp | 31 "ActivityContext",
|
/cts/tests/devicepolicy/ |
D | Android.bp | 32 "ActivityContext",
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | CredentialManagementAppTest.java | 39 import com.android.activitycontext.ActivityContext; 289 ActivityContext.runWithContext((activity) -> in choosePrivateKeyAlias_isCredentialManagementApp_aliasSelected()
|
D | KeyManagementTest.java | 33 import com.android.activitycontext.ActivityContext; 102 ActivityContext.runWithContext( in choosePrivateKeyAlias()
|