Home
last modified time | relevance | path

Searched refs:Milliseconds (Results 1 – 24 of 24) sorted by relevance

/system/chre/apps/audio_stress_test/
Daudio_stress_test.cc34 using chre::Milliseconds;
54 constexpr Milliseconds kStressPlan[] = {
56 Milliseconds(20000), Milliseconds(20000),
57 Milliseconds(30000), Milliseconds(200),
58 Milliseconds(10000), Milliseconds(1000),
59 Milliseconds(10000), Milliseconds(1999),
60 Milliseconds(8000), Milliseconds(60000),
61 Milliseconds(1000), Milliseconds(1000),
62 Milliseconds(1000), Milliseconds(1000),
63 Milliseconds(1000), Milliseconds(1000),
[all …]
/system/chre/core/include/chre/core/
Dgnss_manager.h50 bool addRequest(Nanoapp *nanoapp, Milliseconds minInterval,
51 Milliseconds minTimeToNext, const void *cookie);
104 Milliseconds minInterval;
123 Milliseconds minInterval;
149 Milliseconds mCurrentInterval = Milliseconds(UINT64_MAX);
175 bool configure(Nanoapp *nanoapp, bool enable, Milliseconds minInterval,
176 Milliseconds minTimeToNext, const void *cookie);
202 Milliseconds minInterval, const void *cookie);
222 bool requestedState, Milliseconds minInterval, bool nanoappHasRequest,
234 bool updateRequests(bool enable, Milliseconds minInterval,
[all …]
/system/chre/util/include/chre/util/
Dtime_impl.h43 constexpr Milliseconds::Milliseconds() in Milliseconds() function
46 constexpr Milliseconds::Milliseconds(uint64_t milliseconds) in Milliseconds() function
49 constexpr Milliseconds::Milliseconds(Nanoseconds nanoseconds) in Milliseconds() function
53 constexpr uint64_t Milliseconds::toRawNanoseconds() const { in toRawNanoseconds()
61 constexpr uint64_t Milliseconds::getMicroseconds() const { in getMicroseconds()
69 constexpr uint64_t Milliseconds::getMilliseconds() const { in getMilliseconds()
73 constexpr bool Milliseconds::operator==(const Milliseconds& millis) const {
109 constexpr Nanoseconds::Nanoseconds(Milliseconds milliseconds) in Nanoseconds()
Dtime.h43 class Milliseconds; variable
77 class Milliseconds {
82 constexpr Milliseconds();
87 constexpr explicit Milliseconds(uint64_t milliseconds);
92 constexpr Milliseconds(Nanoseconds nanoseconds);
121 constexpr bool operator==(const Milliseconds& millis) const;
194 constexpr Nanoseconds(Milliseconds milliseconds);
/system/chre/platform/shared/
Dchre_api_gnss.cc25 using chre::Milliseconds;
43 nanoapp, Milliseconds(minIntervalMs), in chreGnssLocationSessionStartAsync()
44 Milliseconds(minTimeToNextFixMs), cookie); in chreGnssLocationSessionStartAsync()
66 nanoapp, Milliseconds(minIntervalMs), in chreGnssMeasurementSessionStartAsync()
67 Milliseconds(0) /* minTimeToNext */, cookie); in chreGnssMeasurementSessionStartAsync()
Dplatform_gnss.cc69 bool PlatformGnss::controlLocationSession(bool enable, Milliseconds minInterval, in controlLocationSession()
70 Milliseconds minTimeToNextFix) { in controlLocationSession()
105 Milliseconds minInterval) { in controlMeasurementSession()
/system/chre/apps/audio_world/
Daudio_world.cc34 using chre::Milliseconds;
44 Milliseconds gFirstAudioEventTimestamp = Milliseconds(0);
105 Milliseconds timestamp = Milliseconds(Nanoseconds(event->timestamp)); in handleAudioDataEvent()
106 if (gFirstAudioEventTimestamp == Milliseconds(0)) { in handleAudioDataEvent()
110 Milliseconds adjustedTimestamp = timestamp - gFirstAudioEventTimestamp; in handleAudioDataEvent()
/system/chre/util/tests/
Dtime_test.cc22 using chre::Milliseconds;
62 Milliseconds t; in TEST()
67 Milliseconds t(5); in TEST()
73 Milliseconds tMilli(tNano); in TEST()
78 Milliseconds t(5); in TEST()
83 Milliseconds t(UINT64_MAX / kOneMillisecondInMicroseconds + 1); in TEST()
88 Milliseconds t(5); in TEST()
93 Milliseconds t(UINT64_MAX / kOneMillisecondInNanoseconds + 1); in TEST()
98 Milliseconds t1(5), t2(5), t3(6); in TEST()
121 Milliseconds t(UINT64_MAX / kOneMicrosecondInNanoseconds + 1); in TEST()
[all …]
/system/chre/core/
Dgnss_manager.cc70 bool GnssSession::addRequest(Nanoapp *nanoapp, Milliseconds minInterval, in addRequest()
71 Milliseconds minTimeToNext, const void *cookie) { in addRequest()
79 return configure(nanoapp, false /* enable */, Milliseconds(UINT64_MAX), in removeRequest()
80 Milliseconds(UINT64_MAX), cookie); in removeRequest()
139 Nanoapp *nanoapp, bool enable, Milliseconds minInterval, in configure()
140 Milliseconds minTimeToNext, const void *cookie) { in configure()
185 uint32_t instanceId, bool enable, Milliseconds minInterval, in addRequestToQueue()
206 bool requestedState, Milliseconds minInterval, bool nanoappHasRequest, in stateTransitionIsRequired()
242 bool enable, Milliseconds minInterval, uint32_t instanceId) { in updateRequests()
282 uint32_t instanceId, bool success, bool enable, Milliseconds minInterval, in postAsyncResultEvent()
[all …]
Daudio_request_manager.cc131 Milliseconds(Nanoseconds(source.minBufferDuration)).getMilliseconds(), in logStateToBuffer()
132 Milliseconds(Nanoseconds(source.maxBufferDuration)).getMilliseconds(), in logStateToBuffer()
133 source.format, Milliseconds(timeSinceLastAudioEvent).getMilliseconds()); in logStateToBuffer()
140 Milliseconds(Nanoseconds(request.deliveryInterval)) in logStateToBuffer()
Devent_loop.cc343 Milliseconds receivedTime = Nanoseconds(SystemTime::getMonotonicTime()); in allocateAndPostEvent()
/system/chre/platform/include/chre/platform/
Dplatform_gnss.h58 bool controlLocationSession(bool enable, Milliseconds minInterval,
59 Milliseconds minTimeToNextFix);
78 bool controlMeasurementSession(bool enable, Milliseconds minInterval);
/system/chre/apps/sensor_world/
Dsensor_world.cc32 using chre::Milliseconds;
43 constexpr Milliseconds kBreakItPeriod = Milliseconds(2000);
69 .interval = Milliseconds(80).toRawNanoseconds(),
93 .interval = Milliseconds(80).toRawNanoseconds(),
101 .interval = Milliseconds(80).toRawNanoseconds(),
109 .interval = Milliseconds(200).toRawNanoseconds(),
117 .interval = Milliseconds(200).toRawNanoseconds(),
125 .interval = Milliseconds(200).toRawNanoseconds(),
157 .interval = Milliseconds(80).toRawNanoseconds(),
165 .interval = Milliseconds(80).toRawNanoseconds(),
[all …]
/system/chre/platform/slpi/smgr/tests/
Dplatform_sensor_util_test.cc23 using chre::Milliseconds;
33 constexpr Nanoseconds kFiftyHertzInterval = Milliseconds(20); in TEST()
62 constexpr Nanoseconds kTenHertzInterval = Milliseconds(20); in TEST()
/system/chre/platform/slpi/include/chre/platform/slpi/see/
Disland_vote_client.h84 Milliseconds mRefCountStart = Milliseconds(0);
Dsee_helper.h187 Milliseconds retryDelay);
198 Milliseconds(250) /* retryDelay */);
/system/chre/platform/slpi/smgr/
Dplatform_sensor_util.cc34 Milliseconds millis = Milliseconds(interval); in intervalToSmgrSamplingRate()
Dsmr_helper.cc160 msg_id, Milliseconds(timeout).getMilliseconds()); in sendReqSyncUntyped()
Dplatform_sensor.cc107 constexpr Nanoseconds kStatusDelayIntervalNanos = Milliseconds(20);
/system/chre/platform/slpi/see/
Disland_vote_client.cc73 mRefCountStart = Milliseconds(SystemTime::getMonotonicTime()); in incrementBigImageRefCount()
119 duration = Milliseconds(SystemTime::getMonotonicTime()).getMilliseconds() in checkBigImageDuration()
Dsee_helper.cc1623 Milliseconds retryDelay) { in findSuidSync()
1817 Milliseconds(timeoutResp).getMilliseconds()); in sendSeeReqSync()
1890 Milliseconds(timeoutInd).getMilliseconds()); in waitForInd()
/system/chre/platform/linux/
Dplatform_audio.cc132 Milliseconds(source->minBufferDuration).getMilliseconds(), in addAudioSource()
133 Milliseconds(source->maxBufferDuration).getMilliseconds()); in addAudioSource()
Dinit.cc38 using chre::Milliseconds;
/system/chre/apps/gnss_world/
Dgnss_world.cc40 constexpr chre::Milliseconds kLocationMinTimeToNextFix(0);