| /frameworks/native/include/utils/ |
| String16.h | 40 //! This is a string holding UTF-16 characters. 57 inline const char16_t* string() const; 135 inline const char16_t* String16::string() const function in class:android::String16
|
| String8.h | 25 #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
|
| /libcore/benchmarks/src/benchmarks/regression/ |
| CharsetBenchmark.java | 41 private String name; 46 new String(bytes, name); 53 new String(bytes, 0, bytes.length); 60 new String(bytes, 0, bytes.length, name); 65 String string = makeString(length); local 67 string.getBytes(name); 130 private static String makeString(int length) { 138 private static byte[] makeBytes(String s) {
|
| /libcore/luni/src/main/java/java/text/ |
| StringCharacterIterator.java | 25 String string; field in class:StringCharacterIterator 30 * Constructs a new {@code StringCharacterIterator} on the specified string. 31 * The begin and current indices are set to the beginning of the string, the 32 * end index is set to the length of the string. 35 * the source string to iterate over. 37 public StringCharacterIterator(String value) { 38 string = value; 40 end = string.length(); 44 * Constructs a new {@code StringCharacterIterator} on the specified string [all...] |
| /ndk/sources/host-tools/sed-4.2.1/testsuite/ |
| tst-boost.c | 32 #include <string.h> 85 char *pattern, *string; local 150 string = p + strspn (p, " \t"); 151 if (*string == '\0') 153 if (*string == '"') 155 string++; 156 p = strchr (string, '"'); 163 p = string + strcspn (string, " \t"); 164 if (*string == '!' [all...] |
| /packages/apps/Calendar/src/com/android/calendar/ |
| EventRecurrenceFormatter.java | 33 private static String[][] mMonthRepeatByDayOfWeekStrs; 35 public static String getRepeatString(Context context, Resources r, EventRecurrence recurrence, 37 String endString = ""; 44 final String dateStr = DateUtils.formatDateTime(context, 46 sb.append(r.getString(R.string.endByDate, dateStr)); 58 // TODO Implement "Until" portion of string, as well as custom settings 65 return r.getString(R.string.every_weekday) + endString; 67 String string; local 87 string = days.toString() [all...] |
| /packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
| SnepCustomClientTests.java | 36 private static final String TAG = "nfcTest"; 83 StringBuffer string = new StringBuffer(size); local 85 string.append('A' + (i % 26)); 88 new byte[0], string.toString().getBytes());
|
| SnepDefaultClientTests.java | 36 private static final String TAG = "nfcTest"; 83 StringBuffer string = new StringBuffer(size); local 85 string.append('A' + (i % 26)); 88 new byte[0], string.toString().getBytes());
|
| /cts/tests/tests/widget/src/android/widget/cts/ |
| EditTextTest.java | 93 String string = "android"; local 94 editText.setText(string, BufferType.EDITABLE); 113 editText.setSelection(string.length() + 1); 123 String string = "android"; local 124 editText.setText(string, BufferType.EDITABLE); 151 editText.setSelection(5, string.length() + 1); 161 String string = "android" local [all...] |
| /libcore/luni/src/test/java/libcore/io/ |
| OsTest.java | 44 String path = System.getProperty("java.io.tmpdir") + "/test_unix_socket"; 81 String s = new String(request, "UTF-8"); 98 String string = "hello, world!"; local 100 byte[] request = string.getBytes("UTF-8"); 106 assertEquals(string.toUpperCase(), new String(response, "UTF-8"));
|
| /packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ |
| ImportExportDialogFragment.java | 56 public static final String TAG = "ImportExportDialogFragment"; 58 private static final String KEY_RES_ID = "resourceId"; 59 private static final String ARG_CONTACTS_ARE_AVAILABLE = "CONTACTS_ARE_AVAILABLE"; 61 private final String[] LOOKUP_PROJECTION = new String[] { 83 final String callingActivity = getArguments().getString( 86 // Adapter that shows a list of string resources 102 adapter.add(R.string.import_from_sim); 105 adapter.add(R.string.import_from_sdcard); 109 adapter.add(R.string.export_to_sdcard) [all...] |
| /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
| JavaNetHttpHelper.java | 35 private static final String TAG = "QSB.JavaNetHttpHelper"; 39 private static final String USER_AGENT_HEADER = "User-Agent"; 40 private static final String DEFAULT_CHARSET = "UTF-8"; 44 private final String mUserAgent; 51 * @param userAgent User agent string, e.g. "MyApp/1.0". 53 public JavaNetHttpHelper(UrlRewriter rewriter, String userAgent) { 62 * @return The response content. This is the empty string if the response 67 public String get(GetRequest request) throws IOException, HttpException { 76 * @return The response content. This is the empty string if the response 81 public String get(String url, Map<String,String> requestHeaders 160 StringBuilder string = new StringBuilder(); local [all...] |
| /bionic/libc/kernel/common/linux/ |
| moduleparam.h | 56 char *string; member in struct:kparam_string 75 #define module_param_string(name, string, len, perm) static struct kparam_string __param_string_##name = { len, string }; module_param_call(name, param_set_copystring, param_get_string, &__param_string_##name, perm); __MODULE_PARM_TYPE(name, "string")
|
| /bionic/libc/kernel/tools/ |
| kernel.py | 7 import sys, cpp, re, os.path, string, time namespace 59 r"^.*<((%s)/[\d\w_\+\.\-/]*)>.*$" % string.join(kernel_dirs,"|") 305 line = string.strip(line)
|
| utils.py | 3 import sys, os, commands, string, commands namespace
|
| /cts/tests/tests/util/src/android/util/cts/ |
| StateSetTest.java | 52 String string = StateSet.dump(stateSet); local 53 assertEquals("W P S F E ", string);
|
| /dalvik/dx/src/com/android/dx/command/findusages/ |
| FindUsages.java | 45 public FindUsages(final DexBuffer dex, String declaredBy, String memberName, final PrintWriter out) { 53 List<String> strings = dex.strings(); 55 String string = strings.get(i); local 56 if (declaredByPattern.matcher(string).matches()) { 59 if (memberNamePattern.matcher(string).matches()) { 101 private String location() { 102 String className = dex.typeNames().get(currentClass.getTypeIndex());
|
| /development/ndk/platforms/android-3/include/linux/ |
| moduleparam.h | 50 char *string; member in struct:kparam_string 71 #define module_param_string(name, string, len, perm) static struct kparam_string __param_string_##name = { len, string }; module_param_call(name, param_set_copystring, param_get_string, &__param_string_##name, perm); __MODULE_PARM_TYPE(name, "string")
|
| /development/testrunner/ |
| adb_interface.py | 24 import string namespace 64 string output of command 85 string output of command 201 instrumentation_path: string. It should be the fully classified package 273 """Returns a string of adb command that will be executed.""" 313 if ls_response.strip("#").strip(string.whitespace) != "": 388 expected: the string that should appear to consider the
|
| /external/antlr/antlr-3.4/runtime/C/src/ |
| antlr3basetree.c | 290 pANTLR3_STRING string; local 300 /* Need a new string with nothing at all in it. 302 string = tree->strFactory->newRaw(tree->strFactory); 306 string->append8 (string, "("); 307 string->appendS (string, tree->toString(tree)); 308 string->append8 (string, " "); 320 string->append8(string, " ") [all...] |
| /external/chromium/base/i18n/ |
| rtl.cc | 24 std::string GetLocaleString(const icu::Locale& locale) { 28 std::string result = 47 // Convert the ICU default locale to a string. 48 std::string GetConfiguredLocale() { 52 // Convert the ICU canonicalized locale to a string. 53 std::string GetCanonicalLocale(const char* locale) { 58 std::string ICULocaleName(const std::string& locale_string) { 70 std::string language = locale.getLanguage(); 85 void SetICUDefaultLocale(const std::string& locale_string) 132 const UChar* string = text.c_str(); local 246 const UChar* string = text.c_str(); local [all...] |
| /external/chromium/chrome/browser/prefs/ |
| pref_member_unittest.cc | 21 const char kStringPref[] = "string"; 82 std::string* pref_name_in = Details<std::string>(details).ptr(); 164 // Test string 165 StringPrefMember string; local 166 string.Init(kStringPref, &prefs, NULL); 170 EXPECT_EQ("default", string.GetValue()); 171 EXPECT_EQ("default", *string); 174 string.SetValue("foo"); 175 EXPECT_EQ("foo", string.GetValue()) [all...] |
| /external/chromium/sdch/open-vcdiff/src/ |
| encodetable_test.cc | 20 #include <string.h> // strlen 22 #include <string> 36 typedef std::string string; typedef in class:open_vcdiff::__anon5212::CodeTableWriterTest 110 EXPECT_EQ(string(s, size), 111 string(out.data() + out_index, size)); 158 string out; 159 OutputString<string> output_string;
|
| varint_bigendian_test.cc | 19 #include <string.h> // strlen 20 #include <string> 29 typedef std::string string; typedef in class:open_vcdiff::__anon5226::VarintBETestCommon 50 string s_;
|
| vcdecoder_test.h | 20 #include <string> 28 // Those elements are provided as string members and can be modified or 32 typedef std::string string; typedef in class:open_vcdiff::VCDiffDecoderTest 81 // Assuming the length of the given string can be expressed as a VarintBE 86 // Assuming the length of the given string can be expressed as a one-byte 92 // Assuming the length of the given string can be expressed as a two-byte 98 // Assuming the length of the given string can be expressed as a two-byte 108 string delta_file_; 110 // This string is not populated during setup, but is used to receive th [all...] |