Home
last modified time | relevance | path

Searched refs:ComponentName (Results 1 – 25 of 951) sorted by relevance

12345678910>>...39

/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DComponents.java19 import android.content.ComponentName;
24 public static final ComponentName ALT_LAUNCHING_ACTIVITY = component("AltLaunchingActivity");
25 public static final ComponentName ALWAYS_FOCUSABLE_PIP_ACTIVITY =
27 public static final ComponentName ANIMATION_TEST_ACTIVITY = component("AnimationTestActivity");
28 public static final ComponentName ASSISTANT_ACTIVITY = component("AssistantActivity");
29 public static final ComponentName BOTTOM_ACTIVITY = component("BottomActivity");
30 …public static final ComponentName BOTTOM_NON_RESIZABLE_ACTIVITY = component("BottomNonResizableAct…
31 public static final ComponentName BOTTOM_LEFT_LAYOUT_ACTIVITY =
33 public static final ComponentName BOTTOM_RIGHT_LAYOUT_ACTIVITY =
35 public static final ComponentName BROADCAST_RECEIVER_ACTIVITY =
[all …]
/cts/tests/tests/app/test-apps/TestComponentCallerApp/src/android/app/cts/testcomponentcaller/
DConstants.java19 import android.content.ComponentName;
25 public static final ComponentName HELPER_APP_INITIAL_CALLER_ACTIVITY = new ComponentName(
27 public static final ComponentName HELPER_APP_NEW_INTENT_GET_CURRENT_CALLER_ACTIVITY =
28 new ComponentName(HELPER_APP_PACKAGE, HELPER_APP_PACKAGE
30 public static final ComponentName HELPER_APP_NEW_INTENT_OVERLOAD_CALLER_ACTIVITY =
31 new ComponentName(HELPER_APP_PACKAGE, HELPER_APP_PACKAGE
33 public static final ComponentName HELPER_APP_RESULT_GET_CURRENT_CALLER_ACTIVITY =
34 new ComponentName(HELPER_APP_PACKAGE, HELPER_APP_PACKAGE
36 public static final ComponentName HELPER_APP_RESULT_OVERLOAD_CALLER_ACTIVITY =
37 new ComponentName(HELPER_APP_PACKAGE, HELPER_APP_PACKAGE
[all …]
/cts/tests/process/src/android/os/cts/process/common/
DConsts.java18 import android.content.ComponentName;
38 private static ComponentName buildReceiver(String packageName, int receiverId) { in buildReceiver()
41 return new ComponentName(packageName, MyReceiver0.class.getName()); in buildReceiver()
43 return new ComponentName(packageName, MyReceiver1.class.getName()); in buildReceiver()
45 return new ComponentName(packageName, MyReceiver2.class.getName()); in buildReceiver()
47 return new ComponentName(packageName, MyReceiver3.class.getName()); in buildReceiver()
53 public static final ComponentName HELPER1_RECEIVER0 = buildReceiver(PACKAGE_HELPER1, 0);
54 public static final ComponentName HELPER1_RECEIVER1 = buildReceiver(PACKAGE_HELPER1, 1);
55 public static final ComponentName HELPER1_RECEIVER2 = buildReceiver(PACKAGE_HELPER1, 2);
57 public static final ComponentName HELPER2_RECEIVER0 = buildReceiver(PACKAGE_HELPER2, 0);
[all …]
/cts/tests/tests/content/src/android/content/cts/
DComponentNameTest.java26 import android.content.ComponentName;
70 new ComponentName("com.android.app", "com.android.app.InstrumentationTestActivity"); in testConstructor()
74 new ComponentName((String) null, (String) null); in testConstructor()
81 new ComponentName(mContext, "ActivityTestCase"); in testConstructor()
85 new ComponentName((Context) null, "ActivityTestCase"); in testConstructor()
93 new ComponentName(mContext, (String) null); in testConstructor()
100 new ComponentName(mContext, this.getClass()); in testConstructor()
104 new ComponentName(mContext, (Class<?>) null); in testConstructor()
112 new ComponentName((Parcel) null); in testConstructor()
121 final ComponentName componentName = getComponentName(); in testConstructor()
[all …]
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/
DComponents.java19 import android.content.ComponentName;
26 ComponentName COMPONENT = component("UntrustedTouchTestService");
30 ComponentName COMPONENT = component("OverlayActivity");
38 ComponentName COMPONENT = component("ExitAnimationActivity");
52 ComponentName COMPONENT = component("ToastActivity");
60 ComponentName BASE_COMPONENT = component("TranslucentFloatingActivity");
61 static ComponentName getComponent(String packageName) { in getComponent()
62 return new ComponentName(packageName, BASE_COMPONENT.getClassName()); in getComponent()
67 ComponentName BASE_COMPONENT = component("TrampolineActivity");
70 static ComponentName getComponent(String packageName) { in getComponent()
[all …]
/cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/src/com/android/cts/privilegedupdate/
DPrivilegedUpdateTest.java21 import android.content.ComponentName;
45 final ComponentName testComponent = in testSystemAppPriorities()
46 new ComponentName(SYSTEM_SHIM_PKG, SYSTEM_SHIM_PKG + INSTALL_CLASS); in testSystemAppPriorities()
61 final ComponentName testComponent = in testPrivilegedAppPriorities()
62 new ComponentName(PRIVILEGED_SHIM_PKG, PRIVILEGED_SHIM_PKG + INSTALL_CLASS); in testPrivilegedAppPriorities()
78 final ComponentName testComponent = in testPrivilegedAppUpgradePriorities()
79 new ComponentName(PRIVILEGED_SHIM_PKG, PRIVILEGED_SHIM_PKG + INSTALL_CLASS); in testPrivilegedAppUpgradePriorities()
86 new ComponentName(PRIVILEGED_SHIM_PKG, in testPrivilegedAppUpgradePriorities()
90 new ComponentName(PRIVILEGED_SHIM_PKG, in testPrivilegedAppUpgradePriorities()
94 new ComponentName(PRIVILEGED_SHIM_PKG, in testPrivilegedAppUpgradePriorities()
[all …]
/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/
DStreamedAppConstants.java19 import android.content.ComponentName;
25 public static final ComponentName CLIPBOARD_TEST_ACTIVITY = new ComponentName(
28 public static final ComponentName PERMISSION_TEST_ACTIVITY = new ComponentName(
31 public static final ComponentName DEFAULT_HOME_ACTIVITY = new ComponentName(
34 public static final ComponentName CUSTOM_HOME_ACTIVITY = new ComponentName(
/cts/tests/framework/base/windowmanager/backgroundactivity/TestApp/src/android/server/wm/backgroundactivity/appa/
DComponents.java19 import android.content.ComponentName;
104 public final ComponentName BACKGROUND_ACTIVITY;
105 public final ComponentName SECOND_BACKGROUND_ACTIVITY;
106 public final ComponentName FOREGROUND_ACTIVITY;
107 public final ComponentName FOREGROUND_EMBEDDING_ACTIVITY;
108 public final ComponentName START_PENDING_INTENT_ACTIVITY;
109 public final ComponentName SIMPLE_BROADCAST_RECEIVER;
110 public final ComponentName SIMPLE_ADMIN_RECEIVER;
111 public final ComponentName ACTIVITY_START_SERVICE;
112 public final ComponentName PIP_ACTIVITY;
[all …]
/cts/tests/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/
DShortFgsHelper.java22 import android.content.ComponentName;
62 public static ComponentName FGS0 = new ComponentName(HELPER_PACKAGE, Fgs0.class.getName());
63 public static ComponentName FGS1 = new ComponentName(HELPER_PACKAGE, Fgs1.class.getName());
64 public static ComponentName FGS2 = new ComponentName(HELPER_PACKAGE, Fgs2.class.getName());
66 public static ComponentName BOUND_SERVICE = new ComponentName(
70 public static ComponentName ACTIVITY =
71 new ComponentName(HELPER_PACKAGE, MyActivity.class.getName());
76 public static ComponentName FGS_B_0 = new ComponentName(HELPER_PACKAGE2, Fgs0.class.getName());
81 public static ComponentName BOUND_SERVICE_B = new ComponentName(
137 m.setComponentName(new ComponentName(sContext, clazz.getName())); in sendBackMethodName()
[all …]
/cts/tests/framework/base/windowmanager/appSecondUid/src/android/server/wm/second/
DComponents.java19 import android.content.ComponentName;
24 public static final ComponentName EMBEDDING_ACTIVITY = component("EmbeddingActivity");
33 public static final ComponentName SECOND_ACTIVITY = component("SecondActivity");
39 public static final ComponentName SECOND_NO_EMBEDDING_ACTIVITY =
42 public static final ComponentName TEST_ACTIVITY_WITH_SAME_AFFINITY_DIFFERENT_UID =
45 public static final ComponentName SECOND_LAUNCH_BROADCAST_RECEIVER =
53 public static final ComponentName IMPLICIT_TARGET_SECOND_ACTIVITY =
56 private static ComponentName component(String className) { in component()
/cts/tests/tests/nfc/src/android/nfc/cts/
DDefaultPaymentProviderTestUtils.java19 import android.content.ComponentName;
35 static final ComponentName CTS_MY_HOSTAPDU_SERVICE =
36 new ComponentName("android.nfc.cts", "android.nfc.cts.CtsMyHostApduService");
42 static ComponentName setDefaultPaymentService(Class serviceClass, Context context) { in setDefaultPaymentService()
43 ComponentName componentName = setDefaultPaymentService( in setDefaultPaymentService()
44 new ComponentName(context, serviceClass), context); in setDefaultPaymentService()
48 static ComponentName setDefaultPaymentSetting(ComponentName serviceName, Context context) { in setDefaultPaymentSetting()
49 ComponentName originalValue = CardEmulation.getPreferredPaymentService(context); in setDefaultPaymentSetting()
57 static ComponentName setDefaultPaymentService(ComponentName serviceName, Context context) { in setDefaultPaymentService()
70 ComponentName originalValue = setDefaultPaymentSetting(serviceName, context); in setDefaultPaymentService()
[all …]
/cts/tests/framework/base/windowmanager/jetpack/SecondApp/src/android/server/wm/jetpack/second/
DComponents.java19 import android.content.ComponentName;
24 public static final ComponentName SECOND_ACTIVITY = component("SecondActivity");
26 public static final ComponentName PORTRAIT_ACTIVITY = component("PortraitActivity");
28 public static final ComponentName SECOND_ACTIVITY_UNKNOWN_EMBEDDING_CERTS =
31 public static final ComponentName SECOND_UNTRUSTED_EMBEDDING_ACTIVITY =
34 public static final ComponentName SECOND_UNTRUSTED_EMBEDDING_ACTIVITY_STATE_SHARE =
43 private static ComponentName component(String className) { in component()
/cts/tests/framework/base/windowmanager/app27/src/android/server/wm/app27/
DComponents.java22 import android.content.ComponentName;
27 public static final ComponentName SDK_27_LAUNCHING_ACTIVITY =
30 public static final ComponentName SDK_27_TEST_ACTIVITY =
33 public static final ComponentName SDK_27_SEPARATE_PROCESS_ACTIVITY =
36 public static final ComponentName SDK_27_LAUNCH_ENTER_PIP_ACTIVITY =
39 public static final ComponentName SDK_27_PIP_ACTIVITY =
42 public static final ComponentName SDK_27_HOME_ACTIVITY =
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DDreamCoordinator.java20 import android.content.ComponentName;
37 public final ComponentName getDreamActivityName(ComponentName dream) { in getDreamActivityName()
38 return new ComponentName(dream.getPackageName(), in getDreamActivityName()
86 public ComponentName setActiveDream(ComponentName dream) { in setActiveDream()
91 public ComponentName setSystemDream(ComponentName dream) { in setSystemDream()
97 public void setDreamOverlay(ComponentName overlay) { in setDreamOverlay()
/cts/tests/framework/base/locale/util/src/android/localemanager/cts/util/
DLocaleConstants.java19 import android.content.ComponentName;
45 public static final ComponentName TEST_APP_MAIN_ACTIVITY = new ComponentName(TEST_APP_PACKAGE,
48 public static final ComponentName INSTALLER_APP_MAIN_ACTIVITY =
49 new ComponentName(INSTALLER_PACKAGE, INSTALLER_PACKAGE + ".MainActivity");
51 public static final ComponentName IME_APP_MAIN_ACTIVITY = new ComponentName(IME_APP_PACKAGE,
/cts/tests/tests/systemui/common/src/android/systemui/tv/cts/
DTestEntities.kt19 import android.content.ComponentName
26 fun ComponentName.activityName(): String = flattenToShortString() in activityName() method
29 fun ComponentName.windowName(): String = flattenToString() in activityName() method
32 val PIP_ACTIVITY: ComponentName = ComponentName.createRelative(pkg, ".PipTestActivity") in activityName()
35 val PIP_MENU_ACTIVITY: ComponentName = ComponentName.createRelative( in activityName()
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/
DFgsTimeoutHelper.java22 import android.content.ComponentName;
56 public static ComponentName FGS0 = new ComponentName(HELPER_PACKAGE, Fgs0.class.getName());
57 public static ComponentName FGS1 = new ComponentName(HELPER_PACKAGE, Fgs1.class.getName());
58 public static ComponentName FGS2 = new ComponentName(HELPER_PACKAGE, Fgs2.class.getName());
61 public static ComponentName ACTIVITY =
62 new ComponentName(HELPER_PACKAGE, MyActivity.class.getName());
117 m.setComponentName(new ComponentName(sContext, clazz.getName())); in sendBackMethodName()
135 public static void sendBackMethodName(Class<?> clazz, String methodName, ComponentName cn) { in sendBackMethodName()
160 public static String flattenComponentName(ComponentName cn) { in flattenComponentName()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DComponents.java19 import android.content.ComponentName;
23 public static final ComponentName CLASS_2_BIOMETRIC_OR_CREDENTIAL_ACTIVITY =
25 public static final ComponentName CLASS_2_BIOMETRIC_ACTIVITY =
27 public static final ComponentName CLASS_3_BIOMETRIC_ACTIVITY =
30 private static ComponentName component(String className) { in component()
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
DPhotoPickerComponentUtils.java23 import android.content.ComponentName;
41 public static final ComponentName GET_CONTENT_ACTIVITY_COMPONENT = new ComponentName(
45 public static final ComponentName PICKER_SETTINGS_ACTIVITY_COMPONENT = new ComponentName(
52 public static int enableAndGetOldState(@NonNull ComponentName componentName) throws Exception { in enableAndGetOldState()
73 public static void setState(@NonNull ComponentName componentName, int oldState) in setState()
82 @NonNull ComponentName componentName, in updateComponentEnabledSetting()
98 @NonNull ComponentName componentName, in waitForComponentToBeInExpectedState()
117 @NonNull ComponentName componentName, in isComponentEnabledSetAsExpected()
/cts/hostsidetests/devicepolicy/app/DeviceAdminService/src/com/android/cts/deviceadminservice/
DComponentController.java18 import android.content.ComponentName;
27 private void enableComponent(ComponentName cn, boolean enabled) { in enableComponent()
37 enableComponent(new ComponentName(getContext(), MyService.class), true); in testEnableService1()
41 enableComponent(new ComponentName(getContext(), MyService.class), false); in testDisableService1()
45 enableComponent(new ComponentName(getContext(), MyService2.class), true); in testEnableService2()
49 enableComponent(new ComponentName(getContext(), MyService2.class), false); in testDisableService2()
/cts/tests/tests/car/src/android/car/cts/
DCarMediaManagerTest.java31 import android.content.ComponentName;
62 private static final ComponentName FAKE_0 = ComponentName.createRelative(PACKAGE, ".fake0");
63 private static final ComponentName FAKE_1 = ComponentName.createRelative(PACKAGE, ".fake1");
64 private static final ComponentName FAKE_2 = ComponentName.createRelative(PACKAGE, ".fake2");
65 private static final ComponentName[] FAKE_1_THEN_FAKE_2 = {FAKE_1, FAKE_2};
66 private static final ComponentName[] FAKE_2_THEN_FAKE_1 = {FAKE_2, FAKE_1};
76 private ComponentName mSavedPlaybackSource;
77 private ComponentName mSavedBrowseSource;
83 private ComponentName getSource(int mode) { in getSource()
91 private List<ComponentName> getRecentSources(int mode, int n) { in getRecentSources()
[all …]
/cts/tests/app/src/android/app/cts/
DLaunchTest.java26 import android.content.ComponentName;
31 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopWhilResumed()
37 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopInCreate()
46 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class)); in testLocalScreen()
51 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class)); in testColdScreen()
56 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class)); in testLocalActivity()
61 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class)); in testColdActivity()
/cts/hostsidetests/packagemanager/stats/device/src/com/android/cts/packagemanager/stats/device/
DComponentStateChangedReportedStatsTestsHelper.java25 import android.content.ComponentName;
67 ComponentName componentName = new ComponentName(TEST_COMPONENT_STATE_APP_PACKAGE_NAME, in testSetComponentEnabledSettingForLauncherActivity()
78 ComponentName componentName = new ComponentName(TEST_COMPONENT_STATE_APP_PACKAGE_NAME, in testSetComponentEnabledSettingForNoLauncherActivity()
89 ComponentName componentName = new ComponentName(TEST_COMPONENT_STATE_APP_PACKAGE_NAME, in testSetComponentEnabledSettingEnabledThenDisabled()
123 ComponentName firstComponentName = new ComponentName(TEST_COMPONENT_STATE_APP_PACKAGE_NAME, in testComponentStateChangedReportedForTwoDifferentStateLauncherActivities()
132 ComponentName secondComponentName = new ComponentName(TEST_COMPONENT_STATE_APP_PACKAGE_NAME, in testComponentStateChangedReportedForTwoDifferentStateLauncherActivities()
/cts/tests/tests/syncmanager/common/src/android/content/syncmanager/cts/common/
DValues.java19 import android.content.ComponentName;
32 public static final ComponentName APP1_RECEIVER = getCommReceiver(APP1_PACKAGE);
33 public static final ComponentName APP2_RECEIVER = getCommReceiver(APP2_PACKAGE);
35 public static ComponentName getCommReceiver(String packageName) { in getCommReceiver()
36 return new ComponentName(packageName, COMM_RECEIVER); in getCommReceiver()
/cts/tests/tests/app/test-apps/TestShareIdentityApp/src/android/app/cts/testshareidentity/
DTestShareIdentityActivity.java21 import android.content.ComponentName;
40 private static final ComponentName SHARE_IDENTITY_ACTIVITY = new ComponentName(
47 private static final ComponentName ACTIVITY_INITIAL_CALLER_SHARE_IDENTITY_ACTIVITY =
48 new ComponentName("android.app.cts",
56 static final ComponentName ACTIVITY_NEW_INTENT_GET_CALLER_SHARE_IDENTITY_ACTIVITY =
57 new ComponentName("android.app.cts",
66 static final ComponentName ACTIVITY_NEW_INTENT_OVERLOAD_CALLER_SHARE_IDENTITY_ACTIVITY =
67 new ComponentName("android.app.cts",
76 private static final ComponentName SHARED_IDENTITY_RECEIVER = new ComponentName(
394 static ComponentName getShareIdentityActivity(int testCase) { in getShareIdentityActivity()

12345678910>>...39