Home
last modified time | relevance | path

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

/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/
DSourceLatency.java59 private SearchableInfo getSearchable(ComponentName componentName) { in getSearchable() argument
60 SearchableInfo searchable = mSearchManager.getSearchableInfo(componentName); in getSearchable()
63 + componentName.flattenToShortString()); in getSearchable()
89 public void checkSourceConcurrent(final String src, final ComponentName componentName, in checkSourceConcurrent() argument
92 final SearchableInfo searchable = getSearchable(componentName); in checkSourceConcurrent()
122 public void checkSource(String src, ComponentName componentName, String[] queries) { in checkSource() argument
126 long t = checkSource(src, componentName, queries[i]); in checkSource()
133 public long checkSource(String src, ComponentName componentName, String query) { in checkSource() argument
134 SearchableInfo searchable = getSearchable(componentName); in checkSource()
214 public void checkLiveSource(String src, ComponentName componentName, String query) { in checkLiveSource() argument
[all …]
/packages/providers/ApplicationsProvider/tests/src/com/android/providers/applications/
DMockPackageManager.java55 public int getComponentEnabledSetting(ComponentName componentName) { in getComponentEnabledSetting() argument
56 return mComponentEnabledSettings.get(componentName.flattenToString()); in getComponentEnabledSetting()
75 public void addPackage(final String title, ComponentName componentName, int appEnabledSetting, in addPackage() argument
87 packageInfo.activityInfo.name = componentName.getClassName(); in addPackage()
89 packageInfo.activityInfo.applicationInfo.packageName = componentName.getPackageName(); in addPackage()
93 mApplicationEnabledSettings.put(componentName.getPackageName(), appEnabledSetting); in addPackage()
94 mComponentEnabledSettings.put(componentName.flattenToString(), componentEnabledSetting); in addPackage()
97 public void addPackage(final String title, ComponentName componentName) { in addPackage() argument
98 addPackage(title, componentName, PackageManager.COMPONENT_ENABLED_STATE_DEFAULT, in addPackage()
DMockActivityManager.java31 public void addLastResumeTime(String packageName, String componentName, long lastResumeTime) { in addLastResumeTime() argument
36 mPackageUsageStats.get(packageName).componentResumeTimes.put(componentName, lastResumeTime); in addLastResumeTime()
/packages/apps/Launcher2/src/com/android/launcher2/
DInfoDropTarget.java76 ComponentName componentName = null; in acceptDrop() local
78 componentName = ((ApplicationInfo) d.dragInfo).componentName; in acceptDrop()
80 componentName = ((ShortcutInfo) d.dragInfo).intent.getComponent(); in acceptDrop()
82 componentName = ((PendingAddItemInfo) d.dragInfo).componentName; in acceptDrop()
84 if (componentName != null) { in acceptDrop()
85 mLauncher.startApplicationDetailsActivity(componentName); in acceptDrop()
DIconCache.java134 public void remove(ComponentName componentName) { in remove() argument
136 mCache.remove(componentName); in remove()
155 CacheEntry entry = cacheLocked(application.componentName, info, labelCache); in getTitleAndIcon()
192 private CacheEntry cacheLocked(ComponentName componentName, ResolveInfo info, in cacheLocked() argument
194 CacheEntry entry = mCache.get(componentName); in cacheLocked()
198 mCache.put(componentName, entry); in cacheLocked()
DPendingAddItemInfo.java33 ComponentName componentName; field in PendingAddItemInfo
69 componentName = i.provider; in PendingAddWidgetInfo()
94 componentName = copy.componentName; in PendingAddWidgetInfo()
105 return "Widget: " + componentName.toShortString(); in toString()
DApplicationInfo.java51 ComponentName componentName; field in ApplicationInfo
69 this.componentName = new ComponentName(packageName, info.activityInfo.name); in ApplicationInfo()
71 this.setActivity(componentName, in ApplicationInfo()
93 componentName = info.componentName; in ApplicationInfo()
DAllAppsList.java63 if (findActivity(data, info.componentName)) { in add()
147 mIconCache.remove(applicationInfo.componentName); in updatePackage()
201 if (info.componentName.equals(component)) { in findActivity()
DLauncher.java1159 return getSpanForWidget(context, info.componentName, info.minWidth, info.minHeight); in getSpanForWidget()
1163 return getSpanForWidget(context, info.componentName, info.minResizeWidth, in getMinSpanForWidget()
1785 void processShortcutFromDrop(ComponentName componentName, long container, int screen, in processShortcutFromDrop() argument
1798 createShortcutIntent.setComponent(componentName); in processShortcutFromDrop()
1842 info.componentName, options); in addAppWidgetFromDrop()
1845 info.componentName); in addAppWidgetFromDrop()
1853 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_PROVIDER, info.componentName); in addAppWidgetFromDrop()
2096 void startApplicationDetailsActivity(ComponentName componentName) { in startApplicationDetailsActivity() argument
2097 String packageName = componentName.getPackageName(); in startApplicationDetailsActivity()
2111 String packageName = appInfo.componentName.getPackageName(); in startApplicationUninstallActivity()
[all …]
DLauncherModel.java2152 ComponentName componentName = intent.getComponent(); in getShortcutInfo() local
2153 if (componentName == null) { in getShortcutInfo()
2158 PackageInfo pi = manager.getPackageInfo(componentName.getPackageName(), 0); in getShortcutInfo()
2165 Log.d(TAG, "getPackInfo failed for package " + componentName.getPackageName()); in getShortcutInfo()
2196 icon = mIconCache.getIcon(componentName, resolveInfo, labelCache); in getShortcutInfo()
2231 info.title = componentName.getClassName(); in getShortcutInfo()
2513 result = a.componentName.compareTo(b.componentName); in getAppNameComparator()
DAppsCustomizePagedView.java565 info.componentName, null); in getDefaultOptionsForWidget()
602 mWidgetLoadingId, info.componentName)) { in preloadWidget()
607 mWidgetLoadingId, info.componentName, options)) { in preloadWidget()
737 preview = mWidgetPreviewLoader.generateWidgetPreview(createWidgetInfo.componentName, in beginDraggingWidget()
1218 createItemInfo.componentName = new ComponentName(info.activityInfo.packageName, in syncWidgetPageItems()
DPagedViewIconCache.java44 mComponentName = info.componentName; in Key()
DWorkspace.java3088 mLauncher.processShortcutFromDrop(pendingInfo.componentName,
3694 cns.add(info.componentName);
3838 if (app.componentName.equals(name)) {
DDragController.java342 dragInfo.intent.getComponent().equals(info.componentName); in onAppsRemoved()
/packages/apps/Settings/src/com/android/settings/
DDreamBackend.java59 public ComponentName componentName; field in DreamBackend.DreamInfo
68 sb.append(',').append(componentName); in toString()
109 dreamInfo.componentName = getDreamComponentName(resolveInfo); in getDreamInfos()
110 dreamInfo.isActive = dreamInfo.componentName.equals(activeDream); in getDreamInfos()
213 if (mDreamManager == null || dreamInfo == null || dreamInfo.componentName == null) in preview()
216 mDreamManager.testDream(dreamInfo.componentName); in preview()
305 sb.append(di.componentName.equals(mDefaultDream) ? '0' : '1'); in sortKey()
DAccessibilitySettings.java383 ComponentName componentName = new ComponentName(serviceInfo.packageName, in updateServicesPreferences() local
386 preference.setKey(componentName.flattenToString()); in updateServicesPreferences()
390 && enabledServices.contains(componentName); in updateServicesPreferences()
421 extras.putParcelable(EXTRA_COMPONENT_NAME, componentName); in updateServicesPreferences()
DDreamSettings.java360 mBackend.setActiveDream(dreamInfo.componentName);
/packages/apps/Calendar/src/com/android/calendar/
DCalendarController.java168 public ComponentName componentName; // used in combination with query field in CalendarController.EventInfo
406 int viewType, long extraLong, String query, ComponentName componentName) { in sendEvent() argument
408 componentName); in sendEvent()
412 long eventId, int viewType, long extraLong, String query, ComponentName componentName) { in sendEvent() argument
421 info.componentName = componentName; in sendEvent()
612 launchSearch(event.id, event.query, event.componentName); in sendEvent()
791 private void launchSearch(long eventId, String query, ComponentName componentName) { in launchSearch() argument
794 final SearchableInfo searchableInfo = searchManager.getSearchableInfo(componentName); in launchSearch()
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/
DApplicationLauncher.java89 ComponentName componentName = Applications.uriToComponentName(uri); in launchApplication() local
90 Log.i(TAG, "Launching " + componentName); in launchApplication()
91 if (componentName != null) { in launchApplication()
95 launchIntent.setComponent(componentName); in launchApplication()
99 Log.w(TAG, "Activity not found: " + componentName); in launchApplication()
DApplicationsProvider.java587 String componentName = crtEntry.getKey(); in updateUsageStats() local
592 new String[] { packageName, componentName }); in updateUsageStats()
/packages/apps/OneTimeInitializer/src/com/android/onetimeinitializer/
DOneTimeInitializerService.java121 final ComponentName componentName = intent.getComponent(); in updateDialtactsLauncher() local
124 componentName != null && in updateDialtactsLauncher()
125 "com.android.contacts".equals(componentName.getPackageName()) && in updateDialtactsLauncher()
127 componentName.getClassName()) && in updateDialtactsLauncher()
140 Log.i(TAG, "Updated " + componentName + " to " + newName); in updateDialtactsLauncher()
/packages/experimental/LoaderApp/src/com/android/loaderapp/
DFrontDoor.java31 String componentName = intent.getComponent().getClassName(); in onCreate() local
32 if ("com.android.loaderapp.FrontDoorNormal".equals(componentName)) { in onCreate()
35 } else if ("com.android.loaderapp.FrontDoorXLarge".equals(componentName)) { in onCreate()
38 } else if ("com.android.loaderapp.FrontDoorGroupsXLarge".equals(componentName)) { in onCreate()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchableSource.java76 ComponentName componentName = searchable.getSearchActivity(); in SearchableSource() local
77 if (DBG) Log.d(TAG, "created Searchable for " + componentName); in SearchableSource()
79 mName = componentName.flattenToShortString(); in SearchableSource()
81 mActivityInfo = pm.getActivityInfo(componentName, 0); in SearchableSource()
82 PackageInfo pkgInfo = pm.getPackageInfo(componentName.getPackageName(), 0); in SearchableSource()
/packages/apps/SpareParts/src/com/android/spare_parts/
DEnabler.java37 final ComponentName componentName = new ComponentName(context, SpareParts.class); in onReceive() local
41 pm.setComponentEnabledSetting(componentName, value, PackageManager.DONT_KILL_APP); in onReceive()
/packages/apps/Phone/src/com/android/phone/
DRespondViaSmsManager.java337 final ComponentName componentName = ComponentName.unflattenFromString(flattenedName); in sendTextToDefaultActivity() local
340 serviceInfo = packageManager.getServiceInfo(componentName, 0); in sendTextToDefaultActivity()
347 sendTextAndExit(phoneNumber, message, componentName, false); in sendTextToDefaultActivity()