/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pipes.py | 3 import string namespace 13 s_command = 'tr %s %s' % (string.ascii_lowercase, string.ascii_uppercase) 77 safeunquoted = string.ascii_letters + string.digits + '@%_-+=:,./' 121 # try a non-string command 155 # try a non-string command
|
test_userstring.py | 2 # UserString is a wrapper around the native builtin string type. 3 # UserString instances should behave similar to builtin string objects. 5 import string namespace 93 orig = string.ascii_letters + string.digits
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
textwrap.py | 10 import string, re namespace 33 # that character winds up in string.whitespace. Respecting 34 # string.whitespace in those cases would 1) make textwrap treat 0xa0 the 53 string that will be prepended to the first line of wrapped 56 string that will be prepended to all lines save the first 82 whitespace_trans = string.maketrans(_whitespace, ' ' * len(_whitespace)) 106 # XXX this is not locale- or charset-aware -- string.lowercase 112 % string.lowercase) 147 """_munge_whitespace(text : string) -> string [all...] |
/system/core/include/utils/ |
String16.h | 40 //! This is a string holding UTF-16 characters. 66 inline const char16_t* string() const; 142 inline const char16_t* String16::string() const function in class:android::String16
|
/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 | 45 String path = System.getProperty("java.io.tmpdir") + "/test_unix_socket"; 82 String s = new String(request, "UTF-8"); 99 String string = "hello, world!"; local 101 byte[] request = string.getBytes("UTF-8"); 107 assertEquals(string.toUpperCase(Locale.ROOT), new String(response, "UTF-8"));
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ |
ImportExportDialogFragment.java | 57 public static final String TAG = "ImportExportDialogFragment"; 59 private static final String KEY_RES_ID = "resourceId"; 60 private static final String ARG_CONTACTS_ARE_AVAILABLE = "CONTACTS_ARE_AVAILABLE"; 62 private final String[] LOOKUP_PROJECTION = new String[] { 90 final String callingActivity = getArguments().getString( 93 // Adapter that shows a list of string resources 112 adapter.add(R.string.import_from_sim); 115 adapter.add(R.string.import_from_sdcard); 119 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...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
PowerUsageDetail.java | 71 R.string.battery_desc_standby, 72 R.string.battery_desc_radio, 73 R.string.battery_desc_voice, 74 R.string.battery_desc_wifi, 75 R.string.battery_desc_bluetooth, 76 R.string.battery_desc_flashlight, 77 R.string.battery_desc_display, 78 R.string.battery_desc_apps, 79 R.string.battery_desc_users, 80 R.string.battery_desc_unaccounted [all...] |
/art/compiler/driver/ |
compiler_driver_test.cc | 113 const mirror::String* string = dex_cache->GetResolvedString(i); local 114 EXPECT_TRUE(string != NULL) << "string_idx=" << i;
|
/art/runtime/mirror/ |
string.cc | 17 #include "string-inl.h" 34 GcRoot<Class> String::java_lang_String_; 36 int32_t String::FastIndexOf(int32_t ch, int32_t start) { 54 void String::SetClass(Class* java_lang_String) { 60 void String::ResetClass() { 65 int32_t String::ComputeHashCode() { 71 int32_t String::GetUtfLength() { 75 String* String::AllocFromUtf16(Thread* self, 80 String* string = Alloc(self, utf16_length) local 106 String* string = Alloc(self, utf16_length); local 128 String* string = down_cast<String*>(GetJavaLangString()->AllocObject(self)); local [all...] |
/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,"|") 304 line = string.strip(line)
|
/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 | 44 public FindUsages(final Dex dex, String declaredBy, String memberName, final PrintWriter out) { 52 List<String> strings = dex.strings(); 54 String string = strings.get(i); local 55 if (declaredByPattern.matcher(string).matches()) { 58 if (memberNamePattern.matcher(string).matches()) { 100 private String location() { 101 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_org/base/prefs/ |
pref_member_unittest.cc | 20 const char kStringPref[] = "string"; 88 void OnPreferenceChanged(const std::string& pref_name) { 170 // Test string 171 StringPrefMember string; local 172 string.Init(kStringPref, &prefs); 176 EXPECT_EQ("default", string.GetValue()); 177 EXPECT_EQ("default", *string); 180 string.SetValue("foo"); 181 EXPECT_EQ("foo", string.GetValue()); 183 EXPECT_EQ("foo", *string); [all...] |
/external/chromium_org/chromeos/network/ |
network_ui_data.cc | 26 const char* string; member in struct:chromeos::__anon10710::StringEnumEntry 42 // Converts |enum_value| to the corresponding string according to |table|. If no 44 // was used to obtain |enum_value|), returns an empty string instead. 46 std::string EnumToString(const StringEnumEntry<Enum>(& table)[N], 50 return table[i].string; 52 return std::string(); 56 // string of the table matches, returns |fallback| instead. 59 const std::string& str, 62 if (table[i].string == str) 90 std::string source [all...] |
/external/chromium_org/ipc/ |
ipc_message_utils.cc | 30 void LogBytes(const std::vector<CharType>& data, std::string* out) { 90 std::string val; 136 std::string key; 202 std::string val; 252 void ParamTraits<bool>::Log(const param_type& p, std::string* l) { 269 void ParamTraits<unsigned char>::Log(const param_type& p, std::string* l) { 286 void ParamTraits<unsigned short>::Log(const param_type& p, std::string* l) { 290 void ParamTraits<int>::Log(const param_type& p, std::string* l) { 294 void ParamTraits<unsigned int>::Log(const param_type& p, std::string* l) { 298 void ParamTraits<long>::Log(const param_type& p, std::string* l) 539 base::string16 string; local [all...] |
/external/chromium_org/mojo/public/cpp/bindings/ |
string.h | 10 #include <string> 18 class String { 22 String() : is_null_(true) {} 23 String(const std::string& str) : value_(str), is_null_(false) {} 24 String(const char* chars) : is_null_(!chars) { 28 String(const char* chars, size_t num_chars) 33 String(const char chars[N]) : value_(chars, N-1), is_null_(false) {} 36 static String From(const U& other) { 37 return TypeConverter<String, U>::ConvertFrom(other) [all...] |
/external/chromium_org/ppapi/proxy/ |
pdf_resource.cc | 8 #include <string.h> 27 std::string GetLocale() { 31 const std::string& lang = parsed_command_line.GetSwitchValueASCII("lang"); 51 std::string localized_string; 66 const base::char16* string = local 72 UStringSearch* searcher = usearch_open(term, -1, string, -1, locale_.c_str(),
|
/external/chromium_org/sdch/open-vcdiff/src/ |
varint_bigendian_test.cc | 19 #include <string.h> // strlen 20 #include <string> 29 typedef std::string string; typedef in class:open_vcdiff::__anon14645::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...] |
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
CodeGeneratorInstrumentation.py | 32 import string namespace 35 template_h = string.Template("""// Code generated from InspectorInstrumentation.idl 54 template_inline = string.Template(""" 62 template_inline_forward = string.Template(""" 69 template_inline_returns_value = string.Template(""" 79 template_cpp = string.Template("""// Code generated from InspectorInstrumentation.idl 96 template_outofline = string.Template(""" 101 template_agent_call = string.Template(""" 105 template_agent_call_timeline_returns_cookie = string.Template(""" 113 template_instrumenting_agents_h = string.Template("""// Code generated from InspectorInstrumentation.id [all...] |