Home
last modified time | relevance | path

Searched refs:mConnection (Results 1 – 25 of 61) sorted by relevance

123

/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DScrollCaptureConnectionTest.java126 assertFalse(mConnection.isActive()); in testStartCapture()
129 assertTrue(mConnection.isActive()); in testStartCapture()
140 assertFalse(mConnection.isActive()); in testStartCapture_cancellation()
169 mConnection.close(); in testRequestImage_afterClose()
192 assertTrue(mConnection.isActive()); in testEndCapture()
194 mConnection.endCapture(); in testEndCapture()
211 mConnection.endCapture(); in testEndCapture_afterClose()
214 mConnection.close(); in testEndCapture_afterClose()
227 mConnection.close(); in testClose_withPendingOperation()
253 mConnection.close(); in testClose()
[all …]
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DObservableServiceConnectionTest.java109 mConnection.addCallback(mCallback); in testConnect()
110 mConnection.addCallback(mCallback); in testConnect()
113 mConnection.bind(); in testConnect()
128 mConnection.addCallback(mCallback); in testDisconnectBeforeBind()
138 mConnection.addCallback(mCallback); in testDisconnect()
140 mConnection.bind(); in testDisconnect()
154 mConnection.unbind(); in testDisconnect()
162 mConnection.bind(); in testBindingDied()
179 mConnection.bind(); in testNullBinding()
196 mConnection.bind(); in testUnbind()
[all …]
H A DPersistentServiceConnectionTest.java95 mConnection.addCallback(mCallback); in setup()
106 mConnection.bind(); in testConnect()
115 mConnection.bind(); in testRetryOnBindFailure()
121 eq(mConnection)); in testRetryOnBindFailure()
131 eq(mConnection)); in testRetryOnBindFailure()
141 eq(mConnection)); in testRetryOnBindFailure()
151 eq(mConnection)); in testRetryOnBindFailure()
156 mConnection.bind(); in testManualUnbindDoesNotReconnect()
162 eq(mConnection)); in testManualUnbindDoesNotReconnect()
164 mConnection.unbind(); in testManualUnbindDoesNotReconnect()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DAccessibilityServiceConnectionTest.java133 mConnection.bindLocked(); in bind_requestsContextToBindService()
151 mConnection.bindLocked(); in bindConnectUnbind_linksAndUnlinksToServiceDeath()
161 mConnection.bindLocked(); in connectedServiceCrashedAndRestarted_crashReportedInServiceInfo()
164 mConnection.binderDied(); in connectedServiceCrashedAndRestarted_crashReportedInServiceInfo()
179 mConnection.bindLocked(); in binderDied_keysGetFlushed()
181 mConnection.binderDied(); in binderDied_keysGetFlushed()
193 mConnection.bindLocked(); in connectedService_notInEnabledServiceList_doNotInitClient()
205 mConnection.bindLocked(); in sendGesture_touchableDevice_injectEvents()
222 mConnection.bindLocked(); in sendGesture_untouchableDevice_performGestureResultFailed()
239 mConnection.bindLocked(); in sendGesture_invalidDisplay_performGestureResultFailed()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/
H A DPersistentConnectionManagerTest.java66 mConnection, in setup()
79 verify(mConnection).bind(); in captureCallbackAndSend()
80 Mockito.clearInvocations(mConnection); in captureCallbackAndSend()
86 callback.onDisconnected(mConnection, 0); in captureCallbackAndSend()
115 verify(mConnection).bind(); in testRetryOnBindFailure()
116 Mockito.clearInvocations(mConnection); in testRetryOnBindFailure()
133 verify(mConnection).bind(); in testStopDoesNotReconnect()
134 Mockito.clearInvocations(mConnection); in testStopDoesNotReconnect()
138 verify(mConnection, never()).bind(); in testStopDoesNotReconnect()
147 verify(mConnection).bind(); in testAttemptOnPackageChange()
[all …]
/aosp14/frameworks/base/core/java/android/inputmethodservice/
H A DIRemoteInputConnectionInvoker.java62 private final IRemoteInputConnection mConnection; field in IRemoteInputConnectionInvoker
68 mConnection = inputConnection; in IRemoteInputConnectionInvoker()
347 mConnection.commitTextWithTextAttribute( in commitText()
477 mConnection.setComposingRegionWithTextAttribute( in setComposingRegion()
518 mConnection.setComposingTextWithTextAttribute( in setComposingText()
535 mConnection.finishComposingText(createHeader()); in finishComposingText()
551 mConnection.beginBatchEdit(createHeader()); in beginBatchEdit()
567 mConnection.endBatchEdit(createHeader()); in endBatchEdit()
584 mConnection.sendKeyEvent(createHeader(), event); in sendKeyEvent()
656 mConnection.performSpellCheck(createHeader()); in performSpellCheck()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/inputmethod/
H A DIRemoteAccessibilityInputConnectionInvoker.java33 private final IRemoteAccessibilityInputConnection mConnection; field in IRemoteAccessibilityInputConnectionInvoker
38 mConnection = inputContext; in IRemoteAccessibilityInputConnectionInvoker()
64 return new IRemoteAccessibilityInputConnectionInvoker(mConnection, sessionId); in cloneWithSessionId()
77 return mConnection.asBinder() == connection.asBinder(); in isSameConnection()
112 mConnection.setSelection(createHeader(), start, end); in setSelection()
151 mConnection.deleteSurroundingText(createHeader(), beforeLength, afterLength); in deleteSurroundingText()
165 mConnection.sendKeyEvent(createHeader(), event); in sendKeyEvent()
179 mConnection.performEditorAction(createHeader(), actionCode); in performEditorAction()
193 mConnection.performContextMenuAction(createHeader(), id); in performContextMenuAction()
211 mConnection.getCursorCapsMode(createHeader(), reqModes, future); in getCursorCapsMode()
[all …]
/aosp14/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteSession.java167 private SQLiteConnection mConnection; field in SQLiteSession
260 return mConnection != null; in hasConnection()
321 mConnection.execute("BEGIN IMMEDIATE;", null, in beginTransactionUnchecked()
325 mConnection.execute("BEGIN EXCLUSIVE;", null, in beginTransactionUnchecked()
401 assert mConnection != null; in endTransaction()
516 assert mConnection != null; in yieldTransaction()
590 mConnection.prepare(sql, outStatementInfo); // might throw in prepare()
838 return mConnection.executeForCursorWindow(sql, bindArgs, in executeForCursorWindow()
894 if (mConnection == null) { in acquireConnection()
904 assert mConnection != null; in releaseConnection()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A DWindowMagnificationConnectionWrapperTest.java48 private IWindowMagnificationConnection mConnection; field in WindowMagnificationConnectionWrapperTest
63 mConnection = mMockWindowMagnificationConnection.getConnection(); in setUp()
78 verify(mConnection).setScale(TEST_DISPLAY, 3.0f); in setScale()
85 verify(mConnection).disableWindowMagnification(eq(TEST_DISPLAY), in disableWindowMagnification()
93 verify(mConnection).moveWindowMagnifier(TEST_DISPLAY, 100, 150); in moveWindowMagnifier()
100 verify(mConnection).moveWindowMagnifierToPosition(eq(TEST_DISPLAY), in moveWindowMagnifierToPosition()
108 verify(mConnection).showMagnificationButton(TEST_DISPLAY, in showMagnificationButton()
115 verify(mConnection).removeMagnificationButton(TEST_DISPLAY); in removeMagnificationButton()
121 verify(mConnection).removeMagnificationSettingsPanel(eq(TEST_DISPLAY)); in removeMagnificationSettingsPanel()
129 verify(mConnection).onUserMagnificationScaleChanged( in onUserMagnificationScaleChanged()
[all …]
H A DMockWindowMagnificationConnection.java50 private final IWindowMagnificationConnection mConnection; field in MockWindowMagnificationConnection
73 mConnection = mock(IWindowMagnificationConnection.class); in MockWindowMagnificationConnection()
75 when(mConnection.asBinder()).thenReturn(mBinder); in MockWindowMagnificationConnection()
79 }).when(mConnection).setConnectionCallback( in MockWindowMagnificationConnection()
112 }).when(mConnection).enableWindowMagnification(anyInt(), anyFloat(), anyFloat(), anyFloat(), in stubEnableWindowMagnification()
128 }).when(mConnection).disableWindowMagnification(anyInt(), in stubDisableWindowMagnification()
158 return mConnection; in getConnection()
/aosp14/frameworks/base/media/java/android/media/
H A DMediaHTTPConnection.java67 private volatile HttpURLConnection mConnection = null; field in MediaHTTPConnection
186 if (mConnection != null) { in teardownConnection()
195 mConnection.disconnect(); in teardownConnection()
196 mConnection = null; in teardownConnection()
275 mConnection.setRequestProperty( in seekTo()
281 mConnection.setRequestProperty( in seekTo()
285 response = mConnection.getResponseCode(); in seekTo()
334 mURL = mConnection.getURL(); in seekTo()
444 if (mConnection == null) { in getSize()
458 if (mConnection == null) { in getMIMEType()
[all …]
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DWindowMagnificationConnectionWrapper.java43 private final @NonNull IWindowMagnificationConnection mConnection; field in WindowMagnificationConnectionWrapper
48 mConnection = connection; in WindowMagnificationConnectionWrapper()
54 mConnection.asBinder().unlinkToDeath(deathRecipient, 0); in unlinkToDeath()
58 mConnection.asBinder().linkToDeath(deathRecipient, 0); in linkToDeath()
91 mConnection.setScale(displayId, scale); in setScale()
109 mConnection.disableWindowMagnification(displayId, in disableWindowMagnification()
126 mConnection.moveWindowMagnifier(displayId, offsetX, offsetY); in moveWindowMagnifier()
162 mConnection.showMagnificationButton(displayId, magnificationMode); in showMagnificationButton()
178 mConnection.removeMagnificationButton(displayId); in removeMagnificationButton()
194 mConnection.removeMagnificationSettingsPanel(displayId); in removeMagnificationSettingsPanel()
[all …]
/aosp14/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DUsbAccessoryBulkTransport.java35 private UsbDeviceConnection mConnection; field in UsbAccessoryBulkTransport
42 mConnection = connection; in UsbAccessoryBulkTransport()
49 mConnection = null; in ioClose()
56 if (mConnection == null) { in ioRead()
59 return mConnection.bulkTransfer(mBulkInEndpoint, buffer, offset, count, -1); in ioRead()
64 if (mConnection == null) { in ioWrite()
67 int result = mConnection.bulkTransfer(mBulkOutEndpoint, in ioWrite()
/aosp14/frameworks/base/core/java/android/view/
H A DScrollCaptureResponse.java67 return mConnection != null && mConnection.asBinder().isBinderAlive(); in isConnected()
72 if (mConnection != null) { in close()
74 mConnection.close(); in close()
78 mConnection = null; in close()
109 this.mConnection = connection; in ScrollCaptureResponse()
134 return mConnection; in getConnection()
208 if (mConnection != null) dest.writeStrongInterface(mConnection); in writeToParcel()
240 this.mConnection = connection; in ScrollCaptureResponse()
304 mConnection = value; in setConnection()
380 mConnection = null; in build()
[all …]
H A DRemoteAccessibilityController.java71 return mConnectionWrapper.mConnection.equals(connection); in alreadyAssociated()
88 private final IAccessibilityEmbeddedConnection mConnection; field in RemoteAccessibilityController.RemoteAccessibilityEmbeddedConnection
96 mConnection = connection; in RemoteAccessibilityEmbeddedConnection()
101 return mConnection; in getConnection()
109 mConnection.asBinder().linkToDeath(this, 0); in linkToDeath()
113 mConnection.asBinder().unlinkToDeath(this, 0); in unlinkToDeath()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DScrollCaptureClient.java239 private IScrollCaptureConnection mConnection;
263 mConnection = requireNonNull(connection);
264 mConnection.asBinder().linkToDeath(SessionWrapper.this, 0);
285 mConnection = null;
332 if (mConnection == null || !mConnection.asBinder().isBinderAlive()) {
338 mCancellationSignal = mConnection.requestImage(mRequestRect);
392 mConnection.close();
396 mConnection = null;
403 mConnection.endCapture();
419 mConnection.close();
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/service/
H A DPersistentConnectionManager.java52 private final ObservableServiceConnection<T> mConnection; field in PersistentConnectionManager
58 mConnection.bind();
99 mConnection = serviceConnection; in PersistentConnectionManager()
111 mConnection.addCallback(mConnectionCallback); in start()
120 mConnection.removeCallback(mConnectionCallback); in stop()
122 mConnection.unbind(); in stop()
130 mConnection.bind(); in initiateConnectionAttempt()
/aosp14/frameworks/base/core/java/android/view/inputmethod/
H A DInputBinding.java33 final InputConnection mConnection; field in InputBinding
60 mConnection = conn; in InputBinding()
74 mConnection = conn; in InputBinding()
81 mConnection = null; in InputBinding()
91 return mConnection; in getConnection()
/aosp14/frameworks/base/core/java/android/hardware/usb/
H A DUsbRequest.java69 private UsbDeviceConnection mConnection; field in UsbRequest
100 mConnection = Objects.requireNonNull(connection, "connection"); in initialize()
119 mConnection = null; in close()
196 UsbDeviceConnection connection = mConnection; in queue()
212 UsbDeviceConnection connection = mConnection; in queueIfConnectionOpen()
270 UsbDeviceConnection connection = mConnection; in queue()
286 UsbDeviceConnection connection = mConnection; in queueIfConnectionOpen()
412 UsbDeviceConnection connection = mConnection; in cancel()
432 UsbDeviceConnection connection = mConnection; in cancelIfOpen()
/aosp14/frameworks/base/telephony/java/android/telephony/
H A DBinderCacheManager.java59 private final T mConnection; field in BinderCacheManager.BinderDeathTracker
67 mConnection = connection; in BinderDeathTracker()
69 mConnection.asBinder().linkToDeath(this, 0 /*flags*/); in BinderDeathTracker()
96 mConnection.asBinder().unlinkToDeath(this, 0 /*flags*/); in binderDied()
108 return mConnection; in getConnection()
115 return mConnection.asBinder().isBinderAlive(); in isAlive()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/verify/domain/proxy/
H A DDomainVerificationProxyV2.java49 private final Connection mConnection; field in DomainVerificationProxyV2
57 mConnection = connection; in DomainVerificationProxyV2()
63mConnection.schedule(com.android.server.pm.verify.domain.DomainVerificationMessageCodes.SEND_REQUE… in sendBroadcastForPackages()
73 final long allowListTimeout = mConnection.getPowerSaveTempWhitelistAppDuration(); in runMessage()
79 mConnection.getDeviceIdleInternal().addPowerSaveTempWhitelistApp(Process.myUid(), in runMessage()
102 return mConnection.isCallerPackage(callingUid, mVerifierComponent.getPackageName()); in isCallerVerifier()
/aosp14/frameworks/base/services/core/java/com/android/server/utils/
H A DManagedApplicationService.java95 private ServiceConnection mConnection; field in ManagedApplicationService
281 if (mConnection == null) { in disconnect()
285 mContext.unbindService(mConnection); in disconnect()
286 mConnection = null; in disconnect()
296 if (mConnection != null) { in connect()
311 mConnection = new ServiceConnection() { in connect()
317 if (mConnection != this) { in connect()
337 if (mConnection != this) { in connect()
378 if (mConnection != this) { in connect()
398 if (!mContext.bindServiceAsUser(intent, mConnection, flags, in connect()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DUiAutomationTest.java50 private IUiAutomationConnection mConnection; field in UiAutomationTest
68 () -> new UiAutomation((Context) null, mConnection)); in testContextConstructor_nullContext()
81 UiAutomation uiAutomation = new UiAutomation(mContext, mConnection); in testGetDisplay_contextWithSecondaryDisplayId()
92 UiAutomation uiAutomation = new UiAutomation(mContext, mConnection); in testGetDisplay_contextWithInvalidDisplayId()
105 UiAutomation uiAutomation = new UiAutomation(mContext, mConnection); in testGetDisplay_visibleBgUsers()
117 UiAutomation uiAutomation = new UiAutomation(mContext, mConnection); in testGetDisplay_visibleBgUsers_contextWithInvalidDisplayId()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
H A DDomainVerificationService.java124 private Connection mConnection; field in DomainVerificationService
178 mConnection = connection; in setConnection()
179 mEnforcer.setCallback(mConnection); in setConnection()
357 mConnection.scheduleWriteSettings(); in setDomainVerificationStatusInternal()
459 mConnection.scheduleWriteSettings(); in setDomainVerificationStatusInternal()
513 mConnection.scheduleWriteSettings(); in setDomainVerificationLinkHandlingAllowed()
555 mConnection.scheduleWriteSettings(); in setDomainVerificationLinkHandlingAllowedInternal()
602 mConnection.scheduleWriteSettings(); in setDomainVerificationUserSelection()
653 mConnection.scheduleWriteSettings(); in setDomainVerificationUserSelectionInternal()
764 mEnforcer.assertOwnerQuerent(mConnection.getCallingUid(), mConnection.getCallingUserId(), in getOwnersForDomain()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/android/service/dreams/
H A DDreamOverlayConnectionHandlerTest.java59 private PersistentServiceConnection<IDreamOverlay> mConnection; field in DreamOverlayConnectionHandlerTest
81 new TestInjector(mConnection)); in setUp()
202 callback.onConnected(mConnection, mOverlayService); in connectService()
208 callback.onDisconnected(mConnection, /* reason= */ 0); in disconnectService()
220 verify(mConnection).addCallback(callbackCaptor.capture()); in captureConnectionCallback()
232 private final PersistentServiceConnection<IDreamOverlay> mConnection; field in DreamOverlayConnectionHandlerTest.TestInjector
235 mConnection = connection; in TestInjector()
242 return mConnection; in buildConnection()

123