Home
last modified time | relevance | path

Searched refs:TEXT (Results 1 – 25 of 142) sorted by relevance

123456

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DScaledTextActivity.java47 private static final String TEXT = "Hello libhwui! "; field in ScaledTextActivity.ScaledTextView
97 canvas.drawText(TEXT, 30.0f, 30.0f, mPaint); in onDraw()
99 canvas.drawText(TEXT, 30.0f, 50.0f, mPaint); in onDraw()
101 canvas.drawText(TEXT, 30.0f, 70.0f, mPaint); in onDraw()
108 canvas.drawText(TEXT, 30.0f, 30.0f, mPaint); in onDraw()
111 canvas.drawText(TEXT, 30.0f, 50.0f, mPaint); in onDraw()
113 canvas.drawText(TEXT, 30.0f, 70.0f, mPaint); in onDraw()
121 canvas.drawText(TEXT, 30.0f, 30.0f, mPaint); in onDraw()
127 canvas.drawText(TEXT, 30.0f, 30.0f, mShadowPaint); in onDraw()
132 float width = mPaint.measureText(TEXT); in onDraw()
[all …]
DNoAATextActivity.java38 private static final String TEXT = "Hello libhwui!"; field in NoAATextActivity.ScaledNoAA
54 canvas.drawText(TEXT, 30.0f, 150.0f, mPaint); in onDraw()
DRotate3dTextActivity.java60 private static final String TEXT = "Hello libhwui! "; field in Rotate3dTextActivity.Rotate3dTextView
79 canvas.drawText(TEXT, getWidth() / 2.0f, getHeight() / 2.0f, mPaint); in onDraw()
/frameworks/base/apct-tests/perftests/textclassifier/src/android/view/textclassifier/
DTextClassifierPerfTest.java34 private static final String TEXT = " Oh hi Mark, the number is (323) 654-6192.\n" field in TextClassifierPerfTest
53 new TextClassification.Request.Builder(TEXT, 0, TEXT.length()).build(); in testClassifyText()
65 TEXT, in testSuggestSelection()
78 new TextLinks.Request.Builder(TEXT).build(); in testGenerateLinks()
90 .setText(TEXT) in testSuggestConversationActions()
104 TextLanguage.Request request = new TextLanguage.Request.Builder(TEXT).build(); in testDetectLanguage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/toast/
DToastUITest.java94 private static final String TEXT = "Hello World"; field in ToastUITest
146 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_addsCorrectViewToWindowManager()
151 assertThat(((TextView) view.findViewById(MESSAGE_RES_ID)).getText()).isEqualTo(TEXT); in testShowToast_addsCorrectViewToWindowManager()
156 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_addsViewWithCorrectLayoutParamsToWindowManager()
172 mToastUI.showToast(ANDROID_UID, "android", TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_forAndroidPackage_addsAllUserFlag()
185 mToastUI.showToast(SYSTEMUI_UID, "com.android.systemui", TOKEN_1, TEXT, WINDOW_TOKEN_1, in testShowToast_forSystemUiPackage_addsAllUserFlag()
198 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_callsCallback()
218 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_sendsAccessibilityEvent()
233 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_accessibilityManagerClientIsRemoved()
240 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testHideToast_removesView()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DTextInterpolatorTest.kt38 private const val TEXT = "Hello, World." constant
79 val layout = makeLayout(TEXT, PAINT) in testStartState()
91 val expected = makeLayout(TEXT, START_PAINT).toBitmap(BMP_WIDTH, BMP_HEIGHT) in testStartState()
98 val layout = makeLayout(TEXT, PAINT) in testEndState()
109 val expected = makeLayout(TEXT, END_PAINT).toBitmap(BMP_WIDTH, BMP_HEIGHT) in testEndState()
116 val layout = makeLayout(TEXT, PAINT) in testMiddleState()
130 assertThat(actual.sameAs(makeLayout(TEXT, START_PAINT) in testMiddleState()
132 assertThat(actual.sameAs(makeLayout(TEXT, END_PAINT) in testMiddleState()
138 val layout = makeLayout(TEXT, PAINT) in testRebase()
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener_test.cpp120 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
285 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
308 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
314 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
321 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
327 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
333 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
377 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
383 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
389 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java115 byte[] blobData = generateData(fileSize, DataType.TEXT); in testTextDownload()
154 File existentFile = createFileOnSD(null, 1, DataType.TEXT, null); in testDownloadToExternal_fileExists()
155 byte[] blobData = generateData(DEFAULT_FILE_SIZE, DataType.TEXT); in testDownloadToExternal_fileExists()
193 byte[] blobData = generateData(DEFAULT_FILE_SIZE, DataType.TEXT); in testDownloadToExternal()
224 byte[] blobData = generateData(DEFAULT_FILE_SIZE, DataType.TEXT); in testDownloadToProhibitedDirectory()
252 byte[] blobData = generateData(3000, DataType.TEXT); // file size = 3000 bytes in testGetDownloadIdOnNotification()
302 byte[] blobData = generateData(DEFAULT_FILE_SIZE, DataType.TEXT); in testRelativeRedirect()
371 byte[] blobData = generateData(fileSize, DataType.TEXT); in testDownloadNoWifi()
402 byte[] blobData = generateData(25000, DataType.TEXT); // file size = 25000 bytes in testServerDropConnection_body()
DDownloadManagerStressTest.java83 byte[] blobData = generateData(size, DataType.TEXT); in testMultipleDownloads()
125 File largeFile = createFileOnSD(null, fileSize, DataType.TEXT, null); in testDownloadLargeFile()
198 byte[] blobData = generateData(DOWNLOAD_FILE_SIZE, DataType.TEXT); in testDownloadToCacheWithAlmostFullCache()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBridgeXmlBlockParserTest.java61 assertEquals(XmlPullParser.TEXT, parser.next()); in testXmlBlockParser()
65 assertEquals(XmlPullParser.TEXT, parser.next()); in testXmlBlockParser()
68 assertEquals(XmlPullParser.TEXT, parser.next()); in testXmlBlockParser()
74 assertEquals(XmlPullParser.TEXT, parser.next()); in testXmlBlockParser()
80 assertEquals(XmlPullParser.TEXT, parser.next()); in testXmlBlockParser()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/
DErrorDialogFragment.java30 public static final String TEXT = "com.android.packageinstaller.arg.text"; field in ErrorDialogFragment
35 .setMessage(getArguments().getInt(TEXT)) in onCreateDialog()
/frameworks/compile/mclinker/lib/LD/
DELFFileFormat.cpp70 LDFileFormat::TEXT, in initStdSections()
77 LDFileFormat::TEXT, in initStdSections()
105 LDFileFormat::TEXT, in initStdSections()
117 LDFileFormat::TEXT, in initStdSections()
138 LDFileFormat::TEXT, in initStdSections()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/
DErrorFragment.java32 public static final String TEXT = "com.android.packageinstaller.arg.text"; field in ErrorFragment
43 getString(getArguments().getInt(TEXT)), in onCreateGuidance()
/frameworks/base/core/java/android/content/
DUriMatcher.java207 return new UriMatcher(TEXT, "*");
259 case TEXT:
277 private static final int TEXT = 2;
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DRecycleAccessibilityEventTest.java28 private static final String TEXT = "Some stuff"; field in RecycleAccessibilityEventTest
49 first.getText().add(TEXT); in testAccessibilityEventViewTextChangedType()
/frameworks/base/core/java/com/android/internal/util/
DBinaryXmlPullParser.java147 case TEXT: in next()
153 return TEXT; in next()
288 case XmlPullParser.TEXT: in consumeToken()
326 case TEXT: in consumeAdditionalText()
335 mCurrentToken = TEXT; in consumeAdditionalText()
374 if (eventType == TEXT) { in nextText()
391 if (eventType == TEXT && isWhitespace()) { in nextTag()
543 case TEXT: in isWhitespace()
DBinaryXmlSerializer.java29 import static org.xmlpull.v1.XmlPullParser.TEXT;
316 writeToken(TEXT, new String(buf, start, len)); in text()
322 writeToken(TEXT, text); in text()
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DTestEnrollmentActivity.java44 private static final String TEXT = "Hello There"; field in TestEnrollmentActivity
64 Locale.forLanguageTag(BCP47_LOCALE), TEXT, in onEnrollButtonClicked()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DActiveAdmin.java27 import static org.xmlpull.v1.XmlPullParser.TEXT;
639 if (type == END_TAG || type == TEXT) { in readFromXml()
736 if (type == TypedXmlPullParser.TEXT) { in readFromXml()
743 if (type == TypedXmlPullParser.TEXT) { in readFromXml()
756 if (type == TypedXmlPullParser.TEXT) { in readFromXml()
765 if (type == TypedXmlPullParser.TEXT) { in readFromXml()
772 if (type == TypedXmlPullParser.TEXT) { in readFromXml()
811 if (type == TypedXmlPullParser.TEXT) { in readFromXml()
818 if (type == TypedXmlPullParser.TEXT) { in readFromXml()
843 if (outerType == TypedXmlPullParser.END_TAG || outerType == TypedXmlPullParser.TEXT) { in readPackageList()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DXmlTest.java25 import static org.xmlpull.v1.XmlPullParser.TEXT;
321 assertNext(in, TEXT, null); in doVerifyRead()
331 assertNext(in, TEXT, null); in doVerifyRead()
348 while ((event = in.next()) == TEXT && in.getText().trim().length() == 0) { in assertNext()
/frameworks/base/core/java/android/app/admin/
DFactoryResetProtectionPolicy.java21 import static org.xmlpull.v1.XmlPullParser.TEXT;
214 if (type == END_TAG || type == TEXT) { in readFromXml()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeXmlBlockParser.java331 case TEXT: in eventTypeToString()
368 if (eventType == TEXT) { in nextText()
390 if (eventType == TEXT && isWhitespace()) { // skip whitespace in nextTag()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DAdapterHelper.java92 resolvedRef, ViewAttribute.TEXT, tv.getText().toString()); in fillView()
94 if (value.getClass() != ViewAttribute.TEXT.getAttributeClass()) { in fillView()
/frameworks/compile/mclinker/include/mcld/LD/
DLDFileFormat.h27 TEXT, // Executable regular sections enumerator
/frameworks/compile/mclinker/lib/Object/
DSectionMap.cpp52 m_pSection = LDSection::Create(pName, LDFileFormat::TEXT, 0, 0); in Input()
64 m_pSection = LDSection::Create("", LDFileFormat::TEXT, 0, 0); in Input()
88 m_pSection = LDSection::Create(pName, LDFileFormat::TEXT, 0, 0); in Output()
100 m_pSection = LDSection::Create(m_Name, LDFileFormat::TEXT, 0, 0); in Output()

123456