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

123456

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DCallStateException.java38 CallStateException(String string) argument
40 super(string);
44 CallStateException(int error, String string) argument
46 super(string);
/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/src/main/java/androidx/core/graphics/
H A DPaintCompat.java38 * string in a backwards compatible way.
41 * @param string the string to test whether there is glyph support
42 * @return true if the typeface set on the given paint has a glyph for the string
44 public static boolean hasGlyph(@NonNull Paint paint, @NonNull String string) { argument
46 return paint.hasGlyph(string);
48 final int length = string.length();
50 if (length == 1 && Character.isWhitespace(string.charAt(0))) {
58 final float width = paint.measureText(string);
61 // If the string widt
[all...]
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/text/
H A DAllEmojisTest.java113 public AllEmojisTest(String string, String codepoints) { argument
114 mString = string;
139 TestString string = new TestString(str);
140 CharSequence sequence = EmojiCompat.get().process(string.toString());
142 assertThat(sequence, hasEmojiAt(string.emojiStartIndex(), string.emojiEndIndex()));
144 // case where Emoji is in the middle of string
145 string = new TestString(str).withPrefix().withSuffix();
146 sequence = EmojiCompat.get().process(string.toString());
148 assertThat(sequence, hasEmojiAt(string
[all...]
/frameworks/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...]
/frameworks/base/core/java/android/view/textclassifier/
H A DTextClassificationSessionId.java96 * Flattens this id to a string.
107 * Unflattens a print job id from a string.
109 * @param string The string.
110 * @return The unflattened id, or null if the string is malformed.
114 public static @NonNull TextClassificationSessionId unflattenFromString(@NonNull String string) { argument
115 return new TextClassificationSessionId(string);
/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/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/main/java/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/main/java/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/libs/androidfw/tests/data/basic/
H A DR.h41 struct string { struct in namespace:com::android
/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.cpp314 uint16_t string[] = {0x0041, 0x06DD, 0x0045, 0x0301, 0x0049, 0x0301}; local
315 EXPECT_TRUE(GraphemeBreak::isGraphemeBreak(nullptr, string, 2, 3, 2));
316 EXPECT_FALSE(GraphemeBreak::isGraphemeBreak(nullptr, string, 2, 3, 3));
317 EXPECT_TRUE(GraphemeBreak::isGraphemeBreak(nullptr, string, 2, 3, 4));
318 EXPECT_TRUE(GraphemeBreak::isGraphemeBreak(nullptr, string, 2, 3, 5));
/frameworks/support/compat/src/main/java/androidx/core/util/
H A DPreconditions.java47 * be converted to a string using {@link String#valueOf(Object)}
57 * Ensures that an string reference passed as a parameter to the calling
60 * @param string an string reference
61 * @return the string reference that was validated
62 * @throws IllegalArgumentException if {@code string} is empty
64 public static @NonNull <T extends CharSequence> T checkStringNotEmpty(final T string) { argument
65 if (TextUtils.isEmpty(string)) {
68 return string;
72 * Ensures that an string referenc
81 checkStringNotEmpty(final T string, final Object errorMessage) argument
[all...]
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/util/
H A DTestString.java49 public TestString(String string) { argument
51 mValue = string;
/frameworks/av/media/mtp/
H A DMtpProperty.cpp23 #include <string>
223 void MtpProperty::setDefaultValue(const uint16_t* string) { argument
225 if (string) {
226 MtpStringBuffer buffer(string);
233 void MtpProperty::setCurrentValue(const uint16_t* string) { argument
235 if (string) {
236 MtpStringBuffer buffer(string);
343 std::string buffer;
390 void MtpProperty::print(MtpPropertyValue& value, std::string& buffer) {
/frameworks/base/core/java/android/app/admin/
H A DPasswordMetrics.java190 * @param string the pass
193 public static int maxLengthSequence(@NonNull String string) { argument
194 if (string.length() == 0) return 0;
195 char previousChar = string.charAt(0);
201 for (int current = 1; current < string.length(); current++) {
202 char currentChar = string.charAt(current);
221 maxLength = Math.max(maxLength, string.length() - startSequence);

Completed in 7096 milliseconds

123456