Searched defs:tv (Results 1 - 19 of 19) sorted by relevance

/frameworks/av/libvideoeditor/osal/src/
H A DM4OSA_Clock.c58 struct timeval tv; local
76 if(gettimeofday(&tv, &tz) == 0)
78 u32_time_lo = (tv.tv_sec & 0xFFFF) * timescale;
79 u32_time_hi = (((tv.tv_sec >> 16) & 0xFFFF) * timescale) + ((u32_time_lo >> 16) & 0xFFFF);
81 u32_time_lo += tv.tv_usec / factor;
/frameworks/wilhelm/tests/sandbox/
H A Dgetch.c37 struct timeval tv = { 0L, 0L }; local
41 return select(1, &fds, NULL, NULL, &tv);
/frameworks/base/core/jni/
H A Dandroid_os_SystemClock.cpp51 struct timeval tv; local
61 tv.tv_sec = (time_t) (millis / 1000LL);
62 tv.tv_usec = (suseconds_t) ((millis % 1000LL) * 1000LL);
64 ALOGD("Setting time of day to sec=%d\n", (int) tv.tv_sec);
71 ts.tv_sec = tv.tv_sec;
72 ts.tv_nsec = tv.tv_usec * 1000;
75 ALOGW("Unable to set rtc to %ld: %s\n", tv.tv_sec, strerror(errno));
124 struct timeval tv;
126 gettimeofday(&tv, NULL);
127 return tv
157 struct timeval tv; local
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dtime_util.cpp31 struct timeval tv; local
33 gettimeofday(&tv, 0);
35 basesec = tv.tv_sec;
37 nowtime = (uint64_t)(tv.tv_sec - basesec) * (uint64_t)1000000 +
38 (uint64_t)tv.tv_usec;
/frameworks/base/media/mca/filterpacks/native/base/
H A Dtime_util.cpp29 struct timeval tv; local
31 gettimeofday(&tv, 0);
33 basesec = tv.tv_sec;
35 nowtime = (uint64_t)(tv.tv_sec - basesec) * (uint64_t)1000000 +
36 (uint64_t)tv.tv_usec;
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DNumPadKey.java110 public void setTextView(TextView tv) { argument
111 mTextView = tv;
/frameworks/base/media/tests/omxjpegdecoder/
H A Djpeg_decoder_bench.cpp46 struct timeval tv; local
47 gettimeofday(&tv, NULL);
49 return tv.tv_usec + (int64_t) tv.tv_sec * 1000000;
H A Domx_jpeg_decoder.cpp84 struct timeval tv; local
85 gettimeofday(&tv, NULL);
87 return (int64_t)tv.tv_usec + tv.tv_sec * 1000000;
/frameworks/base/core/jni/android/opengl/
H A Dpoly_clip.cpp66 float t, tu, tv; local
73 for (v= &p->vert[0], i=p->n; i>0; i--, u=v, tu=tv, v++) {
75 /* tv is negative if vertex v is in */
76 tv = sign*COORD(v, index) - v->sw*k;
77 if ((tu <= 0.0f) ^ (tv <= 0.0f)) {
79 t = tu/(tu-tv);
88 if (tv<=0.0f) /* vertex v is in, copy it to q */
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/
H A DTvStatusBar.java17 package com.android.systemui.statusbar.tv;
/frameworks/av/media/libstagefright/rtsp/
H A DARTPConnection.cpp249 struct timeval tv; local
250 tv.tv_sec = 0;
251 tv.tv_usec = kSelectTimeoutUs;
278 int res = select(maxSocket + 1, &rs, NULL, NULL, &tv);
H A DARTSPConnection.cpp362 struct timeval tv; local
363 tv.tv_sec = 0;
364 tv.tv_usec = kSelectTimeoutUs;
370 int res = select(mSocket + 1, NULL, &ws, NULL, &tv);
483 struct timeval tv; local
484 tv.tv_sec = 0;
485 tv.tv_usec = kSelectTimeoutUs;
491 int res = select(mSocket + 1, &rs, NULL, NULL, &tv);
H A DMyTransmitter.h138 struct timeval tv; local
139 gettimeofday(&tv, NULL);
141 uint64_t nowUs = tv.tv_sec * 1000000ll + tv.tv_usec;
429 struct timeval tv;
430 tv.tv_sec = 0;
431 tv.tv_usec = 0;
433 int res = select(mRTCPSocket + 1, &rs, NULL, NULL, &tv);
/frameworks/av/media/libstagefright/wifi-display/rtp/
H A DRTPSender.cpp494 struct timeval tv; local
495 gettimeofday(&tv, NULL /* timezone */);
497 uint64_t nowUs = tv.tv_sec * 1000000ll + tv.tv_usec;
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp73 struct timeval tv; local
74 gettimeofday(&tv, NULL);
76 return (int64_t)tv.tv_usec + tv.tv_sec * 1000000ll;
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp601 timeval tv; local
602 tv.tv_sec = 0;
603 tv.tv_usec = 1000 * sampleCount / sampleRate * 500;
604 if (setsockopt(pair[0], SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv))) {
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp2458 struct timeval tv; local
2459 gettimeofday(&tv, NULL);
2461 localtime_r(&tv.tv_sec, &tm);
/frameworks/base/core/java/android/widget/
H A DEditor.java299 TextView tv = (TextView) mErrorPopup.getContentView();
300 chooseSize(mErrorPopup, mError, tv);
301 tv.setText(mError);
561 private void chooseSize(PopupWindow pop, CharSequence text, TextView tv) { argument
562 int wid = tv.getPaddingLeft() + tv.getPaddingRight();
563 int ht = tv.getPaddingTop() + tv.getPaddingBottom();
567 Layout l = new StaticLayout(text, tv.getPaint(), defaultWidthInPixels,
584 TextView tv
[all...]
H A DTextView.java402 public void setErrorDrawable(Drawable dr, TextView tv) { argument
409 int[] state = tv.getDrawableState();
414 mDrawableError.setCallback(tv);

Completed in 2474 milliseconds