/cts/tests/tests/util/src/android/util/cts/ |
D | TypedValueTest.java | 45 TypedValue tv = new TypedValue(); in testGetFloat() local 46 tv.data = 99; in testGetFloat() 47 assertEquals(expected, tv.getFloat(), 0.0f); in testGetFloat() 90 TypedValue tv = new TypedValue(); in testGetFraction() local 91 tv.data = 10; in testGetFraction() 92 assertEquals(expected, tv.getFraction(1.1f, 2.1f), 0.0f); in testGetFraction() 132 TypedValue tv = new TypedValue(); in testToString() local 133 tv.assetCookie = 1; in testToString() 134 tv.changingConfigurations = 2; in testToString() 135 tv.data = 3; in testToString() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 262 TextView tv = findTextView(R.id.textview_text); in testAccessText() local 265 tv.setText(expected); in testAccessText() 266 assertEquals(expected, tv.getText().toString()); in testAccessText() 268 tv.setText(null); in testAccessText() 269 assertEquals("", tv.getText().toString()); in testAccessText() 1463 TextView tv = findTextView(R.id.textview_text); in testGetEditableText() local 1466 tv.setText(text, BufferType.EDITABLE); in testGetEditableText() 1467 assertEquals(text, tv.getText().toString()); in testGetEditableText() 1468 assertTrue(tv.getText() instanceof Editable); in testGetEditableText() 1469 assertEquals(text, tv.getEditableText().toString()); in testGetEditableText() [all …]
|
D | TabHostCtsActivity.java | 50 final TextView tv = new TextView(getApplicationContext()); in createTabContent() local 51 tv.setText(INITIAL_VIEW_TEXT); in createTabContent() 52 return tv; in createTabContent()
|
D | TextViewPrecomputedTextTest.java | 173 final TextView tv = new TextView(getContext()); in setText() local 174 final Params tvParams = tv.getTextMetricsParams(); in setText() 180 tv.setText(pct); in setText() 187 tv.setTextMetricsParams(pctParams); in setText() 188 tv.setText(pct); in setText()
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | LinkifyTest.java | 139 TextView tv = new TextView(mContext); in testAddLinksToTextView() local 140 tv.setText(text); in testAddLinksToTextView() 142 assertTrue(Linkify.addLinks(tv, Linkify.WEB_URLS)); in testAddLinksToTextView() 143 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextView() 148 tv.setText(spannable); in testAddLinksToTextView() 149 assertTrue(Linkify.addLinks(tv, Linkify.EMAIL_ADDRESSES)); in testAddLinksToTextView() 150 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextView() 167 TextView tv = new TextView(mContext); in testAddLinksToTextViewWithScheme() local 168 tv.setText(text); in testAddLinksToTextViewWithScheme() 170 Linkify.addLinks(tv, LINKIFY_TEST_PATTERN, "Test:"); in testAddLinksToTextViewWithScheme() [all …]
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | HardwareSessionTest.java | 17 package android.media.tv.cts; 22 import android.media.tv.TvContract; 23 import android.media.tv.TvInputInfo; 24 import android.media.tv.TvInputManager; 25 import android.media.tv.TvInputService; 26 import android.media.tv.TvView; 27 import android.media.tv.cts.HardwareSessionTest.HardwareProxyTvInputService.CountingSession; 31 import android.tv.cts.R;
|
D | BundledTvInputServiceTest.java | 17 package android.media.tv.cts; 22 import android.media.tv.TvContract; 23 import android.media.tv.TvInputInfo; 24 import android.media.tv.TvInputManager; 25 import android.media.tv.TvView; 29 import android.tv.cts.R;
|
D | StubTunerTvInputService.java | 17 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;
|
D | TvViewStubActivity.java | 17 package android.media.tv.cts; 22 import android.tv.cts.R;
|
D | TvInputManagerTest.java | 17 package android.media.tv.cts; 22 import android.media.tv.TvContentRating; 23 import android.media.tv.TvInputInfo; 24 import android.media.tv.TvInputManager; 25 import android.media.tv.TvInputService;
|
D | StubTvInputService.java | 17 package android.media.tv.cts; 20 import android.media.tv.TvInputService;
|
D | TvViewTest.java | 17 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.TvTrackInfo; 27 import android.media.tv.TvView; 28 import android.media.tv.TvView.TvInputCallback; 38 import android.tv.cts.R;
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | Resources_ThemeTest.java | 178 final TypedValue tv = new TypedValue(); in testEmptyDoesNotGetOverriden() local 179 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden() 180 assertEquals(TypedValue.TYPE_NULL, tv.type); in testEmptyDoesNotGetOverriden() 181 assertEquals(TypedValue.DATA_NULL_EMPTY, tv.data); in testEmptyDoesNotGetOverriden() 185 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden() 186 assertEquals(TypedValue.TYPE_NULL, tv.type); in testEmptyDoesNotGetOverriden() 187 assertEquals(TypedValue.DATA_NULL_EMPTY, tv.data); in testEmptyDoesNotGetOverriden() 191 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden() 192 assertNotSame(TypedValue.TYPE_NULL, tv.type); in testEmptyDoesNotGetOverriden()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | ActivityManagerStubFooActivity.java | 28 final TextView tv = new TextView(this); in onCreate() local 29 tv.setText("Hello, Android"); in onCreate() 30 setContentView(tv); in onCreate()
|
D | ActivityManagerStubCrashActivity.java | 28 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/ |
D | BaseActivity.java | 28 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/audio_quality/lib/src/ |
D | ClientSocket.cpp | 101 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/ |
D | MockTvInputSetupActivity.java | 17 package com.android.cts.verifier.tv; 26 import android.media.tv.TvContract; 27 import android.media.tv.TvContract.Programs; 28 import android.media.tv.TvInputInfo;
|
D | ParentalControlTestActivity.java | 17 package com.android.cts.verifier.tv; 22 import android.media.tv.TvContentRating; 23 import android.media.tv.TvContract; 24 import android.media.tv.TvInputManager;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/ |
D | SyncTestStep.java | 17 package com.android.cts.verifier.tv.display; 19 import com.android.cts.verifier.tv.TvAppVerifierActivity;
|
D | AsyncTestStep.java | 17 package com.android.cts.verifier.tv.display; 22 import com.android.cts.verifier.tv.TvAppVerifierActivity;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/ |
D | ScreenPinningTestActivity.java | 102 TextView tv = new TextView(this); in show() local 103 tv.setPadding(10, 10, 10, 30); in show() 104 tv.setText(id); in show() 106 mInstructions.addView(tv); in show()
|
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/ |
D | StubTvInputService.java | 17 package com.android.cts.tv.hostside; 20 import android.media.tv.TvInputService;
|
/cts/hostsidetests/tv/app2/src/com/android/cts/tv/hostside/app2/ |
D | TvViewMonitorActivity.java | 17 package com.android.cts.tv.hostside.app2; 22 import android.media.tv.TvInputManager;
|
/cts/tests/openglperf2/jni/graphics/ |
D | GLUtils.cpp | 193 struct timeval tv; in currentTimeMillis() local 194 gettimeofday(&tv, (struct timezone *) NULL); in currentTimeMillis() 195 return tv.tv_sec * 1000.0 + tv.tv_usec / 1000.0; in currentTimeMillis()
|