Home
last modified time | relevance | path

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

12345678910>>...28

/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/content/src/android/content/cts/
DComponentNameTest.java19 import android.content.ComponentName;
30 new ComponentName("com.android.app", "com.android.app.InstrumentationTestActivity"); in testConstructor()
34 new ComponentName((String) null, (String) null); in testConstructor()
41 new ComponentName(mContext, "ActivityTestCase"); in testConstructor()
45 new ComponentName((Context) null, "ActivityTestCase"); in testConstructor()
53 new ComponentName(mContext, (String) null); in testConstructor()
60 new ComponentName(mContext, this.getClass()); in testConstructor()
64 new ComponentName(mContext, (Class<?>) null); in testConstructor()
72 new ComponentName((Parcel) null); in testConstructor()
81 final ComponentName componentName = getComponentName(); in testConstructor()
[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/common/device-side/bedstead/remotedpc/src/communication/main/java/com/android/bedstead/remotedpc/managers/
DRemoteDevicePolicyManager.java21 import android.content.ComponentName;
53 boolean isUsingUnifiedPassword(@NonNull ComponentName admin); in isUsingUnifiedPassword()
61 void setLockTaskPackages(@NonNull ComponentName admin, @NonNull String[] packages); in setLockTaskPackages()
66 @NonNull String[] getLockTaskPackages(@NonNull ComponentName admin); in getLockTaskPackages()
72 @NonNull ComponentName admin, int flags); in setLockTaskFeatures()
77 int getLockTaskFeatures(@NonNull ComponentName admin); in getLockTaskFeatures()
84 @NonNull ComponentName admin, @NonNull List<String> packages); in setUserControlDisabledPackages()
89 @NonNull List<String> getUserControlDisabledPackages(@NonNull ComponentName admin); in getUserControlDisabledPackages()
95 void addUserRestriction(@NonNull ComponentName admin, String key); in addUserRestriction()
100 void clearUserRestriction(@NonNull ComponentName admin, String key); in clearUserRestriction()
[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/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/src/android/server/wm/
DCompatChangeTests.java38 import android.content.ComponentName;
74 private static final ComponentName RESIZEABLE_PORTRAIT_ACTIVITY =
76 private static final ComponentName RESIZEABLE_LARGE_ASPECT_RATIO_ACTIVITY =
78 private static final ComponentName NON_RESIZEABLE_PORTRAIT_ACTIVITY =
80 private static final ComponentName NON_RESIZEABLE_ASPECT_RATIO_ACTIVITY =
82 private static final ComponentName NON_RESIZEABLE_LARGE_ASPECT_RATIO_ACTIVITY =
84 private static final ComponentName SUPPORTS_SIZE_CHANGES_PORTRAIT_ACTIVITY =
219 ComponentName activity = NON_RESIZEABLE_LARGE_ASPECT_RATIO_ACTIVITY; in testSandboxForNonResizableActivityPackageUnboundedInNeverSandboxDeviceConfigFlag()
232 ComponentName activity = NON_RESIZEABLE_LARGE_ASPECT_RATIO_ACTIVITY; in testSandboxForNonResizableActivityPackageWithinRangeInNeverSandboxDeviceConfig()
247 ComponentName activity = NON_RESIZEABLE_LARGE_ASPECT_RATIO_ACTIVITY; in testSandboxForNonResizableActivityPackageOutsideRangeInNeverSandboxDeviceConfig()
[all …]
DKeyguardTestBase.java24 import android.content.ComponentName;
31 static void assertOnDismissSucceeded(ComponentName testingComponentName) { in assertOnDismissSucceeded()
35 static void assertOnDismissCancelled(ComponentName testingComponentName) { in assertOnDismissCancelled()
39 static void assertOnDismissError(ComponentName testingComponentName) { in assertOnDismissError()
43 private static void assertDismissCallback(ComponentName testingComponentName, String entry) { in assertDismissCallback()
/cts/tests/framework/base/windowmanager/backgroundactivity/AppA/src/android/server/wm/backgroundactivity/appa/
DComponents.java19 import android.content.ComponentName;
24 public static final ComponentName APP_A_BACKGROUND_ACTIVITY =
26 public static final ComponentName APP_A_SECOND_BACKGROUND_ACTIVITY =
28 public static final ComponentName APP_A_FOREGROUND_ACTIVITY =
30 public static final ComponentName APP_A_SEND_PENDING_INTENT_RECEIVER =
32 public static final ComponentName APP_A_START_ACTIVITY_RECEIVER =
34 public static final ComponentName APP_A_SIMPLE_ADMIN_RECEIVER =
/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/admin/src/android/admin/cts/
DDeviceAdminInfoTest.java22 import android.content.ComponentName;
34 private ComponentName mComponent;
35 private ComponentName mSecondComponent;
36 private ComponentName mThirdComponent;
50 static ComponentName getReceiverComponent() { in getReceiverComponent()
51 return new ComponentName("android.admin.app", "android.admin.app.CtsDeviceAdminReceiver"); in getReceiverComponent()
54 static ComponentName getSecondReceiverComponent() { in getSecondReceiverComponent()
55 return new ComponentName("android.admin.app", "android.admin.app.CtsDeviceAdminReceiver2"); in getSecondReceiverComponent()
58 static ComponentName getThirdReceiverComponent() { in getThirdReceiverComponent()
59 return new ComponentName("android.admin.app", "android.admin.app.CtsDeviceAdminReceiver3"); in getThirdReceiverComponent()
[all …]
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/
DComponents.java19 import android.content.ComponentName;
25 ComponentName COMPONENT = component("UntrustedTouchTestService");
29 ComponentName COMPONENT = component("OverlayActivity");
37 ComponentName COMPONENT = component("ExitAnimationActivity");
51 ComponentName COMPONENT = component("ToastActivity");
54 private static ComponentName component(String className) { in component()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerGetPropertyTest.java28 import android.content.ComponentName;
185 final ComponentName component = new ComponentName(PROPERTY_APP1_PACKAGE_NAME, in testGetComponentProperty()
202 final ComponentName component = new ComponentName(PROPERTY_APP1_PACKAGE_NAME, in testGetComponentProperty()
219 final ComponentName component = new ComponentName(PROPERTY_APP1_PACKAGE_NAME, in testGetComponentProperty()
229 final ComponentName component = new ComponentName(PROPERTY_APP1_PACKAGE_NAME, in testGetComponentProperty()
246 final ComponentName component = new ComponentName(PROPERTY_APP1_PACKAGE_NAME, in testGetComponentProperty()
282 final ComponentName component = new ComponentName("", ""); in testInvalidArguments()
289 sPackageManager.getProperty("", (ComponentName) null); in testInvalidArguments()
295 sPackageManager.getProperty(null, (ComponentName) null); in testInvalidArguments()
316 final ComponentName component = new ComponentName(PROPERTY_APP1_PACKAGE_NAME, in testMissingNames()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DBaseEmulatorActivity.java8 import android.content.ComponentName;
32 ComponentName mMakingDefault;
34 final ArrayList<ComponentName> SERVICES = new ArrayList<ComponentName>(
66 abstract void onApduSequenceComplete(ComponentName component, long duration); in onApduSequenceComplete()
93 final void setupServices(Context context, ComponentName... components) { in setupServices()
98 final boolean makePaymentDefault(final ComponentName defaultComponent, int stringId) { in makePaymentDefault()
127 ComponentName component = intent.getParcelableExtra(HceUtils.EXTRA_COMPONENT);
138 private class SetupServicesTask extends AsyncTask<ComponentName, Void, Boolean> {
156 protected Boolean doInBackground(ComponentName... components) { in doInBackground()
157 List<ComponentName> enableComponents = Arrays.asList(components); in doInBackground()
[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/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/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/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/batterysaving/common/src/android/os/cts/batterysaving/common/
DValues.java18 import android.content.ComponentName;
37 public static ComponentName getCommReceiver(String packageName) { in getCommReceiver()
38 return new ComponentName(packageName, COMM_RECEIVER); in getCommReceiver()
41 public static ComponentName getTestService(String packageName) { in getTestService()
42 return new ComponentName(packageName, TEST_SERVICE); in getTestService()
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/
DBackgroundActivityLaunchTest.java52 import android.content.ComponentName;
94 public static final ComponentName APP_A_RELAUNCHING_ACTIVITY =
95 new ComponentName(TEST_PACKAGE_APP_A,
97 public static final ComponentName APP_A_PIP_ACTIVITY =
98 new ComponentName(TEST_PACKAGE_APP_A,
219 assertTaskStack(new ComponentName[]{APP_A_FOREGROUND_ACTIVITY}, APP_A_FOREGROUND_ACTIVITY); in testBackgroundActivityNotBlockedWhenForegroundActivityExists()
227 assertTaskStack(new ComponentName[]{APP_A_FOREGROUND_ACTIVITY}, APP_A_FOREGROUND_ACTIVITY); in testBackgroundActivityNotBlockedWhenForegroundActivityExists()
228 assertTaskStack(new ComponentName[]{APP_A_BACKGROUND_ACTIVITY}, APP_A_BACKGROUND_ACTIVITY); in testBackgroundActivityNotBlockedWhenForegroundActivityExists()
242 assertTaskStack(new ComponentName[]{APP_A_BACKGROUND_ACTIVITY, APP_A_FOREGROUND_ACTIVITY}, in testActivityNotBlockedWhenForegroundActivityLaunch()
257 assertTaskStack(new ComponentName[]{APP_A_FOREGROUND_ACTIVITY}, APP_A_FOREGROUND_ACTIVITY); in testActivityBroughtToTopOfTaskWhenLaunchedInTheBackground()
[all …]
/cts/hostsidetests/appsecurity/test-apps/InstrumentationAppDiffCert/src/com/android/cts/instrumentationdiffcertapp/
DInstrumentationFailToRunTest.java22 import android.content.ComponentName;
36 final ComponentName appDiffCertInstrumentation = in testInstrumentationNotAllowed_exception()
37 new ComponentName(myContext, Instrumentation.class); in testInstrumentationNotAllowed_exception()
50 final ComponentName appDiffCertInstrumentation = in testInstrumentationNotAllowed_fail()
51 new ComponentName(myContext, Instrumentation.class); in testInstrumentationNotAllowed_fail()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerStateHelper.java42 import android.content.ComponentName;
62 public void computeState(ComponentName... componentNames) { in computeState()
83 public void waitForValidState(ComponentName... activityNames) { in waitForValidState()
125 public void waitForDebuggerWindowVisible(ComponentName activityName) { in waitForDebuggerWindowVisible()
134 ComponentName homeActivity = getHomeActivityName(); in waitForHomeActivityVisible()
217 public void waitForActivityOrientation(ComponentName activityName, int orientation) { in waitForActivityOrientation()
231 public void waitForActivityState(ComponentName activityName, String activityState) { in waitForActivityState()
236 public void waitForActivityRemoved(ComponentName activityName) { in waitForActivityRemoved()
242 public void waitAndAssertActivityRemoved(ComponentName activityName) { in waitAndAssertActivityRemoved()
256 public void waitForPendingActivityContain(ComponentName activity) { in waitForPendingActivityContain()
[all …]
/cts/hostsidetests/appbinding/app/src/com/android/cts/appbinding/app/
DMyEnabler.java18 import android.content.ComponentName;
38 final ComponentName cn = new ComponentName(context, in enableService()
51 final ComponentName cn = new ComponentName(context, in disableService()
/cts/hostsidetests/classloaders/splits/apps/src/com/android/cts/classloadersplitapp/
DSplitAppTest.java25 import android.content.ComponentName;
61 private static final ComponentName FEATURE_A_ACTIVITY =
62 ComponentName.createRelative(PACKAGE, ".feature_a.FeatureAActivity");
63 private static final ComponentName FEATURE_B_ACTIVITY =
64 ComponentName.createRelative(PACKAGE, ".feature_b.FeatureBActivity");
65 private static final ComponentName FEATURE_A_SERVICE =
66 ComponentName.createRelative(PACKAGE, ".feature_a.FeatureAService");
67 private static final ComponentName FEATURE_B_SERVICE =
68 ComponentName.createRelative(PACKAGE, ".feature_b.FeatureBService");
146 final Service service = getService(new ComponentName(mAppContextTestRule.getContext(), in testBaseServiceClassLoader()
[all …]
/cts/tests/framework/base/windowmanager/appAShareUid/src/android/server/wm/shareuid/a/
DComponents.java19 import android.content.ComponentName;
23 public static final ComponentName TEST_ACTIVITY_WITH_SAME_AFFINITY =
26 public static final ComponentName TEST_ACTIVITY_WITH_SAME_AFFINITY_SAME_APP =
29 private static ComponentName component(String className) { in component()

12345678910>>...28