/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/remotedpc/src/library/main/java/com/android/bedstead/remotedpc/connected/ |
D | RemoteDPCBinder.java | 56 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/ |
D | TestAppBinder.java | 55 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/ |
D | TelephonyLocationTests.java | 266 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/ |
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 | 100 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()
|
D | ThirdPartyInCallServiceAppOpsPermissionTest.java | 168 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()
|
D | CallRedirectionServiceTest.java | 212 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()
|
D | SelfManagedConnectionTest.java | 313 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()
|
D | CarModeInCallServiceTest.java | 693 Intent bindIntent = new Intent( in getControlBinder() local 696 bindIntent.setPackage(packageName); in getControlBinder() 699 boolean success = mContext.bindService(bindIntent, new ServiceConnection() { in getControlBinder()
|
D | ThirdPartyCallScreeningServiceTest.java | 521 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/ |
D | MbmsStreamingTestBase.java | 149 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()
|
D | MbmsDownloadTestBase.java | 170 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()
|
D | MbmsGroupCallTestBase.java | 170 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/ |
D | CommandReceiver.java | 180 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()
|