Lines Matching refs:ExtendedTimestamp

553     mPreviousLocation = ExtendedTimestamp::LOCATION_INVALID;  in set()
599 mPreviousLocation = ExtendedTimestamp::LOCATION_INVALID; in start()
602 && mStartEts.mTimeNs[ExtendedTimestamp::LOCATION_SERVER] > 0) { in start()
608 + mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]), in start()
611 mFramesWrittenServerOffset = -mStartEts.mPosition[ExtendedTimestamp::LOCATION_SERVER]; in start()
2377 status_t AudioTrack::getTimestamp(ExtendedTimestamp *timestamp) in getTimestamp()
2386 status_t AudioTrack::getTimestamp_l(ExtendedTimestamp *timestamp) in getTimestamp_l()
2403 timestamp->mPosition[ExtendedTimestamp::LOCATION_CLIENT] = mFramesWritten; in getTimestamp_l()
2404 timestamp->mTimeNs[ExtendedTimestamp::LOCATION_CLIENT] = 0; in getTimestamp_l()
2406 for (int i = ExtendedTimestamp::LOCATION_SERVER; in getTimestamp_l()
2407 i < ExtendedTimestamp::LOCATION_MAX; ++i) { in getTimestamp_l()
2466 ExtendedTimestamp ets; in getTimestamp_l()
2469 ExtendedTimestamp::Location location; in getTimestamp_l()
2475 if (location == ExtendedTimestamp::LOCATION_SERVER) { in getTimestamp_l()
2476 ALOGW_IF(mPreviousLocation == ExtendedTimestamp::LOCATION_KERNEL, in getTimestamp_l()
2482 (ets.mTimeNs[ExtendedTimestamp::LOCATION_SERVER_LASTKERNELOK] < 0 || in getTimestamp_l()
2483 ets.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL_LASTKERNELOK] < 0 || in getTimestamp_l()
2484 ets.mPosition[ExtendedTimestamp::LOCATION_SERVER_LASTKERNELOK] <= 0 || in getTimestamp_l()
2485 ets.mPosition[ExtendedTimestamp::LOCATION_KERNEL_LASTKERNELOK] <= 0) in getTimestamp_l()
2490 (ets.mPosition[ExtendedTimestamp::LOCATION_SERVER_LASTKERNELOK] in getTimestamp_l()
2491 - ets.mPosition[ExtendedTimestamp::LOCATION_KERNEL_LASTKERNELOK]); in getTimestamp_l()
2499 } else if (location == ExtendedTimestamp::LOCATION_KERNEL) { in getTimestamp_l()
2500 ALOGV_IF(mPreviousLocation == ExtendedTimestamp::LOCATION_SERVER, in getTimestamp_l()
2509 (ets.mTimeNs[ExtendedTimestamp::LOCATION_SERVER_LASTKERNELOK] < 0 || in getTimestamp_l()
2510 ets.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL_LASTKERNELOK] < 0) in getTimestamp_l()
2512 : (ets.mPosition[ExtendedTimestamp::LOCATION_SERVER_LASTKERNELOK] in getTimestamp_l()
2513 - ets.mPosition[ExtendedTimestamp::LOCATION_KERNEL_LASTKERNELOK]) in getTimestamp_l()
2797 status_t AudioTrack::pendingDuration(int32_t *msec, ExtendedTimestamp::Location location) in pendingDuration()
2800 (location != ExtendedTimestamp::LOCATION_SERVER in pendingDuration()
2801 && location != ExtendedTimestamp::LOCATION_KERNEL)) { in pendingDuration()
2813 ExtendedTimestamp ets; in pendingDuration()
2816 int64_t diff = ets.mPosition[ExtendedTimestamp::LOCATION_CLIENT] in pendingDuration()
2827 + ets.mTimebaseOffset[ExtendedTimestamp::TIMEBASE_MONOTONIC] in pendingDuration()
2836 if (location != ExtendedTimestamp::LOCATION_SERVER) { in pendingDuration()
2892 int location = ExtendedTimestamp::LOCATION_SERVER; // for ALOG in hasStarted()
2893 ExtendedTimestamp ets; in hasStarted()
2898 for (location = ExtendedTimestamp::LOCATION_KERNEL; in hasStarted()
2899 location >= ExtendedTimestamp::LOCATION_SERVER; --location) { in hasStarted()