Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/utils/
DServiceListing.java131 for (ComponentName cn : mEnabledServices) { in saveEnabledServices()
137 sb.append(cn.flattenToString()); in saveEnabledServices()
149 final ComponentName cn = ComponentName.unflattenFromString(names[i]); in loadEnabledServices() local
150 if (cn != null) { in loadEnabledServices()
151 mEnabledServices.add(cn); in loadEnabledServices()
166 public boolean isEnabled(ComponentName cn) { in isEnabled() argument
167 return mEnabledServices.contains(cn); in isEnabled()
170 public void setEnabled(ComponentName cn, boolean enabled) { in setEnabled() argument
172 mEnabledServices.add(cn); in setEnabled()
174 mEnabledServices.remove(cn); in setEnabled()
DManagedServiceSettings.java96 final ComponentName cn = new ComponentName(service.packageName, service.name); in updateList() local
102 pref.setChecked(mServiceListing.isEnabled(cn)); in updateList()
107 return setEnabled(cn, title, enable); in updateList()
135 public ScaryWarningDialogFragment setServiceInfo(ComponentName cn, String label) { in setServiceInfo() argument
137 args.putString(KEY_COMPONENT, cn.flattenToString()); in setServiceInfo()
148 final ComponentName cn = ComponentName.unflattenFromString(args in onCreateDialog() local
160 mServiceListing.setEnabled(cn, true); in onCreateDialog()
DZenServiceListing.java50 public ServiceInfo findService(final ComponentName cn) { in findService() argument
53 if (serviceCN.equals(cn)) { in findService()
/packages/apps/Settings/src/com/android/settings/
DTrustAgentUtils.java74 String cn = null; in getSettingsComponent()
101 cn = sa.getString(com.android.internal.R.styleable.TrustAgent_settingsActivity); in getSettingsComponent()
116 if (cn != null && cn.indexOf('/') < 0) { in getSettingsComponent()
117 cn = resolveInfo.serviceInfo.packageName + "/" + cn; in getSettingsComponent()
119 …trustAgentComponentInfo.componentName = (cn == null) ? null : ComponentName.unflattenFromString(cn in getSettingsComponent()
DTrustedCredentialsSettings.java836 String cn = mSslCert.getIssuedTo().getCName(); in CertHolder() local
843 if (!cn.isEmpty()) { in CertHolder()
845 mSubjectSecondary = cn; in CertHolder()
851 if (!cn.isEmpty()) { in CertHolder()
852 mSubjectPrimary = cn; in CertHolder()
DSettingsActivity.java540 final ComponentName cn = intent.getComponent(); in onCreate() local
541 final String className = cn.getClassName(); in onCreate()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationAccessSettings.java109 public FriendlyWarningDialogFragment setServiceInfo(ComponentName cn, String label) { in setServiceInfo() argument
111 args.putString(KEY_COMPONENT, cn.flattenToString()); in setServiceInfo()
122 final ComponentName cn = ComponentName.unflattenFromString(args in onCreateDialog() local
133 mServiceListing.setEnabled(cn, false); in onCreateDialog()
135 cn.getPackageName())) { in onCreateDialog()
136 deleteRules(mContext, cn.getPackageName()); in onCreateDialog()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java212 public boolean filterItem(ItemInfo parent, ItemInfo info, ComponentName cn); in filterItem() argument
287 ComponentName cn = si.getTargetComponent(); in setPackageState()
288 if (si.isPromise() && (cn != null) in setPackageState()
289 && installInfo.packageName.equals(cn.getPackageName())) { in setPackageState()
341 ComponentName cn = si.getTargetComponent(); in updateSessionDisplayInfo()
342 if (si.isPromise() && (cn != null) in updateSessionDisplayInfo()
343 && packageName.equals(cn.getPackageName())) { in updateSessionDisplayInfo()
1051 public boolean filterItem(ItemInfo parent, ItemInfo info, ComponentName cn) { in getItemsByPackageName()
1052 return cn.getPackageName().equals(pn) && info.user.equals(user); in getItemsByPackageName()
1855 ComponentName cn = intent.getComponent(); in loadWorkspace() local
[all …]
DAutoInstallsLayout.java345 ComponentName cn; in parseAndAdd() local
347 cn = new ComponentName(packageName, className); in parseAndAdd()
348 info = mPackageManager.getActivityInfo(cn, 0); in parseAndAdd()
352 cn = new ComponentName(packages[0], className); in parseAndAdd()
353 info = mPackageManager.getActivityInfo(cn, 0); in parseAndAdd()
357 .setComponent(cn) in parseAndAdd()
475 ComponentName cn = new ComponentName(packageName, className); in parseAndAdd() local
477 mPackageManager.getReceiverInfo(cn, 0); in parseAndAdd()
481 cn = new ComponentName(packages[0], className); in parseAndAdd()
483 mPackageManager.getReceiverInfo(cn, 0); in parseAndAdd()
[all …]
DIconCache.java298 String cn = c.getString(indexComponent); in updateDBIcons() local
299 ComponentName component = ComponentName.unflattenFromString(cn); in updateDBIcons()
601 ComponentName cn = new ComponentName(packageName, packageName + EMPTY_CLASS_NAME); in getPackageKey() local
602 return new ComponentKey(cn, user); in getPackageKey()
756 String cn = app.getComponentName().flattenToString(); in run() local
760 new String[]{cn, Long.toString(mUserSerial)}); in run()
DLauncherProvider.java1020 ComponentName cn = ComponentName.unflattenFromString( in initializeExternalAdd() local
1023 if (cn != null) { in initializeExternalAdd()
1027 if (!appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId,cn)) { in initializeExternalAdd()
1225 final ComponentName cn; in migrateLauncher2Shortcuts() local
1235 cn = intent.getComponent(); in migrateLauncher2Shortcuts()
1240 } else if (cn != null && in migrateLauncher2Shortcuts()
1241 !LauncherModel.isValidPackageActivity(mContext, cn, in migrateLauncher2Shortcuts()
DDragController.java353 ComponentName cn = dragInfo.intent.getComponent(); in onAppsRemoved() local
354 boolean isSameComponent = cn != null && (cn.equals(componentName) || in onAppsRemoved()
355 packageNames.contains(cn.getPackageName())); in onAppsRemoved()
DUtilities.java455 ComponentName cn = intent.getComponent(); in isSystemApp() local
457 if (cn == null) { in isSystemApp()
463 packageName = cn.getPackageName(); in isSystemApp()
DDeviceProfile.java132 ComponentName cn = new ComponentName(context.getPackageName(), in DeviceProfile() local
134 defaultWidgetPadding = AppWidgetHostView.getDefaultPaddingForWidget(context, cn, null); in DeviceProfile()
DLauncherBackupHelper.java577 ComponentName cn = intent.getComponent(); in backupIcons() local
580 if (cn != null) { in backupIcons()
581 key = getKey(Key.ICON, cn.flattenToShortString()); in backupIcons()
DWorkspace.java4279 ComponentName cn) {
4280 if (packageNames.contains(cn.getPackageName())
4282 cns.add(cn);
4317 ComponentName cn) {
4319 if (componentNames.contains(cn) && info.user.equals(user)) {
4332 if (componentNames.contains(cn) && info.user.equals(user)) {
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherProvider.java1048 ComponentName cn; in addAppShortcut() local
1050 cn = new ComponentName(packageName, className); in addAppShortcut()
1051 info = packageManager.getActivityInfo(cn, 0); in addAppShortcut()
1055 cn = new ComponentName(packages[0], className); in addAppShortcut()
1056 info = packageManager.getActivityInfo(cn, 0); in addAppShortcut()
1059 intent.setComponent(cn); in addAppShortcut()
1118 ComponentName cn = getSearchWidgetProvider(); in addSearchWidget() local
1119 return addAppWidget(db, values, cn, 4, 1, null); in addSearchWidget()
1123 ComponentName cn = new ComponentName("com.android.alarmclock", in addClockWidget() local
1125 return addAppWidget(db, values, cn, 2, 2, null); in addClockWidget()
[all …]
DWorkspace.java3661 ComponentName cn = info.intent.getComponent();
3662 if ((cn != null) && packageNames.contains(cn.getPackageName())
3664 cns.add(cn);
3669 ComponentName cn = s.intent.getComponent();
3670 if ((cn != null) && packageNames.contains(cn.getPackageName())
3672 cns.add(cn);
3677 ComponentName cn = info.providerName;
3678 if ((cn != null) && packageNames.contains(cn.getPackageName())
3680 cns.add(cn);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DApplicationUtils.java36 final ComponentName cn = new ComponentName(context, cls); in getActivityTitleResId() local
38 final ActivityInfo ai = context.getPackageManager().getActivityInfo(cn, 0); in getActivityTitleResId()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DWidgetsAndShortcutNameComparator.java80 ComponentName cn = new ComponentName(shortcutInfo.activityInfo.packageName, in getComponentKey() local
83 return new ComponentKey(cn, UserHandleCompat.myUserHandle()); in getComponentKey()
DGridSizeMigrationTask.java733 ComponentName cn = ComponentName.unflattenFromString(provider);
734 verifyPackage(cn.getPackageName());
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DAccessibilityFragment.java216 public static void prepareArgs(@NonNull Bundle args, ComponentName cn, String label, in prepareArgs() argument
218 args.putParcelable(ARG_COMPONENT, cn); in prepareArgs()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java293 ComponentName cn = dpm.getProfileOwnerAsUser(userInfo.id); in isProfileOrDeviceOwner() local
294 if (cn != null && cn.getPackageName().equals(packageName)) { in isProfileOrDeviceOwner()
/packages/apps/Test/connectivity/sl4n/rapidjson/
Dreadme.md14 * [简体中文](http://rapidjson.org/zh-cn/)
/packages/services/Telephony/src/com/android/phone/
DPhoneUtils.java1859 for (Connection cn : fgCall.getConnections()) { in isInEmergencyCall()
1861 cn.getAddress())) { in isInEmergencyCall()

12