Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/android/app/activity/
DMetaDataTest.java45 private void checkMetaData(ComponentName cn, PackageItemInfo ci) in checkMetaData() argument
47 assertNotNull("Unable to find component " + cn, ci); in checkMetaData()
102 ComponentName cn = new ComponentName(mContext, LocalActivity.class); in testActivityWithData() local
104 cn, PackageManager.GET_META_DATA); in testActivityWithData()
106 checkMetaData(cn, ai); in testActivityWithData()
108 ai = mContext.getPackageManager().getActivityInfo(cn, 0); in testActivityWithData()
115 ComponentName cn = new ComponentName(mContext, LocalReceiver.class); in testReceiverWithData() local
117 cn, PackageManager.GET_META_DATA); in testReceiverWithData()
119 checkMetaData(cn, ai); in testReceiverWithData()
121 ai = mContext.getPackageManager().getReceiverInfo(cn, 0); in testReceiverWithData()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest6.java51 assertEquals(cn(PACKAGE_SYSTEM_LAUNCHER, PACKAGE_SYSTEM_LAUNCHER_NAME), in testHasShortcutHostPermissionInner_systemLauncherOnly()
53 assertEquals(cn(PACKAGE_SYSTEM_LAUNCHER, PACKAGE_SYSTEM_LAUNCHER_NAME), in testHasShortcutHostPermissionInner_systemLauncherOnly()
60 assertEquals(cn(PACKAGE_SYSTEM_LAUNCHER, PACKAGE_SYSTEM_LAUNCHER_NAME), in testHasShortcutHostPermissionInner_systemLauncherOnly()
81 assertEquals(cn(PACKAGE_SYSTEM_LAUNCHER, PACKAGE_SYSTEM_LAUNCHER_NAME), in testHasShortcutHostPermissionInner_with3pLauncher()
83 assertEquals(cn(PACKAGE_SYSTEM_LAUNCHER, PACKAGE_SYSTEM_LAUNCHER_NAME), in testHasShortcutHostPermissionInner_with3pLauncher()
90 /* preferred */ cn(CALLING_PACKAGE_2, "name"), in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
102 assertEquals(cn(CALLING_PACKAGE_2, "name"), in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
104 assertEquals(cn(CALLING_PACKAGE_2, "name"), in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
124 assertEquals(cn(CALLING_PACKAGE_2, "name"), in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
126 assertEquals(cn(CALLING_PACKAGE_2, "name"), in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
[all …]
/frameworks/base/core/java/org/apache/http/conn/ssl/
DAbstractVerifier.java160 String cn = it.next(); in verify() local
161 cn = cn.toLowerCase(Locale.ENGLISH); in verify()
164 buf.append(cn); in verify()
173 boolean doWildcard = cn.startsWith("*.") && in verify()
174 cn.indexOf('.', 2) != -1 && in verify()
175 acceptableCountryWildcard(cn) && in verify()
179 match = hostName.endsWith(cn.substring(1)); in verify()
183 match = countDots(hostName) == countDots(cn); in verify()
186 match = hostName.equals(cn); in verify()
197 public static boolean acceptableCountryWildcard(String cn) { in acceptableCountryWildcard() argument
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DDumpUtilsTest.java36 private static ComponentName cn(String componentName) { in cn() method in DumpUtilsTest
47 return () -> cn(componentName); in wcn()
58 assertTrue(isPlatformPackage(cn("android/abc"))); in testIsPlatformPackage()
59 assertTrue(isPlatformPackage(cn("android.abc/abc"))); in testIsPlatformPackage()
60 assertTrue(isPlatformPackage(cn("com.android.def/abc"))); in testIsPlatformPackage()
62 assertFalse(isPlatformPackage(cn(null))); in testIsPlatformPackage()
63 assertFalse(isPlatformPackage(cn("com.google.def/abc"))); in testIsPlatformPackage()
81 assertFalse(isNonPlatformPackage(cn("android/abc"))); in testIsNonPlatformPackage()
82 assertFalse(isNonPlatformPackage(cn("android.abc/abc"))); in testIsNonPlatformPackage()
83 assertFalse(isNonPlatformPackage(cn("com.android.def/abc"))); in testIsNonPlatformPackage()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DServiceListing.java97 for (ComponentName cn : mEnabledServices) { in saveEnabledServices()
103 sb.append(cn.flattenToString()); in saveEnabledServices()
115 final ComponentName cn = ComponentName.unflattenFromString(name); in loadEnabledServices() local
116 if (cn != null) { in loadEnabledServices()
117 mEnabledServices.add(cn); in loadEnabledServices()
151 public boolean isEnabled(ComponentName cn) { in isEnabled() argument
152 return mEnabledServices.contains(cn); in isEnabled()
155 public void setEnabled(ComponentName cn, boolean enabled) { in setEnabled() argument
157 mEnabledServices.add(cn); in setEnabled()
159 mEnabledServices.remove(cn); in setEnabled()
DDefaultAppInfo.java44 public DefaultAppInfo(Context context, PackageManager pm, int uid, ComponentName cn) { in DefaultAppInfo() argument
45 this(context, pm, uid, cn, null /* summary */, true /* enabled */); in DefaultAppInfo()
52 public DefaultAppInfo(Context context, PackageManager pm, int uid, ComponentName cn, in DefaultAppInfo() argument
59 componentName = cn; in DefaultAppInfo()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPersistentConnectionTest.java118 final ComponentName cn = ComponentName.unflattenFromString("a.b.c/def"); in testAll() local
121 final MyConnection conn = new MyConnection(TAG, context, handler, userId, cn, in testAll()
149 ArgumentMatchers.argThat(intent -> cn.equals(intent.getComponent())), in testAll()
155 conn.getServiceConnectionForTest().onServiceConnected(cn, in testAll()
192 conn.getServiceConnectionForTest().onServiceDisconnected(cn); in testAll()
203 conn.getServiceConnectionForTest().onServiceConnected(cn, in testAll()
216 conn.getServiceConnectionForTest().onBindingDied(cn); in testAll()
243 conn.getServiceConnectionForTest().onServiceConnected(cn, in testAll()
255 conn.getServiceConnectionForTest().onBindingDied(cn); in testAll()
283 conn.getServiceConnectionForTest().onBindingDied(cn); in testAll()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPreferredComponent.java79 ComponentName cn = set[i]; in PreferredComponent() local
80 if (cn == null) { in PreferredComponent()
86 myPackages[i] = cn.getPackageName().intern(); in PreferredComponent()
87 myClasses[i] = cn.getClassName().intern(); in PreferredComponent()
88 myComponents[i] = cn.flattenToShortString(); in PreferredComponent()
147 ComponentName cn = ComponentName.unflattenFromString(name); in PreferredComponent() local
148 if (cn == null) { in PreferredComponent()
154 myPackages[setPos] = cn.getPackageName(); in PreferredComponent()
155 myClasses[setPos] = cn.getClassName(); in PreferredComponent()
242 ComponentName cn = comps[i]; in sameSet() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipUtils.java48 ComponentName cn = ComponentName.unflattenFromString( in getTopPinnedActivity() local
50 if (cn != null && !cn.getPackageName().equals(sysUiPackageName)) { in getTopPinnedActivity()
51 return new Pair<>(cn, pinnedStackInfo.taskUserIds[i]); in getTopPinnedActivity()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMPhoneTest.java.broken138 Connection cn;
188 cn = mGSMPhone.getForegroundCall().getConnections().get(0);
189 assertTrue(!cn.isIncoming());
190 assertEquals(Connection.PostDialState.NOT_STARTED, cn.getPostDialState());
192 assertEquals(DisconnectCause.NOT_DISCONNECTED, cn.getDisconnectCause());
219 cn = mGSMPhone.getForegroundCall().getConnections().get(0);
220 assertTrue(!cn.isIncoming());
221 assertEquals(Connection.PostDialState.NOT_STARTED, cn.getPostDialState());
246 cn = mGSMPhone.getForegroundCall().getConnections().get(0);
247 assertTrue(!cn.isIncoming());
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationShellCmd.java179 ComponentName cn = ComponentName.unflattenFromString(getNextArgRequired()); in onCommand() local
180 if (cn == null) { in onCommand()
188 mBinderService.setNotificationListenerAccessGrantedForUser(cn, userId, true); in onCommand()
192 ComponentName cn = ComponentName.unflattenFromString(getNextArgRequired()); in onCommand() local
193 if (cn == null) { in onCommand()
201 mBinderService.setNotificationListenerAccessGrantedForUser(cn, userId, false); in onCommand()
205 ComponentName cn = ComponentName.unflattenFromString(getNextArgRequired()); in onCommand() local
206 if (cn == null) { in onCommand()
214 mBinderService.setNotificationAssistantAccessGrantedForUser(cn, userId, true); in onCommand()
218 ComponentName cn = ComponentName.unflattenFromString(getNextArgRequired()); in onCommand() local
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/dream/
DDreamBackend.java147 ComponentName cn = getActiveDream(); in getActiveDreamName() local
148 if (cn != null) { in getActiveDreamName()
151 ServiceInfo ri = pm.getServiceInfo(cn, 0); in getActiveDreamName()
300 String cn = null; in getSettingsComponentName()
321 cn = sa.getString(com.android.internal.R.styleable.Dream_settingsActivity); in getSettingsComponentName()
332 if (cn != null && cn.indexOf('/') < 0) { in getSettingsComponentName()
333 cn = resolveInfo.serviceInfo.packageName + "/" + cn; in getSettingsComponentName()
335 return cn == null ? null : ComponentName.unflattenFromString(cn); in getSettingsComponentName()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDessertCase.java32 final ComponentName cn = new ComponentName(this, DessertCaseDream.class); in onStart() local
33 if (pm.getComponentEnabledSetting(cn) != PackageManager.COMPONENT_ENABLED_STATE_ENABLED) { in onStart()
35 pm.setComponentEnabledSetting(cn, in onStart()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DIconLoader.java59 ComponentName cn = taskKey.getComponent(); in getAndUpdateActivityInfo() local
60 ActivityInfo activityInfo = mActivityInfoCache.get(cn); in getAndUpdateActivityInfo()
62 activityInfo = PackageManagerWrapper.getInstance().getActivityInfo(cn, taskKey.userId); in getAndUpdateActivityInfo()
63 if (cn == null || activityInfo == null) { in getAndUpdateActivityInfo()
64 Log.e(TAG, "Unexpected null component name or activity info: " + cn + ", " + in getAndUpdateActivityInfo()
68 mActivityInfoCache.put(cn, activityInfo); in getAndUpdateActivityInfo()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dc2t64fx.c49 … Word16 cn[], /* (i) <12b : residual after long term prediction */ in ACELP_2t64_fx() argument
76 s = Dot_product12_asm(cn, cn, L_SUBFR, &exp); in ACELP_2t64_fx()
78 s = Dot_product12(cn, cn, L_SUBFR, &exp); in ACELP_2t64_fx()
100 p0 = cn; in ACELP_2t64_fx()
DvoAMRWBEnc.c189 Word16 cn[L_SUBFR]; /* Target vector in residual domain */ in coder() local
789 Residu_opt(p_Aq,code + M, cn, L_SUBFR / 2); in coder()
791 Residu(p_Aq,code + M, cn, L_SUBFR / 2); in coder()
795 Copy(&exc[i_subfr + (L_SUBFR / 2)], cn + (L_SUBFR / 2), L_SUBFR / 2); in coder()
1063 Updt_tar(cn, cn, &exc[i_subfr], gain_pit, L_SUBFR); in coder()
1066 Scale_sig_opt(cn, L_SUBFR, shift); /* scaling of cn[] to limit dynamic at 12 bits */ in coder()
1068 Scale_sig(cn, L_SUBFR, shift); /* scaling of cn[] to limit dynamic at 12 bits */ in coder()
1086 ACELP_2t64_fx(dn, cn, h2, code, y2, indice); in coder()
1091 ACELP_4t64_fx(dn, cn, h2, code, y2, 20, *ser_size, indice); in coder()
1099 ACELP_4t64_fx(dn, cn, h2, code, y2, 36, *ser_size, indice); in coder()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DMetricsFeatureProvider.java133 final ComponentName cn = intent.getComponent(); in logDashboardStartIntent() local
134 if (cn == null) { in logDashboardStartIntent()
146 } else if (TextUtils.equals(cn.getPackageName(), context.getPackageName())) { in logDashboardStartIntent()
154 cn.flattenToString(), in logDashboardStartIntent()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/accessibility/
DAccessibilityUtilsTest.java59 final ComponentName cn = new ComponentName("pkg", "serv"); in getEnabledServicesFromSettings_1Service_1result() local
62 cn.flattenToString() + ":", in getEnabledServicesFromSettings_1Service_1result()
66 .containsExactly(cn); in getEnabledServicesFromSettings_1Service_1result()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/testutils/shadow/
DShadowSmsApplication.java43 public static void setDefaultSmsApplication(ComponentName cn) { in setDefaultSmsApplication() argument
44 sDefaultSmsApplication = cn; in setDefaultSmsApplication()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/model/
DTaskStack.java350 ComponentName cn = t.getComponent(); in computeComponentsRemoved() local
351 if (cn.getPackageName().equals(packageName)) { in computeComponentsRemoved()
352 if (existingComponents.contains(cn)) { in computeComponentsRemoved()
356 if (PackageManagerWrapper.getInstance().getActivityInfo(cn, userId) != null) { in computeComponentsRemoved()
357 existingComponents.add(cn); in computeComponentsRemoved()
359 removedComponents.add(cn); in computeComponentsRemoved()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dset_sign.cpp488 Word16 cn[], /* i : residual after long term prediction */ in set_sign12k2() argument
518 p_cn = cn; in set_sign12k2()
536 p_cn = &cn[L_CODE-1]; in set_sign12k2()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneBase.java107 public void startOnHoldTone(Connection cn) { in startOnHoldTone() argument
108 Pair<Connection, Boolean> result = new Pair<Connection, Boolean>(cn, Boolean.TRUE); in startOnHoldTone()
117 protected void stopOnHoldTone(Connection cn) { in stopOnHoldTone() argument
118 Pair<Connection, Boolean> result = new Pair<Connection, Boolean>(cn, Boolean.FALSE); in stopOnHoldTone()
203 public void notifyDisconnect(Connection cn) { in notifyDisconnect() argument
204 mDisconnectRegistrants.notifyResult(cn); in notifyDisconnect()
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
DDpm.java261 ComponentName cn = ComponentName.unflattenFromString(component); in parseComponentName() local
262 if (cn == null) { in parseComponentName()
265 return cn; in parseComponentName()
/frameworks/base/cmds/am/src/com/android/commands/am/
DInstrument.java418 ComponentName cn = ComponentName.unflattenFromString(cnArg); in parseComponentName() local
419 if (cn == null) throw new IllegalArgumentException("Bad component name: " + cnArg); in parseComponentName()
420 return cn; in parseComponentName()
488 final ComponentName cn = parseComponentName(componentNameArg); in run() local
517 if (!mAm.startInstrumentation(cn, profileFile, flags, args, watcher, connection, userId, in run()
519 throw new AndroidException("INSTRUMENTATION_FAILED: " + cn.flattenToString()); in run()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DManagedServicesTest.java750 for (ComponentName cn : expected) { in testGetAllowedComponentsByUser()
751 assertTrue("Actual missing " + cn, actual.contains(cn)); in testGetAllowedComponentsByUser()
754 for (ComponentName cn : actual) { in testGetAllowedComponentsByUser()
755 assertTrue("Actual contains extra " + cn, expected.contains(cn)); in testGetAllowedComponentsByUser()
985 ComponentName cn = ComponentName.unflattenFromString("a/a"); in testOnNullBinding() local
987 service.registerSystemService(cn, 0); in testOnNullBinding()
991 sc.onNullBinding(cn); in testOnNullBinding()
995 service.registerSystemService(cn, 0); in testOnNullBinding()
996 assertFalse(service.isBound(cn, 0)); in testOnNullBinding()
1013 ComponentName cn = ComponentName.unflattenFromString("a/a"); in testOnServiceConnected() local
[all …]

1234