/cts/hostsidetests/content/test-apps/ContextCrossProfileApps/ContextCrossProfileApp/src/com/android/cts/context/ |
D | ContextCrossProfileDeviceTest.java | 91 Intent bindIntent = new Intent(); in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() local 92 bindIntent.setComponent(TEST_SERVICE_IN_DIFFERENT_PKG_COMPONENT_NAME); in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() 95 bindIntent, new ContextCrossProfileTestConnection(), in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() 99 bindIntent, new ContextCrossProfileTestConnection(), Context.BIND_AUTO_CREATE)) in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() 111 Intent bindIntent = new Intent(); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService() local 112 bindIntent.setComponent(TEST_SERVICE_IN_SAME_PKG_COMPONENT_NAME); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService() 115 bindIntent, new ContextCrossProfileTestConnection(), in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService() 127 Intent bindIntent = new Intent(); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossUsersPermission_bindsService() local 128 bindIntent.setComponent(TEST_SERVICE_IN_DIFFERENT_PKG_COMPONENT_NAME); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossUsersPermission_bindsService() 131 bindIntent, new ContextCrossProfileTestConnection(), in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossUsersPermission_bindsService() [all …]
|
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/ |
D | TestAppBinder.java | 57 Intent bindIntent = new Intent(); in tryBind() local 58 bindIntent.setComponent(new ComponentName( in tryBind() 62 Log.i(LOG_TAG, "Attempting to bind to " + bindIntent); in tryBind() 66 return context.bindServiceAsUser(bindIntent, in tryBind() 79 return context.bindServiceAsUser(bindIntent, in tryBind()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | Api29InCallUtils.java | 24 Intent bindIntent = new Intent(CtsApi29InCallServiceControl.CONTROL_INTERFACE_ACTION); in setupControl() local 30 bindIntent.setComponent(controlComponentName); in setupControl() 45 boolean success = context.bindService(bindIntent, in setupControl()
|
D | ThirdPartyInCallServiceTest.java | 99 Intent bindIntent = new Intent(CtsThirdPartyInCallServiceControl.CONTROL_INTERFACE_ACTION); in setUpControl() local 106 bindIntent.setComponent(controlComponentName); in setUpControl() 108 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in setUpControl()
|
D | NonUiInCallServiceWoExportTest.java | 125 final Intent bindIntent = new Intent( in setUpControlForBindingInterface() local 144 bindIntent.setComponent(mControlComponentName); in setUpControlForBindingInterface() 146 if (!mContext.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE)) { in setUpControlForBindingInterface()
|
D | ThirdPartyInCallServiceAppOpsPermissionTest.java | 220 Intent bindIntent = new Intent(CtsThirdPartyInCallServiceControl.CONTROL_INTERFACE_ACTION); in setUpControl() local 227 bindIntent.setComponent(controlComponentName); in setUpControl() 229 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in setUpControl()
|
D | CallStreamingTest.java | 235 Intent bindIntent = new Intent( in getControlBinder() local 238 bindIntent.setPackage(CALL_STREAMING_PACKAGE_NAME); in getControlBinder() 241 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in getControlBinder()
|
D | CallRedirectionServiceTest.java | 270 Intent bindIntent = new Intent(interfaceAction); in setupControlBinder() local 271 bindIntent.setComponent(interfaceComponentName); in setupControlBinder() 274 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in setupControlBinder()
|
D | CarModeInCallServiceTest.java | 759 Intent bindIntent = new Intent( in getControlBinder() local 762 bindIntent.setPackage(packageName); in getControlBinder() 765 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in getControlBinder()
|
D | ThirdPartyCallScreeningServiceTest.java | 543 Intent bindIntent = new Intent(CallScreeningServiceControl.CONTROL_INTERFACE_ACTION); in setupControlBinder() local 544 bindIntent.setComponent(CallScreeningServiceControl.CONTROL_INTERFACE_COMPONENT); in setupControlBinder() 547 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in setupControlBinder()
|
D | SelfManagedConnectionTest.java | 664 Intent bindIntent = new Intent(action); in setUpControl() local 665 bindIntent.setComponent(componentName); in setUpControl() 668 mContext.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE); in setUpControl()
|
D | PhoneAccountRegistrarTest.java | 860 Intent bindIntent = new Intent(action); in setUpControl() local 861 bindIntent.setComponent(componentName); in setUpControl() 865 mContext.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE); in setUpControl()
|
D | SelfManagedConnectionServiceTest.java | 187 Intent bindIntent = new Intent(action); in setUpControl() local 188 bindIntent.setComponent(componentName); in setUpControl() 191 mContext.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE); in setUpControl()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyLocationTests.java | 293 Intent bindIntent = new Intent(CtsLocationAccessService.CONTROL_ACTION); in getLocationAccessAppControl() local 294 bindIntent.setComponent(new ComponentName( in getLocationAccessAppControl() 298 return bindLocationAccessControl(bindIntent); in getLocationAccessAppControl() 302 Intent bindIntent = new Intent(CtsLocationAccessService.CONTROL_ACTION); in getLocationAccessAppControlSdk28() local 303 bindIntent.setComponent(new ComponentName( in getLocationAccessAppControlSdk28() 307 return bindLocationAccessControl(bindIntent); in getLocationAccessAppControlSdk28() 310 private ICtsLocationAccessControl bindLocationAccessControl(Intent bindIntent) { in bindLocationAccessControl() argument 313 InstrumentationRegistry.getContext().bindService(bindIntent, new ServiceConnection() { in bindLocationAccessControl() 365 Intent bindIntent = new Intent(CtsLocationAccessService.CONTROL_ACTION); in withRevokedPermission() local 366 bindIntent.setComponent(new ComponentName(packageName, in withRevokedPermission() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/ |
D | MbmsStreamingTestBase.java | 169 Intent bindIntent = new Intent(CtsStreamingService.CONTROL_INTERFACE_ACTION); in getControlBinder() local 170 bindIntent.setComponent(CtsStreamingService.CONTROL_INTERFACE_COMPONENT); in getControlBinder() 173 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in getControlBinder()
|
D | MbmsDownloadTestBase.java | 189 Intent bindIntent = new Intent(CtsDownloadService.CONTROL_INTERFACE_ACTION); in getControlBinder() local 190 bindIntent.setComponent(CtsDownloadService.CONTROL_INTERFACE_COMPONENT); in getControlBinder() 193 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in getControlBinder()
|
D | MbmsGroupCallTestBase.java | 200 Intent bindIntent = new Intent(CtsGroupCallService.CONTROL_INTERFACE_ACTION); in getControlBinder() local 201 bindIntent.setComponent(CtsGroupCallService.CONTROL_INTERFACE_COMPONENT); in getControlBinder() 204 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in getControlBinder()
|
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | BindUtils.java | 151 Intent bindIntent = new Intent(getBindActionFromApplicationName(application)); in createBindIntentForApplication() local 152 bindIntent.setPackage(getPackageNameFromApplicationName(application)); in createBindIntentForApplication() 153 return bindIntent; in createBindIntentForApplication()
|
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/ |
D | BackgroundActivityTestBase.java | 460 Intent bindIntent = new Intent(); in getTestService() local 461 bindIntent.setComponent(componentName); in getTestService() 464 boolean success = mContext.bindService(bindIntent, futureConnection, in getTestService()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | CommandReceiver.java | 295 Intent bindIntent = new Intent(); in doBindService() local 296 bindIntent.setComponent(new ComponentName(targetPackage, serviceName)); in doBindService() 300 context.bindService(bindIntent, connection, flags | Context.BIND_AUTO_CREATE); in doBindService()
|