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

1234

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DCustomBar.java130 protected TextView setText(int index, String string, boolean reference) { argument
134 setText(textView, string, reference);
141 private void setText(TextView textView, String string, boolean reference) { argument
143 ResourceValue value = getResourceValue(string);
145 string = value.getValue();
148 textView.setText(string);
/frameworks/av/media/libmedia/
H A DMemoryLeakTrackUtil.cpp56 const char *string() const { function in struct:android::MyString8
147 write(fd, result.string(), result.size());
164 write(fd, result.string(), result.size());
/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);
H A DH264SwDecApi.c77 void H264SwDecTrace(char *string) { argument
78 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.cpp96 bool MtpDataPacket::getString(MtpStringBuffer& string) argument
98 return string.readFromPacket(this);
397 void MtpDataPacket::putString(const MtpStringBuffer& string) {
398 string.writeToPacket(this);
402 MtpStringBuffer string(s);
403 string.writeToPacket(this);
406 void MtpDataPacket::putString(const uint16_t* string) {
409 if (string[i])
416 putUInt16(string[i]);
417 // only terminate with zero if string i
[all...]
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/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...]
/frameworks/base/core/java/com/android/server/
H A DNetworkManagementSocketTagger.java137 public static int kernelToTag(String string) { argument
138 int length = string.length();
140 return Long.decode(string.substring(0, length - 8)).intValue();
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c19 #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 Dusb.c23 #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 Dcom_android_pacprocessor_PacNative.cpp37 ALOGD("Alert: %s", str.string());
41 ALOGE("Error: %s", str.string());
56 jstring string16ToJstring(JNIEnv* env, String16 string) { argument
57 const char16_t* str = string.string();
58 size_t len = string.size();
123 ALOGE("Error Running PAC: %s", ret8.string());
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
H A DTestSuiteBuilderTest.java159 private Predicate<TestMethod> testsWhoseNameContains(final String string) { argument
162 return testMethod.getName().contains(string);
/frameworks/native/cmds/service/
H A Dservice.cpp25 #include <string.h>
31 void writeString16(Parcel& parcel, const char* string) argument
33 if (string != NULL)
35 parcel.writeString16(String16(string));
152 aerr << "service: no string supplied for 's16'" << endl;
278 " s16: Write the UTF-16 string STR into the send parcel.\n";
/frameworks/native/opengl/libs/EGL/
H A Dtrace.cpp103 const GLchar** string, const GLint* length) {
107 const GLchar* s = string[i];
193 const GLchar** string = (const GLchar**) va_arg(argp, void*);
197 TraceGLShaderSource(shader, count, string, length);
102 TraceGLShaderSource(GLuint shader, GLsizei count, const GLchar** string, const GLint* length) argument
/frameworks/av/media/libnbaio/
H A DNBLog.cpp23 #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 Dtest_utils.h51 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 DSslCertificate.java297 * @return A string representation of this certificate for debugging
307 private static Date parseDate(String string) { argument
309 return new SimpleDateFormat(ISO_8601_DATE_FORMAT).parse(string);
316 * Format a date as an ISO 8601 string, return "" for a null date
365 * Creates a new {@code DName} from a string. The attributes
407 // thrown if there is an error parsing the string
499 * Formats the certificate date to a properly localized date string.
500 * @return Properly localized version of the certificate date string and
/frameworks/base/core/java/android/os/
H A DFileUtils.java280 * Writes string to file. Basically same as "echo -n $string > $filename"
283 * @param string
286 public static void stringToFile(String filename, String string) throws IOException { argument
289 out.write(string);
/frameworks/base/core/java/com/android/internal/util/
H A DFastXmlSerializer.java130 private void escapeAndAppendString(final String string) throws IOException { argument
131 final int N = string.length();
137 char c = string.charAt(pos);
141 if (lastPos < pos) append(string, lastPos, pos-lastPos);
145 if (lastPos < pos) append(string, lastPos, pos-lastPos);
/frameworks/base/core/jni/
H A Dandroid_hardware_location_ActivityRecognitionHardware.cpp227 ALOGE("Unable to create string array for supported activities.");
233 jstring string = env->NewStringUTF(string_ptr); local
234 env->SetObjectArrayElement(string_array, i, string);
H A Dcom_android_internal_net_NetworkStatsFactory.cpp113 jstring string = (jstring)env->GetObjectArrayElement(limitIfacesObj, i); local
114 ScopedUtfChars string8(env, string);
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestBase.java331 * is pure string, we need to convert it to quoted string.
416 protected static String convertToQuotedString(String string) { argument
417 return "\"" + string + "\"";
/frameworks/base/core/tests/coretests/src/android/text/
H A DTextUtilsTest.java174 // replacement with empty string
209 // A single trailing emtpy string should be ignored.
213 private void stringSplitterTestHelper(String string, String[] expectedStrings) { argument
215 splitter.setString(string);
319 // Does the output string actually fit in the space?

Completed in 1120 milliseconds

1234