Home
last modified time | relevance | path

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

1234

/packages/modules/GeoTZ/validation/geonames/known_diffs/
Dknown_diffs500.prototxt35 isoCountryCodes: "cn"
39 isoCountryCodes: "cn"
50 isoCountryCodes: "cn"
54 isoCountryCodes: "cn"
65 isoCountryCodes: "cn"
69 isoCountryCodes: "cn"
80 isoCountryCodes: "cn"
84 isoCountryCodes: "cn"
95 isoCountryCodes: "cn"
99 isoCountryCodes: "cn"
[all …]
Dknown_diffs15000.prototxt20 isoCountryCodes: "cn"
24 isoCountryCodes: "cn"
35 isoCountryCodes: "cn"
39 isoCountryCodes: "cn"
50 isoCountryCodes: "cn"
54 isoCountryCodes: "cn"
65 isoCountryCodes: "cn"
69 isoCountryCodes: "cn"
80 isoCountryCodes: "cn"
84 isoCountryCodes: "cn"
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DItemInfoMatcher.java34 boolean matches(ItemInfo info, ComponentName cn); in matches() argument
41 ComponentName cn = info.getTargetComponent(); in matchesInfo() local
42 return cn != null && matches(info, cn); in matchesInfo()
52 return (info, cn) -> matches(info, cn) || matcher.matches(info, cn); in or()
59 return (info, cn) -> matches(info, cn) && matcher.matches(info, cn); in and()
66 return (info, cn) -> !matches(info, cn); in negate()
70 return (info, cn) -> info.user.equals(user); in ofUser()
74 return (info, cn) -> components.contains(cn) && info.user.equals(user); in ofComponents()
78 return (info, cn) -> packageNames.contains(cn.getPackageName()) && info.user.equals(user); in ofPackages()
82 return (info, cn) -> info.itemType == Favorites.ITEM_TYPE_DEEP_SHORTCUT && in ofShortcutKeys()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DApprovalPreferenceController.java54 public ApprovalPreferenceController setCn(ComponentName cn) { in setCn() argument
55 mCn = cn; in setCn()
108 public void disable(final ComponentName cn) { in disable() argument
109 logSpecialPermissionChange(true, cn.getPackageName()); in disable()
110 mNm.setNotificationListenerAccessGranted(cn, false); in disable()
113 cn.getPackageName())) { in disable()
114 mNm.removeAutomaticZenRules(cn.getPackageName()); in disable()
119 protected void enable(ComponentName cn) { in enable() argument
120 logSpecialPermissionChange(true, cn.getPackageName()); in enable()
121 mNm.setNotificationListenerAccessGranted(cn, true); in enable()
[all …]
DNotificationAccessDetails.java82 String cn = intent.getStringExtra(Settings.EXTRA_NOTIFICATION_LISTENER_COMPONENT_NAME); in onAttach() local
83 if (cn != null) { in onAttach()
84 mComponentName = ComponentName.unflattenFromString(cn); in onAttach()
237 public void disable(final ComponentName cn) { in disable() argument
240 apc.disable(cn); in disable()
253 protected void enable(ComponentName cn) { in enable() argument
256 apc.enable(cn); in enable()
DFriendlyWarningDialogFragment.java34 public FriendlyWarningDialogFragment setServiceInfo(ComponentName cn, CharSequence label, in setServiceInfo() argument
37 args.putString(KEY_COMPONENT, cn.flattenToString()); in setServiceInfo()
53 final ComponentName cn = ComponentName.unflattenFromString(args in onCreateDialog() local
66 parent.disable(cn); in onCreateDialog()
DScaryWarningDialogFragment.java40 public ScaryWarningDialogFragment setServiceInfo(ComponentName cn, CharSequence label, in setServiceInfo() argument
43 args.putString(KEY_COMPONENT, cn.flattenToString()); in setServiceInfo()
54 final ComponentName cn = ComponentName.unflattenFromString(args in onCreateDialog() local
70 parent.enable(cn); in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/applications/assist/
DDefaultAssistPreferenceController.java69 final ComponentName cn = mAssistUtils.getAssistComponentForUser(mUserId); in getSettingIntent() local
70 if (cn == null) { in getSettingIntent()
74 .setPackage(cn.getPackageName()); in getSettingIntent()
81 final String activity = getAssistSettingsActivity(cn, services.get(0), mPackageManager); in getSettingIntent()
86 .setComponent(new ComponentName(cn.getPackageName(), activity)); in getSettingIntent()
112 final ComponentName cn = mAssistUtils.getAssistComponentForUser(mUserId); in getDefaultAppInfo() local
113 if (cn == null) { in getDefaultAppInfo()
116 return new DefaultAppInfo(mContext, mPackageManager, mUserId, cn); in getDefaultAppInfo()
120 String getAssistSettingsActivity(ComponentName cn, ResolveInfo resolveInfo, PackageManager pm) { in getAssistSettingsActivity() argument
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerPreferenceController.java53 ComponentName cn = mAssistUtils.getAssistComponentForUser(getCurrentProcessUserId()); in DefaultVoiceInputPickerPreferenceController() local
54 if (cn != null) { in DefaultVoiceInputPickerPreferenceController()
55 mAssistComponentName = cn.flattenToString(); in DefaultVoiceInputPickerPreferenceController()
84 ComponentName cn = VoiceInputUtils.getCurrentService(getContext()); in getCurrentDefaultKey() local
85 if (cn == null) { in getCurrentDefaultKey()
88 return cn.flattenToString(); in getCurrentDefaultKey()
93 ComponentName cn = ComponentName.unflattenFromString(key); in setCurrentDefault() local
95 cn); in setCurrentDefault()
/packages/apps/Settings/src/com/android/settings/utils/
DManagedServiceSettings.java111 final ComponentName cn = new ComponentName(service.packageName, service.name); in updateList() local
132 pref.setKey(cn.flattenToString()); in updateList()
133 pref.setChecked(isServiceEnabled(cn)); in updateList()
142 return setEnabled(cn, finalTitle.toString(), enable); in updateList()
144 return setEnabled(cn, null, enable); in updateList()
147 pref.setKey(cn.flattenToString()); in updateList()
160 protected boolean isServiceEnabled(ComponentName cn) { in isServiceEnabled() argument
161 return mServiceListing.isEnabled(cn); in isServiceEnabled()
194 public ScaryWarningDialogFragment setServiceInfo(ComponentName cn, String label, in setServiceInfo() argument
197 args.putString(KEY_COMPONENT, cn.flattenToString()); in setServiceInfo()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationAssistantPreferenceController.java62 ComponentName cn = isChecked in setChecked() local
68 showDialog(cn); in setChecked()
76 protected void setNotificationAssistantGranted(ComponentName cn) { in setNotificationAssistantGranted() argument
79 mNotificationBackend.setNASMigrationDoneAndResetDefault(mUserId, cn != null); in setNotificationAssistantGranted()
81 mNotificationBackend.setNotificationAssistantGranted(cn); in setNotificationAssistantGranted()
84 protected void showDialog(ComponentName cn) { in showDialog() argument
86 NotificationAssistantDialogFragment.newInstance(mFragment, cn); in showDialog()
DNotificationAssistantDialogFragment.java36 ComponentName cn) { in newInstance() argument
40 args.putString(KEY_COMPONENT, cn == null ? "" : cn.flattenToString()); in newInstance()
66 final ComponentName cn = ComponentName.unflattenFromString(args in onClick() local
69 parent.enableNAS(cn); in onClick()
DNotificationAssistantPicker.java87 ComponentName cn = mNotificationBackend.getAllowedNotificationAssistant(); in getDefaultKey() local
88 return (cn != null) ? cn.flattenToString() : ""; in getDefaultKey()
119 final ComponentName cn = new ComponentName(service.packageName, service.name); in onServicesReloaded() local
120 list.add(new DefaultAppInfo(mContext, mPm, mUserId, cn)); in onServicesReloaded()
DNotificationAccessSettings.java143 final ComponentName cn = new ComponentName(service.packageName, service.name); in updateList() local
157 pref.setKey(cn.flattenToString()); in updateList()
170 args.putString(AppInfoBase.ARG_PACKAGE_NAME, cn.getPackageName()); in updateList()
175 cn.flattenToString()); in updateList()
187 pref.setKey(cn.flattenToString()); in updateList()
188 if (mNm.isNotificationListenerAccessGranted(cn)) { in updateList()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DAppEventProducer.java179 ComponentName cn = null; in toAppTarget() local
186 if ((cn = parseNullable(app.getComponentName())) != null) { in toAppTarget()
187 id = "app:" + cn.getPackageName(); in toAppTarget()
194 && (cn = parseNullable(si.getShortcutName())) != null) { in toAppTarget()
196 userHandle).forPackage(cn.getPackageName(), si.getShortcutId()).query( in toAppTarget()
209 if ((cn = parseNullable(widget.getComponentName())) != null) { in toAppTarget()
210 id = "widget:" + cn.getPackageName(); in toAppTarget()
216 if ((cn = parseNullable(task.getComponentName())) != null) { in toAppTarget()
217 id = "app:" + cn.getPackageName(); in toAppTarget()
224 if (id != null && cn != null) { in toAppTarget()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDefaultLayoutParser.java286 protected int verifyAndInsert(ComponentName cn, Bundle extras) { in verifyAndInsert() argument
288 mPackageManager.getReceiverInfo(cn, 0); in verifyAndInsert()
291 new String[]{cn.getPackageName()}); in verifyAndInsert()
292 cn = new ComponentName(packages[0], cn.getClassName()); in verifyAndInsert()
294 mPackageManager.getReceiverInfo(cn, 0); in verifyAndInsert()
296 Log.d(TAG, "Can't find widget provider: " + cn.getClassName()); in verifyAndInsert()
306 if (!appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, cn)) { in verifyAndInsert()
307 Log.e(TAG, "Unable to bind app widget id " + cn); in verifyAndInsert()
313 mValues.put(Favorites.APPWIDGET_PROVIDER, cn.flattenToString()); in verifyAndInsert()
324 intent.setComponent(cn); in verifyAndInsert()
DAutoInstallsLayout.java356 ComponentName cn; in parseAndAdd() local
358 cn = new ComponentName(packageName, className); in parseAndAdd()
359 info = mPackageManager.getActivityInfo(cn, 0); in parseAndAdd()
363 cn = new ComponentName(packages[0], className); in parseAndAdd()
364 info = mPackageManager.getActivityInfo(cn, 0); in parseAndAdd()
368 .setComponent(cn) in parseAndAdd()
498 ComponentName cn = getComponentName(parser); in parseAndAdd() local
499 if (cn == null) { in parseAndAdd()
530 return verifyAndInsert(cn, extras); in parseAndAdd()
533 protected int verifyAndInsert(ComponentName cn, Bundle extras) { in verifyAndInsert() argument
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAssistantPickerEntryPreferenceController.java61 ComponentName cn = mAssistUtils.getAssistComponentForUser(getCurrentProcessUserId()); in getCurrentDefaultAppInfo() local
62 if (cn == null) { in getCurrentDefaultAppInfo()
66 getCurrentProcessUserId(), cn); in getCurrentDefaultAppInfo()
84 ComponentName cn = mAssistUtils.getAssistComponentForUser(getCurrentProcessUserId()); in getSettingIntent() local
85 if (cn == null) { in getSettingIntent()
89 Intent probe = ASSISTANT_SERVICE.setPackage(cn.getPackageName()); in getSettingIntent()
102 new ComponentName(cn.getPackageName(), activity)); in getSettingIntent()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatPredictionModel.java83 ComponentName cn = ((LauncherAppWidgetInfo) info).providerName; in getAppTargetFromInfo() local
84 return new AppTarget.Builder(new AppTargetId("widget:" + cn.getPackageName()), in getAppTargetFromInfo()
85 cn.getPackageName(), info.user).setClassName(cn.getClassName()).build(); in getAppTargetFromInfo()
88 ComponentName cn = info.getTargetComponent(); in getAppTargetFromInfo() local
89 return new AppTarget.Builder(new AppTargetId("app:" + cn.getPackageName()), in getAppTargetFromInfo()
90 cn.getPackageName(), info.user).setClassName(cn.getClassName()).build(); in getAppTargetFromInfo()
/packages/apps/Settings/src/com/android/settings/security/trustagent/
DTrustAgentManager.java157 String cn = null; in getSettingsComponent() local
184 cn = sa.getString(com.android.internal.R.styleable.TrustAgent_settingsActivity); in getSettingsComponent()
199 if (cn != null && cn.indexOf('/') < 0) { in getSettingsComponent()
200 cn = resolveInfo.serviceInfo.packageName + "/" + cn; in getSettingsComponent()
203 (cn == null) ? null : ComponentName.unflattenFromString(cn); in getSettingsComponent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchFeatureProviderImplTest.java129 final ComponentName cn = new ComponentName("pkg", "class"); in verifyLaunchSearchResultPageCaller_badCaller_shouldCrash() local
130 mProvider.verifyLaunchSearchResultPageCaller(mActivity, cn); in verifyLaunchSearchResultPageCaller_badCaller_shouldCrash()
135 final ComponentName cn = new ComponentName(mActivity.getPackageName(), "class"); in verifyLaunchSearchResultPageCaller_settingsCaller_shouldNotCrash() local
136 mProvider.verifyLaunchSearchResultPageCaller(mActivity, cn); in verifyLaunchSearchResultPageCaller_settingsCaller_shouldNotCrash()
142 final ComponentName cn = new ComponentName(packageName, "class"); in verifyLaunchSearchResultPageCaller_settingsIntelligenceCaller_shouldNotCrash() local
143 mProvider.verifyLaunchSearchResultPageCaller(mActivity, cn); in verifyLaunchSearchResultPageCaller_settingsIntelligenceCaller_shouldNotCrash()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentsPreferenceControllerTest.java195 for (ComponentName cn : componentNames) { in createFakeAvailableAgents()
196 final ResolveInfo ri = createFakeResolveInfo(cn); in createFakeAvailableAgents()
202 private ResolveInfo createFakeResolveInfo(ComponentName cn) { in createFakeResolveInfo() argument
205 ri.serviceInfo.packageName = cn.getPackageName(); in createFakeResolveInfo()
206 ri.serviceInfo.name = cn.getClassName(); in createFakeResolveInfo()
208 ri.serviceInfo.applicationInfo.packageName = cn.getPackageName(); in createFakeResolveInfo()
209 ri.serviceInfo.applicationInfo.name = cn.getClassName(); in createFakeResolveInfo()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DLoaderCursorTest.java113 ComponentName cn = new ComponentName(mContext.getPackageName(), "placeholder-do"); in getAppShortcutInfo_dontAllowMissing_invalidComponent() local
115 new Intent().setComponent(cn), false /* allowMissingTarget */, true)); in getAppShortcutInfo_dontAllowMissing_invalidComponent()
120 ComponentName cn = new ComponentName(TEST_PACKAGE, TEST_PACKAGE); in getAppShortcutInfo_dontAllowMissing_validComponent() local
121 shadowOf(mContext.getPackageManager()).addActivityIfNotPresent(cn); in getAppShortcutInfo_dontAllowMissing_validComponent()
128 new Intent().setComponent(cn), false /* allowMissingTarget */, true)) in getAppShortcutInfo_dontAllowMissing_validComponent()
139 ComponentName cn = new ComponentName(mContext.getPackageName(), "placeholder-do"); in getAppShortcutInfo_allowMissing_invalidComponent() local
142 new Intent().setComponent(cn), true /* allowMissingTarget */, true)) in getAppShortcutInfo_allowMissing_invalidComponent()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DPackageUpdatedTask.java212 ComponentName cn = si.getTargetComponent(); in execute()
213 if (cn != null && matcher.matches(si, cn)) { in execute()
214 String packageName = cn.getPackageName(); in execute()
224 boolean isTargetValid = !cn.getClassName().equals( in execute()
229 .forPackage(cn.getPackageName(), in execute()
240 .isActivityEnabled(cn, mUser); in execute()
259 } else if (isNewApkAvailable && removedComponents.contains(cn)) { in execute()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DNotificationAccess.java114 final ComponentName cn = new ComponentName(service.packageName, service.name); in updateList() local
134 pref.setKey(cn.flattenToString()); in updateList()
135 pref.setChecked(mNotificationManager.isNotificationListenerAccessGranted(cn)); in updateList()
137 if (mDefaultPackages.contains(cn.getPackageName()) && pref.isChecked()) { in updateList()
143 mNotificationManager.setNotificationListenerAccessGranted(cn, enable); in updateList()

1234