Home
last modified time | relevance | path

Searched refs:session (Results 1 – 25 of 152) sorted by relevance

1234567

/packages/apps/TV/src/com/android/tv/
DInputSessionManager.java92 TvViewSession session = new TvViewSession(tvView, tunableTvView, callback); in createTvViewSession() local
93 mTvViewSessions.add(session); in createTvViewSession()
94 if (DEBUG) Log.d(TAG, "TvView session created: " + session); in createTvViewSession()
95 return session; in createTvViewSession()
102 public void releaseTvViewSession(TvViewSession session) { in releaseTvViewSession() argument
103 mTvViewSessions.remove(session); in releaseTvViewSession()
104 session.reset(); in releaseTvViewSession()
105 if (DEBUG) Log.d(TAG, "TvView session released: " + session); in releaseTvViewSession()
114 RecordingSession session = new RecordingSession(inputId, tag, callback, handler, endTimeMs); in createRecordingSession() local
115 mRecordingSessions.add(session); in createRecordingSession()
[all …]
/packages/apps/DevCamera/src/com/android/devcamera/
DLoggingCallbacks.java65 public void onConfigured(CameraCaptureSession session) { in onConfigured() argument
67 Log.v(TAG, "Capture session callback onConfigured("+session+")"); in onConfigured()
72 public void onConfigureFailed(CameraCaptureSession session) { in onConfigureFailed() argument
73 Log.v(TAG, "Capture session callback onConfigureFailed("+session+")"); in onConfigureFailed()
74 super.onReady(session); in onConfigureFailed()
78 public void onReady(CameraCaptureSession session) { in onReady() argument
80 Log.v(TAG, "Capture session callback onReady("+session+")"); in onReady()
82 super.onReady(session); in onReady()
86 public void onActive(CameraCaptureSession session) { in onActive() argument
88 Log.v(TAG, "Capture session callback onActive("+session+")"); in onActive()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionary.java276 final DicTraverseSession session = getTraverseSession(sessionId); in getSuggestions() local
277 Arrays.fill(session.mInputCodePoints, Constants.NOT_A_CODE); in getSuggestions()
278 ngramContext.outputToArray(session.mPrevWordCodePointArrays, in getSuggestions()
279 session.mIsBeginningOfSentenceArray); in getSuggestions()
286 session.mInputCodePoints); in getSuggestions()
293 session.mNativeSuggestOptions.setUseFullEditDistance(mUseFullEditDistance); in getSuggestions()
294 session.mNativeSuggestOptions.setIsGesture(isGesture); in getSuggestions()
295 session.mNativeSuggestOptions.setBlockOffensiveWords( in getSuggestions()
297 session.mNativeSuggestOptions.setWeightForLocale(weightForLocale); in getSuggestions()
299 session.mInputOutputWeightOfLangModelVsSpatialModel[0] = in getSuggestions()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/
DConvergedImageCaptureCommand.java119 try (FrameServer.Session session = mFrameServer.createExclusiveSession()) { in run() argument
122 waitForAFConvergence(session); in run()
125 waitForAEConvergence(session); in run()
127 captureBurst(session, imageStream, imageExposureUpdatable, imageSaver); in run()
133 resetRepeating(session); in run()
140 private void waitForAFConvergence(FrameServer.Session session) throws CameraAccessException, in waitForAFConvergence() argument
153 session.submitRequest(Arrays.asList(idleBuilder.build()), in waitForAFConvergence()
156 session.submitRequest(Arrays.asList(triggerBuilder.build()), in waitForAFConvergence()
163 private void waitForAEConvergence(FrameServer.Session session) throws CameraAccessException, in waitForAEConvergence() argument
176 session.submitRequest(Arrays.asList(idleBuilder.build()), in waitForAEConvergence()
[all …]
DPictureTakerImpl.java30 import com.android.camera.session.CaptureSession;
54 CaptureSession session) { in PictureTakerCommand() argument
57 mSession = session; in PictureTakerCommand()
80 public void takePicture(OneCamera.PhotoCaptureParameters params, final CaptureSession session) { in takePicture() argument
94 session); in takePicture()
97 imageExposureCallback, imageSaver, session)); in takePicture()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
DPackageInstallerImpl.java112 PackageInstaller.Session session = null; in install() local
116 session = getSession(packageName); in install()
120 if (session == null) { in install()
132 session = mPackageInstaller.openSession(sessionInfo.getSessionId()); in install()
133 mOpenSessionMap.put(packageName, session); in install()
145 callback, session, in install()
164 PackageInstaller.Session session = mOpenSessionMap.get(packageName); in getSession() local
165 if (session != null) { in getSession()
169 session.getNames(); in getSession()
170 return session; in getSession()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraImpl.java62 import com.android.camera.session.CaptureSession;
92 final CaptureSession session; field in OneCameraImpl.InFlightCapture
97 CaptureSession session) { in InFlightCapture() argument
99 this.session = session; in InFlightCapture()
205 public void onCaptureStarted(CameraCaptureSession session,
217 public void onCaptureProgressed(CameraCaptureSession session,
220 super.onCaptureProgressed(session, request, partialResult);
224 public void onCaptureCompleted(CameraCaptureSession session,
257 super.onCaptureCompleted(session, request, result);
350 public void takePicture(final PhotoCaptureParameters params, final CaptureSession session) { in takePicture() argument
[all …]
DOneCameraZslImpl.java62 import com.android.camera.session.CaptureSession;
241 public ImageCaptureTask(PhotoCaptureParameters parameters, CaptureSession session) { in ImageCaptureTask() argument
243 mSession = session; in ImageCaptureTask()
420 public void takePicture(final PhotoCaptureParameters params, final CaptureSession session) { in takePicture() argument
504 new ImageCaptureTask(params, session), zslConstraints); in takePicture()
530 mCaptureManager.captureNextImage(new ImageCaptureTask(params, session), in takePicture()
558 mCaptureManager.captureNextImage(new ImageCaptureTask(params, session), in takePicture()
611 CaptureSession session, CaptureResult result) { in savePicture() argument
639 ListenableFuture<Optional<Uri>> futureUri = session.saveAndFinish( in savePicture()
690 public void onConfigureFailed(CameraCaptureSession session) { in setup()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DCameraCaptureSessionProxy.java40 public void onCaptureCompleted(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureCompleted() argument
43 public void onCaptureFailed(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureFailed() argument
46 public void onCaptureProgressed(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureProgressed() argument
49 public void onCaptureSequenceAborted(CameraCaptureSessionProxy session, int sequenceId); in onCaptureSequenceAborted() argument
51 public void onCaptureSequenceCompleted(CameraCaptureSessionProxy session, int sequenceId, in onCaptureSequenceCompleted() argument
54 public void onCaptureStarted(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureStarted() argument
59 public void onActive(CameraCaptureSessionProxy session); in onActive() argument
61 public void onClosed(CameraCaptureSessionProxy session); in onClosed() argument
63 public void onConfigureFailed(CameraCaptureSessionProxy session); in onConfigureFailed() argument
65 public void onConfigured(CameraCaptureSessionProxy session); in onConfigured() argument
[all …]
DAndroidCameraDeviceProxy.java43 public void onConfigured(CameraCaptureSession session) { in onConfigured() argument
44 mStateCallback.onConfigured(new AndroidCameraCaptureSessionProxy(session)); in onConfigured()
48 public void onConfigureFailed(CameraCaptureSession session) { in onConfigureFailed() argument
49 mStateCallback.onConfigureFailed(new AndroidCameraCaptureSessionProxy(session)); in onConfigureFailed()
53 public void onReady(CameraCaptureSession session) { in onReady() argument
54 mStateCallback.onReady(new AndroidCameraCaptureSessionProxy(session)); in onReady()
58 public void onActive(CameraCaptureSession session) { in onActive() argument
59 mStateCallback.onActive(new AndroidCameraCaptureSessionProxy(session)); in onActive()
63 public void onClosed(CameraCaptureSession session) { in onClosed() argument
64 mStateCallback.onClosed(new AndroidCameraCaptureSessionProxy(session)); in onClosed()
DAndroidCameraCaptureSessionProxy.java42 public void onCaptureStarted(CameraCaptureSession session, CaptureRequest request, in onCaptureStarted() argument
49 public void onCaptureProgressed(CameraCaptureSession session, CaptureRequest request, in onCaptureProgressed() argument
56 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in onCaptureCompleted() argument
62 public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, in onCaptureFailed() argument
68 public void onCaptureSequenceCompleted(CameraCaptureSession session, int sequenceId, in onCaptureSequenceCompleted() argument
75 public void onCaptureSequenceAborted(CameraCaptureSession session, int sequenceId) { in onCaptureSequenceAborted() argument
82 public AndroidCameraCaptureSessionProxy(CameraCaptureSession session) { in AndroidCameraCaptureSessionProxy() argument
83 mSession = session; in AndroidCameraCaptureSessionProxy()
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionManagerImpl.java17 package com.android.camera.session;
285 public void putSession(Uri sessionUri, CaptureSession session) { in putSession() argument
287 mSessions.put(sessionUri.toString(), session); in putSession() local
355 CaptureSession session = mSessions.get(sessionUri); in fillTemporarySession()
356 listener.onSessionQueued(session.getUri()); in fillTemporarySession()
357 listener.onSessionProgress(session.getUri(), session.getProgress()); in fillTemporarySession()
358 listener.onSessionProgressText(session.getUri(), in fillTemporarySession()
359 session.getProgressMessageId()); in fillTemporarySession()
372 CaptureSession session; in finalizeSession() local
374 session = removeSession(uri); in finalizeSession()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/
DMediaController.java14 import android.media.session.PlaybackState;
15 import android.media.session.MediaSession;
16 import android.media.session.MediaSession.QueueItem;
33 public @NonNull android.media.session.MediaController mDelegate;
34 public android.media.session.MediaController.TransportControls mTransportDelegate;
38 public static MediaController wrap(@Nullable android.media.session.MediaController delegate) { in wrap()
42 public MediaController(@NonNull android.media.session.MediaController delegate) { in MediaController()
48 public android.media.session.MediaController getWrappedInstance() { in getWrappedInstance()
88 public @Nullable android.media.session.MediaController.PlaybackInfo getPlaybackInfo() { in getPlaybackInfo()
139 public boolean controlsSameSession(android.media.session.MediaController other) { in controlsSameSession()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
DCaptureSessionCreator.java60 public void onActive(CameraCaptureSessionProxy session) { in createCaptureSession()
65 public void onConfigureFailed(CameraCaptureSessionProxy session) { in createCaptureSession()
67 session.close(); in createCaptureSession()
71 public void onConfigured(CameraCaptureSessionProxy session) { in createCaptureSession()
72 boolean valueSet = sessionFuture.set(session); in createCaptureSession()
76 session.close(); in createCaptureSession()
81 public void onReady(CameraCaptureSessionProxy session) { in createCaptureSession()
86 public void onClosed(CameraCaptureSessionProxy session) { in createCaptureSession()
88 session.close(); in createCaptureSession()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DPackageInstallerCompatVL.java125 SessionInfo session = verify(mInstaller.getSessionInfo(sessionId));
126 if (session != null && session.getAppPackageName() != null) {
127 sendUpdate(PackageInstallInfo.fromInstallingState(session));
140 SessionInfo session = verify(mInstaller.getSessionInfo(sessionId));
141 if (session != null && session.getAppPackageName() != null) {
142 mActiveSessions.put(sessionId, session.getAppPackageName());
143 addSessionInfoToCache(session, Process.myUserHandle());
146 app.getModel().updateSessionDisplayInfo(session.getAppPackageName());
148 return session;
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DInstallInstalling.java329 PackageInstaller.Session session; in doInBackground() local
331 session = getPackageManager().getPackageInstaller().openSession(mSessionId); in doInBackground()
336 session.setStagingProgress(0); in doInBackground()
343 try (OutputStream out = session in doInBackground()
350 session.fsync(out); in doInBackground()
355 session.close(); in doInBackground()
362 session.addProgress(fraction); in doInBackground()
368 return session; in doInBackground()
372 session.close(); in doInBackground()
384 protected void onPostExecute(PackageInstaller.Session session) { in onPostExecute() argument
[all …]
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceCaptureToolsImpl.java29 import com.android.camera.session.CaptureSession;
30 import com.android.camera.session.CaptureSessionManager;
31 import com.android.camera.session.CaptureSessionManagerImpl;
32 import com.android.camera.session.SessionStorageManagerImpl;
172 final CaptureSession session = in takePictureNow() local
174 session.startEmpty(null, openedCamera.getPictureSize()); in takePictureNow()
179 session.getCollector().decorateAtTimeCaptureRequest( in takePictureNow()
181 session.getTitle() + ".jpg", in takePictureNow()
194 session.getTitle(), in takePictureNow()
196 session.getLocation(), in takePictureNow()
[all …]
/packages/apps/Camera2/src/com/android/camera/app/
DCameraServicesImpl.java25 import com.android.camera.session.CaptureSessionFactory;
26 import com.android.camera.session.CaptureSessionFactoryImpl;
27 import com.android.camera.session.CaptureSessionManager;
28 import com.android.camera.session.CaptureSessionManagerImpl;
29 import com.android.camera.session.PlaceholderManager;
30 import com.android.camera.session.SessionStorageManager;
31 import com.android.camera.session.SessionStorageManagerImpl;
32 import com.android.camera.session.StackSaverFactory;
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
DTunerTvInputService.java98 final TunerSession session = new TunerSession(this, mChannelDataManager); in onCreateSession() local
99 mTunerSessions.add(session); in onCreateSession()
100 session.setAudioCapabilities(mAudioCapabilities); in onCreateSession()
101 session.setOverlayViewEnabled(true); in onCreateSession()
102 return session; in onCreateSession()
113 for (TunerSession session : mTunerSessions) { in onAudioCapabilitiesChanged()
114 if (!session.isReleased()) { in onAudioCapabilitiesChanged()
115 session.setAudioCapabilities(audioCapabilities); in onAudioCapabilitiesChanged()
/packages/apps/Camera2/src/com/android/camera/processing/
DProcessingService.java35 import com.android.camera.session.CaptureSession;
36 import com.android.camera.session.CaptureSession.ProgressListener;
37 import com.android.camera.session.CaptureSessionManager;
222 CaptureSession session = task.getSession(); in processAndNotify() local
226 if (session == null) { in processAndNotify()
228 session = mSessionManager.createNewSession(task.getName(), 0, task.getLocation()); in processAndNotify()
234 session.addProgressListener(this); in processAndNotify()
238 task.process(this, getServices(), session); in processAndNotify()
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/
DJpegImageBackendImageSaver.java37 import com.android.camera.session.CaptureSession;
65 public ImageSaverImpl(CaptureSession session, in ImageSaverImpl() argument
68 mSession = session; in ImageSaverImpl()
105 CaptureSession session, in JpegImageProcessorListener() argument
109 mSession = session; in JpegImageProcessorListener()
205 @Nonnull CaptureSession session) { in build() argument
212 proxyListener, session, imageRotation, pictureSaverCallback); in build()
213 return new MostRecentImageSaver(new ImageSaverImpl(session, in build()
DYuvImageBackendImageSaver.java34 import com.android.camera.session.CaptureSession;
65 public ImageSaverImpl(CaptureSession session, in ImageSaverImpl() argument
68 mSession = session; in ImageSaverImpl()
104 private YuvImageProcessorListener(CaptureSession session, in YuvImageProcessorListener() argument
107 mSession = session; in YuvImageProcessorListener()
214 @Nonnull CaptureSession session) { in build() argument
219 session, imageRotation, pictureSaverCallback); in build()
220 return new MostRecentImageSaver(new ImageSaverImpl(session, imageRotation, in build()
/packages/apps/Camera2/src/com/android/camera/one/v2/autofocus/
DFullAFScanCommand.java64 FrameServer.Session session = mFrameServer.tryCreateExclusiveSession(); in run() local
65 if (session == null) { in run()
76 session.submitRequest(Arrays.asList(idleBuilder.build()), in run()
88 session.submitRequest(Arrays.asList(cancelBuilder.build()), in run()
93 session.submitRequest(Arrays.asList(idleBuilder.build()), in run()
98 session.submitRequest(Arrays.asList(triggerBuilder.build()), in run()
107 session.close(); in run()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModule.java72 import com.android.camera.session.CaptureSession;
507 private void decorateSessionAtCaptureTime(CaptureSession session) { in decorateSessionAtCaptureTime() argument
515 session.getCollector().decorateAtTimeCaptureRequest( in decorateSessionAtCaptureTime()
517 session.getTitle() + ".jpg", in decorateSessionAtCaptureTime()
536 CaptureSession session = createAndStartCaptureSession(); in takePictureNow() local
543 session.getTitle(), orientation, session.getLocation(), in takePictureNow()
546 decorateSessionAtCaptureTime(session); in takePictureNow()
547 mCamera.takePicture(params, session); in takePictureNow()
558 CaptureSession session = getServices().getCaptureSessionManager() in createAndStartCaptureSession() local
561 session.startEmpty(new CaptureStats(mHdrPlusEnabled), in createAndStartCaptureSession()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DHeadsetMediaButton.java22 import android.media.session.MediaSession;
68 MediaSession session = new MediaSession(
71 session.setCallback(mSessionCallback);
72 session.setFlags(MediaSession.FLAG_EXCLUSIVE_GLOBAL_PRIORITY
74 session.setPlaybackToLocal(AUDIO_ATTRIBUTES);
75 mSession = session;

1234567