Home
last modified time | relevance | path

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

/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/tests/media/src/android/media/cts/
DEncoderTest.java155 for (String componentName : componentNames) { in testEncoderWithFormats()
158 pool.execute(new EncoderRun(componentName, format)); in testEncoderWithFormats()
242 EncoderRun(String componentName, MediaFormat format) { in EncoderRun() argument
243 mComponentName = componentName; in EncoderRun()
252 private void testEncoder(String componentName, MediaFormat format) { in testEncoder() argument
253 Log.i(TAG, "testEncoder " + componentName + "/" + format); in testEncoder()
255 testEncoder(componentName, format, 0, -1, MODE_SILENT); in testEncoder()
258 testEncoder(componentName, format, 0, R.raw.okgoogle123_good, MODE_RESOURCE); in testEncoder()
259 testEncoder(componentName, format, 0, R.raw.okgoogle123_good, MODE_RESOURCE | MODE_QUIET); in testEncoder()
260 testEncoder(componentName, format, 0, R.raw.tones, MODE_RESOURCE); in testEncoder()
[all …]
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java381 protected boolean setProfileOwner(String componentName, int userId, boolean expectFailure) in setProfileOwner() argument
383 String command = "dpm set-profile-owner --user " + userId + " '" + componentName + "'"; in setProfileOwner()
396 protected void setProfileOwnerOrFail(String componentName, int userId) in setProfileOwnerOrFail() argument
398 if (!setProfileOwner(componentName, userId, /*expectFailure*/ false)) { in setProfileOwnerOrFail()
404 private String setDeviceAdminInner(String componentName, int userId) in setDeviceAdminInner() argument
406 String command = "dpm set-active-admin --user " + userId + " '" + componentName + "'"; in setDeviceAdminInner()
411 protected void setDeviceAdmin(String componentName, int userId) in setDeviceAdmin() argument
413 String commandOutput = setDeviceAdminInner(componentName, userId); in setDeviceAdmin()
420 protected void setDeviceAdminExpectingFailure(String componentName, int userId, in setDeviceAdminExpectingFailure() argument
422 String commandOutput = setDeviceAdminInner(componentName, userId); in setDeviceAdminExpectingFailure()
[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.java326 ComponentName[] componentName = {new ComponentName(PACKAGE_NAME, ACTIVITY_NAME)}; in testAddPreferredActivity() local
329 componentName, componentName[0]); in testAddPreferredActivity()
384 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testAccessEnabledSetting() local
385 mPackageManager.setComponentEnabledSetting(componentName, in testAccessEnabledSetting()
388 mPackageManager.getComponentEnabledSetting(componentName)); in testAccessEnabledSetting()
446 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testGetResources() local
451 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/hostsidetests/services/activitymanager/src/android/server/cts/
DActivityAndWindowManagersState.java273 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); in assertFocusedActivity() local
274 assertEquals(msg, componentName, mAmState.getFocusedActivity()); in assertFocusedActivity()
275 assertEquals(msg, componentName, mWmState.getFocusedApp()); in assertFocusedActivity()
279 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); in assertNotFocusedActivity() local
280 if (mAmState.getFocusedActivity().equals(componentName)) { in assertNotFocusedActivity()
281 failNotEquals(msg, mAmState.getFocusedActivity(), componentName); in assertNotFocusedActivity()
283 if (mWmState.getFocusedApp().equals(componentName)) { in assertNotFocusedActivity()
284 failNotEquals(msg, mWmState.getFocusedApp(), componentName); in assertNotFocusedActivity()
289 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); in assertResumedActivity() local
290 assertEquals(msg, componentName, mAmState.getResumedActivity()); in assertResumedActivity()
[all …]
/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/services/windowmanager/src/android/wm/cts/
DCrossAppDragAndDropTests.java116 private String getStartCommand(String componentName, String modeExtra) { in getStartCommand() argument
117 return AM_START_N + componentName + " -e mode " + modeExtra; in getStartCommand()
141 final String componentName = getComponentName(mSourcePackageName, SOURCE_ACTIVITY_NAME); in cleanupState() local
142 executeShellCommand(getStartCommand(componentName, null) + " --stack " + in cleanupState()
144 final int taskId = getActivityTaskId(componentName); in cleanupState()
160 final String componentName = getComponentName(packageName, activityName); in launchDockedActivity() local
161 executeShellCommand(getStartCommand(componentName, mode) + " --stack " + DOCKED_STACK_ID); in launchDockedActivity()
168 final String componentName = getComponentName(packageName, activityName); in launchFullscreenActivity() local
169 executeShellCommand(getStartCommand(componentName, mode) + " --stack " in launchFullscreenActivity()
/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/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/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/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/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java1429 private AppWidgetProviderInfo getProviderInfo(ComponentName componentName) { in getProviderInfo() argument
1435 if (componentName.equals(provider.provider) in getProviderInfo()