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

12

/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/base/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;
H A DHTTPStream.cpp85 struct timeval tv; local
86 tv.tv_sec = 0;
87 tv.tv_usec = 100000ll;
89 int nfds = ::select(s + 1, &rs, &ws, NULL, &tv);
144 struct timeval tv; local
145 tv.tv_sec = 0;
146 tv.tv_usec = 100000ll;
153 &tv);
495 struct timeval tv; local
496 tv
[all...]
H A DTimedEventQueue.cpp190 struct timeval tv; local
191 gettimeofday(&tv, NULL);
193 return (int64_t)tv.tv_sec * 1000000ll + tv.tv_usec;
/frameworks/base/core/tests/coretests/src/android/widget/
H A DTextViewTest.java34 TextView tv = new TextView(mContext);
39 tv.setText(c, 1, 4);
40 CharSequence oldText = tv.getText();
42 tv.setText(c, 4, 5);
43 CharSequence newText = tv.getText();
/frameworks/base/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 LOGD("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 LOGW("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/jni/
H A Dandroid_os_SystemClock.cpp75 struct timeval tv;
77 gettimeofday(&tv, NULL);
78 return tv.tv_sec * 1000LL + tv.tv_usec / 1000;
H A Dandroid_bluetooth_BluetoothAudioGateway.cpp269 struct timeval tv; local
270 int len = sizeof(tv);
272 SOL_SOCKET, SO_RCVTIMEO, &tv, &len) < 0) {
280 (int)tv.tv_sec, (int)tv.tv_usec);
282 tv.tv_sec = timeout_ms / 1000;
283 tv.tv_usec = 1000 * (timeout_ms % 1000);
285 SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) {
293 (int)tv
[all...]
/frameworks/base/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;
/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/graphics/java/android/graphics/drawable/
H A DRotateDrawable.java208 TypedValue tv = a.peekValue(com.android.internal.R.styleable.RotateDrawable_pivotX);
211 if (tv == null) {
215 pivotXRel = tv.type == TypedValue.TYPE_FRACTION;
216 pivotX = pivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat();
219 tv = a.peekValue(com.android.internal.R.styleable.RotateDrawable_pivotY);
222 if (tv == null) {
226 pivotYRel = tv.type == TypedValue.TYPE_FRACTION;
227 pivotY = pivotYRel ? tv.getFraction(1.0f, 1.0f) : tv
[all...]
H A DAnimatedRotateDrawable.java221 TypedValue tv = a.peekValue(R.styleable.AnimatedRotateDrawable_pivotX);
222 final boolean pivotXRel = tv.type == TypedValue.TYPE_FRACTION;
223 final float pivotX = pivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat();
225 tv = a.peekValue(R.styleable.AnimatedRotateDrawable_pivotY);
226 final boolean pivotYRel = tv.type == TypedValue.TYPE_FRACTION;
227 final float pivotY = pivotYRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat();
/frameworks/base/core/java/com/android/internal/widget/
H A DEditableInputConnection.java41 TextView tv = mTextView;
42 if (tv != null) {
43 return tv.getEditableText();
/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/base/media/libstagefright/foundation/
H A DALooper.cpp54 struct timeval tv; local
55 gettimeofday(&tv, NULL);
57 return (int64_t)tv.tv_sec * 1000000ll + tv.tv_usec;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
H A DBaseAdapter.java158 TextView tv = new TextView(context);
159 tv.setText("Unable to find layout: " + dataBindingItem.getViewReference().getName());
160 view = tv;
186 TextView tv = (TextView) view;
192 resolvedRef, ViewAttribute.TEXT, tv.getText().toString());
199 tv.setText((String) value);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DRecentApplicationsDialog.java233 final TextView tv = mIcons[index];
234 tv.setText(title);
236 tv.setCompoundDrawables(null, icon, null, null);
237 tv.setTag(intent);
238 tv.setVisibility(View.VISIBLE);
239 tv.setPressed(false);
240 tv.clearFocus();
/frameworks/base/core/java/android/widget/
H A DToast.java236 TextView tv = (TextView)v.findViewById(com.android.internal.R.id.message);
237 tv.setText(text);
277 TextView tv = (TextView) mNextView.findViewById(com.android.internal.R.id.message);
278 if (tv == null) {
281 tv.setText(s);
H A DTabHost.java515 final TextView tv = (TextView) tabIndicator.findViewById(R.id.title);
516 tv.setText(mLabel);
521 tv.setTextColor(context.getResources().getColorStateList(R.color.tab_indicator_text_v4));
549 final TextView tv = (TextView) tabIndicator.findViewById(R.id.title);
550 tv.setText(mLabel);
558 tv.setTextColor(context.getResources().getColorStateList(R.color.tab_indicator_text_v4));
/frameworks/base/core/tests/coretests/src/android/util/
H A DScrollViewScenario.java98 final TextView tv = new TextView(context);
99 tv.setText(text);
100 return tv;
/frameworks/base/graphics/java/android/graphics/
H A DColor.java267 final float tv = b * (1.0f - s * (1.0f - f));
272 green = tv;
283 blue = tv;
291 red = tv;
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetHostView.java377 TextView tv = new TextView(mContext);
378 tv.setText(com.android.internal.R.string.gadget_host_error_inflating);
380 tv.setBackgroundColor(Color.argb(127, 0, 0, 0));
381 return tv;

Completed in 360 milliseconds

12