/system/core/include/utils/ |
String8.h | 25 #include <string.h> // for strcmp 35 //! This is a string holding UTF-8 characters. Does not allow the value more 66 inline const char* string() const; 139 * These methods operate on the string as if it were a path name. 207 String8& appendPath(const String8& leaf) { return appendPath(leaf.string()); } 210 * Like appendPath(), but does not affect this string. Returns a new one instead. 214 String8 appendPathCopy(const String8& leaf) const { return appendPathCopy(leaf.string()); } 217 * Converts all separators in this string to /, the default path separator. 253 inline const char* String8::string() const function in class:android::String8
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
PowerUsageDetail.java | 75 R.string.battery_desc_standby, 76 R.string.battery_desc_radio, 77 R.string.battery_desc_voice, 78 R.string.battery_desc_wifi, 79 R.string.battery_desc_bluetooth, 80 R.string.battery_desc_display, 81 R.string.battery_desc_apps, 82 R.string.battery_desc_users, 97 public static final String EXTRA_TITLE = "title"; 98 public static final String EXTRA_PERCENT = "percent" [all...] |
/external/chromium_org/chrome/third_party/chromevox/ |
chromeVoxChromePageScript.js | 10 else if("function"==b&&"undefined"==typeof a.call)return"object";return b};goog.isDef=function(a){return void 0!==a};goog.isNull=function(a){return null===a};goog.isDefAndNotNull=function(a){return null!=a};goog.isArray=function(a){return"array"==goog.typeOf(a)};goog.isArrayLike=function(a){var b=goog.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length};goog.isDateLike=function(a){return goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isString=function(a){return"string"==typeof a}; 24 cvox.ChromeVox.storeOn=function(a){a.isStickyOn=cvox.ChromeVox.isStickyOn;cvox.ChromeVox.navigationManager.storeOn(a)};cvox.ChromeVox.readFrom=function(a){cvox.ChromeVox.isStickyOn=a.isStickyOn;cvox.ChromeVox.navigationManager.readFrom(a)};cvox.Cursor=function(a,b,c){this.node=a;this.index=b;this.text=c};cvox.Cursor.prototype.clone=function(){return new cvox.Cursor(this.node,this.index,this.text)};cvox.Cursor.prototype.copyFrom=function(a){this.node=a.node;this.index=a.index;this.text=a.text};cvox.Cursor.prototype.equals=function(a){return this.node==a.node&&this.index==a.index&&this.text==a.text};goog.debug={};goog.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.string={};goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goog.string.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};goog.string.caseInsensitiveStartsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(0,b.length))};goog.string.caseInsensitiveEndsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.length))} [all...] |
chromeVoxChromeBackgroundScript.js | 10 else if("function"==b&&"undefined"==typeof a.call)return"object";return b};goog.isDef=function(a){return void 0!==a};goog.isNull=function(a){return null===a};goog.isDefAndNotNull=function(a){return null!=a};goog.isArray=function(a){return"array"==goog.typeOf(a)};goog.isArrayLike=function(a){var b=goog.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length};goog.isDateLike=function(a){return goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isString=function(a){return"string"==typeof a}; 24 cvox.ChromeVox.storeOn=function(a){a.isStickyOn=cvox.ChromeVox.isStickyOn;cvox.ChromeVox.navigationManager.storeOn(a)};cvox.ChromeVox.readFrom=function(a){cvox.ChromeVox.isStickyOn=a.isStickyOn;cvox.ChromeVox.navigationManager.readFrom(a)};cvox.Cursor=function(a,b,c){this.node=a;this.index=b;this.text=c};cvox.Cursor.prototype.clone=function(){return new cvox.Cursor(this.node,this.index,this.text)};cvox.Cursor.prototype.copyFrom=function(a){this.node=a.node;this.index=a.index;this.text=a.text};cvox.Cursor.prototype.equals=function(a){return this.node==a.node&&this.index==a.index&&this.text==a.text};goog.debug={};goog.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.string={};goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goog.string.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};goog.string.caseInsensitiveStartsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(0,b.length))};goog.string.caseInsensitiveEndsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.length))} [all...] |
chromeVoxChromeOptionsScript.js | 10 else if("function"==b&&"undefined"==typeof a.call)return"object";return b};goog.isDef=function(a){return void 0!==a};goog.isNull=function(a){return null===a};goog.isDefAndNotNull=function(a){return null!=a};goog.isArray=function(a){return"array"==goog.typeOf(a)};goog.isArrayLike=function(a){var b=goog.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length};goog.isDateLike=function(a){return goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isString=function(a){return"string"==typeof a}; 39 cvox.KeyUtil.keyCodeToString=function(a){return 17==a?"Ctrl":18==a?"Alt":16==a?"Shift":91==a||93==a?cvox.ChromeVox.isChromeOS?"Search":cvox.ChromeVox.isMac?"Cmd":"Win":45==a?"Insert":65<=a&&90>=a?String.fromCharCode(a):48<=a&&57>=a?String.fromCharCode(a):"#"+a};cvox.KeyUtil.modStringToKeyCode=function(a){switch(a){case "Ctrl":return 17;case "Alt":return 18;case "Shift":return 16;case "Cmd":case "Win":return 91}return-1}; 43 if(189==a)return"Dash";if(190==a)return"Period";if(191==a)return"Forward slash";if(192==a)return"Grave accent";if(219==a)return"Open bracket";if(220==a)return"Back slash";if(221==a)return"Close bracket";if(222==a)return"Single quote";if(115==a)return"Toggle full screen";if(48<=a&&90>=a)return String.fromCharCode(a)};cvox.KeyUtil.getStickyKeyCode=function(){var a=45;if(cvox.ChromeVox.isChromeOS||cvox.ChromeVox.isMac)a=91;return a}; [all...] |
/external/smack/src/org/xbill/DNS/ |
Record.java | 288 abstract String rrToString(); 291 * Converts the rdata portion of a Record into a String representation 293 public String 299 * Converts a Record into a String representation 301 public String 316 sb.append(DClass.string(dclass)); 319 sb.append(Type.string(type)); 320 String rdata = rrToString(); 335 * Converts a String into a byte array. 338 byteArrayFromString(String s) throws TextParseException [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/ |
AdvancedWifiSettings.java | 43 private static final String TAG = "AdvancedWifiSettings"; 44 private static final String KEY_MAC_ADDRESS = "mac_address"; 45 private static final String KEY_CURRENT_IP_ADDRESS = "current_ip_address"; 46 private static final String KEY_FREQUENCY_BAND = "frequency_band"; 47 private static final String KEY_NOTIFY_OPEN_NETWORKS = "notify_open_networks"; 48 private static final String KEY_SLEEP_POLICY = "sleep_policy"; 49 private static final String KEY_POOR_NETWORK_DETECTION = "wifi_poor_network_detection"; 50 private static final String KEY_SCAN_ALWAYS_AVAILABLE = "wifi_scan_always_available"; 51 private static final String KEY_INSTALL_CREDENTIALS = "install_credentials"; 52 private static final String KEY_SUSPEND_OPTIMIZATIONS = "suspend_optimizations" [all...] |
/art/runtime/mirror/ |
string.cc | 17 #include "string.h" 31 const CharArray* String::GetCharArray() const { 35 void String::ComputeHashCode() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { 39 int32_t String::GetUtfLength() const { 43 int32_t String::FastIndexOf(int32_t ch, int32_t start) const { 61 void String::SetArray(CharArray* new_array) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { 63 SetFieldObject(OFFSET_OF_OBJECT_MEMBER(String, array_), new_array, false); 67 Class* String::java_lang_String_ = NULL; 69 void String::SetClass(Class* java_lang_String) { 75 void String::ResetClass() 120 String* string = Alloc(self, GetJavaLangString(), utf16_length); local 150 String* string = Alloc(self, GetJavaLangString(), utf16_length); local 172 String* string = down_cast<String*>(java_lang_String->AllocObject(self)); local [all...] |
/art/runtime/verifier/ |
reg_type_test.cc | 405 std::string expected = "Unresolved Reference: java.lang.DoesNotExist"; 407 expected = "Precise Reference: java.lang.String"; 409 expected ="Uninitialized Reference: java.lang.String Allocation PC: 10"; 420 // The JavaLangObject method instead of FromDescriptor. String class is final. 425 const RegType& ref_type_3 = cache.FromDescriptor(NULL, "Ljava/lang/String;", true); 453 // String and object , LUB is object. 456 const RegType& string = cache_new.JavaLangString(); local 458 EXPECT_TRUE(string.Merge(Object, &cache_new).IsJavaLangObject());
|
/cts/libs/json/src/com/android/json/stream/ |
JsonWriter.java | 118 * malformed JSON string will fail with an {@link IllegalStateException}. 131 * A string containing a full set of spaces for a single level of 134 private String indent; 139 private String separator = ":"; 154 * Sets the indentation string to be repeated for each level of indentation 159 * @param indent a string containing only whitespace. 161 public void setIndent(String indent) { 213 private JsonWriter open(JsonScope empty, String openBracket) throws IOException { 224 private JsonWriter close(JsonScope empty, JsonScope nonempty, String closeBracket) 259 public JsonWriter name(String name) throws IOException 353 private void string(String value) throws IOException { method in class:JsonWriter [all...] |
/cts/libs/vogar-expect/src/vogar/commands/ |
Command.java | 47 private final List<String> args; 48 private final Map<String, String> env; 55 public Command(String... args) { 59 public Command(List<String> args) { 60 this.args = new ArrayList<String>(args); 69 this.args = new ArrayList<String>(builder.args); 75 String string = toString(); local 76 if (string.length() > builder.maxLength) [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
|
/dalvik/vm/compiler/template/ |
gen-template.py | 22 import sys, string, re, time namespace 23 from string import Template
|
/dalvik/vm/mterp/ |
gen-mterp.py | 22 import sys, string, re, time namespace 23 from string import Template
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
ReaderTest.java | 28 String s = "MY TEST STRING"; 42 String s = "MY TEST STRING"; 50 assertEquals(s, String.valueOf(destBuffer)); 54 String s = "MY TEST STRING"; 69 assertEquals(s.substring(CHARBUFFER_REMAINING), String 95 String string = "MY TEST STRING" local 137 String string = "MY TEST STRING"; local [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
SimpleTimeZoneTest.java | 33 * @tests java.util.SimpleTimeZone#SimpleTimeZone(int, java.lang.String) 36 // Test for method java.util.SimpleTimeZone(int, java.lang.String) 47 * @tests java.util.SimpleTimeZone#SimpleTimeZone(int, java.lang.String, 51 // Test for method java.util.SimpleTimeZone(int, java.lang.String, int, 68 * @tests java.util.SimpleTimeZone#SimpleTimeZone(int, java.lang.String, 72 // Test for method java.util.SimpleTimeZone(int, java.lang.String, int, 91 * @tests java.util.SimpleTimeZone#SimpleTimeZone(int, java.lang.String, 95 // Test for method java.util.SimpleTimeZone(int, java.lang.String, int, 464 // Test for method java.lang.String java.util.SimpleTimeZone.toString() 465 String string = TimeZone.getTimeZone("EST").toString() local [all...] |
/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/chromium/net/http/ |
mock_gssapi_library_posix.cc | 18 std::string name; 86 std::string BufferToString(const gss_buffer_t src) { 87 std::string dest; 90 const char* string = reinterpret_cast<char*>(src->value); local 91 dest.assign(string, src->length); 95 void BufferFromString(const std::string& src, gss_buffer_t dest) { 120 std::string NameToString(const gss_name_t& src) { 121 std::string dest; 124 test::GssNameMockImpl* string = 126 dest = string->name [all...] |
/external/chromium/sdch/open-vcdiff/src/ |
addrcache_test.cc | 22 #include <string> 37 typedef std::string string; typedef in class:open_vcdiff::__anon2959::VCDiffAddressCacheTest 119 string address_stream_; 122 string large_address_stream_; 128 string::size_type last_encode_size_; 463 // (the uppermost, or 7 bit) set. A longer string of bytes that all have 464 // bit 7 set is not a valid Varint. Try to parse such a string as a Varint
|
/external/chromium_org/base/i18n/ |
rtl.cc | 25 std::string GetLocaleString(const icu::Locale& locale) { 30 std::string result = 39 std::string variant_str(variant); 75 // Convert the ICU default locale to a string. 76 std::string GetConfiguredLocale() { 80 // Convert the ICU canonicalized locale to a string. 81 std::string GetCanonicalLocale(const char* locale) { 86 std::string ICULocaleName(const std::string& locale_string) { 98 std::string language = locale.getLanguage() 151 const UChar* string = text.c_str(); local 167 const UChar* string = text.c_str(); local 295 const UChar* string = text.c_str(); local [all...] |
/external/chromium_org/chrome/renderer/pepper/ |
ppb_pdf_impl.cc | 175 std::string rv; 246 const char16* string = reinterpret_cast<const char16*>(input_string); local 251 term, -1, string, -1, RenderThread::Get()->GetLocale().c_str(), 0, 412 std::string actual_value;
|
/external/chromium_org/content/common/android/ |
address_parser_internal.cc | 292 const char* string; member in struct:content::address_parser::internal::StateNameInfo 385 words->at(state_word).end, &state_names[state].string[pos])) 516 const char* string; member in struct:content::address_parser::internal::LocationNameInfo 615 location_names[i].string,
|
/external/chromium_org/content/renderer/pepper/ |
message_channel.cc | 8 #include <string> 72 // This currently just copies the value. For a string Var, the result is a 73 // PP_Var with the a copy of |var|'s string contents and a reference count of 1. 83 StringVar* string = StringVar::FromPPVar(var); local 84 if (!string) 86 return StringVar::StringToPPVar(string->value()); 404 PP_LOGLEVEL_ERROR, std::string(), kVarToV8ConversionError); 409 // a string object rather than a string primitive because it allows multiple 410 // references to the same string (as with PP_Var strings). However, prior t [all...] |