Home
last modified time | relevance | path

Searched refs:componentName (Results 1 – 25 of 47) 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/windowmanager/util/src/android/server/wm/
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/media/src/android/media/cts/
DEncoderTest.java181 for (String componentName : componentNames) { in testEncoderWithFormats()
184 pool.execute(new EncoderRun(componentName, format)); in testEncoderWithFormats()
273 EncoderRun(String componentName, MediaFormat format) { in EncoderRun() argument
274 mComponentName = componentName; in EncoderRun()
283 private void testEncoder(String componentName, MediaFormat format) { in testEncoder() argument
284 Log.i(TAG, "testEncoder " + componentName + "/" + format); in testEncoder()
286 testEncoder(componentName, format, 0, -1, MODE_SILENT); in testEncoder()
289 testEncoder(componentName, format, 0, R.raw.okgoogle123_good, MODE_RESOURCE); in testEncoder()
290 testEncoder(componentName, format, 0, R.raw.okgoogle123_good, MODE_RESOURCE | MODE_QUIET); in testEncoder()
291 testEncoder(componentName, format, 0, R.raw.tones, MODE_RESOURCE); in testEncoder()
[all …]
/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/content/src/android/content/pm/cts/
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()
DPackageItemInfo_DisplayNameComparatorTest.java39 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testDisplayNameComparator() local
40 ActivityInfo activityInfo = pm.getActivityInfo(componentName, 0); in testDisplayNameComparator()
43 componentName = new ComponentName(PACKAGE_NAME, CMPACTIVITY_NAME); in testDisplayNameComparator()
44 activityInfo = pm.getActivityInfo(componentName, 0); in testDisplayNameComparator()
DServiceInfoTest.java35 ComponentName componentName = new ComponentName(PACKAGE_NAME, SERVICE_NAME); in testServiceInfo() local
41 ServiceInfo serviceInfo = pm.getServiceInfo(componentName, 0); in testServiceInfo()
DInstrumentationInfoTest.java36 ComponentName componentName = new ComponentName(PACKAGE_NAME, INSTRUMENTATION_NAME); in testInstrumentationInfo() local
41 InstrumentationInfo instrInfo = pm.getInstrumentationInfo(componentName, 0); in testInstrumentationInfo()
DPackageItemInfoTest.java97 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in getTestItemInfo() local
99 mPackageManager.getActivityInfo(componentName, PackageManager.GET_META_DATA); in getTestItemInfo()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java693 protected boolean setProfileOwner(String componentName, int userId, boolean expectFailure) in setProfileOwner() argument
695 String command = "dpm set-profile-owner --user " + userId + " '" + componentName + "'"; in setProfileOwner()
708 protected void setProfileOwnerOrFail(String componentName, int userId) in setProfileOwnerOrFail() argument
710 if (!setProfileOwner(componentName, userId, /*expectFailure*/ false)) { in setProfileOwnerOrFail()
718 protected void setProfileOwnerExpectingFailure(String componentName, int userId) in setProfileOwnerExpectingFailure() argument
720 if (setProfileOwner(componentName, userId, /* expectFailure =*/ true)) { in setProfileOwnerExpectingFailure()
728 private String setDeviceAdminInner(String componentName, int userId) in setDeviceAdminInner() argument
730 String command = "dpm set-active-admin --user " + userId + " '" + componentName + "'"; in setDeviceAdminInner()
735 protected void setDeviceAdmin(String componentName, int userId) in setDeviceAdmin() argument
737 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/tests/framework/base/windowmanager/src/android/server/wm/
DActivityMetricsLoggerTests.java129 private void assertMetricsLogs(ComponentName componentName, in assertMetricsLogs() argument
131 assertNotNull("did not find the metrics log for: " + componentName in assertMetricsLogs()
159 private void assertEventLogsContainsLaunchTime(List<Event> events, ComponentName componentName, in assertEventLogsContainsLaunchTime() argument
166 if (name.equals(componentName.flattenToShortString())) { in assertEventLogsContainsLaunchTime()
167 assertEquals("Unexpected windows drawn delay for " + componentName, in assertEventLogsContainsLaunchTime()
172 fail("Could not find am_activity_launch_time for " + componentName); in assertEventLogsContainsLaunchTime()
409 private LogMaker getMetricsLog(ComponentName componentName, int category) { in getMetricsLog() argument
415 if (componentName.getClassName().equals(actualClassName) && in getMetricsLog()
416 componentName.getPackageName().equals(actualPackageName)) { in getMetricsLog()
DCrossAppDragAndDropTests.java142 private void launchFreeformActivity(ComponentName componentName, String mode, in launchFreeformActivity() argument
144 launchActivity(componentName, WINDOWING_MODE_FREEFORM, "mode", mode, "logtag", logtag); in launchFreeformActivity()
147 resizeActivityTask(componentName, topLeft.x, topLeft.y, bottomRight.x, bottomRight.y); in launchFreeformActivity()
148 waitAndAssertTopResumedActivity(componentName, DEFAULT_DISPLAY, in launchFreeformActivity()
/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/app/ManagedProfile/src/com/android/cts/managedprofile/
DPasswordMinimumRestrictionsTest.java187 ComponentName componentName, int length) throws Exception { in invokeSetMethod() argument
190 setMethod.invoke(dpm, componentName, length); in invokeSetMethod()
197 ComponentName componentName) throws Exception { in invokeGetMethod() argument
200 return (int) getMethod.invoke(dpm, componentName); in invokeGetMethod()
/cts/tests/app/src/android/app/cts/
DTileServiceTest.java175 private void toggleServiceAccess(String componentName, boolean on) throws Exception { in toggleServiceAccess() argument
178 + componentName; in toggleServiceAccess()
183 private void clickTile(String componentName) throws Exception { in clickTile() argument
184 runCommand(" cmd statusbar click-tile " + componentName); in clickTile()
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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DCreateAndManageUserTest.java120 DevicePolicyManager devicePolicyManager, ComponentName componentName) throws Exception { in assertSkipSetupWizard() argument
308 ComponentName componentName) { in logoutUser() argument
310 devicePolicyManager.logoutUser(componentName)); in logoutUser()
332 DevicePolicyManager devicePolicyManager, ComponentName componentName) { in assertAffiliatedUser() argument
343 DevicePolicyManager devicePolicyManager, ComponentName componentName) { in assertEphemeralUser() argument
344 assertTrue("not ephemeral user", devicePolicyManager.isEphemeralUser(componentName)); in assertEphemeralUser()
354 DevicePolicyManager devicePolicyManager, ComponentName componentName) { in assertAllSystemAppsInstalled() argument
/cts/tests/framework/base/windowmanager/appSecondUid/src/android/server/wm/second/
DEmbeddingActivity.java63 final ComponentName componentName = in onReceive() local
68 componentName); in onReceive()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DLaunchBroadcastReceiver.java54 final ComponentName componentName = extras.getParcelable(EXTRA_COMPONENT_NAME); in onReceive() local
56 ActivityLauncher.checkActivityStartOnDisplay(context, displayId, componentName); in onReceive()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCommandReceiverActivity.java360 final ComponentName componentName = in onCreate() local
367 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
372 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
378 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
383 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
388 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
393 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
394 getPackageManager().setComponentEnabledSetting(componentName, in onCreate()
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAugmentedHelper.java56 final ComponentName componentName = request.getActivityComponent(); in getActivityName()
57 if (componentName == null) return "N/A (no component name)"; in getActivityName()
59 return componentName.flattenToShortString(); in getActivityName()
/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/framework/base/windowmanager/backgroundactivity/src/android/server/wm/
DBackgroundActivityLaunchTest.java476 private boolean waitForActivityFocused(ComponentName componentName) { in waitForActivityFocused() argument
477 return waitForActivityFocused(ACTIVITY_FOCUS_TIMEOUT_MS, componentName); in waitForActivityFocused()
481 private boolean waitForActivityFocused(int timeoutMs, ComponentName componentName) { in waitForActivityFocused() argument
486 if (mAmWmState.getAmState().hasActivityState(componentName, STATE_RESUMED)) { in waitForActivityFocused()
496 return getActivityName(componentName).equals(mAmWmState.getAmState().getFocusedActivity()); in waitForActivityFocused()

12