Home
last modified time | relevance | path

Searched refs:sessionId (Results 1 – 25 of 425) sorted by relevance

12345678910>>...17

/frameworks/base/core/java/android/service/appprediction/
DAppPredictionService.java77 AppPredictionSessionId sessionId) {
80 AppPredictionService.this, context, sessionId));
84 public void notifyAppTargetEvent(AppPredictionSessionId sessionId, AppTargetEvent event) {
87 AppPredictionService.this, sessionId, event));
91 public void notifyLaunchLocationShown(AppPredictionSessionId sessionId,
95 AppPredictionService.this, sessionId, launchLocation,
100 public void sortAppTargets(AppPredictionSessionId sessionId, ParceledListSlice targets,
104 AppPredictionService.this, sessionId, targets.getList(), null,
109 public void registerPredictionUpdates(AppPredictionSessionId sessionId,
113 AppPredictionService.this, sessionId, callback));
[all …]
/frameworks/base/core/java/android/service/smartspace/
DSmartspaceService.java75 SmartspaceSessionId sessionId) {
78 SmartspaceService.this, smartspaceConfig, sessionId));
82 public void notifySmartspaceEvent(SmartspaceSessionId sessionId,
86 SmartspaceService.this, sessionId, event));
90 public void requestSmartspaceUpdate(SmartspaceSessionId sessionId) {
93 SmartspaceService.this, sessionId));
97 public void registerSmartspaceUpdates(SmartspaceSessionId sessionId,
101 SmartspaceService.this, sessionId, callback));
105 public void unregisterSmartspaceUpdates(SmartspaceSessionId sessionId,
109 SmartspaceService.this, sessionId, callback));
[all …]
/frameworks/av/media/libmediatranscoding/
DTranscoderWrapper.cpp128 result = "session {" + std::to_string(event.clientId) + "," + std::to_string(event.sessionId) + in toString()
139 SessionIdType sessionId) in CallbackImpl() argument
140 : mOwner(owner), mClientId(clientId), mSessionId(sessionId) {} in CallbackImpl()
204 void TranscoderWrapper::reportError(ClientIdType clientId, SessionIdType sessionId, in reportError() argument
212 auto it = mPausedStateMap.find(SessionKeyType(clientId, sessionId)); in reportError()
214 mPausedStateMap.emplace(SessionKeyType(clientId, sessionId), in reportError()
218 callback->onResourceLost(clientId, sessionId); in reportError()
220 callback->onError(clientId, sessionId, toTranscodingError(err)); in reportError()
225 void TranscoderWrapper::start(ClientIdType clientId, SessionIdType sessionId, in start() argument
229 queueEvent(Event::Start, clientId, sessionId, [=] { in start()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
DFwdLockFile.c90 int sessionId = -1; in FwdLockFile_AcquireSession() local
104 sessionId = candidateSessionId; in FwdLockFile_AcquireSession()
115 return sessionId; in FwdLockFile_AcquireSession()
126 int sessionId = -1; in FwdLockFile_FindSession() local
136 sessionId = candidateSessionId; in FwdLockFile_FindSession()
145 return sessionId; in FwdLockFile_FindSession()
153 static void FwdLockFile_ReleaseSession(int sessionId) { in FwdLockFile_ReleaseSession() argument
155 assert(0 <= sessionId && sessionId < MAX_NUM_SESSIONS && sessionPtrs[sessionId] != NULL); in FwdLockFile_ReleaseSession()
156 free(sessionPtrs[sessionId]->pContentType); in FwdLockFile_ReleaseSession()
157 free(sessionPtrs[sessionId]->pEncryptedSessionKey); in FwdLockFile_ReleaseSession()
[all …]
/frameworks/base/services/appprediction/java/com/android/server/appprediction/
DAppPredictionPerUserService.java117 @NonNull AppPredictionSessionId sessionId, @NonNull IBinder token) { in onCreatePredictionSessionLocked() argument
128 final boolean serviceExists = resolveService(sessionId, true, in onCreatePredictionSessionLocked()
129 usesPeopleService, s -> s.onCreatePredictionSession(context, sessionId)); in onCreatePredictionSessionLocked()
130 if (serviceExists && !mSessionInfos.containsKey(sessionId)) { in onCreatePredictionSessionLocked()
132 sessionId, context, usesPeopleService, token, () -> { in onCreatePredictionSessionLocked()
134 onDestroyPredictionSessionLocked(sessionId); in onCreatePredictionSessionLocked()
138 mSessionInfos.put(sessionId, sessionInfo); in onCreatePredictionSessionLocked()
141 onDestroyPredictionSessionLocked(sessionId); in onCreatePredictionSessionLocked()
150 public void notifyAppTargetEventLocked(@NonNull AppPredictionSessionId sessionId, in notifyAppTargetEventLocked() argument
152 final AppPredictionSessionInfo sessionInfo = mSessionInfos.get(sessionId); in notifyAppTargetEventLocked()
[all …]
DAppPredictionManagerService.java113 @NonNull AppPredictionSessionId sessionId, @NonNull IBinder token) { in createPredictionSession() argument
114 runForUserLocked("createPredictionSession", sessionId, (service) -> in createPredictionSession()
115 service.onCreatePredictionSessionLocked(context, sessionId, token)); in createPredictionSession()
119 public void notifyAppTargetEvent(@NonNull AppPredictionSessionId sessionId, in notifyAppTargetEvent() argument
121 runForUserLocked("notifyAppTargetEvent", sessionId, in notifyAppTargetEvent()
122 (service) -> service.notifyAppTargetEventLocked(sessionId, event)); in notifyAppTargetEvent()
126 public void notifyLaunchLocationShown(@NonNull AppPredictionSessionId sessionId, in notifyLaunchLocationShown() argument
128 runForUserLocked("notifyLaunchLocationShown", sessionId, (service) -> in notifyLaunchLocationShown()
129 service.notifyLaunchLocationShownLocked(sessionId, launchLocation, targetIds)); in notifyLaunchLocationShown()
133 public void sortAppTargets(@NonNull AppPredictionSessionId sessionId, in sortAppTargets() argument
[all …]
/frameworks/av/drm/libmediadrm/
DDrmHal.cpp62 status_t DrmHal::openSession(DrmPlugin::SecurityLevel securityLevel, Vector<uint8_t>& sessionId) { in openSession() argument
63 if (mDrmHalAidl->initCheck() == OK) return mDrmHalAidl->openSession(securityLevel, sessionId); in openSession()
64 return mDrmHalHidl->openSession(securityLevel, sessionId); in openSession()
67 status_t DrmHal::closeSession(Vector<uint8_t> const& sessionId) { in closeSession() argument
68 if (mDrmHalAidl->initCheck() == OK) return mDrmHalAidl->closeSession(sessionId); in closeSession()
69 return mDrmHalHidl->closeSession(sessionId); in closeSession()
72 status_t DrmHal::getKeyRequest(Vector<uint8_t> const& sessionId, Vector<uint8_t> const& initData, in getKeyRequest() argument
78 return mDrmHalAidl->getKeyRequest(sessionId, initData, mimeType, keyType, in getKeyRequest()
80 return mDrmHalHidl->getKeyRequest(sessionId, initData, mimeType, keyType, optionalParameters, in getKeyRequest()
84 status_t DrmHal::provideKeyResponse(Vector<uint8_t> const& sessionId, in provideKeyResponse() argument
[all …]
DDrmSessionManager.cpp47 static String8 GetSessionIdString(const Vector<uint8_t> &sessionId) { in GetSessionIdString() argument
49 for (size_t i = 0; i < sessionId.size(); ++i) { in GetSessionIdString()
50 sessionIdStr.appendFormat("%u ", sessionId[i]); in GetSessionIdString()
63 const Vector<uint8_t> &sessionId, int64_t value) { in toResourceVec() argument
69 toStdVec<>(sessionId), value}; in toResourceVec()
128 const std::shared_ptr<IResourceManagerClient>& drm, const Vector<uint8_t> &sessionId) { in addSession() argument
131 GetSessionIdString(sessionId).string()); in addSession()
139 mSessionMap[toStdVec(sessionId)] = (SessionInfo){pid, uid, clientId}; in addSession()
140 mService->addResource(pid, uid, clientId++, drm, toResourceVec(sessionId, INT64_MAX)); in addSession()
143 void DrmSessionManager::useSession(const Vector<uint8_t> &sessionId) { in useSession() argument
[all …]
/frameworks/base/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/
DStagedInstallInternalTest.java122 int sessionId = Install.multi(TEST_APEX_WITH_APK_V2, TestApp.A2).setStaged().commit(); in testDuplicateApkInApexShouldFail_Commit() local
123 storeSessionId(sessionId); in testDuplicateApkInApexShouldFail_Commit()
129 int sessionId = retrieveLastSessionId(); in testDuplicateApkInApexShouldFail_Verify() local
131 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in testDuplicateApkInApexShouldFail_Verify()
137 int sessionId = Install.single(TestApp.A1).setStaged().commit(); in testSystemServerRestartDoesNotAffectStagedSessions_Commit() local
139 assertSessionReady(sessionId); in testSystemServerRestartDoesNotAffectStagedSessions_Commit()
140 storeSessionId(sessionId); in testSystemServerRestartDoesNotAffectStagedSessions_Commit()
146 int sessionId = retrieveLastSessionId(); in testSystemServerRestartDoesNotAffectStagedSessions_Verify() local
147 assertSessionReady(sessionId); in testSystemServerRestartDoesNotAffectStagedSessions_Verify()
180 int sessionId = Install.single(TestApp.A1).setStaged().commit(); in testStagedSessionShouldCleanUpOnOnSuccess_Commit() local
[all …]
/frameworks/base/media/java/android/media/
DMediaRoute2ProviderService.java196 public abstract void onSetSessionVolume(long requestId, @NonNull String sessionId, int volume); in onSetSessionVolume() argument
206 public final RoutingSessionInfo getSessionInfo(@NonNull String sessionId) { in getSessionInfo() argument
207 if (TextUtils.isEmpty(sessionId)) { in getSessionInfo()
211 return mSessionInfo.get(sessionId); in getSessionInfo()
253 String sessionId = sessionInfo.getId(); in notifySessionCreated() local
255 if (mSessionInfo.containsKey(sessionId)) { in notifySessionCreated()
283 String sessionId = sessionInfo.getId(); in notifySessionUpdated() local
285 if (mSessionInfo.containsKey(sessionId)) { in notifySessionUpdated()
286 mSessionInfo.put(sessionId, sessionInfo); in notifySessionUpdated()
301 public final void notifySessionReleased(@NonNull String sessionId) { in notifySessionReleased() argument
[all …]
/frameworks/av/services/mediatranscoding/
DSimulatedTranscoder.cpp60 ClientIdType clientId, SessionIdType sessionId, const TranscodingRequestParcel& request, in start() argument
70 sessionId, (long long)processingTimeUs); in start()
71 SessionKeyType key = std::make_pair(clientId, sessionId); in start()
75 queueEvent(Event::Start, clientId, sessionId, [=] { in start()
78 callback->onStarted(clientId, sessionId); in start()
83 void SimulatedTranscoder::pause(ClientIdType clientId, SessionIdType sessionId) { in pause() argument
84 queueEvent(Event::Pause, clientId, sessionId, [=] { in pause()
87 callback->onPaused(clientId, sessionId); in pause()
93 ClientIdType clientId, SessionIdType sessionId, const TranscodingRequestParcel& /*request*/, in resume() argument
96 queueEvent(Event::Resume, clientId, sessionId, [=] { in resume()
[all …]
/frameworks/base/services/smartspace/java/com/android/server/smartspace/
DSmartspacePerUserService.java106 @NonNull SmartspaceSessionId sessionId, @NonNull IBinder token) { in onCreateSmartspaceSessionLocked() argument
107 final boolean serviceExists = resolveService(sessionId, in onCreateSmartspaceSessionLocked()
108 s -> s.onCreateSmartspaceSession(smartspaceConfig, sessionId)); in onCreateSmartspaceSessionLocked()
110 if (serviceExists && !mSessionInfos.containsKey(sessionId)) { in onCreateSmartspaceSessionLocked()
112 sessionId, smartspaceConfig, token, () -> { in onCreateSmartspaceSessionLocked()
114 onDestroyLocked(sessionId); in onCreateSmartspaceSessionLocked()
118 mSessionInfos.put(sessionId, sessionInfo); in onCreateSmartspaceSessionLocked()
121 onDestroyLocked(sessionId); in onCreateSmartspaceSessionLocked()
130 public void notifySmartspaceEventLocked(@NonNull SmartspaceSessionId sessionId, in notifySmartspaceEventLocked() argument
132 final SmartspaceSessionInfo sessionInfo = mSessionInfos.get(sessionId); in notifySmartspaceEventLocked()
[all …]
DSmartspaceManagerService.java108 @NonNull SmartspaceSessionId sessionId, @NonNull IBinder token) { in createSmartspaceSession() argument
109 runForUserLocked("createSmartspaceSession", sessionId, (service) -> in createSmartspaceSession()
110 service.onCreateSmartspaceSessionLocked(smartspaceConfig, sessionId, token)); in createSmartspaceSession()
114 public void notifySmartspaceEvent(SmartspaceSessionId sessionId, in notifySmartspaceEvent() argument
116 runForUserLocked("notifySmartspaceEvent", sessionId, in notifySmartspaceEvent()
117 (service) -> service.notifySmartspaceEventLocked(sessionId, event)); in notifySmartspaceEvent()
121 public void requestSmartspaceUpdate(SmartspaceSessionId sessionId) { in requestSmartspaceUpdate() argument
122 runForUserLocked("requestSmartspaceUpdate", sessionId, in requestSmartspaceUpdate()
123 (service) -> service.requestSmartspaceUpdateLocked(sessionId)); in requestSmartspaceUpdate()
127 public void registerSmartspaceUpdates(@NonNull SmartspaceSessionId sessionId, in registerSmartspaceUpdates() argument
[all …]
/frameworks/av/media/libmediatranscoding/include/media/
DTranscoderInterface.h35 virtual void start(ClientIdType clientId, SessionIdType sessionId,
38 virtual void pause(ClientIdType clientId, SessionIdType sessionId) = 0;
39 virtual void resume(ClientIdType clientId, SessionIdType sessionId,
44 virtual void stop(ClientIdType clientId, SessionIdType sessionId, bool abandon = false) = 0;
55 virtual void onStarted(ClientIdType clientId, SessionIdType sessionId) = 0;
56 virtual void onPaused(ClientIdType clientId, SessionIdType sessionId) = 0;
57 virtual void onResumed(ClientIdType clientId, SessionIdType sessionId) = 0;
58 virtual void onFinish(ClientIdType clientId, SessionIdType sessionId) = 0;
59 virtual void onError(ClientIdType clientId, SessionIdType sessionId,
61 virtual void onProgressUpdate(ClientIdType clientId, SessionIdType sessionId,
[all …]
DTranscoderWrapper.h48 void start(ClientIdType clientId, SessionIdType sessionId,
51 void pause(ClientIdType clientId, SessionIdType sessionId) override;
52 void resume(ClientIdType clientId, SessionIdType sessionId,
55 void stop(ClientIdType clientId, SessionIdType sessionId, bool abandon = false) override;
74 SessionIdType sessionId; member
100 void onFinish(ClientIdType clientId, SessionIdType sessionId);
101 void onError(ClientIdType clientId, SessionIdType sessionId, media_status_t status);
102 void onProgress(ClientIdType clientId, SessionIdType sessionId, int32_t progress);
103 void onHeartBeat(ClientIdType clientId, SessionIdType sessionId);
105 media_status_t handleStart(ClientIdType clientId, SessionIdType sessionId,
[all …]
/frameworks/base/core/java/android/service/storage/
DExternalStorageService.java133 public abstract void onStartSession(@NonNull String sessionId, @SessionFlag int flag, in onStartSession() argument
144 public abstract void onEndSession(@NonNull String sessionId) throws IOException; in onEndSession() argument
194 public void startSession(String sessionId, @SessionFlag int flag, in startSession() argument
199 onStartSession(sessionId, flag, deviceFd, new File(upperPath), in startSession()
201 sendResult(sessionId, null /* throwable */, callback); in startSession()
203 sendResult(sessionId, t, callback); in startSession()
209 public void notifyVolumeStateChanged(String sessionId, StorageVolume vol, in notifyVolumeStateChanged() argument
214 sendResult(sessionId, null /* throwable */, callback); in notifyVolumeStateChanged()
216 sendResult(sessionId, t, callback); in notifyVolumeStateChanged()
222 public void freeCache(String sessionId, String volumeUuid, long bytes, in freeCache() argument
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
DDrmPlugin.h46 virtual status_t openSession(Vector<uint8_t>& sessionId);
48 virtual status_t closeSession(const Vector<uint8_t>& sessionId);
65 virtual status_t removeKeys(const Vector<uint8_t>& sessionId) { in removeKeys() argument
66 if (sessionId.size() == 0) { in removeKeys()
74 const Vector<uint8_t>& sessionId, in restoreKeys() argument
76 if (sessionId.size() == 0 || keySetId.size() == 0) { in restoreKeys()
83 const Vector<uint8_t>& sessionId,
151 virtual status_t getSecurityLevel(Vector<uint8_t> const &sessionId, in getSecurityLevel() argument
153 UNUSED(sessionId); in getSecurityLevel()
158 virtual status_t setSecurityLevel(Vector<uint8_t> const &sessionId, in setSecurityLevel() argument
[all …]
/frameworks/native/headers/media_plugin/media/drm/
DDrmAPI.h198 virtual status_t openSession(Vector<uint8_t> &sessionId) = 0;
201 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0;
257 virtual status_t removeKeys(Vector<uint8_t> const &sessionId) = 0;
261 virtual status_t restoreKeys(Vector<uint8_t> const &sessionId,
270 queryKeyStatus(Vector<uint8_t> const &sessionId,
348 virtual status_t setCipherAlgorithm(Vector<uint8_t> const &sessionId,
357 virtual status_t setMacAlgorithm(Vector<uint8_t> const &sessionId,
363 virtual status_t encrypt(Vector<uint8_t> const &sessionId,
372 virtual status_t decrypt(Vector<uint8_t> const &sessionId,
381 virtual status_t sign(Vector<uint8_t> const &sessionId,
[all …]
/frameworks/av/drm/mediacas/plugins/clearkey/
DClearKeySessionLibrary.cpp54 CasPlugin *plugin, CasSessionId *sessionId) { in addSession() argument
55 CHECK(sessionId); in addSession()
62 sessionId->push_back(byteArray[3]); in addSession()
63 sessionId->push_back(byteArray[2]); in addSession()
64 sessionId->push_back(byteArray[1]); in addSession()
65 sessionId->push_back(byteArray[0]); in addSession()
68 mIDToSessionMap.add(*sessionId, session); in addSession()
73 const CasSessionId& sessionId) { in findSession() argument
76 ssize_t index = mIDToSessionMap.indexOfKey(sessionId); in findSession()
80 return mIDToSessionMap.valueFor(sessionId); in findSession()
[all …]
/frameworks/av/drm/mediacas/plugins/mock/
DMockSessionLibrary.cpp43 CasPlugin *plugin, CasSessionId *sessionId) { in addSession() argument
49 sessionId->push_back(byteArray[3]); in addSession()
50 sessionId->push_back(byteArray[2]); in addSession()
51 sessionId->push_back(byteArray[1]); in addSession()
52 sessionId->push_back(byteArray[0]); in addSession()
55 mIDToSessionMap.add(*sessionId, session); in addSession()
60 const CasSessionId& sessionId) { in findSession() argument
63 ssize_t index = mIDToSessionMap.indexOfKey(sessionId); in findSession()
67 return mIDToSessionMap.valueFor(sessionId); in findSession()
70 void MockSessionLibrary::destroySession(const CasSessionId& sessionId) { in destroySession() argument
[all …]
/frameworks/base/media/java/android/media/metrics/
DMediaMetricsManager.java49 public void reportPlaybackMetrics(@NonNull String sessionId, PlaybackMetrics metrics) { in reportPlaybackMetrics() argument
51 mService.reportPlaybackMetrics(sessionId, metrics, mUserId); in reportPlaybackMetrics()
60 public void reportBundleMetrics(@NonNull String sessionId, PersistableBundle metrics) { in reportBundleMetrics() argument
62 mService.reportBundleMetrics(sessionId, metrics, mUserId); in reportBundleMetrics()
71 public void reportNetworkEvent(@NonNull String sessionId, NetworkEvent event) { in reportNetworkEvent() argument
73 mService.reportNetworkEvent(sessionId, event, mUserId); in reportNetworkEvent()
83 public void reportPlaybackStateEvent(@NonNull String sessionId, PlaybackStateEvent event) { in reportPlaybackStateEvent() argument
85 mService.reportPlaybackStateEvent(sessionId, event, mUserId); in reportPlaybackStateEvent()
95 public void reportTrackChangeEvent(@NonNull String sessionId, TrackChangeEvent event) { in reportTrackChangeEvent() argument
97 mService.reportTrackChangeEvent(sessionId, event, mUserId); in reportTrackChangeEvent()
[all …]
/frameworks/base/core/java/android/service/search/
DSearchUiService.java74 public void onCreateSearchSession(SearchContext context, SearchSessionId sessionId) {
77 SearchUiService.this, context, sessionId));
81 SearchUiService.this, context, sessionId));
85 public void onQuery(SearchSessionId sessionId, Query input,
89 SearchUiService.this, sessionId, input,
94 public void onNotifyEvent(SearchSessionId sessionId, Query query, SearchTargetEvent event) {
97 SearchUiService.this, sessionId, query, event));
101 public void onDestroy(SearchSessionId sessionId) {
104 SearchUiService.this, sessionId));
137 @NonNull SearchSessionId sessionId) {} in onCreateSearchSession() argument
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DSessionLibrary.cpp51 Vector<uint8_t> sessionId; in createSession() local
52 sessionId.appendArray( in createSession()
56 mSessions.add(sessionId, new Session(sessionId)); in createSession()
57 return mSessions.valueFor(sessionId); in createSession()
61 const Vector<uint8_t>& sessionId) { in findSession() argument
63 if (mSessions.indexOfKey(sessionId) < 0) { in findSession()
66 return mSessions.valueFor(sessionId); in findSession()
71 mSessions.removeItem(session->sessionId()); in destroySession()
/frameworks/base/core/java/android/service/textclassifier/
DTextClassifierService.java127 TextClassificationSessionId sessionId,
132 sessionId, request, mCancellationSignal, new ProxyCallback<>(callback)));
138 TextClassificationSessionId sessionId,
143 sessionId, request, mCancellationSignal, new ProxyCallback<>(callback)));
148 TextClassificationSessionId sessionId,
153 sessionId, request, mCancellationSignal, new ProxyCallback<>(callback)));
158 TextClassificationSessionId sessionId,
162 () -> TextClassifierService.this.onSelectionEvent(sessionId, event));
167 TextClassificationSessionId sessionId,
171 () -> TextClassifierService.this.onTextClassifierEvent(sessionId, event));
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DDrmPlugin.h81 Return<Status> closeSession(const hidl_vec<uint8_t>& sessionId) override;
112 Return<Status> removeKeys(const hidl_vec<uint8_t>& sessionId) { in removeKeys()
113 if (sessionId.size() == 0) { in removeKeys()
120 const hidl_vec<uint8_t>& sessionId,
124 const hidl_vec<uint8_t>& sessionId,
179 Return<void> getSecurityLevel(const hidl_vec<uint8_t>& sessionId,
209 const hidl_vec<uint8_t>& sessionId,
218 const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm) { in setCipherAlgorithm()
219 if (sessionId.size() == 0 || algorithm.size() == 0) { in setCipherAlgorithm()
226 const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm) { in setMacAlgorithm()
[all …]

12345678910>>...17