/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | TextUtilsTest.java | 17 package android.text; 25 import android.text.style.StyleSpan; 26 import android.text.util.Rfc822Token; 27 import android.text.util.Rfc822Tokenizer; 135 /** Fail unless text+spans contains a span 'spanName' with the given start and end. */ 136 private void checkContains(Spanned text, String[] spans, String spanName, argument 140 assertEquals(start, text.getSpanStart(i)); 141 assertEquals(end, text.getSpanEnd(i)); 352 CharSequence text = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(p); 353 assertNull("null CharSequence should generate null from parcel", text); [all...] |
H A D | StaticLayoutDirectionsTest.java | 17 package android.text; 19 import android.text.Layout.Directions; 20 import android.text.StaticLayoutTest.LayoutBuilder; 117 checkDirections(b.build(), i, b.text, expected, f); 128 float width = b.paint.measureText(b.text, 0, 5); // exclude 'c' 182 String text = "ABC"; // "abAB" 183 b.setText(pseudoBidiToReal(text)); 196 for (int offset = 0, end = b.text.length(); offset <= end; ++offset) { 199 b.text, 226 private void checkDirections(Layout l, int i, String text, argument [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | CreateViewTest.java | 76 TextView text = new TextView(mContext); 77 text.setText("S"); 82 TextView text = new TextView(mContext); 83 text.setText("S"); 86 vert.addView(text, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0));
|
/frameworks/base/libs/hwui/font/ |
H A D | Font.h | 84 void render(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, 87 void render(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, 113 void precache(const SkPaint* paint, const char* text, int numGlyphs); 115 void render(const SkPaint* paint, const char *text, uint32_t start, uint32_t len, 119 void measure(const SkPaint* paint, const char* text, uint32_t start, uint32_t len,
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZonePickerUtils.java | 22 import android.text.Spannable; 23 import android.text.Spannable.Factory; 24 import android.text.format.DateUtils; 25 import android.text.format.Time; 26 import android.text.style.ForegroundColorSpan;
|
/frameworks/support/v4/java/android/support/v4/view/accessibility/ |
H A D | AccessibilityNodeProviderCompat.java | 57 String text, int virtualViewId) { 59 compat.findAccessibilityNodeInfosByText(text, virtualViewId); 98 String text, int virtualViewId) { 100 compat.findAccessibilityNodeInfosByText(text, virtualViewId); 216 * Finds {@link AccessibilityNodeInfoCompat}s by text. The match is case insensitive 223 * @param text The searched text. 229 public List<AccessibilityNodeInfoCompat> findAccessibilityNodeInfosByText(String text, argument
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | SubtitleView.java | 30 import android.text.Layout.Alignment; 31 import android.text.StaticLayout; 32 import android.text.TextPaint; 58 /** Reusable string builder used for holding text. */ 96 CharSequence text = ""; 105 text = a.getText(attr); 135 setText(text); 140 final CharSequence text = getContext().getText(resId); 141 setText(text); 144 public void setText(CharSequence text) { argument [all...] |
/frameworks/rs/ |
H A D | rsScriptC_LibGL.cpp | 222 const char *text = (const char *)rsc->mHal.funcs.allocation.lock1D(rsc, a); local 224 rsc->mStateFont.renderText(text, allocSize, x, y); 228 void rsrDrawText(Context *rsc, const char *text, int x, int y) { argument 229 size_t textLen = strlen(text); 230 rsc->mStateFont.renderText(text, textLen, x, y); 252 const char *text = (const char *)rsc->mHal.funcs.allocation.lock1D(rsc, a); local 255 rsc->mStateFont.measureText(text, textLen, &metrics); 260 void rsrMeasureText(Context *rsc, const char *text, argument 262 size_t textLen = strlen(text); 264 rsc->mStateFont.measureText(text, textLe [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | GsmSmsTest.java | 95 * Multi-part text SMS with septet data. 242 // Valid 160 character 7-bit text. 243 String text = "123456789012345678901234567890123456789012345678901234567890" + 246 GsmAlphabet.TextEncodingDetails ted = SmsMessage.calculateLength(text, false); 253 ArrayList<String> fragments = android.telephony.SmsMessage.fragmentText(text); 257 // Valid 161 character 7-bit text. 258 text = "123456789012345678901234567890123456789012345678901234567890" + 261 ted = SmsMessage.calculateLength(text, false); 268 ArrayList<String> fragments = android.telephony.SmsMessage.fragmentText(text); 270 assertEquals(text, fragment [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastXmlSerializer.java | 182 public void cdsect(String text) throws IOException, IllegalArgumentException, argument 187 public void comment(String text) throws IOException, IllegalArgumentException, argument 192 public void docdecl(String text) throws IOException, IllegalArgumentException, argument 223 public void entityRef(String text) throws IOException, IllegalArgumentException, argument 288 public void ignorableWhitespace(String text) throws IOException, IllegalArgumentException, argument 293 public void processingInstruction(String text) throws IOException, IllegalArgumentException, argument 372 public XmlSerializer text(char[] buf, int start, int len) throws IOException, method in class:FastXmlSerializer 385 public XmlSerializer text(String text) throws IOException, IllegalArgumentException, argument 391 escapeAndAppendString(text); [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaMetadata.java | 28 import android.text.TextUtils; 358 * Returns the text value associated with the given key as a String, or null 367 CharSequence text = getText(key); 368 if (text != null) { 369 return text.toString(); 461 CharSequence[] text = new CharSequence[3]; 470 text[0] = displayText; 471 text[1] = getText(METADATA_KEY_DISPLAY_SUBTITLE); 472 text[2] = getText(METADATA_KEY_DISPLAY_DESCRIPTION); 477 while (textIndex < text [all...] |
/frameworks/support/v4/java/android/support/v4/media/ |
H A D | MediaMetadataCompat.java | 25 import android.text.TextUtils; 298 CharSequence text = mBundle.getCharSequence(key); 299 if (text != null) { 300 return text.toString(); 364 CharSequence[] text = new CharSequence[3]; 373 text[0] = displayText; 374 text[1] = getText(METADATA_KEY_DISPLAY_SUBTITLE); 375 text[2] = getText(METADATA_KEY_DISPLAY_DESCRIPTION); 380 while (textIndex < text.length && keyIndex < PREFERRED_DESCRIPTION_ORDER.length) { 383 // Fill in the next empty bit of text [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | DateTimeView.java | 26 import android.text.format.Time; 33 import java.text.DateFormat; 34 import java.text.SimpleDateFormat; 167 // Set the text 168 String text = format.format(mTime); 169 setText(text); 189 + "' - text=" + text); 196 return android.text.format.DateFormat.getTimeFormat(getContext());
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | LocalePicker.java | 39 import java.text.Collator; 170 TextView text; 173 text = (TextView) view.findViewById(fieldId); 174 view.setTag(text); 177 text = (TextView) view.getTag(); 180 text.setText(item.toString()); 181 text.setTextLocale(item.getLocale());
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | CarrierText.java | 27 import android.text.TextUtils; 28 import android.text.method.SingleLineTransformationMethod; 113 // This depends on mPlmn containing the text "Emergency calls only" when the radio 116 // Grab the first subscripton, because they all should contain the emergency text, 149 // Don't listen and clear out the text when the device isn't a phone. 164 * Top-level function for creating carrier text. Makes text based on simState, PLMN 168 * @param text 170 * @return Carrier text if not in missing state, null otherwise. 173 CharSequence text) { 172 getCarrierTextForSimState(IccCardConstants.State simState, CharSequence text) argument [all...] |
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
H A D | DatabaseHelper.java | 27 import android.text.TextUtils; 106 values.put(SoundModelContract.KEY_HINT_TEXT, soundModel.keyphrases[0].text); 186 String text = c.getString( 214 keyphraseId, recognitionModes, modelLocale, text, users); 248 private static int[] getArrayForCommaSeparatedString(String text) { argument 249 if (TextUtils.isEmpty(text)) { 252 String[] usersStr = text.split(",");
|
/frameworks/base/tools/layoutlib/rename_font/ |
H A D | build_font.py | 153 font.family = namerecord.text.strip() 155 font.style = namerecord.text.strip() 157 font.ends_in_regular = ends_in_regular(namerecord.text) 158 font.fullname = namerecord.text.strip() 160 font.version = get_version(namerecord.text) 178 namerecord.text = font.family 180 namerecord.text = font.fullname
|
/frameworks/rs/cpu_ref/linkloader/include/impl/ |
H A D | ELFObject.hxx | 130 ELFSectionProgBitsTy *text) { 145 Inst_t *inst = (Inst_t *)&(*text)[rel->getOffset()]; 236 StubLayout *stub_layout = text->getStubLayout(); 362 ELFSectionProgBitsTy *text) { 378 Inst_t *inst = (Inst_t *)&(*text)[rel->getOffset()]; 562 StubLayout *stub_layout = text->getStubLayout(); 662 ELFSectionProgBitsTy *text) { 675 Inst_t *inst = (Inst_t*)&(*text)[rel->getOffset()]; 695 int64_t *paddr = (int64_t*)&(*text)[rel->getOffset()]; 701 int32_t *paddr = (int32_t*)&(*text)[re 127 relocateARM(void *(*find_sym)(void *context, char const *name), void *context, ELFSectionRelTableTy *reltab, ELFSectionProgBitsTy *text) argument 359 relocateAARCH64(void *(*find_sym)(void *context, char const *name), void *context, ELFSectionRelTableTy *reltab, ELFSectionProgBitsTy *text) argument 659 relocateX86_64(void *(*find_sym)(void *context, char const *name), void *context, ELFSectionRelTableTy *reltab, ELFSectionProgBitsTy *text) argument 788 relocateX86_32(void *(*find_sym)(void *context, char const *name), void *context, ELFSectionRelTableTy *reltab, ELFSectionProgBitsTy *text) argument 838 relocateMIPS(void *(*find_sym)(void *context, char const *name), void *context, ELFSectionRelTableTy *reltab, ELFSectionProgBitsTy *text) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BidiRenderer.java | 34 import com.ibm.icu.text.Bidi; 35 import com.ibm.icu.text.BidiRun; 40 * Render the text by breaking it into various scripts and using the right font for each script. 41 * Can be used to measure the text without actually drawing it. 67 // Bounds of the text drawn so far. 74 * @param text Unidirectional text. Should not be null. 76 public BidiRenderer(Graphics2D graphics, Paint_Delegate paint, char[] text) { argument 80 mText = text; 94 * @param x The x-coordinate of the left edge of where the text shoul 266 getScriptRuns(char[] text, int start, int limit, boolean isRtl, List<Font> fonts) argument 285 setScriptFont(char[] text, ScriptRun run, List<Font> fonts) argument [all...] |
/frameworks/av/media/libstagefright/id3/ |
H A D | testid3.cpp | 88 String8 text; local 89 it.getString(&text); 91 printf(" found text frame '%s': %s\n", id.string(), text.string());
|
/frameworks/base/core/java/android/content/ |
H A D | ClipboardManager.java | 29 * Interface to the clipboard service, for placing and retrieving text in 51 public class ClipboardManager extends android.text.ClipboardManager { 202 * creates a ClippedItem holding the given text and sets it as the 205 public void setText(CharSequence text) { argument 206 setPrimaryClip(ClipData.newPlainText(null, text));
|
/frameworks/base/core/java/android/text/method/ |
H A D | ScrollingMovementMethod.java | 17 package android.text.method; 20 import android.text.*; 25 * A movement method that interprets movement keys by scrolling the text buffer. 94 public void onTakeFocus(TextView widget, Spannable text, int dir) { argument
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberFormattingTextWatcher.java | 23 import android.text.Editable; 24 import android.text.Selection; 25 import android.text.TextWatcher; 39 * The formatting will be restarted once the text is cleared. 113 // The text could be changed by other TextWatcher after we changed it. If we found the 114 // text is not the one we were expecting, just give up calling setSelection().
|
/frameworks/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 481 void drawText(Canvas* canvas, const uint16_t* text, int start, int count, int contextCount, argument 487 MinikinUtils::doLayout(&layout, &paint, bidiFlags, typeface, text, start, count, contextCount); 507 static void drawTextChars(JNIEnv* env, jobject, jlong canvasHandle, jcharArray text, argument 512 jchar* jchars = env->GetCharArrayElements(text, NULL); 515 env->ReleaseCharArrayElements(text, jchars, JNI_ABORT); 518 static void drawTextString(JNIEnv* env, jobject, jlong canvasHandle, jstring text, argument 524 const jchar* jchars = env->GetStringChars(text, NULL); 527 env->ReleaseStringChars(text, jchars); 530 static void drawTextRunChars(JNIEnv* env, jobject, jlong canvasHandle, jcharArray text, jint index, argument 537 jchar* jchars = env->GetCharArrayElements(text, NUL 543 drawTextRunString(JNIEnv* env, jobject obj, jlong canvasHandle, jstring text, jint start, jint end, jint contextStart, jint contextEnd, jfloat x, jfloat y, jboolean isRtl, jlong paintHandle, jlong typefaceHandle) argument 559 drawPosTextChars(JNIEnv* env, jobject, jlong canvasHandle, jcharArray text, jint index, jint count, jfloatArray pos, jlong paintHandle) argument 577 drawPosTextString(JNIEnv* env, jobject, jlong canvasHandle, jstring text, jfloatArray pos, jlong paintHandle) argument 620 drawTextOnPath(Canvas* canvas, const uint16_t* text, int count, int bidiFlags, const SkPath& path, float hOffset, float vOffset, const Paint& paint, TypefaceImpl* typeface) argument 637 drawTextOnPathChars(JNIEnv* env, jobject, jlong canvasHandle, jcharArray text, jint index, jint count, jlong pathHandle, jfloat hOffset, jfloat vOffset, jint bidiFlags, jlong paintHandle, jlong typefaceHandle) argument 653 drawTextOnPathString(JNIEnv* env, jobject, jlong canvasHandle, jstring text, jlong pathHandle, jfloat hOffset, jfloat vOffset, jint bidiFlags, jlong paintHandle, jlong typefaceHandle) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListRenderer.cpp | 358 status_t DisplayListRenderer::drawTextOnPath(const char* text, int bytesCount, int count, argument 360 if (!text || count <= 0) return DrawGlInfo::kStatusDone; 362 text = refText(text, bytesCount); 366 DrawOp* op = new (alloc()) DrawTextOnPathOp(text, bytesCount, count, path, 372 status_t DisplayListRenderer::drawPosText(const char* text, int bytesCount, int count, argument 374 if (!text || count <= 0) return DrawGlInfo::kStatusDone; 376 text = refText(text, bytesCount); 380 DrawOp* op = new (alloc()) DrawPosTextOp(text, bytesCoun 395 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument [all...] |