Searched defs:string (Results 1 - 25 of 35) sorted by relevance

12

/frameworks/base/media/libstagefright/include/
H A Dstagefright_string.h25 class string { class in namespace:android
30 string();
31 string(const char *s);
32 string(const char *s, size_t length);
33 string(const string &from, size_type start, size_type length = npos);
43 bool operator<(const string &other) const;
44 bool operator==(const string &other) const;
46 string &operator+=(char c);
/frameworks/base/opengl/tools/glgen/stubs/gles11/
H A DglShaderSource.cpp2 /* void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint * length ) */
6 (JNIEnv *_env, jobject _this, jint shader, jstring string) {
8 if (!string) {
9 _env->ThrowNew(IAEClass, "string == null");
13 const char* nativeString = _env->GetStringUTFChars(string, 0);
16 _env->ReleaseStringUTFChars(string, nativeString);
5 android_glShaderSource(JNIEnv *_env, jobject _this, jint shader, jstring string) argument
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallStateException.java30 CallStateException(String string) argument
32 super(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/opengl/java/android/opengl/
H A DGLException.java30 public GLException(final int error, final String string) { argument
31 super(string);
/frameworks/base/media/libstagefright/
H A Dstring.cpp24 string::size_type string::npos = (string::size_type)-1;
26 string::string() { function in class:android::string
29 string::string(const char *s, size_t length) function in class:android::string
33 string::string(const string function in class:android::string
44 string::string(const char *s) function in class:android::string
[all...]
/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/include/utils/
H A DString16.h32 // Standard string functions on char16 strings.
45 // your string is not nul-terminated as it will have the
66 //! This is a string holding UTF-16 characters.
83 inline const char16_t* string() const;
157 inline const char16_t* String16::string() const function in class:android::String16
H A DString8.h27 #include <string.h>
40 * Returns the length of "src" when "src" is valid UTF-8 string.
41 * Returns 0 if src is NULL, 0-length string or non UTF-8 string.
46 * with string which may not be valid UTF-8 with valid codepoint (form 0 to
48 * other functions do not check whether the string is valid UTF-8 or not.
81 * Stores a UTF-32 string converted from "src" in "dst", if "dst_length" is not
82 * large enough to store the string, the part of the "src" string is stored
84 * Returns the size actually used for storing the string
333 inline const char* String8::string() const function in class:android::String8
[all...]
/frameworks/base/tools/localize/
H A Dlocalize_test.cpp10 test_filename(const string& file, const string& locale, const string& expected)
12 string result = translated_file_name(file, locale);
49 return_false(const string&, const TransUnit& unit, void* cookie) argument
122 map<string,Settings> settings;
123 map<string,Settings>::iterator it;
138 for (vector<string>::const_iterator app=setting.apps.begin();
179 string newString = xliff->ToString();
H A Dres_check.cpp13 do_rescheck(const vector<string>& files)
21 const string filename = files[i];
50 contains_percent(const string& str)
71 is_xliff_block(const string& ns, const string& name)
81 scan_for_unguarded_format(const SourcePos& pos, const string& string) argument
83 bool containsPercent = contains_percent(string);
85 pos.Error("unguarded percent: '%s'\n", string.c_str());
/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/tests/coretests/src/android/text/
H A DTextUtilsTest.java181 // replacement with empty string
216 // A single trailing emtpy string should be ignored.
220 private void stringSplitterTestHelper(String string, String[] expectedStrings) { argument
222 splitter.setString(string);
309 // Does the output string actually fit in the space?
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java213 private static byte[] getBytes(String string) { argument
215 return string.getBytes("UTF-8");
/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/base/core/java/android/net/http/
H A DSslCertificate.java200 * @return A string representation of this certificate for debugging
211 private static Date parseDate(String string) { argument
213 return new SimpleDateFormat(ISO_8601_DATE_FORMAT).parse(string);
220 * Format a date as an ISO 8601 string, return "" for a null date
296 // thrown if there is an error parsing the string
/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/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))
/frameworks/base/tools/aapt/
H A DXMLNode.h88 String16 string; member in struct:XMLNode::attribute_entry
/frameworks/base/core/java/android/net/
H A DNetworkStateTracker.java234 Log.w(TAG, "Invalid buffersize string: " + bufferSizes);
242 * Writes string to file. Basically same as "echo -n $string > $filename"
245 * @param string
248 private void stringToFile(String filename, String string) throws IOException { argument
251 out.write(string);
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/util/
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/widget/
H A DLockPatternUtils.java335 * Compute the password quality from the given password string.
417 * @param string The pattern serialized with {@link #patternToString}
420 public static List<LockPatternView.Cell> stringToPattern(String string) { argument
423 final byte[] bytes = string.getBytes();
434 * @return The pattern in string form.
511 Log.w(TAG, "Failed to encode string because of missing algorithm: " + algo);
628 * @return A formatted string of the next alarm (for showing on the lock screen),
679 textId = R.string.lockscreen_return_to_call;
683 textId = R.string.lockscreen_emergency_call;
/frameworks/base/opengl/libagl/
H A Dstate.cpp339 const GLubyte* glGetString(GLenum string) argument
341 switch (string) {

Completed in 880 milliseconds

12