Searched defs:string (Results 1 - 25 of 144) sorted by path

123456

/frameworks/av/camera/
H A DCameraMetadata.cpp268 const String8 &string) {
277 // string.size() doesn't count the null termination character.
278 return updateImpl(tag, (const void*)string.string(), string.size() + 1);
715 // First, find the section by the longest string match
723 (*vendorSections)[i - ANDROID_SECTION_COUNT].string();
267 update(uint32_t tag, const String8 &string) argument
/frameworks/av/drm/libmediadrm/
H A DDrmHal.cpp70 std::string toBase64StringNoPad(const T* data, size_t size) {
73 // return empty string.
85 return std::string(outputString.c_str(), outputString.size());
117 static String8 toString8(const hidl_string &string) { argument
118 return String8(string.c_str());
121 static hidl_string toHidlString(const String8& string) { argument
122 return hidl_string(string.string());
359 Return<void> hResult = factory->createPlugin(uuid, appPackageName.string(),
510 if (mFactories[i]->isContentTypeSupported(mimeType.string())) {
[all...]
/frameworks/av/media/libaudioprocessing/tests/
H A Dtest-resampler.cpp21 #include <string.h>
67 int parseCSV(const char *string, Vector<int>& values) argument
72 for (const char *p = string; ; ) {
H A Dtest_utils.h57 static inline int parseCSV(const char *string, std::vector<int>& values) argument
62 for (const char *p = string; ; ) {
72 values[0] = atoi(p = string);
/frameworks/av/media/libnblog/
H A DNBLog.cpp32 #include <string.h>
337 void NBLog::Writer::log(const char *string) argument
342 LOG_ALWAYS_FATAL_IF(string == NULL, "Attempted to log NULL string");
343 size_t length = strlen(string);
347 log(EVENT_STRING, string, length);
497 case 's': // string
604 void NBLog::LockedWriter::log(const char *string) argument
607 Writer::log(string);
873 // Writes a string t
[all...]
/frameworks/av/media/mtp/
H A DMtpDataPacket.cpp117 bool MtpDataPacket::getString(MtpStringBuffer& string) argument
119 return string.readFromPacket(this);
418 void MtpDataPacket::putString(const MtpStringBuffer& string) {
419 string.writeToPacket(this);
423 MtpStringBuffer string(s);
424 string.writeToPacket(this);
427 void MtpDataPacket::putString(const uint16_t* string) {
430 if (string[i])
437 putUInt16(string[i]);
438 // only terminate with zero if string i
[all...]
H A DMtpDeviceInfo.cpp63 MtpStringBuffer string; local
70 if (!packet.getString(string)) return false;
71 mVendorExtensionDesc = strdup((const char *)string);
86 if (!packet.getString(string)) return false;
87 mManufacturer = strdup((const char *)string);
89 if (!packet.getString(string)) return false;
90 mModel = strdup((const char *)string);
92 if (!packet.getString(string)) return false;
93 mVersion = strdup((const char *)string);
95 if (!packet.getString(string)) retur
[all...]
H A DMtpObjectInfo.cpp59 MtpStringBuffer string; local
78 if (!packet.getString(string)) return false;
79 mName = strdup((const char *)string);
82 if (!packet.getString(string)) return false;
83 if (parseDateTime((const char*)string, time))
86 if (!packet.getString(string)) return false;
87 if (parseDateTime((const char*)string, time))
90 if (!packet.getString(string)) return false;
91 mKeywords = strdup((const char *)string);
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) {
H A DMtpServer.cpp452 MtpStringBuffer string; local
469 string.set("");
472 string.set("microsoft.com: 1.0; android.com: 1.0;");
474 mData.putString(string); // MTP Extensions
531 MtpStringBuffer string; local
549 string.set(storage->getDescription());
550 mData.putString(string);
H A DMtpStorageInfo.cpp49 MtpStringBuffer string; local
59 if (!packet.getString(string)) return false;
60 mStorageDescription = strdup((const char *)string);
62 if (!packet.getString(string)) return false;
63 mVolumeIdentifier = strdup((const char *)string);
/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);
/frameworks/base/core/java/android/content/
H A DIntentFilter.java307 // the string sets... not yet implemented.
309 private static int findStringInSet(String[] set, String string, argument
314 if (set[i].equals(string)) return i;
319 private static String[] addStringToSet(String[] set, String string, argument
321 if (findStringInSet(set, string, lengths, lenPos) >= 0) return set;
324 set[0] = string;
330 set[N] = string;
338 set[N] = string;
343 private static String[] removeStringFromSet(String[] set, String string, argument
345 int pos = findStringInSet(set, string, length
[all...]
/frameworks/base/core/java/android/net/
H A DUrlQuerySanitizer.java44 * // name now contains "Joe User". (The string is first decoded, which
45 * // converts the '+' to a ' '. Then the string is sanitized, which
343 * Trim whitespace from the beginning and end of a string.
347 * @param value the string to trim
348 * @return the trimmed string
594 * treated as if the query portion is an empty string.
610 * Parse a query. A query string is any number of parameter-value clauses
613 * equal sign is missing, the value is assumed to be the empty string.
829 * Unescape an escaped string.
837 * @param string th
840 unescape(String string) argument
[all...]
/frameworks/base/core/java/android/net/http/
H A DSslCertificate.java299 * @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
/frameworks/base/core/java/android/os/
H A DBatteryStats.java1352 public String string; field in class:BatteryStats.HistoryTag
1358 string = o.string;
1364 string = _string;
1370 dest.writeString(string);
1375 string = src.readString();
1388 if (!string.equals(that.string)) return false;
1395 int result = string.hashCode();
6054 sb.append(wakelockTag.string);
[all...]
H A DFileUtils.java566 public static void stringToFile(File file, String string) throws IOException { argument
567 stringToFile(file.getAbsolutePath(), string);
590 * Writes string to file. Basically same as "echo -n $string > $filename"
593 * @param string
596 public static void stringToFile(String filename, String string) throws IOException { argument
597 bytesToFile(filename, string.getBytes(StandardCharsets.UTF_8));
/frameworks/base/core/java/android/print/
H A DPrintJobId.java90 * Flattens this id to a string.
101 * Unflattens a print job id from a string.
103 * @param string The string.
104 * @return The unflattened id, or null if the string is malformed.
108 public static @NonNull PrintJobId unflattenFromString(@NonNull String string) { argument
109 return new PrintJobId(string);
/frameworks/base/core/java/android/provider/
H A DBrowser.java60 * The value is a unique identification string that will be used to
168 * @param title Title for the bookmark. Can be null or empty string.
169 * @param url Url for the bookmark. Can be null or empty string.
201 * Sends the given string using an Intent with {@link Intent#ACTION_SEND} and a mime type
202 * of text/plain. The string is put into {@link Intent#EXTRA_TEXT}.
205 * @param string the string to send
207 public static final void sendString(Context context, String string) { argument
208 sendString(context, string, context.getString(com.android.internal.R.string
[all...]
/frameworks/base/core/java/android/security/keystore/recovery/
H A DX509CertificateParsingUtils.java35 * Decodes an {@link X509Certificate} encoded as a base-64 string.
37 public static X509Certificate decodeBase64Cert(String string) throws CertificateException { argument
39 return decodeCert(decodeBase64(string));
46 * Decodes a base-64 string.
48 * @throws IllegalArgumentException if not a valid base-64 string.
50 private static byte[] decodeBase64(String string) { argument
51 return Base64.getDecoder().decode(string);
/frameworks/base/core/java/android/text/
H A DTextUtils.java286 * from the source string. This is different than simply calling
308 * Returns a string containing the tokens joined by delimiters.
310 * @param delimiter a CharSequence that will be inserted between the tokens. If null, the string
314 * tokens is an empty array, an empty string will be returned.
331 * Returns a string containing the tokens joined by delimiters.
333 * @param delimiter a CharSequence that will be inserted between the tokens. If null, the string
337 * tokens is empty, an empty string will be returned.
354 * String.split() returns [''] when the string to be split is empty. This returns []. This does
357 * @param text the string to split
372 * Splits a string o
407 setString(String string) argument
435 setString(String string) argument
[all...]
/frameworks/base/core/java/android/util/
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...]
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...]

Completed in 2053 milliseconds

123456