/frameworks/base/core/java/android/service/appprediction/ |
D | AppPredictionService.java | 79 AppPredictionSessionId sessionId) { 82 AppPredictionService.this, context, sessionId)); 86 public void notifyAppTargetEvent(AppPredictionSessionId sessionId, AppTargetEvent event) { 89 AppPredictionService.this, sessionId, event)); 93 public void notifyLaunchLocationShown(AppPredictionSessionId sessionId, 97 AppPredictionService.this, sessionId, launchLocation, 102 public void sortAppTargets(AppPredictionSessionId sessionId, ParceledListSlice targets, 106 AppPredictionService.this, sessionId, targets.getList(), null, 111 public void registerPredictionUpdates(AppPredictionSessionId sessionId, 115 AppPredictionService.this, sessionId, callback)); [all …]
|
D | IPredictionService.aidl | 34 in AppPredictionSessionId sessionId); in onCreatePredictionSession() argument 36 void notifyAppTargetEvent(in AppPredictionSessionId sessionId, in AppTargetEvent event); in notifyAppTargetEvent() argument 38 void notifyLaunchLocationShown(in AppPredictionSessionId sessionId, in String launchLocation, in notifyLaunchLocationShown() argument 41 void sortAppTargets(in AppPredictionSessionId sessionId, in ParceledListSlice targets, in sortAppTargets() argument 44 void registerPredictionUpdates(in AppPredictionSessionId sessionId, in registerPredictionUpdates() argument 47 void unregisterPredictionUpdates(in AppPredictionSessionId sessionId, in unregisterPredictionUpdates() argument 50 void requestPredictionUpdate(in AppPredictionSessionId sessionId); in requestPredictionUpdate() argument 52 void onDestroyPredictionSession(in AppPredictionSessionId sessionId); in onDestroyPredictionSession() argument
|
/frameworks/base/services/people/java/com/android/server/people/ |
D | PeopleService.java | 91 AppPredictionSessionId sessionId) { in onCreatePredictionSession() argument 92 mSessions.put(sessionId, new SessionInfo(context, mDataManager, sessionId.getUserId())); in onCreatePredictionSession() 96 public void notifyAppTargetEvent(AppPredictionSessionId sessionId, AppTargetEvent event) { in notifyAppTargetEvent() argument 97 runForSession(sessionId, in notifyAppTargetEvent() 102 public void notifyLaunchLocationShown(AppPredictionSessionId sessionId, in notifyLaunchLocationShown() argument 104 runForSession(sessionId, in notifyLaunchLocationShown() 110 public void sortAppTargets(AppPredictionSessionId sessionId, ParceledListSlice targets, in sortAppTargets() argument 112 runForSession(sessionId, in sortAppTargets() 119 public void registerPredictionUpdates(AppPredictionSessionId sessionId, in registerPredictionUpdates() argument 121 runForSession(sessionId, sessionInfo -> sessionInfo.addCallback(callback)); in registerPredictionUpdates() [all …]
|
/frameworks/base/services/appprediction/java/com/android/server/appprediction/ |
D | AppPredictionManagerService.java | 111 @NonNull AppPredictionSessionId sessionId) { in createPredictionSession() argument 112 runForUserLocked("createPredictionSession", sessionId, in createPredictionSession() 113 (service) -> service.onCreatePredictionSessionLocked(context, sessionId)); in createPredictionSession() 117 public void notifyAppTargetEvent(@NonNull AppPredictionSessionId sessionId, in notifyAppTargetEvent() argument 119 runForUserLocked("notifyAppTargetEvent", sessionId, in notifyAppTargetEvent() 120 (service) -> service.notifyAppTargetEventLocked(sessionId, event)); in notifyAppTargetEvent() 124 public void notifyLaunchLocationShown(@NonNull AppPredictionSessionId sessionId, in notifyLaunchLocationShown() argument 126 runForUserLocked("notifyLaunchLocationShown", sessionId, (service) -> in notifyLaunchLocationShown() 127 service.notifyLaunchLocationShownLocked(sessionId, launchLocation, targetIds)); in notifyLaunchLocationShown() 131 public void sortAppTargets(@NonNull AppPredictionSessionId sessionId, in sortAppTargets() argument [all …]
|
D | AppPredictionPerUserService.java | 115 @NonNull AppPredictionSessionId sessionId) { in onCreatePredictionSessionLocked() argument 116 if (!mSessionInfos.containsKey(sessionId)) { in onCreatePredictionSessionLocked() 117 mSessionInfos.put(sessionId, new AppPredictionSessionInfo(sessionId, context, in onCreatePredictionSessionLocked() 122 final boolean serviceExists = resolveService(sessionId, s -> in onCreatePredictionSessionLocked() 123 s.onCreatePredictionSession(context, sessionId), true); in onCreatePredictionSessionLocked() 125 mSessionInfos.remove(sessionId); in onCreatePredictionSessionLocked() 133 public void notifyAppTargetEventLocked(@NonNull AppPredictionSessionId sessionId, in notifyAppTargetEventLocked() argument 135 resolveService(sessionId, s -> s.notifyAppTargetEvent(sessionId, event), false); in notifyAppTargetEventLocked() 142 public void notifyLaunchLocationShownLocked(@NonNull AppPredictionSessionId sessionId, in notifyLaunchLocationShownLocked() argument 144 resolveService(sessionId, s -> in notifyLaunchLocationShownLocked() [all …]
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
D | FwdLockFile.c | 90 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/media/java/android/media/ |
D | MediaRoute2ProviderService.java | 195 public abstract void onSetSessionVolume(long requestId, @NonNull String sessionId, int volume); in onSetSessionVolume() argument 205 public final RoutingSessionInfo getSessionInfo(@NonNull String sessionId) { in getSessionInfo() argument 206 if (TextUtils.isEmpty(sessionId)) { in getSessionInfo() 210 return mSessionInfo.get(sessionId); in getSessionInfo() 252 String sessionId = sessionInfo.getId(); in notifySessionCreated() local 254 if (mSessionInfo.containsKey(sessionId)) { in notifySessionCreated() 282 String sessionId = sessionInfo.getId(); in notifySessionUpdated() local 284 if (mSessionInfo.containsKey(sessionId)) { in notifySessionUpdated() 285 mSessionInfo.put(sessionId, sessionInfo); in notifySessionUpdated() 308 public final void notifySessionReleased(@NonNull String sessionId) { in notifySessionReleased() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | StagingManager.java | 173 PackageInstallerSession storedSession = mStagedSessions.get(sessionInfo.sessionId); in updateStoredSession() 177 mStagedSessions.put(sessionInfo.sessionId, sessionInfo); in updateStoredSession() 247 apexSessionParams.sessionId = session.sessionId; in submitSessionToApexService() 251 apexSessionParams.rollbackId = retrieveRollbackIdForCommitSession(session.sessionId); in submitSessionToApexService() 254 int rollbackId = mSessionRollbackIds.get(session.sessionId, -1); in submitSessionToApexService() 295 Slog.d(TAG, "Session " + session.sessionId + " has following APEX packages: " in submitSessionToApexService() 300 private int retrieveRollbackIdForCommitSession(int sessionId) throws PackageManagerException { in retrieveRollbackIdForCommitSession() argument 306 if (rollback.getCommittedSessionId() == sessionId) { in retrieveRollbackIdForCommitSession() 311 "Could not find rollback id for commit session: " + sessionId); in retrieveRollbackIdForCommitSession() 321 if (!mApexManager.abortStagedSession(session.sessionId)) { in checkRequiredVersionCode() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/ |
D | DrmPlugin.h | 46 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/ |
D | DrmAPI.h | 198 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/base/core/java/android/service/storage/ |
D | ExternalStorageService.java | 123 public abstract void onStartSession(@NonNull String sessionId, @SessionFlag int flag, in onStartSession() argument 134 public abstract void onEndSession(@NonNull String sessionId) throws IOException; in onEndSession() argument 158 public void startSession(String sessionId, @SessionFlag int flag, in startSession() argument 163 onStartSession(sessionId, flag, deviceFd, new File(upperPath), in startSession() 165 sendResult(sessionId, null /* throwable */, callback); in startSession() 167 sendResult(sessionId, t, callback); in startSession() 173 public void notifyVolumeStateChanged(String sessionId, StorageVolume vol, in notifyVolumeStateChanged() argument 178 sendResult(sessionId, null /* throwable */, callback); in notifyVolumeStateChanged() 180 sendResult(sessionId, t, callback); in notifyVolumeStateChanged() 186 public void endSession(String sessionId, RemoteCallback callback) throws RemoteException { in endSession() argument [all …]
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
D | ClearKeySessionLibrary.cpp | 54 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/ |
D | MockSessionLibrary.cpp | 43 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 …]
|
D | MockCasPlugin.cpp | 125 status_t MockCasPlugin::openSession(CasSessionId* sessionId) { in openSession() argument 127 return MockSessionLibrary::get()->addSession(this, sessionId); in openSession() 131 CasSessionId* sessionId) { in openSession() argument 134 return MockSessionLibrary::get()->addSession(this, sessionId); in openSession() 137 status_t MockCasPlugin::closeSession(const CasSessionId &sessionId) { in closeSession() argument 138 ALOGV("closeSession: sessionId=%s", arrayToString(sessionId).string()); in closeSession() 142 MockSessionLibrary::get()->findSession(sessionId); in closeSession() 147 MockSessionLibrary::get()->destroySession(sessionId); in closeSession() 152 const CasSessionId &sessionId, const CasData& /*data*/) { in setSessionPrivateData() argument 154 arrayToString(sessionId).string()); in setSessionPrivateData() [all …]
|
/frameworks/av/drm/libmediadrm/ |
D | DrmSessionManager.cpp | 47 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<int8_t>(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/av/drm/mediadrm/plugins/clearkey/hidl/include/ |
D | DrmPlugin.h | 78 Return<Status> closeSession(const hidl_vec<uint8_t>& sessionId) override; 109 Return<Status> removeKeys(const hidl_vec<uint8_t>& sessionId) { in removeKeys() 110 if (sessionId.size() == 0) { in removeKeys() 117 const hidl_vec<uint8_t>& sessionId, 121 const hidl_vec<uint8_t>& sessionId, 176 Return<void> getSecurityLevel(const hidl_vec<uint8_t>& sessionId, 203 const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm) { in setCipherAlgorithm() 204 if (sessionId.size() == 0 || algorithm.size() == 0) { in setCipherAlgorithm() 211 const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm) { in setMacAlgorithm() 212 if (sessionId.size() == 0 || algorithm.size() == 0) { in setMacAlgorithm() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/ |
D | SessionLibrary.cpp | 51 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/ |
D | TextClassifierService.java | 130 TextClassificationSessionId sessionId, 135 sessionId, request, mCancellationSignal, new ProxyCallback<>(callback))); 141 TextClassificationSessionId sessionId, 146 sessionId, request, mCancellationSignal, new ProxyCallback<>(callback))); 151 TextClassificationSessionId sessionId, 156 sessionId, request, mCancellationSignal, new ProxyCallback<>(callback))); 161 TextClassificationSessionId sessionId, 165 () -> TextClassifierService.this.onSelectionEvent(sessionId, event)); 170 TextClassificationSessionId sessionId, 174 () -> TextClassifierService.this.onTextClassifierEvent(sessionId, event)); [all …]
|
D | ITextClassifierService.aidl | 38 in TextClassificationSessionId sessionId, in onSuggestSelection() argument 43 in TextClassificationSessionId sessionId, in onClassifyText() argument 48 in TextClassificationSessionId sessionId, in onGenerateLinks() argument 54 in TextClassificationSessionId sessionId, in onSelectionEvent() argument 58 in TextClassificationSessionId sessionId, in onTextClassifierEvent() argument 63 in TextClassificationSessionId sessionId); in onCreateTextClassificationSession() argument 66 in TextClassificationSessionId sessionId); in onDestroyTextClassificationSession() argument 69 in TextClassificationSessionId sessionId, in onDetectLanguage() argument 74 in TextClassificationSessionId sessionId, in onSuggestConversationActions() argument
|
/frameworks/base/core/java/android/service/contentcapture/ |
D | ContentCaptureService.java | 153 public void onSessionStarted(ContentCaptureContext context, int sessionId, int uid, 156 ContentCaptureService.this, context, sessionId, uid, clientReceiver, 161 public void onActivitySnapshot(int sessionId, SnapshotData snapshotData) { 164 ContentCaptureService.this, sessionId, snapshotData)); 168 public void onSessionFinished(int sessionId) { 170 ContentCaptureService.this, sessionId)); 310 @NonNull ContentCaptureSessionId sessionId) { in onCreateContentCaptureSession() argument 312 Log.v(TAG, "onCreateContentCaptureSession(id=" + sessionId + ", ctx=" + context + ")"); in onCreateContentCaptureSession() 323 public void onContentCaptureEvent(@NonNull ContentCaptureSessionId sessionId, in onContentCaptureEvent() argument 325 if (sVerbose) Log.v(TAG, "onContentCaptureEventsRequest(id=" + sessionId + ")"); in onContentCaptureEvent() [all …]
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | StorageSessionController.java | 90 String sessionId = vol.getId(); in onVolumeMount() local 101 Slog.i(TAG, "Creating and starting session with id: " + sessionId); in onVolumeMount() 102 connection.startSession(sessionId, deviceFd, vol.getPath().getPath(), in onVolumeMount() 122 String sessionId = vol.getId(); in notifyVolumeStateChanged() local 129 Slog.i(TAG, "Notifying volume state changed for session with id: " + sessionId); in notifyVolumeStateChanged() 130 connection.notifyVolumeStateChanged(sessionId, in notifyVolumeStateChanged() 153 String sessionId = vol.getId(); in onVolumeRemove() local 159 Slog.i(TAG, "Removed session for vol with id: " + sessionId); in onVolumeRemove() 160 connection.removeSession(sessionId); in onVolumeRemove() 163 Slog.w(TAG, "Session already removed for vol with id: " + sessionId); in onVolumeRemove() [all …]
|
/frameworks/base/core/java/android/app/prediction/ |
D | IPredictionManager.aidl | 32 in AppPredictionSessionId sessionId); in createPredictionSession() argument 34 void notifyAppTargetEvent(in AppPredictionSessionId sessionId, in AppTargetEvent event); in notifyAppTargetEvent() argument 36 void notifyLaunchLocationShown(in AppPredictionSessionId sessionId, in String launchLocation, in notifyLaunchLocationShown() argument 39 void sortAppTargets(in AppPredictionSessionId sessionId, in ParceledListSlice targets, in sortAppTargets() argument 42 void registerPredictionUpdates(in AppPredictionSessionId sessionId, in registerPredictionUpdates() argument 45 void unregisterPredictionUpdates(in AppPredictionSessionId sessionId, in unregisterPredictionUpdates() argument 48 void requestPredictionUpdate(in AppPredictionSessionId sessionId); in requestPredictionUpdate() argument 50 void onDestroyPredictionSession(in AppPredictionSessionId sessionId); in onDestroyPredictionSession() argument
|
/frameworks/base/core/java/android/view/autofill/ |
D | IAutoFillManagerClient.aidl | 47 void autofill(int sessionId, in List<AutofillId> ids, in List<AutofillValue> values, in autofill() argument 53 void authenticate(int sessionId, int authenticationId, in IntentSender intent, in authenticate() argument 60 void setTrackedViews(int sessionId, in @nullable AutofillId[] savableIds, in setTrackedViews() argument 67 void requestShowFillUi(int sessionId, in AutofillId id, int width, int height, in requestShowFillUi() argument 73 void requestHideFillUi(int sessionId, in AutofillId id); in requestHideFillUi() argument 79 void notifyNoFillUi(int sessionId, in AutofillId id, int sessionFinishedState); in notifyNoFillUi() argument 84 void notifyFillUiShown(int sessionId, in AutofillId id); in notifyFillUiShown() argument 91 void notifyFillUiHidden(int sessionId, in AutofillId id); in notifyFillUiHidden() argument 98 void dispatchUnhandledKey(int sessionId, in AutofillId id, in KeyEvent keyEvent); in dispatchUnhandledKey() argument 108 void setSaveUiState(int sessionId, boolean shown); in setSaveUiState() argument
|
/frameworks/av/drm/mediadrm/plugins/mock/ |
D | MockDrmCryptoPlugin.cpp | 83 status_t MockDrmPlugin::openSession(Vector<uint8_t> &sessionId) in openSession() argument 90 sessionId.appendArray((uint8_t *)&r, sizeof(long)); in openSession() 92 mSessions.add(sessionId); in openSession() 94 ALOGD("MockDrmPlugin::openSession() -> %s", vectorToString(sessionId).string()); in openSession() 98 status_t MockDrmPlugin::closeSession(Vector<uint8_t> const &sessionId) in closeSession() argument 101 ALOGD("MockDrmPlugin::closeSession(%s)", vectorToString(sessionId).string()); in closeSession() 102 ssize_t index = findSession(sessionId); in closeSession() 112 status_t MockDrmPlugin::getKeyRequest(Vector<uint8_t> const &sessionId, in getKeyRequest() argument 122 … vectorToString(sessionId).string(), vectorToString(initData).string(), mimeType.string(), in getKeyRequest() 125 ssize_t index = findSession(sessionId); in getKeyRequest() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | SessionLibrary.cpp | 56 std::vector<uint8_t> sessionId; in createSession() local 57 sessionId.insert(sessionId.end(), sessionIdRaw, in createSession() 61 sp<Session> >(sessionId, new Session(sessionId))); in createSession() 63 mSessions.find(sessionId); in createSession() 72 const std::vector<uint8_t>& sessionId) { in findSession() argument 75 mSessions.find(sessionId); in findSession() 85 mSessions.erase(session->sessionId()); in destroySession()
|