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

123

/frameworks/av/media/mtp/
H A DMtpProperty.cpp206 void MtpProperty::setDefaultValue(const uint16_t* string) { argument
208 if (string) {
209 MtpStringBuffer buffer(string);
216 void MtpProperty::setCurrentValue(const uint16_t* string) { argument
218 if (string) {
219 MtpStringBuffer buffer(string);
/frameworks/base/cmds/service/
H A Dservice.cpp14 #include <string.h>
20 void writeString16(Parcel& parcel, const char* string) argument
22 if (string != NULL)
24 parcel.writeString16(String16(string));
141 aerr << "service: no string supplied for 's16'" << endl;
267 " s16: Write the UTF-16 string STR into the send parcel.\n";
/frameworks/base/core/java/android/os/
H A DFileUtils.java198 * Writes string to file. Basically same as "echo -n $string > $filename"
201 * @param string
204 public static void stringToFile(String filename, String string) throws IOException { argument
207 out.write(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...]
/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/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/include/utils/
H A DString8.h25 #include <string.h> // for strcmp
35 //! This is a string holding UTF-8 characters. Does not allow the value more
57 inline const char* string() const;
130 * These methods operate on the string as if it were a path name.
198 String8& appendPath(const String8& leaf) { return appendPath(leaf.string()); }
201 * Like appendPath(), but does not affect this string. Returns a new one instead.
205 String8 appendPathCopy(const String8& leaf) const { return appendPathCopy(leaf.string()); }
208 * Converts all separators in this string to /, the default path separator.
246 inline const char* String8::string() const function in class:android::String8
/frameworks/native/opengl/libs/EGL/
H A Dtrace.cpp104 const GLchar** string, const GLint* length) {
108 const GLchar* s = string[i];
194 const GLchar** string = (const GLchar**) va_arg(argp, void*);
198 TraceGLShaderSource(shader, count, string, length);
103 TraceGLShaderSource(GLuint shader, GLsizei count, const GLchar** string, const GLint* length) argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccController.java224 private void log(String string) { argument
225 Log.d(LOG_TAG, string);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A DH264SwDecApi.c75 void H264SwDecTrace(char *string) { argument
H A DTestBenchMultipleInstance.c23 #include <string.h>
396 void H264SwDecTrace(char *string) argument
405 fwrite(string, 1, strlen(string), fp);
H A DDecTestBench.c20 #include <string.h>
678 void H264SwDecTrace(char *string) argument
687 fwrite(string, 1, strlen(string), fp);
/frameworks/av/services/camera/libcameraservice/camera2/
H A DCameraMetadata.cpp167 const String8 &string) {
172 return update(tag, (const void*)string.string(), string.size());
166 update(uint32_t tag, const String8 &string) argument
/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
392 // thrown if there is an error parsing the string
484 * Formats the certificate date to a properly localized date string.
485 * @return Properly localized version of the certificate date string and
/frameworks/base/core/java/com/android/internal/util/
H A DFastXmlSerializer.java116 private void escapeAndAppendString(final String string) throws IOException { argument
117 final int N = string.length();
123 char c = string.charAt(pos);
127 if (lastPos < pos) append(string, lastPos, pos-lastPos);
131 if (lastPos < pos) append(string, lastPos, pos-lastPos);
/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?
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java317 private static byte[] getKeyBytes(String string) { argument
319 int utfCount = (int) ModifiedUtf8.countBytes(string, false);
321 ModifiedUtf8.encode(result, 0, string);
/frameworks/base/tools/aapt/
H A DXMLNode.h88 String16 string; member in struct:XMLNode::attribute_entry
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiInfo.java119 * quotation marks. Otherwise, it is returned as a string of hex digits. The
261 * Set the <code>SupplicantState</code> from the string name
283 public static String removeDoubleQuotes(String string) { argument
284 if (string == null) return null;
285 final int length = string.length();
286 if ((length > 1) && (string.charAt(0) == '"') && (string.charAt(length - 1) == '"')) {
287 return string.substring(1, length - 1);
289 return string;
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pDevice.java36 * The device name is a user friendly string to identify a Wi-Fi p2p device
113 /** Detailed device string pattern with WFD info
154 * @param string formats supported include
170 public WifiP2pDevice(String string) throws IllegalArgumentException { argument
171 String[] tokens = string.split("[ \n]");
181 deviceAddress = string;
184 match = twoTokenPattern.matcher(string);
191 match = threeTokenPattern.matcher(string);
198 match = detailedDevicePattern.matcher(string);
373 Log.e(TAG, "Failed to parse hex string "
[all...]
/frameworks/compile/mclinker/lib/Support/
H A DPath.cpp14 #include <string.h>
66 assert(0 && "assign a null or empty string to Path");
84 else if(this->string()[this->native().size()-1] != separator &&
85 pPath.string()[0] != separator) {
101 std::string Path::string() const function in class:Path
108 std::string result = m_PathName;
/frameworks/wilhelm/tests/examples/
H A DxaVideoDecoderCapabilities.cpp19 #include <string.h>
57 // Use a table of [integer, string] entries to map an integer to a string
61 const char *string; member in struct:__anon1692
69 return table[i].string;
75 // Use a table of [integer, table] entries to map a pair of integers to a string
95 // Map a video codec and profile to string
158 // Map a video codec and level to string
/frameworks/base/media/jni/mediaeditor/
H A DVideoEditorJava.cpp74 // Get the error string.
318 jstring string = NULL; local
329 // Check if an object containing a string was specified.
332 // Retrieve the string object.
333 string = (jstring)pEnv->GetObjectField(object, stringFieldId);
340 // The string itself was specified.
341 string = (jstring)object;
344 // Check if the string could be retrieved.
345 if (NULL != string)
347 // Get a local copy of the string
[all...]
/frameworks/base/media/libdrm/mobile1/src/objmng/
H A Ddrm_rights_manager.c22 static int32_t drm_getString(uint8_t* string, int32_t len, int32_t handle) argument
27 if (DRM_FILE_FAILURE == DRM_file_read(handle, &string[i], 1))
29 if (string[i] == '\n') {
30 string[i + 1] = '\0';
37 static int32_t drm_putString(uint8_t* string, int32_t handle) argument
42 if (string[i] == '\0')
44 if (DRM_FILE_FAILURE == DRM_file_write(handle, &string[i], 1))

Completed in 361 milliseconds

123