Home
last modified time | relevance | path

Searched refs:ServiceConnection (Results 1 – 25 of 262) sorted by relevance

1234567891011

/aosp12/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
H A DTransportClientTest.java43 import android.content.ServiceConnection;
122 any(ServiceConnection.class), in setUp()
145 any(ServiceConnection.class), in testConnectAsync_callsBindService()
153 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_callsListenerWhenConnected()
165 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_whenPendingConnection_callsAllListenersWhenConnected()
180 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_whenAlreadyConnected_callsListener()
194 any(ServiceConnection.class), in testConnectAsync_whenFrameworkDoesntBind_callsListener()
210 any(ServiceConnection.class), in testConnectAsync_whenFrameworkDoesNotBind_releasesConnection()
217 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_whenFrameworkDoesNotBind_releasesConnection()
539 ArgumentCaptor<ServiceConnection> connectionCaptor = in verifyBindServiceAsUserAndCaptureServiceConnection()
[all …]
H A DTransportClientManagerTest.java32 import android.content.ServiceConnection;
70 any(ServiceConnection.class), in setUp()
86 any(ServiceConnection.class), in testGetTransportClient()
104 any(ServiceConnection.class), in testGetTransportClient_withExtras_createsTransportClientWithCorrectIntent()
/aosp12/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/
H A DServiceBindPerfTest.java22 import android.content.ServiceConnection;
42 private ServiceConnection createServiceConnectionReportTime() { in createServiceConnectionReportTime()
43 return new ServiceConnection() { in createServiceConnectionReportTime()
59 private void bindService(Intent intent, ServiceConnection serviceConnection, int flags) {
72 final ServiceConnection serviceConnection = createServiceConnectionReportTime();
94 final ServiceConnection serviceConnection = createServiceConnectionReportTime();
117 final ServiceConnection alreadyBoundServiceConnection =
121 final ServiceConnection serviceConnection = createServiceConnectionReportTime();
145 final ServiceConnection serviceConnectionOom =
150 final ServiceConnection serviceConnectionNoOom =
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
H A DStartDpcInsideSuwServiceConnectionTest.java37 import android.content.ServiceConnection;
114 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_serviceConnects()
140 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_instanceStateSavedAndRestoredBeforeServiceConnected()
159 any(Intent.class), any(ServiceConnection.class), anyInt())).thenReturn(true); in testBindingSucceeds_instanceStateSavedAndRestoredBeforeServiceConnected()
185 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_instanceStateSavedAndRestoredAfterServiceConnected()
210 any(Intent.class), any(ServiceConnection.class), anyInt())).thenReturn(true); in testBindingSucceeds_instanceStateSavedAndRestoredAfterServiceConnected()
237 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_instanceStateSavedAndRestoredAfterDpcFinished()
265 any(Intent.class), any(ServiceConnection.class), anyInt())).thenReturn(true); in testBindingSucceeds_instanceStateSavedAndRestoredAfterDpcFinished()
290 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_serviceConnectsAndDisconnects()
343 any(Intent.class), any(ServiceConnection.class), anyInt())).thenReturn(true); in testBindingSucceeds_serviceConnectsAndDisconnects_instanceStateSavedAndRestored()
[all …]
/aosp12/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
H A DFakeApp.java30 import android.content.ServiceConnection;
70 ServiceConnection mServiceConnection = new ServiceConnection() {
77 ServiceConnection mServiceConnection2 = new ServiceConnection() {
84 ServiceConnection mServiceConnection3 = new ServiceConnection() {
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DInCallControllerTests.java60 import android.content.ServiceConnection;
349 any(ServiceConnection.class), in testBindToService_NoServicesFound_IncomingCall()
384 any(ServiceConnection.class), in testBindToService_NoServicesFound_OutgoingCall()
437 any(ServiceConnection.class), in testBindToService_DefaultDialer_NoEmergency()
497 any(ServiceConnection.class), in testBindToService_SystemDialer_Emergency()
576 any(ServiceConnection.class), in testBindToService_SystemDialer_Crash()
606 any(ServiceConnection.class), in testBindToService_SystemDialer_Crash()
694 any(ServiceConnection.class), in testBindToService_DefaultDialer_FallBackToSystem()
751 any(ServiceConnection.class), in testBindToService_NullBinding_FallBackToSystem()
786 any(ServiceConnection.class), in testBindToService_IncludeExternal()
[all …]
H A DCallDiagnosticServiceControllerTest.java34 import android.content.ServiceConnection;
89 private ServiceConnection mServiceConnection;
107 when(mContextProxy.bindServiceAsUser(any(Intent.class), any(ServiceConnection.class), in setUp()
126 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testNoBindOnNonSimCall()
141 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testNoBindOnExternalCall()
152 ArgumentCaptor<ServiceConnection> serviceConnectionCaptor = ArgumentCaptor.forClass( in testAddSimCallCausesBind()
153 ServiceConnection.class); in testAddSimCallCausesBind()
213 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testTestOverride()
H A DCallScreeningServiceFilterTest.java35 import android.content.ServiceConnection;
134 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in setUp()
220 ServiceConnection connection = verifyBindingIntent(); in testBindingCondition()
229 .unbindService(nullable(ServiceConnection.class)); in testUnbindingException()
263 ServiceConnection serviceConnection = verifyBindingIntent(); in testAllowCall()
299 ServiceConnection serviceConnection = verifyBindingIntent(); in testDisallowCall()
336 ServiceConnection serviceConnection = verifyBindingIntent(); in testSilenceCall()
371 ServiceConnection serviceConnection = verifyBindingIntent(); in testScreenCallFurther()
392 private ServiceConnection verifyBindingIntent() { in verifyBindingIntent()
394 ArgumentCaptor<ServiceConnection> serviceCaptor = ArgumentCaptor in verifyBindingIntent()
[all …]
H A DCallRedirectionProcessorTest.java23 import android.content.ServiceConnection;
139 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in setUp()
198 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testNoUserDefinedServiceNoCarrierSerivce()
213 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testCarrierServiceTimeoutNoUserDefinedService()
233 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testUserDefinedServiceTimeoutNoCarrierService()
262 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
270 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
286 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
299 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testProcessGatewayCall()
319 ArgumentCaptor<ServiceConnection> serviceConnectionCaptor = ArgumentCaptor.forClass( in testStripPostDialDigits()
[all …]
/aosp12/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
H A DTargetPackageUtils.java23 import android.content.ServiceConnection;
67 public static void killTargetPackage(Context context, ServiceConnection serviceConnection) { in killTargetPackage()
82 public static ServiceConnection startTargetPackage(Context context) { in startTargetPackage()
87 final ServiceConnection serviceConnection = bindAndWaitForConnectedService(context, intent); in startTargetPackage()
121 public static ServiceConnection bindAndWaitForConnectedService(Context context, Intent intent) { in bindAndWaitForConnectedService()
125 public static ServiceConnection bindAndWaitForConnectedService(Context context, Intent intent, in bindAndWaitForConnectedService()
128 final ServiceConnection serviceConnection = new ServiceConnection() { in bindAndWaitForConnectedService()
155 public static void unbindFromService(Context context, ServiceConnection serviceConnection) { in unbindFromService()
/aosp12/frameworks/base/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/
H A DSimpleService.java22 import android.content.ServiceConnection;
52 private ArrayMap<String, ServiceConnection> mServiceConnections = new ArrayMap<>();
92 final ServiceConnection conn = new ServiceConnection() { in bindToService()
118 final ServiceConnection conn = mServiceConnections.remove(targetPkg); in unbindService()
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/
H A DCallScreeningServiceHelper.java23 import android.content.ServiceConnection;
51 private ServiceConnection mServiceConnection;
53 public CallScreeningAdapter(ServiceConnection connection) { in CallScreeningAdapter()
108 ServiceConnection serviceConnection = new ServiceConnection() { in bindAndGetCallIdentification()
179 String packageName, ServiceConnection serviceConnection) { in bindCallScreeningService()
/aosp12/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/
H A DWritingActivity.java22 import android.content.ServiceConnection;
37 private ServiceConnection mConnection = new ServiceConnection() {
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGbaManagerTest.java38 import android.content.ServiceConnection;
177 ServiceConnection conn = bindAndConnectService(TEST_DEFAULT_SERVICE_NAME); in testBindServiceWhenPackageNameChanged()
263 private ServiceConnection bindAndConnectService(ComponentName component) { in bindAndConnectService()
264 ServiceConnection connection = bindService(component); in bindAndConnectService()
272 private ServiceConnection bindService(ComponentName component) { in bindService()
275 ArgumentCaptor<ServiceConnection> serviceCaptor = in bindService()
276 ArgumentCaptor.forClass(ServiceConnection.class); in bindService()
286 private void unbindService(ServiceConnection conn) { in unbindService()
/aosp12/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java26 import android.content.ServiceConnection;
74 public boolean bindService(Intent service, ServiceConnection conn, int flags) { in bindService()
80 ServiceConnection conn) { in bindService()
86 Executor executor, ServiceConnection conn) { in bindIsolatedService()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
H A DHttpsTransport.java23 import org.ksoap2.transport.ServiceConnection;
34 private ServiceConnection mServiceConnection;
54 public ServiceConnection getServiceConnection() throws IOException { in getServiceConnection()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
H A DSuggestionController.java22 import android.content.ServiceConnection;
60 private ServiceConnection mServiceConnection;
152 private ServiceConnection createServiceConnection() { in createServiceConnection()
153 return new ServiceConnection() { in createServiceConnection()
/aosp12/frameworks/base/core/tests/coretests/src/android/os/
H A DBinderProxyCountingTest.java26 import android.content.ServiceConnection;
94 private static ServiceConnection sTestAppConnection;
95 private static ServiceConnection sTestServiceConnection;
123 private ServiceConnection bindService(final Consumer<IBinder> consumer, Intent intent) in bindService()
126 ServiceConnection connection = new ServiceConnection() { in bindService()
150 private void unbindService(ServiceConnection service) { in unbindService()
H A DBinderWorkSourceTest.java25 import android.content.ServiceConnection;
54 private ServiceConnection mConnection = new ServiceConnection() {
64 private ServiceConnection mNestedConnection = new ServiceConnection() {
H A DBinderWorkSourceNestedService.java23 import android.content.ServiceConnection;
54 ServiceConnection mConnection = new ServiceConnection() {
/aosp12/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
H A DMainActivity.java23 import android.content.ServiceConnection;
37 private ServiceConnection mServiceConnection = new ServiceConnection() {
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/
H A DNotificationApplication.java24 import android.content.ServiceConnection;
43 private ServiceConnection mCarConnectionListener = new ServiceConnection() {
/aosp12/system/extras/simpleperf/demo/SimpleperfExamplePureJava/app/src/main/java/com/example/simpleperf/simpleperfexamplepurejava/
H A DMultiProcessActivity.java6 import android.content.ServiceConnection;
31 private ServiceConnection mConnection = new ServiceConnection() {
/aosp12/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DActivityTestMain.java30 import android.content.ServiceConnection;
70 ArrayList<ServiceConnection> mConnections = new ArrayList<ServiceConnection>();
72 ServiceConnection mIsolatedConnection;
232 ServiceConnection conn = new ServiceConnection() { in onCreateOptionsMenu()
261 ServiceConnection conn = new ServiceConnection() { in onCreateOptionsMenu()
334 ServiceConnection conn = new ServiceConnection() { in onCreateOptionsMenu()
357 ServiceConnection conn = new ServiceConnection() { in onCreateOptionsMenu()
564 for (ServiceConnection conn : mConnections) { in onStop()
/aosp12/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DLocalReceiver.java25 import android.content.ServiceConnection;
48 ServiceConnection sc = new ServiceConnection() { in onReceive()

1234567891011