| /cts/tests/tests/text/src/android/text/cts/ |
| HtmlTest.java | 49 final String source = "<b>hello</b>"; 71 final String source = "Hello <b>b<i>bi</b>i</i>"; 89 final String source = "© > <"; 90 final String expected = "\u00a9 > <"; 92 String spanned = Html.fromHtml(source).toString(); 358 String tags[] = {"del", "s", "strike"}; 359 for (String tag : tags) { 360 String source = String.format("Hello <%s>struck</%s> world", tag, tag); 376 String tags[] = {"p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "blockquote"} 550 final String string = (String) item; local [all...] |
| /dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
| CstUtf8.java | 28 * empty string 32 /** {@code non-null;} the UTF-8 value as a string */ 33 private final String string; field in class:CstUtf8 39 * Converts a string into its Java-style UTF-8 form. Java-style UTF-8 43 * @param string {@code non-null;} the string to convert 46 public static byte[] stringToUtf8Bytes(String string) { 47 int len = string.length() 317 String string = toHuman(); local [all...] |
| /dalvik/dx/src/com/android/dx/rop/cst/ |
| CstString.java | 29 * empty string 33 /** {@code non-null;} the UTF-8 value as a string */ 34 private final String string; field in class:CstString 40 * Converts a string into its MUTF-8 form. MUTF-8 differs from normal UTF-8 43 * @param string {@code non-null;} the string to convert 46 public static byte[] stringToUtf8Bytes(String string) { 47 int len = string.length() 317 String string = toHuman(); local [all...] |
| /dalvik/libdex/ |
| DexFile.cpp | 33 #include <string.h> 48 const char* string = dexGetPrimitiveTypeDescriptor(type); local 50 return (string == NULL) ? '\0' : string[0]; 103 /* Return the UTF-8 encoded string with the specified string_id index, 155 * Compute a hash code on a UTF-8 string, for use with internal hash tables. 174 * Add an entry to the class lookup table. We hash the string and probe
|
| /developers/build/prebuilts/gradle/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/ |
| ScannerFragment.java | 47 private static final String TAG = ScannerFragment.class.getSimpleName(); 109 setEmptyText(getString(R.string.empty_list)); 153 String toastText = getString(R.string.scan_start_toast) + " " 155 + getString(R.string.seconds); 158 Toast.makeText(getActivity(), R.string.already_scanning, Toast.LENGTH_SHORT);
|
| /developers/build/prebuilts/gradle/ScreenCapture/Application/src/main/java/com/example/android/screencapture/ |
| ScreenCaptureFragment.java | 45 private static final String TAG = "ScreenCaptureFragment"; 47 private static final String STATE_RESULT_CODE = "result_code"; 48 private static final String STATE_RESULT_DATA = "result_data"; 125 Toast.makeText(getActivity(), R.string.user_cancelled, Toast.LENGTH_SHORT).show(); 190 mButtonToggle.setText(R.string.stop); 199 mButtonToggle.setText(R.string.start);
|
| /developers/samples/android/connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/ |
| ScannerFragment.java | 47 private static final String TAG = ScannerFragment.class.getSimpleName(); 109 setEmptyText(getString(R.string.empty_list)); 153 String toastText = getString(R.string.scan_start_toast) + " " 155 + getString(R.string.seconds); 158 Toast.makeText(getActivity(), R.string.already_scanning, Toast.LENGTH_SHORT);
|
| /developers/samples/android/media/ScreenCapture/Application/src/main/java/com/example/android/screencapture/ |
| ScreenCaptureFragment.java | 45 private static final String TAG = "ScreenCaptureFragment"; 47 private static final String STATE_RESULT_CODE = "result_code"; 48 private static final String STATE_RESULT_DATA = "result_data"; 125 Toast.makeText(getActivity(), R.string.user_cancelled, Toast.LENGTH_SHORT).show(); 190 mButtonToggle.setText(R.string.stop); 199 mButtonToggle.setText(R.string.start);
|
| /development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/ |
| ScannerFragment.java | 47 private static final String TAG = ScannerFragment.class.getSimpleName(); 109 setEmptyText(getString(R.string.empty_list)); 153 String toastText = getString(R.string.scan_start_toast) + " " 155 + getString(R.string.seconds); 158 Toast.makeText(getActivity(), R.string.already_scanning, Toast.LENGTH_SHORT);
|
| /development/samples/browseable/ScreenCapture/src/com.example.android.screencapture/ |
| ScreenCaptureFragment.java | 45 private static final String TAG = "ScreenCaptureFragment"; 47 private static final String STATE_RESULT_CODE = "result_code"; 48 private static final String STATE_RESULT_DATA = "result_data"; 125 Toast.makeText(getActivity(), R.string.user_cancelled, Toast.LENGTH_SHORT).show(); 190 mButtonToggle.setText(R.string.stop); 199 mButtonToggle.setText(R.string.start);
|
| /external/ImageMagick/Magick++/lib/ |
| Geometry.cpp | 13 #include <string> 116 Magick::Geometry::Geometry(const std::string &geometry_) 154 *this=std::string(geometry_); 179 const std::string &geometry_) 266 Magick::Geometry::operator std::string() const 271 std::string 506 Magick::Offset::Offset(const std::string &offset_) 550 const Magick::Offset& Magick::Offset::operator=(const std::string &offset_) 606 Magick::Point::Point(const std::string &point_) 663 const Magick::Point& Magick::Point::operator=(const std::string &point_ [all...] |
| Statistic.cpp | 136 const PixelChannel channel_,const std::string &hash_) 172 Magick::ChannelPerceptualHash::operator std::string() const 174 std::string 181 return(std::string()); 211 hash+=std::string(buffer); 491 Magick::ImagePerceptualHash::ImagePerceptualHash(const std::string &hash_) 509 Magick::ImagePerceptualHash::operator std::string() const 512 return(std::string()); 514 return static_cast<std::string>(_channels[0]) + 515 static_cast<std::string>(_channels[1]) + [all...] |
| /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/ |
| Frame.java | 152 * Converts Frame object to String. 155 * @return String 157 public String toString() { 158 String string = "Frame: id=" + id + ", threadID=" + threadID local 160 string += "--- Variables ---"; 163 string += ((Variable) it.next()).toString(); 165 return string; 207 private String name; 209 private String signature [all...] |
| /external/autotest/client/bin/ |
| partition.py | 9 import os, re, string, sys, fcntl, logging namespace 338 @param test: A string containing the name of the test 343 @param tag: A string tag to make this test unique (Required for control 440 @param mountpoint_func: A callable that returns a path as a string, 462 @param mountpoint_func: function to return mount point string 506 @returns a string with the mount point of the partition or None if not 805 return names.translate(string.maketrans('[]', ' ')).split() [all...] |
| /external/autotest/client/common_lib/cros/network/ |
| xmlrpc_security_types.py | 9 import string namespace 101 in a particular way. Hex string on the other hand can be given raw. 105 @param key string a 40/104 bit WEP key. 107 string-encoded passphrase. This conversion varies in format 109 @return string corrected formatted WEP key. 128 @param wep_keys list of string WEP keys. 199 @param psk string a passphrase (64 hex characters or an ASCII phrase up 324 @param file_suffix string unique file suffix on DUT. 326 @param server_ca_cert string PEM encoded CA certificate for the server. 327 @param server_cert string PEM encoded identity certificate for server [all...] |
| /external/autotest/client/common_lib/ |
| software_manager.py | 18 import os, re, logging, ConfigParser, optparse, random, string namespace 31 Return a random string using alphanumeric characters. 33 @length: Length of the string that will be generated. 37 chars = string.letters + string.digits 665 @param repo: Repository string. Example: 678 @param repo: Repository string. Example:
|
| /external/autotest/client/cros/ |
| cryptohome.py | 5 import dbus, gobject, logging, os, random, re, shutil, string namespace 48 password = ''.join(random.sample(string.ascii_lowercase, 6)) 343 except ValueError, e: # empty or invalid string 496 password = ''.join(random.sample(string.ascii_lowercase, 6))
|
| /external/blktrace/ |
| blkrawverify.c | 23 #include <string.h> 33 char *string; member in struct:trace_info 38 #define TRACE_TO_STRING(f) {.bit_field = f, .string = #f} 58 char *string; member in struct:act_info 61 #define ACT_TO_STRING(f) {.val = f, .string = #f} 90 sprintf(buf, "%s ", acts[act].string); 94 sprintf(buf2, "| %s ", traces[i].string);
|
| /external/boringssl/src/crypto/bio/ |
| bio_test.cc | 25 #include <string.h> 297 char string[1024]; local 298 if (kLengths[i] >= sizeof(string)) { 299 fprintf(stderr, "Bad test string length\n"); 302 memset(string, 'a', sizeof(string)); 303 string[kLengths[i]] = '\0'; 305 int ret = BIO_printf(bio.get(), "test %s", string); 318 strncmp((const char *)contents + 5, string, kLengths[i]) != 0) {
|
| /external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/tools/ |
| list_ports_windows.py | 36 """Get a buffer for a string""" 39 def string(buffer): function 176 if string(port_name_buffer).startswith('LPT'): 201 szHardwareID_str = string(szHardwareID) 203 # in case of USB, make a more readable string, similar to that form 228 yield string(port_name_buffer), 'n/a', szHardwareID_str 230 yield string(port_name_buffer), string(szFriendlyName), szHardwareID_str
|
| /external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/ |
| dammit.py | 14 import string namespace 107 If a string contains double quotes, it will be quoted using 112 If a string contains both single and double quotes, the 113 double quotes will be escaped, and the string will be quoted 121 # The string contains both single and double 140 :param value: A string to be substituted. The less-than sign 146 :param make_quoted_attribute: If True, then the string will be 162 :param value: A string to be substituted. The less-than sign will 167 :param make_quoted_attribute: If True, then the string will be 186 errors. There's absolutely nothing wrong with a UTF-8 string [all...] |
| /external/chromium-trace/catapult/third_party/graphy/graphy/backends/google_chart_api/ |
| util.py | 22 import string namespace 91 self.code = string.ascii_uppercase + string.ascii_lowercase + string.digits 115 chars = string.ascii_uppercase + string.ascii_lowercase + string.digits \ 166 """String-ize & join data.""" 173 For each long_name, join the values into a string according to 174 JOIN_DELIMS. If values is empty or None, replace with an empty string [all...] |
| /external/clang/test/Analysis/inlining/ |
| false-positive-suppression.cpp | 15 class string {}; class in namespace:rdar12676053 19 string filename; 23 void setFilename(const string& f) {
|
| /external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/ |
| p3-0x.cpp | 14 struct string { struct in namespace:std 15 string(const char *); 52 Map(std::initializer_list<std::pair<std::string,int>>) {} 77 S(const std::string &) {}
|
| /external/clang/test/CXX/drs/ |
| dr15xx.cpp | 61 typedef basic_string<char> string; typedef in namespace:std 80 void f2(std::initializer_list<std::string>); // #4 97 void f2(std::initializer_list<std::string>); // #4 expected-note {{candidate function}} 98 void f2(std::initializer_list<std::string>, int = 0); // Makes selection of #00 ambiguous \
|