/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/ |
D | BroadcastDeferralTest.java | 66 TestServiceConnection connection2 = bindToHelperService(HELPER_PKG2); in testFgBroadcastDeliveryToFrozenApp_withDeferUntilActive() local 71 cmdReceiver2 = connection2.getCommandReceiver(); in testFgBroadcastDeliveryToFrozenApp_withDeferUntilActive() 82 connection2.unbind(); in testFgBroadcastDeliveryToFrozenApp_withDeferUntilActive() 95 connection2 = bindToHelperService(HELPER_PKG2); in testFgBroadcastDeliveryToFrozenApp_withDeferUntilActive() 97 cmdReceiver2 = connection2.getCommandReceiver(); in testFgBroadcastDeliveryToFrozenApp_withDeferUntilActive() 112 connection2.unbind(); in testFgBroadcastDeliveryToFrozenApp_withDeferUntilActive() 132 TestServiceConnection connection2 = bindToHelperService(HELPER_PKG2); in testFgBroadcastDeliveryToFrozenApp() local 135 cmdReceiver2 = connection2.getCommandReceiver(); in testFgBroadcastDeliveryToFrozenApp() 141 connection2.unbind(); in testFgBroadcastDeliveryToFrozenApp() 158 connection2 = bindToHelperService(HELPER_PKG2); in testFgBroadcastDeliveryToFrozenApp() [all …]
|
D | BroadcastDeliveryGroupTest.java | 36 final TestServiceConnection connection2 = bindToHelperService(HELPER_PKG2); in testDeliveryGroupPolicy_policyAll() local 39 final ICommandReceiver cmdReceiver2 = connection2.getCommandReceiver(); in testDeliveryGroupPolicy_policyAll() 58 connection2.unbind(); in testDeliveryGroupPolicy_policyAll() 65 final TestServiceConnection connection2 = bindToHelperService(HELPER_PKG2); in testDeliveryGroupPolicy_withForceDelay_policyAll() local 68 final ICommandReceiver cmdReceiver2 = connection2.getCommandReceiver(); in testDeliveryGroupPolicy_withForceDelay_policyAll() 92 connection2.unbind(); in testDeliveryGroupPolicy_withForceDelay_policyAll() 99 final TestServiceConnection connection2 = bindToHelperService(HELPER_PKG2); in testDeliveryGroupPolicy_policyMostRecent() local 102 final ICommandReceiver cmdReceiver2 = connection2.getCommandReceiver(); in testDeliveryGroupPolicy_policyMostRecent() 124 connection2.unbind(); in testDeliveryGroupPolicy_policyMostRecent() 131 final TestServiceConnection connection2 = bindToHelperService(HELPER_PKG2); in testDeliveryGroupPolicy_withForceDelay_policyMostRecent() local [all …]
|
D | BroadcastFreezerTest.java | 174 TestServiceConnection connection2 = bindToHelperService(HELPER_PKG2); in testBroadcastDelivery_pendingFreezeCancelled() local 181 cmdReceiver2 = connection2.getCommandReceiver(); in testBroadcastDelivery_pendingFreezeCancelled() 191 connection2.unbind(); in testBroadcastDelivery_pendingFreezeCancelled() 198 connection2 = bindToHelperService(HELPER_PKG2); in testBroadcastDelivery_pendingFreezeCancelled() 206 connection2.unbind(); in testBroadcastDelivery_pendingFreezeCancelled()
|
/cts/tests/tests/externalservice/src/android/externalservice/cts/ |
D | SharedIsolatedServiceTest.java | 104 Connection connection2 = new Connection(mCondition); in testMultipleServicesWithSingleInstance() local 117 connection2)); in testMultipleServicesWithSingleInstance() 120 assertEquals(getContext().getPackageName(), connection2.mName.getPackageName()); in testMultipleServicesWithSingleInstance() 121 assertNotSame(sServicePackage, connection2.mName.getPackageName()); in testMultipleServicesWithSingleInstance() 123 RunningServiceInfo serviceInfo2 = identifyService(new Messenger(connection2.mService)); in testMultipleServicesWithSingleInstance() 151 Connection connection2 = new Connection(mCondition); in testMultipleServicesWithMultiInstance() local 164 connection2)); in testMultipleServicesWithMultiInstance() 167 assertEquals(getContext().getPackageName(), connection2.mName.getPackageName()); in testMultipleServicesWithMultiInstance() 168 assertNotSame(sServicePackage, connection2.mName.getPackageName()); in testMultipleServicesWithMultiInstance() 170 RunningServiceInfo serviceInfo2 = identifyService(new Messenger(connection2.mService)); in testMultipleServicesWithMultiInstance()
|
D | PackagePrivateIsolatedServiceTest.java | 170 PackagePrivateIsolatedServiceTest.Connection connection2 = in testBindMultipleExportedServiceS() local 187 connection2)); in testBindMultipleExportedServiceS() 191 assertEquals(sServicePackage, connection2.mName.getPackageName()); in testBindMultipleExportedServiceS() 193 RunningServiceInfo serviceInfo2 = identifyService(new Messenger(connection2.mService)); in testBindMultipleExportedServiceS()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CtsRemoteConnectionService.java | 155 public void onConference(Connection connection1, Connection connection2) { in onConference() argument 158 sConnectionService.onConference(connection1, connection2); in onConference() 160 mMockConnectionService.onConference(connection1, connection2); in onConference()
|
D | MockConnectionService.java | 172 public void onConference(Connection connection1, Connection connection2) { in onConference() argument 174 if (connection1.getConference() == null && connection2.getConference() == null) { in onConference() 176 (MockConnection)connection1, (MockConnection)connection2); in onConference() 183 if(connection2.getState() == Connection.STATE_HOLDING){ in onConference() 184 connection2.setActive(); in onConference()
|
D | RemoteConferenceTest.java | 561 public void onConference(Connection connection1, Connection connection2) { in addRemoteConnectionOutgoingCalls() 570 ((MockConnection)connection2).getRemoteConnection(); in addRemoteConnectionOutgoingCalls() 579 if(connection2.getState() == Connection.STATE_HOLDING){ in addRemoteConnectionOutgoingCalls() 580 connection2.setActive(); in addRemoteConnectionOutgoingCalls() 614 public void onConference(Connection connection1, Connection connection2) { in addRemoteConnectionOutgoingCalls() 617 connection2.getConference() == null) { in addRemoteConnectionOutgoingCalls() 619 (MockConnection)connection1, (MockConnection)connection2); in addRemoteConnectionOutgoingCalls() 626 if(connection2.getState() == Connection.STATE_HOLDING){ in addRemoteConnectionOutgoingCalls() 627 connection2.setActive(); in addRemoteConnectionOutgoingCalls()
|
D | ExtendedInCallServiceTest.java | 343 final MockConnection connection2 = verifyConnectionForIncomingCall(1); in testAcceptRingingCallTwoCalls() local 347 assertConnectionState(connection2, Connection.STATE_RINGING); in testAcceptRingingCallTwoCalls() 353 assertConnectionState(connection2, Connection.STATE_ACTIVE); in testAcceptRingingCallTwoCalls() 375 final MockConnection connection2 = verifyConnectionForIncomingCall(1); in testAcceptRingingCallTwoCallsCarMode() local 379 assertConnectionState(connection2, Connection.STATE_RINGING); in testAcceptRingingCallTwoCallsCarMode() 389 assertConnectionState(connection2, Connection.STATE_ACTIVE); in testAcceptRingingCallTwoCallsCarMode() 781 final MockConnection connection2 = verifyConnectionForOutgoingCall(1); in testCanAddCall_CannotAddIfTooManyCalls() local 785 connection2.setActive(); in testCanAddCall_CannotAddIfTooManyCalls()
|
D | ConnectionServiceTest.java | 561 final Connection connection2 = new MockConnection(); 562 connection2.setActive(); 564 connection2); 569 assertTrue(connections.contains(connection2));
|
D | CtsConnectionService.java | 197 public void onConference(Connection connection1, Connection connection2) { in onConference() argument 200 testImpl.onConference(connection1, connection2); in onConference()
|
D | ConferenceTest.java | 528 MockConnection connection2) { in verifyConferenceObject() argument 533 assertEquals(connection2.getState(), mConferenceObject.getState()); in verifyConferenceObject() 535 assertTrue(mConferenceObject.getConnections().contains(connection2)); in verifyConferenceObject()
|
D | SelfManagedConnectionServiceTest.java | 1104 SelfManagedConnection connection2 = TestUtils.waitForAndGetConnection(TEST_ADDRESS_2); in testIncomingWhileOngoingWithinLimit() local 1106 connection2.disconnectAndDestroy(); in testIncomingWhileOngoingWithinLimit()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | TestConnectionService.java | 60 public void onConference(Connection connection1, Connection connection2) { in onConference() argument
|
/cts/tests/BlobStore/src/com/android/cts/blob/ |
D | BlobStoreManagerTest.java | 502 final TestServiceConnection connection2 = bindToHelperService(HELPER_PKG2); in testPrivateAccess() local 511 assertPkgCannotAccess(blobData, connection2); in testPrivateAccess() 516 assertPkgCannotAccess(blobData, connection2); in testPrivateAccess() 519 commitBlobFromPkg(blobData, connection2); in testPrivateAccess() 521 acquireLeaseAndAssertPkgCanAccess(blobData, connection2); in testPrivateAccess() 526 connection2.unbind(); in testPrivateAccess() 561 final TestServiceConnection connection2 = bindToHelperService(HELPER_PKG2); in testMixedAccessType_fromMultiplePackages() local 577 acquireLeaseAndAssertPkgCanAccess(blobData, connection2); in testMixedAccessType_fromMultiplePackages() 580 commitBlobFromPkg(blobData, ICommandReceiver.FLAG_ACCESS_TYPE_PUBLIC, connection2); in testMixedAccessType_fromMultiplePackages() 583 acquireLeaseAndAssertPkgCanAccess(blobData, connection2); in testMixedAccessType_fromMultiplePackages() [all …]
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTest.java | 1034 final TestServiceConnection connection2 = bindToTestServiceAndGetConnection( in testNotificationSeen_verifyBucket() local 1038 ITestReceiver testReceiver2 = connection2.getITestReceiver(); in testNotificationSeen_verifyBucket() 1053 connection2.unbind(); in testNotificationSeen_verifyBucket() 1110 final TestServiceConnection connection2 = bindToTestServiceAndGetConnection( in testNotificationSeen_verifyBucket_retainPreTImpact() local 1114 ITestReceiver testReceiver2 = connection2.getITestReceiver(); in testNotificationSeen_verifyBucket_retainPreTImpact() 1129 connection2.unbind(); in testNotificationSeen_verifyBucket_retainPreTImpact()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerFgsBgStartTest.java | 1071 final ServiceConnection connection2 = new ServiceConnection() { in testFgsBindingFlag() local 1079 runWithShellPermissionIdentity(() -> mTargetContext.bindService(intent, connection2, in testFgsBindingFlag() 1094 runWithShellPermissionIdentity(() -> mTargetContext.unbindService(connection2)); in testFgsBindingFlag()
|