/hardware/google/pixel/power-libperfmgr/aidl/ |
D | BackgroundWorker.cpp | 80 std::chrono::steady_clock::time_point deadline) { in schedule() argument 82 mPackageQueue.emplace(deadline, templateQueueWorkerId, packageId); in schedule() 92 std::chrono::steady_clock::time_point deadline = in loop() local 97 deadline = mPackageQueue.top().deadline; in loop() 101 mCv.wait_until(lock, deadline, [&]() { in loop() 108 deadline = std::chrono::steady_clock::time_point::max(); in loop() 113 deadline = mPackageQueue.top().deadline; in loop() 115 if (deadline > std::chrono::steady_clock::now()) in loop()
|
D | BackgroundWorker.h | 54 std::chrono::steady_clock::time_point deadline); 69 : deadline(pDeadline), in Package() 72 std::chrono::steady_clock::time_point deadline; member 76 bool operator<(const Package &p) const { return deadline > p.deadline; }
|
/hardware/interfaces/neuralnetworks/utils/common/src/ |
D | ResilientExecution.cpp | 104 ResilientExecution::compute(const nn::OptionalTimePoint& deadline) const { in compute() 105 const auto fn = [&deadline](const nn::IExecution& execution) { in compute() 106 return execution.compute(deadline); in compute() 113 const nn::OptionalTimePoint& deadline, in computeFenced() argument 115 const auto fn = [&waitFor, &deadline, in computeFenced() 117 return execution.computeFenced(waitFor, deadline, timeoutDurationAfterFence); in computeFenced()
|
D | ResilientDevice.cpp | 181 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModel() argument 188 preference, priority, deadline, modelCache, in prepareModel() 190 return device->prepareModelInternal(model, preference, priority, deadline, modelCache, in prepareModel() 195 return prepareModelInternal(model, preference, priority, deadline, modelCache, dataCache, token, in prepareModel() 201 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelFromCache() argument 205 ResilientPreparedModel::Factory makePreparedModel = [device = std::move(self), deadline, in prepareModelFromCache() 207 return device->prepareModelFromCacheInternal(deadline, modelCache, dataCache, token); in prepareModelFromCache() 211 return prepareModelFromCacheInternal(deadline, modelCache, dataCache, token); in prepareModelFromCache() 238 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelInternal() argument 245 const auto fn = [&model, preference, priority, &deadline, &modelCache, &dataCache, &token, in prepareModelInternal() [all …]
|
D | ResilientPreparedModel.cpp | 109 const nn::OptionalTimePoint& deadline, const nn::OptionalDuration& loopTimeoutDuration, in execute() argument 112 const auto fn = [&request, measure, &deadline, &loopTimeoutDuration, &hints, in execute() 114 return preparedModel.execute(request, measure, deadline, loopTimeoutDuration, hints, in execute() 123 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline, in executeFenced() argument 128 const auto fn = [&request, &waitFor, measure, &deadline, &loopTimeoutDuration, in executeFenced() 131 return preparedModel.executeFenced(request, waitFor, measure, deadline, loopTimeoutDuration, in executeFenced()
|
/hardware/interfaces/neuralnetworks/1.3/utils/src/ |
D | PreparedModel.cpp | 108 const OptionalTimePoint& deadline, in executeSynchronously() argument 112 const auto ret = kPreparedModel->executeSynchronously_1_3(request, measure, deadline, in executeSynchronously() 121 const OptionalTimePoint& deadline, in executeAsynchronously() argument 127 kPreparedModel->execute_1_3(request, measure, deadline, loopTimeoutDuration, cb); in executeAsynchronously() 138 const nn::OptionalTimePoint& deadline, const nn::OptionalDuration& loopTimeoutDuration, in execute() argument 150 const auto hidlDeadline = NN_TRY(convert(deadline)); in execute() 159 const OptionalTimePoint& deadline, in executeInternal() argument 167 ? executeSynchronously(request, measure, deadline, loopTimeoutDuration) in executeInternal() 168 : executeAsynchronously(request, measure, deadline, loopTimeoutDuration); in executeInternal() 180 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline, in executeFenced() argument [all …]
|
D | Execution.cpp | 66 const nn::OptionalTimePoint& deadline) const { in compute() 67 const auto hidlDeadline = NN_TRY(convert(deadline)); in compute() 73 const std::vector<nn::SyncFence>& waitFor, const nn::OptionalTimePoint& deadline, in computeFenced() argument 76 const auto hidlDeadline = NN_TRY(convert(deadline)); in computeFenced()
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | QualityOfServiceTests.cpp | 60 const OptionalTimePoint& deadline)>; 81 OptionalTimePoint deadline; in makeDeadline() local 82 deadline.nanosecondsSinceEpoch(getNanosecondsSinceEpoch(timePoint)); in makeDeadline() 83 return deadline; in makeDeadline() 88 OptionalTimePoint deadline; in runPrepareModelTest() local 90 deadline = makeDeadline(deadlineBound.value()); in runPrepareModelTest() 107 model, ExecutionPreference::FAST_SINGLE_ANSWER, priority, deadline, in runPrepareModelTest() 172 const OptionalTimePoint& deadline) { in executeAsynchronously() argument 178 Return<ErrorStatus> ret = preparedModel->execute_1_3(request, measure, deadline, {}, callback); in executeAsynchronously() 195 const OptionalTimePoint& deadline) { in executeSynchronously() argument [all …]
|
/hardware/interfaces/radio/aidl/compat/libradiocompat/ |
D | CallbackManager.cpp | 69 auto deadline = mDelayedSetterDeadline; in delayedSetterThread() local 72 if (!deadline) { in delayedSetterThread() 78 if (*deadline > std::chrono::steady_clock::now()) { in delayedSetterThread() 79 mDelayedSetterCv.wait_until(lock, *deadline); in delayedSetterThread()
|
/hardware/interfaces/neuralnetworks/aidl/utils/test/ |
D | MockPreparedModel.h | 33 (const Request& request, bool measureTiming, int64_t deadline, 38 bool measureTiming, int64_t deadline, int64_t loopTimeoutDuration, 42 (const Request& request, const ExecutionConfig& config, int64_t deadline, 47 const ExecutionConfig& config, int64_t deadline, int64_t duration,
|
D | MockExecution.h | 32 (int64_t deadline, ExecutionResult* executionResult), (override)); 34 (const std::vector<ndk::ScopedFileDescriptor>& waitFor, int64_t deadline,
|
D | MockBurst.h | 31 bool measureTiming, int64_t deadline, int64_t loopTimeoutDuration, 36 const ExecutionConfig& config, int64_t deadline, ExecutionResult* executionResult),
|
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/ |
D | PreparedModel.h | 51 const nn::OptionalTimePoint& deadline, const nn::OptionalDuration& loopTimeoutDuration, 57 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline, 74 const Request& request, V1_2::MeasureTiming measure, const OptionalTimePoint& deadline, 80 V1_2::MeasureTiming measure, const OptionalTimePoint& deadline, 87 const Request& request, V1_2::MeasureTiming measure, const OptionalTimePoint& deadline, 90 const Request& request, V1_2::MeasureTiming measure, const OptionalTimePoint& deadline,
|
/hardware/interfaces/neuralnetworks/aidl/utils/src/ |
D | PreparedModel.cpp | 131 const nn::OptionalTimePoint& deadline, const nn::OptionalDuration& loopTimeoutDuration, in execute() argument 143 const auto aidlDeadline = NN_TRY(convert(deadline)); in execute() 150 PreparedModel::executeInternal(const Request& request, bool measure, int64_t deadline, in executeInternal() argument 167 deadline, &executionResult); in executeInternal() 171 request, measure, deadline, loopTimeoutDuration, &executionResult); in executeInternal() 180 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline, in executeFenced() argument 195 const auto aidlDeadline = NN_TRY(convert(deadline)); in executeFenced() 206 int64_t deadline, int64_t loopTimeoutDuration, int64_t timeoutDurationAfterFence, in executeFencedInternal() argument 222 deadline, timeoutDurationAfterFence, &result); in executeFencedInternal() 225 const auto ret = kPreparedModel->executeFenced(request, waitFor, measure, deadline, in executeFencedInternal() [all …]
|
D | Execution.cpp | 63 ExecutionWithCachedRequest::compute(const nn::OptionalTimePoint& deadline) const { in compute() 64 const auto aidlDeadline = NN_TRY(convert(deadline)); in compute() 71 const std::vector<nn::SyncFence>& waitFor, const nn::OptionalTimePoint& deadline, in computeFenced() argument 74 const auto aidlDeadline = NN_TRY(convert(deadline)); in computeFenced()
|
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/ |
D | Execution.h | 56 const nn::OptionalTimePoint& deadline) const override; 59 const std::vector<nn::SyncFence>& waitFor, const nn::OptionalTimePoint& deadline, 83 const nn::OptionalTimePoint& deadline) const override; 86 const std::vector<nn::SyncFence>& waitFor, const nn::OptionalTimePoint& deadline,
|
D | PreparedModel.h | 53 const nn::OptionalTimePoint& deadline, const nn::OptionalDuration& loopTimeoutDuration, 59 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline, 76 const Request& request, bool measure, int64_t deadline, int64_t loopTimeoutDuration, 84 int64_t deadline, int64_t loopTimeoutDuration,
|
/hardware/interfaces/neuralnetworks/utils/common/test/ |
D | MockExecution.h | 29 (const OptionalTimePoint& deadline), (const, override)); 31 (const std::vector<SyncFence>& waitFor, const OptionalTimePoint& deadline,
|
D | MockPreparedModel.h | 29 (const Request& request, MeasureTiming measure, const OptionalTimePoint& deadline, 36 MeasureTiming measure, const OptionalTimePoint& deadline,
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/include/nnapi/hal/ |
D | PreparedModel.h | 49 const V1_3::OptionalTimePoint& deadline, 55 const V1_3::OptionalTimePoint& deadline, 64 V1_2::MeasureTiming measure, const V1_3::OptionalTimePoint& deadline,
|
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/ |
D | InvalidExecution.h | 32 const nn::OptionalTimePoint& deadline) const override; 35 const std::vector<nn::SyncFence>& waitFor, const nn::OptionalTimePoint& deadline,
|
D | ResilientDevice.h | 67 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, 73 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, 86 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, 91 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/src/ |
D | PreparedModel.cpp | 180 const V1_3::OptionalTimePoint& deadline, in execute_1_3() argument 189 const auto nnDeadline = NN_TRY(convertInput(deadline)); in execute_1_3() 220 V1_2::MeasureTiming measure, const V1_3::OptionalTimePoint& deadline, in executeSynchronously_1_3() argument 224 const auto nnDeadline = NN_TRY(convertInput(deadline)); in executeSynchronously_1_3() 262 const V1_3::OptionalTimePoint& deadline, in executeFenced() argument 268 const auto nnDeadline = NN_TRY(convertInput(deadline)); in executeFenced() 319 const V1_3::OptionalTimePoint& deadline, in execute_1_3() argument 322 auto result = adapter::execute_1_3(kPreparedModel, request, measure, deadline, in execute_1_3() 352 const V1_3::OptionalTimePoint& deadline, in executeSynchronously_1_3() argument 354 auto result = adapter::executeSynchronously_1_3(kPreparedModel, request, measure, deadline, in executeSynchronously_1_3() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/ |
D | IPreparedModel.hal | 71 * execute_1_3 can be called with an optional deadline. If the execution 72 * is not able to be completed before the provided deadline, the execution 77 * The deadline is represented as nanoseconds since the epoch of the steady 96 * @param deadline The time by which the execution is expected to complete. 97 * If the execution cannot be completed by the deadline, the 122 * cannot be completed by the deadline 126 execute_1_3(Request request, MeasureTiming measure, OptionalTimePoint deadline, 155 * executeSynchronously_1_3 may be called with an optional deadline. If the 156 * execution is not able to be completed before the provided deadline, the 161 * The deadline is represented as nanoseconds since the epoch of the steady [all …]
|
/hardware/interfaces/neuralnetworks/1.3/utils/test/ |
D | MockPreparedModel.h | 62 const V1_3::OptionalTimePoint& deadline, 68 const V1_3::OptionalTimePoint& deadline, 74 V1_2::MeasureTiming measure, const V1_3::OptionalTimePoint& deadline,
|