Home
last modified time | relevance | path

Searched refs:componentName (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/tests/content/src/android/content/cts/
DComponentNameTest.java81 final ComponentName componentName = getComponentName(); in testConstructor() local
82 componentName.writeToParcel(parcel, 0); in testConstructor()
98 ComponentName componentName = new ComponentName("com.android.view", in testGetShortClassName() local
100 final String className = componentName.getClassName(); in testGetShortClassName()
103 actual = componentName.getShortClassName(); in testGetShortClassName()
128 final ComponentName componentName = getComponentName(); in testUnflattenFromString() local
132 assertEquals(componentName, actual); in testUnflattenFromString()
141 final ComponentName componentName = new ComponentName("com.android.view", in testFlattenToShortString() local
143 final String falttenString = componentName.flattenToString(); in testFlattenToShortString()
146 actual = componentName.flattenToShortString(); in testFlattenToShortString()
[all …]
/cts/tests/framework/base/activitymanager/util/src/android/server/am/
DComponentNameUtils.java29 public static String getActivityName(ComponentName componentName) { in getActivityName() argument
30 return componentName.flattenToShortString(); in getActivityName()
38 public static String getWindowName(ComponentName componentName) { in getWindowName() argument
39 return componentName.flattenToString(); in getWindowName()
47 public static String getLogTag(ComponentName componentName) { in getLogTag() argument
48 final String className = componentName.getClassName(); in getLogTag()
/cts/tests/tests/keystore/src/android/server/am/
DComponentNameUtils.java29 public static String getActivityName(ComponentName componentName) { in getActivityName() argument
30 return componentName.flattenToShortString(); in getActivityName()
38 public static String getWindowName(ComponentName componentName) { in getWindowName() argument
39 return componentName.flattenToString(); in getWindowName()
/cts/tests/tests/media/src/android/media/cts/
DEncoderTest.java156 for (String componentName : componentNames) { in testEncoderWithFormats()
159 pool.execute(new EncoderRun(componentName, format)); in testEncoderWithFormats()
243 EncoderRun(String componentName, MediaFormat format) { in EncoderRun() argument
244 mComponentName = componentName; in EncoderRun()
253 private void testEncoder(String componentName, MediaFormat format) { in testEncoder() argument
254 Log.i(TAG, "testEncoder " + componentName + "/" + format); in testEncoder()
256 testEncoder(componentName, format, 0, -1, MODE_SILENT); in testEncoder()
259 testEncoder(componentName, format, 0, R.raw.okgoogle123_good, MODE_RESOURCE); in testEncoder()
260 testEncoder(componentName, format, 0, R.raw.okgoogle123_good, MODE_RESOURCE | MODE_QUIET); in testEncoder()
261 testEncoder(componentName, format, 0, R.raw.tones, MODE_RESOURCE); in testEncoder()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageItemInfo_DisplayNameComparatorTest.java37 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testDisplayNameComparator() local
38 ActivityInfo activityInfo = pm.getActivityInfo(componentName, 0); in testDisplayNameComparator()
41 componentName = new ComponentName(PACKAGE_NAME, CMPACTIVITY_NAME); in testDisplayNameComparator()
42 activityInfo = pm.getActivityInfo(componentName, 0); in testDisplayNameComparator()
DActivityInfoTest.java50 ComponentName componentName = new ComponentName(mContext, MockActivity.class); in testWriteToParcel() local
53 componentName, PackageManager.GET_META_DATA); in testWriteToParcel()
77 ComponentName componentName = new ComponentName(mContext, MockActivity.class); in testGetThemeResource() local
80 componentName, PackageManager.GET_META_DATA); in testGetThemeResource()
96 ComponentName componentName = new ComponentName(mContext, MockActivity.class); in testDescribeContents() local
99 componentName, PackageManager.GET_META_DATA); in testDescribeContents()
DServiceInfoTest.java33 ComponentName componentName = new ComponentName(PACKAGE_NAME, SERVICE_NAME); in testServiceInfo() local
39 ServiceInfo serviceInfo = pm.getServiceInfo(componentName, 0); in testServiceInfo()
DInstrumentationInfoTest.java34 ComponentName componentName = new ComponentName(PACKAGE_NAME, INSTRUMENTATION_NAME); in testInstrumentationInfo() local
39 InstrumentationInfo instrInfo = pm.getInstrumentationInfo(componentName, 0); in testInstrumentationInfo()
DPackageManagerTest.java327 ComponentName[] componentName = {new ComponentName(PACKAGE_NAME, ACTIVITY_NAME)}; in testAddPreferredActivity() local
330 componentName, componentName[0]); in testAddPreferredActivity()
385 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testAccessEnabledSetting() local
386 mPackageManager.setComponentEnabledSetting(componentName, in testAccessEnabledSetting()
389 mPackageManager.getComponentEnabledSetting(componentName)); in testAccessEnabledSetting()
460 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testGetResources() local
465 assertEquals(xmlName, mPackageManager.getResourcesForActivity(componentName) in testGetResources()
DPackageItemInfoTest.java95 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in getTestItemInfo() local
97 mPackageManager.getActivityInfo(componentName, PackageManager.GET_META_DATA); in getTestItemInfo()
/cts/suite/audio_quality/lib/src/
DClientImpl.cpp42 android::String8 componentName("com.android.cts.audiotest/.CtsAudioClientActivity"); in init() local
43 if (!adb.launchClient(clientBinary, componentName)) { in init()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java589 protected boolean setProfileOwner(String componentName, int userId, boolean expectFailure) in setProfileOwner() argument
591 String command = "dpm set-profile-owner --user " + userId + " '" + componentName + "'"; in setProfileOwner()
604 protected void setProfileOwnerOrFail(String componentName, int userId) in setProfileOwnerOrFail() argument
606 if (!setProfileOwner(componentName, userId, /*expectFailure*/ false)) { in setProfileOwnerOrFail()
614 protected void setProfileOwnerExpectingFailure(String componentName, int userId) in setProfileOwnerExpectingFailure() argument
616 if (setProfileOwner(componentName, userId, /* expectFailure =*/ true)) { in setProfileOwnerExpectingFailure()
624 private String setDeviceAdminInner(String componentName, int userId) in setDeviceAdminInner() argument
626 String command = "dpm set-active-admin --user " + userId + " '" + componentName + "'"; in setDeviceAdminInner()
631 protected void setDeviceAdmin(String componentName, int userId) in setDeviceAdmin() argument
633 String commandOutput = setDeviceAdminInner(componentName, userId); in setDeviceAdmin()
[all …]
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/
DTestResult.java87 private TestResult(String packageName, String componentName, String methodName, in TestResult() argument
91 mComponentName = componentName; in TestResult()
136 private String componentName; field in TestResult.Builder
150 componentName = _componentName; in setComponentName()
174 return new TestResult(packageName, componentName, methodName, in build()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DPasswordMinimumRestrictionsTest.java186 ComponentName componentName, int length) throws Exception { in invokeSetMethod() argument
189 setMethod.invoke(dpm, componentName, length); in invokeSetMethod()
196 ComponentName componentName) throws Exception { in invokeGetMethod() argument
199 return (int) getMethod.invoke(dpm, componentName); in invokeGetMethod()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DCrossAppDragAndDropTests.java165 private String getStartCommand(String componentName, String modeExtra, String logtag) { in getStartCommand() argument
166 return AM_START_N + componentName + " -e mode " + modeExtra + " -e logtag " + logtag; in getStartCommand()
205 final String componentName = getComponentName(packageName, activityName); in launchDockedActivity() local
206 executeShellCommand(getStartCommand(componentName, mode, logtag) + " --windowingMode " in launchDockedActivity()
214 final String componentName = getComponentName(packageName, activityName); in launchFullscreenActivity() local
215 executeShellCommand(getStartCommand(componentName, mode, logtag) + " --windowingMode " in launchFullscreenActivity()
228 final String componentName = getComponentName(packageName, activityName); in launchFreeformActivity() local
229 executeShellCommand(getStartCommand(componentName, mode, logtag) + " --windowingMode " in launchFreeformActivity()
234 executeShellCommand(getResizeTaskCommand(getActivityTaskId(componentName), topLeft, in launchFreeformActivity()
/cts/tests/app/src/android/app/cts/
DTabActivityTest.java92 final ComponentName componentName = new ComponentName(context, MockTabActivity.class); in testChildTitleCallback() local
93 final ActivityInfo info = context.getPackageManager().getActivityInfo(componentName, 0); in testChildTitleCallback()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerRequestPinTest.java323 final ComponentName componentName = in testRequestPinShortcut_noMainActivity() local
326 originalState.put(componentName, pm.getComponentEnabledSetting(componentName)); in testRequestPinShortcut_noMainActivity()
327 Log.i(TAG, "Disabling " + componentName); in testRequestPinShortcut_noMainActivity()
328 pm.setComponentEnabledSetting(componentName, in testRequestPinShortcut_noMainActivity()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCommandReceiverActivity.java357 final ComponentName componentName = in onCreate() local
364 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
369 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
374 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
380 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
385 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
390 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
395 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
396 getPackageManager().setComponentEnabledSetting(componentName, in onCreate()
/cts/tests/tests/preference2/src/android/preference2/cts/
DTestUtils.java199 String componentName = activity.getPackageName(); in getWindowName() local
200 String baseWindowName = componentName + "/" + componentName + "."; in getWindowName()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputInfoTest.java82 final ComponentName componentName = in testTvInputInfoOp() local
84 final String id = TvContract.buildInputId(componentName); in testTvInputInfoOp()
88 assertEquals(getContext().getPackageManager().getServiceInfo(componentName, 0).name, in testTvInputInfoOp()
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/
DAppWidgetTest.java145 private AppWidgetProviderInfo getProviderInfo(ComponentName componentName) { in getProviderInfo() argument
151 if (componentName.equals(provider.provider) in getProviderInfo()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DCreateAndManageUserTest.java427 ComponentName componentName) { in logoutUser() argument
429 devicePolicyManager.logoutUser(componentName)); in logoutUser()
451 DevicePolicyManager devicePolicyManager, ComponentName componentName) { in assertAffiliatedUser() argument
462 DevicePolicyManager devicePolicyManager, ComponentName componentName) { in assertEphemeralUser() argument
463 assertTrue("not ephemeral user", devicePolicyManager.isEphemeralUser(componentName)); in assertEphemeralUser()
473 DevicePolicyManager devicePolicyManager, ComponentName componentName) { in assertAllSystemAppsInstalled() argument
/cts/tests/tests/notificationlegacy/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java272 private void toggleListenerAccess(String componentName, Instrumentation instrumentation, in toggleListenerAccess() argument
276 + componentName; in toggleListenerAccess()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DErrorLoggingService.java401 public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
411 public void onServiceDisconnected(ComponentName componentName) {
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsWidgetTest.java256 private AppWidgetProviderInfo getProviderInfo(ComponentName componentName) { in getProviderInfo() argument
262 if (componentName.equals(provider.provider) in getProviderInfo()

12