Lines Matching refs:ExtendedTimestamp

690     mPreviousLocation = ExtendedTimestamp::LOCATION_INVALID;  in set()
806 mPreviousLocation = ExtendedTimestamp::LOCATION_INVALID; in start()
809 && mStartEts.mTimeNs[ExtendedTimestamp::LOCATION_SERVER] > 0) { in start()
816 + mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]), in start()
820 mFramesWrittenServerOffset -= mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]; in start()
3108 status_t AudioTrack::getTimestamp(ExtendedTimestamp *timestamp) in getTimestamp()
3117 status_t AudioTrack::getTimestamp_l(ExtendedTimestamp *timestamp) in getTimestamp_l()
3135 timestamp->mPosition[ExtendedTimestamp::LOCATION_CLIENT] = mFramesWritten; in getTimestamp_l()
3136 timestamp->mTimeNs[ExtendedTimestamp::LOCATION_CLIENT] = 0; in getTimestamp_l()
3138 for (int i = ExtendedTimestamp::LOCATION_SERVER; in getTimestamp_l()
3139 i < ExtendedTimestamp::LOCATION_MAX; ++i) { in getTimestamp_l()
3203 ExtendedTimestamp ets; in getTimestamp_l()
3206 ExtendedTimestamp::Location location; in getTimestamp_l()
3213 if (location == ExtendedTimestamp::LOCATION_SERVER) { in getTimestamp_l()
3214 ALOGW_IF(mPreviousLocation == ExtendedTimestamp::LOCATION_KERNEL, in getTimestamp_l()
3221 (ets.mTimeNs[ExtendedTimestamp::LOCATION_SERVER_LASTKERNELOK] < 0 || in getTimestamp_l()
3222 ets.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL_LASTKERNELOK] < 0 || in getTimestamp_l()
3223 ets.mPosition[ExtendedTimestamp::LOCATION_SERVER_LASTKERNELOK] <= 0 || in getTimestamp_l()
3224 ets.mPosition[ExtendedTimestamp::LOCATION_KERNEL_LASTKERNELOK] <= 0) in getTimestamp_l()
3229 (ets.mPosition[ExtendedTimestamp::LOCATION_SERVER_LASTKERNELOK] in getTimestamp_l()
3230 - ets.mPosition[ExtendedTimestamp::LOCATION_KERNEL_LASTKERNELOK]); in getTimestamp_l()
3238 } else if (location == ExtendedTimestamp::LOCATION_KERNEL) { in getTimestamp_l()
3239 ALOGV_IF(mPreviousLocation == ExtendedTimestamp::LOCATION_SERVER, in getTimestamp_l()
3243 if (ets.mPosition[ExtendedTimestamp::LOCATION_SERVER] == in getTimestamp_l()
3244 ets.mPosition[ExtendedTimestamp::LOCATION_KERNEL]) { in getTimestamp_l()
3268 (ets.mTimeNs[ExtendedTimestamp::LOCATION_SERVER_LASTKERNELOK] < 0 || in getTimestamp_l()
3269 ets.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL_LASTKERNELOK] < 0) in getTimestamp_l()
3271 : (ets.mPosition[ExtendedTimestamp::LOCATION_SERVER_LASTKERNELOK] in getTimestamp_l()
3272 - ets.mPosition[ExtendedTimestamp::LOCATION_KERNEL_LASTKERNELOK]) in getTimestamp_l()
3670 status_t AudioTrack::pendingDuration(int32_t *msec, ExtendedTimestamp::Location location) in pendingDuration()
3673 (location != ExtendedTimestamp::LOCATION_SERVER in pendingDuration()
3674 && location != ExtendedTimestamp::LOCATION_KERNEL)) { in pendingDuration()
3686 ExtendedTimestamp ets; in pendingDuration()
3689 int64_t diff = ets.mPosition[ExtendedTimestamp::LOCATION_CLIENT] in pendingDuration()
3700 + ets.mTimebaseOffset[ExtendedTimestamp::TIMEBASE_MONOTONIC] in pendingDuration()
3709 if (location != ExtendedTimestamp::LOCATION_SERVER) { in pendingDuration()
3766 int location = ExtendedTimestamp::LOCATION_SERVER; // for ALOG in hasStarted()
3767 ExtendedTimestamp ets; in hasStarted()
3772 for (location = ExtendedTimestamp::LOCATION_KERNEL; in hasStarted()
3773 location >= ExtendedTimestamp::LOCATION_SERVER; --location) { in hasStarted()