Home
last modified time | relevance | path

Searched refs:getComponent (Results 1 – 25 of 57) sorted by relevance

123

/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DActivityBlockingTest.java127 .setAllowedActivities(Set.of(mEmptyActivityIntent.getComponent())) in setAllowedActivities_shouldBlockNonAllowedActivities()
135 .setAllowedActivities(Set.of(mMonitoredIntent.getComponent())) in setAllowedActivities_shouldAllowActivitiesInAllowlist()
143 .setBlockedActivities(Set.of(mMonitoredIntent.getComponent())) in setBlockedActivities_shouldBlockActivityFromLaunching()
151 .setBlockedActivities(Set.of(mEmptyActivityIntent.getComponent())) in setBlockedActivities_shouldAllowOtherActivitiesToLaunch()
160 .setBlockedActivities(Set.of(mMonitoredIntent.getComponent())) in setBlockedActivities_removeExemption_shouldAllowLaunching()
164 mVirtualDevice.removeActivityPolicyExemption(mMonitoredIntent.getComponent()); in setBlockedActivities_removeExemption_shouldAllowLaunching()
172 .setAllowedActivities(Set.of(mMonitoredIntent.getComponent())) in setAllowedActivities_removeExemption_shouldBlockFromLaunching()
176 mVirtualDevice.removeActivityPolicyExemption(mMonitoredIntent.getComponent()); in setAllowedActivities_removeExemption_shouldBlockFromLaunching()
188 mVirtualDevice.addActivityPolicyExemption(mMonitoredIntent.getComponent()); in defaultActivityPolicy_addExemption_shouldBlockFromLaunching()
200 mVirtualDevice.addActivityPolicyExemption(mMonitoredIntent.getComponent()); in customActivityPolicy_addExemption_shouldAllowLaunching()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DStartActivityTests.java265 activitySession3.getOriginalLaunchIntent().getComponent()); in verifyNavigateUpTo()
384 mWmState.computeState(baseIntent.getComponent()); in testStartActivitiesTaskOverlayStayOnTop()
385 final int taskId = mWmState.getTaskByActivity(baseIntent.getComponent()).getTaskId(); in testStartActivitiesTaskOverlayStayOnTop()
395 waitAndAssertResumedActivity(taskOverlay.getComponent(), in testStartActivitiesTaskOverlayStayOnTop()
404 baseIntent.getComponent()) in testStartActivitiesTaskOverlayStayOnTop()
413 baseIntent.getComponent()) in testStartActivitiesTaskOverlayStayOnTop()
418 + "resumed", taskOverlay.getComponent()); in testStartActivitiesTaskOverlayStayOnTop()
448 mWmState.computeState(baseIntent.getComponent()); in verifyStartActivitiesTaskOverlayWithLaunchFlags()
449 final int taskId = mWmState.getTaskByActivity(baseIntent.getComponent()).getTaskId(); in verifyStartActivitiesTaskOverlayWithLaunchFlags()
459 waitAndAssertResumedActivity(taskOverlay.getComponent(), in verifyStartActivitiesTaskOverlayWithLaunchFlags()
[all …]
DActivityRecordInputSinkTests.java56 Components.TranslucentFloatingActivity.getComponent(APP_SELF);
58 Components.TranslucentFloatingActivity.getComponent(APP_A);
60 Components.TrampolineActivity.getComponent(APP_A);
/cts/tests/app/src/android/app/cts/
DAttributionTagsTest.java66 mPackageManager.getActivityInfo(intent.getComponent(), 0).attributionTags[0]); in testActivity()
81 mPackageManager.getActivityInfo(intent.getComponent(), 0).attributionTags[0]); in testActivityAlias()
94 mPackageManager.getServiceInfo(intent.getComponent(), 0).attributionTags[0]); in testService()
106 mPackageManager.getProviderInfo(intent.getComponent(), 0).attributionTags[0]); in testProvider()
118 mPackageManager.getReceiverInfo(intent.getComponent(), 0).attributionTags[0]); in testReceiver()
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/
DComponents.java61 static ComponentName getComponent(String packageName) { in getComponent() method
70 static ComponentName getComponent(String packageName) { in getComponent() method
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DWindowExtensionTestRule.java46 mComponent = getComponent(mComponentToFetch); in apply()
57 public Object getComponent(Class<?> componentToFetch) {
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodInfoTest.java189 info.createImeLanguageSettingsActivityIntent().getComponent().getClassName()); in assertInfo()
191 ComponentName component = info.getComponent(); in assertInfo()
200 info.createStylusHandwritingSettingsActivityIntent().getComponent().getClassName()); in assertInfo()
250 assertEquals("language_settings", languageSettingsIntent.getComponent().getClassName()); in testLanguageSettingsInfo()
265 assertEquals(mInputMethodInfo.createImeLanguageSettingsActivityIntent().getComponent() in testInputMethodInfoWriteToParcel()
267 imi.createImeLanguageSettingsActivityIntent().getComponent().getClassName()); in testInputMethodInfoWriteToParcel()
272 assertEquals(mInputMethodInfo.createStylusHandwritingSettingsActivityIntent().getComponent() in testInputMethodInfoWriteToParcel()
274 imi.createStylusHandwritingSettingsActivityIntent().getComponent().getClassName()); in testInputMethodInfoWriteToParcel()
DInputMethodRegistrationTest.java117 imi -> imi.getComponent().equals(firstMockImeComponentName)).count() == 1, in verifyTestSetup_initiallyDisabledImes_AreFound()
200 InputMethodInfo::getComponent).toList(); in testLoadEnabledIMEsAndMore()
212 InputMethodInfo::getComponent).toList(); in testLoadEnabledIMEsAndMore()
223 .that(filteredImis.stream().map(InputMethodInfo::getComponent).toList()) in testLoadEnabledIMEsAndMore()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/activities/
DActivity.java98 if (intent.getComponent() == null) { in startActivity()
107 ComponentReference component = new ComponentReference(intent.getComponent()); in startActivity()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/rrlp_messages/
DPDU.java117 public RRLP_Component getComponent() { in getComponent() method in PDU
186 return getComponent() != null; in getComponents()
198 return getComponent(); in getComponents()
221 + getComponent().toIndentedString(indent); in getComponents()
/cts/tests/tests/car/src/android/car/cts/
DCarRotaryImeTest.java119 String currentInput = mInputMethodManager.getCurrentInputMethodInfo().getComponent() in rotaryImeInRotaryMode()
140 String currentInput = mInputMethodManager.getCurrentInputMethodInfo().getComponent() in rotaryImeNotInTouchMode()
212 .map(inputMethodInfo -> inputMethodInfo.getComponent()) in isValidIme()
/cts/tests/tests/background/src/android/app/cts/backgroundrestrictions/
DMyReceiver.java49 public static ComponentName getComponent() { in getComponent() method in MyReceiver
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputInfoTest.java102 assertEquals(mStubInfo.createSetupIntent().getComponent(), in testTvInputInfoOp()
103 infoFromParcel.createSetupIntent().getComponent()); in testTvInputInfoOp()
126 assertEquals(intent.getComponent(), new ComponentName(getContext(), in testGetIntentForSetupActivity()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DSimpleIntentReceiverActivity.java36 String className = getIntent().getComponent().getClassName(); in onCreate()
/cts/tests/tests/nfc/src/android/nfc/cts/
DApduServiceInfoTest.java105 assertEquals(apduServiceInfo.getComponent(), in test_Constructor()
149 assertEquals(apduServiceInfo.getComponent(), WalletRoleTestUtils.getForegroundService()); in test_Constructor_ParseManifest_ForegroundService()
177 assertEquals(apduServiceInfo.getComponent(), newApduServiceInfo.getComponent()); in test_ReadWriteParcel()
DNfcFServiceInfoTest.java109 assertEquals(nfcFServiceInfo.getComponent(), in test_Constructor()
127 assertEquals(newNfcFServiceInfo.getComponent(), in test_ReadWriteParcel()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingLaunchTests.java246 Predicate<Intent> intentPredicate = intent -> intent.getComponent() != null in testAlwaysExpandOverSplit_launchFromPrimary()
247 && TestActivityWithId.class.getName().equals(intent.getComponent().getClassName()); in testAlwaysExpandOverSplit_launchFromPrimary()
288 Predicate<Intent> intentPredicate = intent -> intent.getComponent() != null in testAlwaysExpandOverSplit_launchFromSecondary()
289 && TestActivityWithId.class.getName().equals(intent.getComponent().getClassName()); in testAlwaysExpandOverSplit_launchFromSecondary()
DActivityStackApisTests.java121 return intent.getComponent().getClassName().equals( in testFinishActivityStacks_finishAllSecondaryStacks_primaryStackExpand()
139 return intent.getComponent().getClassName().equals( in testFinishActivityStacks_finishAllSecondaryStacks_primaryStackExpand()
/cts/tests/tests/graphics/src/android/graphics/cts/
DColor_ColorLongTest.java213 assertEquals(c.red(), c.getComponent(0), 0.0f); in testComponents()
214 assertEquals(c.green(), c.getComponent(1), 0.0f); in testComponents()
215 assertEquals(c.blue(), c.getComponent(2), 0.0f); in testComponents()
216 assertEquals(c.alpha(), c.getComponent(3), 0.0f); in testComponents()
248 valueOf(0.1f, 0.2f, 0.3f, 0.4f).getComponent(4); in testComponentOutOfBounds()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java157 assertEquals(mComponentName, mIntent.getComponent()); in testConstructor()
163 assertEquals(mComponentName, mIntent.getComponent()); in testConstructor()
200 assertEquals(mIntent.getComponent(), target.getComponent()); in testReadFromParcel()
294 assertEquals(mComponentName, mIntent.getComponent()); in testSetClassName1()
301 assertEquals(mComponentName, mIntent.getComponent()); in testSetClassName2()
396 assertEquals(mComponentName, mIntent.getComponent()); in testAccessComponent()
493 assertNull(mIntent.getComponent()); in testSetClass()
495 assertEquals(mComponentName, mIntent.getComponent()); in testSetClass()
851 assertEquals(mComponentName, actual.getComponent()); in testClone()
853 assertEquals(mComponentName, actual.getComponent()); in testClone()
[all …]
/cts/tests/location/location_gnss/src/android/location/cts/gnss/suplClient/
DSuplRrlpController.java151 IonosphericModel ionoModel = pdu.getComponent().getAssistanceData().getGps_AssistData() in buildNavMessageProto()
153 NavigationModel navModel = pdu.getComponent().getAssistanceData().getGps_AssistData() in buildNavMessageProto()
155 int gpsWeek = pdu.getComponent().getAssistanceData().getGps_AssistData().getControlHeader() in buildNavMessageProto()
/cts/tools/cts-api-coverage/src/com/android/cts/apimap/
DTarJan.java63 public List<MethodProfile> getComponent(int id) { in getComponent() method in TarJan
/cts/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/
DAccessNetworkTest.java149 Assert.fail("Failed binding to service " + intent.getComponent()); in doNetworkTest()
/cts/tests/framework/base/windowmanager/backgroundactivity/TestApp/src/android/server/wm/backgroundactivity/appa/
DForegroundEmbeddingActivity.java93 WindowManagerJetpackTestBase.startActivityFromActivity(this, intent.getComponent(), in startActivityInSplit()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/content/
DContextHelperTest.java87 ComponentName testActivityName = startIntent.getComponent(); in testStartActivityAsUser()

123