Home
last modified time | relevance | path

Searched refs:uniqueId (Results 1 – 25 of 141) sorted by relevance

123456

/frameworks/av/drm/common/
DDrmEngineBase.cpp30 int uniqueId, const String8* path, int action) { in getConstraints() argument
31 return onGetConstraints(uniqueId, path, action); in getConstraints()
34 DrmMetadata* DrmEngineBase::getMetadata(int uniqueId, const String8* path) { in getMetadata() argument
35 return onGetMetadata(uniqueId, path); in getMetadata()
38 status_t DrmEngineBase::initialize(int uniqueId) { in initialize() argument
39 return onInitialize(uniqueId); in initialize()
43 int uniqueId, const IDrmEngine::OnInfoListener* infoListener) { in setOnInfoListener() argument
44 return onSetOnInfoListener(uniqueId, infoListener); in setOnInfoListener()
47 status_t DrmEngineBase::terminate(int uniqueId) { in terminate() argument
48 return onTerminate(uniqueId); in terminate()
[all …]
DIDrmManagerService.cpp123 void BpDrmManagerService::removeUniqueId(int uniqueId) { in removeUniqueId() argument
127 data.writeInt32(uniqueId); in removeUniqueId()
131 void BpDrmManagerService::addClient(int uniqueId) { in addClient() argument
134 data.writeInt32(uniqueId); in addClient()
138 void BpDrmManagerService::removeClient(int uniqueId) { in removeClient() argument
141 data.writeInt32(uniqueId); in removeClient()
146 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener) { in setDrmServiceListener() argument
151 data.writeInt32(uniqueId); in setDrmServiceListener()
158 int uniqueId, const String8* path, const int action) { in getConstraints() argument
163 data.writeInt32(uniqueId); in getConstraints()
[all …]
/frameworks/av/drm/common/include/
DDrmEngineBase.h37 DrmConstraints* getConstraints(int uniqueId, const String8* path, int action);
39 DrmMetadata* getMetadata(int uniqueId, const String8* path);
41 status_t initialize(int uniqueId);
43 status_t setOnInfoListener(int uniqueId, const IDrmEngine::OnInfoListener* infoListener);
45 status_t terminate(int uniqueId);
47 bool canHandle(int uniqueId, const String8& path);
49 DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo);
51 status_t saveRights(int uniqueId, const DrmRights& drmRights,
54 DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest);
56 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
[all …]
DIDrmManagerService.h87 virtual void removeUniqueId(int uniqueId) = 0;
89 virtual void addClient(int uniqueId) = 0;
91 virtual void removeClient(int uniqueId) = 0;
94 int uniqueId, const sp<IDrmServiceListener>& infoListener) = 0;
97 int uniqueId, const String8* path, const int action) = 0;
99 virtual DrmMetadata* getMetadata(int uniqueId, const String8* path) = 0;
101 virtual bool canHandle(int uniqueId, const String8& path, const String8& mimeType) = 0;
103 virtual DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo) = 0;
105 virtual DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInforequest) = 0;
107 virtual status_t saveRights(int uniqueId, const DrmRights& drmRights,
[all …]
DIDrmEngine.h67 virtual status_t initialize(int uniqueId) = 0;
79 int uniqueId, const IDrmEngine::OnInfoListener* infoListener) = 0;
90 virtual status_t terminate(int uniqueId) = 0;
105 int uniqueId, const String8* path, int action) = 0;
117 virtual DrmMetadata* getMetadata(int uniqueId, const String8* path) = 0;
127 virtual bool canHandle(int uniqueId, const String8& path) = 0;
137 virtual DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo) = 0;
148 virtual DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest) = 0;
161 virtual status_t saveRights(int uniqueId, const DrmRights& drmRights,
173 virtual String8 getOriginalMimeType(int uniqueId, const String8& path, int fd) = 0;
[all …]
/frameworks/av/drm/libdrmframework/include/
DNoOpDrmManagerClientImpl.h28 void remove(int uniqueId);
29 void addClient(int uniqueId);
30 void removeClient(int uniqueId);
32 int uniqueId, const sp<DrmManagerClient::OnInfoListener>& infoListener);
33 DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action);
35 DrmMetadata* getMetadata(int uniqueId, const String8* path);
36 bool canHandle(int uniqueId, const String8& path, const String8& mimeType);
37 DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo);
38 DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest);
39 status_t saveRights(int uniqueId, const DrmRights& drmRights,
[all …]
DDrmManagerClientImpl.h46 virtual void remove(int uniqueId);
53 virtual void addClient(int uniqueId);
60 virtual void removeClient(int uniqueId);
72 int uniqueId, const sp<DrmManagerClient::OnInfoListener>& infoListener);
86 virtual DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action);
98 virtual DrmMetadata* getMetadata(int uniqueId, const String8* path);
109 virtual bool canHandle(int uniqueId, const String8& path, const String8& mimeType);
119 virtual DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo);
130 virtual DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest);
143 virtual status_t saveRights(int uniqueId, const DrmRights& drmRights,
[all …]
/frameworks/av/drm/libdrmframework/plugins/passthru/include/
DDrmPassthruPlugIn.h31 DrmConstraints* onGetConstraints(int uniqueId, const String8* path, int action);
33 DrmMetadata* onGetMetadata(int uniqueId, const String8* path);
35 status_t onInitialize(int uniqueId);
37 status_t onSetOnInfoListener(int uniqueId, const IDrmEngine::OnInfoListener* infoListener);
39 status_t onTerminate(int uniqueId);
41 bool onCanHandle(int uniqueId, const String8& path);
43 DrmInfoStatus* onProcessDrmInfo(int uniqueId, const DrmInfo* drmInfo);
45 status_t onSaveRights(int uniqueId, const DrmRights& drmRights,
48 DrmInfo* onAcquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest);
50 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd);
[all …]
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
DDrmPassthruPlugIn.cpp63 int uniqueId, const String8* /*path*/, int /*action*/) { in onGetConstraints() argument
64 ALOGV("DrmPassthruPlugIn::onGetConstraints From Path: %d", uniqueId); in onGetConstraints()
79 DrmInfoStatus* DrmPassthruPlugIn::onProcessDrmInfo(int uniqueId, const DrmInfo* drmInfo) { in onProcessDrmInfo() argument
80 ALOGV("DrmPassthruPlugIn::onProcessDrmInfo - Enter : %d", uniqueId); in onProcessDrmInfo()
114 int uniqueId, const IDrmEngine::OnInfoListener* /*infoListener*/) { in onSetOnInfoListener() argument
115 ALOGV("DrmPassthruPlugIn::onSetOnInfoListener : %d", uniqueId); in onSetOnInfoListener()
119 status_t DrmPassthruPlugIn::onInitialize(int uniqueId) { in onInitialize() argument
120 ALOGV("DrmPassthruPlugIn::onInitialize : %d", uniqueId); in onInitialize()
124 status_t DrmPassthruPlugIn::onTerminate(int uniqueId) { in onTerminate() argument
125 ALOGV("DrmPassthruPlugIn::onTerminate : %d", uniqueId); in onTerminate()
[all …]
/frameworks/av/drm/drmserver/
DDrmManagerService.cpp147 void DrmManagerService::removeUniqueId(int uniqueId) { in removeUniqueId() argument
148 mDrmManager->removeUniqueId(uniqueId); in removeUniqueId()
151 void DrmManagerService::addClient(int uniqueId) { in addClient() argument
152 mDrmManager->addClient(uniqueId); in addClient()
155 void DrmManagerService::removeClient(int uniqueId) { in removeClient() argument
156 mDrmManager->removeClient(uniqueId); in removeClient()
160 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener) { in setDrmServiceListener() argument
162 mDrmManager->setDrmServiceListener(uniqueId, drmServiceListener); in setDrmServiceListener()
167 int uniqueId, const String8* path, const int action) { in getConstraints() argument
169 return mDrmManager->getConstraints(uniqueId, path, action); in getConstraints()
[all …]
DDrmManagerService.h70 void removeUniqueId(int uniqueId);
72 void addClient(int uniqueId);
74 void removeClient(int uniqueId);
77 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener);
79 DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action);
81 DrmMetadata* getMetadata(int uniqueId, const String8* path);
83 bool canHandle(int uniqueId, const String8& path, const String8& mimeType);
85 DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo);
87 DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInforequest);
89 status_t saveRights(int uniqueId, const DrmRights& drmRights,
[all …]
DDrmManager.h96 void removeUniqueId(int uniqueId);
98 void addClient(int uniqueId);
100 void removeClient(int uniqueId);
109 int uniqueId, const sp<IDrmServiceListener>& drmServiceListener);
111 DrmConstraints* getConstraints(int uniqueId, const String8* path, const int action);
113 DrmMetadata* getMetadata(int uniqueId, const String8* path);
115 bool canHandle(int uniqueId, const String8& path, const String8& mimeType);
117 DrmInfoStatus* processDrmInfo(int uniqueId, const DrmInfo* drmInfo);
119 DrmInfo* acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest);
121 status_t saveRights(int uniqueId, const DrmRights& drmRights,
[all …]
DDrmManager.cpp177 int uniqueId = -1; in addUniqueId() local
183 uniqueId = temp; in addUniqueId()
184 mUniqueIdArray[uniqueId] = true; in addUniqueId()
189 uniqueId |= 0x1000; in addUniqueId()
196 return uniqueId; in addUniqueId()
199 void DrmManager::removeUniqueId(int uniqueId) { in removeUniqueId() argument
201 if (uniqueId & 0x1000) { in removeUniqueId()
203 uniqueId &= ~(0x1000); in removeUniqueId()
206 if (uniqueId >= 0 && uniqueId < kMaxNumUniqueIds) { in removeUniqueId()
207 mUniqueIdArray[uniqueId] = false; in removeUniqueId()
[all …]
/frameworks/av/drm/libdrmframework/
DDrmManagerClientImpl.cpp48 void DrmManagerClientImpl::remove(int uniqueId) { in remove() argument
49 getDrmManagerService()->removeUniqueId(uniqueId); in remove()
69 void DrmManagerClientImpl::addClient(int uniqueId) { in addClient() argument
70 getDrmManagerService()->addClient(uniqueId); in addClient()
73 void DrmManagerClientImpl::removeClient(int uniqueId) { in removeClient() argument
74 getDrmManagerService()->removeClient(uniqueId); in removeClient()
78 int uniqueId, in setOnInfoListener() argument
82 return getDrmManagerService()->setDrmServiceListener(uniqueId, in setOnInfoListener()
87 int uniqueId, const String8* path, const int action) { in getConstraints() argument
91 getDrmManagerService()->getConstraints(uniqueId, path, action); in getConstraints()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
DFwdLockEngine.h57 DrmConstraints* onGetConstraints(int uniqueId, const String8* path, int action);
69 DrmMetadata* onGetMetadata(int uniqueId, const String8* path);
78 status_t onInitialize(int uniqueId);
89 status_t onSetOnInfoListener(int uniqueId, const IDrmEngine::OnInfoListener* infoListener);
98 status_t onTerminate(int uniqueId);
108 bool onCanHandle(int uniqueId, const String8& path);
119 DrmInfoStatus* onProcessDrmInfo(int uniqueId, const DrmInfo* drmInfo);
132 status_t onSaveRights(int uniqueId,
146 DrmInfo* onAcquireDrmInfo(int uniqueId,
158 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd);
[all …]
/frameworks/base/media/java/android/media/
DMediaRouter2Utils.java47 public static String getProviderId(@NonNull String uniqueId) { in getProviderId() argument
48 if (TextUtils.isEmpty(uniqueId)) { in getProviderId()
53 int firstIndexOfSeparator = uniqueId.indexOf(SEPARATOR); in getProviderId()
58 String providerId = uniqueId.substring(0, firstIndexOfSeparator); in getProviderId()
71 public static String getOriginalId(@NonNull String uniqueId) { in getOriginalId() argument
72 if (TextUtils.isEmpty(uniqueId)) { in getOriginalId()
77 int firstIndexOfSeparator = uniqueId.indexOf(SEPARATOR); in getOriginalId()
78 if (firstIndexOfSeparator == -1 || firstIndexOfSeparator + 1 >= uniqueId.length()) { in getOriginalId()
82 String providerId = uniqueId.substring(firstIndexOfSeparator + 1); in getOriginalId()
/frameworks/base/drm/jni/
Dandroid_drm_DrmManagerClient.cpp167 jint uniqueId = event.getUniqueId(); in onInfo() local
171 ALOGV("JNIOnInfoListener::onInfo => %d | %d | %s", uniqueId, type, event.getMessage().c_str()); in onInfo()
176 mObject, uniqueId, type, message); in onInfo()
213 int uniqueId = 0; in android_drm_DrmManagerClient_initialize() local
214 sp<DrmManagerClientImpl> drmManager = DrmManagerClientImpl::create(&uniqueId, false); in android_drm_DrmManagerClient_initialize()
215 drmManager->addClient(uniqueId); in android_drm_DrmManagerClient_initialize()
219 return static_cast<jint>(uniqueId); in android_drm_DrmManagerClient_initialize()
223 JNIEnv* env, jobject thiz, jint uniqueId, jobject weak_thiz) { in android_drm_DrmManagerClient_setListeners() argument
228 getDrmManagerClientImpl(env, thiz)->setOnInfoListener(uniqueId, listener); in android_drm_DrmManagerClient_setListeners()
234 JNIEnv* env, jobject thiz, jint uniqueId) { in android_drm_DrmManagerClient_release() argument
[all …]
/frameworks/base/drm/java/android/drm/
DDrmManagerClient.java189 Object thisReference, int uniqueId, int infoType, String message) { in notify() argument
194 InfoHandler.INFO_EVENT_TYPE, uniqueId, infoType, message); in notify()
212 int uniqueId = msg.arg1; in handleMessage() local
223 info = new DrmInfoEvent(uniqueId, infoType, message); in handleMessage()
231 info = new DrmInfoEvent(uniqueId, infoType, message); in handleMessage()
235 error = new DrmErrorEvent(uniqueId, infoType, message); in handleMessage()
896 private native void _setListeners(int uniqueId, Object weak_this); in _setListeners() argument
898 private native void _release(int uniqueId); in _release() argument
900 private native void _installDrmEngine(int uniqueId, String engineFilepath); in _installDrmEngine() argument
902 private native ContentValues _getConstraints(int uniqueId, String path, int usage); in _getConstraints() argument
[all …]
DDrmErrorEvent.java84 public DrmErrorEvent(int uniqueId, int type, String message) { in DrmErrorEvent() argument
85 super(uniqueId, type, message); in DrmErrorEvent()
98 public DrmErrorEvent(int uniqueId, int type, String message, in DrmErrorEvent() argument
100 super(uniqueId, type, message, attributes); in DrmErrorEvent()
DDrmInfoEvent.java74 public DrmInfoEvent(int uniqueId, int type, String message) { in DrmInfoEvent() argument
75 super(uniqueId, type, message); in DrmInfoEvent()
89 public DrmInfoEvent(int uniqueId, int type, String message, in DrmInfoEvent() argument
91 super(uniqueId, type, message, attributes); in DrmInfoEvent()
DDrmEvent.java64 protected DrmEvent(int uniqueId, int type, String message, in DrmEvent() argument
66 mUniqueId = uniqueId; in DrmEvent()
85 protected DrmEvent(int uniqueId, int type, String message) { in DrmEvent() argument
86 mUniqueId = uniqueId; in DrmEvent()
/frameworks/base/services/core/java/com/android/server/display/
DHighBrightnessModeMetadataMapper.java48 final String uniqueId = device.getUniqueId(); in getHighBrightnessModeMetadataLocked() local
50 if (mHighBrightnessModeMetadataMap.containsKey(uniqueId)) { in getHighBrightnessModeMetadataLocked()
51 return mHighBrightnessModeMetadataMap.get(uniqueId); in getHighBrightnessModeMetadataLocked()
56 mHighBrightnessModeMetadataMap.put(uniqueId, hbmInfo); in getHighBrightnessModeMetadataLocked()
/frameworks/base/core/java/android/hardware/display/
DDisplayViewport.java77 public String uniqueId; field in DisplayViewport
93 uniqueId = viewport.uniqueId; in copyFrom()
126 && TextUtils.equals(uniqueId, other.uniqueId) in equals()
143 result += prime * result + uniqueId.hashCode(); in hashCode()
158 + ", uniqueId='" + uniqueId + "'" in toString()
/frameworks/native/include/input/
DDisplayViewport.h62 std::string uniqueId; member
82 uniqueId(), in DisplayViewport()
93 isActive == other.isActive && uniqueId == other.uniqueId &&
117 uniqueId.clear(); in setNonDisplayViewport()
129 uniqueId.c_str(), in toString()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp81 FwdLockConv_CloseSession(convSession->uniqueId, &(convSession->output)); in ~FwdLockEngine()
110 DrmConstraints* FwdLockEngine::onGetConstraints(int uniqueId, const String8* path, int action) { in onGetConstraints() argument
116 (RightsStatus::RIGHTS_VALID == onCheckRightsStatus(uniqueId, *path, action))) { in onGetConstraints()
268 int FwdLockEngine::onCheckRightsStatus(int uniqueId, in onCheckRightsStatus() argument
276 if (onCanHandle(uniqueId, path)) { in onCheckRightsStatus()
307 bool FwdLockEngine::onValidateAction(int uniqueId, in onValidateAction() argument
314 return (onCheckRightsStatus(uniqueId, path, action) == RightsStatus::RIGHTS_VALID); in onValidateAction()
343 int FwdLockEngine::onGetDrmObjectType(int uniqueId, in onGetDrmObjectType() argument
356 if (((0 == path.length()) || onCanHandle(uniqueId, path)) && in onGetDrmObjectType()
397 FwdLockConv_OpenSession(&(newSession->uniqueId), &(newSession->output))) {
[all …]

123456