Home
last modified time | relevance | path

Searched refs:hex (Results 1 – 25 of 132) sorted by relevance

123456

/external/webkit/WebCore/inspector/front-end/
DColor.js45 var hex = this.hex;
46 …if (hex.charAt(0) === hex.charAt(1) && hex.charAt(2) === hex.charAt(3) && hex.charAt(4) === hex.ch…
47 this._short = hex.charAt(0) + hex.charAt(2) + hex.charAt(4);
49 this._short = hex;
54 get hex() getter in WebInspector.Color
62 set hex(x) setter in WebInspector.Color
73 this._rgb = this.hexToRgb(this.hex);
158 return "#" + this.hex;
192 hexToRgb: function(hex) argument
194 var r = parseInt(hex.substring(0,2), 16);
[all …]
/external/qemu/telephony/
Dgsm.h36 extern int gsm_hex_to_bytes ( cbytes_t hex, int hexlen, bytes_t dst );
40 extern void gsm_hex_to_bytes0 ( cbytes_t hex, int hexlen, bytes_t dst );
43 extern void gsm_hex_from_bytes( char* hex, cbytes_t src, int srclen );
52 extern int gsm_hex2_to_byte( const char* hex );
55 extern int gsm_hex2_to_byte0( const char* hex );
58 extern int gsm_hex4_to_short( const char* hex );
61 extern int gsm_hex4_to_short0( const char* hex );
64 extern void gsm_hex_from_byte( char* hex, int val );
66 extern void gsm_hex_from_short( char* hex, int val );
Dgsm.c128 gsm_hex2_to_byte( const char* hex ) in gsm_hex2_to_byte() argument
130 int hi = gsm_hexchar_to_int(hex[0]); in gsm_hex2_to_byte()
131 int lo = gsm_hexchar_to_int(hex[1]); in gsm_hex2_to_byte()
140 gsm_hex4_to_short( const char* hex ) in gsm_hex4_to_short() argument
142 int hi = gsm_hex2_to_byte(hex); in gsm_hex4_to_short()
143 int lo = gsm_hex2_to_byte(hex+2); in gsm_hex4_to_short()
152 gsm_hex2_to_byte0( const char* hex ) in gsm_hex2_to_byte0() argument
154 int hi = gsm_hexchar_to_int0(hex[0]); in gsm_hex2_to_byte0()
155 int lo = gsm_hexchar_to_int0(hex[1]); in gsm_hex2_to_byte0()
161 gsm_hex_from_byte( char* hex, int val ) in gsm_hex_from_byte() argument
[all …]
Dsms.h56 extern int sms_address_from_hex ( SmsAddress address, const char* hex, int hexlen );
57 extern int sms_address_to_hex ( SmsAddress address, char* hex, int hexsize );
71 extern SmsPDU smspdu_create_from_hex( const char* hex, int hexlen );
73 extern int smspdu_to_hex( SmsPDU pdu, char* hex, int hexsize );
Dsms.c405 sms_address_from_hex ( SmsAddress address, const char* hex, int hexlen ) in sms_address_from_hex() argument
407 const char* hexend = hex + hexlen; in sms_address_from_hex()
413 address->len = num_digits = gsm_hex2_to_byte( hex ); in sms_address_from_hex()
414 address->toa = gsm_hex2_to_byte( hex+2 ); in sms_address_from_hex()
415 hex += 4; in sms_address_from_hex()
418 if (hex + len*2 > hexend) in sms_address_from_hex()
422 address->data[nn] = gsm_hex2_to_byte( hex + nn*2 ); in sms_address_from_hex()
428 sms_address_to_hex ( SmsAddress address, char* hex, int hexlen ) in sms_address_to_hex() argument
433 if (hex == NULL) in sms_address_to_hex()
437 gsm_hex_from_byte( hex, address->len ); in sms_address_to_hex()
[all …]
/external/icu4c/test/intltest/
Dtestutil.cpp16 UnicodeString TestUtility::hex(UChar ch) { in hex() function in TestUtility
25 UnicodeString TestUtility::hex(const UnicodeString& s) { in hex() function in TestUtility
26 return hex(s, 44 /*,*/); in hex()
29 UnicodeString TestUtility::hex(const UnicodeString& s, UChar sep) { in hex() function in TestUtility
31 UnicodeString result = hex(s.charAt(0)); in hex()
34 result.append(hex(s.charAt(i))); in hex()
Dtstnorm.cpp316 errln("FAIL: " + hex(a) + " x DECOMP_COMPAT => " + in TestCompositionExclusion()
317 hex(b) + " x COMPOSE => " + in TestCompositionExclusion()
318 hex(c)); in TestCompositionExclusion()
320 logln("Ok: " + hex(a) + " x DECOMP_COMPAT => " + in TestCompositionExclusion()
321 hex(b) + " x COMPOSE => " + in TestCompositionExclusion()
322 hex(c)); in TestCompositionExclusion()
357 logln((UnicodeString)"Ok: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b)); in TestZeroIndex()
359 errln((UnicodeString)"FAIL: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b) + in TestZeroIndex()
360 ", expect " + hex(exp)); in TestZeroIndex()
365 logln((UnicodeString)"Ok: " + hex(b) + " x DECOMP => " + hex(a)); in TestZeroIndex()
[all …]
Dtestutil.h23 static UnicodeString hex(UChar ch);
25 static UnicodeString hex(const UnicodeString& s);
27 static UnicodeString hex(const UnicodeString& s, UChar sep);
Dtstnorm.h77 static UnicodeString hex(UChar ch);
78 static UnicodeString hex(const UnicodeString& str);
/external/webkit/JavaScriptCore/tests/mozilla/ecma/GlobalObject/
D15.1.2.5-2.js129 var hex = new Array();
136 hex[index] = Math.floor( n / Math.pow(16,mag) );
140 hex[hex.length] = n % 16;
144 for ( var index = 0 ; index < hex.length ; index++ ) {
145 switch ( hex[index] ) {
165 string += hex[index];
D15.1.2.5-3.js152 var hex = new Array();
159 hex[index] = Math.floor( n / Math.pow(16,mag) );
163 hex[hex.length] = n % 16;
167 for ( var index = 0 ; index < hex.length ; index++ ) {
168 switch ( hex[index] ) {
188 string += hex[index];
D15.1.2.5-1.js151 var hex = new Array();
158 hex[index] = Math.floor( n / Math.pow(16,mag) );
162 hex[hex.length] = n % 16;
166 for ( var index = 0 ; index < hex.length ; index++ ) {
167 switch ( hex[index] ) {
187 string += hex[index];
D15.1.2.4.js151 var hex = new Array();
158 hex[index] = Math.floor( n / Math.pow(16,mag) );
162 hex[hex.length] = n % 16;
166 for ( var index = 0 ; index < hex.length ; index++ ) {
167 switch ( hex[index] ) {
187 string += hex[index];
/external/webkit/V8Binding/v8/test/mjsunit/
Dunicode-test.js9138 function hex(x) { function
9155 out += "\\x" + hex(c >> 4) + hex(c);
9157 out += "\\u" + hex(c >> 12) + hex(c >> 8) + hex(c >> 4) + hex(c);
/external/tcpdump/
Daddrtoname.c315 static char hex[] = "0123456789abcdef"; variable
494 *cp++ = hex[*ep >> 4 ]; in etheraddr_string()
495 *cp++ = hex[*ep++ & 0xf]; in etheraddr_string()
498 *cp++ = hex[*ep >> 4 ]; in etheraddr_string()
499 *cp++ = hex[*ep++ & 0xf]; in etheraddr_string()
528 *cp++ = hex[*ep >> 4]; in linkaddr_string()
529 *cp++ = hex[*ep++ & 0xf]; in linkaddr_string()
532 *cp++ = hex[*ep >> 4]; in linkaddr_string()
533 *cp++ = hex[*ep++ & 0xf]; in linkaddr_string()
556 *cp++ = hex[port >> 12 & 0xf]; in etherproto_string()
[all …]
Dprint-esp.c103 static u_int hexdigit(netdissect_options *ndo, char hex) in hexdigit() argument
105 if (hex >= '0' && hex <= '9') in hexdigit()
106 return (hex - '0'); in hexdigit()
107 else if (hex >= 'A' && hex <= 'F') in hexdigit()
108 return (hex - 'A' + 10); in hexdigit()
109 else if (hex >= 'a' && hex <= 'f') in hexdigit()
110 return (hex - 'a' + 10); in hexdigit()
112 (*ndo->ndo_error)(ndo, "invalid hex digit %c in espsecret\n", hex); in hexdigit()
/external/skia/src/xml/
DSkParseColor.cpp465 uint32_t hex; in FindColor() local
466 const char* end = SkParse::FindHex(value + 1, &hex); in FindColor()
472 unsigned a = len == 4 ? nib2byte(hex >> 12) : oldAlpha; in FindColor()
473 unsigned r = nib2byte((hex >> 8) & 0xF); in FindColor()
474 unsigned g = nib2byte((hex >> 4) & 0xF); in FindColor()
475 unsigned b = nib2byte(hex & 0xF); in FindColor()
480 hex |= oldAlpha << 24; in FindColor()
481 *colorPtr = hex; in FindColor()
/external/openssl/crypto/x509/
Dx509_obj.c75 static char hex[17]="0123456789ABCDEF"; in X509_NAME_oneline() local
190 *(p++)=hex[(n>>4)&0x0f]; in X509_NAME_oneline()
191 *(p++)=hex[n&0x0f]; in X509_NAME_oneline()
202 *(p++)=hex[(n>>4)&0x0f]; in X509_NAME_oneline()
203 *(p++)=hex[n&0x0f]; in X509_NAME_oneline()
/external/openssl/apps/
Dprime.c63 int hex=0; in MAIN() local
79 hex=1; in MAIN()
111 if(hex) in MAIN()
/external/qemu/android/utils/
Dmisc.c173 hex2int( const uint8_t* hex, int len ) in hex2int() argument
177 int c = hexdigit(*hex++); in hex2int()
188 int2hex( uint8_t* hex, int len, int val ) in int2hex() argument
192 *hex++ = hexchars[(val >> (len*4)) & 15]; in int2hex()
Dmisc.h62 extern int hex2int( const uint8_t* hex, int len );
65 extern void int2hex( uint8_t* hex, int len, int val );
/external/clearsilver/cs/
Dtest_numbers.cs35 CORRECT: 0x15 (hex) == 21
37 ERROR: 0x15 (hex) should equal 21
/external/iptables/extensions/
Dlibipt_string.man14 .BI "--hex-string " "pattern"
15 Matches the given pattern in hex notation.
/external/ipsec-tools/src/racoon/
Dprsa_tok.l52 hex [0-9a-fA-F]
53 word6 {hex}{0,4}
/external/wpa_supplicant/
Dcommon.c40 static int hex2byte(const char *hex) in hex2byte() argument
43 a = hex2num(*hex++); in hex2byte()
46 b = hex2num(*hex++); in hex2byte()
89 int hexstr2bin(const char *hex, u8 *buf, size_t len) in hexstr2bin() argument
93 const char *ipos = hex; in hexstr2bin()

123456