/frameworks/base/services/core/jni/ |
D | com_android_server_hint_HintManagerService.cpp | 46 jfieldID durationNanos{}; member 76 std::vector<int32_t>& threadIds, int64_t durationNanos) { in createHintSession() argument 77 auto result = gPowerHalController.createHintSession(tgid, uid, threadIds, durationNanos); in createHintSession() 94 std::vector<int32_t> threadIds, int64_t durationNanos, in createHintSessionWithConfig() argument 97 gPowerHalController.createHintSessionWithConfig(tgid, uid, threadIds, durationNanos, in createHintSessionWithConfig() 171 jintArray tids, jlong durationNanos) { in nativeCreateHintSession() argument 178 return createHintSession(env, tgid, uid, threadIds, durationNanos); in nativeCreateHintSession() 182 jintArray tids, jlong durationNanos, jint sessionTag, in nativeCreateHintSessionWithConfig() argument 191 jlong out = createHintSessionWithConfig(env, tgid, uid, std::move(threadIds), durationNanos, in nativeCreateHintSessionWithConfig() 227 actualList[i].durationNanos = arrayActualDurations[i]; in nativeReportActualWorkDuration() [all …]
|
/frameworks/native/services/powermanager/tests/ |
D | PowerHalWrapperAidlTest.cpp | 57 int64_t durationNanos, std::shared_ptr<IPowerHintSession>* session), 61 int64_t durationNanos, SessionTag tag, SessionConfig* config, 256 int64_t durationNanos = 16666666L; in TEST_F() local 258 createHintSession(Eq(tgid), Eq(uid), Eq(threadIds), Eq(durationNanos), _)) in TEST_F() 261 auto result = mWrapper->createHintSession(tgid, uid, threadIds, durationNanos); in TEST_F() 269 int64_t durationNanos = 16666666L; in TEST_F() local 273 createHintSessionWithConfig(Eq(tgid), Eq(uid), Eq(threadIds), Eq(durationNanos), in TEST_F() 278 mWrapper->createHintSessionWithConfig(tgid, uid, threadIds, durationNanos, tag, &out); in TEST_F() 286 int64_t durationNanos = 16666666L; in TEST_F() local 288 createHintSession(Eq(tgid), Eq(uid), Eq(threadIds), Eq(durationNanos), _)) in TEST_F() [all …]
|
/frameworks/native/services/powermanager/benchmarks/ |
D | PowerHalAidlBenchmarks.cpp | 51 durationNanos = dur; in DurationWrapper() 108 int64_t durationNanos = 16666666L; in runSessionBenchmark() local 111 auto status = hal->createHintSession(1, 0, threadIds, durationNanos, &session); in runSessionBenchmark() 163 int64_t durationNanos = 16666666L; in BM_PowerHalAidlBenchmarks_createHintSession() local 176 hal->createHintSession(tgid, uid, threadIds, durationNanos, &appSession); in BM_PowerHalAidlBenchmarks_createHintSession() 184 ret = hal->createHintSession(tgid, uid, threadIds, durationNanos, &appSession); in BM_PowerHalAidlBenchmarks_createHintSession()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | PowerAdvisorTest.cpp | 295 ret.durationNanos = actual.durationNanos; in testGpuScenario() 345 Field(&WorkDuration::durationNanos, Eq(expectedDuration.ns()))))) in TEST_F() 385 Field(&WorkDuration::durationNanos, Eq(expectedDuration.ns()))))) in TEST_F() 428 Field(&WorkDuration::durationNanos, Eq(expectedDuration.ns()))))) in TEST_F() 470 Field(&WorkDuration::durationNanos, Eq(expectedDuration.ns()))))) in TEST_F() 596 EXPECT_GE(res.durationNanos, toNanos(30ms + getErrorMargin())); in TEST_F() 597 EXPECT_LE(res.durationNanos, toNanos(31ms + getErrorMargin())); in TEST_F() 615 EXPECT_EQ(res.durationNanos, toNanos(30ms + getErrorMargin())); in TEST_F() 634 EXPECT_EQ(res.durationNanos, toNanos(10ms + getErrorMargin())); in TEST_F() 652 EXPECT_EQ(res.durationNanos, toNanos(10ms + getErrorMargin())); in TEST_F() [all …]
|
/frameworks/native/services/powermanager/ |
D | PowerHalController.cpp | 129 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos) { in createHintSession() argument 133 durationNanos), in createHintSession() 138 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos, in createHintSessionWithConfig() argument 144 durationNanos, tag, in createHintSessionWithConfig()
|
D | PowerHalWrapper.cpp | 250 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos) { in createHintSession() argument 253 fromStatus(mHandle->createHintSession(tgid, uid, threadIds, durationNanos, &appSession), in createHintSession() 258 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos, in createHintSessionWithConfig() argument 262 fromStatus(mHandle->createHintSessionWithConfig(tgid, uid, threadIds, durationNanos, in createHintSessionWithConfig()
|
/frameworks/native/include/powermanager/ |
D | PowerHalWrapper.h | 57 int64_t durationNanos) = 0; 59 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos, 79 int64_t durationNanos) override; 81 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos, 163 int64_t durationNanos) override; 165 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos,
|
D | PowerHalController.h | 66 int64_t durationNanos) override; 68 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos,
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | PowerAdvisor.cpp | 329 if (!actualDuration.has_value() || actualDuration->durationNanos < 0) { in reportActualWorkDuration() 333 actualDuration->durationNanos += sTargetSafetyMargin.ns(); in reportActualWorkDuration() 335 ATRACE_INT64("Measured duration", actualDuration->durationNanos); in reportActualWorkDuration() 336 ATRACE_INT64("Target error term", actualDuration->durationNanos - mTargetDuration.ns()); in reportActualWorkDuration() 337 ATRACE_INT64("Reported duration", actualDuration->durationNanos); in reportActualWorkDuration() 344 actualDuration->durationNanos - mLastTargetDurationSent.ns()); in reportActualWorkDuration() 349 actualDuration->durationNanos, actualDuration->cpuDurationNanos, in reportActualWorkDuration() 351 actualDuration->durationNanos - mLastTargetDurationSent.ns()); in reportActualWorkDuration() 404 .durationNanos = duration.durationNanos, in writeHintSessionMessage() 661 .durationNanos = combinedDuration.ns(), in estimateWorkDuration()
|
/frameworks/base/services/core/java/com/android/server/power/hint/ |
D | HintManagerService.java | 268 long durationNanos); in nativeCreateHintSession() argument 271 long durationNanos, int tag, SessionConfig config); in nativeCreateHintSessionWithConfig() argument 305 public long halCreateHintSession(int tgid, int uid, int[] tids, long durationNanos) { in halCreateHintSession() argument 306 return nativeCreateHintSession(tgid, uid, tids, durationNanos); in halCreateHintSession() 311 int tgid, int uid, int[] tids, long durationNanos, int tag, SessionConfig config) { in halCreateHintSessionWithConfig() argument 312 return nativeCreateHintSessionWithConfig(tgid, uid, tids, durationNanos, tag, config); in halCreateHintSessionWithConfig() 806 @NonNull int[] tids, long durationNanos, @SessionTag int tag, in createHintSessionWithConfig() argument 854 callingTgid, callingUid, tids, durationNanos, tag, config); in createHintSessionWithConfig() 867 callingUid, tids, durationNanos); in createHintSessionWithConfig() 890 callingUid, sessionId, durationNanos, tids, tag); in createHintSessionWithConfig() [all …]
|
/frameworks/av/media/libaaudio/src/core/ |
D | AudioStream.cpp | 437 int64_t durationNanos = 20 * AAUDIO_NANOS_PER_MILLISECOND; // arbitrary in waitForStateChange() local 440 if (durationNanos > timeoutNanoseconds) { in waitForStateChange() 441 durationNanos = timeoutNanoseconds; in waitForStateChange() 444 time.tv_sec = durationNanos / AAUDIO_NANOS_PER_SECOND; in waitForStateChange() 446 time.tv_nsec = durationNanos - (time.tv_sec * AAUDIO_NANOS_PER_SECOND); in waitForStateChange() 451 timeoutNanoseconds -= durationNanos; in waitForStateChange()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockIPower.h | 51 int64_t durationNanos, std::shared_ptr<IPowerHintSession>* session), 56 int64_t durationNanos, SessionTag tag, SessionConfig* config,
|
D | MockPowerHalController.h | 53 int64_t durationNanos, aidl::android::hardware::power::SessionTag tag,
|
/frameworks/base/cmds/uinput/src/com/android/commands/uinput/ |
D | Event.java | 255 public void setDurationNanos(long durationNanos) { in setDurationNanos() argument 256 mEvent.mDurationNanos = durationNanos; in setDurationNanos()
|
/frameworks/base/core/java/android/os/ |
D | IHintManager.aidl | 36 in long durationNanos, in SessionTag tag, out @nullable SessionConfig config); in createHintSessionWithConfig() argument
|
/frameworks/base/native/android/ |
D | performance_hint.cpp | 267 hal::WorkDuration workDuration{.durationNanos = actualDurationNanos, in reportActualWorkDuration() 364 int64_t actualTotalDurationNanos = workDuration->durationNanos; in reportActualWorkDurationInternal() 368 traceActualDuration(workDuration->durationNanos); in reportActualWorkDurationInternal() 535 VALIDATE_INT(workDurationPtr->durationNanos, > 0) in APerformanceHint_reportActualWorkDuration2() 556 aWorkDuration->durationNanos = actualTotalDurationNanos; in AWorkDuration_setActualTotalDurationNanos()
|
/frameworks/base/native/android/tests/performance_hint/ |
D | PerformanceHintNativeTest.cpp | 46 (const SpAIBinder& token, const ::std::vector<int32_t>& tids, int64_t durationNanos, 143 lhs.gpuDurationNanos == rhs.gpuDurationNanos && lhs.durationNanos == rhs.durationNanos; in equalsWithoutTimestamp()
|
/frameworks/base/cmds/uinput/tests/src/com/android/commands/uinput/tests/ |
D | EvemuParserTest.java | 198 private void assertDelayEvent(Event event, int durationNanos) { in assertDelayEvent() argument 201 assertThat(event.getDurationNanos()).isEqualTo(durationNanos); in assertDelayEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/hint/ |
D | HintManagerServiceTest.java | 105 out.durationNanos = duration; in makeWorkDuration() 233 public long halCreateHintSession(int tgid, int uid, int[] tids, long durationNanos) { 239 long durationNanos, int tag, SessionConfig config) {
|