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

123

/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/content/
H A DIntentFilter.java244 // the string sets... not yet implemented.
246 private static int findStringInSet(String[] set, String string, argument
251 if (set[i].equals(string)) return i;
256 private static String[] addStringToSet(String[] set, String string, argument
258 if (findStringInSet(set, string, lengths, lenPos) >= 0) return set;
261 set[0] = string;
267 set[N] = string;
275 set[N] = string;
280 private static String[] removeStringFromSet(String[] set, String string, argument
282 int pos = findStringInSet(set, string, length
[all...]
/frameworks/base/core/java/android/net/
H A DUrlQuerySanitizer.java43 * // name now contains "Joe User". (The string is first decoded, which
44 * // converts the '+' to a ' '. Then the string is sanitized, which
342 * Trim whitespace from the beginning and end of a string.
346 * @param value the string to trim
347 * @return the trimmed string
593 * treated as if the query portion is an empty string.
609 * Parse a query. A query string is any number of parameter-value clauses
612 * equal sign is missing, the value is assumed to be the empty string.
828 * Unescape an escaped string.
836 * @param string th
839 unescape(String string) argument
[all...]
/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/android/os/
H A DFileUtils.java233 * Writes string to file. Basically same as "echo -n $string > $filename"
236 * @param string
239 public static void stringToFile(String filename, String string) throws IOException { argument
242 out.write(string);
/frameworks/base/core/java/android/provider/
H A DBrowser.java60 * The value is a unique identification string that will be used to
155 * @param title Title for the bookmark. Can be null or empty string.
156 * @param url Url for the bookmark. Can be null or empty string.
191 * Sends the given string using an Intent with {@link Intent#ACTION_SEND} and a mime type
192 * of text/plain. The string is put into {@link Intent#EXTRA_TEXT}.
195 * @param string the string to send
197 public static final void sendString(Context context, String string) { argument
198 sendString(context, string, context.getString(com.android.internal.R.string
[all...]
/frameworks/base/core/java/android/text/
H A DTextUtils.java242 * from the source string. This is different than simply calling
270 final CharSequence delimiter = Resources.getSystem().getText(R.string.list_delimeter);
275 * Returns a string containing the tokens joined by delimiters.
294 * Returns a string containing the tokens joined by delimiters.
313 * String.split() returns [''] when the string to be split is empty. This returns []. This does
316 * @param text the string to split
331 * Splits a string on a pattern. String.split() returns [''] when the string to be
333 * @param text the string to split
358 * // Once per string t
366 setString(String string) argument
394 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 DTypedValue.java33 /** The <var>string</var> field holds string data. In addition, if
34 * <var>data</var> is non-zero then it is the string block
35 * index of the string and <var>assetCookie</var> is the set of
36 * assets the string came from. */
159 /** If the value holds a string, this is it. */
160 public CharSequence string; field in class:TypedValue
402 * string value. For example, a color type will be converted to a
403 * string of the form #aarrggbb.
405 * @return CharSequence The coerced string valu
[all...]
/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/java/com/android/internal/widget/
H A DLockPatternUtils.java515 * Compute the password quality from the given password string.
714 * @param string The pattern serialized with {@link #patternToString}
717 public static List<LockPatternView.Cell> stringToPattern(String string) { argument
720 final byte[] bytes = string.getBytes();
731 * @return The pattern in string form.
808 Log.w(TAG, "Failed to encode string because of missing algorithm: " + algo);
982 * @return A formatted string of the next alarm (for showing on the lock screen),
1058 textId = R.string.lockscreen_return_to_call;
1062 textId = R.string.lockscreen_emergency_call;
/frameworks/base/core/java/com/android/server/
H A DNetworkManagementSocketTagger.java136 public static int kernelToTag(String string) { argument
138 return (int) (Long.decode(string) >> 32);
/frameworks/base/core/jni/
H A Dandroid_opengl_GLES20.cpp3585 /* void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint * length ) */
3589 (JNIEnv *_env, jobject _this, jint shader, jstring string) {
3591 if (!string) {
3592 jniThrowException(_env, "java/lang/IllegalArgumentException", "string == null");
3596 const char* nativeString = _env->GetStringUTFChars(string, 0);
3599 _env->ReleaseStringUTFChars(string, nativeString);
3588 android_glShaderSource(JNIEnv *_env, jobject _this, jint shader, jstring string) argument
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestActivity.java567 * is pure string, we need to convert it to quoted string.
690 protected static String convertToQuotedString(String string) { argument
691 return "\"" + string + "\"";
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DConnectionUtil.java550 // The SSID in the configuration is a pure string, need to convert it to a quoted string.
685 * Add quotes around the string.
686 * @param string to convert
687 * @return string with quotes around it
689 protected static String convertToQuotedString(String string) { argument
690 return "\"" + string + "\"";
/frameworks/base/core/tests/coretests/src/android/app/
H A DSuggestionProvider.java80 private void addRow(MatrixCursor cursor, String string) { argument
82 cursor.newRow().add(id).add(string).add(Intent.ACTION_SEARCH).add(string);
/frameworks/base/core/tests/coretests/src/android/os/
H A DBuildTest.java37 private static void assertNotEmpty(String message, String string) { argument
38 //Log.i(TAG, "" + message + ": " + string);
39 assertNotNull(message, string);
40 assertFalse(message, string.equals(""));
47 private static void assertNotEmpty(String string) { argument
48 assertNotEmpty(null, 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?
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DProcFileReaderTest.java134 fail("somehow read a string value?");
155 private static ProcFileReader buildReader(String string) throws IOException { argument
156 return buildReader(string, 2048);
159 private static ProcFileReader buildReader(String string, int bufferSize) throws IOException { argument
161 new ByteArrayInputStream(string.getBytes(Charsets.US_ASCII)), bufferSize);
/frameworks/base/drm/jni/
H A Dandroid_drm_DrmManagerClient.cpp54 static String8 getStringValue(JNIEnv* env, jstring string);
86 String8 Utility::getStringValue(JNIEnv* env, jstring string) { argument
89 if (NULL != string && string != env->NewStringUTF("")) {
90 char* bytes = const_cast< char* > (env->GetStringUTFChars(string, NULL));
97 env->ReleaseStringUTFChars(string, bytes);
190 jstring message = env->NewStringUTF(event.getMessage().string());
191 LOGV("JNIOnInfoListener::onInfo => %d | %d | %s", uniqueId, type, event.getMessage().string());
288 env->NewStringUTF(key.string()), dataArray);
295 env->NewStringUTF(key.string()), en
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DRSDriverException.java25 public RSDriverException(String string) { argument
26 super(string);
H A DRSIllegalArgumentException.java25 public RSIllegalArgumentException(String string) { argument
26 super(string);
H A DRSInvalidStateException.java25 public RSInvalidStateException(String string) { argument
26 super(string);
H A DRSRuntimeException.java26 public RSRuntimeException(String string) { argument
27 super(string);
/frameworks/base/include/utils/
H A DString16.h39 //! This is a string holding UTF-16 characters.
56 inline const char16_t* string() const;
130 inline const char16_t* String16::string() const function in class:android::String16

Completed in 1518 milliseconds

123