Searched refs:tv (Results 1 - 25 of 55) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/text/util/
H A DLinkifyTest.java31 TextView tv;
33 tv = new TextView(getContext());
34 tv.setText("Hey, foo@google.com, call 415-555-1212.");
36 assertFalse(tv.getMovementMethod() instanceof LinkMovementMethod);
37 assertTrue(tv.getUrls().length == 0);
42 TextView tv;
44 tv = new TextView(getContext());
45 tv.setAutoLinkMask(Linkify.ALL);
46 tv.setText("Hey, foo@google.com, call 415-555-1212.");
48 assertTrue(tv
[all...]
/frameworks/av/media/libstagefright/
H A DTimeSource.cpp34 struct timeval tv; local
35 gettimeofday(&tv, NULL);
37 return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
H A DThrottledSource.cpp24 struct timeval tv; local
25 gettimeofday(&tv, NULL);
27 return (int64_t)tv.tv_usec + tv.tv_sec * 1000000ll;
/frameworks/base/core/jni/
H A Dandroid_os_SystemClock.cpp75 struct timeval tv;
77 gettimeofday(&tv, NULL);
78 return tv.tv_sec * 1000LL + tv.tv_usec / 1000;
95 struct timeval tv;
97 gettimeofday(&tv, NULL);
98 return tv.tv_sec * 1000000LL + tv.tv_nsec / 1000;
108 struct timeval tv; local
110 gettimeofday(&tv, NUL
[all...]
H A Dandroid_bluetooth_BluetoothAudioGateway.cpp270 struct timeval tv; local
271 int len = sizeof(tv);
273 SOL_SOCKET, SO_RCVTIMEO, &tv, &len) < 0) {
281 (int)tv.tv_sec, (int)tv.tv_usec);
283 tv.tv_sec = timeout_ms / 1000;
284 tv.tv_usec = 1000 * (timeout_ms % 1000);
286 SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) {
294 (int)tv
[all...]
/frameworks/base/tests/SmokeTestApps/src/com/android/smoketest/triggers/
H A DCrashyApp2.java28 TextView tv = new TextView(this);
29 tv.setText("Hello, Other Crashy Android");
30 setContentView(tv);
H A DCrashyApp.java28 TextView tv = new TextView(this);
29 tv.setText("Hello, Crashy Android");
30 setContentView(tv);
H A DUnresponsiveApp.java28 TextView tv = new TextView(this);
29 tv.setText("Hello, Unresponsive Android");
30 setContentView(tv);
/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/base/core/tests/coretests/src/android/widget/
H A DTextViewTest.java30 TextView tv = new TextView(mContext);
35 tv.setText(c, 1, 4);
36 CharSequence oldText = tv.getText();
38 tv.setText(c, 4, 5);
39 CharSequence newText = tv.getText();
/frameworks/native/libs/utils/
H A DSystemClock.cpp52 struct timeval tv;
64 tv.tv_sec = (time_t) (millis / 1000LL);
65 tv.tv_usec = (suseconds_t) ((millis % 1000LL) * 1000LL);
67 ALOGD("Setting time of day to sec=%d\n", (int) tv.tv_sec);
75 ts.tv_sec = tv.tv_sec;
76 ts.tv_nsec = tv.tv_usec * 1000;
79 ALOGW("Unable to set rtc to %ld: %s\n", tv.tv_sec, strerror(errno));
84 if (settimeofday(&tv, NULL) != 0) {
86 (int) tv.tv_sec, (int) tv
[all...]
/frameworks/base/core/java/android/view/animation/
H A DScaleAnimation.java70 TypedValue tv = a.peekValue(
73 if (tv != null) {
74 if (tv.type == TypedValue.TYPE_FLOAT) {
76 mFromX = tv.getFloat();
78 mFromXType = tv.type;
79 mFromXData = tv.data;
82 tv = a.peekValue(
85 if (tv != null) {
86 if (tv.type == TypedValue.TYPE_FLOAT) {
88 mToX = tv
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DPlatLogoActivity.java65 TextView tv = new TextView(this);
66 if (light != null) tv.setTypeface(light);
67 tv.setTextSize(1.25f*size);
68 tv.setTextColor(0xFFFFFFFF);
69 tv.setShadowLayer(4*metrics.density, 0, 2*metrics.density, 0x66000000);
70 tv.setText("Android " + Build.VERSION.RELEASE);
71 view.addView(tv, lp);
73 tv = new TextView(this);
74 if (normal != null) tv.setTypeface(normal);
75 tv
[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/wilhelm/tests/sandbox/
H A Dgetch.c37 struct timeval tv = { 0L, 0L }; local
41 return select(1, &fds, NULL, NULL, &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;
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
H A DLayoutInsetsTest.java33 TextView tv = new TextView(context);
34 tv.setTextSize(32);
35 tv.setText("A");
36 c = tv;
/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/graphics/java/android/graphics/drawable/
H A DRotateDrawable.java211 TypedValue tv = a.peekValue(com.android.internal.R.styleable.RotateDrawable_pivotX);
214 if (tv == null) {
218 pivotXRel = tv.type == TypedValue.TYPE_FRACTION;
219 pivotX = pivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat();
222 tv = a.peekValue(com.android.internal.R.styleable.RotateDrawable_pivotY);
225 if (tv == null) {
229 pivotYRel = tv.type == TypedValue.TYPE_FRACTION;
230 pivotY = pivotYRel ? tv.getFraction(1.0f, 1.0f) : tv
[all...]
H A DAnimatedRotateDrawable.java228 TypedValue tv = a.peekValue(R.styleable.AnimatedRotateDrawable_pivotX);
229 final boolean pivotXRel = tv.type == TypedValue.TYPE_FRACTION;
230 final float pivotX = pivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat();
232 tv = a.peekValue(R.styleable.AnimatedRotateDrawable_pivotY);
233 final boolean pivotYRel = tv.type == TypedValue.TYPE_FRACTION;
234 final float pivotY = pivotYRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat();
/frameworks/base/services/java/com/android/server/wm/
H A DDimAnimator.java111 TypedValue tv = new TypedValue();
113 tv, true);
114 if (tv.type == TypedValue.TYPE_FRACTION) {
115 duration = (long)tv.getFraction(duration, duration);
116 } else if (tv.type >= TypedValue.TYPE_FIRST_INT
117 && tv.type <= TypedValue.TYPE_LAST_INT) {
118 duration = tv.data;
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListWithFooterViewAndNewLabels.java99 TextView tv = (TextView) inflater.inflate(
102 tv.setText(label);
103 return tv;
/frameworks/av/media/libstagefright/foundation/
H A DALooper.cpp66 struct timeval tv; local
67 gettimeofday(&tv, NULL);
69 return (int64_t)tv.tv_sec * 1000000ll + tv.tv_usec;
/frameworks/av/media/libstagefright/rtsp/
H A DARTPAssembler.cpp28 struct timeval tv; local
29 gettimeofday(&tv, NULL);
31 return (int64_t)tv.tv_usec + tv.tv_sec * 1000000ll;

Completed in 446 milliseconds

123