Home
last modified time | relevance | path

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

12345

/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.java183 for (String componentName : componentNames) { in testEncoderWithFormatsParallel()
186 pool.execute(new EncoderRun(componentName, format)); in testEncoderWithFormatsParallel()
217 for (String componentName : componentNames) { in testEncoderWithFormats()
220 codec = MediaCodec.createByCodecName(componentName); in testEncoderWithFormats()
225 componentNamesGrouped[instances - 1].add(componentName); in testEncoderWithFormats()
227 fail("codec '" + componentName + "' failed construction."); in testEncoderWithFormats()
311 EncoderRun(String componentName, MediaFormat format) { in EncoderRun() argument
312 mComponentName = componentName; in EncoderRun()
326 private void testEncoder(String componentName, MediaFormat format) in testEncoder() argument
328 Log.i(TAG, "testEncoder " + componentName + "/" + format); in testEncoder()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DHideOverlayWindowsTest.java79 ComponentName componentName = new ComponentName( in testApplicationOverlayHiddenWhenRequested() local
83 launchActivity(componentName, in testApplicationOverlayHiddenWhenRequested()
101 ComponentName componentName = new ComponentName( in testSystemApplicationOverlayFlagNoEffectWithoutPermission() local
105 launchActivity(componentName, in testSystemApplicationOverlayFlagNoEffectWithoutPermission()
124 ComponentName componentName = new ComponentName( in testInternalSystemApplicationOverlaysNotHidden() local
128 launchActivity(componentName, in testInternalSystemApplicationOverlaysNotHidden()
141 ComponentName componentName = new ComponentName( in testSystemApplicationOverlaysNotHidden() local
144 launchActivity(componentName, in testSystemApplicationOverlaysNotHidden()
158 ComponentName componentName = new ComponentName( in testSystemApplicationOverlayHiddenWithoutFlag() local
161 launchActivity(componentName, in testSystemApplicationOverlayHiddenWithoutFlag()
DActivityMetricsLoggerTests.java140 private void assertMetricsLogs(ComponentName componentName, in assertMetricsLogs() argument
142 assertNotNull("did not find the metrics log for: " + componentName in assertMetricsLogs()
170 private void assertEventLogsContainsLaunchTime(List<Event> events, ComponentName componentName, in assertEventLogsContainsLaunchTime() argument
172 verifyLaunchTimeEventLogs(events, componentName, in assertEventLogsContainsLaunchTime()
173 delay -> assertEquals("Unexpected windows drawn delay for " + componentName, in assertEventLogsContainsLaunchTime()
178 ComponentName componentName, IntConsumer launchTimeVerifier) { in verifyLaunchTimeEventLogs() argument
184 if (name.equals(componentName.flattenToShortString())) { in verifyLaunchTimeEventLogs()
189 fail("Could not find wm_activity_launch_time for " + componentName); in verifyLaunchTimeEventLogs()
445 private LogMaker waitForMetricsLog(ComponentName componentName, int category) { in waitForMetricsLog() argument
447 final String message = componentName.toShortString() + " with category " + categoryName; in waitForMetricsLog()
[all …]
DTvMaxWindowSizeTests.java100 private CommandSession.SizeInfo launchAndGetReportedSizes(ComponentName componentName) { in launchAndGetReportedSizes() argument
101 startActivityOnDisplay(Display.DEFAULT_DISPLAY, componentName); in launchAndGetReportedSizes()
102 mWmState.computeState(new WaitForValidActivityState(componentName)); in launchAndGetReportedSizes()
103 final CommandSession.SizeInfo sizeInfo = getLastReportedSizesForActivity(componentName); in launchAndGetReportedSizes()
/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()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyController.java39 UserReference user, PackageReference pkg, ComponentName componentName) { in DevicePolicyController() argument
40 if (testApis == null || user == null || pkg == null || componentName == null) { in DevicePolicyController()
47 mComponentName = componentName; in DevicePolicyController()
68 public ComponentName componentName() { in componentName() method in DevicePolicyController
DAdbDevicePolicyParser27.java69 ComponentName componentName = ComponentName.unflattenFromString( in parseDeviceOwner() local
75 mTestApis.packages().find(componentName.getPackageName()), componentName); in parseDeviceOwner()
112 ComponentName componentName = ComponentName.unflattenFromString( in extractProfileOwner() local
118 mTestApis.packages().find(componentName.getPackageName()), componentName); in extractProfileOwner()
DProfileOwner.java39 ComponentName componentName) { in ProfileOwner() argument
40 super(testApis, user, pkg, componentName); in ProfileOwner()
49 .addOperand(componentName().flattenToShortString()) in remove()
62 stringBuilder.append(", componentName=").append(componentName()); in toString()
DDeviceOwner.java39 ComponentName componentName) { in DeviceOwner() argument
40 super(testApis, user, pkg, componentName); in DeviceOwner()
48 .addOperand(componentName().flattenToShortString()) in remove()
61 stringBuilder.append(", componentName=").append(componentName()); in toString()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java362 protected void removeDeviceOwnerAdmin(String componentName) throws DeviceNotAvailableException { in removeDeviceOwnerAdmin() argument
364 if (!removeAdmin(componentName, mDeviceOwnerUserId)) { in removeDeviceOwnerAdmin()
365 CLog.e("Failed to remove device owner %s on user %d", componentName, in removeDeviceOwnerAdmin()
368 if (isHeadlessSystemUserMode() && !removeAdmin(componentName, mPrimaryUserId)) { in removeDeviceOwnerAdmin()
369 CLog.e("Failed to remove profile owner %s on user %d", componentName, mPrimaryUserId); in removeDeviceOwnerAdmin()
820 protected boolean setProfileOwner(String componentName, int userId, boolean expectFailure) in setProfileOwner() argument
822 String command = "dpm set-profile-owner --user " + userId + " '" + componentName + "'"; in setProfileOwner()
835 protected void setProfileOwnerOrFail(String componentName, int userId) in setProfileOwnerOrFail() argument
837 if (!setProfileOwner(componentName, userId, /*expectFailure*/ false)) { in setProfileOwnerOrFail()
844 protected void setProfileOwnerExpectingFailure(String componentName, int userId) in setProfileOwnerExpectingFailure() argument
[all …]
/cts/tests/tests/car/src/android/car/cts/
DCarRotaryImeTest.java124 ComponentName componentName = ComponentName.unflattenFromString(flattenedComponentName); in isValidIme() local
125 return imeSettingContains(ENABLED_INPUT_METHODS, componentName) in isValidIme()
126 || imeSettingContains(DISABLED_SYSTEM_INPUT_METHODS, componentName); in isValidIme()
134 @NonNull ComponentName componentName) { in imeSettingContains() argument
143 && componentName.equals( in imeSettingContains()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DComponentReference.java67 public ComponentName componentName() { in componentName() method in ComponentReference
117 return componentName().hashCode(); in hashCode()
127 return other.componentName().equals(componentName()); in equals()
/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/content/test-apps/ContextCrossProfileApps/ContextCrossProfileApp/src/com/android/cts/context/
DContextCrossProfileTestConnection.java25 public void onServiceConnected(ComponentName componentName, IBinder service) { in onServiceConnected() argument
29 public void onServiceDisconnected(ComponentName componentName) { in onServiceDisconnected() argument
/cts/hostsidetests/packagemanager/preferredactivity/apps/testapp/src/com/android/cts/packagemanager/preferredactivity/app/
DPreferredActivityDeviceTests.java51 final ComponentName[] componentName = {new ComponentName(PACKAGE_NAME, ACTIVITY_NAME)}; in testAddOnePreferredActivity() local
54 componentName, componentName[0]); in testAddOnePreferredActivity()
/cts/tests/smartspace/src/android/smartspace/cts/
DSmartspaceTestUtils.java24 …public static SmartspaceTarget getBasicSmartspaceTarget(String id, ComponentName componentName, Us… in getBasicSmartspaceTarget() argument
25 return new SmartspaceTarget.Builder(id, componentName, userHandle).build(); in getBasicSmartspaceTarget()
/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/tests/framework/base/biometrics/src/android/server/biometrics/
DActivitySession.java33 public ActivitySession(@NonNull BiometricTestBase test, @NonNull ComponentName componentName) { in ActivitySession() argument
35 mComponentName = componentName; in ActivitySession()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileSharingTest.java59 ComponentName componentName = in startSwitchToOtherProfileIntent() local
62 switchToOtherProfileIntent.setComponent(componentName); in startSwitchToOtherProfileIntent()
80 ComponentName componentName = in startSwitchToOtherProfileIntent_chooser() local
84 switchToOtherProfileIntent.setComponent(componentName); in startSwitchToOtherProfileIntent_chooser()
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/
DComponentPowerStateInfo.java25 protected ComponentPowerStateInfo(String componentName, boolean powerState) { in ComponentPowerStateInfo() argument
26 mComponentName = componentName; in ComponentPowerStateInfo()
/cts/common/device-side/bedstead/remotedpc/src/library/main/java/com/android/bedstead/remotedpc/
DRemoteDpc.java61 if (deviceOwner == null || !deviceOwner.componentName().equals(DPC_COMPONENT_NAME)) { in deviceOwner()
104 if (profileOwner == null || !profileOwner.componentName().equals(DPC_COMPONENT_NAME)) { in profileOwner()
159 if (!controller.componentName().equals(REMOTE_DPC_COMPONENT_NAME)) { in forDevicePolicyController()
187 if (deviceOwner.componentName().equals(DPC_COMPONENT_NAME)) { in setAsDeviceOwner()
218 if (profileOwner.componentName().equals(DPC_COMPONENT_NAME)) { in setAsProfileOwner()
/cts/tests/tests/sharesheet/src/android/sharesheet/cts/
DCtsSharesheetChooserTargetService.java31 public List<ChooserTarget> onGetChooserTargets(ComponentName componentName, in onGetChooserTargets() argument
38 componentName, in onGetChooserTargets()

12345