Searched defs:string (Results 26 - 50 of 144) sorted by relevance

123456

/frameworks/rs/tests/lldb/tests/testcases/
H A Dtest_call_api_funs.py20 import string namespace
41 func_name_sub = re.compile(r'[%s\s]+' % string.punctuation)
/frameworks/support/compat/ics/android/support/v4/graphics/
H A DPaintCompatApi14.java30 static boolean hasGlyph(@NonNull Paint paint, @NonNull String string) { argument
31 final int length = string.length();
33 if (length == 1 && Character.isWhitespace(string.charAt(0))) {
39 final float width = paint.measureText(string);
42 // If the string width is 0, it can't be rendered
46 if (string.codePointCount(0, string.length()) > 1) {
48 // Return false if string is rendered too widely
55 // likely that the system is using fallback fonts to draw {@code string} in two or more
66 int charCount = Character.charCount(string
[all...]
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
H A DAllEmojisTest.java107 public AllEmojisTest(String string, String codepoints) { argument
108 mString = string;
120 TestString string = new TestString(str);
121 CharSequence sequence = EmojiCompat.get().process(string.toString());
123 assertThat(sequence, hasEmojiAt(string.emojiStartIndex(), string.emojiEndIndex()));
125 // case where Emoji is in the middle of string
126 string = new TestString(str).withPrefix().withSuffix();
127 sequence = EmojiCompat.get().process(string.toString());
129 assertThat(sequence, hasEmojiAt(string
[all...]
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
H A DArraysCheckWidget.class ... .util.AttributeSet, int, int) CharSequence chars int i String string android.content.Context context android.util
H A DR$string.class ... android.layoutlib.test.myapplication.R$string extends java.lang.Object { public static final int ...
/frameworks/base/core/java/android/util/
H A DSize.java80 * Return the size represented as a string with the format {@code "WxH"}
82 * @return string representation of the size
94 * Parses the specified string as a size value.
106 * where <i>width</i> and <i>height</i> are string integers potentially
115 * @param string the string representation of a size value.
116 * @return the size value represented by {@code string}.
118 * @throws NumberFormatException if {@code string} cannot be parsed
120 * @throws NullPointerException if {@code string} was {@code null}
122 public static Size parseSize(String string) argument
[all...]
H A DSizeF.java90 * Return the size represented as a string with the format {@code "WxH"}
92 * @return string representation of the size
104 * Parses the specified string as a size value.
116 * where <i>width</i> and <i>height</i> are string floats potentially
118 * an {@code 'x'} (such as a float in hexadecimal string format).</p>
126 * @param string the string representation of a size value.
127 * @return the size value represented by {@code string}.
129 * @throws NumberFormatException if {@code string} cannot be parsed
131 * @throws NullPointerException if {@code string} wa
133 parseSizeF(String string) argument
[all...]
H A DJsonWriter.java118 * malformed JSON string will fail with an {@link IllegalStateException}.
131 * A string containing a full set of spaces for a single level of
156 * Sets the indentation string to be repeated for each level of indentation
161 * @param indent a string containing only whitespace.
289 string(name);
296 * @param value the literal string value, or null to encode a null literal.
304 string(value);
369 String string = value.toString();
371 (string.equals("-Infinity") || string
400 private void string(String value) throws IOException { method in class:JsonWriter
[all...]
H A DRational.java248 * Return a string representation of this rational, e.g. {@code "1/2"}.
549 * Parses the specified string as a rational value.
560 * where <i>num</i> and <i>den</i> are string integers potentially
569 * @param string the string representation of a rational value.
570 * @return the rational value represented by {@code string}.
572 * @throws NumberFormatException if {@code string} cannot be parsed
574 * @throws NullPointerException if {@code string} was {@code null}
576 public static Rational parseRational(String string) argument
578 checkNotNull(string, "strin
[all...]
/frameworks/base/core/tests/coretests/src/android/text/method/
H A DEditorState.java36 * The editor state can be specified by following string format.
38 * - Single-quoted string for printable ASCII characters, e.g. 'a', '123'.
72 // Setup editor state with string. Please see class description for string format.
73 public void setByString(String string) { argument
80 final String[] tokens = string.split(" +");
177 public void assertEquals(String string) { argument
179 expected.setByString(string);
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DProcFileReaderTest.java134 fail("somehow read a string value?");
169 private static ProcFileReader buildReader(String string) throws IOException { argument
170 return buildReader(string, 2048);
173 private static ProcFileReader buildReader(String string, int bufferSize) throws IOException { argument
175 new ByteArrayInputStream(string.getBytes(StandardCharsets.US_ASCII)), bufferSize);
/frameworks/base/libs/androidfw/tests/data/basic/
H A DR.h40 struct string { struct in namespace:com::android
/frameworks/base/libs/androidfw/tests/data/styles/
H A DR.h40 struct string { struct in namespace:com::android::app
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/
H A DStringUtils.java42 public static boolean isNotBlank(CharSequence string) { argument
43 if (string == null) {
46 for (int i = 0, n = string.length(); i < n; i++) {
47 if (!Character.isWhitespace(string.charAt(i))) {
54 public static String capitalize(String string) { argument
55 if (Strings.isNullOrEmpty(string)) {
56 return string;
58 char ch = string.charAt(0);
60 return string;
62 return Character.toTitleCase(ch) + string
[all...]
/frameworks/support/frameworks/support/samples/SupportLeanbackJank/src/com/google/android/leanbackjank/data/
H A DVideoProvider.java106 public static void makeIcon(int width, int height, String string, File file) { argument
124 paint.getTextBounds(string, 0, string.length(), rect);
132 canvas.drawText(string, width / 2, (height + rect.height()) / 2, paint);
/frameworks/support/samples/SupportLeanbackJank/src/com/google/android/leanbackjank/data/
H A DVideoProvider.java106 public static void makeIcon(int width, int height, String string, File file) { argument
124 paint.getTextBounds(string, 0, string.length(), rect);
132 canvas.drawText(string, width / 2, (height + rect.height()) / 2, paint);
/frameworks/wilhelm/tests/sandbox/
H A Dobject.c20 #include <string.h>
49 const char *string = slesutObjectIDToString(objectID); local
50 if (NULL != string)
51 printf(" (%s)", string);
/frameworks/base/core/tests/coretests/src/android/app/
H A DSuggestionProvider.java80 private void addRow(MatrixCursor cursor, String string) { argument
82 cursor.newRow().add(id).add(string).add(Intent.ACTION_SEARCH).add(string);
/frameworks/base/core/tests/coretests/src/android/os/
H A DPatternMatcherTest.java215 private void assertMatches(String string, PatternMatcher matcher) { argument
216 assertTrue("'" + string + "' should match '" + matcher.toString() + "'",
217 matcher.match(string));
220 private void assertNotMatches(String string, PatternMatcher matcher) { argument
221 assertTrue("'" + string + "' should not match '" + matcher.toString() + "'",
222 !matcher.match(string));
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
H A DAoapInterface.java63 * Control request for host to send a string to the device
68 * index: string ID
69 * data zero terminated UTF8 string
106 public static void sendString(UsbDeviceConnection conn, int index, String string) { argument
107 byte[] buffer = (string + "\0").getBytes();
113 throw new RuntimeException("Failed to send string " + index + ": \"" + string + "\"");
115 Log.i(TAG, "Sent string " + index + ": \"" + string + "\"");
/frameworks/minikin/tests/unittest/
H A DGraphemeBreakTests.cpp310 uint16_t string[] = { 0x0041, 0x06DD, 0x0045, 0x0301, 0x0049, 0x0301 }; local
311 EXPECT_TRUE(GraphemeBreak::isGraphemeBreak(nullptr, string, 2, 3, 2));
312 EXPECT_FALSE(GraphemeBreak::isGraphemeBreak(nullptr, string, 2, 3, 3));
313 EXPECT_TRUE(GraphemeBreak::isGraphemeBreak(nullptr, string, 2, 3, 4));
314 EXPECT_TRUE(GraphemeBreak::isGraphemeBreak(nullptr, string, 2, 3, 5));
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/util/
H A DTestString.java49 public TestString(String string) { argument
51 mValue = string;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A DEvaluationTestBench.c20 #include <string.h>
276 void H264SwDecTrace(char *string) argument
285 fwrite(string, 1, strlen(string), fp);
/frameworks/av/media/mtp/
H A DMtpProperty.cpp219 void MtpProperty::setDefaultValue(const uint16_t* string) { argument
221 if (string) {
222 MtpStringBuffer buffer(string);
229 void MtpProperty::setCurrentValue(const uint16_t* string) { argument
231 if (string) {
232 MtpStringBuffer buffer(string);
/frameworks/base/core/java/android/app/admin/
H A DPasswordMetrics.java176 * @param string the pass
179 public static int maxLengthSequence(@NonNull String string) { argument
180 if (string.length() == 0) return 0;
181 char previousChar = string.charAt(0);
187 for (int current = 1; current < string.length(); current++) {
188 char currentChar = string.charAt(current);
207 maxLength = Math.max(maxLength, string.length() - startSequence);

Completed in 1865 milliseconds

123456