/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/media/libmedia/ |
D | IDrm.cpp | 99 virtual status_t openSession(Vector<uint8_t> &sessionId) { in openSession() 104 readVector(reply, sessionId); in openSession() 109 virtual status_t closeSession(Vector<uint8_t> const &sessionId) { in closeSession() 113 writeVector(data, sessionId); in closeSession() 120 getKeyRequest(Vector<uint8_t> const &sessionId, in getKeyRequest() 128 writeVector(data, sessionId); in getKeyRequest() 146 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId, in provideKeyResponse() 151 writeVector(data, sessionId); in provideKeyResponse() 169 virtual status_t restoreKeys(Vector<uint8_t> const &sessionId, in restoreKeys() 174 writeVector(data, sessionId); in restoreKeys() [all …]
|
D | IAudioFlinger.cpp | 97 int *sessionId, in createTrack() argument 121 if (sessionId != NULL) { in createTrack() 122 lSessionId = *sessionId; in createTrack() 135 if (sessionId != NULL) { in createTrack() 136 *sessionId = lSessionId; in createTrack() 156 int *sessionId, in openRecord() argument 171 if (sessionId != NULL) { in openRecord() 172 lSessionId = *sessionId; in openRecord() 184 if (sessionId != NULL) { in openRecord() 185 *sessionId = lSessionId; in openRecord() [all …]
|
D | AudioEffect.cpp | 49 int sessionId, in AudioEffect() argument 54 mStatus = set(type, uuid, priority, cbf, user, sessionId, io); in AudioEffect() 62 int sessionId, in AudioEffect() argument 86 mStatus = set(pType, pUuid, priority, cbf, user, sessionId, io); in AudioEffect() 94 int sessionId, in set() argument 122 mSessionId = sessionId; in set()
|
/frameworks/base/media/java/android/media/ |
D | MediaDrm.java | 192 void onEvent(MediaDrm md, byte[] sessionId, int event, int extra, byte[] data); in onEvent() argument 245 byte[] sessionId = parcel.createByteArray(); in handleMessage() 246 if (sessionId.length == 0) { in handleMessage() 247 sessionId = null; in handleMessage() 253 mOnEventListener.onEvent(mMediaDrm, sessionId, msg.arg1, msg.arg2, data); in handleMessage() 297 public native void closeSession(byte[] sessionId); in closeSession() argument 409 public native void restoreKeys(byte[] sessionId, byte[] keySetId); in restoreKeys() argument 416 public native void removeKeys(byte[] sessionId); in removeKeys() argument 427 public native HashMap<String, String> queryKeyStatus(byte[] sessionId); in queryKeyStatus() argument 560 private static final native void setCipherAlgorithmNative(MediaDrm drm, byte[] sessionId, in setCipherAlgorithmNative() argument [all …]
|
/frameworks/av/drm/mediadrm/plugins/mock/ |
D | MockDrmCryptoPlugin.cpp | 81 status_t MockDrmPlugin::openSession(Vector<uint8_t> &sessionId) in openSession() argument 88 sessionId.appendArray((uint8_t *)&r, sizeof(long)); in openSession() 90 mSessions.add(sessionId); in openSession() 92 ALOGD("MockDrmPlugin::openSession() -> %s", vectorToString(sessionId).string()); in openSession() 96 status_t MockDrmPlugin::closeSession(Vector<uint8_t> const &sessionId) in closeSession() argument 99 ALOGD("MockDrmPlugin::closeSession(%s)", vectorToString(sessionId).string()); in closeSession() 100 ssize_t index = findSession(sessionId); in closeSession() 110 status_t MockDrmPlugin::getKeyRequest(Vector<uint8_t> const &sessionId, in getKeyRequest() argument 119 … vectorToString(sessionId).string(), vectorToString(initData).string(), mimeType.string(), in getKeyRequest() 122 ssize_t index = findSession(sessionId); in getKeyRequest() [all …]
|
D | MockDrmCryptoPlugin.h | 58 status_t openSession(Vector<uint8_t> &sessionId); 59 status_t closeSession(Vector<uint8_t> const &sessionId); 61 status_t getKeyRequest(Vector<uint8_t> const &sessionId, 67 status_t provideKeyResponse(Vector<uint8_t> const &sessionId, 73 status_t restoreKeys(Vector<uint8_t> const &sessionId, 76 status_t queryKeyStatus(Vector<uint8_t> const &sessionId, 96 status_t setCipherAlgorithm(Vector<uint8_t> const &sessionId, 99 status_t setMacAlgorithm(Vector<uint8_t> const &sessionId, 102 status_t encrypt(Vector<uint8_t> const &sessionId, 108 status_t decrypt(Vector<uint8_t> const &sessionId, [all …]
|
/frameworks/av/media/libmediaplayerservice/ |
D | Drm.cpp | 85 Vector<uint8_t> const *sessionId, in sendEvent() argument 94 if (sessionId && sessionId->size()) { in sendEvent() 95 obj.writeInt32(sessionId->size()); in sendEvent() 96 obj.write(sessionId->array(), sessionId->size()); in sendEvent() 269 status_t Drm::openSession(Vector<uint8_t> &sessionId) { in openSession() argument 280 return mPlugin->openSession(sessionId); in openSession() 283 status_t Drm::closeSession(Vector<uint8_t> const &sessionId) { in closeSession() argument 294 return mPlugin->closeSession(sessionId); in closeSession() 297 status_t Drm::getKeyRequest(Vector<uint8_t> const &sessionId, in getKeyRequest() argument 312 return mPlugin->getKeyRequest(sessionId, initData, mimeType, keyType, in getKeyRequest() [all …]
|
D | Drm.h | 46 virtual status_t openSession(Vector<uint8_t> &sessionId); 48 virtual status_t closeSession(Vector<uint8_t> const &sessionId); 51 getKeyRequest(Vector<uint8_t> const &sessionId, 57 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId, 63 virtual status_t restoreKeys(Vector<uint8_t> const &sessionId, 66 virtual status_t queryKeyStatus(Vector<uint8_t> const &sessionId, 85 virtual status_t setCipherAlgorithm(Vector<uint8_t> const &sessionId, 88 virtual status_t setMacAlgorithm(Vector<uint8_t> const &sessionId, 91 virtual status_t encrypt(Vector<uint8_t> const &sessionId, 97 virtual status_t decrypt(Vector<uint8_t> const &sessionId, [all …]
|
/frameworks/native/include/media/drm/ |
D | DrmAPI.h | 101 virtual status_t openSession(Vector<uint8_t> &sessionId) = 0; 104 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0; 159 virtual status_t removeKeys(Vector<uint8_t> const &sessionId) = 0; 163 virtual status_t restoreKeys(Vector<uint8_t> const &sessionId, 172 queryKeyStatus(Vector<uint8_t> const &sessionId, 244 virtual status_t setCipherAlgorithm(Vector<uint8_t> const &sessionId, 253 virtual status_t setMacAlgorithm(Vector<uint8_t> const &sessionId, 259 virtual status_t encrypt(Vector<uint8_t> const &sessionId, 268 virtual status_t decrypt(Vector<uint8_t> const &sessionId, 277 virtual status_t sign(Vector<uint8_t> const &sessionId, [all …]
|
/frameworks/av/include/media/ |
D | IDrm.h | 41 virtual status_t openSession(Vector<uint8_t> &sessionId) = 0; 43 virtual status_t closeSession(Vector<uint8_t> const &sessionId) = 0; 46 getKeyRequest(Vector<uint8_t> const &sessionId, 52 virtual status_t provideKeyResponse(Vector<uint8_t> const &sessionId, 58 virtual status_t restoreKeys(Vector<uint8_t> const &sessionId, 61 virtual status_t queryKeyStatus(Vector<uint8_t> const &sessionId, 81 virtual status_t setCipherAlgorithm(Vector<uint8_t> const &sessionId, 84 virtual status_t setMacAlgorithm(Vector<uint8_t> const &sessionId, 87 virtual status_t encrypt(Vector<uint8_t> const &sessionId, 93 virtual status_t decrypt(Vector<uint8_t> const &sessionId, [all …]
|
D | AudioEffect.h | 232 int sessionId = 0, 244 int sessionId = 0, 266 int sessionId = 0,
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
D | RemotePlaybackClient.java | 177 public void setSessionId(String sessionId) { in setSessionId() argument 178 if (mSessionId != sessionId in setSessionId() 179 && (mSessionId == null || !mSessionId.equals(sessionId))) { in setSessionId() 181 Log.d(TAG, "Session id is now: " + sessionId); in setSessionId() 183 mSessionId = sessionId; in setSessionId() 185 mStatusCallback.onSessionChanged(sessionId); in setSessionId() 583 final String sessionId, final String itemId, in performItemAction() argument 586 if (sessionId != null) { in performItemAction() 587 intent.putExtra(MediaControlIntent.EXTRA_SESSION_ID, sessionId); in performItemAction() 600 String sessionIdResult = inferMissingResult(sessionId, in performItemAction() [all …]
|
/frameworks/av/services/audioflinger/ |
D | Threads.h | 156 int sessionId, 173 sp<EffectChain> getEffectChain(int sessionId); 175 sp<EffectChain> getEffectChain_l(int sessionId) const; 192 sp<AudioFlinger::EffectModule> getEffect(int sessionId, int effectId); 193 sp<AudioFlinger::EffectModule> getEffect_l(int sessionId, int effectId); 204 virtual uint32_t hasAudioSession(int sessionId) const = 0; 207 virtual uint32_t getStrategyForSession_l(int sessionId) { return 0; } in getStrategyForSession_l() argument 213 int sessionId = AUDIO_SESSION_OUTPUT_MIX); 218 int sessionId = AUDIO_SESSION_OUTPUT_MIX); 221 int sessionId = AUDIO_SESSION_OUTPUT_MIX); [all …]
|
D | Threads.cpp | 599 const effect_uuid_t *type, bool suspend, int sessionId) in setEffectSuspended() argument 602 setEffectSuspended_l(type, suspend, sessionId); in setEffectSuspended() 606 const effect_uuid_t *type, bool suspend, int sessionId) in setEffectSuspended_l() argument 608 sp<EffectChain> chain = getEffectChain_l(sessionId); in setEffectSuspended_l() 617 updateSuspendedSessions_l(type, suspend, sessionId); in setEffectSuspended_l() 622 ssize_t index = mSuspendedSessions.indexOfKey(chain->sessionId()); in checkSuspendOnAddEffectChain_l() 646 int sessionId) in updateSuspendedSessions_l() argument 648 ssize_t index = mSuspendedSessions.indexOfKey(sessionId); in updateSuspendedSessions_l() 656 mSuspendedSessions.add(sessionId, sessionEffects); in updateSuspendedSessions_l() 695 sessionId); in updateSuspendedSessions_l() [all …]
|
D | AudioFlinger.cpp | 449 int *sessionId, in createTrack() argument 490 ALOGV("createTrack() sessionId: %d", (sessionId == NULL) ? -2 : *sessionId); in createTrack() 491 if (sessionId != NULL && *sessionId != AUDIO_SESSION_OUTPUT_MIX) { in createTrack() 497 uint32_t sessions = t->hasAudioSession(*sessionId); in createTrack() 504 lSessionId = *sessionId; in createTrack() 508 if (sessionId != NULL) { in createTrack() 509 *sessionId = lSessionId; in createTrack() 909 int sessionId = ids.keyAt(j); in setParameters() local 912 sessionId); in setParameters() 915 sessionId); in setParameters() [all …]
|
D | Effects.h | 48 int sessionId); 79 int sessionId() const { in sessionId() function 242 EffectChain(const wp<ThreadBase>& wThread, int sessionId); 243 EffectChain(ThreadBase *thread, int sessionId); 266 int sessionId() const { return mSessionId; } in sessionId() function 267 void setSessionId(int sessionId) { mSessionId = sessionId; } in setSessionId() argument
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/ |
D | FwdLockConv.c | 194 int sessionId = -1; in FwdLockConv_AcquireSession() local 201 sessionId = i; in FwdLockConv_AcquireSession() 207 return sessionId; in FwdLockConv_AcquireSession() 217 static int FwdLockConv_IsValidSession(int sessionId) { in FwdLockConv_IsValidSession() argument 218 return 0 <= sessionId && sessionId < MAX_NUM_SESSIONS && sessionPtrs[sessionId] != NULL; in FwdLockConv_IsValidSession() 226 static void FwdLockConv_ReleaseSession(int sessionId) { in FwdLockConv_ReleaseSession() argument 228 assert(FwdLockConv_IsValidSession(sessionId)); in FwdLockConv_ReleaseSession() 229 memset(sessionPtrs[sessionId], 0, sizeof *sessionPtrs[sessionId]); // Zero out key data. in FwdLockConv_ReleaseSession() 230 free(sessionPtrs[sessionId]); in FwdLockConv_ReleaseSession() 231 sessionPtrs[sessionId] = NULL; in FwdLockConv_ReleaseSession() [all …]
|
D | FwdLockConv.h | 192 FwdLockConv_Status_t FwdLockConv_ConvertData(int sessionId, 211 FwdLockConv_Status_t FwdLockConv_CloseSession(int sessionId, FwdLockConv_Output_t *pOutput);
|
/frameworks/wilhelm/src/android/ |
D | android_Effect.h | 20 extern void android_eq_init(int sessionId, IEqualizer* ieq); 31 extern void android_bb_init(int sessionId, IBassBoost* ibb); 42 extern void android_virt_init(int sessionId, IVirtualizer* ivi); 80 int sessionId); 132 extern bool android_fx_initEffectObj(int sessionId, android::sp<android::AudioEffect>& effect,
|
D | android_Effect.cpp | 253 void android_bb_init(int sessionId, IBassBoost* ibb) { in android_bb_init() argument 254 SL_LOGV("session %d", sessionId); in android_bb_init() 256 if (!android_fx_initEffectObj(sessionId, ibb->mBassBoostEffect, in android_bb_init() 273 void android_eq_init(int sessionId, IEqualizer* ieq) { in android_eq_init() argument 274 SL_LOGV("android_eq_init on session %d", sessionId); in android_eq_init() 276 if (!android_fx_initEffectObj(sessionId, ieq->mEqEffect, &ieq->mEqDescriptor.type)) { in android_eq_init() 322 void android_virt_init(int sessionId, IVirtualizer* ivi) { in android_virt_init() argument 323 SL_LOGV("android_virt_init on session %d", sessionId); in android_virt_init() 325 if (!android_fx_initEffectObj(sessionId, ivi->mVirtualizerEffect, in android_virt_init() 616 bool android_fx_initEffectObj(int sessionId, android::sp<android::AudioEffect>& effect, in android_fx_initEffectObj() argument [all …]
|
D | android_LocAVPlayer.cpp | 50 mPlaybackParams.sessionId); in onPrepare() 60 mPlaybackParams.sessionId); in onPrepare()
|
/frameworks/base/media/jni/ |
D | android_media_MediaDrm.cpp | 650 Vector<uint8_t> sessionId; in android_media_MediaDrm_openSession() local 651 status_t err = drm->openSession(sessionId); in android_media_MediaDrm_openSession() 657 return VectorToJByteArray(env, sessionId); in android_media_MediaDrm_openSession() 668 Vector<uint8_t> sessionId(JByteArrayToVector(env, jsessionId)); in android_media_MediaDrm_closeSession() local 670 status_t err = drm->closeSession(sessionId); in android_media_MediaDrm_closeSession() 684 Vector<uint8_t> sessionId(JByteArrayToVector(env, jsessionId)); in android_media_MediaDrm_getKeyRequest() local 717 status_t err = drm->getKeyRequest(sessionId, initData, mimeType, in android_media_MediaDrm_getKeyRequest() 750 Vector<uint8_t> sessionId(JByteArrayToVector(env, jsessionId)); in android_media_MediaDrm_provideKeyResponse() local 760 status_t err = drm->provideKeyResponse(sessionId, response, keySetId); in android_media_MediaDrm_provideKeyResponse() 800 Vector<uint8_t> sessionId(JByteArrayToVector(env, jsessionId)); in android_media_MediaDrm_restoreKeys() local [all …]
|
/frameworks/av/media/libeffects/proxy/ |
D | EffectProxy.h | 34 int32_t sessionId, 72 int32_t sessionId; // The sessiond in which the effect is created. member
|
D | EffectProxy.cpp | 54 int32_t sessionId, in EffectProxyCreate() argument 68 pContext->sessionId = sessionId; in EffectProxyCreate() 217 pContext->sessionId, pContext->ioId, in Effect_command() 228 pContext->sessionId, pContext->ioId, in Effect_command()
|