Home
last modified time | relevance | path

Searched refs:bindIntent (Results 1 – 20 of 20) sorted by relevance

/cts/hostsidetests/content/test-apps/ContextCrossProfileApps/ContextCrossProfileApp/src/com/android/cts/context/
DContextCrossProfileDeviceTest.java91 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/
DTestAppBinder.java57 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/
DApi29InCallUtils.java24 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()
DThirdPartyInCallServiceTest.java99 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()
DNonUiInCallServiceWoExportTest.java125 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()
DThirdPartyInCallServiceAppOpsPermissionTest.java220 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()
DCallStreamingTest.java235 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()
DCallRedirectionServiceTest.java270 Intent bindIntent = new Intent(interfaceAction); in setupControlBinder() local
271 bindIntent.setComponent(interfaceComponentName); in setupControlBinder()
274 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in setupControlBinder()
DCarModeInCallServiceTest.java759 Intent bindIntent = new Intent( in getControlBinder() local
762 bindIntent.setPackage(packageName); in getControlBinder()
765 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in getControlBinder()
DThirdPartyCallScreeningServiceTest.java543 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()
DSelfManagedConnectionTest.java664 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()
DPhoneAccountRegistrarTest.java860 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()
DSelfManagedConnectionServiceTest.java187 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/
DTelephonyLocationTests.java293 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/
DMbmsStreamingTestBase.java169 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()
DMbmsDownloadTestBase.java189 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()
DMbmsGroupCallTestBase.java200 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/
DBindUtils.java151 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/
DBackgroundActivityTestBase.java460 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/
DCommandReceiver.java295 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()