Home
last modified time | relevance | path

Searched refs:bindIntent (Results 1 – 15 of 15) 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/remotedpc/src/library/main/java/com/android/bedstead/remotedpc/connected/
DRemoteDPCBinder.java56 Intent bindIntent = new Intent(); in tryBind() local
57 bindIntent.setComponent(new ComponentName( in tryBind()
61 Log.i(LOG_TAG, "Attempting to bind to " + bindIntent); in tryBind()
65 return context.bindService(bindIntent, in tryBind()
76 return context.bindServiceAsUser(bindIntent, in tryBind()
/cts/common/device-side/bedstead/testapp/src/main/library/java/com/android/bedstead/testapp/
DTestAppBinder.java55 Intent bindIntent = new Intent(); in tryBind() local
56 bindIntent.setComponent(new ComponentName( in tryBind()
60 Log.i(LOG_TAG, "Attempting to bind to " + bindIntent); in tryBind()
64 return context.bindServiceAsUser(bindIntent, in tryBind()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyLocationTests.java266 Intent bindIntent = new Intent(CtsLocationAccessService.CONTROL_ACTION); in getLocationAccessAppControl() local
267 bindIntent.setComponent(new ComponentName( in getLocationAccessAppControl()
271 return bindLocationAccessControl(bindIntent); in getLocationAccessAppControl()
275 Intent bindIntent = new Intent(CtsLocationAccessService.CONTROL_ACTION); in getLocationAccessAppControlSdk28() local
276 bindIntent.setComponent(new ComponentName( in getLocationAccessAppControlSdk28()
280 return bindLocationAccessControl(bindIntent); in getLocationAccessAppControlSdk28()
283 private ICtsLocationAccessControl bindLocationAccessControl(Intent bindIntent) { in bindLocationAccessControl() argument
286 InstrumentationRegistry.getContext().bindService(bindIntent, new ServiceConnection() { in bindLocationAccessControl()
338 Intent bindIntent = new Intent(CtsLocationAccessService.CONTROL_ACTION); in withRevokedPermission() local
339 bindIntent.setComponent(new ComponentName(packageName, in withRevokedPermission()
[all …]
/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.java100 Intent bindIntent = new Intent(CtsThirdPartyInCallServiceControl.CONTROL_INTERFACE_ACTION); in setUpControl() local
107 bindIntent.setComponent(controlComponentName); in setUpControl()
109 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in setUpControl()
DThirdPartyInCallServiceAppOpsPermissionTest.java168 Intent bindIntent = new Intent(CtsThirdPartyInCallServiceControl.CONTROL_INTERFACE_ACTION); in setUpControl() local
175 bindIntent.setComponent(controlComponentName); in setUpControl()
177 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in setUpControl()
DCallRedirectionServiceTest.java212 Intent bindIntent = new Intent( in setupControlBinder() local
214 bindIntent.setComponent(CtsCallRedirectionServiceController.CONTROL_INTERFACE_COMPONENT); in setupControlBinder()
217 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in setupControlBinder()
DSelfManagedConnectionTest.java313 Intent bindIntent = new Intent(action); in setUpControl() local
314 bindIntent.setComponent(componentName); in setUpControl()
317 mContext.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE); in setUpControl()
DCarModeInCallServiceTest.java693 Intent bindIntent = new Intent( in getControlBinder() local
696 bindIntent.setPackage(packageName); in getControlBinder()
699 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in getControlBinder()
DThirdPartyCallScreeningServiceTest.java521 Intent bindIntent = new Intent(CallScreeningServiceControl.CONTROL_INTERFACE_ACTION); in setupControlBinder() local
522 bindIntent.setComponent(CallScreeningServiceControl.CONTROL_INTERFACE_COMPONENT); in setupControlBinder()
525 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in setupControlBinder()
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsStreamingTestBase.java149 Intent bindIntent = new Intent(CtsStreamingService.CONTROL_INTERFACE_ACTION); in getControlBinder() local
150 bindIntent.setComponent(CtsStreamingService.CONTROL_INTERFACE_COMPONENT); in getControlBinder()
153 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in getControlBinder()
DMbmsDownloadTestBase.java170 Intent bindIntent = new Intent(CtsDownloadService.CONTROL_INTERFACE_ACTION); in getControlBinder() local
171 bindIntent.setComponent(CtsDownloadService.CONTROL_INTERFACE_COMPONENT); in getControlBinder()
174 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in getControlBinder()
DMbmsGroupCallTestBase.java170 Intent bindIntent = new Intent(CtsGroupCallService.CONTROL_INTERFACE_ACTION); in getControlBinder() local
171 bindIntent.setComponent(CtsGroupCallService.CONTROL_INTERFACE_COMPONENT); in getControlBinder()
174 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in getControlBinder()
/cts/tests/app/app/src/android/app/stubs/
DCommandReceiver.java180 Intent bindIntent = new Intent(); in doBindService() local
181 bindIntent.setComponent(new ComponentName(targetPackage, serviceName)); in doBindService()
185 context.bindService(bindIntent, connection, flags | Context.BIND_AUTO_CREATE); in doBindService()