Home
last modified time | relevance | path

Searched refs:ComponentName (Results 1 – 25 of 58) sorted by relevance

123

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowDevicePolicyManager.java23 import android.content.ComponentName;
60 private ComponentName deviceOwner;
61 private ComponentName profileOwner;
62 private List<ComponentName> deviceAdmins = new ArrayList<>();
92 private final Map<ComponentName, byte[]> passwordResetTokens = new HashMap<>();
93 private final Set<ComponentName> componentsWithActivatedTokens = new HashSet<>();
167 protected boolean isAdminActive(ComponentName who) { in isAdminActive()
172 protected List<ComponentName> getActiveAdmins() { in getActiveAdmins()
177 protected void addUserRestriction(ComponentName admin, String key) { in addUserRestriction()
183 protected void clearUserRestriction(ComponentName admin, String key) { in clearUserRestriction()
[all …]
DShadowAppWidgetManager.java9 import android.content.ComponentName;
77 protected int[] getAppWidgetIds(ComponentName provider) { in getAppWidgetIds()
120 public void bindAppWidgetId(int appWidgetId, ComponentName provider) { in bindAppWidgetId()
131 protected boolean bindAppWidgetIdIfAllowed(int appWidgetId, ComponentName provider) { in bindAppWidgetIdIfAllowed()
238 final ComponentName providerComponent;
247 providerComponent = new ComponentName(packageName, className); in WidgetInfo()
250 public WidgetInfo(ComponentName providerComponent) { in WidgetInfo()
DShadowApplicationPackageManager.java33 import android.content.ComponentName;
155 protected ActivityInfo getActivityInfo(ComponentName component, int flags) in getActivityInfo()
198 protected int getComponentEnabledSetting(ComponentName componentName) { in getComponentEnabledSetting()
237 protected ProviderInfo getProviderInfo(ComponentName component, int flags) in getProviderInfo()
256 protected void setComponentEnabledSetting(ComponentName componentName, int newState, int flags) { in setComponentEnabledSetting()
267 HashSet<ComponentName> preferredComponents = new HashSet<>(); in resolveActivity()
269 for (Entry<IntentFilterWrapper, ComponentName> preferred : preferredActivities.entrySet()) { in resolveActivity()
403 ComponentName componentName = in filterResolvedComponent()
404 new ComponentName(componentInfo.applicationInfo.packageName, componentInfo.name); in filterResolvedComponent()
479 ComponentName component = getComponentForIntent(intent); in resolveActivityForExplicitIntent()
[all …]
DShadowPackageManager.java38 import android.content.ComponentName;
114 static final Map<ComponentName, ComponentState> componentList = new LinkedHashMap<>();
115 static final Map<ComponentName, Drawable> drawableList = new LinkedHashMap<>();
119 static final Map<IntentFilterWrapper, ComponentName> preferredActivities = new LinkedHashMap<>();
220 static String resolvePackageName(String packageName, ComponentName componentName) { in resolvePackageName()
357 public void addActivityIcon(ComponentName component, Drawable drawable) { in addActivityIcon()
380 public int getComponentEnabledSettingFlags(ComponentName componentName) { in getComponentEnabledSettingFlags()
844 ComponentName component1 = i1.getComponent(); in compare()
845 ComponentName component2 = i2.getComponent(); in compare()
972 private final HashSet<ComponentName> preferredComponents;
[all …]
DShadowSearchManager.java5 import android.content.ComponentName;
13 protected SearchableInfo getSearchableInfo(ComponentName componentName) { in getSearchableInfo()
/external/sl4a/Common/src/com/googlecode/android_scripting/
DConstants.java19 import android.content.ComponentName;
88 ComponentName SL4A_SERVICE_COMPONENT_NAME = new ComponentName(
91 ComponentName SL4A_SERVICE_LAUNCHER_COMPONENT_NAME = new ComponentName(
94 ComponentName BLUETOOTH_DEVICE_LIST_COMPONENT_NAME = new ComponentName(
97 ComponentName TRIGGER_SERVICE_COMPONENT_NAME = new ComponentName(
DIntentBuilders.java20 import android.content.ComponentName;
51 final ComponentName componentName = Constants.SL4A_SERVICE_LAUNCHER_COMPONENT_NAME; in buildStartInBackgroundIntent()
67 final ComponentName componentName = Constants.SL4A_SERVICE_LAUNCHER_COMPONENT_NAME; in buildStartInTerminalIntent()
83 final ComponentName componentName = Constants.SL4A_SERVICE_LAUNCHER_COMPONENT_NAME; in buildStartInterpreterIntent()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowJobSchedulerTest.java13 import android.content.ComponentName;
39 new JobInfo.Builder(99, new ComponentName(context, "component_class_name")) in getAllPendingJobs()
50 new JobInfo.Builder(99, new ComponentName(context, "component_class_name")) in cancelAll()
54 new JobInfo.Builder(33, new ComponentName(context, "component_class_name")) in cancelAll()
68 new JobInfo.Builder(99, new ComponentName(context, "component_class_name")) in cancelSingleJob()
82 new JobInfo.Builder(99, new ComponentName(context, "component_class_name")) in cancelNonExistentJob()
97 new JobInfo.Builder(99, new ComponentName(context, "component_class_name")) in schedule_success()
109 new JobInfo.Builder(99, new ComponentName(context, "component_class_name")) in schedule_fail()
121 new JobInfo.Builder(jobId, new ComponentName(context, "component_class_name")) in getPendingJob_withValidId()
138 new JobInfo.Builder(jobId, new ComponentName(context, "component_class_name")) in getPendingJob_withInvalidId()
[all …]
DShadowApplicationTest.java21 import android.content.ComponentName;
198 ComponentName expectedComponentName = new ComponentName("", ""); in bindServiceShouldCallOnServiceConnectedWithDefaultValues()
221 ComponentName expectedComponentName = new ComponentName("", ""); in bindServiceShouldCallOnServiceConnectedWhenNotPaused()
243 ComponentName expectedComponentName = new ComponentName("", ""); in unbindServiceShouldCallOnServiceDisconnectedWhenNotPaused()
261 ComponentName expectedComponentName = new ComponentName("", ""); in unbindServiceAddsEntryToUnboundServicesCollection()
276 ComponentName expectedComponentName = new ComponentName("", ""); in declaringServiceUnbindableMakesBindServiceReturnFalse()
292 ComponentName expectedComponentNameOne = new ComponentName("package", "one"); in bindServiceWithMultipleIntentsMapping()
295 ComponentName expectedComponentNameTwo = new ComponentName("package", "two"); in bindServiceWithMultipleIntentsMapping()
312 ComponentName expectedComponentNameOne = new ComponentName("package", "one"); in bindServiceWithMultipleIntentsMappingWithDefault()
315 ComponentName expectedComponentNameTwo = new ComponentName("package", "two"); in bindServiceWithMultipleIntentsMappingWithDefault()
[all …]
DTestService.java4 import android.content.ComponentName;
10 ComponentName name;
12 ComponentName nameUnbound;
20 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected()
26 public void onServiceDisconnected(ComponentName name) { in onServiceDisconnected()
DShadowAppWidgetManagerTest.java14 import android.content.ComponentName;
93 new ComponentName( in getAppWidgetIds()
113 …assertEquals(shadowAppWidgetManager.bindAppWidgetIdIfAllowed(12345, new ComponentName("", "")), fa… in bindAppWidgetIdIfAllowed_shouldReturnThePresetBoolean()
115 …assertEquals(shadowAppWidgetManager.bindAppWidgetIdIfAllowed(12345, new ComponentName("", "")), tr… in bindAppWidgetIdIfAllowed_shouldReturnThePresetBoolean()
120 ComponentName provider = new ComponentName("A", "B"); in bindAppWidgetIdIfAllowed_shouldRecordTheBinding()
127 ComponentName provider = new ComponentName("abc", "123"); in bindAppWidgetId_shouldRecordAppWidgetInfo()
140 shadowAppWidgetManager.bindAppWidgetIdIfAllowed(12345, new ComponentName("", "")); in bindAppWidgetIdIfAllowed_shouldThrowIllegalArgumentExceptionWhenPrompted()
DShadowActivityManagerTest.java13 import android.content.ComponentName;
57 …final ActivityManager.RunningTaskInfo task1 = buildTaskInfo(new ComponentName("org.robolectric", "… in getRunningTasks_shouldReturnTaskList()
58 …final ActivityManager.RunningTaskInfo task2 = buildTaskInfo(new ComponentName("org.robolectric", "… in getRunningTasks_shouldReturnTaskList()
80 …final ActivityManager.RunningAppProcessInfo process1 = buildProcessInfo(new ComponentName("org.rob… in getRunningAppProcesses_shouldReturnProcessList()
81 …final ActivityManager.RunningAppProcessInfo process2 = buildProcessInfo(new ComponentName("org.rob… in getRunningAppProcesses_shouldReturnProcessList()
99 …final ActivityManager.RunningServiceInfo service1 = buildServiceInfo(new ComponentName("org.robole… in getRunningServices_shouldReturnServiceList()
100 …final ActivityManager.RunningServiceInfo service2 = buildServiceInfo(new ComponentName("org.robole… in getRunningServices_shouldReturnServiceList()
192 private ActivityManager.RunningTaskInfo buildTaskInfo(ComponentName name) { in buildTaskInfo()
198 private ActivityManager.RunningServiceInfo buildServiceInfo(ComponentName name) { in buildServiceInfo()
204 private ActivityManager.RunningAppProcessInfo buildProcessInfo(ComponentName name) { in buildProcessInfo()
DShadowNotificationManagerTest.java17 import android.content.ComponentName;
169 new ComponentName("pkg", "cls"), in setNotificationPolicyAccessGranted_temporarilyDenyAccess_shouldClearAutomaticZenRules()
199 new ComponentName("pkg", "cls"), in getAutomaticZenRule_nonexistentId_shouldReturnNull()
232 new ComponentName("pkg", "cls"), in addAutomaticZenRule_notificationAccessDenied_shouldThrowSecurityException()
251 new ComponentName("pkg", "cls"), in addAutomaticZenRule_oneRule_shouldAddRuleAndReturnId()
270 new ComponentName("pkg1", "cls1"), in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds()
277 new ComponentName("pkg2", "cls2"), in addAutomaticZenRule_twoRules_shouldAddBothRulesAndReturnDifferentIds()
296 new ComponentName("pkg", "cls"), in updateAutomaticZenRule_notificationAccessDenied_shouldThrowSecurityException()
314 new ComponentName("pkg", "cls"), in updateAutomaticZenRule_nonexistentId_shouldThrowSecurityException()
324 new ComponentName("updated_pkg", "updated_cls"), in updateAutomaticZenRule_nonexistentId_shouldThrowSecurityException()
[all …]
DShadowPackageManagerTest.java48 import android.content.ComponentName;
819 ComponentName componentToDisable = in queryIntentActivities_DisabledComponentExplicitIntent()
820 new ComponentName( in queryIntentActivities_DisabledComponentExplicitIntent()
839 ComponentName componentToDisable = in queryIntentActivities_DisabledComponentImplicitIntent()
840 new ComponentName( in queryIntentActivities_DisabledComponentImplicitIntent()
859 ComponentName componentToDisable = in queryIntentActivities_MatchDisabledComponents()
860 new ComponentName( in queryIntentActivities_MatchDisabledComponents()
930 i.setComponent(new ComponentName("foo.bar", "No Activity")); in resolveActivity_NoMatch()
1151 ComponentName componentToDisable = in queryIntentContentProviders_MatchDisabledComponents()
1152 new ComponentName( in queryIntentContentProviders_MatchDisabledComponents()
[all …]
/external/deqp/android/package/src/com/drawelements/deqp/testercore/
DRemoteAPI.java28 import android.content.ComponentName;
50 private ComponentName getDefaultTesterComponent () { in getDefaultTesterComponent()
51 return new ComponentName(m_context.getPackageName(), "android.app.NativeActivity"); in getDefaultTesterComponent()
54 private ComponentName getTesterComponent (String testerName) { in getTesterComponent()
56 ComponentName component = ComponentName.unflattenFromString(testerName); in getTesterComponent()
70 ComponentName component = getTesterComponent(testerName); in start()
/external/ims/rcs/rcsservice/src/com/android/service/ims/
DLauncherUtils.java33 import android.content.ComponentName;
54 ComponentName comp = new ComponentName(context.getPackageName(), in launchRcsService()
56 ComponentName service = context.startService(new Intent().setComponent(comp)); in launchRcsService()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/
DContentProviderController.java3 import android.content.ComponentName;
29ComponentName componentName = createRelative(baseContext.getPackageName(), contentProvider.getClas… in create()
65 ComponentName componentName = in create()
89 private static ComponentName createRelative(String pkg, String cls) { in createRelative()
98 return new ComponentName(pkg, fullName); in createRelative()
DServiceController.java8 import android.content.ComponentName;
34 ComponentName name = in attach()
35 new ComponentName(context.getPackageName(), component.getClass().getName()); in attach()
DIntentServiceController.java9 import android.content.ComponentName;
35 ComponentName name = in attach()
36 new ComponentName(context.getPackageName(), component.getClass().getName()); in attach()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothMediaFacade.java20 import android.content.ComponentName;
124 ComponentName compName = in BluetoothMediaFacade()
125 new ComponentName(mContext.getPackageName(), this.getClass().getName()); in BluetoothMediaFacade()
298 ComponentName name = in bluetoothMediaPassthrough()
299 new ComponentName(mContext.getPackageName(), in bluetoothMediaPassthrough()
420 ComponentName compName; in bluetoothMediaConnectToCarMBS()
423 compName = new ComponentName(BLUETOOTH_PKG_NAME, BROWSER_SERVICE_NAME); in bluetoothMediaConnectToCarMBS()
/external/setupcompat/main/java/com/google/android/setupcompat/internal/
DSetupCompatServiceProvider.java20 import android.content.ComponentName;
220 public void onServiceConnected(ComponentName componentName, IBinder binder) {
231 public void onServiceDisconnected(ComponentName componentName) {
236 public void onBindingDied(ComponentName name) {
241 public void onNullBinding(ComponentName name) {
/external/javaparser/javaparser-testing/src/test/resources/com/github/javaparser/issue_samples/
Dissue1003.java.txt5 import android.content.ComponentName;
50 ComponentName localComponentName1 = localIntent1.getComponent();
57 for (ComponentName localComponentName2 = paramc.b; ; localComponentName2 = null)
259 private static boolean a(p paramp, ClearTarget paramClearTarget, ComponentName paramComponentName)
481 // 98: invokevirtual 114 android/content/Intent:getComponent ()Landroid/content/ComponentName;
489 // 118: new 121 android/content/ComponentName
495 …// 130: invokespecial 430 android/content/ComponentName:<init> (Ljava/lang/String;Ljava/lang/Str…
496 …// 133: invokevirtual 434 android/content/Intent:setComponent (Landroid/content/ComponentName;)L…
836 … // 973: invokevirtual 114 android/content/Intent:getComponent ()Landroid/content/ComponentName;
837 …/am/p;Lcom/trigtech/privateme/server/am/ActivityStack$ClearTarget;Landroid/content/ComponentName;)Z
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DIntentServiceControllerTest.java7 import android.content.ComponentName;
24 …private final ComponentName componentName = new ComponentName("org.robolectric", MyService.class.g…
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/
DShadowMediaBrowserCompatTest.java8 import android.content.ComponentName;
44 final ComponentName componentName = new ComponentName("a", "b"); in setUp()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DLocalActivityInvoker.java10 import android.content.ComponentName;
191 Intent intent = Intent.makeMainActivity(new ComponentName(getTargetContext(), activityClass)); in getIntentForActivity()
195 return Intent.makeMainActivity(new ComponentName(getContext(), activityClass)); in getIntentForActivity()

123