/frameworks/av/media/module/libmediatranscoding/include/media/ |
D | TranscoderInterface.h | 35 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 …]
|
D | TranscoderWrapper.h | 48 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; 73 ClientIdType clientId; 78 using SessionKeyType = std::pair<ClientIdType, SessionIdType>; 91 ClientIdType mCurrentClientId; 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); [all …]
|
D | TranscodingSessionController.h | 51 bool submit(ClientIdType clientId, SessionIdType sessionId, uid_t callingUid, uid_t clientUid, 54 bool cancel(ClientIdType clientId, SessionIdType sessionId) override; 55 bool getSession(ClientIdType clientId, SessionIdType sessionId, 57 bool addClientUid(ClientIdType clientId, SessionIdType sessionId, uid_t clientUid) override; 58 bool getClientUids(ClientIdType clientId, SessionIdType sessionId, 63 void onStarted(ClientIdType clientId, SessionIdType sessionId) override; 64 void onPaused(ClientIdType clientId, SessionIdType sessionId) override; 65 void onResumed(ClientIdType clientId, SessionIdType sessionId) override; 66 void onFinish(ClientIdType clientId, SessionIdType sessionId) override; 67 void onError(ClientIdType clientId, SessionIdType sessionId, TranscodingErrorCode err) override; [all …]
|
D | ControllerClientInterface.h | 39 virtual bool submit(ClientIdType clientId, SessionIdType sessionId, uid_t callingUid, 53 virtual bool cancel(ClientIdType clientId, SessionIdType sessionId) = 0; 60 virtual bool getSession(ClientIdType clientId, SessionIdType sessionId, 69 virtual bool addClientUid(ClientIdType clientId, SessionIdType sessionId, uid_t clientUid) = 0; 83 virtual bool getClientUids(ClientIdType clientId, SessionIdType sessionId,
|
D | TranscodingClientManager.h | 100 status_t removeClient(ClientIdType clientId); 105 std::unordered_map<ClientIdType, std::shared_ptr<ClientImpl>> mClientIdToClientMap 114 static std::atomic<ClientIdType> sCookieCounter; 116 static std::map<ClientIdType, std::shared_ptr<ClientImpl>> sCookie2Client
|
D | TranscodingDefs.h | 28 using ClientIdType = uintptr_t; variable
|
/frameworks/av/media/module/service.mediatranscoding/ |
D | SimulatedTranscoder.h | 45 ClientIdType clientId; 56 void start(ClientIdType clientId, SessionIdType sessionId, 59 void pause(ClientIdType clientId, SessionIdType sessionId) override; 60 void resume(ClientIdType clientId, SessionIdType sessionId, 63 void stop(ClientIdType clientId, SessionIdType sessionId, bool abandon = false) override; 73 using SessionKeyType = std::pair<ClientIdType, SessionIdType>; 78 void queueEvent(Event::Type type, ClientIdType clientId, SessionIdType sessionId,
|
D | SimulatedTranscoder.cpp | 60 ClientIdType clientId, SessionIdType sessionId, const TranscodingRequestParcel& request, in start() 83 void SimulatedTranscoder::pause(ClientIdType clientId, SessionIdType sessionId) { in pause() 93 ClientIdType clientId, SessionIdType sessionId, const TranscodingRequestParcel& /*request*/, in resume() 104 void SimulatedTranscoder::stop(ClientIdType clientId, SessionIdType sessionId, bool abandon) { in stop() 112 void SimulatedTranscoder::queueEvent(Event::Type type, ClientIdType clientId, in queueEvent()
|
/frameworks/av/media/module/libmediatranscoding/ |
D | TranscoderWrapper.cpp | 138 CallbackImpl(const std::shared_ptr<TranscoderWrapper>& owner, ClientIdType clientId, in CallbackImpl() 180 ClientIdType mClientId; 204 void TranscoderWrapper::reportError(ClientIdType clientId, SessionIdType sessionId, in reportError() 225 void TranscoderWrapper::start(ClientIdType clientId, SessionIdType sessionId, in start() 243 void TranscoderWrapper::pause(ClientIdType clientId, SessionIdType sessionId) { in pause() 260 void TranscoderWrapper::resume(ClientIdType clientId, SessionIdType sessionId, in resume() 278 void TranscoderWrapper::stop(ClientIdType clientId, SessionIdType sessionId, bool abandon) { in stop() 303 void TranscoderWrapper::onFinish(ClientIdType clientId, SessionIdType sessionId) { in onFinish() 318 void TranscoderWrapper::onError(ClientIdType clientId, SessionIdType sessionId, in onError() 333 void TranscoderWrapper::onProgress(ClientIdType clientId, SessionIdType sessionId, in onProgress() [all …]
|
D | TranscodingClientManager.cpp | 34 static_assert(sizeof(ClientIdType) == sizeof(void*), "ClientIdType should be pointer-sized"); 44 std::atomic<ClientIdType> TranscodingClientManager::sCookieCounter = 0; 48 std::map<ClientIdType, std::shared_ptr<TranscodingClientManager::ClientImpl>> 73 ClientIdType mClientId; 302 ClientIdType clientId = reinterpret_cast<ClientIdType>(cookie); in BinderDiedCallback() 429 status_t TranscodingClientManager::removeClient(ClientIdType clientId) { in removeClient()
|
D | TranscodingSessionController.cpp | 727 ClientIdType clientId, SessionIdType sessionId, uid_t callingUid, uid_t clientUid, in submit() 769 bool TranscodingSessionController::cancel(ClientIdType clientId, SessionIdType sessionId) { in cancel() 824 bool TranscodingSessionController::addClientUid(ClientIdType clientId, SessionIdType sessionId, in addClientUid() 849 bool TranscodingSessionController::getClientUids(ClientIdType clientId, SessionIdType sessionId, in getClientUids() 869 bool TranscodingSessionController::getSession(ClientIdType clientId, SessionIdType sessionId, in getSession() 884 void TranscodingSessionController::notifyClient(ClientIdType clientId, SessionIdType sessionId, in notifyClient() 910 void TranscodingSessionController::onStarted(ClientIdType clientId, SessionIdType sessionId) { in onStarted() 919 void TranscodingSessionController::onPaused(ClientIdType clientId, SessionIdType sessionId) { in onPaused() 928 void TranscodingSessionController::onResumed(ClientIdType clientId, SessionIdType sessionId) { in onResumed() 937 void TranscodingSessionController::onFinish(ClientIdType clientId, SessionIdType sessionId) { in onFinish() [all …]
|
/frameworks/av/media/module/libmediatranscoding/tests/ |
D | TranscodingClientManager_tests.cpp | 139 bool submit(ClientIdType clientId, SessionIdType sessionId, uid_t /*callingUid*/, in submit() 165 bool addClientUid(ClientIdType clientId, SessionIdType sessionId, uid_t clientUid) override { in addClientUid() 178 bool getClientUids(ClientIdType clientId, SessionIdType sessionId, in getClientUids() 194 bool cancel(ClientIdType clientId, SessionIdType sessionId) override { in cancel() 204 bool getSession(ClientIdType clientId, SessionIdType sessionId, in getSession() 252 typedef std::pair<ClientIdType, SessionIdType> SessionKeyType;
|
D | TranscodingSessionController_tests.cpp | 44 constexpr ClientIdType kClientId = 1000; 125 void start(ClientIdType clientId, SessionIdType sessionId, in start() 130 void pause(ClientIdType clientId, SessionIdType sessionId) override { in pause() 133 void resume(ClientIdType clientId, SessionIdType sessionId, in resume() 138 void stop(ClientIdType clientId, SessionIdType sessionId, bool abandon) override { in stop() 142 void onFinished(ClientIdType clientId, SessionIdType sessionId) { in onFinished() 146 void onFailed(ClientIdType clientId, SessionIdType sessionId, TranscodingErrorCode err) { in onFailed() 157 ClientIdType clientId; 164 static Event action(ClientIdType clientId, SessionIdType sessionId) { \ 237 TestClientCallback(TestTranscoder* owner, ClientIdType clientId, uid_t clientUid) in TestClientCallback() [all …]
|