/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ |
D | BindDeviceAdminServiceGoodSetupTest.java | 112 final Intent serviceIntent = new Intent(mContext, UnprotectedCrossUserService.class); in testCannotBind_unprotectedCrossUserService() local 115 bind(serviceIntent, EMPTY_SERVICE_CONNECTION, targetUser); in testCannotBind_unprotectedCrossUserService() 128 final Intent serviceIntent = new Intent(); in testCheckCannotBind_nonManagingPackage() local 129 serviceIntent.setClassName(NON_MANAGING_PACKAGE, ProtectedCrossUserService.class.getName()); in testCheckCannotBind_nonManagingPackage() 132 bind(serviceIntent, EMPTY_SERVICE_CONNECTION, targetUser); in testCheckCannotBind_nonManagingPackage() 145 final Intent serviceIntent = new Intent(mContext, ProtectedCrossUserService.class); in testCannotBind_sameUser() local 146 bind(serviceIntent, EMPTY_SERVICE_CONNECTION, Process.myUserHandle()); in testCannotBind_sameUser() 202 final Intent serviceIntent = new Intent(mContext, ProtectedCrossUserService.class); in assertCrossProfileCall() local 203 assertTrue(bind(serviceIntent, serviceConnection, targetUserHandle)); in assertCrossProfileCall() 217 private boolean bind(Intent serviceIntent, ServiceConnection serviceConnection, in bind() argument [all …]
|
D | BindDeviceAdminServiceFailsTest.java | 68 final Intent serviceIntent = new Intent(); in checkCannotBind() local 69 … serviceIntent.setClassName(targetPackageName, ProtectedCrossUserService.class.getName()); in checkCannotBind() 70 bind(serviceIntent, EMPTY_SERVICE_CONNECTION, otherProfile); in checkCannotBind() 78 private boolean bind(Intent serviceIntent, ServiceConnection serviceConnection, in bind() argument 81 serviceIntent, serviceConnection, Context.BIND_AUTO_CREATE, userHandle); in bind()
|
/cts/apps/ForceStopHelperApp/src/com/android/cts/forcestophelper/ |
D | RecentTaskActivity.java | 37 final Intent serviceIntent = new Intent(); in onCreate() local 38 serviceIntent.setClass(this, TaskRemovedListenerService.class); in onCreate() 40 serviceIntent.putExtras(extras); in onCreate() 42 startService(serviceIntent); in onCreate()
|
/cts/hostsidetests/devicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/ |
D | SimpleReceiverStartService.java | 27 Intent serviceIntent = intent.getParcelableExtra("service"); in onReceive() local 29 context.startService(serviceIntent); in onReceive()
|
D | SimpleActivityStartService.java | 48 Intent serviceIntent = getIntent().getParcelableExtra("service"); in attemptStartService() local 50 startService(serviceIntent); in attemptStartService()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | IsolatedProcessTest.java | 71 Intent serviceIntent = new Intent(mContext, IsolatedService.class); in setUp() local 72 mContext.bindService(serviceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in setUp()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerProcessStateTest.java | 408 Intent serviceIntent = new Intent(); in testBackgroundCheckService() local 409 serviceIntent.setClassName(SIMPLE_PACKAGE_NAME, in testBackgroundCheckService() 411 ServiceConnectionHandler conn = new ServiceConnectionHandler(mContext, serviceIntent, in testBackgroundCheckService() 439 mContext.stopService(serviceIntent); in testBackgroundCheckService() 479 mContext.startService(serviceIntent); in testBackgroundCheckService() 493 mContext.startService(serviceIntent); in testBackgroundCheckService() 502 mContext.stopService(serviceIntent); in testBackgroundCheckService() 524 mContext.startService(serviceIntent); in testBackgroundCheckService() 537 mContext.startService(serviceIntent); in testBackgroundCheckService() 544 mContext.stopService(serviceIntent); in testBackgroundCheckService() [all …]
|
D | NotificationManagerTest.java | 2468 Intent serviceIntent = new Intent(mContext, BubblesTestService.class); in testNotificationManagerBubblePolicy_flagForPhonecall() local 2469 serviceIntent.putExtra(EXTRA_TEST_CASE, TEST_SUCCESS); in testNotificationManagerBubblePolicy_flagForPhonecall() 2474 mContext.startService(serviceIntent); in testNotificationManagerBubblePolicy_flagForPhonecall() 2483 mContext.stopService(serviceIntent); in testNotificationManagerBubblePolicy_flagForPhonecall() 2491 Intent serviceIntent = new Intent(mContext, BubblesTestService.class); in testNotificationManagerBubblePolicy_flagForPhonecallFailsNoPerson() local 2492 serviceIntent.putExtra(EXTRA_TEST_CASE, TEST_NO_PERSON); in testNotificationManagerBubblePolicy_flagForPhonecallFailsNoPerson() 2497 mContext.startService(serviceIntent); in testNotificationManagerBubblePolicy_flagForPhonecallFailsNoPerson() 2505 mContext.stopService(serviceIntent); in testNotificationManagerBubblePolicy_flagForPhonecallFailsNoPerson() 2535 Intent serviceIntent = new Intent(mContext, BubblesTestService.class); in testNotificationManagerBubblePolicy_flagForPhonecallFailsNoCategory() local 2536 serviceIntent.putExtra(EXTRA_TEST_CASE, TEST_NO_CATEGORY); in testNotificationManagerBubblePolicy_flagForPhonecallFailsNoCategory() [all …]
|
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/ |
D | MyBroadcastReceiver.java | 202 final Intent serviceIntent = new Intent(context, MyService.class); in sendNotification() local 203 final PendingIntent pendingIntent = PendingIntent.getService(context, 0, serviceIntent, in sendNotification()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | DeviceAdminTestReceiver.java | 236 final Intent serviceIntent = new Intent(context, PrimaryUserService.class); in bindPrimaryUserService() local 237 devicePolicyManager.bindDeviceAdminServiceAsUser(getReceiverComponentName(), serviceIntent, in bindPrimaryUserService() local
|
/cts/tests/tests/content/src/android/content/cts/ |
D | BroadcastReceiverTest.java | 106 Intent serviceIntent = new Intent(context, MockService.class); in onReceive() local 107 mIBinder = peekService(context, serviceIntent); in onReceive()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSession2ServiceTest.java | 389 Intent serviceIntent = new Intent(MediaSession2Service.SERVICE_INTERFACE); in testOnBind() local 390 assertNotNull(service.onBind(serviceIntent)); in testOnBind()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | CreateAndManageUserTest.java | 545 final Intent serviceIntent = new Intent(context, PrimaryUserService.class); in pingTargetUser() local 548 serviceIntent, in pingTargetUser() local
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 147 Intent serviceIntent = new Intent(SERVICE_ACTION_NAME); in testQuery() local 148 List<ResolveInfo> services = mPackageManager.queryIntentServices(serviceIntent, in testQuery()
|