Home
last modified time | relevance | path

Searched refs:padded (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/external/grpc-grpc/test/core/gpr/
Dstring_test.cc229 char* padded; in test_leftpad() local
233 padded = gpr_leftpad("foo", ' ', 5); in test_leftpad()
234 GPR_ASSERT(0 == strcmp(" foo", padded)); in test_leftpad()
235 gpr_free(padded); in test_leftpad()
237 padded = gpr_leftpad("foo", ' ', 4); in test_leftpad()
238 GPR_ASSERT(0 == strcmp(" foo", padded)); in test_leftpad()
239 gpr_free(padded); in test_leftpad()
241 padded = gpr_leftpad("foo", ' ', 3); in test_leftpad()
242 GPR_ASSERT(0 == strcmp("foo", padded)); in test_leftpad()
243 gpr_free(padded); in test_leftpad()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dpad_op_test.py302 padded = array_ops.pad(inp, array_ops.placeholder(dtypes.int32))
303 self.assertEqual([None, None, None, None], padded.get_shape().as_list())
307 padded = array_ops.pad(inp, [[2, 2], [2, 2]])
308 self.assertEqual([None, None], padded.get_shape().as_list())
312 padded = array_ops.pad(inp, array_ops.placeholder(dtypes.int32))
313 self.assertAllEqual(None, padded.get_shape().ndims)
322 padded = array_ops.pad(inp, [[1, 2], unknown])
323 self.assertEqual([7, None], padded.get_shape().as_list())
327 padded = array_ops.pad(inp, [[unknown, 0], [1, 2]])
328 self.assertEqual([None, 7], padded.get_shape().as_list())
[all …]
/external/python/cryptography/tests/hazmat/primitives/
Dtest_padding.py29 def test_invalid_padding(self, size, padded): argument
32 unpadder.update(padded)
65 def test_pad(self, size, unpadded, padded): argument
69 assert result == padded
83 def test_unpad(self, size, unpadded, padded): argument
85 result = unpadder.update(padded)
135 def test_invalid_padding(self, size, padded): argument
138 unpadder.update(padded)
171 def test_pad(self, size, unpadded, padded): argument
175 assert result == padded
[all …]
/external/eigen/unsupported/test/
Dcxx11_tensor_padding.cpp28 Tensor<float, 4, DataLayout> padded; in test_simple_padding() local
29 padded = tensor.pad(paddings); in test_simple_padding()
31 VERIFY_IS_EQUAL(padded.dimension(0), 2+0); in test_simple_padding()
32 VERIFY_IS_EQUAL(padded.dimension(1), 3+3); in test_simple_padding()
33 VERIFY_IS_EQUAL(padded.dimension(2), 5+7); in test_simple_padding()
34 VERIFY_IS_EQUAL(padded.dimension(3), 7+0); in test_simple_padding()
41 VERIFY_IS_EQUAL(padded(i,j,k,l), tensor(i,j-2,k-3,l)); in test_simple_padding()
43 VERIFY_IS_EQUAL(padded(i,j,k,l), 0.0f); in test_simple_padding()
Dcxx11_tensor_ref.cpp216 Tensor<float, 4> padded = ref.shuffle(shuffle_dims).pad(trivial); in test_nested_ops_with_ref() local
217 VERIFY_IS_EQUAL(padded.dimension(0), 2+0); in test_nested_ops_with_ref()
218 VERIFY_IS_EQUAL(padded.dimension(1), 3+3); in test_nested_ops_with_ref()
219 VERIFY_IS_EQUAL(padded.dimension(2), 5+7); in test_nested_ops_with_ref()
220 VERIFY_IS_EQUAL(padded.dimension(3), 7+0); in test_nested_ops_with_ref()
227 VERIFY_IS_EQUAL(padded(i,j,k,l), t(i,j-2,k-3,l)); in test_nested_ops_with_ref()
229 VERIFY_IS_EQUAL(padded(i,j,k,l), 0.0f); in test_nested_ops_with_ref()
/external/libaom/libaom/test/
Dedge_detect_test.cc84 static void free_pad_8tap(uint8_t *padded, int width, bool high_bd) { in free_pad_8tap() argument
86 aom_free(CONVERT_TO_SHORTPTR(padded - (width + 7) * 3 - 3)); in free_pad_8tap()
88 aom_free(padded - (width + 7) * 3 - 3); in free_pad_8tap()
290 std::unique_ptr<uint8_t[], Pad8TapConvolveDeleter> padded( in TEST_P() local
293 ASSERT_NE(padded, nullptr); in TEST_P()
295 ASSERT_LE(556, av1_edge_exists(padded.get(), stride_8tap(width), width, in TEST_P()
298 ASSERT_GE(560, av1_edge_exists(padded.get(), stride_8tap(width), width, in TEST_P()
325 std::unique_ptr<uint8_t[], Pad8TapConvolveDeleter> padded( in hardcoded_blur_test_aux() local
328 ASSERT_NE(padded, nullptr); in hardcoded_blur_test_aux()
329 av1_gaussian_blur(padded.get(), stride_8tap(w), w, h, output.get(), high_bd, in hardcoded_blur_test_aux()
[all …]
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DCryptRsa.c321 TPM2B *padded, // OUT: the pad data in OaepEncode() argument
339 pAssert(padded != NULL && message != NULL); in OaepEncode()
348 if(padded->size < (2 * hLen) + 2) in OaepEncode()
352 if(message->size > (padded->size - (2 * hLen) - 2)) in OaepEncode()
357 pp = &padded->buffer[hLen + 1]; in OaepEncode()
363 padLen = padded->size - message->size - (2 * hLen) - 2; in OaepEncode()
385 pp = &padded->buffer[hLen + 1]; in OaepEncode()
388 if(CryptMGF_KDF(hLen, &padded->buffer[1], hashAlg, dbSize, pp, 0) != (unsigned)hLen) in OaepEncode()
391 pp = &padded->buffer[1]; in OaepEncode()
396 padded->buffer[0] = 0x00; in OaepEncode()
[all …]
/external/python/cryptography/tests/hypothesis/
Dtest_padding.py20 padded = padder.update(data) + padder.finalize()
22 assert unpadder.update(padded) + unpadder.finalize() == data
32 padded = padder.update(data) + padder.finalize()
34 assert unpadder.update(padded) + unpadder.finalize() == data
/external/llvm-project/clang/test/CodeGenCXX/
Dauto-var-init.cpp85 struct padded { char c; int i; }; argument
102 struct unpackedinpacked { padded a; char b; } __attribute__((packed));
106 struct paddednested { struct padded p1, p2; };
723 TEST_UNINIT(padded, padded);
738 TEST_BRACES(padded, padded);
746 TEST_CUSTOM(padded, padded, { 42, 13371337 });
1253 TEST_UNINIT(atomicpadded, _Atomic(padded));
/external/boringssl/src/third_party/wycheproof_testvectors/
Dhkdf_sha384_test.txt234 # a salt shorter than the block size is padded with zeros.
243 # a salt shorter than the block size is padded with zeros.
252 # a salt shorter than the block size is padded with zeros.
261 # a salt shorter than the block size is padded with zeros.
270 # a salt shorter than the block size is padded with zeros.
279 # a salt shorter than the block size is padded with zeros.
288 # a salt shorter than the block size is padded with zeros.
523 # a salt shorter than the block size is padded with zeros.
532 # a salt shorter than the block size is padded with zeros.
541 # a salt shorter than the block size is padded with zeros.
[all …]
Dhkdf_sha512_test.txt234 # a salt shorter than the block size is padded with zeros.
243 # a salt shorter than the block size is padded with zeros.
252 # a salt shorter than the block size is padded with zeros.
261 # a salt shorter than the block size is padded with zeros.
270 # a salt shorter than the block size is padded with zeros.
279 # a salt shorter than the block size is padded with zeros.
288 # a salt shorter than the block size is padded with zeros.
523 # a salt shorter than the block size is padded with zeros.
532 # a salt shorter than the block size is padded with zeros.
541 # a salt shorter than the block size is padded with zeros.
[all …]
Dhkdf_sha256_test.txt266 # a salt shorter than the block size is padded with zeros.
275 # a salt shorter than the block size is padded with zeros.
284 # a salt shorter than the block size is padded with zeros.
293 # a salt shorter than the block size is padded with zeros.
302 # a salt shorter than the block size is padded with zeros.
311 # a salt shorter than the block size is padded with zeros.
320 # a salt shorter than the block size is padded with zeros.
555 # a salt shorter than the block size is padded with zeros.
564 # a salt shorter than the block size is padded with zeros.
573 # a salt shorter than the block size is padded with zeros.
[all …]
Dhkdf_sha1_test.txt278 # a salt shorter than the block size is padded with zeros.
287 # a salt shorter than the block size is padded with zeros.
296 # a salt shorter than the block size is padded with zeros.
305 # a salt shorter than the block size is padded with zeros.
314 # a salt shorter than the block size is padded with zeros.
323 # a salt shorter than the block size is padded with zeros.
332 # a salt shorter than the block size is padded with zeros.
591 # a salt shorter than the block size is padded with zeros.
600 # a salt shorter than the block size is padded with zeros.
609 # a salt shorter than the block size is padded with zeros.
[all …]
/external/boringssl/src/crypto/fipsmodule/ec/
Dmake_ec_scalar_base_mult_tests.go26 padded := make([]byte, len(max.Bytes()))
28 copy(padded[len(padded)-len(b):], b)
29 fmt.Printf("%s = %x\n", key, padded)
/external/flatbuffers/tests/FlatBuffers.Test/
DFlatBuffersFuzzTests.cs452 byte[] padded = new byte[] in TestVTableWithSomeElements()
467 Assert.ArrayEqual(padded, builder.DataBuffer.ToFullArray()); in TestVTableWithSomeElements()
470 byte[] unpadded = new byte[padded.Length - 12]; in TestVTableWithSomeElements()
471 Buffer.BlockCopy(padded, 12, unpadded, 0, unpadded.Length); in TestVTableWithSomeElements()
538 byte[] padded = new byte[] in TestBunchOfBools()
566 Assert.ArrayEqual(padded, builder.DataBuffer.ToFullArray()); in TestBunchOfBools()
569 byte[] unpadded = new byte[padded.Length - 28]; in TestBunchOfBools()
570 Buffer.BlockCopy(padded, 28, unpadded, 0, unpadded.Length); in TestBunchOfBools()
586 byte[] padded = new byte[] in TestBunchOfBoolsSizePrefixed()
614 Assert.ArrayEqual(padded, builder.DataBuffer.ToFullArray()); in TestBunchOfBoolsSizePrefixed()
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_MirrorPad.pbtxt6 The input tensor to be padded.
19 The padded tensor.
25 Either `REFLECT` or `SYMMETRIC`. In reflect mode the padded regions
26 do not include the borders, while in symmetric mode the padded regions
43 The padded size of each dimension D of the output is:
Dapi_def_PaddedBatchDataset.pbtxt14 A list of int64 tensors representing the desired padded shapes
17 padded to the maximum size of all batch elements.
/external/rust/crates/ring/tests/
Drsa_primitive_verify_tests.txt39 # Repeat basic test with left zero-padded n
46 # Repeat basic test with left zero-padded e
53 # Repeat basic test with right zero-padded n
60 # Repeat basic test with right zero-padded e
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dtree_reduction_rewriter.cc123 HloInstruction *padded = [&] { in RewriteReduction() local
138 VLOG(1) << "Generated padding: " << padded->ToString(); in RewriteReduction()
140 for (int64 dim_idx = 0; dim_idx < padded->shape().dimensions_size(); in RewriteReduction()
146 reshaped_dimensions.push_back(padded->shape().dimensions(dim_idx)); in RewriteReduction()
153 HloInstruction::CreateBitcast(reshaped_shape, padded)); in RewriteReduction()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/transformations/
Dmerge_padding_with_test.cc123 auto padded = graph.NewValue(); in TEST() local
134 ASSERT_TRUE(graph.SetProducer(pad_node->id, padded->id).ok()); in TEST()
138 ASSERT_TRUE(graph.AddConsumer(add_node->id, padded->id).ok()); in TEST()
161 auto padded = graph.NewValue(); in TEST() local
172 ASSERT_TRUE(graph.SetProducer(pad_node->id, padded->id).ok()); in TEST()
177 ASSERT_TRUE(graph.AddConsumer(add_node->id, padded->id).ok()); in TEST()
/external/webrtc/rtc_base/third_party/base64/
Dbase64.cc142 bool* padded) { in GetNextQuantum() argument
182 *padded = true; in GetNextQuantum()
184 *padded = false; in GetNextQuantum()
240 bool success = true, padded; in DecodeFromArrayTemplate() local
244 len, &dpos, qbuf, &padded); in DecodeFromArrayTemplate()
262 if ((DO_PAD_YES == pad_flags) && !padded) { in DecodeFromArrayTemplate()
/external/objenesis/tck/src/main/java/org/objenesis/tck/
DTextReporter.java244 StringBuilder padded = new StringBuilder(text); in pad() local
245 while(padded.length() < width) { in pad()
246 padded.append(' '); in pad()
248 return padded.toString(); in pad()
/external/boringssl/src/ssl/test/runner/
Dkey_agreement.go199 padded := make([]byte, rsaSize(cert.PublicKey.(*rsa.PublicKey)))
200 padded[1] = 2
201 nonZeroRandomBytes(padded[2:len(padded)-len(sentPreMasterSecret)-1], config.rand())
202 copy(padded[len(padded)-len(sentPreMasterSecret):], sentPreMasterSecret)
205 padded[1] = 3
207 padded[0] = 1
209 for i := 2; i < len(padded); i++ {
210 if padded[i] == 0 {
211 padded[i]++
216 encrypted, err := rsaRawEncrypt(cert.PublicKey.(*rsa.PublicKey), padded)
/external/python/oauth2client/oauth2client/
D_helpers.py104 padded = b64string + b'=' * (4 - len(b64string) % 4)
105 return base64.urlsafe_b64decode(padded)
/external/python/rsa/rsa/
Dpkcs1.py187 padded = _pad_for_encryption(message, keylength)
189 payload = transform.bytes2int(padded)
303 padded = _pad_for_signing(cleartext, keylength)
305 payload = transform.bytes2int(padded)

12345678910>>...12