/frameworks/av/include/media/ |
D | MediaResource.h | 26 class MediaResource { 41 MediaResource(); 42 MediaResource(Type type, uint64_t value); 43 MediaResource(Type type, SubType subType, uint64_t value); 50 bool operator==(const MediaResource &other) const; 51 bool operator!=(const MediaResource &other) const; 58 inline static const char *asString(MediaResource::Type i, const char *def = "??") { 60 case MediaResource::kUnspecified: return "unspecified"; 61 case MediaResource::kSecureCodec: return "secure-codec"; 62 case MediaResource::kNonSecureCodec: return "non-secure-codec"; [all …]
|
D | IResourceManagerService.h | 44 const Vector<MediaResource> &resources) = 0; 50 const Vector<MediaResource> &resources) = 0;
|
/frameworks/av/services/mediaresourcemanager/test/ |
D | ResourceManagerService_test.cpp | 105 static bool isEqualResources(const Vector<MediaResource> &resources1, in isEqualResources() 106 const Vector<MediaResource> &resources2) { in isEqualResources() 119 const Vector<MediaResource> &resources) { in expectEqResourceInfo() 154 Vector<MediaResource> resources1; in addResource() 155 resources1.push_back(MediaResource(MediaResource::kSecureCodec, 1)); in addResource() 157 resources1.push_back(MediaResource(MediaResource::kGraphicMemory, 200)); in addResource() 158 Vector<MediaResource> resources11; in addResource() 159 resources11.push_back(MediaResource(MediaResource::kGraphicMemory, 200)); in addResource() 163 Vector<MediaResource> resources2; in addResource() 164 resources2.push_back(MediaResource(MediaResource::kNonSecureCodec, 1)); in addResource() [all …]
|
/frameworks/av/media/libmedia/ |
D | MediaResource.cpp | 24 MediaResource::MediaResource() in MediaResource() function in android::MediaResource 29 MediaResource::MediaResource(Type type, uint64_t value) in MediaResource() function in android::MediaResource 34 MediaResource::MediaResource(Type type, SubType subType, uint64_t value) in MediaResource() function in android::MediaResource 39 void MediaResource::readFromParcel(const Parcel &parcel) { in readFromParcel() 45 void MediaResource::writeToParcel(Parcel *parcel) const { in writeToParcel() 51 String8 MediaResource::toString() const { in toString() 57 bool MediaResource::operator==(const MediaResource &other) const { in operator ==() 61 bool MediaResource::operator!=(const MediaResource &other) const { in operator !=()
|
D | IResourceManagerService.cpp | 77 const Vector<MediaResource> &resources) { in addResource() 97 virtual bool reclaimResource(int callingPid, const Vector<MediaResource> &resources) { in reclaimResource() 138 Vector<MediaResource> resources; in onTransact() 155 Vector<MediaResource> resources; in onTransact()
|
D | Android.mk | 68 MediaResource.cpp \
|
/frameworks/av/services/mediaresourcemanager/ |
D | ResourceManagerService.cpp | 46 static bool hasResourceType(MediaResource::Type type, Vector<MediaResource> resources) { in hasResourceType() 55 static bool hasResourceType(MediaResource::Type type, ResourceInfos infos) { in hasResourceType() 93 static void notifyResourceGranted(int pid, const Vector<MediaResource> &resources) { in notifyResourceGranted() 99 if (resources[i].mSubType == MediaResource::kAudioCodec) { in notifyResourceGranted() 101 } else if (resources[i].mSubType == MediaResource::kVideoCodec) { in notifyResourceGranted() 157 Vector<MediaResource> resources = infos[j].resources; in dump() 203 const Vector<MediaResource> &resources) { in addResource() 251 int callingPid, const MediaResource *res, Vector<sp<IResourceManagerClient>> *clients) { in getClientForResource_l() 262 int callingPid, const Vector<MediaResource> &resources) { in reclaimResource() 274 const MediaResource *secureCodec = NULL; in reclaimResource() [all …]
|
D | ResourceManagerService.h | 39 Vector<MediaResource> resources; 64 const Vector<MediaResource> &resources); 71 virtual bool reclaimResource(int callingPid, const Vector<MediaResource> &resources); 82 bool getAllClients_l(int callingPid, MediaResource::Type type, 88 bool getLowestPriorityBiggestClient_l(int callingPid, MediaResource::Type type, 93 bool getLowestPriorityPid_l(MediaResource::Type type, int *pid, int *priority); 97 bool getBiggestClient_l(int pid, MediaResource::Type type, sp<IResourceManagerClient> *client); 104 int callingPid, const MediaResource *res, Vector<sp<IResourceManagerClient>> *clients);
|
/frameworks/av/media/libstagefright/ |
D | MediaCodec.cpp | 146 const Vector<MediaResource> &resources) { in addResource() 163 const Vector<MediaResource> &resources) { in reclaimResource() 401 Vector<MediaResource> resources; in init() 402 MediaResource::Type type = in init() 403 secureCodec ? MediaResource::kSecureCodec : MediaResource::kNonSecureCodec; in init() 404 MediaResource::SubType subtype = in init() 405 mIsVideo ? MediaResource::kVideoCodec : MediaResource::kAudioCodec; in init() 406 resources.push_back(MediaResource(type, subtype, 1)); in init() 472 Vector<MediaResource> resources; in configure() 473 MediaResource::Type type = (mFlags & kFlagIsSecure) ? in configure() [all …]
|
/frameworks/av/include/media/stagefright/ |
D | MediaCodec.h | 278 const Vector<MediaResource> &resources); 282 bool reclaimResource(const Vector<MediaResource> &resources); 397 void addResource(MediaResource::Type type, MediaResource::SubType subtype, uint64_t value);
|