Home
last modified time | relevance | path

Searched refs:component (Results 1 – 25 of 46) sorted by relevance

12

/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DICalendarTest.java39 ICalendar.Component component = new ICalendar.Component("DUMMY", null); in testAddProperty() local
41 component.addProperty(new ICalendar.Property("prop2", "value3")); in testAddProperty()
42 component.addProperty(new ICalendar.Property("prop1", "value1")); in testAddProperty()
43 component.addProperty(new ICalendar.Property("prop1", "value2")); in testAddProperty()
44 assertEquals(text, component.toString()); in testAddProperty()
75 ICalendar.Component component = ICalendar.parseComponent(text); in testParseBasicComponent() local
77 assertEquals("DUMMY", component.getName()); in testParseBasicComponent()
78 assertNull(component.getComponents()); in testParseBasicComponent()
79 assertEquals(2, component.getPropertyNames().size()); in testParseBasicComponent()
80 ICalendar.Property prop1 = component.getFirstProperty("PROP1"); in testParseBasicComponent()
[all …]
DRecurrenceSetTest.java105 ICalendar.Component component = new ICalendar.Component(MOCK_COMPONENT_NAME, null); in testRRULEfolding() local
112 assertTrue(RecurrenceSet.populateComponent(values, component)); in testRRULEfolding()
113 List<ICalendar.Property> list = component.getProperties("DTSTART"); in testRRULEfolding()
117 list = component.getProperties("RRULE"); in testRRULEfolding()
121 component = new ICalendar.Component(MOCK_COMPONENT_NAME, null); in testRRULEfolding()
128 assertTrue(RecurrenceSet.populateComponent(values, component)); in testRRULEfolding()
130 list = component.getProperties("RRULE"); in testRRULEfolding()
134 component = new ICalendar.Component(MOCK_COMPONENT_NAME, null); in testRRULEfolding()
141 assertTrue(RecurrenceSet.populateComponent(values, component)); in testRRULEfolding()
143 list = component.getProperties("RRULE"); in testRRULEfolding()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java140 public void addComponent(GLView component) { in addComponent() argument
142 if (component.mParent != null) throw new IllegalStateException(); in addComponent()
148 mComponents.add(component); in addComponent()
149 component.mParent = this; in addComponent()
153 component.onAttachToRoot(mRoot); in addComponent()
158 public boolean removeComponent(GLView component) { in removeComponent() argument
160 if (mComponents.remove(component)) { in removeComponent()
161 removeOneComponent(component); in removeComponent()
175 private void removeOneComponent(GLView component) { in removeOneComponent() argument
176 if (mMotionTarget == component) { in removeOneComponent()
[all …]
DMeasureHelper.java30 private MeasureHelper(GLView component) { in MeasureHelper() argument
31 mComponent = component; in MeasureHelper()
34 public static MeasureHelper getInstance(GLView component) { in getInstance() argument
35 sInstance.mComponent = component; in getInstance()
/packages/apps/Launcher2/src/com/android/launcher2/
DAllAppsList.java105 final ComponentName component = info.intent.getComponent(); in removePackage() local
106 if (info.user.equals(user) && packageName.equals(component.getPackageName())) { in removePackage()
128 final ComponentName component = applicationInfo.intent.getComponent(); in updatePackage() local
130 && packageName.equals(component.getPackageName())) { in updatePackage()
131 if (!findActivity(matches, component, user)) { in updatePackage()
133 mIconCache.remove(component, user); in updatePackage()
161 final ComponentName component = applicationInfo.intent.getComponent(); in updatePackage() local
163 && packageName.equals(component.getPackageName())) { in updatePackage()
165 mIconCache.remove(component, user); in updatePackage()
176 private static boolean findActivity(List<LauncherActivityInfo> apps, ComponentName component, in findActivity() argument
[all …]
DIconCache.java199 ComponentName component = intent.getComponent(); in getIcon() local
201 if (launcherActInfo == null || component == null) { in getIcon()
205 CacheEntry entry = cacheLocked(component, launcherActInfo, null, user); in getIcon()
210 public Bitmap getIcon(ComponentName component, LauncherActivityInfo info, in getIcon() argument
213 if (info == null || component == null) { in getIcon()
217 CacheEntry entry = cacheLocked(component, info, labelCache, info.getUser()); in getIcon()
DInstallWidgetReceiver.java150 final CharSequence component = resolveInfo.loadLabel(packageManager); in getView() local
155 component, widgetSpan[0], widgetSpan[1])); in getView()
/packages/apps/Launcher3/src/com/android/launcher3/
DAllAppsList.java113 final ComponentName component = info.intent.getComponent(); in removePackage() local
114 if (info.user.equals(user) && packageName.equals(component.getPackageName())) { in removePackage()
143 final ComponentName component = applicationInfo.intent.getComponent(); in updatePackage() local
145 && packageName.equals(component.getPackageName())) { in updatePackage()
146 if (!findActivity(matches, component)) { in updatePackage()
170 final ComponentName component = applicationInfo.intent.getComponent(); in updatePackage() local
172 && packageName.equals(component.getPackageName())) { in updatePackage()
174 mIconCache.remove(component, user); in updatePackage()
186 ComponentName component) { in findActivity() argument
188 if (info.getComponentName().equals(component)) { in findActivity()
[all …]
DIconCache.java304 ComponentName component = ComponentName.unflattenFromString(cn); in updateDBIcons() local
305 PackageInfo info = pkgInfoMap.get(component.getPackageName()); in updateDBIcons()
307 if (!ignorePackages.contains(component.getPackageName())) { in updateDBIcons()
308 remove(component, user); in updateDBIcons()
320 LauncherActivityInfoCompat app = componentMap.remove(component); in updateDBIcons()
326 remove(component, user); in updateDBIcons()
461 ComponentName component = intent.getComponent(); in getIcon() local
464 if (component == null) { in getIcon()
469 … CacheEntry entry = cacheLocked(component, launcherActInfo, user, true, false /* useLowRes */); in getIcon()
479 ComponentName component = intent.getComponent(); in getTitleAndIcon() local
[all …]
DUninstallDropTarget.java63 ComponentName component = info.getTargetComponent(); in getAppInfoFlags() local
65 && component != null) { in getAppInfoFlags()
66 return Pair.create(component, info.flags); in getAppInfoFlags()
/packages/apps/Settings/src/com/android/settings/applications/
DDefaultAssistPreference.java83 final String serviceComponentName = serviceInfo.component.flattenToShortString(); in setAssistService()
85 serviceInfo.component.getPackageName(), in setAssistService()
101 new ComponentName(serviceInfo.component.getPackageName(), settingsActivity)); in setAssistService()
106 Settings.Secure.ASSISTANT, activityInfo.component.flattenToShortString()); in setAssistActivity()
132 if (info.component.getPackageName().equals(packageName)) { in findAssistantByPackageName()
185 String packageName = mAvailableAssistants.get(i).component.getPackageName(); in refreshAssistApps()
199 public final ComponentName component; field in DefaultAssistPreference.Info
202 Info(ComponentName component) { in Info() argument
203 this.component = component; in Info()
207 Info(ComponentName component, VoiceInteractionServiceInfo voiceInteractionServiceInfo) { in Info() argument
[all …]
/packages/apps/Settings/src/com/android/settings/
DTrustAgentSettings.java51 ComponentName component; // service that implements ITrustAgent field in TrustAgentSettings.AgentInfo
58 return component.equals(((AgentInfo)other).component); in equals()
64 return component.compareTo(other.component); in compareTo()
112 preference.setChecked(mActiveAgents.contains(agent.component)); in updateAgents()
115 && mDpm.getTrustAgentConfiguration(null, agent.component) == null) { in updateAgents()
155 agentInfo.component = name; in findAvailableTrustAgents()
169 if (!mActiveAgents.contains(agent.component)) { in onPreferenceChange()
170 mActiveAgents.add(agent.component); in onPreferenceChange()
173 mActiveAgents.remove(agent.component); in onPreferenceChange()
/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentDefaultDialog.java47 ComponentName component = intent.getParcelableExtra( in onCreate() local
52 if (!buildDialog(component, category)) { in onCreate()
70 private boolean buildDialog(ComponentName component, String category) { in buildDialog() argument
71 if (component == null || category == null) { in buildDialog()
87 if (component.equals(service.componentName)) { in buildDialog()
96 Log.e(TAG, "Component " + component + " is not a registered payment service."); in buildDialog()
102 if (defaultComponent != null && defaultComponent.equals(component)) { in buildDialog()
103 Log.e(TAG, "Component " + component + " is already default."); in buildDialog()
107 mNewDefault = component; in buildDialog()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DSetDevicePolicyTask.java116 public void setActiveAdmin(ComponentName component) { in setActiveAdmin() argument
117 ProvisionLogger.logd("Setting " + component + " as active admin."); in setActiveAdmin()
118 mDevicePolicyManager.setActiveAdmin(component, true); in setActiveAdmin()
128 public boolean setDeviceInitializer(ComponentName component) { in setDeviceInitializer() argument
129 ProvisionLogger.logd("Setting " + component + " as device initializer."); in setDeviceInitializer()
130 if (!mDevicePolicyManager.isDeviceInitializerApp(component.getPackageName())) { in setDeviceInitializer()
131 mDevicePolicyManager.setDeviceInitializer(null, component); in setDeviceInitializer()
135 pm.setBlockUninstallForUser(component.getPackageName(), true, in setDeviceInitializer()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVL.java73 public void startActivityForProfile(ComponentName component, UserHandleCompat user, in startActivityForProfile() argument
75 mLauncherApps.startMainActivity(component, user.getUser(), sourceBounds, opts); in startActivityForProfile()
78 public void showAppDetailsForProfile(ComponentName component, UserHandleCompat user) { in showAppDetailsForProfile() argument
79 mLauncherApps.startAppDetailsActivity(component, user.getUser(), null, null); in showAppDetailsForProfile()
105 public boolean isActivityEnabledForProfile(ComponentName component, UserHandleCompat user) { in isActivityEnabledForProfile() argument
106 return mLauncherApps.isActivityEnabled(component, user.getUser()); in isActivityEnabledForProfile()
DLauncherAppsCompatV16.java81 public void startActivityForProfile(ComponentName component, UserHandleCompat user, in startActivityForProfile() argument
85 launchIntent.setComponent(component); in startActivityForProfile()
91 public void showAppDetailsForProfile(ComponentName component, UserHandleCompat user) { in showAppDetailsForProfile() argument
92 String packageName = component.getPackageName(); in showAppDetailsForProfile()
120 public boolean isActivityEnabledForProfile(ComponentName component, UserHandleCompat user) { in isActivityEnabledForProfile() argument
122 ActivityInfo info = mPm.getActivityInfo(component, 0); in isActivityEnabledForProfile()
DLauncherAppsCompat.java70 public abstract void startActivityForProfile(ComponentName component, UserHandleCompat user, in startActivityForProfile() argument
72 public abstract void showAppDetailsForProfile(ComponentName component, UserHandleCompat user); in showAppDetailsForProfile() argument
76 public abstract boolean isActivityEnabledForProfile(ComponentName component, in isActivityEnabledForProfile() argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDbModifierWithNotification.java268 for (ComponentName component : in notifyVoicemailChange()
272 if (!modifiedPackages.contains(component.getPackageName()) && in notifyVoicemailChange()
274 component.getPackageName())) { in notifyVoicemailChange()
279 intent.setComponent(component); in notifyVoicemailChange()
282 callingPackages.contains(component.getPackageName())); in notifyVoicemailChange()
284 String permissionNeeded = modifiedPackages.contains(component.getPackageName()) ? in notifyVoicemailChange()
289 component.getClassName(), permissionNeeded, in notifyVoicemailChange()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java301 ComponentName component = entry.getKey(); in invalidateCache() local
303 ApduServiceInfo serviceInfo = userServices.services.get(component); in invalidateCache()
305 toBeRemoved.add(component); in invalidateCache()
315 for (ComponentName component : toBeRemoved) { in invalidateCache()
316 Log.d(TAG, "Removing dynamic AIDs registered by " + component); in invalidateCache()
317 userServices.dynamicAids.remove(component); in invalidateCache()
/packages/apps/Browser/src/com/android/browser/
DUrlHandler.java337 String component = hostComponents[googleComponent]; in needsRlzString() local
338 if (!"google".equals(component)) { in needsRlzString()
340 (!"co".equals(component) && !"com".equals(component))) { in needsRlzString()
/packages/services/Telecomm/src/com/android/server/telecom/
DRespondViaSmsManager.java169 final ComponentName component = in rejectCallWithMessage() local
172 if (component != null) { in rejectCallWithMessage()
185 intent.setComponent(component); in rejectCallWithMessage()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsIntentResolver.java94 String component = intent.getComponent().getClassName(); in resolveIntent() local
95 if (component.equals("alias.DialShortcut")) { in resolveIntent()
97 } else if (component.equals("alias.MessageShortcut")) { in resolveIntent()
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DGlowPadView.java1342 public boolean replaceTargetDrawablesIfPresent(ComponentName component, String name, in replaceTargetDrawablesIfPresent() argument
1347 if (component != null) { in replaceTargetDrawablesIfPresent()
1352 component, PackageManager.GET_META_DATA).metaData; in replaceTargetDrawablesIfPresent()
1356 Resources res = packageManager.getResourcesForActivity(component); in replaceTargetDrawablesIfPresent()
1362 + component.flattenToShortString() + " not found", e); in replaceTargetDrawablesIfPresent()
1365 + component.flattenToShortString(), nfe); in replaceTargetDrawablesIfPresent()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DHomeReceiverActivity.java144 private void disableComponent(ComponentName component) { in disableComponent() argument
146 pm.setComponentEnabledSetting(component, in disableComponent()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator2.java424 for (Set<Long> component : tmpSets) { in breakComponentsByExceptions()
425 final String rawContacts = TextUtils.join(",", component); in breakComponentsByExceptions()
431 connectedRawContacts.remove(component); in breakComponentsByExceptions()
432 for (Long rId : component) { in breakComponentsByExceptions()

12