Home
last modified time | relevance | path

Searched refs:ComponentName (Results 1 – 25 of 1590) sorted by relevance

12345678910>>...64

/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/
DSplitSelectStateControllerTest.kt22 import android.content.ComponentName
102 val nonMatchingComponent = ComponentKey(ComponentName("no", "match"), primaryUserHandle) in activeTasks_noMatchingTasks()
105 ComponentName("pomegranate", "juice"), in activeTasks_noMatchingTasks()
106 ComponentName("pumpkin", "pie") in activeTasks_noMatchingTasks()
110 ComponentName("hotdog", "juice"), in activeTasks_noMatchingTasks()
111 ComponentName("personal", "computer") in activeTasks_noMatchingTasks()
143 ComponentKey(ComponentName(matchingPackage, matchingClass), primaryUserHandle) in activeTasks_singleMatchingTask()
146 ComponentName(matchingPackage, matchingClass), in activeTasks_singleMatchingTask()
147 ComponentName("pomegranate", "juice") in activeTasks_singleMatchingTask()
151 ComponentName("pumpkin", "pie"), in activeTasks_singleMatchingTask()
[all …]
DTaskKeyByLastActiveTimeCacheTest.java22 import android.content.ComponentName;
38 new ComponentName("", ""), 0, 1); in add()
43 new ComponentName("", ""), 0, 2); in add()
61 new ComponentName("", ""), 0, 1000); in addSameTasksWithSameLastActiveTimeTwice()
66 new ComponentName("", ""), 0, 1000); in addSameTasksWithSameLastActiveTimeTwice()
83 new ComponentName("", ""), 0, 1000); in addSameTasksWithDifferentLastActiveTime()
88 new ComponentName("", ""), 0, 2000); in addSameTasksWithDifferentLastActiveTime()
106 new ComponentName("", ""), 0, 0); in remove()
119 new ComponentName("", ""), 1, 100); in removeByStubKey()
123 new ComponentName("", ""), 0, 0); in removeByStubKey()
[all …]
/packages/apps/Car/Launcher/libs/car-launcher-common/tests/src/com/android/car/carlaunchercommon/shortcuts/
DForceStopShortcutItemTest.kt22 import android.content.ComponentName
87 .setMediaSource(any<ComponentName>(), anyInt()) in forceStop_nonMediaApp_shouldNotChangeMediaSource()
93 ComponentName("forceStoppedPkg", "testClassName") in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_forceStopPackageCalled()
95 ComponentName("lastBrowsedMediaPkg", "testClassName") in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_forceStopPackageCalled()
102 .doReturn(ComponentName("otherPkg", "testClassName")) in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_forceStopPackageCalled()
117 ComponentName("forceStoppedPkg", "testClassName") in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_browseMediaSrcSet()
119 ComponentName("lastBrowsedMediaPkg", "testClassName") in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_browseMediaSrcSet()
126 .doReturn(ComponentName("otherPkg", "testClassName")) in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_browseMediaSrcSet()
144 ComponentName("forceStoppedPkg", "testClassName") in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_playbackMediaSrcNotSet()
146 ComponentName("lastBrowsedMediaPkg", "testClassName") in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_playbackMediaSrcNotSet()
[all …]
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/homeactivities/
DTaskCategoryManager.java24 import android.content.ComponentName;
57 private final ComponentName mAppGridActivityComponent;
58 private final ComponentName mNotificationActivityComponent;
59 private final ComponentName mRecentsActivityComponent;
60 private final ComponentName mCalmModeComponent;
61 private final ArraySet<ComponentName> mIgnoreOpeningRootTaskViewComponentsSet;
62 private final Set<ComponentName> mFullScreenActivities;
63 private final Set<ComponentName> mBackgroundActivities;
68 private ComponentName mCurrentBackgroundApp;
77 mAppGridActivityComponent = new ComponentName(context, AppGridActivity.class); in TaskCategoryManager()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DAbstractZenModeAutomaticRulePreferenceControllerTest.java28 import android.content.ComponentName;
62 new ComponentName(mContext.getPackageName(), "test"), Uri.EMPTY, in testGetSettingsActivity_configActivity()
69 ComponentName actual = AbstractZenModeAutomaticRulePreferenceController in testGetSettingsActivity_configActivity()
72 assertThat(actual).isEqualTo(new ComponentName(mContext.getPackageName(), "test")); in testGetSettingsActivity_configActivity()
78 new ComponentName("another", "test"), Uri.EMPTY, in testGetSettingsActivity_configActivity_wrongPackage()
85 ComponentName actual = AbstractZenModeAutomaticRulePreferenceController in testGetSettingsActivity_configActivity_wrongPackage()
94 new ComponentName("another", "test"), Uri.EMPTY, in testGetSettingsActivity_configActivity_unspecifiedOwner()
100 ComponentName actual = AbstractZenModeAutomaticRulePreferenceController in testGetSettingsActivity_configActivity_unspecifiedOwner()
103 assertThat(actual).isEqualTo(new ComponentName("another", "test")); in testGetSettingsActivity_configActivity_unspecifiedOwner()
109 new ComponentName(mContext.getPackageName(), "service"), null, Uri.EMPTY, in testGetSettingsActivity_cps()
[all …]
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DAccessibilityUtils.java20 import android.content.ComponentName;
45 public static Set<ComponentName> getEnabledServicesFromSettings(Context context) { in getEnabledServicesFromSettings()
76 public static Set<ComponentName> getEnabledServicesFromSettings(Context context, int userId) { in getEnabledServicesFromSettings()
84 final Set<ComponentName> enabledServices = new HashSet<>(); in getEnabledServicesFromSettings()
90 final ComponentName enabledService = ComponentName.unflattenFromString( in getEnabledServicesFromSettings()
114 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState()
122 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState()
125 Set<ComponentName> enabledServices = AccessibilityUtils.getEnabledServicesFromSettings( in setAccessibilityServiceState()
141 Set<ComponentName> installedServices = getInstalledServices(context); in setAccessibilityServiceState()
142 for (ComponentName enabledService : enabledServices) { in setAccessibilityServiceState()
[all …]
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DDevicePolicyManagerCompat.java20 import android.content.ComponentName;
79 ComponentName getProfileOwnerOrDeviceOwnerSupervisionComponent( in getProfileOwnerOrDeviceOwnerSupervisionComponent()
85 List<ComponentName> getActiveAdminsAsUser(int userId) { in getActiveAdminsAsUser()
89 public int getMaximumFailedPasswordsForWipe(@Nullable ComponentName admin, int userHandle) { in getMaximumFailedPasswordsForWipe()
93 public ComponentName getDeviceOwnerComponentOnCallingUser() { in getDeviceOwnerComponentOnCallingUser()
98 ComponentName getProfileOwnerAsUser(final int userId) { in getProfileOwnerAsUser()
121 @NonNull ComponentName admin, int userHandle) { in getShortSupportMessageForUser()
130 public boolean isRemovingAdmin(@NonNull ComponentName admin, int userId) { in isRemovingAdmin()
134 public void setActiveAdmin(@NonNull ComponentName policyReceiver, boolean refreshing) { in setActiveAdmin()
138 public boolean setProfileOwner(@NonNull ComponentName admin, int userHandle) in setProfileOwner()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/model/
DAbstractResolverComparatorTest.java21 import android.content.ComponentName;
44 new ComponentName("package", "class")); in testPinned()
48 new ComponentName("zackage", "zlass")); in testPinned()
60 new ComponentName("package", "class")); in testBothPinned()
64 new ComponentName("zackage", "zlass")); in testBothPinned()
75 ComponentName promoteToFirst = new ComponentName("promoted-package", "class"); in testPromoteToFirst()
79 new ComponentName("package", "class")); in testPromoteToFirst()
90 ComponentName cementedComponent = new ComponentName("promoted-package", "class"); in testPromoteToFirstOverPinned()
94 new ComponentName("package", "class")); in testPromoteToFirstOverPinned()
104 private ResolvedComponentInfo createResolvedComponentInfo(ComponentName component) { in createResolvedComponentInfo()
[all …]
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/
DDockInterface.kt19 import android.content.ComponentName
25 fun appPinned(componentName: ComponentName)
28 fun appPinned(componentName: ComponentName, index: Int)
34 fun appUnpinned(componentName: ComponentName)
40 fun appLaunched(componentName: ComponentName)
55 fun launchApp(componentName: ComponentName, isMediaApp: Boolean)
58 fun getIconColorWithScrim(componentName: ComponentName): Int
61 fun getMediaServiceComponents(): Set<ComponentName>
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDevicePolicyManager.java31 import android.content.ComponentName;
56 private ComponentName mProfileOwner;
57 private ComponentName mDeviceOwnerComponentName;
72 public void setShortSupportMessageForUser(ComponentName admin, int userHandle, String message) { in setShortSupportMessageForUser()
77 protected @Nullable CharSequence getShortSupportMessageForUser(@NonNull ComponentName admin, in getShortSupportMessageForUser()
83 protected boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser()
93 protected long getMaximumTimeToLock(ComponentName admin, @UserIdInt int userHandle) { in getMaximumTimeToLock()
98 protected ComponentName getDeviceOwnerComponentOnAnyUser() { in getDeviceOwnerComponentOnAnyUser()
114 public void setDeviceOwnerComponentOnAnyUser(ComponentName admin) { in setDeviceOwnerComponentOnAnyUser()
118 public void setDeviceOwnerType(@NonNull ComponentName admin, in setDeviceOwnerType()
[all …]
DShadowAccessibilityManager.java21 import android.content.ComponentName;
35 private Map<ComponentName, ComponentName> mA11yFeatureToTileMap = new ArrayMap<>();
41 public Map<ComponentName, ComponentName> getA11yFeatureToTileMap(@UserIdInt int userId) { in getA11yFeatureToTileMap()
49 @NonNull Map<ComponentName, ComponentName> a11yFeatureToTileMap) { in setA11yFeatureToTileMap()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java23 import android.content.ComponentName;
144 final HashMap<ComponentName, ApduServiceInfo> services =
146 final HashMap<ComponentName, DynamicSettings> dynamicSettings =
148 final HashMap<ComponentName, OtherServiceStatus> others =
363 void dump(ArrayList<ComponentName> services) { in dump()
364 for (ComponentName service : services) { in dump()
369 boolean containsServiceLocked(ArrayList<ApduServiceInfo> services, ComponentName serviceName) { in containsServiceLocked()
376 public boolean hasService(int userId, ComponentName service) { in hasService()
380 public ApduServiceInfo getService(int userId, ComponentName service) { in getService()
431 ComponentName componentName = new ComponentName(si.packageName, si.name); in getInstalledServices()
[all …]
DCardEmulationManager.java22 import android.content.ComponentName;
388 ComponentName defaultPaymentService = null; in verifyDefaults()
393 ComponentName paymentService = getDefaultServiceForCategory(uh.getIdentifier(), in verifyDefaults()
420 ComponentName lastFoundPaymentService = null; in verifyDefaults()
454 boolean wasServicePreInstalled(PackageManager packageManager, ComponentName service) { in wasServicePreInstalled()
470 ComponentName getDefaultServiceForCategory(int userId, String category, in getDefaultServiceForCategory()
481 ComponentName service = ComponentName.unflattenFromString(name); in getDefaultServiceForCategory()
492 boolean setDefaultServiceForCategoryChecked(int userId, ComponentName service, in setDefaultServiceForCategoryChecked()
512 boolean isServiceRegistered(int userId, ComponentName service) { in isServiceRegistered()
526 boolean isNfcFServiceInstalled(int userId, ComponentName service) { in isNfcFServiceInstalled()
[all …]
/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/
DCtsOdpManagerTests.java29 import android.content.ComponentName;
145 new ComponentName(SERVICE_PACKAGE, SERVICE_CLASS), in testExecuteThrowsIfParamsMissing()
161 new ComponentName(SERVICE_PACKAGE, SERVICE_CLASS), in testExecuteThrowsIfExecutorMissing()
177 new ComponentName(SERVICE_PACKAGE, SERVICE_CLASS), in testExecuteThrowsIfReceiverMissing()
193 new ComponentName("", SERVICE_CLASS), in testExecuteThrowsIfPackageNameMissing()
209 new ComponentName(SERVICE_PACKAGE, ""), in testExecuteThrowsIfClassNameMissing()
222 new ComponentName("somepackage", "someclass"), in testExecuteReturnsIllegalStateIfServiceNotEnrolled()
237 new ComponentName("com.example.odptargetingapp2", "someclass"), in testExecuteReturnsNameNotFoundIfServiceNotInstalled()
253 new ComponentName(SERVICE_PACKAGE, "someclass"), in testExecuteReturnsClassNotFoundIfServiceClassNotFound()
268 new ComponentName(SERVICE_PACKAGE, SERVICE_CLASS), in testExecuteNoOp()
[all …]
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/
DAppLauncherUtils.java31 import android.content.ComponentName;
128 private final Map<ComponentName, AppMetaData> mLaunchables;
131 private final Map<ComponentName, ResolveInfo> mMediaServices;
133 LauncherAppsInfo(@NonNull Map<ComponentName, AppMetaData> launchablesMap, in LauncherAppsInfo() argument
134 @NonNull Map<ComponentName, ResolveInfo> mediaServices) { in LauncherAppsInfo()
147 boolean isMediaService(ComponentName componentName) { in isMediaService()
153 AppMetaData getAppMetaData(ComponentName componentName) { in getAppMetaData()
165 Map<ComponentName, ResolveInfo> getMediaServices() { in getMediaServices()
177 static ComponentName getMediaSource(@NonNull PackageManager packageManager, in getMediaSource()
191 return new ComponentName(packageName, defaultService); in getMediaSource()
[all …]
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/
DAccessibilitySourceServiceTest.kt20 import android.content.ComponentName
105 val a11yService = ComponentName("com.test.package", "AccessibilityService") in markServiceAsNotified()
115 val testComponent = ComponentName("com.test.package", "TestClass") in markAsNotifiedWithSecondComponent()
116 val testComponent2 = ComponentName("com.test.package2", "TestClass2") in markAsNotifiedWithSecondComponent()
138 val a11yService = ComponentName("com.test.package", "AccessibilityService") in removeNotifiedService()
139 val a11yService2 = ComponentName("com.test.package", "AccessibilityService2") in removeNotifiedService()
140 val a11yService3 = ComponentName("com.test.package", "AccessibilityService3") in removeNotifiedService()
157 val testComponent = ComponentName("com.test.package", "TestClass") in removePackageState()
158 val testComponent2 = ComponentName("com.test.package", "TestClass2") in removePackageState()
159 val testComponent3 = ComponentName("com.test.package2", "TestClass3") in removePackageState()
[all …]
DNotificationListenerCheckInternalTest.kt21 import android.content.ComponentName
174 val testComponent = ComponentName("com.test.package", "TestClass") in removeDisabledComponentsFromNotifiedComponents()
175 val testComponent2 = ComponentName("com.test.package2", "TestClass2") in removeDisabledComponentsFromNotifiedComponents()
211 val testComponent = ComponentName("com.test.package", "TestClass") in markAsNotified()
226 val testComponent = ComponentName("com.test.package", "TestClass") in markAsNotified_notifySecondComponent()
227 val testComponent2 = ComponentName("com.test.package2", "TestClass2") in markAsNotified_notifySecondComponent()
256 val testComponent = ComponentName("com.test.package", "TestClass") in markAsNotified_notifySecondComponent_ensureFirstComponentNotModified()
257 val testComponent2 = ComponentName("com.test.package2", "TestClass2") in markAsNotified_notifySecondComponent_ensureFirstComponentNotModified()
289 val testComponent = ComponentName("com.test.package", "TestClass") in removeFromNotifiedComponents()
290 val testComponent2 = ComponentName("com.test.package2", "TestClass2") in removeFromNotifiedComponents()
[all …]
/packages/apps/Car/Launcher/libs/appgrid/lib/robotests/src/shadows/
DShadowMediaSource.kt19 import android.content.ComponentName
27 private val mediaTemplateComponents = mutableSetOf<ComponentName>()
28 private val customComponents = mutableSetOf<ComponentName>()
31 fun isMediaTemplate(context: Context, mbsComponentName: ComponentName): Boolean { in isMediaTemplate()
36 fun isAudioMediaSource(context: Context, mbsComponentName: ComponentName): Boolean { in isAudioMediaSource()
41 fun setMediaTemplates(mediaTemplateComponents: List<ComponentName>) { in setMediaTemplates()
46 fun setCustomTemplates(customComponents: List<ComponentName>) { in setCustomTemplates()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerPreferenceControllerTest.java26 import android.content.ComponentName;
88 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in setUp()
90 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in setUp()
114 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in getCandidates_voiceInteractionService_hasOneElement()
136 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in getCandidates_oneIsSameAsAssistant_hasTwoElements()
148 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
164 new ComponentName(TEST_PACKAGE_NAME, TEST_OTHER_SERVICE)); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled()
180 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in getCandidates_voiceRecognitionInfo_IsEnabled()
184 new ComponentName(TEST_PACKAGE_NAME, TEST_OTHER_SERVICE)); in getCandidates_voiceRecognitionInfo_IsEnabled()
189 new ComponentName(TEST_PACKAGE_NAME, TEST_OTHER_SERVICE))) { in getCandidates_voiceRecognitionInfo_IsEnabled()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/plugins/
DPluginEnablerImpl.java17 import android.content.ComponentName;
35 public void setEnabled(ComponentName component) { in setEnabled()
40 public void setDisabled(ComponentName component, int reason) { in setDisabled()
44 private void setState(ComponentName component, boolean enabled) { in setState()
49 public boolean isEnabled(ComponentName component) { in isEnabled()
54 public int getDisableReason(ComponentName componentName) { in getDisableReason()
58 private static String pluginEnabledKey(ComponentName cn) { in pluginEnabledKey()
/packages/services/Telecomm/src/com/android/server/telecom/
DConnectionServiceRepository.java19 import android.content.ComponentName;
35 private final HashMap<Pair<ComponentName, UserHandle>, ConnectionServiceWrapper> mServiceCache =
69 ComponentName componentName, in getService()
71 Pair<ComponentName, UserHandle> cacheKey = Pair.create(componentName, userHandle); in getService()
90 public void setService(ComponentName componentName, UserHandle userHandle, in setService()
92 Pair<ComponentName, UserHandle> cacheKey = Pair.create(componentName, userHandle); in setService()
104 for (Pair<ComponentName, UserHandle> cacheKey : mServiceCache.keySet()) { in dump()
105 ComponentName componentName = cacheKey.first; in dump()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DResolverListAdapterTest.kt19 import android.content.ComponentName
69 val resolvedTargets = createResolvedComponents(ComponentName(PKG_NAME, CLASS_NAME)) in test_oneTargetNoLastChosen_oneTargetInAdapter()
118 val resolvedTargets = createResolvedComponents(ComponentName(PKG_NAME, CLASS_NAME)) in test_oneTargetThatWasLastChosen_NoTargetsInAdapter()
167 val resolvedTargets = createResolvedComponents(ComponentName(PKG_NAME, CLASS_NAME)) in test_oneTargetLastChosenNotInTheList_oneTargetInAdapter()
218 val resolvedTargets = createResolvedComponents(ComponentName(PKG_NAME, CLASS_NAME)) in test_oneTargetThatWasLastChosenFilteringDisabled_oneTargetInAdapter()
290 ComponentName(PKG_NAME, CLASS_NAME), in testTwoTargets()
291 ComponentName(PKG_NAME_TWO, CLASS_NAME), in testTwoTargets()
367 ComponentName(PKG_NAME, CLASS_NAME), in test_twoTargetsLastChosenNotInTheList_twoTargetsInAdapter()
368 ComponentName(PKG_NAME_TWO, CLASS_NAME), in test_twoTargetsLastChosenNotInTheList_twoTargetsInAdapter()
433 ComponentName(PKG_NAME, CLASS_NAME), in test_twoTargetsWithOtherProfileAndLastChosen_oneTargetInAdapter()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DVoiceInputUtils.java19 import android.content.ComponentName;
34 static ComponentName getCurrentService(Context context) { in getCurrentService()
35 ComponentName currentVoiceInteraction = getComponentNameOrNull(context, in getCurrentService()
37 ComponentName currentVoiceRecognizer = getComponentNameOrNull(context, in getCurrentService()
49 private static ComponentName getComponentNameOrNull(Context context, String secureSettingKey) { in getComponentNameOrNull()
53 return ComponentName.unflattenFromString(currentSetting); in getComponentNameOrNull()
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/media/
DMediaUtils.kt21 import android.content.ComponentName in <lambda>()
37 val CAR_MEDIA_ACTIVITY = ComponentName( in <lambda>()
45 fun getMediaComponentName(taskInfo: ActivityManager.RunningTaskInfo): ComponentName? { in <lambda>()
58 val mediaComponent = ComponentName.unflattenFromString(mediaComponentString) in <lambda>()
63 fun isMediaComponent(component: ComponentName?) = component == CAR_MEDIA_ACTIVITY in <lambda>()
65 fun createLaunchIntent(componentName: ComponentName) = in <lambda>()
72 ): MutableSet<ComponentName> { in <lambda>()
/packages/services/Car/car-lib/src/android/car/app/
DRemoteCarRootTaskViewConfig.java21 import android.content.ComponentName;
34 private final List<ComponentName> mAllowListedActivities;
37 @NonNull List<ComponentName> allowListedActivities) { in RemoteCarRootTaskViewConfig()
48 public List<ComponentName> getAllowListedActivities() { in getAllowListedActivities()
68 private List<ComponentName> mAllowListedActivities;
86 @NonNull List<ComponentName> allowListedActivities) { in setAllowListedActivities()

12345678910>>...64