Searched defs:timestampNs (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/location/lib/java/com/android/location/provider/
H A DActivityRecognitionEvent.java27 public ActivityRecognitionEvent(String activity, int eventType, long timestampNs) { argument
30 mTimestampNs = timestampNs;
/frameworks/base/core/java/android/hardware/location/
H A DActivityRecognitionEvent.java32 public ActivityRecognitionEvent(String activity, int eventType, long timestampNs) { argument
35 mTimestampNs = timestampNs;
56 long timestampNs = source.readLong();
58 return new ActivityRecognitionEvent(activity, eventType, timestampNs);
/frameworks/av/media/ndk/
H A DNdkImage.cpp575 media_status_t AImage_getTimestamp(const AImage* image, /*out*/int64_t* timestampNs) { argument
577 if (image == nullptr || timestampNs == nullptr) {
578 ALOGE("%s: bad argument. image %p timestampNs %p",
579 __FUNCTION__, image, timestampNs);
582 return image->getTimestamp(timestampNs);
H A DNdkMediaCodec.cpp362 AMediaCodec *mData, size_t idx, int64_t timestampNs) {
363 ALOGV("render @ %" PRId64, timestampNs);
364 return translate_error(mData->mCodec->renderOutputBufferAndRelease(idx, timestampNs));
361 AMediaCodec_releaseOutputBufferAtTime( AMediaCodec *mData, size_t idx, int64_t timestampNs) argument
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/
H A DMediaEncoderFilter.java338 public boolean skipFrameAndModifyTimestamp(long timestampNs) { argument
341 mLastTimeLapseFrameRealTimestampNs = timestampNs;
342 mTimestampNs = timestampNs;
352 if (mNumFramesEncoded >= 2 && timestampNs <
362 // - Artificially modify timestampNs to be one frame time (1/framerate) ahead
364 if (mLogVerbose) Log.v(TAG, "timelapse: encoding frame, Timestamp t = " + timestampNs +
367 mLastTimeLapseFrameRealTimestampNs = timestampNs;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraErrorCollector.java1059 long timestampNs) {
1063 expectEquals(msg + "Image timestamp is wrong.", image.getTimestamp(), timestampNs);
1058 expectImageProperties(String msg, Image image, int format, Size size, long timestampNs) argument
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDecoder.cpp919 int64_t timestampNs; local
920 CHECK(msg->findInt64("timestampNs", &timestampNs));
921 err = mCodec->renderOutputBufferAndRelease(bufferIx, timestampNs);
/frameworks/base/media/java/android/media/
H A DImageReader.java726 public void setTimestamp(long timestampNs) { argument
728 mTimestamp = timestampNs;
H A DImageWriter.java819 long timestampNs, int left, int top, int right, int bottom);
822 long imageNativeBuffer, int imageFormat, long timestampNs, int left,
818 nativeQueueInputImage(long nativeCtx, Image image, long timestampNs, int left, int top, int right, int bottom) argument
821 nativeAttachAndQueueImage(long nativeCtx, long imageNativeBuffer, int imageFormat, long timestampNs, int left, int top, int right, int bottom) argument
/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp419 jlong timestampNs, jint left, jint top, jint right, jint bottom) {
444 ALOGV("timestamp to be queued: %" PRId64, timestampNs);
445 res = native_window_set_buffers_timestamp(anw.get(), timestampNs);
484 jlong nativeBuffer, jint imageFormat, jlong timestampNs, jint left, jint top,
537 ALOGV("timestamp to be queued: %" PRId64, timestampNs);
538 res = native_window_set_buffers_timestamp(anw.get(), timestampNs);
418 ImageWriter_queueImage(JNIEnv* env, jobject thiz, jlong nativeCtx, jobject image, jlong timestampNs, jint left, jint top, jint right, jint bottom) argument
483 ImageWriter_attachAndQueueImage(JNIEnv* env, jobject thiz, jlong nativeCtx, jlong nativeBuffer, jint imageFormat, jlong timestampNs, jint left, jint top, jint right, jint bottom) argument
H A Dandroid_media_MediaCodec.cpp374 size_t index, bool render, bool updatePTS, int64_t timestampNs) {
376 return mCodec->renderOutputBufferAndRelease(index, timestampNs);
1470 jint index, jboolean render, jboolean updatePTS, jlong timestampNs) {
1480 status_t err = codec->releaseOutputBuffer(index, render, updatePTS, timestampNs);
373 releaseOutputBuffer( size_t index, bool render, bool updatePTS, int64_t timestampNs) argument
1468 android_media_MediaCodec_releaseOutputBuffer( JNIEnv *env, jobject thiz, jint index, jboolean render, jboolean updatePTS, jlong timestampNs) argument
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp796 status_t MediaCodec::renderOutputBufferAndRelease(size_t index, int64_t timestampNs) { argument
800 msg->setInt64("timestampNs", timestampNs);
2618 if (!msg->findInt64("timestampNs", &renderTimeNs)) {
2623 info->mNotify->setInt64("timestampNs", renderTimeNs);
H A DACodec.cpp6159 int64_t timestampNs = 0; local
6160 if (!msg->findInt64("timestampNs", &timestampNs)) {
6162 if (info->mData->meta()->findInt64("timeUs", &timestampNs)) {
6163 ALOGV("using buffer PTS of %lld", (long long)timestampNs);
6164 timestampNs *= 1000;
6169 err = native_window_set_buffers_timestamp(mCodec->mNativeWindow.get(), timestampNs);
/frameworks/base/services/core/java/com/android/server/am/
H A DBatteryStatsService.java571 public void noteMobileRadioPowerState(int powerState, long timestampNs, int uid) { argument
574 mStats.noteMobileRadioPowerState(powerState, timestampNs, uid);
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java3557 public void noteMobileRadioPowerState(int powerState, long timestampNs, int uid) { argument
3566 mMobileRadioActiveStartTime = realElapsedRealtimeMs = timestampNs / (1000 * 1000);
3569 realElapsedRealtimeMs = timestampNs / (1000*1000);
4242 public void noteWifiRadioPowerState(int powerState, long timestampNs) { argument

Completed in 510 milliseconds