Home
last modified time | relevance | path

Searched refs:mSession (Results 1 – 25 of 184) sorted by relevance

12345678

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridgeRenderSession.java54 private final RenderSessionImpl mSession; field in BridgeRenderSession
67 return mSession != null ? mSession.getImage() : in getImage()
73 return mSession != null ? mSession.getViewInfos() : Collections.emptyList(); in getRootViews()
78 return mSession != null ? mSession.getSystemViewInfos() : Collections.emptyList(); in getSystemRootViews()
83 return mSession != null ? mSession.getDefaultNamespacedProperties() : in getDefaultNamespacedProperties()
89 return mSession != null ? mSession.getDefaultNamespacedStyles() : Collections.emptyMap(); in getDefaultNamespacedStyles()
94 if (mSession != null) { in measure()
97 mLastResult = mSession.acquire(timeout); in measure()
99 mSession.invalidateRenderingSize(); in measure()
100 mLastResult = mSession.measure(); in measure()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DInlineSuggestionSessionController.java80 private InlineSuggestionSession mSession; field in InlineSuggestionSessionController
100 if (mSession != null) { in onMakeInlineSuggestionsRequest()
101 mSession.invalidate(); in onMakeInlineSuggestionsRequest()
103 mSession = new InlineSuggestionSession(requestInfo, callback, mRequestSupplier, in onMakeInlineSuggestionsRequest()
108 if (mImeInputStarted && match(mSession.getRequestInfo())) { in onMakeInlineSuggestionsRequest()
109 mSession.makeInlineSuggestionRequestUncheck(); in onMakeInlineSuggestionsRequest()
113 mSession.getRequestCallback().onInputMethodStartInputView(); in onMakeInlineSuggestionsRequest()
136 if (mSession != null) { in notifyOnStartInput()
137 mSession.consumeInlineSuggestionsResponse(InlineSuggestionSession.EMPTY_RESPONSE); in notifyOnStartInput()
140 if (!mSession.isCallbackInvoked() && match(mSession.getRequestInfo())) { in notifyOnStartInput()
[all …]
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillInlineSessionController.java60 private AutofillInlineSuggestionsRequestSession mSession; field in AutofillInlineSessionController
86 if (mSession != null) { in onCreateInlineSuggestionsRequestLocked()
88 mSession.destroySessionLocked(); in onCreateInlineSuggestionsRequestLocked()
93 mSession = new AutofillInlineSuggestionsRequestSession(mInputMethodManagerInternal, mUserId, in onCreateInlineSuggestionsRequestLocked()
96 mSession.onCreateInlineSuggestionsRequestLocked(); in onCreateInlineSuggestionsRequestLocked()
107 if (mSession != null) { in destroyLocked()
108 mSession.onInlineSuggestionsResponseLocked(InlineFillUi.emptyUi(autofillId)); in destroyLocked()
109 mSession.destroySessionLocked(); in destroyLocked()
110 mSession = null; in destroyLocked()
124 if (mSession != null) { in getInlineSuggestionsRequestLocked()
[all …]
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionSessionService.java49 VoiceInteractionSession mSession; field in VoiceInteractionSessionService
91 if (mSession != null) { in onConfigurationChanged()
92 mSession.onConfigurationChanged(newConfig); in onConfigurationChanged()
99 if (mSession != null) { in onLowMemory()
100 mSession.onLowMemory(); in onLowMemory()
107 if (mSession != null) { in onTrimMemory()
108 mSession.onTrimMemory(level); in onTrimMemory()
114 if (mSession == null) { in dump()
118 mSession.dump(" ", fd, writer, args); in dump()
123 if (mSession != null) { in doNewSession()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayOffloadSessionImplTest.java43 private DisplayOffloadSessionImpl mSession; field in DisplayOffloadSessionImplTest
49 mSession = new DisplayOffloadSessionImpl(mDisplayOffloader, mDisplayPowerController); in setUp()
54 mSession.startOffload(); in testStartOffload()
55 assertTrue(mSession.isActive()); in testStartOffload()
58 mSession.startOffload(); in testStartOffload()
64 mSession.startOffload(); in testStopOffload()
65 mSession.stopOffload(); in testStopOffload()
67 assertFalse(mSession.isActive()); in testStopOffload()
70 mSession.stopOffload(); in testStopOffload()
76 mSession.updateBrightness(0.3f); in testUpdateBrightness_sessionInactive()
[all …]
/frameworks/base/media/java/android/media/tv/interactive/
DTvInteractiveAppView.java116 private Session mSession; field in TvInteractiveAppView
309 if (mSession == null || !isAttachedToWindow() || mMediaViewCreated) { in createSessionMediaView()
313 mSession.createMediaView(this, mMediaViewFrame); in createSessionMediaView()
318 if (mSession == null || !mMediaViewCreated) { in removeSessionMediaView()
321 mSession.removeMediaView(); in removeSessionMediaView()
327 if (mSession == null || !isAttachedToWindow() || !mMediaViewCreated) { in relayoutSessionMediaView()
334 mSession.relayoutMediaView(viewFrame); in relayoutSessionMediaView()
348 if (mSession == null) { in setSessionSurface()
351 mSession.setSurface(surface); in setSessionSurface()
355 if (mSession == null) { in dispatchSurfaceChanged()
[all …]
/frameworks/base/media/java/android/media/tv/
DTvView.java95 private Session mSession; field in TvView
212 return mSession; in getInputSession()
235 if (hasWindowFocus() && mSession != null) { in setMain()
236 mSession.setMain(); in setMain()
309 if (mSession == null) { in setStreamVolume()
313 mSession.setStreamVolume(volume); in setStreamVolume()
363 if (mSession != null) { in tune()
364 mSession.tune(channelUri, params); in tune()
410 if (mSession != null) { in resetInternal()
414 mSession.release(); in resetInternal()
[all …]
DTvRecordingClient.java49 private TvInputManager.Session mSession; field in TvRecordingClient
156 if (mSession != null) { in tune()
158 mSession.tune(channelUri, params); in tune()
188 if (mSession != null) { in resetInternal()
189 mSession.release(); in resetInternal()
194 mSession = null; in resetInternal()
253 if (mSession != null) { in startRecording()
254 mSession.startRecording(programUri, params); in startRecording()
275 if (mSession != null) { in stopRecording()
276 mSession.stopRecording(); in stopRecording()
[all …]
/frameworks/base/media/java/android/media/tv/ad/
DTvAdView.java81 private TvAdManager.Session mSession; field in TvAdView
178 if (inputSession == null || mSession == null) { in setTvView()
181 mSession.setInputSession(inputSession); in setTvView()
182 inputSession.setAdSession(mSession); in setTvView()
187 if (mSession == null || mSession.getInputSession() == null) { in unsetTvView()
190 mSession.getInputSession().setAdSession(null); in unsetTvView()
191 mSession.setInputSession(null); in unsetTvView()
278 if (mSession != null) { in resetInternal()
282 mSession.release(); in resetInternal()
283 mSession = null; in resetInternal()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DContentRecordingController.java39 private ContentRecordingSession mSession = null; field in ContentRecordingController
52 return mSession; in getContentRecordingSessionLocked()
84 mSession != null && incomingSession != null && mSession.isWaitingForConsent() in setContentRecordingSessionLocked()
86 if (ContentRecordingSession.isProjectionOnSameDisplay(mSession, incomingSession)) { in setContentRecordingSessionLocked()
92 incomingSession.getVirtualDisplayId(), mSession.getVirtualDisplayId()); in setContentRecordingSessionLocked()
98 incomingSession.getVirtualDisplayId(), mSession.getVirtualDisplayId()); in setContentRecordingSessionLocked()
108 mSession == null ? null : mSession.getVirtualDisplayId()); in setContentRecordingSessionLocked()
127 if (mSession != null && !hasSessionUpdatedWithConsent) { in setContentRecordingSessionLocked()
136 mSession = incomingSession; in setContentRecordingSessionLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/hidl/
DHidlToAidlSessionAdapterTest.java50 private IBiometricsFingerprint mSession; field in HidlToAidlSessionAdapterTest
62 mHidlToAidlSessionAdapter = new HidlToAidlSessionAdapter(() -> mSession, mUserId, in setUp()
70 when(mSession.preEnroll()).thenReturn(mChallenge); in testGenerateChallenge()
73 verify(mSession).preEnroll(); in testGenerateChallenge()
81 verify(mSession).postEnroll(); in testRevokeChallenge()
90 verify(mSession).enroll(any(), anyInt(), eq(HidlToAidlSessionAdapter.ENROLL_TIMEOUT_SEC)); in testEnroll()
94 verify(mSession).cancel(); in testEnroll()
103 verify(mSession).authenticate(operationId, mUserId); in testAuthenticate()
107 verify(mSession).cancel(); in testAuthenticate()
115 verify(mSession).authenticate(0 /* operationId */, mUserId); in testDetectInteraction()
[all …]
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerService.java37 private PlayerSession mSession; field in PlayerService
48 if (mSession == null) { in onCreate()
49 mSession = onCreatePlayerController(); in onCreate()
50 mSession.createSession(); in onCreate()
51 mSession.setListener(mPlayerListener); in onCreate()
52 mNotifyHelper = new NotificationHelper(this, mSession.mSession); in onCreate()
73 mSession.onDestroy(); in onDestroy()
74 mSession = null; in onDestroy()
126 mSession.setContent(params); in sendRequest()
128 mSession.setNextContent(params); in sendRequest()
[all …]
DPlayerSession.java42 protected MediaSession mSession; field in PlayerSession
78 mSession = new MediaSession(mContext, "OneMedia"); in createSession()
79 mSession.setCallback(mCallback); in createSession()
80 mSession.setPlaybackState(mPlaybackState); in createSession()
81 mSession.setFlags(MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS in createSession()
83 mSession.setActive(true); in createSession()
96 if (mSession != null) { in releaseSession()
97 mSession.release(); in releaseSession()
98 mSession = null; in releaseSession()
107 return mSession.getSessionToken(); in getSessionToken()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/hidl/
DHidlToAidlSessionAdapterTest.java76 private IBiometricsFace mSession; field in HidlToAidlSessionAdapterTest
97 when(mSession.setCallback(any())).thenReturn(setCallbackResult); in setUp()
103 mHidlToAidlSessionAdapter = new HidlToAidlSessionAdapter(testableContext, () -> mSession, in setUp()
112 when(mSession.generateChallenge(anyInt())).thenReturn(generateChallengeResult); in setUp()
118 verify(mSession).setCallback(any()); in testGenerateChallengeCache()
124 verify(mSession).generateChallenge(CHALLENGE_TIMEOUT_SEC); in testGenerateChallengeCache()
134 verifyNoMoreInteractions(mSession); in testGenerateChallengeCache()
142 verify(mSession, times(2)).generateChallenge(CHALLENGE_TIMEOUT_SEC); in testGenerateChallengeCache()
156 verify(mSession).revokeChallenge(); in testRevokeChallenge_waitsUntilEmpty()
167 verify(mSession).revokeChallenge(); in testRevokeChallenge_timeout()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/complication/
DHideComplicationTouchHandlerTest.java77 TouchHandler.TouchSession mSession; field in HideComplicationTouchHandlerTest
109 when(mSession.getActiveSessionCount()).thenReturn(2); in testSessionEndOnMultipleSessions()
115 touchHandler.onSessionStart(mSession); in testSessionEndOnMultipleSessions()
118 verify(mSession).pop(); in testSessionEndOnMultipleSessions()
142 when(mSession.getActiveSessionCount()).thenReturn(1); in testSessionEndWhenBouncerShowing()
148 touchHandler.onSessionStart(mSession); in testSessionEndWhenBouncerShowing()
151 verify(mSession).pop(); in testSessionEndWhenBouncerShowing()
175 when(mSession.getActiveSessionCount()).thenReturn(1); in testSessionEndWithTouchInInset()
181 touchHandler.onSessionStart(mSession); in testSessionEndWithTouchInInset()
186 verify(mSession).registerInputListener(inputEventListenerCaptor.capture()); in testSessionEndWithTouchInInset()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
DHidlToAidlSessionAdapter.java50 private final Supplier<IBiometricsFingerprint> mSession; field in HidlToAidlSessionAdapter
56 mSession = session; in HidlToAidlSessionAdapter()
68 long challenge = mSession.get().preEnroll(); in generateChallenge()
74 mSession.get().postEnroll(); in revokeChallenge()
80 mSession.get().enroll(HardwareAuthTokenUtils.toByteArray(hat), mUserId, in enroll()
87 mSession.get().authenticate(operationId, mUserId); in authenticate()
93 mSession.get().authenticate(0, mUserId); in detectInteraction()
99 mSession.get().enumerate(); in enumerateEnrollments()
105 mSession.get().remove(mUserId, 0); in removeEnrollments()
107 mSession.get().remove(mUserId, enrollmentIds[0]); in removeEnrollments()
[all …]
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipSession.java238 private final ISipSession mSession; field in SipSession
242 mSession = realSession; in SipSession()
264 return mSession.getLocalIp(); in getLocalIp()
278 return mSession.getLocalProfile(); in getLocalProfile()
293 return mSession.getPeerProfile(); in getPeerProfile()
308 return mSession.getState(); in getState()
322 return mSession.isInCall(); in isInCall()
336 return mSession.getCallId(); in getCallId()
367 mSession.register(duration); in register()
384 mSession.unregister(); in unregister()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/scroll/
DScrollCaptureController.java74 private Session mSession; field in ScrollCaptureController
82 private final Session mSession; field in ScrollCaptureController.LongScreenshot
86 mSession = session; in LongScreenshot()
105 mSession.release(); in release()
130 return mSession.getPageHeight(); in getPageHeight()
200 if (mSession != null) { in onCancelled()
201 mSession.end(); in onCancelled()
208 mSession = mSessionFuture.get(); in onStartComplete()
210 Log.d(TAG, "got session " + mSession); in onStartComplete()
230 mTileFuture = mSession.requestTile(topPx); in requestNextTile()
[all …]
/frameworks/native/services/powermanager/tests/
DPowerHintSessionWrapperTest.cpp62 std::unique_ptr<PowerHintSessionWrapper> mSession = nullptr; member in PowerHintSessionWrapperTest
71 mSession = std::make_unique<PowerHintSessionWrapper>(mMockSession); in SetUp()
72 ASSERT_NE(nullptr, mSession); in SetUp()
78 auto status = mSession->updateTargetWorkDuration(1000000000); in TEST_F()
87 auto status = mSession->reportActualWorkDuration( in TEST_F()
94 auto status = mSession->pause(); in TEST_F()
100 auto status = mSession->resume(); in TEST_F()
106 auto status = mSession->close(); in TEST_F()
114 auto status = mSession->sendHint(::aidl::android::hardware::power::SessionHint::CPU_LOAD_UP); in TEST_F()
120 auto status = mSession->setThreads(std::vector<int32_t>{gettid()}); in TEST_F()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsCall.java593 private ImsCallSession mSession = null; field in ImsCall
709 if (mSession != null) { in close()
710 mSession.close(); in close()
711 mSession = null; in close()
793 if (mSession == null) { in getLocalCallProfile()
799 return mSession.getLocalCallProfile(); in getLocalCallProfile()
814 if (mSession == null) { in getRemoteCallProfile()
820 return mSession.getRemoteCallProfile(); in getRemoteCallProfile()
871 if (mSession == null) { in getState()
875 return mSession.getState(); in getState()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DIInputMethodSessionInvoker.java47 private final IInputMethodSession mSession; field in IInputMethodSessionInvoker
66 mSession = inputMethodSession; in IInputMethodSessionInvoker()
112 mSession.finishInput(); in finishInputInternal()
130 mSession.updateCursorAnchorInfo(cursorAnchorInfo); in updateCursorAnchorInfoInternal()
148 mSession.displayCompletions(completions); in displayCompletionsInternal()
166 mSession.updateExtractedText(token, text); in updateExtractedTextInternal()
184 mSession.appPrivateCommand(action, data); in appPrivateCommandInternal()
202 mSession.viewClicked(focusChanged); in viewClickedInternal()
220 mSession.updateCursor(newCursor); in updateCursorInternal()
242 mSession.updateSelection( in updateSelectionInternal()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/
DFaceInternalEnumerateClientTest.java67 private ISession mSession; field in FaceInternalEnumerateClientTest
88 when(mAidlSession.getSession()).thenReturn(mSession); in setUp()
106 }).when(mSession).enumerateEnrollments(); in internalCleanupClient_noTemplatesRemaining()
110 verify(mSession).enumerateEnrollments(); in internalCleanupClient_noTemplatesRemaining()
122 }).when(mSession).enumerateEnrollments(); in internalCleanupClient_nullIdentifier_remainingOne()
126 verify(mSession).enumerateEnrollments(); in internalCleanupClient_nullIdentifier_remainingOne()
138 }).when(mSession).enumerateEnrollments(); in internalCleanupClient_nullIdentifier_noTemplatesRemaining()
142 verify(mSession).enumerateEnrollments(); in internalCleanupClient_nullIdentifier_noTemplatesRemaining()
155 }).when(mSession).enumerateEnrollments(); in internalCleanupClient_templatesRemaining()
159 verify(mSession).enumerateEnrollments(); in internalCleanupClient_templatesRemaining()
[all …]
/frameworks/native/services/powermanager/
DPowerHintSessionWrapper.cpp38 if (mSession == nullptr) { \
48 return CACHE_SUPPORT(version, HalResult<void>::fromStatus(mSession->name untypedArgs)); \
52 : mSession(session) { in PowerHintSessionWrapper()
53 if (mSession != nullptr) { in PowerHintSessionWrapper()
54 mSession->getInterfaceVersion(&mInterfaceVersion); in PowerHintSessionWrapper()
76 HalResult<SessionConfig>::fromStatus(mSession->getSessionConfig(&config), in getSessionConfig()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/hidl/
DHidlToAidlSessionAdapter.java71 @NonNull private Supplier<IBiometricsFace> mSession; field in HidlToAidlSessionAdapter
82 mSession = session; in HidlToAidlSessionAdapter()
103 mGenerateChallengeResult = mSession.get().generateChallenge(CHALLENGE_TIMEOUT_SEC).value; in generateChallenge()
119 mSession.get().revokeChallenge(); in revokeChallenge()
141 mSession.get().enroll(token, ENROLL_TIMEOUT_SEC, disabledFeatures); in enroll()
147 mSession.get().authenticate(operationId); in authenticate()
153 mSession.get().authenticate(0); in detectInteraction()
159 mSession.get().enumerate(); in enumerateEnrollments()
164 mSession.get().remove(enrollmentIds[0]); in removeEnrollments()
181 final OptionalBool result = mSession.get() in getFeatures()
[all …]
/frameworks/base/omapi/java/android/se/omapi/
DSession.java47 private final ISecureElementSession mSession; field in Session
57 mSession = session; in Session()
83 return mSession.getAtr(); in getATR()
100 mSession.close(); in close()
114 return mSession.isClosed(); in isClosed()
132 mSession.closeChannels(); in closeChannels()
207 ISecureElementChannel channel = mSession.openBasicChannel(aid, p2, in openBasicChannel()
312 ISecureElementChannel channel = mSession.openLogicalChannel( in openLogicalChannel()

12345678