/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowDevicePolicyManager.java | 24 import android.content.ComponentName; 62 private ComponentName deviceOwner; 63 private ComponentName profileOwner; 64 private List<ComponentName> deviceAdmins = new ArrayList<>(); 94 private final Map<ComponentName, byte[]> passwordResetTokens = new HashMap<>(); 95 private final Set<ComponentName> componentsWithActivatedTokens = new HashSet<>(); 170 protected boolean isAdminActive(ComponentName who) { in isAdminActive() 175 protected List<ComponentName> getActiveAdmins() { in getActiveAdmins() 180 protected void addUserRestriction(ComponentName admin, String key) { in addUserRestriction() 186 protected void clearUserRestriction(ComponentName admin, String key) { in clearUserRestriction() [all …]
|
D | ShadowCrossProfileApps.java | 34 import android.content.ComponentName; 132 protected void startMainActivity(ComponentName componentName, UserHandle targetUser) { in startMainActivity() 149 protected void startActivity(ComponentName componentName, UserHandle targetUser) { in startActivity() 259 private void verifyActivityInManifest(ComponentName component, boolean requireMainActivity) { in verifyActivityInManifest() 381 private final ComponentName componentName; 384 public StartedMainActivity(ComponentName componentName, UserHandle userHandle) { in StartedMainActivity() 389 public ComponentName getComponentName() { in getComponentName() 422 private final ComponentName componentName; 425 public StartedActivity(ComponentName componentName, UserHandle userHandle) { in StartedActivity() 430 public ComponentName getComponentName() { in getComponentName()
|
D | ShadowAppWidgetManager.java | 9 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()
|
D | ShadowActivityThread.java | 6 import android.content.ComponentName; 59 ComponentName className = (ComponentName) args[0]; in getPackageManager() 70 ComponentName className = (ComponentName) args[0]; in getPackageManager()
|
D | ShadowApplicationPackageManager.java | 35 import android.content.ComponentName; 176 protected ActivityInfo getActivityInfo(ComponentName component, int flags) in getActivityInfo() 219 protected int getComponentEnabledSetting(ComponentName componentName) { in getComponentEnabledSetting() 258 protected ProviderInfo getProviderInfo(ComponentName component, int flags) in getProviderInfo() 277 protected void setComponentEnabledSetting(ComponentName componentName, int newState, int flags) { in setComponentEnabledSetting() 288 HashSet<ComponentName> preferredComponents = new HashSet<>(); in resolveActivity() 290 for (Entry<IntentFilterWrapper, ComponentName> preferred : preferredActivities.entrySet()) { in resolveActivity() 424 ComponentName componentName = in filterResolvedComponent() 425 new ComponentName(componentInfo.applicationInfo.packageName, componentInfo.name); in filterResolvedComponent() 500 ComponentName component = getComponentForIntent(intent); in resolveActivityForExplicitIntent() [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/ |
D | Constants.java | 19 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(
|
D | IntentBuilders.java | 20 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/llvm-project/clang-tools-extra/clangd/support/ |
D | MemoryTree.cpp | 12 size_t traverseTree(const MemoryTree &MT, std::string &ComponentName, in traverseTree() argument 14 size_t OriginalLen = ComponentName.size(); in traverseTree() 15 if (!ComponentName.empty()) in traverseTree() 16 ComponentName += '.'; in traverseTree() 19 ComponentName += Entry.first; in traverseTree() 20 Total += traverseTree(Entry.getSecond(), ComponentName, Out); in traverseTree() 21 ComponentName.resize(OriginalLen + 1); in traverseTree() 23 ComponentName.resize(OriginalLen); in traverseTree() 24 Out.record(Total, ComponentName); in traverseTree()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowCrossProfileAppsTest.java | 15 import android.content.ComponentName; 153 ComponentName component = in startMainActivity_launcherActivityInManifest_shouldSucceed() 154 ComponentName.createRelative(application, ".shadows.TestActivityAlias"); in startMainActivity_launcherActivityInManifest_shouldSucceed() 169 ComponentName component = in startMainActivity_launcherActivityInManifest_withoutCrossProfilePermission_shouldSucceed() 170 ComponentName.createRelative(application, ".shadows.TestActivityAlias"); in startMainActivity_launcherActivityInManifest_withoutCrossProfilePermission_shouldSucceed() 183 ComponentName component = in startMainActivity_launcherActivityInManifest_shouldStillAddStartedMainActivity() 184 ComponentName.createRelative(application, ".shadows.TestActivityAlias"); in startMainActivity_launcherActivityInManifest_shouldStillAddStartedMainActivity() 198 ComponentName component = ComponentName.createRelative(application, ".shadows.TestActivity"); in startMainActivity_nonLauncherActivityInManifest_shouldThrowSecurityException() 206 ComponentName component = in startMainActivity_nonExistentActivity_shouldThrowSecurityException() 207 ComponentName.createRelative(application, ".shadows.FakeTestActivity"); in startMainActivity_nonExistentActivity_shouldThrowSecurityException() [all …]
|
D | ShadowJobSchedulerTest.java | 13 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 …]
|
D | TestService.java | 4 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()
|
D | ShadowApplicationTest.java | 21 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 …]
|
D | ShadowAppWidgetManagerTest.java | 14 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()
|
D | ShadowActivityManagerTest.java | 13 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()
|
D | ShadowNotificationManagerTest.java | 17 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 …]
|
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/testing/ |
D | FakeContextBuilder.java | 24 import android.content.ComponentName; 44 public static final ComponentName DEFAULT_COMPONENT = new ComponentName("pkg", "cls"); 48 private final Map<String, ComponentName> components = new HashMap<>(); 50 @Nullable private ComponentName allIntentComponent; 70 String intentAction, @Nullable ComponentName component) { in setIntentComponent() 88 public FakeContextBuilder setAllIntentComponent(@Nullable ComponentName component) { in setAllIntentComponent() 100 final ComponentName component = in build() 115 public static ComponentName newComponent() { in newComponent() 116 return new ComponentName(UUID.randomUUID().toString(), UUID.randomUUID().toString()); in newComponent() 119 private static ResolveInfo getResolveInfo(ComponentName component) { in getResolveInfo()
|
/external/deqp/android/package/src/com/drawelements/deqp/testercore/ |
D | RemoteAPI.java | 28 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/ |
D | LauncherUtils.java | 31 import android.content.ComponentName; 53 ComponentName comp = new ComponentName(context.getPackageName(), in launchRcsService() 55 ComponentName service = context.startService(new Intent().setComponent(comp)); in launchRcsService()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/ |
D | ContentProviderController.java | 3 import android.content.ComponentName; 29 …ComponentName 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()
|
/external/setupcompat/main/java/com/google/android/setupcompat/portal/ |
D | PortalHelper.java | 19 import android.content.ComponentName; 90 public void onServiceConnected(ComponentName name, IBinder binder) { in registerProgressService() 133 public void onServiceDisconnected(ComponentName name) { in registerProgressService() 149 public void onServiceConnected(ComponentName name, IBinder binder) { in isPortalAvailable() 165 public void onServiceDisconnected(ComponentName name) {} in isPortalAvailable() 187 public void onServiceConnected(ComponentName name, IBinder binder) { in isProgressServiceAlive() 209 public void onServiceDisconnected(ComponentName name) {} in isProgressServiceAlive()
|
/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/ |
D | DpcProfileBinder.java | 22 import android.content.ComponentName; 34 private final ComponentName deviceAdminReceiver; 36 public DpcProfileBinder(ComponentName deviceAdminReceiver) { in DpcProfileBinder() 46 ComponentName bindToService, in tryBind()
|
/external/libchrome/base/android/junit/src/org/chromium/base/process_launcher/ |
D | ChildConnectionAllocatorTest.java | 23 import android.content.ComponentName; 58 private ComponentName mLastServiceName; 65 public ChildProcessConnection createConnection(Context context, ComponentName serviceName, in createConnection() 85 public ComponentName getAndResetLastServiceName() { in getAndResetLastServiceName() 86 ComponentName serviceName = mLastServiceName; in getAndResetLastServiceName() 162 Set<ComponentName> serviceNames = new HashSet<>(); in testAllocateMaxNumber() 167 ComponentName serviceName = mTestConnectionFactory.getAndResetLastServiceName(); in testAllocateMaxNumber() 286 ComponentName serviceName = mTestConnectionFactory.getAndResetLastServiceName(); in testFreeConnection()
|
/external/libchrome/base/android/java/src/org/chromium/base/process_launcher/ |
D | ChildConnectionAllocator.java | 7 import android.content.ComponentName; 34 ChildProcessConnection createConnection(Context context, ComponentName serviceName, in createConnection() 41 public ChildProcessConnection createConnection(Context context, ComponentName serviceName, in createConnection() 101 new ComponentName(packageName, serviceClassName + "0"), 0); in create() 152 ComponentName serviceName = new ComponentName(mPackageName, mServiceClassName + slot); in allocate()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/scheduler/ |
D | PlatformScheduler.java | 22 import android.content.ComponentName; 55 private final ComponentName jobServiceComponentName; 69 jobServiceComponentName = new ComponentName(context, PlatformSchedulerService.class); in PlatformScheduler() 93 ComponentName jobServiceComponentName, in buildJobInfo()
|
/external/setupcompat/main/java/com/google/android/setupcompat/internal/ |
D | SetupCompatServiceProvider.java | 20 import android.content.ComponentName; 216 public void onServiceConnected(ComponentName componentName, IBinder binder) { 227 public void onServiceDisconnected(ComponentName componentName) { 232 public void onBindingDied(ComponentName name) { 237 public void onNullBinding(ComponentName name) {
|