Lines Matching refs:mDescriptor
66 const nanoseconds &targetDuration = mDescriptor->targetNs; in convertWorkDurationToBoostByPid()
67 int64_t &integral_error = mDescriptor->integral_error; in convertWorkDurationToBoostByPid()
68 int64_t &previous_error = mDescriptor->previous_error; in convertWorkDurationToBoostByPid()
137 mDescriptor(std::make_shared<AppHintDesc>(mSessionId, tgid, uid, threadIds, tag, in PowerHintSession()
154 ATRACE_INT(mAppDescriptorTrace->trace_target.c_str(), mDescriptor->targetNs.count()); in PowerHintSession()
155 ATRACE_INT(mAppDescriptorTrace->trace_active.c_str(), mDescriptor->is_active.load()); in PowerHintSession()
158 mPSManager->addPowerSession(mIdString, mDescriptor, mAppDescriptorTrace, threadIds); in PowerHintSession()
164 duration_cast<nanoseconds>(mDescriptor->targetNs * adpfConfig->mStaleTimeFactor / 2.0)); in PowerHintSession()
167 kUclampMax, std::chrono::steady_clock::now(), mDescriptor->targetNs); in PowerHintSession()
168 ALOGV("PowerHintSession created: %s", mDescriptor->toString().c_str()); in PowerHintSession()
175 ALOGV("PowerHintSession deleted: %s", mDescriptor->toString().c_str()); in ~PowerHintSession()
184 return mDescriptor->uid >= AID_APP_START; in isAppSession()
190 mDescriptor->pidControlVariable = pidControlVariable; in updatePidControlVariable()
195 std::max(duration_cast<nanoseconds>(mDescriptor->targetNs * in updatePidControlVariable()
216 stream << ", " << mDescriptor->pidControlVariable; in dumpToStream()
217 stream << ", " << mDescriptor->is_active; in dumpToStream()
228 if (!mDescriptor->is_active.load()) in pause()
232 mDescriptor->is_active.store(false); in pause()
246 if (mDescriptor->is_active.load()) { in resume()
249 mPSManager->setThreadsFromPowerSession(mSessionId, mDescriptor->thread_ids); in resume()
250 mDescriptor->is_active.store(true); in resume()
254 ATRACE_INT(mAppDescriptorTrace->trace_min.c_str(), mDescriptor->pidControlVariable); in resume()
267 mDescriptor->is_active.store(false); in close()
287 mDescriptor->targetNs = std::chrono::nanoseconds(targetDurationNanos); in updateTargetWorkDuration()
289 mDescriptor->targetNs); in updateTargetWorkDuration()
308 maxToAvgRatio = maxDurationUs.value() * 1.0 / (mDescriptor->targetNs.count() / 1000); in updateHeuristicBoost()
343 if (mDescriptor->targetNs.count() == 0LL) { in reportActualWorkDuration()
351 if (!mDescriptor->is_active.load()) { in reportActualWorkDuration()
357 mDescriptor->update_count++; in reportActualWorkDuration()
361 ATRACE_INT(mAppDescriptorTrace->trace_target.c_str(), mDescriptor->targetNs.count()); in reportActualWorkDuration()
362 ATRACE_INT(mAppDescriptorTrace->trace_hint_count.c_str(), mDescriptor->update_count); in reportActualWorkDuration()
364 actualDurations.back().durationNanos - mDescriptor->targetNs.count() > 0); in reportActualWorkDuration()
388 mSessionRecords->addReportedDurations(actualDurations, mDescriptor->targetNs.count()); in reportActualWorkDuration()
402 mDescriptor->pidControlVariable + static_cast<int>(output)); in reportActualWorkDuration()
417 calculate_capacity(actualDurations.back(), mDescriptor->targetNs, *gpu_freq); in reportActualWorkDuration()
427 duration_cast<nanoseconds>(mDescriptor->targetNs * adpfConfig->mStaleTimeFactor)); in reportActualWorkDuration()
440 if (mDescriptor->targetNs.count() == 0LL) { in sendHint()
448 updatePidControlVariable(mDescriptor->pidControlVariable); in sendHint()
451 mDescriptor->targetNs * 2); in sendHint()
459 static_cast<uint32_t>(mDescriptor->pidControlVariable)), in sendHint()
464 duration_cast<nanoseconds>(mDescriptor->targetNs * in sendHint()
469 mDescriptor->pidControlVariable, kUclampMax, in sendHint()
471 duration_cast<nanoseconds>(mDescriptor->targetNs * in sendHint()
480 std::chrono::steady_clock::now(), mDescriptor->targetNs); in sendHint()
533 mDescriptor->thread_ids = threadIds; in setThreads()
567 mDescriptor->targetNs.count() * in isTimeout()