/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | MetaDataTest.java | 45 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/ |
D | ShortcutManagerTest6.java | 51 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/ |
D | AbstractVerifier.java | 160 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/ |
D | DumpUtilsTest.java | 36 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/ |
D | ServiceListing.java | 97 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()
|
D | DefaultAppInfo.java | 44 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/ |
D | PersistentConnectionTest.java | 118 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/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipUtils.java | 48 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/base/services/core/java/com/android/server/pm/ |
D | PreferredComponent.java | 79 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/services/core/java/com/android/server/notification/ |
D | NotificationShellCmd.java | 136 ComponentName cn = ComponentName.unflattenFromString(getNextArgRequired()); in onCommand() local 137 if (cn == null) { in onCommand() 145 mBinderService.setNotificationListenerAccessGrantedForUser(cn, userId, true); in onCommand() 149 ComponentName cn = ComponentName.unflattenFromString(getNextArgRequired()); in onCommand() local 150 if (cn == null) { in onCommand() 158 mBinderService.setNotificationListenerAccessGrantedForUser(cn, userId, false); in onCommand() 162 ComponentName cn = ComponentName.unflattenFromString(getNextArgRequired()); in onCommand() local 163 if (cn == null) { in onCommand() 171 mBinderService.setNotificationAssistantAccessGrantedForUser(cn, userId, true); in onCommand() 175 ComponentName cn = ComponentName.unflattenFromString(getNextArgRequired()); in onCommand() local [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GSMPhoneTest.java.broken | 138 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/packages/SystemUI/src/com/android/systemui/ |
D | DessertCase.java | 32 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/SettingsLib/src/com/android/settingslib/dream/ |
D | DreamBackend.java | 147 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/shared/src/com/android/systemui/shared/recents/model/ |
D | IconLoader.java | 59 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/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/accessibility/ |
D | AccessibilityUtilsTest.java | 59 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/src/com/android/settingslib/core/instrumentation/ |
D | MetricsFeatureProvider.java | 133 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/av/media/libstagefright/codecs/amrwbenc/src/ |
D | c2t64fx.c | 49 … 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()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/testutils/shadow/ |
D | ShadowSmsApplication.java | 43 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/ |
D | TaskStack.java | 350 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/opt/telephony/src/java/com/android/internal/telephony/ |
D | GsmCdmaCallTracker.java | 946 … GsmCdmaConnection cn = (GsmCdmaConnection)mForegroundCall.mConnections.get(n); in handlePollCalls() local 947 mDroppedDuringPoll.add(cn); in handlePollCalls() 954 GsmCdmaConnection cn = (GsmCdmaConnection)mRingingCall.mConnections.get(n); in handlePollCalls() local 955 mDroppedDuringPoll.add(cn); in handlePollCalls() 1330 GsmCdmaConnection cn = (GsmCdmaConnection) call.mConnections.get(i); in logHangupEvent() local 1333 call_index = cn.getGsmCdmaIndex(); in logHangupEvent() 1337 mMetrics.writeRilHangup(mPhone.getPhoneId(), cn, call_index, getNetworkCountryIso()); in logHangupEvent() local 1357 GsmCdmaConnection cn = (GsmCdmaConnection)call.mConnections.get(i); in hangupConnectionByIndex() local 1358 if (!cn.mDisconnected && cn.getGsmCdmaIndex() == index) { in hangupConnectionByIndex() 1359 mMetrics.writeRilHangup(mPhone.getPhoneId(), cn, cn.getGsmCdmaIndex(), in hangupConnectionByIndex() local [all …]
|
D | GsmCdmaCall.java | 148 GsmCdmaConnection cn = (GsmCdmaConnection)mConnections.get(i); in onHangupLocal() local 150 cn.onHangupLocal(); in onHangupLocal()
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | set_sign.cpp | 488 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/ |
D | ImsPhoneBase.java | 108 public void startOnHoldTone(Connection cn) { in startOnHoldTone() argument 109 Pair<Connection, Boolean> result = new Pair<Connection, Boolean>(cn, Boolean.TRUE); in startOnHoldTone() 118 protected void stopOnHoldTone(Connection cn) { in stopOnHoldTone() argument 119 Pair<Connection, Boolean> result = new Pair<Connection, Boolean>(cn, Boolean.FALSE); in stopOnHoldTone() 209 public void notifyDisconnect(Connection cn) { in notifyDisconnect() argument 210 mDisconnectRegistrants.notifyResult(cn); in notifyDisconnect()
|
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/ |
D | Dpm.java | 261 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/ |
D | Instrument.java | 416 ComponentName cn = ComponentName.unflattenFromString(cnArg); in parseComponentName() local 417 if (cn == null) throw new IllegalArgumentException("Bad component name: " + cnArg); in parseComponentName() 418 return cn; in parseComponentName() 486 final ComponentName cn = parseComponentName(componentNameArg); in run() local 512 if (!mAm.startInstrumentation(cn, profileFile, flags, args, watcher, connection, userId, in run() 514 throw new AndroidException("INSTRUMENTATION_FAILED: " + cn.flattenToString()); in run()
|