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

12

/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/
H A DLinkifyTest.java35 TextView tv;
37 tv = new TextView(getContext());
38 tv.setText("Hey, foo@google.com, call 415-555-1212.");
40 assertFalse(tv.getMovementMethod() instanceof LinkMovementMethod);
41 assertTrue(tv.getUrls().length == 0);
46 TextView tv;
48 tv = new TextView(getContext());
49 tv.setAutoLinkMask(Linkify.ALL);
50 tv.setText("Hey, foo@google.com, call 415-555-1212.");
52 assertTrue(tv
[all...]
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/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 DTimedEventQueue.cpp139 struct timeval tv; local
140 gettimeofday(&tv, NULL);
142 return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
/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/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/core/java/com/android/internal/widget/
H A DEditableInputConnection.java41 TextView tv = mTextView;
42 if (tv != null) {
43 return tv.getEditableText();
/frameworks/base/tests/FrameworkTest/src/com/android/frameworktest/focus/
H A DListWithFooterViewAndNewLabels.java99 TextView tv = (TextView) inflater.inflate(
102 tv.setText(label);
103 return tv;
/frameworks/base/graphics/java/android/graphics/drawable/
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();
H A DRotateDrawable.java206 TypedValue tv = a.peekValue(com.android.internal.R.styleable.RotateDrawable_pivotX);
207 boolean pivotXRel = tv.type == TypedValue.TYPE_FRACTION;
208 float pivotX = pivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat();
210 tv = a.peekValue(com.android.internal.R.styleable.RotateDrawable_pivotY);
211 boolean pivotYRel = tv.type == TypedValue.TYPE_FRACTION;
212 float pivotY = pivotYRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat();
H A DGradientDrawable.java710 TypedValue tv = a.peekValue(
712 if (tv != null) {
713 boolean radiusRel = tv.type == TypedValue.TYPE_FRACTION;
715 tv.getFraction(1.0f, 1.0f) : tv.getFloat();
812 TypedValue tv = a.peekValue(index);
814 if (tv != null) {
815 boolean vIsFraction = tv.type == TypedValue.TYPE_FRACTION;
816 v = vIsFraction ? tv.getFraction(1.0f, 1.0f) : tv
[all...]
/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.java509 final TextView tv = (TextView) tabIndicator.findViewById(R.id.title);
510 tv.setText(mLabel);
515 tv.setTextColor(context.getResources().getColorStateList(R.color.tab_indicator_text_v4));
543 final TextView tv = (TextView) tabIndicator.findViewById(R.id.title);
544 tv.setText(mLabel);
552 tv.setTextColor(context.getResources().getColorStateList(R.color.tab_indicator_text_v4));
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
H A Dsistream.cpp120 for (const char* tv = tf[v]; c == *tv && (remaining() || underflow()); ++tv)
/frameworks/base/tests/FrameworkTest/src/com/android/frameworktest/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.java266 final float tv = b * (1.0f - s * (1.0f - f));
271 green = tv;
282 blue = tv;
290 red = tv;
/frameworks/base/cmds/stagefright/
H A Dstagefright.cpp46 struct timeval tv; local
47 gettimeofday(&tv, NULL);
49 return (int64_t)tv.tv_usec + tv.tv_sec * 1000000;
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetHostView.java364 TextView tv = new TextView(mContext);
365 tv.setText(com.android.internal.R.string.gadget_host_error_inflating);
367 tv.setBackgroundColor(Color.argb(127, 0, 0, 0));
368 return tv;
/frameworks/policies/base/mid/com/android/internal/policy/impl/
H A DRecentApplicationsDialog.java231 TextView tv = (TextView) theButton;
232 tv.setText(theTitle);
236 tv.setCompoundDrawables(null, icon, null, null);
/frameworks/policies/base/phone/com/android/internal/policy/impl/
H A DRecentApplicationsDialog.java231 TextView tv = (TextView) theButton;
232 tv.setText(theTitle);
236 tv.setCompoundDrawables(null, icon, null, null);
/frameworks/base/core/java/android/webkit/
H A DWebTextView.java577 TextView tv =
579 if (tv != null && mTextView != null) {
580 tv.setTextSize(mTextView.getTextSize());
582 return tv;
588 private void setTextView(TextView tv) { argument
589 mTextView = tv;
/frameworks/base/services/java/com/android/server/status/
H A DStatusBarIcon.java90 TextView tv = mTextView;
91 tv.setText(data.text);
/frameworks/base/cmds/keystore/
H A Dkeystore.c515 struct timeval tv = {.tv_sec = 3}; local
520 setsockopt(the_socket, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
521 setsockopt(the_socket, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));

Completed in 2071 milliseconds

12