Home
last modified time | relevance | path

Searched refs:serviceConnection (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/telecom/src/android/telecom/cts/
DApi29InCallUtils.java33 ServiceConnection serviceConnection = new ServiceConnection() { in setupControl() local
46 serviceConnection, Context.BIND_AUTO_CREATE); in setupControl()
51 return Pair.create(serviceConnection, in setupControl()
56 public static void tearDownControl(Context context, ServiceConnection serviceConnection) { in tearDownControl() argument
57 context.unbindService(serviceConnection); in tearDownControl()
DNonUiInCallServiceWoExportTest.java130 ServiceConnection serviceConnection = new ServiceConnection() { in setUpControlForBindingInterface() local
146 if (!mContext.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE)) { in setUpControlForBindingInterface()
150 mServiceConnection = serviceConnection; in setUpControlForBindingInterface()
DSelfManagedConnectionTest.java667 TestServiceConnection serviceConnection = new TestServiceConnection(); in setUpControl() local
668 mContext.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE); in setUpControl()
669 if (!serviceConnection.waitBind()) { in setUpControl()
672 return serviceConnection; in setUpControl()
DPhoneAccountRegistrarTest.java864 serviceConnection = new TestServiceConnection(); in setUpControl() local
865 mContext.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE); in setUpControl()
866 if (!serviceConnection.waitBind()) { in setUpControl()
869 return serviceConnection; in setUpControl()
DSelfManagedConnectionServiceTest.java190 TestServiceConnection serviceConnection = new TestServiceConnection(acct); in setUpControl() local
191 mContext.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE); in setUpControl()
192 if (!serviceConnection.waitBind()) { in setUpControl()
195 return serviceConnection; in setUpControl()
/cts/tests/tests/security/src/android/security/cts/
DDynamicPermissionsTest.kt49 private lateinit var serviceConnection: ServiceConnection variable in android.security.cts.DynamicPermissionsTest
60 if (this::serviceConnection.isInitialized) { in tearDown()
61 context.unbindService(serviceConnection) in tearDown()
120 serviceConnection = object : ServiceConnection { in bindService()
139 context.bindService(intent, serviceConnection, BIND_AUTO_CREATE) in bindService()
/cts/tests/appsearch/src/com/android/cts/appsearch/app/
DGlobalSearchSessionServiceCtsTestBase.java249 GlobalSearchSessionServiceCtsTestBase.TestServiceConnection serviceConnection = in testPublicVisibility_accessibleTestPackage() local
252 ICommandReceiver commandReceiver = serviceConnection.getCommandReceiver(); in testPublicVisibility_accessibleTestPackage()
258 serviceConnection.unbind(); in testPublicVisibility_accessibleTestPackage()
277 GlobalSearchSessionServiceCtsTestBase.TestServiceConnection serviceConnection = in testPublicVisibility_inaccessibleHelperApp() local
280 ICommandReceiver commandReceiver = serviceConnection.getCommandReceiver(); in testPublicVisibility_inaccessibleHelperApp()
291 serviceConnection.unbind(); in testPublicVisibility_inaccessibleHelperApp()
295 serviceConnection = bindToHelperService(PKG_A); in testPublicVisibility_inaccessibleHelperApp()
297 ICommandReceiver commandReceiver = serviceConnection.getCommandReceiver(); in testPublicVisibility_inaccessibleHelperApp()
308 serviceConnection.unbind(); in testPublicVisibility_inaccessibleHelperApp()
374 GlobalSearchSessionServiceCtsTestBase.TestServiceConnection serviceConnection = in testPublicVisibility_invalidCertificate() local
[all …]
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DBindUtils.java119 TelecomAppServiceConnection serviceConnection = sTelecomAppToService.get(name).first; in unbindFromApp() local
120 context.unbindService(serviceConnection); in unbindFromApp()
197 final TelecomAppServiceConnection serviceConnection = new TelecomAppServiceConnection(f); in waitOnBindForApp() local
201 serviceConnection, Context.BIND_AUTO_CREATE); in waitOnBindForApp()
210 sTelecomAppToService.put(appName, new Pair<>(serviceConnection, wrapper)); in waitOnBindForApp()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DBindDeviceAdminServiceGoodSetupTest.java183 final ServiceConnection serviceConnection = new ServiceConnection() { in assertCrossProfileCall() local
203 assertTrue(bind(serviceIntent, serviceConnection, targetUserHandle)); in assertCrossProfileCall()
213 mContext.unbindService(serviceConnection); in assertCrossProfileCall()
217 private boolean bind(Intent serviceIntent, ServiceConnection serviceConnection, in bind() argument
220 serviceIntent, serviceConnection, in bind()
DBindDeviceAdminServiceFailsTest.java78 private boolean bind(Intent serviceIntent, ServiceConnection serviceConnection, in bind() argument
81 serviceIntent, serviceConnection, in bind()
/cts/tests/BlobStore/src/com/android/cts/blob/
DBlobStoreManagerTest.java944 final TestServiceConnection serviceConnection = bindToHelperService(HELPER_PKG); in testAcquireLease_multipleLeasees() local
956 acquireLeaseFrmPkg(blobData, serviceConnection); in testAcquireLease_multipleLeasees()
957 assertPkgCanAccess(blobData, serviceConnection); in testAcquireLease_multipleLeasees()
964 assertPkgCanAccess(blobData, serviceConnection); in testAcquireLease_multipleLeasees()
967 serviceConnection.unbind(); in testAcquireLease_multipleLeasees()
1162 final TestServiceConnection serviceConnection = bindToHelperService(HELPER_PKG); in testStorageAttribution_acquireLease() local
1163 final ICommandReceiver commandReceiver = serviceConnection.getCommandReceiver(); in testStorageAttribution_acquireLease()
1201 serviceConnection.unbind(); in testStorageAttribution_acquireLease()
1802 private void commitBlobFromPkg(FakeBlobData blobData, TestServiceConnection serviceConnection) in commitBlobFromPkg() argument
1804 commitBlobFromPkg(blobData, ICommandReceiver.FLAG_ACCESS_TYPE_PRIVATE, serviceConnection); in commitBlobFromPkg()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationHidingVerifierActivity.kt63 private var serviceConnection: ServiceConnection? = null in <lambda>() variable in com.android.cts.verifier.notifications.NotificationHidingVerifierActivity
261 serviceConnection?.let { applicationContext.unbindService(it) } in <lambda>()
262 serviceConnection = null in <lambda>()
277 serviceConnection = object : ServiceConnection { in <lambda>()
286 serviceConnection!!, in <lambda>()
/cts/tests/tests/os/src/android/os/cts/
DBinderIntegrationTest.java327 ServiceConnection serviceConnection = new ServiceConnection() { in testBinderDiedWho() local
341 getContext().bindService(remoteIntent, serviceConnection, Context.BIND_AUTO_CREATE); in testBinderDiedWho()
368 getContext().unbindService(serviceConnection); in testBinderDiedWho()
/cts/tests/tests/appop/src/android/app/appops/cts/
DForegroundModeAndActiveTest.kt88 private lateinit var serviceConnection: ServiceConnection in <lambda>() variable in android.app.appops.cts.ForegroundModeAndActiveTest
142 serviceConnection = object : ServiceConnection { in <lambda>()
156 serviceConnection, in <lambda>()
576 context.unbindService(serviceConnection) in <lambda>()
DAppOpsLoggingTest.kt134 private lateinit var serviceConnection: ServiceConnection in nativeNoteOp() variable in android.app.appops.cts.AppOpsLoggingTest
177 serviceConnection = object : ServiceConnection { in nativeNoteOp()
187 context.bindService(serviceIntent, serviceConnection, BIND_AUTO_CREATE) in nativeNoteOp()
988 context.unbindService(serviceConnection) in nativeNoteOp()
DDiscreteAppopsTest.kt92 private lateinit var serviceConnection: ServiceConnection in <lambda>() variable in android.app.appops.cts.DiscreteAppopsTest
142 serviceConnection = object : ServiceConnection { in <lambda>()
152 context.bindService(serviceIntent, serviceConnection, in <lambda>()
173 context.unbindService(serviceConnection) in <lambda>()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DWindowContextTests.java116 final ServiceConnection serviceConnection = new ServiceConnection() { in testWindowContextBindService() local
126 serviceConnection, Context.BIND_AUTO_CREATE)); in testWindowContextBindService()
128 windowContext.unbindService(serviceConnection); in testWindowContextBindService()
/cts/tests/tests/libcorefileio/src/android/cts/
DFileChannelInterProcessLockTest.java753 static ServiceConnection serviceConnection;
794 serviceConnection = new ServiceConnection() {
819 serviceConnection, Context.BIND_AUTO_CREATE);
855 getContext().unbindService(serviceConnection);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DDeviceAdminTestReceiver.java278 final ServiceConnection serviceConnection = new ServiceConnection() { in bindPrimaryUserService() local
292 serviceConnection, Context.BindServiceFlags.of(Context.BIND_AUTO_CREATE), in bindPrimaryUserService() local
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DCreateAndManageUserTest.java682 final ServiceConnection serviceConnection = new ServiceConnection() { in pingTargetUser() local
705 serviceConnection, in pingTargetUser()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerTest.java997 public void sendMessage(FutureServiceConnection serviceConnection, in sendMessage() argument
999 Messenger service = new Messenger(serviceConnection.get(40000)); in sendMessage()
1007 public void sendCancelAll(FutureServiceConnection serviceConnection, in sendCancelAll() argument
1009 Messenger service = new Messenger(serviceConnection.get(40000)); in sendCancelAll()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java1250 final ServiceConnection serviceConnection = new ServiceConnection() { in bindService() local
1279 final boolean bound = bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE); in bindService()