/frameworks/av/media/libmediatranscoding/ |
D | TranscoderWrapper.cpp | 128 result = "session {" + std::to_string(event.clientId) + "," + std::to_string(event.sessionId) + in toString() 138 CallbackImpl(const std::shared_ptr<TranscoderWrapper>& owner, ClientIdType clientId, 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 …]
|
D | TranscodingSessionController.cpp | 727 ClientIdType clientId, SessionIdType sessionId, uid_t callingUid, uid_t clientUid, in submit() argument 730 SessionKeyType sessionKey = std::make_pair(clientId, sessionId); in submit() 769 bool TranscodingSessionController::cancel(ClientIdType clientId, SessionIdType sessionId) { in cancel() argument 770 SessionKeyType sessionKey = std::make_pair(clientId, sessionId); in cancel() 780 if (it->first.first == clientId) { in cancel() 824 bool TranscodingSessionController::addClientUid(ClientIdType clientId, SessionIdType sessionId, in addClientUid() argument 826 SessionKeyType sessionKey = std::make_pair(clientId, sessionId); in addClientUid() 849 bool TranscodingSessionController::getClientUids(ClientIdType clientId, SessionIdType sessionId, in getClientUids() argument 851 SessionKeyType sessionKey = std::make_pair(clientId, sessionId); in getClientUids() 869 bool TranscodingSessionController::getSession(ClientIdType clientId, SessionIdType sessionId, in getSession() argument [all …]
|
/frameworks/av/services/mediatranscoding/ |
D | SimulatedTranscoder.cpp | 60 ClientIdType clientId, SessionIdType sessionId, const TranscodingRequestParcel& request, in start() argument 69 ALOGI("%s: session {%lld, %d}: processingTimeUs: %lld", __FUNCTION__, (long long)clientId, 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 …]
|
D | SimulatedTranscoder.h | 45 ClientIdType clientId; member 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; 78 void queueEvent(Event::Type type, ClientIdType clientId, SessionIdType sessionId,
|
/frameworks/av/media/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; 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 …]
|
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,
|
/frameworks/base/services/core/java/com/android/server/tv/tunerresourcemanager/ |
D | TunerResourceManagerService.java | 164 @NonNull IResourcesReclaimListener listener, @NonNull int[] clientId) in registerClientProfile() argument 172 if (clientId == null) { in registerClientProfile() 185 registerClientProfileInternal(profile, listener, clientId); in registerClientProfile() 190 public void unregisterClientProfile(int clientId) throws RemoteException { in unregisterClientProfile() argument 193 if (!checkClientExists(clientId)) { in unregisterClientProfile() 194 Slog.e(TAG, "Unregistering non exists client:" + clientId); in unregisterClientProfile() 197 unregisterClientProfileInternal(clientId); in unregisterClientProfile() 202 public boolean updateClientPriority(int clientId, int priority, int niceValue) { in updateClientPriority() argument 205 return updateClientPriorityInternal(clientId, priority, niceValue); in updateClientPriority() 218 public boolean isLowestPriority(int clientId, int frontendType) in isLowestPriority() argument [all …]
|
D | ClientProfile.java | 205 public void shareFrontend(int clientId) { in shareFrontend() argument 206 mShareFeClientIds.add(clientId); in shareFrontend() 214 public void stopSharingFrontend(int clientId) { in stopSharingFrontend() argument 215 mShareFeClientIds.remove(clientId); in stopSharingFrontend()
|
/frameworks/base/media/java/android/media/tv/tunerresourcemanager/ |
D | TunerResourceManager.java | 122 @NonNull int[] clientId) { in registerClientProfile() argument 137 }, clientId); in registerClientProfile() 149 public void unregisterClientProfile(int clientId) { in unregisterClientProfile() argument 151 mService.unregisterClientProfile(clientId); in unregisterClientProfile() 174 public boolean updateClientPriority(int clientId, int priority, int niceValue) { in updateClientPriority() argument 177 result = mService.updateClientPriority(clientId, priority, niceValue); in updateClientPriority() 212 public boolean isLowestPriority(int clientId, int frontendType) { in isLowestPriority() argument 215 result = mService.isLowestPriority(clientId, frontendType); in isLowestPriority() 339 public boolean acquireLock(int clientId) { in acquireLock() argument 341 return mService.acquireLock(clientId, Thread.currentThread().getId()); in acquireLock() [all …]
|
/frameworks/base/media/java/android/media/tv/tunerresourcemanager/aidl/android/media/tv/tunerresourcemanager/ |
D | ITunerResourceManager.aidl | 65 IResourcesReclaimListener listener, out int[] clientId); in registerClientProfile() argument 72 void unregisterClientProfile(in int clientId); in unregisterClientProfile() argument 83 boolean updateClientPriority(in int clientId, in int priority, in int niceValue); in updateClientPriority() argument 107 boolean isLowestPriority(in int clientId, in int frontendType); in isLowestPriority() argument 346 void releaseFrontend(in int frontendHandle, int clientId); in releaseFrontend() argument 356 void releaseDemux(in int demuxHandle, int clientId); in releaseDemux() argument 366 void releaseDescrambler(in int descramblerHandle, int clientId); in releaseDescrambler() argument 378 void releaseCasSession(in int casSessionHandle, int clientId); in releaseCasSession() argument 391 void releaseCiCam(in int ciCamHandle, int clientId); in releaseCiCam() argument 403 void releaseLnb(in int lnbHandle, int clientId); in releaseLnb() argument [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ClientWakelockTracker.java | 38 public void startTracking(String clientId, int requestId, int token, int numRequestsInQueue) { in startTracking() argument 39 ClientWakelockAccountant client = getClientWakelockAccountant(clientId); in startTracking() 51 public void stopTracking(String clientId, int requestId, int token, int numRequestsInQueue) { in stopTracking() argument 52 ClientWakelockAccountant client = getClientWakelockAccountant(clientId); in stopTracking() 88 private ClientWakelockAccountant getClientWakelockAccountant(String clientId) { in getClientWakelockAccountant() argument 91 if (mClients.containsKey(clientId)) { in getClientWakelockAccountant() 92 client = mClients.get(clientId); in getClientWakelockAccountant() 94 client = new ClientWakelockAccountant(clientId); in getClientWakelockAccountant() 95 mClients.put(clientId, client); in getClientWakelockAccountant() 111 public boolean isClientActive(String clientId) { in isClientActive() argument [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/tv/tunerresourcemanager/ |
D | TunerResourceManagerServiceTest.java | 251 int[] clientId = new int[1]; in requestFrontendTest_NoFrontendWithGiveTypeAvailable() local 253 profile, null /*listener*/, clientId); in requestFrontendTest_NoFrontendWithGiveTypeAvailable() 254 assertThat(clientId[0]).isNotEqualTo(TunerResourceManagerService.INVALID_CLIENT_ID); in requestFrontendTest_NoFrontendWithGiveTypeAvailable() 263 tunerFrontendRequest(clientId[0] /*clientId*/, FrontendSettings.TYPE_DVBT); in requestFrontendTest_NoFrontendWithGiveTypeAvailable() 274 int[] clientId = new int[1]; in requestFrontendTest_FrontendWithNoExclusiveGroupAvailable() local 276 profile, null /*listener*/, clientId); in requestFrontendTest_FrontendWithNoExclusiveGroupAvailable() 277 assertThat(clientId[0]).isNotEqualTo(TunerResourceManagerService.INVALID_CLIENT_ID); in requestFrontendTest_FrontendWithNoExclusiveGroupAvailable() 296 tunerFrontendRequest(clientId[0] /*clientId*/, FrontendSettings.TYPE_DVBT); in requestFrontendTest_FrontendWithNoExclusiveGroupAvailable() 466 int[] clientId = new int[1]; in releaseFrontendTest_UnderTheSameExclusiveGroup() local 468 mTunerResourceManagerService.registerClientProfileInternal(profiles[0], listener, clientId); in releaseFrontendTest_UnderTheSameExclusiveGroup() [all …]
|
/frameworks/av/services/mediaresourcemanager/aidl/android/media/ |
D | IResourceManagerService.aidl | 56 long clientId, in addResource() argument 67 void removeResource(int pid, long clientId, in MediaResourceParcel[] resources); in removeResource() argument 75 void removeClient(int pid, long clientId); in removeClient() argument 126 void markClientForPendingRemoval(int pid, long clientId); in markClientForPendingRemoval() argument
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraExtensionCharacteristics.java | 360 public void unregisterClient(long clientId) { in unregisterClient() argument 364 mProxy.unregisterClient(clientId); in unregisterClient() 442 public static void unregisterClient(long clientId) { in unregisterClient() argument 443 CameraExtensionManagerGlobal.get().unregisterClient(clientId); in unregisterClient() 558 long clientId = registerClient(mContext); in getSupportedExtensions() local 559 if (clientId < 0) { in getSupportedExtensions() 570 unregisterClient(clientId); in getSupportedExtensions() 603 long clientId = registerClient(mContext); in getExtensionSupportedSizes() local 604 if (clientId < 0) { in getExtensionSupportedSizes() 633 unregisterClient(clientId); in getExtensionSupportedSizes() [all …]
|
/frameworks/av/services/mediaresourcemanager/ |
D | ResourceManagerService.cpp | 55 int64_t clientId); 70 int pid, int64_t clientId) in DeathNotifier() argument 71 : mService(service), mPid(pid), mClientId(clientId) {} in DeathNotifier() 185 static ResourceInfo& getResourceInfoForEdit(uid_t uid, int64_t clientId, in getResourceInfoForEdit() argument 187 ssize_t index = infos.indexOfKey(clientId); in getResourceInfoForEdit() 192 info.clientId = clientId; in getResourceInfoForEdit() 197 index = infos.add(clientId, info); in getResourceInfoForEdit() 271 snprintf(buffer, SIZE, " Id: %lld\n", (long long)infos[j].clientId); in dump() 437 Status ResourceManagerService::addResource(int32_t pid, int32_t uid, int64_t clientId, in addResource() argument 441 pid, (long long) clientId, getString(resources).string()); in addResource() [all …]
|
D | ResourceManagerService.h | 52 int64_t clientId; member 88 Status addResource(int32_t pid, int32_t uid, int64_t clientId, 92 Status removeResource(int32_t pid, int64_t clientId, 95 Status removeClient(int32_t pid, int64_t clientId) override; 108 Status markClientForPendingRemoval(int32_t pid, int64_t clientId) override; 112 Status removeResource(int pid, int64_t clientId, bool checkValid);
|
/frameworks/base/media/java/android/media/ |
D | IAudioFocusDispatcher.aidl | 27 void dispatchAudioFocusChange(int focusChange, String clientId); in dispatchAudioFocusChange() argument 29 void dispatchFocusResultFromExtPolicy(int requestResult, String clientId); in dispatchFocusResultFromExtPolicy() argument
|
D | AudioFocusInfo.java | 58 public AudioFocusInfo(AudioAttributes aa, int clientUid, String clientId, String packageName, in AudioFocusInfo() argument 62 mClientId = clientId == null ? "" : clientId; in AudioFocusInfo()
|
/frameworks/av/drm/libmediadrm/ |
D | DrmSessionManager.cpp | 138 static int64_t clientId = 0; in addSession() local 139 mSessionMap[toStdVec(sessionId)] = (SessionInfo){pid, uid, clientId}; in addSession() 140 mService->addResource(pid, uid, clientId++, drm, toResourceVec(sessionId, INT64_MAX)); in addSession() 153 mService->addResource(info.pid, info.uid, info.clientId, NULL, toResourceVec(sessionId, -1)); in useSession() 167 mService->removeClient(info.pid, info.clientId); in removeSession()
|
/frameworks/av/media/libmediatranscoding/tests/ |
D | TranscodingSessionController_tests.cpp | 125 void start(ClientIdType clientId, SessionIdType sessionId, in start() argument 128 append(Start(clientId, sessionId)); in start() 130 void pause(ClientIdType clientId, SessionIdType sessionId) override { in pause() argument 131 append(Pause(clientId, sessionId)); in pause() 133 void resume(ClientIdType clientId, SessionIdType sessionId, in resume() argument 136 append(Resume(clientId, sessionId)); in resume() 138 void stop(ClientIdType clientId, SessionIdType sessionId, bool abandon) override { in stop() argument 139 append(abandon ? Abandon(clientId, sessionId) : Stop(clientId, sessionId)); in stop() 142 void onFinished(ClientIdType clientId, SessionIdType sessionId) { in onFinished() argument 143 append(Finished(clientId, sessionId)); in onFinished() [all …]
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManagerInternal.java | 150 SyncNotedAppOp startProxyOperation(@NonNull IBinder clientId, int code, in startProxyOperation() argument 168 default void finishOperation(IBinder clientId, int code, int uid, String packageName, in finishOperation() argument 171 superImpl.accept(clientId, code, uid, packageName, attributionTag); in finishOperation() 183 void finishProxyOperation(@NonNull IBinder clientId, int code, in finishProxyOperation() argument
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | MediaFocusControl.java | 951 IAudioFocusDispatcher fd, @NonNull String clientId, @NonNull String callingPackageName, in requestAudioFocus() argument 956 .set(MediaMetrics.Property.CLIENT_NAME, clientId) in requestAudioFocus() 973 + " clientId=" + clientId + " callingPack=" + callingPackageName in requestAudioFocus() 998 & (AudioSystem.IN_VOICE_COMM_FOCUS_ID.compareTo(clientId) == 0); in requestAudioFocus() 1005 clientId, callingPackageName, focusChangeHint, 0 /*lossReceived*/, in requestAudioFocus() 1049 if (!mFocusStack.empty() && mFocusStack.peek().hasSameClient(clientId)) { in requestAudioFocus() 1071 removeFocusStackEntry(clientId, false /* signal */, false /*notifyFocusFollowers*/); in requestAudioFocus() 1074 clientId, afdh, callingPackageName, uid, this, sdk); in requestAudioFocus() 1134 protected int abandonAudioFocus(IAudioFocusDispatcher fl, String clientId, AudioAttributes aa, in abandonAudioFocus() argument 1139 .set(MediaMetrics.Property.CLIENT_NAME, clientId) in abandonAudioFocus() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IAppOpsService.aidl | 42 SyncNotedAppOp startOperation(IBinder clientId, int code, int uid, String packageName, in startOperation() argument 47 void finishOperation(IBinder clientId, int code, int uid, String packageName, in finishOperation() argument 61 SyncNotedAppOp startProxyOperation(IBinder clientId, int code, in startProxyOperation() argument 66 void finishProxyOperation(IBinder clientId, int code, in AttributionSource attributionSource, in finishProxyOperation() argument
|