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.cpp83 static String8 toString8(const hidl_string &string) { argument
84 return String8(string.c_str());
87 static hidl_string toHidlString(const String8& string) { argument
88 return hidl_string(string.string());
239 Return<void> hResult = factory->createPlugin(uuid, appPackageName.string(),
375 if (mFactories[i]->isContentTypeSupported(mimeType.string())) {
/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/libnbaio/
H A DNBLog.cpp24 #include <string.h>
258 void NBLog::Writer::log(const char *string) argument
263 LOG_ALWAYS_FATAL_IF(string == NULL, "Attempted to log NULL string");
264 size_t length = strlen(string);
268 log(EVENT_STRING, string, length);
392 case 's': // string
504 void NBLog::LockedWriter::log(const char *string) argument
507 Writer::log(string);
835 dprintf(mFd, "%.*s%s %s\n", mIndent, "", timestamp.string(), bod
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A DDecTestBench.c20 #include <string.h>
678 void H264SwDecTrace(char *string) argument
687 fwrite(string, 1, strlen(string), fp);
H A DEvaluationTestBench.c20 #include <string.h>
276 void H264SwDecTrace(char *string) argument
285 fwrite(string, 1, strlen(string), fp);
H A DH264SwDecApi.c40 #include <string.h>
82 void H264SwDecTrace(char *string) { argument
83 UNUSED(string);
H A DTestBenchMultipleInstance.c23 #include <string.h>
396 void H264SwDecTrace(char *string) argument
405 fwrite(string, 1, strlen(string), fp);
/frameworks/av/media/mtp/
H A DMtpDataPacket.cpp116 bool MtpDataPacket::getString(MtpStringBuffer& string) argument
118 return string.readFromPacket(this);
417 void MtpDataPacket::putString(const MtpStringBuffer& string) {
418 string.writeToPacket(this);
422 MtpStringBuffer string(s);
423 string.writeToPacket(this);
426 void MtpDataPacket::putString(const uint16_t* string) {
429 if (string[i])
436 putUInt16(string[i]);
437 // 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.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);
H A DMtpServer.cpp462 MtpStringBuffer string; local
479 string.set("");
482 string.set("microsoft.com: 1.0; android.com: 1.0;");
484 mData.putString(string); // MTP Extensions
544 MtpStringBuffer string; local
562 string.set(storage->getDescription());
563 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.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);
/frameworks/base/core/java/android/content/
H A DIntentFilter.java306 // the string sets... not yet implemented.
308 private static int findStringInSet(String[] set, String string, argument
313 if (set[i].equals(string)) return i;
318 private static String[] addStringToSet(String[] set, String string, argument
320 if (findStringInSet(set, string, lengths, lenPos) >= 0) return set;
323 set[0] = string;
329 set[N] = string;
337 set[N] = string;
342 private static String[] removeStringFromSet(String[] set, String string, argument
344 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.java1143 public String string; field in class:BatteryStats.HistoryTag
1149 string = o.string;
1155 string = _string;
1161 dest.writeString(string);
1166 string = src.readString();
1179 if (!string.equals(that.string)) return false;
1186 int result = string.hashCode();
5246 pw.print(wakelockTag.string);
[all...]
H A DFileUtils.java314 public static void stringToFile(File file, String string) throws IOException { argument
315 stringToFile(file.getAbsolutePath(), string);
329 * Writes string to file. Basically same as "echo -n $string > $filename"
332 * @param string
335 public static void stringToFile(String filename, String string) throws IOException { argument
336 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/text/
H A DTextUtils.java275 * from the source string. This is different than simply calling
297 * Returns a string containing the tokens joined by delimiters.
316 * Returns a string containing the tokens joined by delimiters.
334 * String.split() returns [''] when the string to be split is empty. This returns []. This does
337 * @param text the string to split
352 * Splits a string on a pattern. String.split() returns [''] when the string to be
354 * @param text the string to split
379 * // Once per string to split
380 * splitter.setString(string);
387 setString(String string) argument
415 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...]

Completed in 4158 milliseconds

123456