Home
last modified time | relevance | path

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

12345678910>>...41

/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/util/
DSplitSelectStateControllerTest.kt21 import android.content.ComponentName
85 val nonMatchingComponent = ComponentKey(ComponentName("no", "match"), primaryUserHandle) in activeTasks_noMatchingTasks()
88 ComponentName("pomegranate", "juice"), in activeTasks_noMatchingTasks()
89 ComponentName("pumpkin", "pie") in activeTasks_noMatchingTasks()
93 ComponentName("hotdog", "juice"), in activeTasks_noMatchingTasks()
94 ComponentName("personal", "computer") in activeTasks_noMatchingTasks()
124 ComponentKey(ComponentName(matchingPackage, matchingClass), primaryUserHandle) in activeTasks_singleMatchingTask()
127 ComponentName(matchingPackage, matchingClass), in activeTasks_singleMatchingTask()
128 ComponentName("pomegranate", "juice") in activeTasks_singleMatchingTask()
132 ComponentName("pumpkin", "pie"), in activeTasks_singleMatchingTask()
[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 …]
DDreamBackend.java20 import android.content.ComponentName;
58 public ComponentName componentName;
59 public ComponentName settingsComponentName;
120 ComponentName activeDream = getActiveDream(); in getDreamInfos()
143 public ComponentName getDefaultDream() { in getDefaultDream()
156 ComponentName cn = getActiveDream(); in getActiveDreamName()
175 final ComponentName cn = getActiveDream(); in getActiveIcon()
264 public void setActiveDream(ComponentName dream) { in setActiveDream()
270 ComponentName[] dreams = {dream}; in setActiveDream()
277 public ComponentName getActiveDream() { in getActiveDream()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DChooserIntegratedDeviceComponents.java20 import android.content.ComponentName;
37 private final ComponentName mEditSharingComponent;
40 private final ComponentName mNearbySharingComponent;
53 ComponentName editSharingComponent, ComponentName nearbySharingComponent) { in ChooserIntegratedDeviceComponents()
58 public ComponentName getEditSharingComponent() { in getEditSharingComponent()
62 public ComponentName getNearbySharingComponent() { in getNearbySharingComponent()
66 private static ComponentName getEditSharingComponent(Context context) { in getEditSharingComponent()
70 ? null : ComponentName.unflattenFromString(editorComponent); in getEditSharingComponent()
73 private static ComponentName getNearbySharingComponent(Context context, in getNearbySharingComponent()
81 ? null : ComponentName.unflattenFromString(nearbyComponent); in getNearbySharingComponent()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java35 import android.content.ComponentName;
143 PhoneAccountHandle input = new PhoneAccountHandle(new ComponentName("pkg0", "cls0"), "id0"); in testPhoneAccountHandle()
148 PhoneAccountHandle inputN = new PhoneAccountHandle(new ComponentName("pkg0", "cls0"), null); in testPhoneAccountHandle()
181 ComponentName componentA = new ComponentName("a", "a"); in testFilterPhoneAccountForTest()
182 ComponentName componentB1 = new ComponentName("b", "b1"); in testFilterPhoneAccountForTest()
183 ComponentName componentB2 = new ComponentName("b", "b2"); in testFilterPhoneAccountForTest()
184 ComponentName componentC = new ComponentName("c", "c"); in testFilterPhoneAccountForTest()
552 new ComponentName("other1", "other2"), "tel_acct2"); in testAddSameGroupButDifferentComponent()
577 new ComponentName("other1", "other2"), "tel_acct1"); in testAddSameGroupButDifferentComponent2()
665 new ComponentName("self", "managed"), "selfie1"); in testSelfManagedPhoneAccount()
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DCardEmulationManager.java18 import android.content.ComponentName;
293 ComponentName defaultPaymentService = null; in verifyDefaults()
298 ComponentName paymentService = getDefaultServiceForCategory(uh.getIdentifier(), in verifyDefaults()
326 ComponentName lastFoundPaymentService = null; in verifyDefaults()
350 ComponentName getDefaultServiceForCategory(int userId, String category, in getDefaultServiceForCategory()
361 ComponentName service = ComponentName.unflattenFromString(name); in getDefaultServiceForCategory()
372 boolean setDefaultServiceForCategoryChecked(int userId, ComponentName service, in setDefaultServiceForCategoryChecked()
391 boolean isServiceRegistered(int userId, ComponentName service) { in isServiceRegistered()
405 boolean isNfcFServiceInstalled(int userId, ComponentName service) { in isNfcFServiceInstalled()
465 public boolean isDefaultServiceForCategory(int userId, ComponentName service, in isDefaultServiceForCategory()
[all …]
DRegisteredNfcFServicesCache.java21 import android.content.ComponentName;
113 final HashMap<ComponentName, NfcFServiceInfo> services =
115 final HashMap<ComponentName, DynamicSystemCode> dynamicSystemCode =
117 final HashMap<ComponentName, DynamicNfcid2> dynamicNfcid2 =
207 ComponentName componentName) { in containsServiceLocked()
214 public boolean hasService(int userId, ComponentName componentName) { in hasService()
218 public NfcFServiceInfo getService(int userId, ComponentName componentName) { in getService()
254 ComponentName componentName = new ComponentName(si.packageName, si.name); in getInstalledServices()
342 ArrayList<ComponentName> toBeRemovedDynamicSystemCode = in invalidateCache()
343 new ArrayList<ComponentName>(); in invalidateCache()
[all …]
DRegisteredServicesCache.java21 import android.content.ComponentName;
115 final HashMap<ComponentName, ApduServiceInfo> services =
117 final HashMap<ComponentName, DynamicSettings> dynamicSettings =
235 boolean containsServiceLocked(ArrayList<ApduServiceInfo> services, ComponentName serviceName) { in containsServiceLocked()
242 public boolean hasService(int userId, ComponentName service) { in hasService()
246 public ApduServiceInfo getService(int userId, ComponentName service) { in getService()
298 ComponentName componentName = new ComponentName(si.packageName, si.name); in getInstalledServices()
340 Iterator<Map.Entry<ComponentName, ApduServiceInfo>> it = in invalidateCache()
343 Map.Entry<ComponentName, ApduServiceInfo> entry = in invalidateCache()
344 (Map.Entry<ComponentName, ApduServiceInfo>) it.next(); in invalidateCache()
[all …]
DPreferredServices.java19 import android.content.ComponentName;
75 ComponentName settingsDefault; // The component preferred in settings (eg Tap&Pay)
76 ComponentName currentPreferred; // The computed preferred component
84 ComponentName mForegroundRequested; // The component preferred by fg app
87 ComponentName mNextTapDefault; // The component preferred by active disambig dialog
91 ComponentName mForegroundCurrent; // The currently computed foreground component
98 void onPreferredPaymentServiceChanged(int userId, ComponentName service); in onPreferredPaymentServiceChanged()
102 void onPreferredForegroundServiceChanged(int userId, ComponentName service); in onPreferredForegroundServiceChanged()
172 ComponentName newDefault = newDefaultName != null in loadDefaultsFromSettings()
173 ? ComponentName.unflattenFromString(newDefaultName) : null; in loadDefaultsFromSettings()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DCarActivityServiceTaskMonitorUnitTest.java35 import android.content.ComponentName;
144 ComponentName activityA = toComponentName(getTestContext(), ActivityA.class); in testActivityLaunch()
150 ComponentName activityB = toComponentName(getTestContext(), ActivityB.class); in testActivityLaunch()
159 ComponentName denyListedActivity = toComponentName(getTestContext(), ActivityC.class); in testActivityBlocking()
160 ComponentName blockingActivity = toComponentName(getTestContext(), BlockingActivity.class); in testActivityBlocking()
180 ComponentName activityA = toComponentName(getTestContext(), ActivityA.class); in testRemovesFromTopTasks()
198 ComponentName activityA = toComponentName(getTestContext(), ActivityA.class); in testGetTopTasksOnMultiDisplay()
206 ComponentName activityB = toComponentName(getTestContext(), ActivityB.class); in testGetTopTasksOnMultiDisplay()
215 ComponentName activityC = toComponentName(getTestContext(), ActivityC.class); in testGetTopTasksOnMultiDisplay()
229 ComponentName activityA = toComponentName(getTestContext(), ActivityA.class); in testGetTopTasksOnDefaultDisplay()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/model/
DAppPredictionServiceResolverComparator.java26 import android.content.ComponentName;
55 private final Map<ComponentName, Integer> mTargetRanks = new HashMap<>();
56 private final Map<ComponentName, Integer> mTargetScores = new HashMap<>();
147 new ComponentName(target.getPackageName(), target.getClassName()), in handleSortedAppTargets()
151 ComponentName componentName = new ComponentName( in handleSortedAppTargets()
170 public float getScore(ComponentName name) { in getScore()
175 public void updateModel(ComponentName componentName) { in updateModel()
214 private final Map<ComponentName, Integer> mTargetRanks; // Treat as immutable.
220 Map<ComponentName, Integer> targetRanks) { in AppPredictionServiceComparatorModel() argument
233 Integer lhsRank = mTargetRanks.get(new ComponentName(lhs.activityInfo.packageName, in getComparator()
[all …]
DResolverRankerServiceResolverComparator.java21 import android.content.ComponentName;
76 private final LinkedHashMap<ComponentName, ResolverTarget> mTargetsDict = new LinkedHashMap<>();
81 private ComponentName mResolvedRankerName;
82 private ComponentName mRankerServiceName;
101 mRankerServiceName = new ComponentName(mContext, this.getClass()); in ResolverRankerServiceResolverComparator()
236 public float getScore(ComponentName name) { in getScore()
242 public void updateModel(ComponentName componentName) { in updateModel()
294 ComponentName componentName = new ComponentName( in resolveRankerService()
357 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected()
369 public void onServiceDisconnected(ComponentName name) { in onServiceDisconnected()
[all …]
/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/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDevicePolicyManager.java13 import android.content.ComponentName;
31 private ComponentName mDeviceOwnerComponentName;
37 public void setShortSupportMessageForUser(ComponentName admin, int userHandle, String message) { in setShortSupportMessageForUser()
42 protected @Nullable CharSequence getShortSupportMessageForUser(@NonNull ComponentName admin, in getShortSupportMessageForUser()
48 protected boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser()
58 protected long getMaximumTimeToLock(ComponentName admin, @UserIdInt int userHandle) { in getMaximumTimeToLock()
63 protected ComponentName getDeviceOwnerComponentOnAnyUser() { in getDeviceOwnerComponentOnAnyUser()
79 public void setDeviceOwnerComponentOnAnyUser(ComponentName admin) { in setDeviceOwnerComponentOnAnyUser()
83 public void setDeviceOwnerType(@NonNull ComponentName admin, in setDeviceOwnerType()
89 public int getDeviceOwnerType(@NonNull ComponentName admin) { in getDeviceOwnerType()
/packages/apps/Settings/src/com/android/settings/
DSettingsInitialize.java27 import android.content.ComponentName;
107 ComponentName settingsComponentName = new ComponentName(context, Settings.class); in managedProfileSetup()
111 ComponentName shortcutComponentName = new ComponentName( in managedProfileSetup()
122 ComponentName settingsComponentName = in webviewSettingSetup()
123 new ComponentName(SETTINGS_PACKAGE_NAME, in webviewSettingSetup()
153 final ComponentName deepLinkHome = new ComponentName(context, in enableTwoPaneDeepLinkActivityIfNecessary()
155 final ComponentName searchStateReceiver = new ComponentName(context, in enableTwoPaneDeepLinkActivityIfNecessary()
/packages/apps/Settings/src/com/android/settings/activityembedding/
DActivityEmbeddingRulesController.java21 import android.content.ComponentName;
61 private static final ComponentName COMPONENT_NAME_WILDCARD = new ComponentName(
90 ComponentName primaryComponent, in registerTwoPanePairRule()
91 ComponentName secondaryComponent, in registerTwoPanePairRule()
124 ComponentName secondaryComponent, in registerTwoPanePairRuleForSettingsHome()
135 new ComponentName(context, Settings.class), in registerTwoPanePairRuleForSettingsHome()
146 new ComponentName(context, SettingsHomepageActivity.class), in registerTwoPanePairRuleForSettingsHome()
159 new ComponentName(context, DeepLinkHomepageActivity.class), in registerTwoPanePairRuleForSettingsHome()
170 new ComponentName(context, DeepLinkHomepageActivityInternal.class), in registerTwoPanePairRuleForSettingsHome()
184 ComponentName secondaryComponent, in registerTwoPanePairRuleForSettingsHome()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DConnectionServiceRepository.java19 import android.content.ComponentName;
34 private final HashMap<Pair<ComponentName, UserHandle>, ConnectionServiceWrapper> mServiceCache =
64 public ConnectionServiceWrapper getService(ComponentName componentName, UserHandle userHandle) { in getService()
65 Pair<ComponentName, UserHandle> cacheKey = Pair.create(componentName, userHandle); in getService()
83 public void setService(ComponentName componentName, UserHandle userHandle, in setService()
85 Pair<ComponentName, UserHandle> cacheKey = Pair.create(componentName, userHandle); in setService()
97 for (Pair<ComponentName, UserHandle> cacheKey : mServiceCache.keySet()) { in dump()
98 ComponentName componentName = cacheKey.first; in dump()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DVoiceInputInfoProvider.java19 import android.content.ComponentName;
66 private final Map<ComponentName, VoiceInputInfo> mComponentToInfoMap = new ArrayMap<>();
69 private final Set<ComponentName> mRecognitionServiceNames = new ArraySet<>();
101 public VoiceInputInfo getInfoForComponent(ComponentName key) { in getInfoForComponent()
123 mRecognitionServiceNames.add(new ComponentName(resolveInfo.serviceInfo.packageName, in loadVoiceInteractionServices()
126 mComponentToInfoMap.put(new ComponentName(resolveInfo.serviceInfo.packageName, in loadVoiceInteractionServices()
137 ComponentName componentName = new ComponentName(resolveInfo.serviceInfo.packageName, in loadVoiceRecognitionServices()
183 ComponentName getSettingsActivityComponentName() { in getSettingsActivityComponentName()
185 return (activity != null) ? new ComponentName(mServiceInfo.packageName, activity) in getSettingsActivityComponentName()
197 ComponentName getComponentName() { in getComponentName()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/plugins/
DPluginEnablerImpl.java17 import android.content.ComponentName;
37 public void setEnabled(ComponentName component) { in setEnabled()
42 public void setDisabled(ComponentName component, int reason) { in setDisabled()
46 private void setState(ComponentName component, boolean enabled) { in setState()
51 public boolean isEnabled(ComponentName component) { in isEnabled()
56 public int getDisableReason(ComponentName componentName) { in getDisableReason()
70 static String pluginEnabledKey(ComponentName cn) { in pluginEnabledKey()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowApplicationPackageManager.java23 import android.content.ComponentName;
55 private final Map<String, ComponentName> mPkgToDefaultActivityMap = new HashMap<>();
57 private final Map<IntentFilter, ComponentName> mPreferredActivities = new LinkedHashMap<>();
61 private ComponentName mDefaultHomeActivity;
118 protected ComponentName getHomeActivities(List<ResolveInfo> outActivities) { in getHomeActivities()
132 List<ComponentName> outActivities, String packageName) { in getPreferredActivities()
134 ComponentName name = mPreferredActivities.get(filter); in getPreferredActivities()
149 public void addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, in addPreferredActivity()
150 ComponentName activity) { in addPreferredActivity()
197 public void setDefaultHomeActivity(ComponentName defaultHomeActivity) { in setDefaultHomeActivity()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityDetailsSettingsFragment.java27 import android.content.ComponentName;
75 final ComponentName componentName = ComponentName.unflattenFromString(extraComponentName); in onCreate()
88 @Nullable ComponentName componentName) { in openSystemAccessibilitySettingsAndFinish()
101 @Nullable ComponentName componentName) { in getSystemAccessibilitySettingsLaunchArguments()
125 @Nullable ComponentName componentName) { in openAccessibilityDetailsSettingsAndFinish()
175 private AccessibilityServiceInfo getAccessibilityServiceInfo(ComponentName componentName) { in getAccessibilityServiceInfo()
199 final ComponentName componentName = new ComponentName(packageName, serviceInfo.name); in buildArguments()
201 final Set<ComponentName> enabledServices = in buildArguments()
224 new ComponentName(packageName, settingsClassName).flattenToString()); in buildArguments()
230 new ComponentName(packageName, tileServiceClassName).flattenToString()); in buildArguments()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppLauncherUtils.java29 import android.content.ComponentName;
118 private final Map<ComponentName, AppMetaData> mLaunchables;
121 private final Map<ComponentName, ResolveInfo> mMediaServices;
123 LauncherAppsInfo(@NonNull Map<ComponentName, AppMetaData> launchablesMap, in LauncherAppsInfo() argument
124 @NonNull Map<ComponentName, ResolveInfo> mediaServices) { in LauncherAppsInfo()
137 boolean isMediaService(ComponentName componentName) { in isMediaService()
143 AppMetaData getAppMetaData(ComponentName componentName) { in getAppMetaData()
161 static ComponentName getMediaSource(@NonNull PackageManager packageManager, in getMediaSource()
175 return new ComponentName(packageName, defaultService); in getMediaSource()
232 Map<ComponentName, AppMetaData> launchablesMap = new HashMap<>(launchablesSize); in getLauncherApps()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/accessibility/
DScreenReaderUtils.java20 import android.content.ComponentName;
49 ComponentName screenReaderComponent = getScreenReaderComponentName(context); in isScreenReaderEnabled()
90 static ComponentName getScreenReaderSettingsActivity(Context context) { in getScreenReaderSettingsActivity()
101 return new ComponentName(getScreenReaderComponentName(context).getPackageName(), in getScreenReaderSettingsActivity()
110 ComponentName screenReaderComponent = getScreenReaderComponentName(context); in setScreenReaderEnabled()
120 private static ComponentName getScreenReaderComponentName(Context context) { in getScreenReaderComponentName()
121 return ComponentName.unflattenFromString( in getScreenReaderComponentName()
139 ComponentName screenReaderComponent = getScreenReaderComponentName(context); in getScreenReaderServiceInfo()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java45 import android.content.ComponentName;
128 private ComponentName[] mPrimaryMediaComponents = new ComponentName[MEDIA_SOURCE_MODES];
164 private ComponentName[] mRemovedMediaSourceComponents = new ComponentName[MEDIA_SOURCE_MODES];
193 for (ComponentName component : getLastMediaSources(i)) {
526 ComponentName componentName = mPrimaryMediaComponents[mode]; in dumpCurrentMediaComponentLocked()
536 List<ComponentName> lastMediaSources = getLastMediaSources(mode); in dumpLastMediaSources()
538 ComponentName componentName = lastMediaSources.get(i); in dumpLastMediaSources()
572 public void setMediaSource(@NonNull ComponentName componentName, in setMediaSource()
587 public ComponentName getMediaSource(@CarMediaManager.MediaSourceMode int mode) { in getMediaSource()
618 public List<ComponentName> getLastMediaSources(@CarMediaManager.MediaSourceMode int mode) { in getLastMediaSources()
[all …]

12345678910>>...41