/frameworks/base/core/java/android/app/ |
TaskStackBuilder.java | 20 import android.content.ComponentName; 98 * <p>This is equivalent to calling {@link #addParentStack(ComponentName) addParentStack} 99 * with the resolved ComponentName of nextIntent (if it can be resolved), followed by 107 ComponentName target = nextIntent.getComponent(); 133 ComponentName target = parent.getComponent(); 152 return addParentStack(new ComponentName(mSourceContext, sourceActivityClass)); 164 public TaskStackBuilder addParentStack(ComponentName sourceActivityName) { 171 final ComponentName target = new ComponentName(info.packageName, parentActivity); 180 Log.e(TAG, "Bad ComponentName while traversing activity parent metadata") [all...] |
/frameworks/base/media/java/android/media/session/ |
MediaSessionManager.java | 21 import android.content.ComponentName; 92 * {@link ComponentName} of your enabled listener. 99 @Nullable ComponentName notificationListener) { 117 @Nullable ComponentName notificationListener, int userId) { 140 * {@link ComponentName} of your enabled listener. Updates will be posted to 149 @Nullable ComponentName notificationListener) { 160 * {@link ComponentName} of your enabled listener. Updates will be posted to 170 @Nullable ComponentName notificationListener, @Nullable Handler handler) { 182 * {@link ComponentName} of your enabled listener. 193 @Nullable ComponentName notificationListener, int userId, @Nullable Handler handler) [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
ConditionProviders.java | 22 import android.content.ComponentName; 212 private ConditionRecord getRecordLocked(Uri id, ComponentName component, boolean create) { 252 public IConditionProvider findConditionProvider(ComponentName component) { 262 public Condition findCondition(ComponentName component, Uri conditionId) { 270 public void ensureRecordExists(ComponentName component, Uri conditionId, 281 protected @NonNull ArraySet<ComponentName> loadComponentNamesFromSetting(String settingName, 291 ArraySet<ComponentName> result = new ArraySet<>(packages.length); 294 final ComponentName component = ComponentName.unflattenFromString(packages[i]); 305 public boolean subscribeIfNecessary(ComponentName component, Uri conditionId) [all...] |
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
HostEmulationManager.java | 21 import android.content.ComponentName; 80 ComponentName mServiceName; 87 ComponentName mPaymentServiceName; 94 ComponentName mActiveServiceName; 108 public void onPreferredPaymentServiceChanged(ComponentName service) { 118 public void onPreferredForegroundServiceChanged(ComponentName service) { 146 ComponentName resolvedService = null; 285 Messenger bindServiceIfNeededLocked(ComponentName service) { 348 void bindPaymentServiceLocked(int userId, ComponentName service) { 377 void launchResolver(ArrayList<ApduServiceInfo> services, ComponentName failedComponent [all...] |
HostNfcFEmulationManager.java | 19 import android.content.ComponentName; 59 ComponentName mEnabledFgServiceName; 63 ComponentName mServiceName; 70 ComponentName mActiveServiceName; 84 public void onEnabledForegroundNfcFServiceChanged(ComponentName service) { 101 ComponentName resolvedServiceName = null; 220 Messenger bindServiceIfNeededLocked(ComponentName service) { 262 public void onServiceConnected(ComponentName name, IBinder service) { 278 public void onServiceDisconnected(ComponentName name) {
|
/frameworks/base/services/print/java/com/android/server/print/ |
UserState.java | 26 import android.content.ComponentName; 104 private final ArrayMap<ComponentName, RemotePrintService> mActiveServices = 105 new ArrayMap<ComponentName, RemotePrintService>(); 110 private final Set<ComponentName> mDisabledServices = 111 new ArraySet<ComponentName>(); 174 ComponentName printServiceName = printJob.getPrinterId().getServiceName(); 188 public void onAllPrintJobsForServiceHandled(ComponentName printService) { 344 ComponentName printServiceName = printerId.getServiceName(); 376 ComponentName componentName = new ComponentName [all...] |
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/ |
LauncherAppsTests.java | 23 import android.content.ComponentName; 90 intent.setComponent(new ComponentName("com.android.cts.launchertests.support", 150 mLauncherApps.startMainActivity(new ComponentName( 162 mLauncherApps.startMainActivity(new ComponentName( 177 mLauncherApps.startMainActivity(new ComponentName( 199 public void onServiceConnected(ComponentName className, IBinder service) { 205 public void onServiceDisconnected(ComponentName className) {
|
/cts/tests/tests/media/src/android/media/cts/ |
MediaBrowserTest.java | 18 import android.content.ComponentName; 33 private static final ComponentName TEST_BROWSER_SERVICE = new ComponentName( 35 private static final ComponentName TEST_INVALID_BROWSER_SERVICE = new ComponentName( 93 ComponentName serviceComponent = mMediaBrowser.getServiceComponent(); 226 private void createMediaBrowser(final ComponentName component) {
|
/frameworks/base/services/core/java/com/android/server/search/ |
SearchManagerService.java | 26 import android.content.ComponentName; 229 public SearchableInfo getSearchableInfo(final ComponentName launchActivity) { 254 public ComponentName getGlobalSearchActivity() { 262 public ComponentName getWebSearchActivity() { 275 private ComponentName getLegacyAssistComponent(int userHandle) { 286 return new ComponentName( 301 ComponentName comp = getLegacyAssistComponent(userHandle);
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
ChannelTest.java | 19 import android.content.ComponentName; 66 mInvalidIntent.setComponent(new ComponentName(INVALID_TV_INPUT_PACKAGE_NAME, ".test")); 68 mValidIntent.setComponent(new ComponentName(LEANBACK_TV_INPUT_PACKAGE_NAME, ".test")); 71 new ComponentName(LIVE_CHANNELS_PACKAGE_NAME, ".MainActivity")); 74 new ComponentName(LEANBACK_TV_INPUT_PACKAGE_NAME, ".test")); 95 ((ComponentName)invocation.getArguments()[0]).getPackageName()) 98 }).when(mockPackageManager).getActivityInfo(Mockito.<ComponentName>any(), Mockito.anyInt());
|
/frameworks/base/core/java/android/content/pm/ |
IPackageManager.aidl | 20 import android.content.ComponentName; 82 ActivityInfo getActivityInfo(in ComponentName className, int flags, int userId); 84 boolean activitySupportsIntent(in ComponentName className, in Intent intent, 87 ActivityInfo getReceiverInfo(in ComponentName className, int flags, int userId); 89 ServiceInfo getServiceInfo(in ComponentName className, int flags, int userId); 91 ProviderInfo getProviderInfo(in ComponentName className, int flags, int userId); 147 in ComponentName caller, in Intent[] specifics, 213 in ComponentName className, int flags); 251 in IntentFilter filter, int match, in ComponentName activity); 254 in ComponentName[] set, in ComponentName activity, int userId) [all...] |
/frameworks/base/services/core/java/com/android/server/firewall/ |
IntentFirewall.java | 20 import android.content.ComponentName; 133 public boolean checkService(ComponentName resolvedService, Intent intent, int callerUid, 145 public boolean checkIntent(FirewallIntentResolver resolver, ComponentName resolvedComponent, 187 ComponentName cn = intent.getComponent(); 423 private final ArrayList<ComponentName> mComponentFilters = new ArrayList<ComponentName>(0); 451 ComponentName componentName = ComponentName.unflattenFromString(componentStr); 452 if (componentName == null) [all...] |
/frameworks/base/test-runner/src/android/test/mock/ |
MockPackageManager.java | 22 import android.content.ComponentName; 168 public ActivityInfo getActivityInfo(ComponentName className, int flags) 174 public ActivityInfo getReceiverInfo(ComponentName className, int flags) 180 public ServiceInfo getServiceInfo(ComponentName className, int flags) 186 public ProviderInfo getProviderInfo(ComponentName className, int flags) 377 public List<ResolveInfo> queryIntentActivityOptions(ComponentName caller, 438 public InstrumentationInfo getInstrumentationInfo(ComponentName className, int flags) 455 public Drawable getActivityIcon(ComponentName activityName) 471 public Drawable getActivityBanner(ComponentName activityName) 502 public Drawable getActivityLogo(ComponentName activityName) throws NameNotFoundException [all...] |
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
VoiceInteractionManagerService.java | 23 import android.content.ComponentName; 108 ComponentName interactor = mServiceStub.getCurInteractor(userId); 251 ComponentName curRecognizer = getCurRecognizer(userHandle); 301 ComponentName curInteractor = !TextUtils.isEmpty(curInteractorStr) 302 ? ComponentName.unflattenFromString(curInteractorStr) : null; 326 setCurInteractor(new ComponentName(curInteractorInfo.getServiceInfo().packageName, 330 new ComponentName(curInteractorInfo.getServiceInfo().packageName, 388 ComponentName serviceComponent = null; 392 serviceComponent = ComponentName.unflattenFromString(curService); 438 ComponentName comp = new ComponentName(cur.packageName, cur.name) [all...] |
/cts/hostsidetests/services/activitymanager/src/android/server/cts/ |
ActivityAndWindowManagersState.java | 273 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); 274 assertEquals(msg, componentName, mAmState.getFocusedActivity()); 275 assertEquals(msg, componentName, mWmState.getFocusedApp()); 279 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); 280 if (mAmState.getFocusedActivity().equals(componentName)) { 281 failNotEquals(msg, mAmState.getFocusedActivity(), componentName); 283 if (mWmState.getFocusedApp().equals(componentName)) { 284 failNotEquals(msg, mWmState.getFocusedApp(), componentName); 289 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); 290 assertEquals(msg, componentName, mAmState.getResumedActivity()) [all...] |
/cts/hostsidetests/services/windowmanager/src/android/wm/cts/ |
CrossAppDragAndDropTests.java | 116 private String getStartCommand(String componentName, String modeExtra) { 117 return AM_START_N + componentName + " -e mode " + modeExtra; 141 final String componentName = getComponentName(mSourcePackageName, SOURCE_ACTIVITY_NAME); 142 executeShellCommand(getStartCommand(componentName, null) + " --stack " + 144 final int taskId = getActivityTaskId(componentName); 160 final String componentName = getComponentName(packageName, activityName); 161 executeShellCommand(getStartCommand(componentName, mode) + " --stack " + DOCKED_STACK_ID); 168 final String componentName = getComponentName(packageName, activityName); 169 executeShellCommand(getStartCommand(componentName, mode) + " --stack "
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ApplicationTest.java | 6 import android.content.ComponentName; 114 ComponentName expectedComponentName = new ComponentName("", ""); 133 ComponentName expectedComponentName = new ComponentName("", ""); 148 ComponentName expectedComponentName = new ComponentName("", ""); 162 ComponentName expectedComponentName = new ComponentName("", "");
|
/frameworks/support/media-compat/java/android/support/v4/media/session/ |
MediaButtonReceiver.java | 22 import android.content.ComponentName; 104 ComponentName componentName = new ComponentName(resolveInfo.serviceInfo.packageName, 106 intent.setComponent(componentName); 170 ComponentName mbrComponent = getMediaButtonReceiverComponent(context); 202 ComponentName mbrComponent, @MediaKeyAction long action) { 219 static ComponentName getMediaButtonReceiverComponent(Context context) { 226 return new ComponentName(resolveInfo.activityInfo.packageName,
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
DeviceAdminTestReceiver.java | 21 import android.content.ComponentName; 42 private static final ComponentName RECEIVER_COMPONENT_NAME = new ComponentName( 45 public static ComponentName getReceiverComponentName() { 78 dpm.setProfileEnabled(new ComponentName(context.getApplicationContext(), getClass()));
|
/cts/hostsidetests/devicepolicy/app/AppRestrictionsManagingApp/src/com/android/cts/apprestrictions/managingapp/ |
ApplicationRestrictionsManagerTest.java | 20 import android.content.ComponentName; 35 * via {@link DevicePolicyManager#setApplicationRestrictionsManagingPackage(ComponentName, String)} 46 private static final ComponentName TEST_COMPONENT_NAME = new ComponentName( 183 .setComponent(new ComponentName(
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
SupportMessageTest.java | 27 * {@link DevicePolicyManager#setShortSupportMessage(android.content.ComponentName, String)}. 116 fail("Exception should have been thrown for null admin ComponentName"); 121 fail("Exception should have been thrown for null admin ComponentName"); 128 fail("Exception should have been thrown for null admin ComponentName"); 134 fail("Exception should have been thrown for null admin ComponentName");
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
BaseDevicePolicyTest.java | 389 protected boolean setProfileOwner(String componentName, int userId, boolean expectFailure) 391 String command = "dpm set-profile-owner --user " + userId + " '" + componentName + "'"; 404 protected void setProfileOwnerOrFail(String componentName, int userId) 406 if (!setProfileOwner(componentName, userId, /*expectFailure*/ false)) { 412 private String setDeviceAdminInner(String componentName, int userId) 414 String command = "dpm set-active-admin --user " + userId + " '" + componentName + "'"; 419 protected void setDeviceAdmin(String componentName, int userId) 421 String commandOutput = setDeviceAdminInner(componentName, userId); 428 protected void setDeviceAdminExpectingFailure(String componentName, int userId, 430 String commandOutput = setDeviceAdminInner(componentName, userId) [all...] |
/cts/tests/tests/tv/src/android/media/tv/cts/ |
TvInputManagerTest.java | 19 import android.content.ComponentName; 167 ComponentName component = new ComponentName(getActivity(), StubTvInputService2.class); 215 new ComponentName(getActivity(), StubTunerTvInputService.class)).build(); 217 new ComponentName(getActivity(), StubTunerTvInputService.class))
|
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
ComplicationSimpleConfigActivity.java | 19 import android.content.ComponentName; 87 ComponentName watchFace = new ComponentName( 119 ComponentName watchFace; 125 public ComplicationItem(ComponentName watchFace, int complicationId, int[] supportedTypes,
|
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
ComplicationSimpleConfigActivity.java | 19 import android.content.ComponentName; 87 ComponentName watchFace = new ComponentName( 119 ComponentName watchFace; 125 public ComplicationItem(ComponentName watchFace, int complicationId, int[] supportedTypes,
|