Lines Matching refs:clientConfig
158 ClientConfigParcel clientConfig; in notifyClientReleased() local
165 clientConfig = found->second; in notifyClientReleased()
167 clientConfig.timeStamp = systemTime(SYSTEM_TIME_MONOTONIC) / 1000LL; in notifyClientReleased()
172 notifyClientStopped(clientConfig); in notifyClientReleased()
187 void ResourceManagerMetrics::notifyClientConfigChanged(const ClientConfigParcel& clientConfig) { in notifyClientConfigChanged() argument
189 ClientConfigMap::iterator entry = mClientConfigMap.find(clientConfig.clientInfo.id); in notifyClientConfigChanged()
191 (clientConfig.codecType == MediaResourceSubType::kHwVideoCodec || in notifyClientConfigChanged()
192 clientConfig.codecType == MediaResourceSubType::kSwVideoCodec || in notifyClientConfigChanged()
193 clientConfig.codecType == MediaResourceSubType::kHwImageCodec || in notifyClientConfigChanged()
194 clientConfig.codecType == MediaResourceSubType::kSwImageCodec)) { in notifyClientConfigChanged()
195 int pid = clientConfig.clientInfo.pid; in notifyClientConfigChanged()
197 updatePixelCount(pid, clientConfig.width * (long)clientConfig.height, in notifyClientConfigChanged()
200 entry->second.width = clientConfig.width; in notifyClientConfigChanged()
201 entry->second.height = clientConfig.height; in notifyClientConfigChanged()
205 void ResourceManagerMetrics::notifyClientStarted(const ClientConfigParcel& clientConfig) { in notifyClientStarted() argument
207 int pid = clientConfig.clientInfo.pid; in notifyClientStarted()
209 mUidObserver->add(pid, clientConfig.clientInfo.uid); in notifyClientStarted()
212 mClientConfigMap[clientConfig.clientInfo.id] = clientConfig; in notifyClientStarted()
215 CodecBucket codecBucket = getCodecBucket(clientConfig.isEncoder, clientConfig.codecType); in notifyClientStarted()
218 if (clientConfig.codecType == MediaResourceSubType::kHwVideoCodec || in notifyClientStarted()
219 clientConfig.codecType == MediaResourceSubType::kSwVideoCodec || in notifyClientStarted()
220 clientConfig.codecType == MediaResourceSubType::kHwImageCodec || in notifyClientStarted()
221 clientConfig.codecType == MediaResourceSubType::kSwImageCodec) { in notifyClientStarted()
223 increasePixelCount(pid, clientConfig.width * (long)clientConfig.height); in notifyClientStarted()
245 clientConfig.clientInfo.uid, in notifyClientStarted()
246 clientConfig.id, in notifyClientStarted()
247 clientConfig.clientInfo.name.c_str(), in notifyClientStarted()
248 getMetricsCodecType(clientConfig.codecType), in notifyClientStarted()
249 clientConfig.isEncoder, in notifyClientStarted()
250 isHardwareCodec(clientConfig.codecType), in notifyClientStarted()
251 clientConfig.width, clientConfig.height, in notifyClientStarted()
270 pid, clientConfig.clientInfo.uid, in notifyClientStarted()
271 clientConfig.clientInfo.name.c_str(), in notifyClientStarted()
272 clientConfig.id, in notifyClientStarted()
273 getCodecType(clientConfig.codecType), in notifyClientStarted()
274 clientConfig.isEncoder? "encoder" : "decoder", in notifyClientStarted()
275 clientConfig.timeStamp, in notifyClientStarted()
276 clientConfig.width, clientConfig.height, in notifyClientStarted()
282 void ResourceManagerMetrics::notifyClientStopped(const ClientConfigParcel& clientConfig) { in notifyClientStopped() argument
284 int pid = clientConfig.clientInfo.pid; in notifyClientStopped()
286 CodecBucket codecBucket = getCodecBucket(clientConfig.isEncoder, clientConfig.codecType); in notifyClientStopped()
289 if (clientConfig.codecType == MediaResourceSubType::kHwVideoCodec || in notifyClientStopped()
290 clientConfig.codecType == MediaResourceSubType::kSwVideoCodec || in notifyClientStopped()
291 clientConfig.codecType == MediaResourceSubType::kHwImageCodec || in notifyClientStopped()
292 clientConfig.codecType == MediaResourceSubType::kSwImageCodec) { in notifyClientStopped()
294 decreasePixelCount(pid, clientConfig.width * (long)clientConfig.height); in notifyClientStopped()
316 ClientConfigMap::iterator entry = mClientConfigMap.find(clientConfig.clientInfo.id); in notifyClientStopped()
318 usageTime = clientConfig.timeStamp - entry->second.timeStamp; in notifyClientStopped()
327 clientConfig.clientInfo.uid, in notifyClientStopped()
328 clientConfig.id, in notifyClientStopped()
329 clientConfig.clientInfo.name.c_str(), in notifyClientStopped()
330 getMetricsCodecType(clientConfig.codecType), in notifyClientStopped()
331 clientConfig.isEncoder, in notifyClientStopped()
332 isHardwareCodec(clientConfig.codecType), in notifyClientStopped()
333 clientConfig.width, clientConfig.height, in notifyClientStopped()
346 pid, clientConfig.clientInfo.uid, in notifyClientStopped()
347 clientConfig.clientInfo.name.c_str(), in notifyClientStopped()
348 clientConfig.id, in notifyClientStopped()
349 getCodecType(clientConfig.codecType), in notifyClientStopped()
350 clientConfig.isEncoder? "encoder" : "decoder", in notifyClientStopped()
351 clientConfig.timeStamp, usageTime, in notifyClientStopped()
352 clientConfig.width, clientConfig.height, in notifyClientStopped()