/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/ |
H A D | StringUtils.java | 44 public static boolean isNotBlank(@Nullable CharSequence string) { argument 45 if (string == null) { 48 for (int i = 0, n = string.length(); i < n; i++) { 49 if (!Character.isWhitespace(string.charAt(i))) { 56 public static String capitalize(@Nullable String string) { argument 57 if (Strings.isNullOrEmpty(string)) { 58 return string; 60 char ch = string.charAt(0); 62 return string; 64 return Character.toTitleCase(ch) + string [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | object.c | 20 #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 D | SuggestionProvider.java | 80 private void addRow(MatrixCursor cursor, String string) { argument 82 cursor.newRow().add(id).add(string).add(Intent.ACTION_SEARCH).add(string);
|
/frameworks/base/libs/androidfw/tests/data/basic/ |
H A D | R.h | 36 namespace string { namespace in namespace:base::R
|
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/ |
H A D | ArraysCheckWidget.class | ... i
int[] arr$
int len$
int i$
String string
String[] arr$
int len$
int i$ |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | EvaluationTestBench.c | 20 #include <string.h> 276 void H264SwDecTrace(char *string) argument 285 fwrite(string, 1, strlen(string), fp);
|
H A D | H264SwDecApi.c | 41 #include <string.h> 80 void H264SwDecTrace(char *string) { argument 81 UNUSED(string);
|
H A D | TestBenchMultipleInstance.c | 23 #include <string.h> 396 void H264SwDecTrace(char *string) argument 405 fwrite(string, 1, strlen(string), fp);
|
/frameworks/av/media/mtp/ |
H A D | MtpDataPacket.cpp | 94 bool MtpDataPacket::getString(MtpStringBuffer& string) argument 96 return string.readFromPacket(this); 395 void MtpDataPacket::putString(const MtpStringBuffer& string) { 396 string.writeToPacket(this); 400 MtpStringBuffer string(s); 401 string.writeToPacket(this); 404 void MtpDataPacket::putString(const uint16_t* string) { 407 if (string[i]) 414 putUInt16(string[i]); 415 // only terminate with zero if string i [all...] |
H A D | MtpProperty.cpp | 219 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/util/ |
H A D | JsonWriter.java | 118 * 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 D | Rational.java | 248 * 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/java/com/android/internal/util/ |
H A D | Preconditions.java | 42 * be converted to a string using {@link String#valueOf(Object)} 52 * Ensures that an string reference passed as a parameter to the calling 55 * @param string an string reference 56 * @return the string reference that was validated 57 * @throws IllegalArgumentException if {@code string} is empty 59 public static @NonNull <T extends CharSequence> T checkStringNotEmpty(final T string) { argument 60 if (TextUtils.isEmpty(string)) { 63 return string; 67 * Ensures that an string referenc 76 checkStringNotEmpty(final T string, final Object errorMessage) argument [all...] |
/frameworks/base/core/java/com/android/server/ |
H A D | NetworkManagementSocketTagger.java | 137 public static int kernelToTag(String string) { argument 138 int length = string.length(); 140 return Long.decode(string.substring(0, length - 8)).intValue();
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
H A D | EditorState.java | 31 * The editor state can be specified by following string format. 33 * - Single-quoted string for printable ASCII characters, e.g. 'a', '123'. 80 // Setup editor state with string. Please see class description for string format. 81 public void setByString(String string) { argument 88 final String[] tokens = string.split(" +"); 178 public void assertEquals(String string) { argument 180 expected.setByString(string);
|
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
H A D | accessorychat.c | 19 #include <string.h> 77 static void send_string(struct usb_device *device, int index, const char* string) { argument 79 ACCESSORY_SEND_STRING, 0, index, (void *)string, strlen(string) + 1, 0);
|
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | usb.c | 23 #include <string.h> 78 static void send_string(struct usb_device *device, int index, const char* string) { argument 80 ACCESSORY_SEND_STRING, 0, index, (void *)string, strlen(string) + 1, 0);
|
/frameworks/base/packages/services/PacProcessor/jni/ |
H A D | com_android_pacprocessor_PacNative.cpp | 37 ALOGD("Alert: %s", str.string()); 41 ALOGE("Error: %s", str.string()); 57 jstring string16ToJstring(JNIEnv* env, String16 string) { argument 58 const char16_t* str = string.string(); 59 size_t len = string.size(); 124 ALOGE("Error Running PAC: %s", ret8.string());
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
H A D | TestSuiteBuilderTest.java | 159 private Predicate<TestMethod> testsWhoseNameContains(final String string) { argument 162 return testMethod.getName().contains(string);
|
/frameworks/base/tools/aapt2/compile/ |
H A D | PseudolocaleGenerator.cpp | 27 std::unique_ptr<StyledString> pseudolocalizeStyledString(StyledString* string, argument 32 const StringPiece16 originalText = *string->value->str; 37 localized.spans.reserve(string->value->spans.size()); 38 for (const StringPool::Span& span : string->value->spans) { 47 // Once the new string is localized, these are the pointers to the spans to adjust. 59 // The ranges are the spaces in between. In this example, with a total string length of 9, 65 for (size_t i = 0; i < string->value->spans.size(); i++) { 66 const StringPool::Span& span = string->value->spans[i]; 112 localizedString->setSource(string->getSource()); 166 void visit(String* string) overrid [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | CustomBar.java | 138 protected TextView setText(int index, String string, boolean reference) { argument 142 setText(textView, string, reference); 149 private void setText(TextView textView, String string, boolean reference) { argument 151 ResourceValue value = getResourceValue(string); 153 string = value.getValue(); 156 textView.setText(string); 235 * @throws NumberFormatException if color resolved to an invalid string.
|
/frameworks/native/cmds/service/ |
H A D | service.cpp | 25 #include <string.h> 31 void writeString16(Parcel& parcel, const char* string) argument 33 if (string != NULL) 35 parcel.writeString16(String16(string)); 161 aerr << "service: no string supplied for 's16'" << endl; 308 " s16: Write the UTF-16 string STR into the send parcel.\n";
|
/frameworks/av/media/libnbaio/ |
H A D | NBLog.cpp | 23 #include <string.h> 91 void NBLog::Writer::log(const char *string) argument 96 size_t length = strlen(string); 100 log(EVENT_STRING, string, length); 225 void NBLog::LockedWriter::log(const char *string) argument 228 Writer::log(string); 441 dprintf(mFd, "%.*s%s %s\n", mIndent, "", timestamp.string(), body.string()); 443 ALOGI("%.*s%s %s", mIndent, "", timestamp.string(), body.string()); [all...] |
/frameworks/av/services/audioflinger/tests/ |
H A D | test_utils.h | 51 static inline int parseCSV(const char *string, std::vector<int>& values) argument 56 for (const char *p = string; ; ) { 66 values[0] = atoi(p = string);
|
/frameworks/base/core/java/android/net/http/ |
H A D | SslCertificate.java | 299 * @return A string representation of this certificate for debugging 309 private static Date parseDate(String string) { argument 311 return new SimpleDateFormat(ISO_8601_DATE_FORMAT).parse(string); 318 * Format a date as an ISO 8601 string, return "" for a null date 367 * Creates a new {@code DName} from a string. The attributes 409 // thrown if there is an error parsing the string 501 * Formats the certificate date to a properly localized date string. 502 * @return Properly localized version of the certificate date string and
|