Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 25 of 51) sorted by relevance

123

/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java56 final TextView tv = new TextView(mActivity); in testScrollTo() local
59 mActivity.setContentView(tv); in testScrollTo()
60 tv.setSingleLine(true); in testScrollTo()
61 tv.setLines(2); in testScrollTo()
65 TextPaint paint = tv.getPaint(); in testScrollTo()
66 final Layout layout = tv.getLayout(); in testScrollTo()
70 tv.setText(LONG_TEXT); in testScrollTo()
80 Touch.scrollTo(tv, layout, width - tv.getWidth() - 1, 0); in testScrollTo()
84 assertEquals(width - tv.getWidth() - 1, tv.getScrollX()); in testScrollTo()
85 assertEquals(0, tv.getScrollY()); in testScrollTo()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DTypedValueTest.java32 TypedValue tv = new TypedValue(); in testGetFloat() local
33 tv.data = 99; in testGetFloat()
34 assertEquals(EXPECTED, tv.getFloat()); in testGetFloat()
74 TypedValue tv = new TypedValue(); in testGetFraction() local
75 tv.data = 10; in testGetFraction()
76 assertEquals(EXPECTED, tv.getFraction(1.1f, 2.1f)); in testGetFraction()
115 TypedValue tv = new TypedValue(); in testToString() local
116 tv.assetCookie = 1; in testToString()
117 tv.changingConfigurations = 2; in testToString()
118 tv.data = 3; in testToString()
[all …]
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java114 TextView tv = new TextView(mContext); in testAddLinks2() local
115 tv.setText(text); in testAddLinks2()
117 assertTrue(Linkify.addLinks(tv, Linkify.WEB_URLS)); in testAddLinks2()
118 URLSpan[] spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks2()
123 tv.setText(spannable); in testAddLinks2()
124 assertTrue(Linkify.addLinks(tv, Linkify.EMAIL_ADDRESSES)); in testAddLinks2()
125 spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks2()
141 TextView tv = new TextView(mContext); in testAddLinks3() local
142 tv.setText(text); in testAddLinks3()
144 Linkify.addLinks(tv, LINKIFY_TEST_PATTERN, "Test:"); in testAddLinks3()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java164 TextView tv = findTextView(R.id.textview_text); in testAccessText() local
167 tv.setText(expected); in testAccessText()
168 assertEquals(expected, tv.getText().toString()); in testAccessText()
170 tv.setText(null); in testAccessText()
171 assertEquals("", tv.getText().toString()); in testAccessText()
1094 TextView tv = findTextView(R.id.textview_text); in testGetEditableText() local
1097 tv.setText(text, BufferType.EDITABLE); in testGetEditableText()
1098 assertEquals(text, tv.getText().toString()); in testGetEditableText()
1099 assertTrue(tv.getText() instanceof Editable); in testGetEditableText()
1100 assertEquals(text, tv.getEditableText().toString()); in testGetEditableText()
[all …]
DTabHostCtsActivity.java51 final TextView tv = new TextView(getApplicationContext()); in createTabContent() local
52 tv.setText(INITIAL_VIEW_TEXT); in createTabContent()
53 return tv; in createTabContent()
/cts/tests/tests/tv/src/android/media/tv/cts/
DHardwareSessionTest.java17 package android.media.tv.cts;
23 import android.media.tv.TvContract;
24 import android.media.tv.TvInputInfo;
25 import android.media.tv.TvInputManager;
26 import android.media.tv.TvInputService;
27 import android.media.tv.TvView;
28 import android.media.tv.cts.HardwareSessionTest.HardwareProxyTvInputService.CountingSession;
32 import com.android.cts.tv.R;
DBundledTvInputServiceTest.java17 package android.media.tv.cts;
23 import android.media.tv.TvContract;
24 import android.media.tv.TvInputInfo;
25 import android.media.tv.TvInputManager;
26 import android.media.tv.TvView;
30 import com.android.cts.tv.R;
DTvViewStubActivity.java17 package android.media.tv.cts;
22 import com.android.cts.tv.R;
DStubTunerTvInputService.java17 package android.media.tv.cts;
25 import android.media.tv.TvContract;
26 import android.media.tv.TvInputInfo;
27 import android.media.tv.TvInputManager;
28 import android.media.tv.TvInputService;
29 import android.media.tv.TvTrackInfo;
DStubTvInputService.java17 package android.media.tv.cts;
20 import android.media.tv.TvInputService;
DTvInputInfoTest.java17 package android.media.tv.cts;
23 import android.media.tv.TvContract;
24 import android.media.tv.TvInputInfo;
25 import android.media.tv.TvInputManager;
DNoPermissionTvInputService.java17 package android.media.tv.cts;
DNoMetadataTvInputService.java17 package android.media.tv.cts;
DTvInputManagerTest.java17 package android.media.tv.cts;
23 import android.media.tv.TvContentRating;
24 import android.media.tv.TvInputInfo;
25 import android.media.tv.TvInputManager;
DTvInputSetupActivityStub.java17 package android.media.tv.cts;
/cts/tests/app/src/android/app/cts/
DActivityManagerStubFooActivity.java28 final TextView tv = new TextView(this); in onCreate() local
29 tv.setText("Hello, Android"); in onCreate()
30 setContentView(tv); in onCreate()
DActivityManagerStubCrashActivity.java28 final TextView tv = new TextView(this); in onCreate() local
29 tv.setText("Hello, Android but crash"); in onCreate()
30 setContentView(tv); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DBaseActivity.java28 TextView tv = new TextView(this); in onCreate() local
30 tv.setText("2 + 3 = " + Integer.toString(sum)); in onCreate()
31 setContentView(tv); in onCreate()
/cts/suite/cts/deviceTests/dram/jni/
DMemoryNativeJni.cpp24 struct timeval tv; in currentTimeMillis() local
25 gettimeofday(&tv, (struct timezone *) NULL); in currentTimeMillis()
26 return tv.tv_sec * 1000.0 + tv.tv_usec / 1000.0; in currentTimeMillis()
/cts/suite/audio_quality/lib/src/
DClientSocket.cpp101 struct timeval tv; in readData() local
102 tv.tv_sec = timeInSec; in readData()
103 tv.tv_usec = timeInUs; in readData()
106 if (select(mSocket + 1, &rfds, NULL, NULL, &tv) == -1) { in readData()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMultipleTracksTestActivity.java17 package com.android.cts.verifier.tv;
23 import android.media.tv.TvContentRating;
24 import android.media.tv.TvContract;
25 import android.media.tv.TvInputManager;
26 import android.media.tv.TvTrackInfo;
DMockTvInputSetupActivity.java17 package com.android.cts.verifier.tv;
23 import android.media.tv.TvContract;
24 import android.media.tv.TvContract.Programs;
25 import android.media.tv.TvInputInfo;
DParentalControlTestActivity.java17 package com.android.cts.verifier.tv;
23 import android.media.tv.TvContentRating;
24 import android.media.tv.TvContract;
25 import android.media.tv.TvInputManager;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/
DScreenPinningTestActivity.java104 TextView tv = new TextView(this); in show() local
105 tv.setPadding(10, 10, 10, 30); in show()
106 tv.setText(id); in show()
108 mInstructions.addView(tv); in show()
/cts/tests/tests/tv/src/android/tv/settings/cts/
DSettingsLeanbackStubActivity.java17 package android.tv.settings.cts;

123