/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/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/av/drm/libmediadrm/ |
D | DrmSessionManager.cpp | 32 static String8 GetSessionIdString(const Vector<uint8_t> &sessionId) { in GetSessionIdString() argument 34 for (size_t i = 0; i < sessionId.size(); ++i) { in GetSessionIdString() 35 sessionIdStr.appendFormat("%u ", sessionId[i]); in GetSessionIdString() 68 int pid, const sp<DrmSessionClientInterface>& drm, const Vector<uint8_t> &sessionId) { in addSession() argument 70 GetSessionIdString(sessionId).string()); in addSession() 75 info.sessionId = sessionId; in addSession() 88 void DrmSessionManager::useSession(const Vector<uint8_t> &sessionId) { in useSession() argument 89 ALOGV("useSession(%s)", GetSessionIdString(sessionId).string()); in useSession() 96 if (isEqualSessionId(sessionId, info.sessionId)) { in useSession() 104 void DrmSessionManager::removeSession(const Vector<uint8_t> &sessionId) { in removeSession() argument [all …]
|
/frameworks/base/core/java/android/service/contentcapture/ |
D | ContentCaptureService.java | 142 public void onSessionStarted(ContentCaptureContext context, int sessionId, int uid, 145 ContentCaptureService.this, context, sessionId, uid, clientReceiver, 150 public void onActivitySnapshot(int sessionId, SnapshotData snapshotData) { 153 ContentCaptureService.this, sessionId, snapshotData)); 157 public void onSessionFinished(int sessionId) { 159 ContentCaptureService.this, sessionId)); 295 @NonNull ContentCaptureSessionId sessionId) { in onCreateContentCaptureSession() argument 297 Log.v(TAG, "onCreateContentCaptureSession(id=" + sessionId + ", ctx=" + context + ")"); in onCreateContentCaptureSession() 308 public void onContentCaptureEvent(@NonNull ContentCaptureSessionId sessionId, in onContentCaptureEvent() argument 310 if (sVerbose) Log.v(TAG, "onContentCaptureEventsRequest(id=" + sessionId + ")"); in onContentCaptureEvent() [all …]
|
/frameworks/base/services/appprediction/java/com/android/server/appprediction/ |
D | RemoteAppPredictionService.java | 77 @NonNull AppPredictionSessionId sessionId) { in onCreatePredictionSession() argument 78 scheduleAsyncRequest((s) -> s.onCreatePredictionSession(context, sessionId)); in onCreatePredictionSession() 84 public void notifyAppTargetEvent(@NonNull AppPredictionSessionId sessionId, in notifyAppTargetEvent() argument 86 scheduleAsyncRequest((s) -> s.notifyAppTargetEvent(sessionId, event)); in notifyAppTargetEvent() 92 public void notifyLaunchLocationShown(@NonNull AppPredictionSessionId sessionId, in notifyLaunchLocationShown() argument 95 -> s.notifyLaunchLocationShown(sessionId, launchLocation, targetIds)); in notifyLaunchLocationShown() 101 public void sortAppTargets(@NonNull AppPredictionSessionId sessionId, in sortAppTargets() argument 103 scheduleAsyncRequest((s) -> s.sortAppTargets(sessionId, targets, callback)); in sortAppTargets() 110 public void registerPredictionUpdates(@NonNull AppPredictionSessionId sessionId, in registerPredictionUpdates() argument 112 scheduleAsyncRequest((s) -> s.registerPredictionUpdates(sessionId, callback)); in registerPredictionUpdates() [all …]
|
D | AppPredictionPerUserService.java | 106 @NonNull AppPredictionSessionId sessionId) { in onCreatePredictionSessionLocked() argument 109 service.onCreatePredictionSession(context, sessionId); in onCreatePredictionSessionLocked() 111 if (!mSessionInfos.containsKey(sessionId)) { in onCreatePredictionSessionLocked() 112 mSessionInfos.put(sessionId, new AppPredictionSessionInfo(sessionId, context, in onCreatePredictionSessionLocked() 122 public void notifyAppTargetEventLocked(@NonNull AppPredictionSessionId sessionId, in notifyAppTargetEventLocked() argument 126 service.notifyAppTargetEvent(sessionId, event); in notifyAppTargetEventLocked() 134 public void notifyLaunchLocationShownLocked(@NonNull AppPredictionSessionId sessionId, in notifyLaunchLocationShownLocked() argument 138 service.notifyLaunchLocationShown(sessionId, launchLocation, targetIds); in notifyLaunchLocationShownLocked() 146 public void sortAppTargetsLocked(@NonNull AppPredictionSessionId sessionId, in sortAppTargetsLocked() argument 150 service.sortAppTargets(sessionId, targets, callback); in sortAppTargetsLocked() [all …]
|
D | AppPredictionManagerService.java | 92 @NonNull AppPredictionSessionId sessionId) { in createPredictionSession() argument 94 (service) -> service.onCreatePredictionSessionLocked(context, sessionId)); in createPredictionSession() 98 public void notifyAppTargetEvent(@NonNull AppPredictionSessionId sessionId, in notifyAppTargetEvent() argument 101 (service) -> service.notifyAppTargetEventLocked(sessionId, event)); in notifyAppTargetEvent() 105 public void notifyLaunchLocationShown(@NonNull AppPredictionSessionId sessionId, in notifyLaunchLocationShown() argument 108 service.notifyLaunchLocationShownLocked(sessionId, launchLocation, targetIds)); in notifyLaunchLocationShown() 112 public void sortAppTargets(@NonNull AppPredictionSessionId sessionId, in sortAppTargets() argument 116 (service) -> service.sortAppTargetsLocked(sessionId, targets, callback)); in sortAppTargets() 120 public void registerPredictionUpdates(@NonNull AppPredictionSessionId sessionId, in registerPredictionUpdates() argument 123 (service) -> service.registerPredictionUpdatesLocked(sessionId, callback)); in registerPredictionUpdates() [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/textclassifier/ |
D | TextClassifierService.java | 115 TextClassificationSessionId sessionId, 120 sessionId, request, mCancellationSignal, new ProxyCallback<>(callback))); 126 TextClassificationSessionId sessionId, 131 sessionId, request, mCancellationSignal, new ProxyCallback<>(callback))); 136 TextClassificationSessionId sessionId, 141 sessionId, request, mCancellationSignal, new ProxyCallback<>(callback))); 146 TextClassificationSessionId sessionId, 150 () -> TextClassifierService.this.onSelectionEvent(sessionId, event)); 155 TextClassificationSessionId sessionId, 159 () -> 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/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/media/libmediaplayerservice/tests/ |
D | DrmSessionManager_test.cpp | 54 virtual bool reclaimSession(const Vector<uint8_t>& sessionId) { in reclaimSession() 55 mReclaimedSessions.push_back(sessionId); in reclaimSession() 87 static void GetSessionId(const uint8_t* ids, size_t num, Vector<uint8_t>* sessionId) { in GetSessionId() argument 89 sessionId->push_back(ids[i]); in GetSessionId() 94 const Vector<uint8_t>& sessionId, int64_t timeStamp) { in ExpectEqSessionInfo() argument 96 EXPECT_TRUE(isEqualSessionId(sessionId, info.sessionId)); in ExpectEqSessionInfo() 141 Vector<uint8_t> sessionId; in testGetLeastUsedSession() local 142 EXPECT_FALSE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession() 146 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession() 148 EXPECT_TRUE(isEqualSessionId(mSessionId1, sessionId)); in testGetLeastUsedSession() [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 | 119 status_t MockCasPlugin::openSession(CasSessionId* sessionId) { in openSession() argument 121 return MockSessionLibrary::get()->addSession(this, sessionId); in openSession() 124 status_t MockCasPlugin::closeSession(const CasSessionId &sessionId) { in closeSession() argument 125 ALOGV("closeSession: sessionId=%s", arrayToString(sessionId).string()); in closeSession() 129 MockSessionLibrary::get()->findSession(sessionId); in closeSession() 134 MockSessionLibrary::get()->destroySession(sessionId); in closeSession() 139 const CasSessionId &sessionId, const CasData& /*data*/) { in setSessionPrivateData() argument 141 arrayToString(sessionId).string()); in setSessionPrivateData() 145 MockSessionLibrary::get()->findSession(sessionId); in setSessionPrivateData() 153 const CasSessionId &sessionId, const CasEcm& ecm) { in processEcm() 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/services/core/java/com/android/server/pm/ |
D | PackageInstallerService.java | 233 unclaimedIcons.remove(buildAppIconFile(session.sessionId)); in systemReady() 314 final int sessionId = allocateSessionIdLocked(); in allocateStageDirLegacy() local 315 mLegacySessions.put(sessionId, true); in allocateStageDirLegacy() 316 final File sessionStageDir = buildTmpSessionDir(sessionId, volumeUuid); in allocateStageDirLegacy() 328 final int sessionId = allocateSessionIdLocked(); in allocateExternalStageCidLegacy() local 329 mLegacySessions.put(sessionId, true); in allocateExternalStageCidLegacy() 330 return "smdl" + sessionId + ".tmp"; in allocateExternalStageCidLegacy() 381 mSessions.put(session.sessionId, session); in readSessionsLocked() 388 mAllocatedSessions.put(session.sessionId, true); in readSessionsLocked() 447 private File buildAppIconFile(int sessionId) { in buildAppIconFile() argument [all …]
|
/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/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/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()
|
/frameworks/base/services/core/java/com/android/server/textclassifier/ |
D | TextClassificationManagerService.java | 134 @Nullable TextClassificationSessionId sessionId, in onSuggestSelection() 147 userState.mService.onSuggestSelection(sessionId, request, callback); in onSuggestSelection() 150 () -> onSuggestSelection(sessionId, request, callback), in onSuggestSelection() 158 @Nullable TextClassificationSessionId sessionId, in onClassifyText() 171 userState.mService.onClassifyText(sessionId, request, callback); in onClassifyText() 174 () -> onClassifyText(sessionId, request, callback), in onClassifyText() 182 @Nullable TextClassificationSessionId sessionId, in onGenerateLinks() 195 userState.mService.onGenerateLinks(sessionId, request, callback); in onGenerateLinks() 198 () -> onGenerateLinks(sessionId, request, callback), in onGenerateLinks() 206 @Nullable TextClassificationSessionId sessionId, SelectionEvent event) in onSelectionEvent() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareClientState.java | 153 int sessionId = session.getSessionId(); in addSession() local 154 if (mSessions.get(sessionId) != null) { in addSession() 155 Log.w(TAG, "createSession: sessionId already exists (replaced) - " + sessionId); in addSession() 158 mSessions.put(sessionId, session); in addSession() 168 public void removeSession(int sessionId) { in removeSession() argument 169 if (mSessions.get(sessionId) == null) { in removeSession() 170 Log.e(TAG, "removeSession: sessionId doesn't exist - " + sessionId); in removeSession() 174 mSessions.delete(sessionId); in removeSession() 183 public WifiAwareDiscoverySessionState terminateSession(int sessionId) { in terminateSession() argument 184 WifiAwareDiscoverySessionState session = mSessions.get(sessionId); in terminateSession() [all …]
|
/frameworks/av/media/libmedia/include/media/ |
D | DrmHal.h | 78 Vector<uint8_t> &sessionId); 80 virtual status_t closeSession(Vector<uint8_t> const &sessionId); 83 getKeyRequest(Vector<uint8_t> const &sessionId, 90 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId, 96 virtual status_t restoreKeys(Vector<uint8_t> const &sessionId, 99 virtual status_t queryKeyStatus(Vector<uint8_t> const &sessionId, 123 virtual status_t getSecurityLevel(Vector<uint8_t> const &sessionId, 139 virtual status_t setCipherAlgorithm(Vector<uint8_t> const &sessionId, 142 virtual status_t setMacAlgorithm(Vector<uint8_t> const &sessionId, 145 virtual status_t encrypt(Vector<uint8_t> const &sessionId, [all …]
|