Home
last modified time | relevance | path

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

12345678910>>...33

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java29 import android.content.ComponentName;
123 PhoneAccountHandle input = new PhoneAccountHandle(new ComponentName("pkg0", "cls0"), "id0"); in testPhoneAccountHandle()
128 PhoneAccountHandle inputN = new PhoneAccountHandle(new ComponentName("pkg0", "cls0"), null); in testPhoneAccountHandle()
161 ComponentName componentA = new ComponentName("a", "a"); in testFilterPhoneAccountForTest()
162 ComponentName componentB1 = new ComponentName("b", "b1"); in testFilterPhoneAccountForTest()
163 ComponentName componentB2 = new ComponentName("b", "b2"); in testFilterPhoneAccountForTest()
164 ComponentName componentC = new ComponentName("c", "c"); in testFilterPhoneAccountForTest()
532 new ComponentName("other1", "other2"), "tel_acct2"); in testAddSameGroupButDifferentComponent()
557 new ComponentName("other1", "other2"), "tel_acct1"); in testAddSameGroupButDifferentComponent2()
645 new ComponentName("self", "managed"), "selfie1"); in testSelfManagedPhoneAccount()
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DCardEmulationManager.java23 import android.content.ComponentName;
217 ComponentName defaultPaymentService = in verifyDefaults()
224 ComponentName lastFoundPaymentService = null; in verifyDefaults()
246 ComponentName getDefaultServiceForCategory(int userId, String category, in getDefaultServiceForCategory()
257 ComponentName service = ComponentName.unflattenFromString(name); in getDefaultServiceForCategory()
268 boolean setDefaultServiceForCategoryChecked(int userId, ComponentName service, in setDefaultServiceForCategoryChecked()
287 boolean isServiceRegistered(int userId, ComponentName service) { in isServiceRegistered()
301 boolean isNfcFServiceInstalled(int userId, ComponentName service) { in isNfcFServiceInstalled()
330 public boolean isDefaultServiceForCategory(int userId, ComponentName service, in isDefaultServiceForCategory()
337 ComponentName defaultService = in isDefaultServiceForCategory()
[all …]
DRegisteredNfcFServicesCache.java25 import android.content.ComponentName;
106 final HashMap<ComponentName, NfcFServiceInfo> services =
108 final HashMap<ComponentName, DynamicSystemCode> dynamicSystemCode =
110 final HashMap<ComponentName, DynamicNfcid2> dynamicNfcid2 =
188 ComponentName componentName) { in containsServiceLocked()
195 public boolean hasService(int userId, ComponentName componentName) { in hasService()
199 public NfcFServiceInfo getService(int userId, ComponentName componentName) { in getService()
235 ComponentName componentName = new ComponentName(si.packageName, si.name); in getInstalledServices()
323 ArrayList<ComponentName> toBeRemovedDynamicSystemCode = in invalidateCache()
324 new ArrayList<ComponentName>(); in invalidateCache()
[all …]
DRegisteredServicesCache.java25 import android.content.ComponentName;
102 final HashMap<ComponentName, ApduServiceInfo> services =
104 final HashMap<ComponentName, DynamicSettings> dynamicSettings =
179 boolean containsServiceLocked(ArrayList<ApduServiceInfo> services, ComponentName serviceName) { in containsServiceLocked()
186 public boolean hasService(int userId, ComponentName service) { in hasService()
190 public ApduServiceInfo getService(int userId, ComponentName service) { in getService()
242 ComponentName componentName = new ComponentName(si.packageName, si.name); in getInstalledServices()
281 Iterator<Map.Entry<ComponentName, ApduServiceInfo>> it = in invalidateCache()
284 Map.Entry<ComponentName, ApduServiceInfo> entry = in invalidateCache()
285 (Map.Entry<ComponentName, ApduServiceInfo>) it.next(); in invalidateCache()
[all …]
DPreferredServices.java26 import android.content.ComponentName;
73 ComponentName settingsDefault; // The component preferred in settings (eg Tap&Pay)
74 ComponentName currentPreferred; // The computed preferred component
81 ComponentName mForegroundRequested; // The component preferred by fg app
84 ComponentName mNextTapDefault; // The component preferred by active disambig dialog
87 ComponentName mForegroundCurrent; // The currently computed foreground component
90 void onPreferredPaymentServiceChanged(ComponentName service); in onPreferredPaymentServiceChanged()
91 void onPreferredForegroundServiceChanged(ComponentName service); in onPreferredForegroundServiceChanged()
136 ComponentName newDefault = name != null ? ComponentName.unflattenFromString(name) : null; in loadDefaultsFromSettings()
168 ComponentName preferredService = null; in computePreferredForegroundService()
[all …]
DHostEmulationManager.java21 import android.content.ComponentName;
83 ComponentName mServiceName = null;
90 ComponentName mPaymentServiceName = null;
91 ComponentName mLastBoundPaymentServiceName;
98 ComponentName mActiveServiceName;
112 public void onPreferredPaymentServiceChanged(final ComponentName service) { in onPreferredPaymentServiceChanged()
124 public void onPreferredForegroundServiceChanged(ComponentName service) { in onPreferredForegroundServiceChanged()
152 ComponentName resolvedService = null; in onHostEmulationData()
301 Messenger bindServiceIfNeededLocked(ComponentName service) { in bindServiceIfNeededLocked()
366 void bindPaymentServiceLocked(int userId, ComponentName service) { in bindPaymentServiceLocked()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DSystemActivityMonitoringServiceTest.java24 import android.content.ComponentName;
75 ComponentName activityA = toComponentName(getTestContext(), ActivityA.class); in testActivityLaunch()
80 ComponentName activityB = toComponentName(getTestContext(), ActivityB.class); in testActivityLaunch()
88 ComponentName blackListedActivity = toComponentName(getTestContext(), ActivityC.class); in testActivityBlocking()
89 ComponentName blockingActivity = toComponentName(getTestContext(), BlockingActivity.class); in testActivityBlocking()
106 ComponentName activityThatFinishesImmediately = in testRemovesFromTopTasks()
120 ComponentName activityA = toComponentName(getTestContext(), ActivityA.class); in testGetTopTasksOnMultiDisplay()
124 ComponentName activityB = toComponentName(getTestContext(), ActivityB.class); in testGetTopTasksOnMultiDisplay()
141 private boolean topTasksHasComponent(ComponentName component) { in topTasksHasComponent()
176 private void assertTopTaskActivity(ComponentName activity) throws Exception { in assertTopTaskActivity()
[all …]
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppLauncherUtils.java28 import android.content.ComponentName;
94 private final Map<ComponentName, AppMetaData> mLaunchables;
97 private final Map<ComponentName, ResolveInfo> mMediaServices;
99 LauncherAppsInfo(@NonNull Map<ComponentName, AppMetaData> launchablesMap, in LauncherAppsInfo() argument
100 @NonNull Map<ComponentName, ResolveInfo> mediaServices) { in LauncherAppsInfo()
113 boolean isMediaService(ComponentName componentName) { in isMediaService()
119 AppMetaData getAppMetaData(ComponentName componentName) { in getAppMetaData()
137 static ComponentName getMediaSource(@NonNull PackageManager packageManager, in getMediaSource()
151 return new ComponentName(packageName, defaultService); in getMediaSource()
192 Map<ComponentName, AppMetaData> launchablesMap = new HashMap<>( in getLauncherApps()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDevicePolicyManager.java9 import android.content.ComponentName;
26 private ComponentName mDeviceOwnerComponentName;
33 public void setShortSupportMessageForUser(ComponentName admin, int userHandle, String message) { in setShortSupportMessageForUser()
38 protected @Nullable CharSequence getShortSupportMessageForUser(@NonNull ComponentName admin, in getShortSupportMessageForUser()
44 protected boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser()
54 protected long getMaximumTimeToLock(ComponentName admin, @UserIdInt int userHandle) { in getMaximumTimeToLock()
59 protected ComponentName getDeviceOwnerComponentOnAnyUser() { in getDeviceOwnerComponentOnAnyUser()
75 public void setDeviceOwnerComponentOnAnyUser(ComponentName admin) { in setDeviceOwnerComponentOnAnyUser()
80 public int getPasswordQuality(ComponentName admin, int userHandle) { in getPasswordQuality()
89 public int getPasswordMinimumLength(ComponentName admin, int userHandle) { in getPasswordMinimumLength()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerPreferenceControllerTest.java24 import android.content.ComponentName;
132 ComponentName voiceInteraction = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE); in getCandidates_oneIsSameAsAssistant_hasTwoElements()
161 ComponentName voiceInteraction = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
169 if (info.componentName.equals(new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE))) { in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
197 ComponentName voiceInteraction = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled()
206 new ComponentName(TEST_PACKAGE_NAME, TEST_OTHER_SERVICE))) { in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled()
225 ComponentName cn = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE); in getCurrentDefaultKey_defaultExists_returnsComponentName()
243 String key = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE).flattenToString(); in setCurrentDefault_typeVoiceInteractionInfo_setsServices()
244 String recognizer = new ComponentName(TEST_PACKAGE_NAME, TEST_RECOGNIZER).flattenToString(); in setCurrentDefault_typeVoiceInteractionInfo_setsServices()
263 String key = new ComponentName(TEST_PACKAGE_NAME, TEST_RECOGNIZER).flattenToString(); in setCurrentDefault_typeVoiceRecognitionInfo_setsRecognitionService()
[all …]
DDefaultVoiceInputPickerEntryPreferenceControllerTest.java27 import android.content.ComponentName;
102 setCurrentAssistant(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable()
103 setCurrentVoiceService(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable()
117 setCurrentAssistant(new ComponentName(TEST_PACKAGE, TEST_ASSIST)); in getAvailabilityStatus_differentComponents_returnsAvailable()
118 setCurrentVoiceService(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_differentComponents_returnsAvailable()
126 setCurrentVoiceService(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_assistNull_returnsAvailable()
133 setCurrentAssistant(new ComponentName(TEST_PACKAGE, TEST_ASSIST)); in getAvailabilityStatus_voiceInputNull_returnsAvailable()
157 setCurrentVoiceService(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in onChange_changeRegisteredSetting_callsRefreshUi()
162 setCurrentAssistant(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in onChange_changeRegisteredSetting_callsRefreshUi()
188 ComponentName voiceService = new ComponentName(TEST_PACKAGE, TEST_VOICE); in getCurrentDefaultAppInfo_providerHasCurrentService_returnsValidDefaultAppInfo()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/assist/
DVoiceInputHelper.java19 import android.content.ComponentName;
54 public final ComponentName componentName;
56 public final ComponentName settings;
63 componentName = new ComponentName(_service.packageName, _service.name); in BaseInfo()
66 ? new ComponentName(_service.packageName, _settings) : null; in BaseInfo()
96 ComponentName mCurrentVoiceInteraction;
97 ComponentName mCurrentRecognizer;
115 mCurrentVoiceInteraction = ComponentName.unflattenFromString(currentSetting); in buildUi()
120 ArraySet<ComponentName> interactorRecognizers = new ArraySet<>(); in buildUi()
136 interactorRecognizers.add(new ComponentName(resolveInfo.serviceInfo.packageName, in buildUi()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/assist/
DVoiceInputHelper.java19 import android.content.ComponentName;
54 public final ComponentName componentName;
56 public final ComponentName settings;
63 componentName = new ComponentName(_service.packageName, _service.name); in BaseInfo()
66 ? new ComponentName(_service.packageName, _settings) : null; in BaseInfo()
96 ComponentName mCurrentVoiceInteraction;
97 ComponentName mCurrentRecognizer;
115 mCurrentVoiceInteraction = ComponentName.unflattenFromString(currentSetting); in buildUi()
120 ArraySet<ComponentName> interactorRecognizers = new ArraySet<>(); in buildUi()
136 interactorRecognizers.add(new ComponentName(resolveInfo.serviceInfo.packageName, in buildUi()
[all …]
DDefaultVoiceInputPicker.java20 import android.content.ComponentName;
52 final ComponentName assist = getCurrentAssist(); in onAttach()
84 final ComponentName currentService = getCurrentService(mHelper); in getDefaultKey()
99 new ComponentName(info.service.packageName, in setDefaultKey()
118 public static ComponentName getCurrentService(VoiceInputHelper helper) { in getCurrentService()
128 private ComponentName getCurrentAssist() { in getCurrentAssist()
132 public static boolean isCurrentAssistVoiceService(ComponentName currentAssist, in isCurrentAssistVoiceService()
133 ComponentName currentVoiceService) { in isCurrentAssistVoiceService()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java25 import android.content.ComponentName;
94 private ComponentName mPrimaryMediaComponent;
95 private ComponentName mPreviousMediaComponent;
145 ComponentName mediaSource = getMediaSource(intentPackage, "");
297 public synchronized void setMediaSource(@NonNull ComponentName componentName) { in setMediaSource()
309 public synchronized ComponentName getMediaSource() { in getMediaSource()
454 ComponentName mediaSource = getMediaSource(mMediaController.getPackageName(), in onPlaybackStateChanged()
523 private synchronized void setPrimaryMediaSource(@Nullable ComponentName componentName) { in setPrimaryMediaSource()
588 ComponentName mediaSource = getMediaSource(newPackageName, newClassName); in updatePrimaryMediaSourceWithCurrentlyPlaying()
625 private boolean isMediaService(@NonNull ComponentName componentName) { in isMediaService()
[all …]
/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()
178 ComponentName getSettingsActivityComponentName() { in getSettingsActivityComponentName()
180 return (activity != null) ? new ComponentName(mServiceInfo.packageName, activity) in getSettingsActivityComponentName()
192 ComponentName getComponentName() { in getComponentName()
[all …]
/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/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDeviceHandlerResolver.java22 import android.content.ComponentName;
106 public boolean dispatch(UsbDevice device, ComponentName component, boolean inAoap) { in dispatch()
130 ComponentName.unflattenFromString(filter.mAoapService))) { in dispatch()
237 ComponentName activity = new ComponentName(ai.packageName, ai.name); in getDeviceMatches()
238 ComponentName aoapService = filter.mAoapService == null in getDeviceMatches()
239 ? null : ComponentName.unflattenFromString(filter.mAoapService); in getDeviceMatches()
253 private boolean checkServiceRequiresPermission(ComponentName serviceName) { in checkServiceRequiresPermission()
342 final ComponentName mActivity;
343 final @Nullable ComponentName mAoapService;
345 UsbHandlerPackage(ComponentName activity, @Nullable ComponentName aoapService) { in UsbHandlerPackage()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DShortcutServicePickerFragment.java26 import android.content.ComponentName;
82 Map<ComponentName, ToggleableFrameworkFeatureInfo> frameworkFeatureInfoMap = in getCandidates()
84 for (ComponentName componentName : frameworkFeatureInfoMap.keySet()) { in getCandidates()
108 ComponentName shortcutName = ComponentName.unflattenFromString(shortcutServiceString); in getDefaultKey()
130 final ComponentName selectedComponent = ComponentName.unflattenFromString(selectedKey); in onRadioButtonClicked()
176 final ComponentName serviceComponentName = ComponentName.unflattenFromString(key); in onCreateDialog()
241 final ComponentName componentName = mServiceInfo.getComponentName(); in loadLabel()
/packages/apps/Settings/src/com/android/settings/accessibility/
DShortcutServicePickerFragment.java24 import android.content.ComponentName;
80 Map<ComponentName, ToggleableFrameworkFeatureInfo> frameworkFeatureInfoMap = in getCandidates()
82 for (ComponentName componentName : frameworkFeatureInfoMap.keySet()) { in getCandidates()
106 ComponentName shortcutName = ComponentName.unflattenFromString(shortcutServiceString); in getDefaultKey()
128 final ComponentName selectedComponent = ComponentName.unflattenFromString(selectedKey); in onRadioButtonClicked()
174 final ComponentName serviceComponentName = ComponentName.unflattenFromString(key); in onCreateDialog()
241 final ComponentName componentName = mServiceInfo.getComponentName(); in loadLabel()
/packages/services/Telephony/src/com/android/phone/vvm/
DRemoteVvmTaskManager.java21 import android.content.ComponentName;
121 public static ComponentName getRemotePackage(Context context, int subId) { in getRemotePackage()
132 public static ComponentName getRemotePackage(Context context, int subId, in getRemotePackage()
134 ComponentName broadcastPackage = getBroadcastPackage(context); in getRemotePackage()
187 return new ComponentName(componentInfo.packageName, componentInfo.name); in getRemotePackage()
194 private static ComponentName getBroadcastPackage(Context context) { in getBroadcastPackage()
207 return new ComponentName(componentInfo.packageName, componentInfo.name); in getBroadcastPackage()
242 ComponentName remotePackage = getRemotePackage(this, subId, in onStartCommand()
305 public void onServiceConnected(ComponentName className, in onServiceConnected()
312 public void onServiceDisconnected(ComponentName className) { in onServiceDisconnected()
[all …]
/packages/apps/Settings/src/com/android/settings/security/trustagent/
DTrustAgentsPreferenceController.java22 import android.content.ComponentName;
56 private final ArrayMap<ComponentName, TrustAgentInfo> mAvailableAgents;
57 private final ArraySet<ComponentName> mActiveAgents;
104 final ComponentName componentName = agent.getComponentName(); in updateAgents()
126 final List<ComponentName> activeTrustAgents = mLockPatternUtils.getEnabledTrustAgents( in loadActiveAgents()
149 final ComponentName componentName = mTrustAgentManager.getComponentName(resolveInfo); in findAvailableTrustAgents()
165 final ComponentName componentName = new ComponentName(names[0], names[1]); in removeUselessExistingPreferences()
179 final ComponentName componentName = agent.getComponentName(); in onPreferenceChange()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/
DDefaultAssistantPickerEntryPreferenceControllerTest.java25 import android.content.ComponentName;
61 new ComponentName(TEST_PACKAGE, TEST_CLASS).flattenToString();
110 TEST_USER_ID, ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_noAssistant_returnsNull()
130 ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_hasAssistant_noAssistSupport_returnsNull()
134 TEST_USER_ID, ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_hasAssistant_noAssistSupport_returnsNull()
154 ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_hasAssistant_supportsAssist_noSettingsActivity_returnsNull()
158 TEST_USER_ID, ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_hasAssistant_supportsAssist_noSettingsActivity_returnsNull()
179 ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_hasAssistant_supportsAssist_hasSettingsActivity_returnsIntent()
183 TEST_USER_ID, ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_hasAssistant_supportsAssist_hasSettingsActivity_returnsIntent()
188 new ComponentName(TEST_PACKAGE, TEST_SETTINGS_CLASS)); in getSettingIntent_hasAssistant_supportsAssist_hasSettingsActivity_returnsIntent()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaSourcesLiveData.java21 import android.content.ComponentName;
106 HashMap<ComponentName, Integer> preferredComps = new HashMap<>(preferredFlats.length); in getList()
108 preferredComps.put(ComponentName.unflattenFromString(preferredFlats[i]), i); in getList()
122 ComponentName srcComp = mediaSource.getBrowseServiceComponentName(); in getList()
146 private Set<ComponentName> getComponentNames() { in getComponentNames()
153 Set<ComponentName> components = new HashSet<>(); in getComponentNames()
155 ComponentName componentName = new ComponentName(info.serviceInfo.packageName, in getComponentNames()

12345678910>>...33