/external/chromium_org/chrome/utility/importer/ |
H A D | favicon_reencode.cc | 19 SkBitmap decoded = content::DecodeImage( local 23 if (decoded.empty()) 26 if (decoded.width() != gfx::kFaviconSize || 27 decoded.height() != gfx::kFaviconSize) { 29 int new_width = decoded.width(); 30 int new_height = decoded.height(); 32 decoded = skia::ImageOperations::Resize( 33 decoded, skia::ImageOperations::RESIZE_LANCZOS3, new_width, new_height); 37 gfx::PNGCodec::EncodeBGRASkBitmap(decoded, false, png_data);
|
/external/chromium/chrome/browser/importer/ |
H A D | importer.cc | 34 SkBitmap decoded = decoder.Decode(src_data, src_len); local 35 if (decoded.empty()) 38 if (decoded.width() != kFaviconSize || decoded.height() != kFaviconSize) { 40 int new_width = decoded.width(); 41 int new_height = decoded.height(); 43 decoded = skia::ImageOperations::Resize( 44 decoded, skia::ImageOperations::RESIZE_LANCZOS3, new_width, new_height); 48 gfx::PNGCodec::EncodeBGRASkBitmap(decoded, false, png_data);
|
/external/chromium/base/ |
H A D | base64_unittest.cc | 19 std::string encoded, decoded; local 26 ok = base::Base64Decode(encoded, &decoded); 28 EXPECT_EQ(kText, decoded);
|
/external/chromium_org/base/ |
H A D | base64_unittest.cc | 16 std::string decoded; local 23 ok = Base64Decode(encoded, &decoded); 25 EXPECT_EQ(kText, decoded);
|
/external/chromium_org/ui/gfx/image/ |
H A D | image_util_unittest.cc | 20 gfx::Image decoded = local 23 // JPEG is lossy, so simply check that the image decoded successfully. 24 EXPECT_FALSE(decoded.IsEmpty());
|
/external/chromium/third_party/libjingle/source/talk/base/ |
H A D | urlencode.h | 54 std::string UrlEncodeString(const std::string & decoded); 56 const std::string & decoded); 57 std::string UrlEncodeStringForOnlyUnsafeChars(const std::string & decoded);
|
H A D | urlencode.cc | 173 InternalUrlEncodeString(const std::string & decoded, 176 size_t needed_length = decoded.length() * 3 + 1; 178 InternalUrlEncode(decoded.c_str(), buf, needed_length, 184 UrlEncodeString(const std::string & decoded) { 185 return InternalUrlEncodeString(decoded, true, false); 189 UrlEncodeStringWithoutEncodingSpaceAsPlus(const std::string & decoded) { 190 return InternalUrlEncodeString(decoded, false, false); 194 UrlEncodeStringForOnlyUnsafeChars(const std::string & decoded) { 195 return InternalUrlEncodeString(decoded, false, true);
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
H A D | urlencode.h | 54 std::string UrlEncodeString(const std::string & decoded); 56 const std::string & decoded); 57 std::string UrlEncodeStringForOnlyUnsafeChars(const std::string & decoded);
|
H A D | urlencode.cc | 173 InternalUrlEncodeString(const std::string & decoded, 176 int needed_length = static_cast<int>(decoded.length()) * 3 + 1; 178 InternalUrlEncode(decoded.c_str(), buf, needed_length, 184 UrlEncodeString(const std::string & decoded) { 185 return InternalUrlEncodeString(decoded, true, false); 189 UrlEncodeStringWithoutEncodingSpaceAsPlus(const std::string & decoded) { 190 return InternalUrlEncodeString(decoded, false, false); 194 UrlEncodeStringForOnlyUnsafeChars(const std::string & decoded) { 195 return InternalUrlEncodeString(decoded, false, true);
|
/external/chromium_org/v8/test/mjsunit/regress/ |
H A D | regress-244.js | 50 var decoded = String.fromCharCode(kLegalPairs[i][0]); 52 assertEquals(decodeURI(encoded), decoded); 53 assertEquals(encodeURI(decoded), encoded);
|
/external/v8/test/mjsunit/regress/ |
H A D | regress-244.js | 50 var decoded = String.fromCharCode(kLegalPairs[i][0]); 52 assertEquals(decodeURI(encoded), decoded); 53 assertEquals(encodeURI(decoded), encoded);
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/tsp/ |
H A D | TSTInfoTest.java | 64 TSTInfo decoded = (TSTInfo) TSTInfo.ASN1.decode(encoding); 66 assertEquals("Decoded version is incorrect", info.getVersion(), decoded 68 assertEquals("Decoded policy is incorrect", policy, decoded.getPolicy()); 71 .encode(decoded.getMessageImprint()))); 73 decoded.getSerialNumber()); 74 assertEquals("Decoded genTime is incorrect", genTime, decoded 77 decoded.getAccuracy())); 78 assertFalse("Decoded ordering is incorrect", decoded.getOrdering() 80 assertEquals("Decoded nonce is incorrect", nonce, decoded.getNonce()); 81 assertEquals("Decoded tsa is incorrect", tsa, decoded [all...] |
H A D | TimeStampReqTest.java | 53 TimeStampReq decoded = (TimeStampReq) TimeStampReq.ASN1 55 assertEquals("Decoded version is incorrect", req.getVersion(), decoded 59 .encode(decoded.getMessageImprint()))); 60 assertEquals("Decoded reqPolicy is incorrect", reqPolicy, decoded 62 assertEquals("Decoded nonce is incorrect", nonce, decoded.getNonce()); 63 assertFalse("Decoded certReq is incorrect", decoded.getCertReq() 65 assertEquals("Decoded extensions is incorrect", exts, decoded
|
H A D | PKIStatusInfoTest.java | 43 PKIStatusInfo decoded = (PKIStatusInfo) PKIStatusInfo.ASN1 46 assertEquals(info.getStatus(), decoded.getStatus()); 47 List decodedStString = decoded.getStatusString(); 51 assertEquals(info.getFailInfo(), decoded.getFailInfo());
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
H A D | DecodedDataDocumentParser.cpp | 51 // document's title so that the user doesn't see an incorrectly decoded title 95 String decoded = document()->decoder()->decode(data, length); local 99 if (decoded.isEmpty()) 102 size_t consumedChars = decoded.length(); 103 append(decoded.releaseImpl());
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/pkcs10/ |
H A D | CertificationRequestInfoTest.java | 68 CertificationRequestInfo decoded = 72 // check what was decoded 73 assertEquals(certReqInfo.getVersion(), decoded.getVersion()); 75 decoded.getSubject().getName(X500Principal.CANONICAL)); 77 .getEncoded(), decoded.getSubjectPublicKeyInfo().getEncoded())); 81 AttributeTypeAndValue decodedATaV = (AttributeTypeAndValue) decoded
|
/external/chromium_org/ui/gfx/codec/ |
H A D | png_codec_unittest.cc | 276 std::vector<unsigned char> decoded; local 279 PNGCodec::FORMAT_RGB, &decoded, 283 ASSERT_EQ(original.size(), decoded.size()); 286 ASSERT_TRUE(original == decoded); 305 std::vector<unsigned char> decoded; local 308 PNGCodec::FORMAT_RGBA, &decoded, 312 ASSERT_EQ(original.size(), decoded.size()); 315 ASSERT_TRUE(original == decoded); 334 std::vector<unsigned char> decoded; local 337 PNGCodec::FORMAT_BGRA, &decoded, 367 std::vector<unsigned char> decoded; local 412 std::vector<unsigned char> decoded; local 455 std::vector<unsigned char> decoded; local 492 std::vector<unsigned char> decoded; local 528 std::vector<unsigned char> decoded; local 565 std::vector<unsigned char> decoded; local 602 std::vector<unsigned char> decoded; local 640 std::vector<unsigned char> decoded; local 678 std::vector<unsigned char> decoded; local 707 std::vector<unsigned char> decoded; local 736 std::vector<unsigned char> decoded; local 773 std::vector<unsigned char> decoded; local 810 std::vector<unsigned char> decoded; local 943 std::vector<unsigned char> decoded; local 1141 std::vector<unsigned char> decoded; local [all...] |
H A D | jpeg_codec_unittest.cc | 115 std::vector<unsigned char> decoded; local 118 JPEGCodec::FORMAT_RGB, &decoded, 122 ASSERT_EQ(original.size(), decoded.size()); 126 ASSERT_GE(jpeg_equality_threshold, AveragePixelDelta(original, decoded)); 153 std::vector<unsigned char> decoded; local 156 JPEGCodec::FORMAT_RGBA, &decoded, 160 ASSERT_EQ(original.size(), decoded.size()); 164 ASSERT_GE(jpeg_equality_threshold, AveragePixelDelta(original, decoded)); 201 // This test decodes a 1x1 JPEG image and writes the decoded RGB (or RGBA) pixel
|
/external/qemu/distrib/sdl-1.2.15/src/audio/ |
H A D | SDL_wave.c | 118 Uint8 *freeable, *encoded, *decoded; local 136 decoded = *audio_buf; 170 decoded[0] = state[0]->iSamp2&0xFF; 171 decoded[1] = state[0]->iSamp2>>8; 172 decoded += 2; 174 decoded[0] = state[1]->iSamp2&0xFF; 175 decoded[1] = state[1]->iSamp2>>8; 176 decoded += 2; 178 decoded[0] = state[0]->iSamp1&0xFF; 179 decoded[ 296 Fill_IMA_ADPCM_block(Uint8 *decoded, Uint8 *encoded, int channel, int numchannels, struct IMA_ADPCM_decodestate *state) argument 326 Uint8 *freeable, *encoded, *decoded; local [all...] |
/external/chromium_org/third_party/leveldatabase/src/db/ |
H A D | dbformat_test.cc | 37 ParsedInternalKey decoded("", 0, kTypeValue); 39 ASSERT_TRUE(ParseInternalKey(in, &decoded)); 40 ASSERT_EQ(key, decoded.user_key.ToString()); 41 ASSERT_EQ(seq, decoded.sequence); 42 ASSERT_EQ(vt, decoded.type); 44 ASSERT_TRUE(!ParseInternalKey(Slice("bar"), &decoded));
|
/external/chromium/chrome/browser/ |
H A D | user_style_sheet_watcher_unittest.cc | 51 std::string decoded; local 52 ASSERT_TRUE(base::Base64Decode(result, &decoded)); 53 ASSERT_EQ(css_file_contents, decoded);
|
/external/chromium_org/chrome/browser/ |
H A D | user_style_sheet_watcher_unittest.cc | 54 std::string decoded; local 55 ASSERT_TRUE(base::Base64Decode(result, &decoded)); 56 ASSERT_EQ(css_file_contents, decoded);
|
/external/chromium/chrome/browser/extensions/ |
H A D | image_loading_tracker.cc | 67 scoped_ptr<SkBitmap> decoded(new SkBitmap()); 68 *decoded = decoder.Decode(data, file_contents.length()); 69 if (decoded->empty()) { 74 gfx::Size original_size(decoded->width(), decoded->height()); 76 if (decoded->width() > max_size.width() || 77 decoded->height() > max_size.height()) { 79 *decoded = skia::ImageOperations::Resize( 80 *decoded, skia::ImageOperations::RESIZE_LANCZOS3, 84 ReportBack(decoded [all...] |
/external/chromium_org/net/http/ |
H A D | http_content_disposition.cc | 66 std::string decoded; local 68 base::Base64Decode(part, &decoded) : DecodeQEncoding(part, &decoded))) 71 if (decoded.empty()) { 85 size_t output_length = decoded.length() * 3 + 1; 88 decoded.data(), decoded.length(), &err); 255 std::string decoded; local 257 &decoded, ¤t_parse_result_flags)) 259 decoded_value.append(decoded); 328 DecodeExtValue(const std::string& param_value, std::string* decoded) argument [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/ |
H A D | PolicyQualifierInfoTest.java | 94 Object[] decoded = 100 myIntValue, ((int[])decoded[0])[8]); 103 (byte)myIntValue, ((byte[])decoded[1])[2]); 127 Object[] decoded = 133 myIntValue, ((int[])decoded[0])[8]); 136 (byte)myIntValue, ((byte[])decoded[1])[2]);
|