Searched refs:session (Results 151 - 175 of 243) sorted by relevance

12345678910

/frameworks/base/core/java/android/net/
H A DTrafficStats.java108 * session started, or {@code null} if no session active.
210 * Start profiling data usage for current UID. Only one profiling session
277 public static void closeQuietly(INetworkStatsSession session) { argument
279 if (session != null) {
281 session.close();
H A DSSLCertificateSocketFactory.java49 * <li>Optional SSL session caching with {@link SSLSessionCache}
122 * and SSL session cache.
135 * disabled, using an optional handshake timeout and SSL session cache.
200 SSLSession session = ssl.getSession();
201 if (session == null) {
202 throw new SSLException("Cannot verify SSL socket without session");
204 if (!HttpsURLConnection.getDefaultHostnameVerifier().verify(hostname, session)) {
381 * Enables <a href="http://tools.ietf.org/html/rfc5077#section-3.2">session ticket</a>
385 * @param useSessionTickets {@code true} to enable session ticket support on this socket.
H A DVpnService.java272 * allowed for the rest of the VPN's session. @see Builder#allowFamily
414 * Set the name of this session. It will be displayed in
418 public Builder setSession(String session) { argument
419 mConfig.session = session;
/frameworks/base/core/java/com/android/internal/net/
H A DVpnConfig.java89 public String session; field in class:VpnConfig
149 out.writeString(session);
174 config.session = in.readString();
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
H A DManageDialog.java76 if (mConfig.session != null) {
77 ((TextView) view.findViewById(R.id.session)).setText(mConfig.session);
/frameworks/support/v4/api21/android/support/v4/media/session/
H A DMediaSessionCompatApi21.java17 package android.support.v4.media.session;
27 import android.media.session.MediaSession;
28 import android.media.session.PlaybackState;
/frameworks/support/v4/java/android/support/v4/media/session/
H A DMediaControllerCompat.java17 package android.support.v4.media.session;
33 import android.support.v4.media.session.MediaSessionCompat.QueueItem;
34 import android.support.v4.media.session.PlaybackStateCompat.CustomAction;
43 * Allows an app to interact with an ongoing media session. Media buttons and
44 * other commands can be sent to the session. A callback may be registered to
45 * receive updates from the session, such as metadata and play state changes.
48 * from the session owner.
52 * This is a helper for accessing features in {@link android.media.session.MediaSession}
62 * Creates a media controller from a session.
64 * @param session Th
66 MediaControllerCompat(Context context, MediaSessionCompat session) argument
1143 MediaControllerImplApi21(Context context, MediaSessionCompat session) argument
1353 MediaControllerImplApi23(Context context, MediaSessionCompat session) argument
[all...]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipSessionGroup.java111 // session that processes INVITE requests
279 SipSessionImpl session = mSessionMap.get(key);
280 if ((session != null) && isLoggable(session)) {
287 return ((session != null) ? session : mCallReceiverSession);
302 private synchronized void removeSipSession(SipSessionImpl session) { argument
303 if (session == mCallReceiverSession) return;
304 String key = session.getCallId();
307 if ((s != null) && (s != session)) {
1575 onError(ISipSession session, int errorCode, String message) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaEnvReverbTest.java452 // auxiliary reverb will be chosen by the effect framework as we are on session 0
512 private void getReverb(int session) { argument
513 if (mReverb == null || session != mSession) {
514 if (session != mSession && mReverb != null) {
519 mReverb = new EnvironmentalReverb(0, session);
520 mSession = session;
/frameworks/base/services/core/java/com/android/server/wm/
H A DScreenRotationAnimation.java202 SurfaceSession session, boolean inTransaction, boolean forceDefaultOrientation,
251 mSurfaceControl = new SurfaceTrace(session, "ScreenshotSurface",
257 mSurfaceControl = new SurfaceControl(session, "ScreenshotSurface",
357 public boolean setRotationInTransaction(int rotation, SurfaceSession session, argument
361 return startAnimation(session, maxAnimationDuration, animationScale,
372 private boolean startAnimation(SurfaceSession session, long maxAnimationDuration, argument
548 mCustomBlackFrame = new BlackFrame(session, outer, inner, FREEZE_LAYER + 3,
588 mExitingBlackFrame = new BlackFrame(session, outer, inner, FREEZE_LAYER + 2,
611 mEnteringBlackFrame = new BlackFrame(session, outer, inner, FREEZE_LAYER,
629 public boolean dismiss(SurfaceSession session, lon argument
201 ScreenRotationAnimation(Context context, DisplayContent displayContent, SurfaceSession session, boolean inTransaction, boolean forceDefaultOrientation, boolean isSecure) argument
[all...]
H A DWatermark.java54 Watermark(Display display, DisplayMetrics dm, SurfaceSession session, String[] tokens) { argument
115 ctrl = new SurfaceControl(session, "WatermarkSurface",
/frameworks/base/media/java/android/media/session/
H A DMediaSessionLegacyHelper.java17 package android.media.session;
41 * Helper for connecting existing APIs up to the new session APIs. This can be
42 * used by RCC, AudioFocus, etc. to create a single session that translates to
366 MediaSession session;
367 session = new MediaSession(mContext, TAG + "-" + pi.getCreatorPackage());
368 session.setActive(true);
369 holder = new SessionHolder(session, pi);
462 public SessionHolder(MediaSession session, PendingIntent pi) { argument
463 mSession = session;
H A DMediaSessionManager.java17 package android.media.session;
25 import android.media.session.ISessionManager;
72 * Create a new session in the system and get the binder for it.
202 Log.w(TAG, "Attempted to add session listener twice, ignoring.");
282 * most relevant audio stream or media session. The direction must be one of
301 * Check if the global priority session is currently active. This can be
302 * used to decide if media keys should be sent to the session or to the app.
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEnvReverbTest.java515 private void getEffect(int session) { argument
517 if (sInstances.containsKey(session)) {
518 mReverb = sInstances.get(session);
521 mReverb = new EnvironmentalReverb(0, session);
530 sInstances.put(session, mReverb);
553 private void putEffect(int session) { argument
564 sInstances.remove(session);
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DMediaRouter.java39 import android.support.v4.media.session.MediaSessionCompat;
708 * Sets the media session to enable remote control of the volume of the
711 * session to null to clear it.
713 * @param mediaSession The {@link android.media.session.MediaSession} to
724 * Sets a compat media session to enable remote control of the volume of the
727 * Set the session to null to clear it.
2186 public void setMediaSession(Object session) { argument
2190 if (session == null) {
2193 mMediaSession = new MediaSessionRecord(session);
2198 public void setMediaSessionCompat(final MediaSessionCompat session) { argument
[all...]
/frameworks/base/media/java/android/media/browse/
H A DMediaBrowser.java28 import android.media.session.MediaController;
29 import android.media.session.MediaSession;
272 * Gets the media session token associated with the media browser.
274 * Note that the session token may become invalid or change when when the
278 * @return The session token for the browser, never null.
443 final String root, final MediaSession.Token session, final Bundle extra) {
459 mMediaSessionToken = session;
874 public void onConnect(final String root, final MediaSession.Token session, argument
878 mediaBrowser.onServiceConnected(this, root, session, extras);
442 onServiceConnected(final IMediaBrowserServiceCallbacks callback, final String root, final MediaSession.Token session, final Bundle extra) argument
/frameworks/base/core/java/android/view/
H A DSurfaceControl.java34 private static native long nativeCreate(SurfaceSession session, String name, argument
258 * @param session The surface session, must not be null.
267 public SurfaceControl(SurfaceSession session, argument
270 if (session == null) {
271 throw new IllegalArgumentException("session must not be null");
287 mNativeObject = nativeCreate(session, name, w, h, format, flags);
/frameworks/base/media/java/android/media/tv/
H A DTvInputService.java69 * so by deriving from this class and providing their own session implementation based on
126 Log.w(TAG, "Creating session without input channel");
167 * <p>May return {@code null} if this TV input service fails to create a session for some
171 * @param inputId The ID of the TV input associated with the session.
241 * Base class for derived classes to implement to provide a TV input session.
286 * session is created to enable the overlay view.
316 * Dispatches an event to the application using this session.
342 * session now displays the content from a new channel. This is used to handle special cases
367 * maintain the track information for a given session, which in turn is used by
410 * this method even after the entire track list is updated (but is reset when the session i
[all...]
/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionRecord.java30 import android.media.session.ISession;
31 import android.media.session.ISessionCallback;
32 import android.media.session.ISessionController;
33 import android.media.session.ISessionControllerCallback;
34 import android.media.session.MediaController;
35 import android.media.session.MediaController.PlaybackInfo;
36 import android.media.session.MediaSession;
37 import android.media.session.ParcelableVolumeInfo;
38 import android.media.session.PlaybackState;
69 * The length of time a session wil
[all...]
/frameworks/av/services/audiopolicy/managerdefault/
H A DAudioPolicyManager.cpp666 audio_session_t session,
709 " session %d selectedDeviceId %d",
711 session, selectedDeviceId);
723 mOutputRoutes.addRoute(session, *stream, SessionRoute::SOURCE_TYPE_NA, deviceDesc, uid);
735 *output = getOutputForDevice(device, session, *stream,
739 mOutputRoutes.removeRoute(session);
748 audio_session_t session __unused,
838 // FIXME: We should check the audio session here but we do not have it in this context.
1028 audio_session_t session)
1030 ALOGV("startOutput() output %d, stream %d, session
664 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, const audio_offload_info_t *offloadInfo) argument
1026 startOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
1163 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
1304 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags, audio_port_handle_t selectedDeviceId, input_type_t *inputType) argument
1481 startInput(audio_io_handle_t input, audio_session_t session) argument
1573 stopInput(audio_io_handle_t input, audio_session_t session) argument
1634 releaseInput(audio_io_handle_t input, audio_session_t session) argument
1844 registerEffect(const effect_descriptor_t *desc, audio_io_handle_t io, uint32_t strategy, int session, int id) argument
2681 acquireSoundTriggerSession(audio_session_t *session, audio_io_handle_t *ioHandle, audio_devices_t *device) argument
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioInputDescriptor.cpp106 bool AudioInputDescriptor::hasPreemptedSession(audio_session_t session) const
108 return (mPreemptedSessions.indexOf(session) >= 0);
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyClientImpl.cpp174 status_t AudioPolicyService::AudioPolicyClient::moveEffects(int session, argument
183 return af->moveEffects(session, src_output, dst_output);
/frameworks/base/services/core/java/com/android/server/
H A DInputMethodManagerService.java231 IInputMethodSession session; field in class:InputMethodManagerService.SessionState
239 + " session " + Integer.toHexString(
240 System.identityHashCode(session))
249 session = _session;
410 * Currently enabled session. Only touched by service thread, not
751 public void sessionCreated(IInputMethodSession session) { argument
754 mParentIMMS.onSessionCreated(mMethod, session, mChannel);
1310 final SessionState session = mCurClient.curSession;
1312 executeOrSendMessage(session.method, mCaller.obtainMessageOOO(
1313 MSG_START_INPUT, session, mCurInputContex
1519 onSessionCreated(IInputMethod method, IInputMethodSession session, InputChannel channel) argument
2674 setEnabledSessionInMainThread(SessionState session) argument
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2AgentImpl.java407 public void onCaptureProgressed(CameraCaptureSession session,
414 public void onCaptureCompleted(CameraCaptureSession session,
434 public void onCaptureFailed(CameraCaptureSession session,
586 public void onCaptureProgressed(CameraCaptureSession session,
593 public void onCaptureCompleted(CameraCaptureSession session,
613 public void onCaptureFailed(CameraCaptureSession session,
722 // Avoid initializing another capture session unless we absolutely have to
751 Log.e(TAG, "Failed to create camera capture session", ex);
760 Log.e(TAG, "Failed to close existing camera capture session", ex);
819 // This callback monitors our camera session (
[all...]
/frameworks/base/media/java/android/media/
H A DRemoteController.java26 import android.media.session.MediaController;
27 import android.media.session.MediaSession;
28 import android.media.session.MediaSessionLegacyHelper;
29 import android.media.session.MediaSessionManager;
30 import android.media.session.PlaybackState;
693 * This receives updates when the current session changes. This is
710 * Listens for changes to the active session stack and replaces the
711 * currently tracked session if it has changed.
801 Log.d(TAG, "Registered session listener with component " + listenerComponent
812 Log.d(TAG, "Unregistered session listene
[all...]

Completed in 682 milliseconds

12345678910